query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
sequencelengths
3
101
negative_scores
sequencelengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Closes the other registration after closing this.
default Registration then(Registration other) { Objects.requireNonNull(other); return () -> { close(); other.close(); }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void close() {\n if (VDBG) log(\"close()\");\n\n mAppRegistered = false;\n final IBluetoothDeviceGroup service = getService();\n if (service != null) {\n try {\n service.unregisterGroupClientApp(mAppId, mAttributionSource);\n } catch (RemoteException e) {\n Log.e(TAG, \"Stack:\" + Log.getStackTraceString(new Throwable()));\n }\n }\n\n mProfileConnector.disconnect();\n }", "void close() {\n unload0(name, handle);\n }", "static public void close() {\n renewalTimer.cancel();\n delegationTokens.clear();\n }", "@Override\n public void close()\n {\n this.disconnect();\n }", "@Override\n public void close() {\n for (Servlet registeredServlet : registeredServlets) {\n paxWeb.unregisterServlet(registeredServlet);\n }\n for (Filter filter : registeredFilters) {\n paxWeb.unregisterFilter(filter);\n }\n for (EventListener eventListener : registeredEventListeners) {\n paxWeb.unregisterEventListener(eventListener);\n }\n for (String alias : registeredResources) {\n paxWeb.unregister(alias);\n }\n }", "public void close() {\n\t\tconfigurationReloader.shutdown();\n\t}", "public void close() {\n this.consoleListenerAndSender.shutdownNow();\n this.serverListenerAndConsoleWriter.shutdownNow();\n try {\n this.getter.close();\n this.sender.close();\n this.socket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void close() {\t\t\n\t}", "public void close() {}", "public synchronized void close() {}", "public void close() {\n\t\t}", "public void close() {\n\n\t}", "public void close() {\n\n\t}", "public void close() {\r\n\t}", "public void close() {\n\t\t\r\n\t}", "public void close()\n\t\t{\n\t\t}", "public void close() {\n\t\t\n\t}", "public void close() {\n\t\t\n\t}", "public void close() {\n\t\t\n\t}", "@Override\n\tpublic void finish() {\n\t\ttry {\n\t\t\tunregisterReceiver(closeReceiver);\n\t\t}\n\t\tcatch (Exception e) {\n\t\t}\n\t\tsuper.finish();\n\t}", "public void disconnect() {\n\t\ttry { \n\t\t\tif(loginInput != null) loginInput.close();\n\t\t\tif(registerInput != null) registerInput.close();\n\t\t}\n\t\tcatch(Exception e) {} // not much else I can do\n\t\ttry {\n\t\t\tif(loginOutput != null) loginOutput.close();\n\t\t\tif(registerOutput != null) registerOutput.close();\n\t\t}\n\t\tcatch(Exception e) {} // not much else I can do\n try{\n\t\t\tif(loginSocket != null) loginSocket.close();\n\t\t\tif(registerSocket != null) registerSocket.close();\n\t\t}\n\t\tcatch(Exception e) {} // not much else I can do\n\n\t\tcg.connectionFailed();\n\t\t\t\n }", "@Override\n void close();", "@Override\n void close();", "@Override\n void close();", "@Override\n void close();", "public void close() {\n\t}", "public void close() {\n unbind();\n }", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "@Override\n public void close() {\n }", "@Override\n public void close() {\n }", "@Override\r\n\tpublic void close()\r\n\t{\n\t\t\r\n\t}", "@Override public abstract void close();", "synchronized void close() {\n\n closeAllSessions();\n sysSession.close();\n sysLobSession.close();\n }", "public void close() {\n dispose();\n }", "@Override\n public void close() {\n }", "public void disconnect() {\n DatabaseGlobalAccess.getInstance().getEm().close();\n DatabaseGlobalAccess.getInstance().getEmf().close();\n }", "public void close() {\n try {\n socket.close();\n sInput.close();\n sOutput.close();\n sInput = null;\n socket = null;\n } catch (IOException e) {\n System.out.println(\"Logged Out.\");\n }\n }", "private void close(){\n\t\tMain.enableWorldMap();\n\t\tdispose();\n\t}", "private void close(){\n this.dispose();\n }", "public void disconnect() {\n try {\n theCoorInt.unregisterForCallback(this);\n theCoorInt = null;\n }\n catch (Exception e) {\n simManagerLogger.logp(Level.SEVERE, \"SimulationManagerModel\", \n \"closeSimManager\", \"Exception in unregistering Simulation\" +\n \"Manager from the CAD Simulator.\", e);\n }\n }", "public void close() {\n close = true;\n }", "@Override\r\n public void close ()\r\n {\r\n }", "@Override\r\n\tpublic void close() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void close() {\n\t\t\r\n\t}", "public void close()\r\n {\r\n }", "private void close() {\r\n closeListener.run();\r\n }", "@Override\n void close();", "@Override\n void close();", "public void close() {\n\t\tif (this.session instanceof DatabaseSession) {\n\t\t\t((DatabaseSession) this.session).logout();\n\t\t}\n\t\tthis.session.release();\n\t}", "@Override\n public void close() {\n \n }", "public void closeConnection(){\r\n\t\t_instance.getServerConnection().logout();\r\n\t}", "public void close() {\n }", "public void close() {\n }", "public void close() {\n }", "@Override\n public synchronized void close() {\n disconnect();\n mClosed = true;\n }", "@Override\r\n\tpublic void close() {\n\t\tsuper.close();\r\n\t}", "public void Exit(){\n\t\t\t\tclose();\n\t\t\t}", "@Override\n\tpublic void close() {\n\t\t\n\t}", "@Override\n\tpublic void close() {\n\t\t\n\t}", "@Override\n\tpublic void close() {\n\t\t\n\t}", "@Override\n\tpublic void close() {\n\t\t\n\t}", "@Override\n public void close() { }", "@Override\n\tpublic void close() {\n\n\t}", "@Override\n\tpublic void close() {\n\n\t}", "public void close() {\n }", "public void close() {\n }", "public void close() {\n }", "@Override\r\n public void close() {\n \r\n }", "public void close()\n {\n ServiceLocator.getInstance().shutdown();\n }", "@Override\r\n\tpublic void close() {\n\t}", "@Override\r\n\tpublic void close() {\n\t}", "@Override\r\n\tpublic void close() {\n\t}", "public void closeAccount() {}", "public void closeAccount() {}", "@Override\n public void close() {\n }", "@Override\n public void close() {\n }", "@Override\n public void close() {\n }", "@Override\n public void close() {\n }", "@Override\n public void close() {\n }", "@Override\n public void close() {\n }", "@Override\n public void close() {\n }", "@Override\n public void close() {\n }", "@Override\n public void close() {\n }", "@Override\n public void close() {\n }", "@Override\n public void close() {\n }", "@Override\n public void close() {\n }" ]
[ "0.6644741", "0.6522769", "0.65010923", "0.6500253", "0.64575285", "0.63206613", "0.62794197", "0.6267212", "0.6259878", "0.6245069", "0.6236721", "0.6205259", "0.6205259", "0.61993504", "0.6195682", "0.618406", "0.61765033", "0.61765033", "0.61765033", "0.617135", "0.61706585", "0.61334765", "0.61334765", "0.61334765", "0.61334765", "0.61233723", "0.61110425", "0.61071783", "0.61071783", "0.61071783", "0.61071783", "0.61071783", "0.61071783", "0.61071783", "0.61071783", "0.61071783", "0.61071783", "0.61071783", "0.61071783", "0.61071783", "0.61071783", "0.61071783", "0.6100963", "0.6100963", "0.60921675", "0.60830945", "0.60791886", "0.6072455", "0.606554", "0.6064735", "0.60598737", "0.60501885", "0.6049655", "0.60462856", "0.60428655", "0.6041277", "0.6036271", "0.6036271", "0.6008358", "0.60029376", "0.59969157", "0.59969157", "0.59951395", "0.59929174", "0.5988704", "0.59848267", "0.59848267", "0.59848267", "0.59840137", "0.5982943", "0.5977286", "0.5973487", "0.5973487", "0.5973487", "0.5973487", "0.5967488", "0.59667313", "0.59667313", "0.5965388", "0.5965388", "0.5965388", "0.59620583", "0.5952416", "0.5951337", "0.5951337", "0.5951337", "0.59490657", "0.59490657", "0.59479856", "0.59479856", "0.59479856", "0.59479856", "0.59479856", "0.59479856", "0.59479856", "0.59479856", "0.59479856", "0.59479856", "0.59479856", "0.59479856" ]
0.5974969
71
TODO Autogenerated method stub
public static void main(String[] args) { System.out.println("Enter the number of elements:"); Scanner sc=new Scanner(System.in); int elem=sc.nextInt(); int array[]=new int[elem]; System.out.println("Enter all the elements:"); for(int i=0;i<elem;i++) { array[i]=sc.nextInt(); } System.out.print(Arrays.toString(array)); Arrays.sort(array); int ans = 0; for(int i1=0; i1<array.length; i1+=2) { ans += array[i1]; } System.out.print(ans); return; }
{ "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
/ access modifiers changed from: protected
public void logDiagnostic(String str) { if (isDiagnosticsEnabled()) { LogFactory.logRawDiagnostic(new StringBuffer().append(this.diagnosticPrefix).append(str).toString()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private abstract void privateabstract();", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\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 ligar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void smell() {\n\t\t\n\t}", "public abstract Object mo26777y();", "protected void h() {}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "protected abstract Set method_1559();", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public abstract void mo70713b();", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "protected Doodler() {\n\t}", "public abstract void mo27386d();", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "private PropertyAccess() {\n\t\tsuper();\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public abstract void mo56925d();", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void init() {\n }", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public abstract void mo27385c();", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public abstract void mo30696a();", "abstract int pregnancy();", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "@Override\n public void init() {\n\n }", "@Override\n void init() {\n }", "@Override\n\tpublic void leti() \n\t{\n\t}", "private TMCourse() {\n\t}", "public abstract void mo35054b();", "@Override\n public void init() {\n }", "@Override\n\tpublic void buscar() {\n\t\t\n\t}", "private Infer() {\n\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tpublic void erstellen() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public final void mo51373a() {\n }", "protected void method_3848() {\r\n super.method_3848();\r\n }", "protected FanisamBato(){\n\t}", "public abstract Object mo1771a();", "public abstract void m15813a();", "public void gored() {\n\t\t\n\t}", "@Override\n public void get() {}", "@Override\n\tpublic void dibuja() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "private Get() {}", "private Get() {}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public abstract void mo27464a();", "public abstract String mo41079d();", "@Override\n\tpublic void classroom() {\n\t\t\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void logic() {\n\n\t}", "public abstract void mo102899a();", "@SuppressWarnings(\"unused\")\n private void _read() {\n }", "public abstract void mo42329d();", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "public void method_4270() {}", "public abstract void mo6549b();", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "protected void init() {\n // to override and use this method\n }" ]
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.6406691", "0.6402136", "0.6400287", "0.63977665", "0.63784796", "0.6373787", "0.63716805", "0.63680965", "0.6353791", "0.63344383", "0.6327005", "0.6327005", "0.63259363", "0.63079315", "0.6279023", "0.6271251", "0.62518364", "0.62254924", "0.62218183", "0.6213994", "0.6204108", "0.6195944", "0.61826825", "0.617686", "0.6158371", "0.6138765", "0.61224854", "0.6119267", "0.6119013", "0.61006695", "0.60922325", "0.60922325", "0.6086324", "0.6083917", "0.607071", "0.6070383", "0.6067458", "0.60568124", "0.6047576", "0.6047091", "0.60342956", "0.6031699", "0.6026248", "0.6019563", "0.60169774", "0.6014913", "0.6011912", "0.59969044", "0.59951806", "0.5994921", "0.599172", "0.59913194", "0.5985337", "0.59844744", "0.59678656", "0.5966894", "0.5966894", "0.5966894", "0.5966894", "0.5966894", "0.5966894", "0.59647757", "0.59647757", "0.59616375", "0.5956373", "0.5952514", "0.59497356", "0.59454703", "0.5941018", "0.5934147", "0.5933801", "0.59318185", "0.5931161", "0.5929297", "0.5926942", "0.5925829", "0.5924853", "0.5923296", "0.5922199", "0.59202504", "0.5918595" ]
0.0
-1
/ access modifiers changed from: protected
public String getLogClassName() { if (this.logClassName == null) { discoverLogImplementation(getClass().getName()); } return this.logClassName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private abstract void privateabstract();", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\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 ligar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void smell() {\n\t\t\n\t}", "public abstract Object mo26777y();", "protected void h() {}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "protected abstract Set method_1559();", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public abstract void mo70713b();", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "protected Doodler() {\n\t}", "public abstract void mo27386d();", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "private PropertyAccess() {\n\t\tsuper();\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public abstract void mo56925d();", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void init() {\n }", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public abstract void mo27385c();", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public abstract void mo30696a();", "abstract int pregnancy();", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "@Override\n public void init() {\n\n }", "@Override\n void init() {\n }", "@Override\n\tpublic void leti() \n\t{\n\t}", "private TMCourse() {\n\t}", "public abstract void mo35054b();", "@Override\n public void init() {\n }", "@Override\n\tpublic void buscar() {\n\t\t\n\t}", "private Infer() {\n\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tpublic void erstellen() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public final void mo51373a() {\n }", "protected void method_3848() {\r\n super.method_3848();\r\n }", "protected FanisamBato(){\n\t}", "public abstract Object mo1771a();", "public abstract void m15813a();", "public void gored() {\n\t\t\n\t}", "@Override\n public void get() {}", "@Override\n\tpublic void dibuja() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "private Get() {}", "private Get() {}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public abstract void mo27464a();", "public abstract String mo41079d();", "@Override\n\tpublic void classroom() {\n\t\t\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void logic() {\n\n\t}", "public abstract void mo102899a();", "@SuppressWarnings(\"unused\")\n private void _read() {\n }", "public abstract void mo42329d();", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "public void method_4270() {}", "public abstract void mo6549b();", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "protected void init() {\n // to override and use this method\n }" ]
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.6406691", "0.6402136", "0.6400287", "0.63977665", "0.63784796", "0.6373787", "0.63716805", "0.63680965", "0.6353791", "0.63344383", "0.6327005", "0.6327005", "0.63259363", "0.63079315", "0.6279023", "0.6271251", "0.62518364", "0.62254924", "0.62218183", "0.6213994", "0.6204108", "0.6195944", "0.61826825", "0.617686", "0.6158371", "0.6138765", "0.61224854", "0.6119267", "0.6119013", "0.61006695", "0.60922325", "0.60922325", "0.6086324", "0.6083917", "0.607071", "0.6070383", "0.6067458", "0.60568124", "0.6047576", "0.6047091", "0.60342956", "0.6031699", "0.6026248", "0.6019563", "0.60169774", "0.6014913", "0.6011912", "0.59969044", "0.59951806", "0.5994921", "0.599172", "0.59913194", "0.5985337", "0.59844744", "0.59678656", "0.5966894", "0.5966894", "0.5966894", "0.5966894", "0.5966894", "0.5966894", "0.59647757", "0.59647757", "0.59616375", "0.5956373", "0.5952514", "0.59497356", "0.59454703", "0.5941018", "0.5934147", "0.5933801", "0.59318185", "0.5931161", "0.5929297", "0.5926942", "0.5925829", "0.5924853", "0.5923296", "0.5922199", "0.59202504", "0.5918595" ]
0.0
-1
/ access modifiers changed from: protected
public Constructor getLogConstructor() { if (this.logConstructor == null) { discoverLogImplementation(getClass().getName()); } return this.logConstructor; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private abstract void privateabstract();", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\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 ligar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void smell() {\n\t\t\n\t}", "public abstract Object mo26777y();", "protected void h() {}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "protected abstract Set method_1559();", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public abstract void mo70713b();", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "protected Doodler() {\n\t}", "public abstract void mo27386d();", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "private PropertyAccess() {\n\t\tsuper();\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public abstract void mo56925d();", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void init() {\n }", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public abstract void mo27385c();", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public abstract void mo30696a();", "abstract int pregnancy();", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "@Override\n public void init() {\n\n }", "@Override\n void init() {\n }", "@Override\n\tpublic void leti() \n\t{\n\t}", "private TMCourse() {\n\t}", "public abstract void mo35054b();", "@Override\n public void init() {\n }", "@Override\n\tpublic void buscar() {\n\t\t\n\t}", "private Infer() {\n\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tpublic void erstellen() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public final void mo51373a() {\n }", "protected void method_3848() {\r\n super.method_3848();\r\n }", "protected FanisamBato(){\n\t}", "public abstract Object mo1771a();", "public abstract void m15813a();", "public void gored() {\n\t\t\n\t}", "@Override\n public void get() {}", "@Override\n\tpublic void dibuja() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "private Get() {}", "private Get() {}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public abstract void mo27464a();", "public abstract String mo41079d();", "@Override\n\tpublic void classroom() {\n\t\t\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void logic() {\n\n\t}", "public abstract void mo102899a();", "@SuppressWarnings(\"unused\")\n private void _read() {\n }", "public abstract void mo42329d();", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "public void method_4270() {}", "public abstract void mo6549b();", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "protected void init() {\n // to override and use this method\n }" ]
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.6406691", "0.6402136", "0.6400287", "0.63977665", "0.63784796", "0.6373787", "0.63716805", "0.63680965", "0.6353791", "0.63344383", "0.6327005", "0.6327005", "0.63259363", "0.63079315", "0.6279023", "0.6271251", "0.62518364", "0.62254924", "0.62218183", "0.6213994", "0.6204108", "0.6195944", "0.61826825", "0.617686", "0.6158371", "0.6138765", "0.61224854", "0.6119267", "0.6119013", "0.61006695", "0.60922325", "0.60922325", "0.6086324", "0.6083917", "0.607071", "0.6070383", "0.6067458", "0.60568124", "0.6047576", "0.6047091", "0.60342956", "0.6031699", "0.6026248", "0.6019563", "0.60169774", "0.6014913", "0.6011912", "0.59969044", "0.59951806", "0.5994921", "0.599172", "0.59913194", "0.5985337", "0.59844744", "0.59678656", "0.5966894", "0.5966894", "0.5966894", "0.5966894", "0.5966894", "0.5966894", "0.59647757", "0.59647757", "0.59616375", "0.5956373", "0.5952514", "0.59497356", "0.59454703", "0.5941018", "0.5934147", "0.5933801", "0.59318185", "0.5931161", "0.5929297", "0.5926942", "0.5925829", "0.5924853", "0.5923296", "0.5922199", "0.59202504", "0.5918595" ]
0.0
-1
/ access modifiers changed from: protected
public boolean isJdk13LumberjackAvailable() { return isLogLibraryAvailable("Jdk13Lumberjack", LOGGING_IMPL_LUMBERJACK_LOGGER); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private abstract void privateabstract();", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\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 ligar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void smell() {\n\t\t\n\t}", "public abstract Object mo26777y();", "protected void h() {}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "protected abstract Set method_1559();", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public abstract void mo70713b();", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "protected Doodler() {\n\t}", "public abstract void mo27386d();", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "private PropertyAccess() {\n\t\tsuper();\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public abstract void mo56925d();", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void init() {\n }", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public abstract void mo27385c();", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public abstract void mo30696a();", "abstract int pregnancy();", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "@Override\n public void init() {\n\n }", "@Override\n void init() {\n }", "@Override\n\tpublic void leti() \n\t{\n\t}", "private TMCourse() {\n\t}", "public abstract void mo35054b();", "@Override\n public void init() {\n }", "@Override\n\tpublic void buscar() {\n\t\t\n\t}", "private Infer() {\n\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tpublic void erstellen() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public final void mo51373a() {\n }", "protected void method_3848() {\r\n super.method_3848();\r\n }", "protected FanisamBato(){\n\t}", "public abstract Object mo1771a();", "public abstract void m15813a();", "public void gored() {\n\t\t\n\t}", "@Override\n public void get() {}", "@Override\n\tpublic void dibuja() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "private Get() {}", "private Get() {}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public abstract void mo27464a();", "public abstract String mo41079d();", "@Override\n\tpublic void classroom() {\n\t\t\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void logic() {\n\n\t}", "public abstract void mo102899a();", "@SuppressWarnings(\"unused\")\n private void _read() {\n }", "public abstract void mo42329d();", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "public void method_4270() {}", "public abstract void mo6549b();", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "protected void init() {\n // to override and use this method\n }" ]
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.6406691", "0.6402136", "0.6400287", "0.63977665", "0.63784796", "0.6373787", "0.63716805", "0.63680965", "0.6353791", "0.63344383", "0.6327005", "0.6327005", "0.63259363", "0.63079315", "0.6279023", "0.6271251", "0.62518364", "0.62254924", "0.62218183", "0.6213994", "0.6204108", "0.6195944", "0.61826825", "0.617686", "0.6158371", "0.6138765", "0.61224854", "0.6119267", "0.6119013", "0.61006695", "0.60922325", "0.60922325", "0.6086324", "0.6083917", "0.607071", "0.6070383", "0.6067458", "0.60568124", "0.6047576", "0.6047091", "0.60342956", "0.6031699", "0.6026248", "0.6019563", "0.60169774", "0.6014913", "0.6011912", "0.59969044", "0.59951806", "0.5994921", "0.599172", "0.59913194", "0.5985337", "0.59844744", "0.59678656", "0.5966894", "0.5966894", "0.5966894", "0.5966894", "0.5966894", "0.5966894", "0.59647757", "0.59647757", "0.59616375", "0.5956373", "0.5952514", "0.59497356", "0.59454703", "0.5941018", "0.5934147", "0.5933801", "0.59318185", "0.5931161", "0.5929297", "0.5926942", "0.5925829", "0.5924853", "0.5923296", "0.5922199", "0.59202504", "0.5918595" ]
0.0
-1
/ access modifiers changed from: protected
public boolean isJdk14Available() { return isLogLibraryAvailable("Jdk14", LOGGING_IMPL_JDK14_LOGGER); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private abstract void privateabstract();", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\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 ligar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void smell() {\n\t\t\n\t}", "public abstract Object mo26777y();", "protected void h() {}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "protected abstract Set method_1559();", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public abstract void mo70713b();", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "protected Doodler() {\n\t}", "public abstract void mo27386d();", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "private PropertyAccess() {\n\t\tsuper();\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public abstract void mo56925d();", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void init() {\n }", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public abstract void mo27385c();", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public abstract void mo30696a();", "abstract int pregnancy();", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "@Override\n public void init() {\n\n }", "@Override\n void init() {\n }", "@Override\n\tpublic void leti() \n\t{\n\t}", "private TMCourse() {\n\t}", "public abstract void mo35054b();", "@Override\n public void init() {\n }", "@Override\n\tpublic void buscar() {\n\t\t\n\t}", "private Infer() {\n\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tpublic void erstellen() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public final void mo51373a() {\n }", "protected void method_3848() {\r\n super.method_3848();\r\n }", "protected FanisamBato(){\n\t}", "public abstract Object mo1771a();", "public abstract void m15813a();", "public void gored() {\n\t\t\n\t}", "@Override\n public void get() {}", "@Override\n\tpublic void dibuja() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "private Get() {}", "private Get() {}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public abstract void mo27464a();", "public abstract String mo41079d();", "@Override\n\tpublic void classroom() {\n\t\t\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void logic() {\n\n\t}", "public abstract void mo102899a();", "@SuppressWarnings(\"unused\")\n private void _read() {\n }", "public abstract void mo42329d();", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "public void method_4270() {}", "public abstract void mo6549b();", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "protected void init() {\n // to override and use this method\n }" ]
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.6406691", "0.6402136", "0.6400287", "0.63977665", "0.63784796", "0.6373787", "0.63716805", "0.63680965", "0.6353791", "0.63344383", "0.6327005", "0.6327005", "0.63259363", "0.63079315", "0.6279023", "0.6271251", "0.62518364", "0.62254924", "0.62218183", "0.6213994", "0.6204108", "0.6195944", "0.61826825", "0.617686", "0.6158371", "0.6138765", "0.61224854", "0.6119267", "0.6119013", "0.61006695", "0.60922325", "0.60922325", "0.6086324", "0.6083917", "0.607071", "0.6070383", "0.6067458", "0.60568124", "0.6047576", "0.6047091", "0.60342956", "0.6031699", "0.6026248", "0.6019563", "0.60169774", "0.6014913", "0.6011912", "0.59969044", "0.59951806", "0.5994921", "0.599172", "0.59913194", "0.5985337", "0.59844744", "0.59678656", "0.5966894", "0.5966894", "0.5966894", "0.5966894", "0.5966894", "0.5966894", "0.59647757", "0.59647757", "0.59616375", "0.5956373", "0.5952514", "0.59497356", "0.59454703", "0.5941018", "0.5934147", "0.5933801", "0.59318185", "0.5931161", "0.5929297", "0.5926942", "0.5925829", "0.5924853", "0.5923296", "0.5922199", "0.59202504", "0.5918595" ]
0.0
-1
/ access modifiers changed from: protected
public boolean isLog4JAvailable() { return isLogLibraryAvailable("Log4J", LOGGING_IMPL_LOG4J_LOGGER); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private abstract void privateabstract();", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\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 ligar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void smell() {\n\t\t\n\t}", "public abstract Object mo26777y();", "protected void h() {}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "protected abstract Set method_1559();", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public abstract void mo70713b();", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "protected Doodler() {\n\t}", "public abstract void mo27386d();", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "private PropertyAccess() {\n\t\tsuper();\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public abstract void mo56925d();", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void init() {\n }", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public abstract void mo27385c();", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public abstract void mo30696a();", "abstract int pregnancy();", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "@Override\n public void init() {\n\n }", "@Override\n void init() {\n }", "@Override\n\tpublic void leti() \n\t{\n\t}", "private TMCourse() {\n\t}", "public abstract void mo35054b();", "@Override\n public void init() {\n }", "@Override\n\tpublic void buscar() {\n\t\t\n\t}", "private Infer() {\n\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tpublic void erstellen() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public final void mo51373a() {\n }", "protected void method_3848() {\r\n super.method_3848();\r\n }", "protected FanisamBato(){\n\t}", "public abstract Object mo1771a();", "public abstract void m15813a();", "public void gored() {\n\t\t\n\t}", "@Override\n public void get() {}", "@Override\n\tpublic void dibuja() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "private Get() {}", "private Get() {}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public abstract void mo27464a();", "public abstract String mo41079d();", "@Override\n\tpublic void classroom() {\n\t\t\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void logic() {\n\n\t}", "public abstract void mo102899a();", "@SuppressWarnings(\"unused\")\n private void _read() {\n }", "public abstract void mo42329d();", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "public void method_4270() {}", "public abstract void mo6549b();", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "protected void init() {\n // to override and use this method\n }" ]
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.6406691", "0.6402136", "0.6400287", "0.63977665", "0.63784796", "0.6373787", "0.63716805", "0.63680965", "0.6353791", "0.63344383", "0.6327005", "0.6327005", "0.63259363", "0.63079315", "0.6279023", "0.6271251", "0.62518364", "0.62254924", "0.62218183", "0.6213994", "0.6204108", "0.6195944", "0.61826825", "0.617686", "0.6158371", "0.6138765", "0.61224854", "0.6119267", "0.6119013", "0.61006695", "0.60922325", "0.60922325", "0.6086324", "0.6083917", "0.607071", "0.6070383", "0.6067458", "0.60568124", "0.6047576", "0.6047091", "0.60342956", "0.6031699", "0.6026248", "0.6019563", "0.60169774", "0.6014913", "0.6011912", "0.59969044", "0.59951806", "0.5994921", "0.599172", "0.59913194", "0.5985337", "0.59844744", "0.59678656", "0.5966894", "0.5966894", "0.5966894", "0.5966894", "0.5966894", "0.5966894", "0.59647757", "0.59647757", "0.59616375", "0.5956373", "0.5952514", "0.59497356", "0.59454703", "0.5941018", "0.5934147", "0.5933801", "0.59318185", "0.5931161", "0.5929297", "0.5926942", "0.5925829", "0.5924853", "0.5923296", "0.5922199", "0.59202504", "0.5918595" ]
0.0
-1
/ access modifiers changed from: protected
public Log newInstance(String str) { Log log; try { if (this.logConstructor == null) { log = discoverLogImplementation(str); } else { log = (Log) this.logConstructor.newInstance(new Object[]{str}); } if (this.logMethod != null) { this.logMethod.invoke(log, new Object[]{this}); } return log; } catch (LogConfigurationException e) { throw e; } catch (InvocationTargetException e2) { Throwable targetException = e2.getTargetException(); if (targetException != null) { throw new LogConfigurationException(targetException); } throw new LogConfigurationException((Throwable) e2); } catch (Throwable th) { throw new LogConfigurationException(th); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private abstract void privateabstract();", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\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 ligar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void smell() {\n\t\t\n\t}", "public abstract Object mo26777y();", "protected void h() {}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "protected abstract Set method_1559();", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public abstract void mo70713b();", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "protected Doodler() {\n\t}", "public abstract void mo27386d();", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "private PropertyAccess() {\n\t\tsuper();\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public abstract void mo56925d();", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void init() {\n }", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public abstract void mo27385c();", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public abstract void mo30696a();", "abstract int pregnancy();", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "@Override\n public void init() {\n\n }", "@Override\n void init() {\n }", "@Override\n\tpublic void leti() \n\t{\n\t}", "private TMCourse() {\n\t}", "public abstract void mo35054b();", "@Override\n public void init() {\n }", "@Override\n\tpublic void buscar() {\n\t\t\n\t}", "private Infer() {\n\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tpublic void erstellen() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public final void mo51373a() {\n }", "protected void method_3848() {\r\n super.method_3848();\r\n }", "protected FanisamBato(){\n\t}", "public abstract Object mo1771a();", "public abstract void m15813a();", "public void gored() {\n\t\t\n\t}", "@Override\n public void get() {}", "@Override\n\tpublic void dibuja() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "private Get() {}", "private Get() {}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public abstract void mo27464a();", "public abstract String mo41079d();", "@Override\n\tpublic void classroom() {\n\t\t\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void logic() {\n\n\t}", "public abstract void mo102899a();", "@SuppressWarnings(\"unused\")\n private void _read() {\n }", "public abstract void mo42329d();", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "public void method_4270() {}", "public abstract void mo6549b();", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "protected void init() {\n // to override and use this method\n }" ]
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.6406691", "0.6402136", "0.6400287", "0.63977665", "0.63784796", "0.6373787", "0.63716805", "0.63680965", "0.6353791", "0.63344383", "0.6327005", "0.6327005", "0.63259363", "0.63079315", "0.6279023", "0.6271251", "0.62518364", "0.62254924", "0.62218183", "0.6213994", "0.6204108", "0.6195944", "0.61826825", "0.617686", "0.6158371", "0.6138765", "0.61224854", "0.6119267", "0.6119013", "0.61006695", "0.60922325", "0.60922325", "0.6086324", "0.6083917", "0.607071", "0.6070383", "0.6067458", "0.60568124", "0.6047576", "0.6047091", "0.60342956", "0.6031699", "0.6026248", "0.6019563", "0.60169774", "0.6014913", "0.6011912", "0.59969044", "0.59951806", "0.5994921", "0.599172", "0.59913194", "0.5985337", "0.59844744", "0.59678656", "0.5966894", "0.5966894", "0.5966894", "0.5966894", "0.5966894", "0.5966894", "0.59647757", "0.59647757", "0.59616375", "0.5956373", "0.5952514", "0.59497356", "0.59454703", "0.5941018", "0.5934147", "0.5933801", "0.59318185", "0.5931161", "0.5929297", "0.5926942", "0.5925829", "0.5924853", "0.5923296", "0.5922199", "0.59202504", "0.5918595" ]
0.0
-1
This method uses the graph objects which are reffed by the node matching but checks to see that they are still in the graph. (The graph will change as a result of path splitting.)
private void matchOnlyCurrentGraphState(TaskMonitor monitor) { // make a new list of the matched nodes, to avoid concurrent // modification problems List matchedNodes = getMatchedNodesOrdered(); int total = matchedNodes.size(); int count = 0; for (Iterator nodeIt = matchedNodes.iterator(); nodeIt.hasNext();) { count++; monitor.report(count, total, "Paths tested"); if (monitor.isCancelRequested()) break; RoadNode subNode = (RoadNode) nodeIt.next(); if (subNode.isMatched()) { RoadNode matchNode = subNode.getMatch(); NodeMatching matching = subNode.getMatching(); matchPathsFromNodes(matching); } } DebugFeature.saveFeatures(MATCH, "Y:\\jcs\\testUnit\\roads\\pathMatches.jml"); DebugFeature.saveFeatures(SPLIT, "Y:\\jcs\\testUnit\\roads\\pathSplits.jml"); Debug.println("paths matched = " + pathMatchCount); Debug.println("splits matched = " + splitMatchCount); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void removeNoMoreExistingOriginalNodes() {\n for (Node mirrorNode : mirrorGraph.nodes()) {\n if (!isPartOfMirrorEdge(mirrorNode) && !originalGraph.has(mirrorNode)) {\n mirrorGraph.remove(mirrorNode);\n }\n }\n }", "private void checkTargetsReachable(){\n\t\tPathfinder pathfinder = new Pathfinder(collisionMatrix);\n\t\tLinkedList<Node> removeList = new LinkedList<Node>();\n\t\tboolean pathWasFound = false;\n\t\tLinkedList<Node> currentPath;\n\t\tLinkedList<Node> reversePath;\n\t\t\n\t\t//Go through all starting positions\n\t\tfor(LinkedList<Node> startList : targets){\n\t\t\tprogress += 8;\n\t\t\tsetProgress(progress);\n\t\t\tfor(Node startNode : startList){\n\t\t\t\t\n\t\t\t\tboolean outsideMap = (startNode.getCollisionXPos(scaleCollision) < 0 || startNode.getCollisionXPos(scaleCollision) >= (collisionMatrix.length-1) || startNode.getCollisionYPos(scaleCollision) < 0 || startNode.getCollisionYPos(scaleCollision) >= (collisionMatrix.length-1));\n\t\t\t\t\n\t\t\t\tpathWasFound = false;\n\t\t\t\t//Make sure that target is inside of map\n\t\t\t\tif(!outsideMap){\n\t\t\t\t\t//Check against all target positions\n\t\t\t\t\tfor(LinkedList<Node> targetList : targets){\n\t\t\t\t\t\tfor(Node targetNode : targetList){\n\t\t\t\t\t\t\t//Only check against targets that have not already been marked as unreachable\n\t\t\t\t\t\t\tboolean selfCheck = (targetNode.getXPos() != startNode.getXPos() || targetNode.getYPos() != startNode.getYPos());\n\t\t\t\t\t\t\tif(!removeList.contains(targetNode) && selfCheck){\n\t\t\t\t\t\t\t\t//Check if this path has already been checked\n\t\t\t\t\t\t\t\tif(!preCalculatedPaths.containsKey(startNode.toStringCollision(scaleCollision) + \"-\" + targetNode.toStringCollision(scaleCollision))){\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tcurrentPath = new LinkedList<Node>();\n\t\t\t\t\t\t\t\t\t//Check if a path can be found for this start and target node\n\t\t\t\t\t\t\t\t\tif(pathfinder.findPath(startNode.getCollisionXPos(scaleCollision), startNode.getCollisionYPos(scaleCollision), targetNode.getCollisionXPos(scaleCollision), targetNode.getCollisionYPos(scaleCollision), currentPath)){\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tif(Frame.USE_PRECALCULATED_PATHS)\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tpreCalculatedPaths.put(startNode.toStringCollision(scaleCollision) + \"-\" + targetNode.toStringCollision(scaleCollision), currentPath);\n\t\t\t\t\t\t\t\t\t\t\treversePath = new LinkedList<Node>();\n\t\t\t\t\t\t\t\t\t\t\treversePath.addAll(currentPath);\n\t\t\t\t\t\t\t\t\t\t\tCollections.reverse(reversePath);\n\t\t\t\t\t\t\t\t\t\t\treversePath.removeFirst();\n\t\t\t\t\t\t\t\t\t\t\treversePath.add(startNode);\n\t\t\t\t\t\t\t\t\t\t\tpreCalculatedPaths.put(targetNode.toStringCollision(scaleCollision) + \"-\" + startNode.toStringCollision(scaleCollision) ,reversePath);\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\tpathWasFound = true;\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\telse{\n\t\t\t\t\t\t\t\t\tpathWasFound = 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}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//Remove nodes which we cannot find a path from\n\t\t\t\tif(!pathWasFound){\n\t\t\t\t\tremoveList.add(startNode);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Go through the remove list and remove unreachable nodes\n\t\tfor(Node node : removeList){\n\t\t\tfor(LinkedList<Node> startList : targets){\n\t\t\t\tstartList.remove(node);\n\t\t\t}\n\t\t}\n\t}", "public boolean augmentedPath(){\n QueueMaxHeap<GraphNode> queue = new QueueMaxHeap<>();\n graphNode[0].visited = true;//this is so nodes are not chosen again\n queue.add(graphNode[0]);\n boolean check = false;\n while(!queue.isEmpty()){//goes through and grabs each node and visits that nodes successors, will stop when reaches T or no flow left in system from S to T\n GraphNode node = queue.get();\n for(int i = 0; i < node.succ.size(); i++){//this will get all the nodes successors\n GraphNode.EdgeInfo info = node.succ.get(i);\n int id = info.to;\n if(!graphNode[id].visited && graph.flow[info.from][info.to][1] != 0){//this part just make sure it hasn't been visited and that it still has flow\n graphNode[id].visited = true;\n graphNode[id].parent = info.from;\n queue.add(graphNode[id]);\n if(id == t){//breaks here because it has found the last node\n check = true;\n setNodesToUnvisited();\n break;\n }\n }\n }\n if(check){\n break;\n }\n }\n return queue.isEmpty();\n }", "@Override\n\tpublic boolean isConnected() {\n\t\tif(this.GA.nodeSize() ==1 || this.GA.nodeSize()==0) return true;\n\t\tgraph copied = this.copy();\n\t\ttagZero(copied);\n\t\tCollection<node_data> s = copied.getV();\n\t\tIterator it = s.iterator();\n\t\tnode_data temp = (node_data) it.next();\n\t\tDFSUtil(copied,temp);\n\t\tfor (node_data node : s) {\n\t\t\tif (node.getTag() == 0) return false;\n\t\t}\n\t\ttransPose(copied);\n\t\ttagZero(copied);\n\t Collection<node_data> s1 = copied.getV();\n\t\tIterator it1 = s1.iterator();\n\t\tnode_data temp1 = (node_data) it1.next();\n\t\tDFSUtil(copied,temp1);\n\t\tfor (node_data node1 : s1) {\n\t\t\tif (node1.getTag() == 0) return false;\n\t\t}\n\n\t\treturn true;\n\t}", "private List<List<Edge>> walker(String sourceNode, String destNode, List<Edge> currentPath, List<List<Edge>> paths) {\n if (currentPath == null) {\n currentPath = new ArrayList<>();\n }\n if (paths == null) {\n paths = new ArrayList<>();\n }\n\n if (sourceNode.equals(destNode)) {\n return paths;\n }\n\n\n// List<Edge> edges = findByNodeA(sourceNode);\n List<Edge> edges = allEdges.stream().filter(edge -> edge.nodeA.equals(sourceNode)).collect(Collectors.toList());\n\n\n for (Edge edge : edges) {\n if (!currentPath.contains(edge)&&!containsBidirectionalRef(currentPath,edge)) {\n List<Edge> forkPath = (List<Edge>) ((ArrayList<Edge>) currentPath).clone();\n\n forkPath.add(edge);\n\n if (edge.getNodeB().equals(destNode)) {\n paths.add(forkPath);\n } else {\n walker(edge.getNodeB(), destNode,forkPath,paths);\n }\n }\n }\n\n return paths;\n }", "@Override\n public boolean isConnected() { //i got help from the site https://www.geeksforgeeks.org/shortest-path-unweighted-graph/\n if(this.ga.edgeSize()<this.ga.nodeSize()-1) return false;\n initializeInfo();//initialize all the info fields to be null for the algorithm to work\n if(this.ga.nodeSize()==0||this.ga.nodeSize()==1) return true;//if there is not node or one its connected\n WGraph_DS copy = (WGraph_DS) (copy());//create a copy graph that the algorithm will on it\n LinkedList<node_info> qValues = new LinkedList<>();//create linked list that will storage all nodes that we didn't visit yet\n int firstNodeKey = copy.getV().iterator().next().getKey();//first key for get the first node(its doesnt matter which node\n node_info first = copy.getNode(firstNodeKey);//get the node\n qValues.add(first);//without limiting generality taking the last node added to graph\n int counterVisitedNodes = 0;//counter the times we change info of node to \"visited\"\n while (qValues.size() != 0) {\n node_info current = qValues.removeFirst();\n if (current.getInfo() != null) continue;//if we visit we can skip to the next loop because we have already marked\n current.setInfo(\"visited\");//remark the info\n counterVisitedNodes++;\n\n Collection<node_info> listNeighbors = copy.getV(current.getKey());//create a collection for the neighbors list\n LinkedList<node_info> Neighbors = new LinkedList<>(listNeighbors);//create the neighbors list\n if (Neighbors == null) continue;\n for (node_info n : Neighbors) {\n if (n.getInfo() == null) {//if there is a node we didn't visited it yet, we will insert it to the linkedList\n qValues.add(n);\n }\n }\n }\n if (this.ga.nodeSize() != counterVisitedNodes) return false;//check that we visited all of the nodes\n\n return true;\n }", "public void setNodesToUnvisited(){\n for(GraphNode node: graphNode){\n if(node.visited){\n node.visited = false;\n }\n }\n }", "private List<Set<GraphChange>> findChanges(Map<Collection<Node>, List<PossibleDConnectingPath>> paths) {\n List<Set<GraphChange>> pagChanges = new ArrayList<>();\n\n Set<Map.Entry<Collection<Node>, List<PossibleDConnectingPath>>> entries = paths.entrySet();\n /* Loop through each entry, ie each conditioned set of variables. */\n for (Map.Entry<Collection<Node>, List<PossibleDConnectingPath>> entry : entries) {\n Collection<Node> conditions = entry.getKey();\n List<PossibleDConnectingPath> dConnecting = entry.getValue();\n\n /* loop through each path */\n for (PossibleDConnectingPath possible : dConnecting) {\n List<Node> possPath = possible.getPath();\n /* Created with 2*# of undirectedPaths as appoximation. might have to increase size once */\n Set<GraphChange> pathChanges = new HashSet<>(2 * possPath.size());\n\n /* find those conditions which are not along the path (used in colider) */\n List<Node> outsidePath = new ArrayList<>(conditions.size());\n for (Node condition : conditions) {\n if (!possPath.contains(condition))\n outsidePath.add(condition);\n }\n\n /* Walk through path, node by node */\n for (int i = 0; i < possPath.size() - 1; i++) {\n Node current = possPath.get(i);\n Node next = possPath.get(i + 1);\n GraphChange gc;\n\n /* for each pair of nodes, add the operation to remove their edge */\n gc = new GraphChange();\n gc.addRemove(possible.getPag().getEdge(current, next));\n pathChanges.add(gc);\n\n /* for each triple centered on a node which is an element of the conditioning\n * set, add the operation to orient as a nonColider around that node */\n if (conditions.contains(current) && i > 0) {\n gc = new GraphChange();\n Triple nonColider = new Triple(possPath.get(i - 1), current, next);\n gc.addNonCollider(nonColider);\n pathChanges.add(gc);\n }\n\n /* for each node on the path not in the conditioning set, make a colider. It\n * is necessary though to ensure that there are no undirectedPaths implying that a\n * conditioned variable (even outside the path) is a decendant of a colider */\n if ((!conditions.contains(current)) && i > 0) {\n Triple colider = new Triple(possPath.get(i - 1), current, next);\n\n if (possible.getPag().isUnderlineTriple(possPath.get(i - 1), current, next))\n continue;\n\n Edge edge1 = possible.getPag().getEdge(colider.getX(), colider.getY());\n Edge edge2 = possible.getPag().getEdge(colider.getZ(), colider.getY());\n\n if (edge1.getNode1().equals(colider.getY())) {\n if (edge1.getEndpoint1().equals(Endpoint.TAIL)) {\n continue;\n }\n } else if (edge1.getNode2().equals(colider.getY())) {\n if (edge1.getEndpoint2().equals(Endpoint.TAIL)) {\n continue;\n }\n }\n\n if (edge2.getNode1().equals(colider.getY())) {\n if (edge2.getEndpoint1().equals(Endpoint.TAIL)) {\n continue;\n }\n } else if (edge2.getNode2().equals(colider.getY())) {\n if (edge2.getEndpoint2().equals(Endpoint.TAIL)) {\n continue;\n }\n }\n\n /* Simple case, no conditions outside the path, so just add colider */\n if (outsidePath.size() == 0) {\n gc = new GraphChange();\n gc.addCollider(colider);\n pathChanges.add(gc);\n continue;\n }\n\n /* ensure nondecendency in possible path between getModel and each conditioned\n * variable outside the path */\n for (Node outside : outsidePath) {\n\n /* list of possible decendant undirectedPaths */\n\n List<PossibleDConnectingPath> decendantPaths = new ArrayList<>();\n decendantPaths\n = PossibleDConnectingPath.findDConnectingPaths\n (possible.getPag(), current, outside, new ArrayList<Node>());\n\n if (decendantPaths.isEmpty()) {\n gc = new GraphChange();\n gc.addCollider(colider);\n pathChanges.add(gc);\n continue;\n }\n\n /* loop over each possible path which might indicate decendency */\n for (PossibleDConnectingPath decendantPDCPath : decendantPaths) {\n List<Node> decendantPath = decendantPDCPath.getPath();\n\n /* walk down path checking orientation (path may already\n * imply non-decendency) and creating changes if need be*/\n boolean impliesDecendant = true;\n Set<GraphChange> colideChanges = new HashSet<>();\n for (int j = 0; j < decendantPath.size() - 1; j++) {\n Node from = decendantPath.get(j);\n // chaneges from +1\n Node to = decendantPath.get(j + 1);\n Edge currentEdge = possible.getPag().getEdge(from, to);\n\n if (currentEdge.getEndpoint1().equals(Endpoint.ARROW)) {\n impliesDecendant = false;\n break;\n }\n\n gc = new GraphChange();\n gc.addCollider(colider);\n gc.addRemove(currentEdge);\n colideChanges.add(gc);\n\n gc = new GraphChange();\n gc.addCollider(colider);\n gc.addOrient(to, from);\n colideChanges.add(gc);\n }\n if (impliesDecendant)\n pathChanges.addAll(colideChanges);\n }\n }\n }\n }\n\n pagChanges.add(pathChanges);\n }\n }\n return pagChanges;\n }", "@Test\n public void tr1()\n {\n Graph graph = new Graph(2);\n Set<Integer> sources = new TreeSet<Integer>();\n Set<Integer> targets = new TreeSet<Integer>();\n sources.add(0);\n targets.add(1);\n assertFalse(graph.reachable(sources, targets));\n }", "private void BFS() {\n\n int fruitIndex = vertices.size()-1;\n Queue<GraphNode> bfsQueue = new LinkedList<>();\n bfsQueue.add(vertices.get(0));\n while (!bfsQueue.isEmpty()) {\n GraphNode pollNode = bfsQueue.poll();\n pollNode.setSeen(true);\n for (GraphNode node : vertices) {\n if (node.isSeen()) {\n continue;\n } else if (node.getID() == pollNode.getID()) {\n continue;\n } else if (!los.isIntersects(pollNode.getPoint(), node.getPoint())) {\n pollNode.getNeigbours().add(node);\n if (node.getID() != fruitIndex) {\n bfsQueue.add(node);\n node.setSeen(true);\n }\n }\n }\n }\n }", "@Test\r\n void insert_multiple_vertexes_and_edges_remove_vertex() {\r\n graph.addEdge(\"A\", \"B\");\r\n graph.addEdge(\"B\", \"C\");\r\n graph.addEdge(\"A\", \"C\");\r\n graph.addEdge(\"B\", \"D\");\r\n \r\n List<String> adjacent;\r\n vertices = graph.getAllVertices(); \r\n int numberOfEdges = graph.size();\r\n int numberOfVertices = graph.order();\r\n if(numberOfEdges != 4) {\r\n fail();\r\n }\r\n if(numberOfVertices != 4) {\r\n fail();\r\n }\r\n \r\n // Check that graph has all added vertexes\r\n if(!vertices.contains(\"A\")| !vertices.contains(\"B\")|\r\n !vertices.contains(\"C\")|!vertices.contains(\"D\")) {\r\n fail();\r\n }\r\n \r\n // Check that A's outgoing edges are correct\r\n adjacent = graph.getAdjacentVerticesOf(\"A\");\r\n if (!adjacent.contains(\"B\") || !adjacent.contains(\"C\"))\r\n fail();\r\n // Check that B's outgoing edges are correct\r\n adjacent = graph.getAdjacentVerticesOf(\"B\");\r\n if (!adjacent.contains(\"C\") | !adjacent.contains(\"D\"))\r\n fail(); \r\n // C and D have no out going edges \r\n adjacent = graph.getAdjacentVerticesOf(\"C\");\r\n if (!adjacent.isEmpty())\r\n fail(); \r\n adjacent = graph.getAdjacentVerticesOf(\"D\");\r\n if (!adjacent.isEmpty())\r\n fail(); \r\n // Remove B from the graph \r\n graph.removeVertex(\"B\");\r\n // Check that A's outgoing edges are correct\r\n // An edge to B should no exist any more \r\n adjacent = graph.getAdjacentVerticesOf(\"A\");\r\n if (adjacent.contains(\"B\") || !adjacent.contains(\"C\"))\r\n fail();\r\n // There should be no elements in the list of successors\r\n // of B since its deleted form the graph\r\n adjacent = graph.getAdjacentVerticesOf(\"B\");\r\n if (!adjacent.isEmpty())\r\n fail(); \r\n // Check that graph has still has all vertexes not removed\r\n if(!vertices.contains(\"A\")| !vertices.contains(\"C\")|\r\n !vertices.contains(\"D\")) {\r\n fail();\r\n }\r\n //Check that vertex B was removed from graph \r\n if(vertices.contains(\"B\")) {\r\n fail();\r\n }\r\n numberOfEdges = graph.size();\r\n numberOfVertices = graph.order();\r\n if(numberOfEdges != 1) {\r\n fail();\r\n }\r\n if(numberOfVertices != 3) {\r\n fail();\r\n }\r\n }", "@Test\n public void Test7() {\n TreeNode t1 = new TreeNode(1);\n TreeNode t2 = new TreeNode(2);\n TreeNode t3 = new TreeNode(3);\n TreeNode.connect(t2, null, t3);\n TreeNode.connect(t3, t1, null);\n TreeNode root = t2;\n\n TreeNode e1 = new TreeNode(1);\n TreeNode e2 = new TreeNode(2);\n TreeNode e3 = new TreeNode(3);\n TreeNode.connect(e1, null, e3);\n TreeNode.connect(e3, e2, null);\n TreeNode expected = e1;\n\n solution.recoverTree(root);\n assertTrue(TreeNode.isSameTree(expected, root));\n }", "private void reachable() {\r\n\r\n\t\tSortedSet<String> keys = new TreeSet<String>(vertexMap.keySet());\r\n\t\tIterator it = keys.iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tVertex v = vertexMap.get(it.next());\r\n\t\t\tif (v.isStatus()) {\r\n\t\t\t\tSystem.out.println(v.getName());\r\n\t\t\t\tbfs(v);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public abstract Multigraph buildMatchedGraph();", "@Override\n List<NodeData> pathFind() throws NoPathException {\n System.out.println(\"Starting Scenic\");\n\n frontier.add(start);\n\n while(!frontier.isEmpty()) {\n StarNode current = frontier.getLast();\n frontier.removeLast(); // pop the priority queue\n if(current.getXCoord() == goal.getXCoord() && current.getYCoord() == goal.getYCoord()) {\n // If we are at the goal, we need to backtrack through the shortest path\n System.out.println(\"At target!\");\n finalList.add(current); // we have to add the goal to the path before we start backtracking\n while(!(current.getXCoord() == start.getXCoord() && current.getYCoord() == start.getYCoord())) {\n finalList.add(current.getPreviousNode());\n current = current.getPreviousNode();\n System.out.println(current.getNodeID());\n }\n return finalList;\n }\n else {\n // we need to get all the neighbor nodes, identify their costs, and put them into the queue\n LinkedList<StarNode> neighbors = current.getNeighbors();\n // we also need to remove the previous node from the list of neighbors because we do not want to backtrack\n neighbors.remove(current.getPreviousNode());\n\n for (StarNode newnode : neighbors) {\n int nodePlace = this.listContainsId(frontier, newnode);\n if(nodePlace > -1) {\n if (frontier.get(nodePlace).getF() > actionCost(newnode) + distanceToGo(newnode, goal)) {\n System.out.println(\"Here\");\n frontier.remove(frontier.get(nodePlace));\n newnode.setPreviousNode(current);\n frontier.add(newnode);\n newnode.setF(actionCost(newnode) + distanceToGo(newnode, goal));\n }\n }\n else {\n newnode.setPreviousNode(current);\n frontier.add(newnode);\n newnode.setF(actionCost(newnode) + distanceToGo(newnode, goal));\n }\n\n // This fixes the problem with infinitely looping elevators (I hope)\n if(current.getNodeType().equals(\"ELEV\") && newnode.getNodeType().equals(\"ELEV\")) {\n for (Iterator<StarNode> iterator = newnode.neighbors.iterator(); iterator.hasNext();) {\n StarNode newneighbor = iterator.next();\n if (newneighbor.getNodeType().equals(\"ELEV\")) {\n // Remove the current element from the iterator and the list.\n iterator.remove();\n }\n }\n }\n if(current.getNodeType().equals(\"STAI\") && newnode.getNodeType().equals(\"STAI\")) {\n for (Iterator<StarNode> iterator = newnode.neighbors.iterator(); iterator.hasNext();) {\n StarNode newneighbor = iterator.next();\n if (newneighbor.getNodeType().equals(\"STAI\")) {\n // Remove the current element from the iterator and the list.\n iterator.remove();\n }\n }\n }\n // this is where the node is put in the right place in the queue\n Collections.sort(frontier);\n }\n }\n }\n throw new NoPathException(start.getLongName(), goal.getLongName());\n }", "Set<String> bfsTraversal(Graph graph, String root) {\n Set<String> seen = new LinkedHashSet<String>();\n Queue<String> queue = new LinkedList<String>();\n queue.add(root);\n seen.add(root);\n\n while (!queue.isEmpty()) {\n String node = queue.poll();\n for (Node n : graph.getAdjacentNodes(node)) {\n if (!seen.contains(n.data)) {\n seen.add(n.data);\n queue.add(n.data);\n }\n }\n }\n\n return seen;\n }", "@Test\r\n void test_remove_same_edge_twice() {\r\n // Add two vertices with one edge\r\n graph.addEdge(\"A\", \"B\");\r\n graph.addEdge(\"A\", \"C\");\r\n graph.removeEdge(\"A\", \"B\");\r\n graph.removeEdge(\"A\", \"B\");\r\n if (graph.size() != 1) {\r\n fail();\r\n }\r\n if (graph.getAdjacentVerticesOf(\"A\").contains(\"B\")) {\r\n fail();\r\n } \r\n }", "@Override\n public boolean isConnected() {\n for (node_data n : G.getV()) {\n bfs(n.getKey());\n for (node_data node : G.getV()) {\n if (node.getTag() == 0)\n return false;\n }\n }\n return true;\n }", "private void markUnreachableConnections(Map<String, AirportNode> airportGraph, List<AirportNode> unreachableAirportNodes) {\n // for each unreachable airport, find all unreachable connections\n for (AirportNode airportNode : unreachableAirportNodes) {\n String airport = airportNode.airport;\n List<String> unreachableConnections = new ArrayList<>();\n Set<String> visitedAirports = new HashSet<>();\n depthFirstAddUnreachableConnections(airportGraph, airport, unreachableConnections, visitedAirports);\n airportNode.unreachableConnections = unreachableConnections;\n }\n }", "private boolean addIfUseful(HashSet visited, HashSet path, Node n) {\n if (path.contains(n)) return true;\n path.add(n);\n if (visited.contains(n)) return nodes.containsKey(n);\n visited.add(n);\n boolean useful = false;\n if (nodes.containsKey(n)) {\n if (TRACE_INTER) out.println(\"Useful: \"+n);\n useful = true;\n }\n if (n instanceof UnknownTypeNode) {\n path.remove(n);\n return true;\n }\n if (n.addedEdges != null) {\n if (TRACE_INTER) out.println(\"Useful because of added edge: \"+n);\n useful = true;\n for (Iterator i = n.getNonEscapingEdgeTargets().iterator(); i.hasNext(); ) {\n addAsUseful(visited, path, (Node) i.next());\n }\n }\n if (n.accessPathEdges != null) {\n for (Iterator i = n.accessPathEdges.entrySet().iterator(); i.hasNext(); ) {\n java.util.Map.Entry e = (java.util.Map.Entry)i.next();\n //jq_Field f = (jq_Field)e.getKey();\n Object o = e.getValue();\n if (o instanceof Node) {\n if (addIfUseful(visited, path, (Node)o)) {\n if (TRACE_INTER && !useful) out.println(\"Useful because outside edge: \"+n+\"->\"+o);\n useful = true;\n } else {\n if (n != o) i.remove();\n }\n } else {\n for (Iterator j=((Set)o).iterator(); j.hasNext(); ) {\n Node n2 = (Node)j.next();\n if (addIfUseful(visited, path, n2)) {\n if (TRACE_INTER && !useful) out.println(\"Useful because outside edge: \"+n+\"->\"+n2);\n useful = true;\n } else {\n if (n != n2) j.remove();\n }\n }\n if (!useful) i.remove();\n }\n }\n }\n if (castPredecessors.contains(n)) {\n for (Iterator i = castMap.entrySet().iterator(); i.hasNext(); ) {\n Map.Entry e = (Map.Entry)i.next();\n Node goestocast = (Node)((Pair)e.getKey()).left;\n CheckCastNode castsucc = (CheckCastNode)e.getValue();\n // Call \"addIfUseful()\" on all successor checkcast nodes, and set the \"useful\" flag if the call returns true.\n if (n == goestocast && addIfUseful(visited, path, castsucc))\n useful = true;\n }\n }\n if (n instanceof ReturnedNode) {\n if (TRACE_INTER && !useful) out.println(\"Useful because ReturnedNode: \"+n);\n useful = true;\n }\n if (n.predecessors != null) {\n useful = true;\n if (TRACE_INTER && !useful) out.println(\"Useful because target of added edge: \"+n);\n for (Iterator i = n.getPredecessorTargets().iterator(); i.hasNext(); ) {\n addAsUseful(visited, path, (Node) i.next());\n }\n }\n if (useful) {\n this.nodes.put(n, n);\n if (n instanceof FieldNode) {\n FieldNode fn = (FieldNode)n;\n for (Iterator i = fn.getAccessPathPredecessors().iterator(); i.hasNext(); ) {\n addAsUseful(visited, path, (Node)i.next());\n }\n }\n if (n instanceof CheckCastNode) {\n // If the \"useful\" flag is true and the node is a checkcast node,\n // call \"addAsUseful()\" on all predecessors.\n Quad thiscast = ((QuadProgramLocation)((CheckCastNode)n).getLocation()).getQuad();\n for (Iterator i = castPredecessors.iterator(); i.hasNext(); ) {\n Node goestocast = (Node)i.next();\n CheckCastNode castsucc = (CheckCastNode)castMap.get(new Pair(goestocast, thiscast));\n if (castsucc != null)\n addAsUseful(visited, path, goestocast);\n }\n }\n }\n if (TRACE_INTER && !useful) out.println(\"Not useful: \"+n);\n path.remove(n);\n return useful;\n }", "private void Clean(){\n \t NodeIterable nodeit = graphModel.getGraph().getNodes();\n \t\n \t for (Node node : nodeit) {\n\t\t\t\n \t\t \n \t\t \n\t\t}\n \t\n }", "@Test\n public void Test4() {\n TreeNode t1 = new TreeNode(1);\n TreeNode t2 = new TreeNode(2);\n TreeNode t3 = new TreeNode(3);\n TreeNode t4 = new TreeNode(4);\n TreeNode t5 = new TreeNode(5);\n TreeNode.connect(t2, t3, t4);\n TreeNode.connect(t3, t1, null);\n TreeNode.connect(t4, null, t5);\n TreeNode root = t2;\n\n TreeNode e1 = new TreeNode(1);\n TreeNode e2 = new TreeNode(2);\n TreeNode e3 = new TreeNode(3);\n TreeNode e4 = new TreeNode(4);\n TreeNode e5 = new TreeNode(5);\n TreeNode.connect(e3, e2, e4);\n TreeNode.connect(e2, e1, null);\n TreeNode.connect(e4, null, e5);\n TreeNode expected = e3;\n\n solution.recoverTree(root);\n assertTrue(TreeNode.isSameTree(expected, root));\n }", "public static boolean Util(Graph<V, DefaultEdge> g, ArrayList<V> set, int colors, HashMap<String, Integer> coloring, int i, ArrayList<arc> arcs, Queue<arc> agenda)\n {\n /*if (i == set.size())\n {\n System.out.println(\"reached max size\");\n return true;\n }*/\n if (set.isEmpty())\n {\n System.out.println(\"Set empty\");\n return true;\n }\n //V currentVertex = set.get(i);\n\n /*System.out.println(\"vertices and mrv:\");\n V start = g.vertexSet().stream().filter(V -> V.getID().equals(\"0\")).findAny().orElse(null);\n Iterator<V> iterator = new DepthFirstIterator<>(g, start);\n while (iterator.hasNext()) {\n V v = iterator.next();\n System.out.println(\"vertex \" + v.getID() + \" has mrv of \" + v.mrv);\n }*/\n\n // Find vertex with mrv\n V currentVertex;\n int index = -1;\n int mrv = colors + 10;\n for (int it = 0; it < set.size(); it++)\n {\n if (set.get(it).mrv < mrv)\n {\n mrv = set.get(it).mrv;\n index = it;\n }\n }\n currentVertex = set.remove(index);\n\n //System.out.println(\"Got vertex: \" + currentVertex.getID());\n\n\n // Try to assign that vertex a color\n for (int c = 0; c < colors; c++)\n {\n currentVertex.color = c;\n if (verifyColor(g, currentVertex))\n {\n\n // We can assign color c to vertex v\n // See if AC3 is satisfied\n /*currentVertex.domain.clear();\n currentVertex.domain.add(c);*/\n if (!agenda.isEmpty()) numAgenda++;\n while(!agenda.isEmpty())\n {\n arc temp = agenda.remove();\n\n // Make sure there exists v1, v2, in V1, V2, such that v1 != v2\n V v1 = g.vertexSet().stream().filter(V -> V.getID().equals(temp.x)).findAny().orElse(null);\n V v2 = g.vertexSet().stream().filter(V -> V.getID().equals(temp.y)).findAny().orElse(null);\n\n\n\n // No solution exists in this branch if a domain is empty\n //if ((v1.domain.isEmpty()) || (v2.domain.isEmpty())) return false;\n\n if (v2.color == -1) continue;\n else\n {\n Boolean[] toRemove = new Boolean[colors];\n Boolean domainChanged = false;\n for (Integer it : v1.domain)\n {\n if (it == v2.color)\n {\n toRemove[it] = true;\n }\n }\n for (int j = 0; j < toRemove.length; j++)\n {\n if ((toRemove[j] != null))\n {\n v1.domain.remove(j);\n domainChanged = true;\n }\n }\n // Need to check constraints with v1 on the right hand side\n if (domainChanged)\n {\n for (arc it : arcs)\n {\n // Add arc back to agenda to check constraints again\n if (it.y.equals(v1.getID()))\n {\n agenda.add(it);\n }\n }\n }\n }\n if ((v1.domain.isEmpty()) || (v2.domain.isEmpty()))\n {\n System.out.println(\"returning gfalse here\");\n return false;\n }\n }\n\n // Reset agenda to check arc consistency on next iteration\n for (int j = 0; j < arcs.size(); j++)\n {\n agenda.add(arcs.get(i));\n }\n\n\n //System.out.println(\"Checking if vertex \" + currentVertex.getID() + \" can be assigned color \" + c);\n coloring.put(currentVertex.getID(), c);\n updateMRV(g, currentVertex);\n if (Util(g, set, colors, coloring, i + 1, arcs, agenda))\n {\n\n return true;\n }\n\n //System.out.println(\"Assigning vertex \" + currentVertex.getID() + \" to color \" + currentVertex.color + \" did not work\");\n coloring.remove(currentVertex.getID());\n currentVertex.color = -1;\n }\n }\n return false;\n }", "@Test\r\n void test_insert_two_vertice_with_one_edge_remove_non_existent_edge() {\r\n // Add three vertices with two edges\r\n graph.addEdge(\"A\", \"B\");\r\n graph.addEdge(\"B\", \"C\");\r\n vertices = graph.getAllVertices();\r\n // B should be an adjacent vertex of A\r\n if(!graph.getAdjacentVerticesOf(\"A\").contains(\"B\")){\r\n fail();\r\n }\r\n // C should be an adjacent vertex of B\r\n if(!graph.getAdjacentVerticesOf(\"B\").contains(\"C\")){\r\n fail();\r\n }\r\n //Check that A,B and C are in the graph\r\n if(!vertices.contains(\"A\") |!vertices.contains(\"B\")\r\n | !vertices.contains(\"C\")) {\r\n fail();\r\n }\r\n // There are two edges in the graph\r\n if(graph.size() != 2) {\r\n fail();\r\n }\r\n // Try are remove edge from A to C\r\n graph.removeEdge(\"A\", \"C\");\r\n graph.removeEdge(\"A\", \"D\");\r\n graph.removeEdge(\"E\", \"F\");\r\n graph.removeEdge(null, \"A\");\r\n graph.removeEdge(\"A\", null);\r\n //Graph should maintain its original shape\r\n if(!graph.getAdjacentVerticesOf(\"A\").contains(\"B\")){\r\n fail();\r\n }\r\n // C should be an adjacent vertex of B\r\n if(!graph.getAdjacentVerticesOf(\"B\").contains(\"C\")){\r\n fail();\r\n }\r\n //Check that A,B and C are in the graph\r\n if(!vertices.contains(\"A\") |!vertices.contains(\"B\")\r\n | !vertices.contains(\"C\")) {\r\n fail();\r\n }\r\n // There are two edges in the graph\r\n if(graph.size() != 2) {\r\n fail();\r\n }\r\n }", "private static void simplify (GraphDirected<NodeCppOSMDirected, EdgeCppOSMDirected> osmGraph) {\n \t\tfinal Iterator<NodeCppOSMDirected> iteratorNodes = osmGraph.getNodes().iterator();\n \t\twhile (iteratorNodes.hasNext()) {\n \t\t\tfinal NodeCppOSMDirected node = iteratorNodes.next();\n \t\t\t// one in one out\n \t\t\tif (node.getInDegree() == 1 && node.getOutDegree() == 1) {\n \t\t\t\t// get the ids of the two connected nodes\n \t\t\t\tfinal Long currentNodeId = node.getId();\n \t\t\t\tfinal List<EdgeCppOSMDirected> edges = node.getEdges();\n \t\t\t\tfinal EdgeCppOSMDirected edge1 = edges.get(0);\n \t\t\t\tfinal EdgeCppOSMDirected edge2 = edges.get(1);\n \t\t\t\tfinal Long node1id = edge1.getNode1().getId() == (currentNodeId) ? edge2.getNode1().getId() : edge1.getNode1().getId();\n \t\t\t\tfinal Long node2id = edge1.getNode1().getId() == (currentNodeId) ? edge1.getNode2().getId() : edge2.getNode2().getId();\n \t\t\t\tif (node2id == node1id){\n \t\t\t\t\t// we are in a deadend and do not erase ourself\n \t\t\t\t\tcontinue;\n \t\t\t\t}\n \t\t\t\t// concat the list in the right way\n \t\t\t\tList<WayNodeOSM> newMetaNodes = concatMetanodes(edge1.getMetadata().getNodes(), edge2.getMetadata().getNodes(), currentNodeId);\n \t\t\t\t// add a new edge\n \t\t\t\t// TODO: Handle way properly - what would name be in this context?\n \t\t\t\tosmGraph.getNode(node1id).connectWithNodeWeigthAndMeta(osmGraph.getNode(node2id), edge1.getWeight() + edge2.getWeight(),\n \t\t\t\t\t\tnew WayOSM(0, WayOSM.WayType.UNSPECIFIED, \"unknown\", newMetaNodes));\n \t\t\t\t// remove the old node\n \t\t\t\t// do this manually because we otherwise corrupt the iterator\n \t\t\t\tnode.removeAllEdges();\n \t\t\t\titeratorNodes.remove();\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t// two in two out\n \t\t\tif (node.getInDegree() == 2 && node.getOutDegree() == 2) {\n \t\t\t\tfinal long currentNodeId = node.getId();\n \t\t\t\t//check the connections\n \t\t\t\tArrayList<EdgeCppOSMDirected> incomingEdges = new ArrayList<>();\n \t\t\t\tArrayList<EdgeCppOSMDirected> outgoingEdges = new ArrayList<>();\n \t\t\t\tfor(EdgeCppOSMDirected edge : node.getEdges()) {\n \t\t\t\t\tif(edge.getNode1().getId() == currentNodeId){\n \t\t\t\t\t\toutgoingEdges.add(edge);\n \t\t\t\t\t}\n \t\t\t\t\telse {\n \t\t\t\t\t\tincomingEdges.add(edge);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\t//TODO make this condition better\n \t\t\t\tif(outgoingEdges.get(0).getNode2().equals(incomingEdges.get(0).getNode1())){\n \t\t\t\t\t//out0 = in0\n \t\t\t\t\tif(!outgoingEdges.get(1).getNode2().equals(incomingEdges.get(1).getNode1())){\n \t\t\t\t\t\tcontinue;\n \t\t\t\t\t}\n \t\t\t\t\tif(outgoingEdges.get(0).getWeight() != incomingEdges.get(0).getWeight()){\n \t\t\t\t\t\tcontinue;\n \t\t\t\t\t}\n \t\t\t\t\tif(outgoingEdges.get(1).getWeight() != incomingEdges.get(1).getWeight()){\n \t\t\t\t\t\tcontinue;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\t//out0 should be in1\n \t\t\t\t\t//therefore out1 = in0\n \t\t\t\t\tif(!outgoingEdges.get(0).getNode2().equals(incomingEdges.get(1).getNode1())){\n \t\t\t\t\t\tcontinue;\n \t\t\t\t\t}\n \t\t\t\t\tif(!outgoingEdges.get(1).getNode2().equals(incomingEdges.get(0).getNode1())){\n \t\t\t\t\t\tcontinue;\n \t\t\t\t\t}\n \t\t\t\t\tif(outgoingEdges.get(0).getWeight() != incomingEdges.get(1).getWeight()){\n \t\t\t\t\t\tcontinue;\n \t\t\t\t\t}\n \t\t\t\t\tif(outgoingEdges.get(1).getWeight() != incomingEdges.get(0).getWeight()){\n \t\t\t\t\t\tcontinue;\n \t\t\t\t\t}\n \t\t\t\t}\n \n \t\t\t\t// get the ids of the two connected nodes\n \t\t\t\tfinal NodeCppOSMDirected node1 = incomingEdges.get(0).getNode1();\n \t\t\t\tfinal NodeCppOSMDirected node2 = incomingEdges.get(1).getNode1();\n \t\t\t\t// \t\t\tif (node1.equals(node2)){\n \t\t\t\t// \t\t\t\t// we are in a loop and do not erase ourself\n \t\t\t\t// \t\t\t\tcontinue;\n \t\t\t\t// \t\t\t}\n \t\t\t\t// concat the list in the right way\n \t\t\t\tList<WayNodeOSM> metaNodes1 = incomingEdges.get(0).getMetadata().getNodes();\n \t\t\t\tList<WayNodeOSM> metaNodes2 = incomingEdges.get(1).getMetadata().getNodes();\n \t\t\t\tdouble weight = incomingEdges.get(0).getWeight() +incomingEdges.get(1).getWeight();\n \t\t\t\tList<WayNodeOSM> newMetaNodes = concatMetanodes(metaNodes1, metaNodes2, currentNodeId);\n \t\t\t\t// add a new edge\n \t\t\t\t// TODO: Handle way properly - what would name be in this context?\n \t\t\t\tnode1.connectWithNodeWeigthAndMeta(node2, weight,\n \t\t\t\t\t\tnew WayOSM(0, WayOSM.WayType.UNSPECIFIED, \"unknown\", newMetaNodes));\n \t\t\t\tnode2.connectWithNodeWeigthAndMeta(node1, weight,\n \t\t\t\t\t\tnew WayOSM(0, WayOSM.WayType.UNSPECIFIED, \"unknown\", newMetaNodes));\n \t\t\t\t// remove the old node\n \t\t\t\t// do this manually because we otherwise corrupt the iterator\n \t\t\t\tnode.removeAllEdges();\n \t\t\t\titeratorNodes.remove();\n \t\t\t}\n \t\t}\n \t}", "private void clearVisited(){\r\n\t\tfor(int i=0; i<graphSize; i++){\r\n\t\t\tmyGraph[i].visited = false;\r\n\t\t\tAdjVertex vert = myGraph[i].adjVertexHead;\r\n\t\t\twhile(vert != null){\r\n\t\t\t\tvert.visited = false;\r\n\t\t\t\tvert= vert.next;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Test\n public void notConnectedDueToRestrictions() {\n int sourceNorth = graph.edge(0, 1).setDistance(1).set(speedEnc, 10, 10).getEdge();\n int sourceSouth = graph.edge(0, 3).setDistance(2).set(speedEnc, 10, 10).getEdge();\n int targetNorth = graph.edge(1, 2).setDistance(3).set(speedEnc, 10, 10).getEdge();\n int targetSouth = graph.edge(3, 2).setDistance(4).set(speedEnc, 10, 10).getEdge();\n\n assertPath(calcPath(0, 2, sourceNorth, targetNorth), 0.4, 4, 400, nodes(0, 1, 2));\n assertNotFound(calcPath(0, 2, sourceNorth, targetSouth));\n assertNotFound(calcPath(0, 2, sourceSouth, targetNorth));\n assertPath(calcPath(0, 2, sourceSouth, targetSouth), 0.6, 6, 600, nodes(0, 3, 2));\n }", "@Test\n public void Test6() {\n TreeNode t1 = new TreeNode(1);\n TreeNode t2 = new TreeNode(2);\n TreeNode t3 = new TreeNode(3);\n TreeNode.connect(t3, null, t1);\n TreeNode.connect(t1, t2, null);\n TreeNode root = t3;\n\n TreeNode e1 = new TreeNode(1);\n TreeNode e2 = new TreeNode(2);\n TreeNode e3 = new TreeNode(3);\n TreeNode.connect(e1, null, e3);\n TreeNode.connect(e3, e2, null);\n TreeNode expected = e1;\n\n solution.recoverTree(root);\n assertTrue(TreeNode.isSameTree(expected, root));\n }", "@Override\n\tpublic boolean equals(Object other)\n\t{\n\t\tif (!(other instanceof Graph))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tGraph<N, ET> otherGraph = (Graph<N, ET>) other;\n\t\tList<N> otherNodeList = otherGraph.getNodeList();\n\t\tint thisNodeSize = nodeList.size();\n\t\tif (thisNodeSize != otherNodeList.size())\n\t\t{\n\t\t\t//\t\t\tSystem.err.println(\"Not equal node count\");\n\t\t\treturn false;\n\t\t}\n\t\t// (potentially wasteful, but defensive copy)\n\t\totherNodeList = new ArrayList<N>(otherNodeList);\n\t\tif (otherNodeList.retainAll(nodeList))\n\t\t{\n\t\t\t// Some nodes are not identical\n\t\t\t//\t\t\tSystem.err.println(\"Not equal node list\");\n\t\t\t//\t\t\tSystem.err.println(nodeList);\n\t\t\t//\t\t\tSystem.err.println(otherNodeList);\n\t\t\treturn false;\n\t\t}\n\t\t// Here, the node lists are identical...\n\t\tList<ET> otherEdgeList = otherGraph.getEdgeList();\n\t\tint thisEdgeSize = edgeList.size();\n\t\tif (thisEdgeSize != otherEdgeList.size())\n\t\t{\n\t\t\t//\t\t\tSystem.err.println(\"Not equal edge count\");\n\t\t\treturn false;\n\t\t}\n\t\t// (potentially wasteful, but defensive copy)\n\t\totherEdgeList = new ArrayList<ET>(otherEdgeList);\n\t\tif (otherEdgeList.retainAll(edgeList))\n\t\t{\n\t\t\t// Other Graph contains extra edges\n\t\t\t//\t\t\tSystem.err.println(\"not equal edge retain\");\n\t\t\t//\t\t\tSystem.err.println(edgeList);\n\t\t\t//\t\t\tSystem.err.println(otherEdgeList);\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public static void main(String args[]) {\n int V = 4;\n Graph g = new Graph(V);\n g.addEdge(0, 1);\n g.addEdge(0, 2);\n g.addEdge(1, 2);\n g.addEdge(2, 0);\n g.addEdge(2, 3);\n g.addEdge(3, 3);\n\n int src = 1;\n int dest = 3;\n boolean[] visited = new boolean[V];\n\n // To store the complete path between source and destination\n Stack<Integer> path1 = new Stack<>();\n\n if (hasPathDFS(g, src, dest, visited, path1)) {\n System.out.println(\"There is a path from \" + src + \" to \" + dest);\n System.out.println(\"The complete path is \" + path1);\n } else System.out.println(\"There is no path from \" + src + \" to \" + dest);\n\n src = 3;\n dest = 1;\n // To store the complete path between source and destination\n Stack<Integer> path2 = new Stack<>();\n\n if (hasPathDFS(g, src, dest, visited, path2)) System.out.println(\"There is a path from \" + src + \" to \" + dest);\n else System.out.println(\"There is no path from \" + src + \" to \" + dest);\n\n // total number of nodes in the graph (labeled from 0 to 7)\n int n = 8;\n\n // List of graph edges as per the above diagram\n Graph g2 = new Graph(n);\n /**\n * There is a path from 1 to 3\n * The complete path is [1, 2, 3]\n * There is no path from 3 to 1\n * There is a path from 0 to 7\n * The complete path is [0, 3, 4, 6, 7]\n */\n\n g2.addEdge(0, 3);\n g2.addEdge(1, 0);\n g2.addEdge(1, 2);\n g2.addEdge(1, 4);\n g2.addEdge(2, 7);\n g2.addEdge(3, 4);\n g2.addEdge(3, 5);\n g2.addEdge(4, 3);\n g2.addEdge(4, 6);\n g2.addEdge(5, 6);\n g2.addEdge(6, 7);\n\n // source and destination vertex\n src = 0;\n dest = 7;\n\n // To store the complete path between source and destination\n Stack<Integer> path = new Stack<>();\n boolean[] visited2 = new boolean[n];\n\n if (hasPathDFS(g2, src, dest, visited2, path)) {\n System.out.println(\"There is a path from \" + src + \" to \" + dest);\n System.out.println(\"The complete path is \" + path);\n } else System.out.println(\"There is no path from \" + src + \" to \" + dest);\n\n\n }", "public abstract boolean isUsing(Long graphNode);", "@Test\n public void Test2() {\n TreeNode t1 = new TreeNode(1);\n TreeNode t2 = new TreeNode(2);\n TreeNode t3 = new TreeNode(3);\n TreeNode t4 = new TreeNode(4);\n TreeNode t5 = new TreeNode(5);\n TreeNode.connect(t1, null, t4);\n TreeNode.connect(t4, null, t3);\n TreeNode.connect(t3, null, t2);\n TreeNode.connect(t2, null, t5);\n TreeNode root = t1;\n\n TreeNode e1 = new TreeNode(1);\n TreeNode e2 = new TreeNode(2);\n TreeNode e3 = new TreeNode(3);\n TreeNode e4 = new TreeNode(4);\n TreeNode e5 = new TreeNode(5);\n TreeNode.connect(e1, null, e2);\n TreeNode.connect(e2, null, e3);\n TreeNode.connect(e3, null, e4);\n TreeNode.connect(e4, null, e5);\n TreeNode expected = e1;\n\n solution.recoverTree(root);\n assertTrue(TreeNode.isSameTree(expected, root));\n }", "@Test\r\n void add_remove_add() {\r\n graph.addEdge(\"A\", \"B\");\r\n graph.addEdge(\"A\", \"C\");\r\n graph.addEdge(\"B\",\"D\");\r\n graph.addEdge(\"C\",\"D\");\r\n graph.addEdge(\"D\", \"E\"); \r\n // Check that E is in graph with correct edges\r\n List<String> adjacent = graph.getAdjacentVerticesOf(\"D\");\r\n vertices = graph.getAllVertices(); \r\n if(!vertices.contains(\"E\") | !adjacent.contains(\"E\")) {\r\n fail();\r\n }\r\n //Remove E\r\n graph.removeVertex(\"E\");\r\n if(vertices.contains(\"E\") | adjacent.contains(\"E\")) {\r\n fail();\r\n }\r\n \r\n //Add E back into graph with different edge\r\n graph.addEdge(\"B\", \"E\");\r\n adjacent = graph.getAdjacentVerticesOf(\"B\");\r\n if(!vertices.contains(\"E\") | !adjacent.contains(\"E\")) {\r\n fail();\r\n }\r\n }", "@Test\r\n void remove_nonexistent_vertex() {\r\n graph.addEdge(\"A\", \"B\");\r\n graph.addEdge(\"B\", \"C\");\r\n graph.removeVertex(\"D\");\r\n List<String> adjacent;\r\n vertices = graph.getAllVertices(); \r\n // Check that graph has all added vertexes\r\n if(!vertices.contains(\"A\")| !vertices.contains(\"B\")|\r\n !vertices.contains(\"C\")) {\r\n fail();\r\n }\r\n adjacent = graph.getAdjacentVerticesOf(\"A\");\r\n if (!adjacent.contains(\"B\"))\r\n fail();\r\n adjacent = graph.getAdjacentVerticesOf(\"B\");\r\n if (!adjacent.contains(\"C\"))\r\n fail();\r\n \r\n }", "@Test\n public void shouldNotAddDuplicateDependents() {\n String currentPipeline = \"p5\";\n ValueStreamMap graph = new ValueStreamMap(currentPipeline, null);\n Node p4 = graph.addUpstreamNode(new PipelineDependencyNode(\"p4\", \"p4\"), null, currentPipeline);\n graph.addUpstreamNode(new PipelineDependencyNode(\"p4\", \"p4\"), null, currentPipeline);\n\n assertThat(p4.getChildren().size(), is(1));\n VSMTestHelper.assertThatNodeHasChildren(graph, \"p4\", 0, \"p5\");\n }", "@Test\n public void tr2()\n {\n Graph graph = new Graph(2);\n Set<Integer> sources = new TreeSet<Integer>();\n Set<Integer> targets = new TreeSet<Integer>();\n sources.add(0);\n targets.add(1);\n graph.addEdge(0,1);\n assertTrue(graph.reachable(sources, targets));\n\n\n }", "protected void merge(FlowGraph graph){\r\n for(FlowGraphNode node : this.from){\r\n node.addTo(graph.start);\r\n node.to.remove(this);\r\n }\r\n for(FlowGraphNode node : this.to){\r\n graph.end.addTo(node);\r\n node.from.remove(this);\r\n }\r\n }", "private static void treks(Graph graph, Node node1, Node node2,\n LinkedList<Node> path, List<List<Node>> paths) {\n path.addLast(node1);\n\n for (Edge edge : graph.getEdges(node1)) {\n Node next = Edges.traverse(node1, edge);\n\n if (next == null) {\n continue;\n }\n\n if (path.size() > 1) {\n Node node0 = path.get(path.size() - 2);\n\n if (next == node0) {\n continue;\n }\n\n if (graph.isDefCollider(node0, node1, next)) {\n continue;\n }\n }\n\n if (next == node2) {\n LinkedList<Node> _path = new LinkedList<>(path);\n _path.add(next);\n paths.add(_path);\n continue;\n }\n\n if (path.contains(next)) {\n continue;\n }\n\n treks(graph, next, node2, path, paths);\n }\n\n path.removeLast();\n }", "@Override\n public void updateNeighbours(String nodeGUID, Set<String> neighboursGUIDS) {\n List<String> existingNeighboursGUIDs = getAllNeighbours(nodeGUID);\n if (isDifferentGraphContext(neighboursGUIDS, existingNeighboursGUIDs)) {\n removeObsoleteEdges(nodeGUID, neighboursGUIDS, existingNeighboursGUIDs);\n }\n }", "@Test\n public void getGraph2() throws Exception {\n final BlankNodeOrIRI graph2Name = (BlankNodeOrIRI) dataset.stream(Optional.empty(), bob, isPrimaryTopicOf, null)\n .map(Quad::getObject).findAny().get();\n\n try (final Graph g2 = dataset.getGraph(graph2Name).get()) {\n assertEquals(4, g2.size());\n final Triple bobNameTriple = bobNameQuad.asTriple();\n assertTrue(g2.contains(bobNameTriple));\n assertTrue(g2.contains(bob, member, bnode1));\n assertTrue(g2.contains(bob, member, bnode2));\n assertFalse(g2.contains(bnode1, name, secretClubName));\n assertTrue(g2.contains(bnode2, name, companyName));\n }\n }", "private NodePath<T> collectPathNodes( WeightedGraph<T> graph, Object startNodeId, Object endNodeId ) {\n\t\tArrayDeque<Node<T>> deque = new ArrayDeque<>( searchNodes.size() );\n\t\tNode<T> startNode = graph.getNode( startNodeId );\n\t\tNode<T> endNode = graph.getNode( endNodeId );\n\t\tSearchNode<T> node = getSearchNode( endNode );\n\n\t\t//\tkeep this before we flush the maps\n\t\tfinal int finalDistance = node.getDistance();\n\n\t\t//\twalk backwards through the \"previous\" links\n\t\tdo {\n\t\t\tdeque.push( node.getNode() );\n\t\t}\n\t\twhile ( (node = getSearchNode( node.getPrevious() )) != null && ! node.equals( startNode ) );\n\t\tdeque.push( startNode );\n\n\t\tclearSearchNodes();\n\t\treturn new NodePath<>( new ArrayList<>( deque ), finalDistance );\n\t}", "@Test\n public void Test1() {\n TreeNode t1 = new TreeNode(5);\n TreeNode t2 = new TreeNode(2);\n TreeNode t3 = new TreeNode(3);\n TreeNode t4 = new TreeNode(4);\n TreeNode t5 = new TreeNode(1);\n TreeNode.connect(t1, t2, null);\n TreeNode.connect(t2, t3, null);\n TreeNode.connect(t3, t4, null);\n TreeNode.connect(t4, t5, null);\n TreeNode root = t1;\n\n TreeNode e1 = new TreeNode(5);\n TreeNode e2 = new TreeNode(4);\n TreeNode e3 = new TreeNode(3);\n TreeNode e4 = new TreeNode(2);\n TreeNode e5 = new TreeNode(1);\n TreeNode.connect(e1, e2, null);\n TreeNode.connect(e2, e3, null);\n TreeNode.connect(e3, e4, null);\n TreeNode.connect(e4, e5, null);\n TreeNode expected = e1;\n\n solution.recoverTree(root);\n assertTrue(TreeNode.isSameTree(expected, root));\n }", "@Test\n public void tr3()\n {\n Graph graph = new Graph(2);\n Set<Integer> sources = new TreeSet<Integer>();\n Set<Integer> targets = new TreeSet<Integer>();\n sources.add(0);\n targets.add(1);\n graph.addEdge(1,0);\n assertFalse(graph.reachable(sources, targets));\n }", "public void checkNodes() {\n // Don't do anything when you check the nodes. This nodes is built by\n // when the setTarget method is called.\n }", "@Test\n void test07_tryToRemoveNonExistentEdge() {\n graph.addVertex(\"a\");\n graph.addVertex(\"b\");\n graph.addVertex(\"c\");\n graph.addEdge(\"a\", \"b\");\n graph.addEdge(\"b\", \"c\"); // adds two edges\n try {\n graph.removeEdge(\"e\", \"f\"); // remove non existent edge\n } catch (Exception e) {\n fail(\"Shouldn't have thrown exception\");\n }\n\n Set<String> vertices = new LinkedHashSet<>();\n vertices.add(\"a\");\n vertices.add(\"b\");\n vertices.add(\"c\"); // creates mock up vertex list\n\n if (!graph.getAllVertices().equals(vertices)) { // checks if vertices weren't added or removed\n fail(\"wrong vertices are inserted into the graph\");\n }\n if (graph.size() != 2) {\n fail(\"wrong number of edges in the graph\");\n }\n\n }", "@Test\n public void shouldUpdateDependentWhileAddingDownstreamIfNodeAlreadyPresent(){\n String p1 = \"p1\";\n String p2 = \"p2\";\n String p3 = \"p3\";\n ValueStreamMap graph = new ValueStreamMap(p1, null);\n graph.addDownstreamNode(new PipelineDependencyNode(p2, p2), p1);\n graph.addDownstreamNode(new PipelineDependencyNode(p3, p3), p2);\n graph.addDownstreamNode(new PipelineDependencyNode(p3, p3), p1);\n\n VSMTestHelper.assertNodeHasChildren(graph, p1, p2, p3);\n VSMTestHelper.assertNodeHasChildren(graph, p2, p3);\n assertThat(graph.findNode(p3).getChildren().isEmpty(), is(true));\n assertThat(graph.findNode(p1).getParents().isEmpty(), is(true));\n VSMTestHelper.assertNodeHasParents(graph, p2, p1);\n VSMTestHelper.assertNodeHasParents(graph, p3, p1, p2);\n\n List<List<Node>> nodesAtEachLevel = graph.presentationModel().getNodesAtEachLevel();\n assertThat(nodesAtEachLevel.size(), is(3));\n VSMTestHelper.assertThatLevelHasNodes(nodesAtEachLevel.get(0), 0, p1);\n VSMTestHelper.assertThatLevelHasNodes(nodesAtEachLevel.get(1), 1, p2);\n VSMTestHelper.assertThatLevelHasNodes(nodesAtEachLevel.get(2), 0, p3);\n }", "private void testBuildGraph() {\n\t\t// All test graphs have a node 8 with children [9, 10]\n\t\tSet<Node> expectedChildren = new HashSet<>();\n\t\texpectedChildren.add(new Node(9));\n\t\texpectedChildren.add(new Node(10));\n\n\t\tStudySetGraph disconnectedGraphWithoutCycle = new StudySetGraph(Edges.disconnectedGraphWithoutCycle);\n\t\tNode node = disconnectedGraphWithoutCycle.getNode(8);\n\t\tassert node != null;\n\t\tassert node.getChildren().equals(expectedChildren);\n\t\t\n\t\tStudySetGraph disconnectedGraphWithCycle = new StudySetGraph(Edges.disconnectedGraphWithCycle);\n\t\tnode = disconnectedGraphWithoutCycle.getNode(8);\n\t\tassert node != null;\n\t\tassert node.getChildren().equals(expectedChildren);\n\t\t\n\t\tStudySetGraph connectedGraphWithCycle = new StudySetGraph(Edges.connectedGraphWithCycle);\n\t\tnode = disconnectedGraphWithoutCycle.getNode(8);\n\t\tassert node != null;\n\t\tassert node.getChildren().equals(expectedChildren);\n\n\t\tStudySetGraph connectedGraphWithoutCycle = new StudySetGraph(Edges.connectedGraphWithoutCycle);\n\t\tnode = disconnectedGraphWithoutCycle.getNode(8);\n\t\tassert node != null;\n\t\tassert node.getChildren().equals(expectedChildren);\n\t}", "@Override\r\n\tpublic boolean isConnected(GraphStructure graph) {\r\n\t\tgetDepthFirstSearchTraversal(graph);\r\n\t\tif(pathList.size()==graph.getNumberOfVertices()) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "private void updateOriginalNodesInMirror() {\n for (Node node : originalGraph.nodes()) {\n if (!mirrorGraph.has(node)) {\n mirrorGraph.add(node);\n }\n originalAttributesToMirror(node);\n }\n }", "protected void resetGraph() {\n for (List<Edge> path : graph) {\r\n for (Edge e : path) {\r\n e.flow = 0;\r\n }\r\n }\r\n }", "protected Graph filterGraph(final Collection<Object> roots) {\n final Set<Relation> edges = graph.getEdges();\n // crate object->relations mapping\n final Map<cz.cuni.mff.ufal.textan.core.Object, Set<Relation>> objRels = new HashMap<>();\n for (Relation relation : edges) {\n for (Triple<Integer, String, cz.cuni.mff.ufal.textan.core.Object> triple : relation.getObjects()) {\n final cz.cuni.mff.ufal.textan.core.Object obj = triple.getThird();\n if (!ignoredObjectTypes.contains(obj.getType())) {\n Set<Relation> rels = objRels.get(obj);\n if (rels == null) {\n rels = new HashSet<>();\n objRels.put(obj, rels);\n }\n rels.add(new Relation(relation));\n }\n }\n }\n //initilization\n final Map<Long, cz.cuni.mff.ufal.textan.core.Object> newNodes = new HashMap<>();\n final Set<Relation> newEdges = new HashSet<>();\n final Set<Relation> doneRelations = new HashSet<>(); //processed relations\n final Set<cz.cuni.mff.ufal.textan.core.Object> doneObjects = new HashSet<>(); //processed objects\n final Deque<cz.cuni.mff.ufal.textan.core.Object> stack = new ArrayDeque<>(); //objects whose relations need processing\n for (Object root : roots) {\n newNodes.put(root.getId(), root);\n doneObjects.add(root);\n stack.add(root);\n }\n //filtering\n while (!stack.isEmpty()) {\n final cz.cuni.mff.ufal.textan.core.Object obj = stack.pop();\n final Set<Relation> rels = objRels.get(obj);\n if (rels == null) {\n continue;\n }\n for (Relation rel : rels) {\n if (doneRelations.contains(rel)) {\n continue;\n }\n doneRelations.add(rel);\n if (ignoredRelationTypes.contains(rel.getType())) {\n continue;\n }\n final Set<Triple<Integer, String, cz.cuni.mff.ufal.textan.core.Object>> newObjs = new HashSet<>();\n for (Triple<Integer, String, cz.cuni.mff.ufal.textan.core.Object> triple : rel.getObjects()) {\n if (!ignoredObjectTypes.contains(triple.getThird().getType())) {\n newObjs.add(triple);\n if (!doneObjects.contains(triple.getThird())) {\n doneObjects.add(triple.getThird());\n newNodes.put(triple.getThird().getId(), triple.getThird());\n stack.add(triple.getThird());\n }\n }\n }\n //add only if there are more objects connected\n //or if the original relation was unary too\n if (newObjs.size() > 1 || rel.getObjects().size() == 1) {\n newEdges.add(rel);\n rel.getObjects().clear();\n rel.getObjects().addAll(newObjs);\n }\n }\n }\n //use new nodes and edges\n return new Graph(newNodes, newEdges);\n }", "@Override\npublic boolean fjern(T verdi) {\n Node<T> curr = hode;\n while (curr != null) {\n if (curr.verdi.equals(verdi)) {\n if (antall == 1) {\n hode = hale = null;\n } else if (curr == hode) {\n hode = hode.neste;\n hode.forrige = null;\n } else if (curr == hale) {\n hale = hale.forrige;\n hale.neste = null;\n } else {\n curr.forrige.neste = curr.neste;\n curr.neste.forrige = curr.forrige;\n }\n antall--;\n endringer++;\n return true;\n }\n curr = curr.neste;\n }\n return false;\n}", "private void addAsUseful(HashSet visited, HashSet path, Node n) {\n if (path.contains(n)) {\n return;\n }\n path.add(n);\n if (visited.contains(n)) {\n if (VERIFY_ASSERTIONS) Assert._assert(nodes.containsKey(n), n.toString());\n return;\n }\n if (n instanceof UnknownTypeNode) {\n path.remove(n);\n return;\n }\n visited.add(n); this.nodes.put(n, n);\n if (TRACE_INTER) out.println(\"Useful: \"+n);\n for (Iterator i = n.getNonEscapingEdgeTargets().iterator(); i.hasNext(); ) {\n addAsUseful(visited, path, (Node) i.next());\n }\n if (n.accessPathEdges != null) {\n for (Iterator i=n.accessPathEdges.entrySet().iterator(); i.hasNext(); ) {\n Map.Entry e = (Map.Entry) i.next();\n Object o = e.getValue();\n if (o instanceof Node) {\n if (!addIfUseful(visited, path, (Node)o)) {\n i.remove();\n }\n } else {\n boolean any = false;\n for (Iterator j=((Set)o).iterator(); j.hasNext(); ) {\n Node j_n = (Node)j.next();\n if (!addIfUseful(visited, path, j_n)) {\n j.remove();\n } else {\n any = true;\n }\n }\n if (!any) i.remove();\n }\n }\n }\n for (Iterator i = n.getPredecessorTargets().iterator(); i.hasNext(); ) {\n addAsUseful(visited, path, (Node) i.next());\n }\n if (n instanceof FieldNode) {\n FieldNode fn = (FieldNode) n;\n for (Iterator i = fn.getAccessPathPredecessors().iterator(); i.hasNext(); ) {\n addAsUseful(visited, path, (Node)i.next());\n }\n }\n // Call \"addIfUseful()\" on all successor checkcast nodes.\n if (castPredecessors.contains(n)) {\n for (Iterator i = castMap.entrySet().iterator(); i.hasNext(); ) {\n Map.Entry e = (Map.Entry)i.next();\n Node goestocast = (Node)((Pair)e.getKey()).left;\n CheckCastNode castsucc = (CheckCastNode)e.getValue();\n if (n == goestocast)\n addIfUseful(visited, path, castsucc);\n }\n }\n\n // call \"addAsUseful()\" on all predecessors.\n if (n instanceof CheckCastNode) {\n Quad thiscast = ((QuadProgramLocation)((CheckCastNode)n).getLocation()).getQuad();\n for (Iterator i = castPredecessors.iterator(); i.hasNext(); ) {\n Node goestocast = (Node)i.next();\n CheckCastNode castsucc = (CheckCastNode)castMap.get(new Pair(goestocast, thiscast));\n if (castsucc != null)\n addAsUseful(visited, path, goestocast);\n }\n }\n path.remove(n);\n }", "@Test\n void test03_addEdgeBetweenVerticesWhichDontExist() {\n graph.addEdge(\"a\", \"b\");\n Set<String> vertices = new LinkedHashSet<>();\n vertices.add(\"a\");\n vertices.add(\"b\"); // creates mock up vertex list\n if (!graph.getAllVertices().equals(vertices)) { // compares vertices list\n fail(\"Graph didn't add the vertices correctly\");\n }\n List<String> adjOfA = new ArrayList<>();\n adjOfA.add(\"b\"); // creates mock up adjacent list\n if (!graph.getAdjacentVerticesOf(\"a\").equals(adjOfA)) { // compares adjacent lists\n fail(\"Graph didn't correctly place adjacent vertices\");\n }\n }", "int isCycle( Graph graph){\n int parent[] = new int[graph.V]; \n \n // Initialize all subsets as single element sets \n for (int i=0; i<graph.V; ++i) \n parent[i]=-1; \n \n // Iterate through all edges of graph, find subset of both vertices of every edge, if both subsets are same, then there is cycle in graph. \n for (int i = 0; i < graph.E; ++i){ \n int x = graph.find(parent, graph.edge[i].src); \n int y = graph.find(parent, graph.edge[i].dest); \n \n if (x == y) \n return 1; \n \n graph.Union(parent, x, y); \n } \n return 0; \n }", "@Test\n void test02_removeVertex() {\n graph.addVertex(\"a\");\n graph.addVertex(\"b\"); // adds two\n graph.removeVertex(\"a\"); // remove\n\n Set<String> vertices = new LinkedHashSet<>();\n vertices.add(\"a\");\n vertices.add(\"b\");\n vertices.remove(\"a\"); // creates a mock up vertex list\n\n if (!graph.getAllVertices().equals(vertices)) {\n fail(\"Graph didn't remove the vertices correctly\");\n }\n }", "@Test\n public void treeGraphsTest() throws Exception {\n // Construct a tree, rooted at INITIAL, with two \"a\" children, both of\n // which have different \"b\" and \"c\" children.\n String traceStr = \"1,0 a\\n\" + \"2,0 b\\n\" + \"1,1 c\\n\" + \"--\\n\"\n + \"1,0 a\\n\" + \"2,0 b\\n\" + \"1,1 c\\n\";\n TraceParser parser = genParser();\n ArrayList<EventNode> parsedEvents = parser.parseTraceString(traceStr,\n getTestName().getMethodName(), -1);\n DAGsTraceGraph inputGraph = parser\n .generateDirectPORelation(parsedEvents);\n exportTestGraph(inputGraph, 0);\n\n // This returns a set with one node -- INITIAL. It will have two\n // children -- the two \"a\" nodes, which should be k-equivalent for all\n // k.\n EventNode initNode = inputGraph.getDummyInitialNode();\n\n List<Transition<EventNode>> initNodeTransitions = initNode\n .getAllTransitions();\n EventNode firstA = initNodeTransitions.get(0).getTarget();\n EventNode secondA = initNodeTransitions.get(1).getTarget();\n for (int k = 1; k < 4; k++) {\n testKEqual(firstA, secondA, k);\n }\n\n // In this tree the firstA and secondA should _not_ be 1-equivalent (one\n // has children {b,c}, while the other has children {b,d}), but\n // they are still 0-equivalent.\n traceStr = \"1,0 a\\n\" + \"2,0 b\\n\" + \"1,1 c\\n\" + \"--\\n\" + \"1,0 a\\n\"\n + \"2,0 b\\n\" + \"1,1 d\\n\";\n parser = genParser();\n parsedEvents = parser.parseTraceString(traceStr, getTestName()\n .getMethodName(), -1);\n inputGraph = parser.generateDirectPORelation(parsedEvents);\n exportTestGraph(inputGraph, 1);\n\n initNode = inputGraph.getDummyInitialNode();\n initNodeTransitions = initNode.getAllTransitions();\n firstA = initNodeTransitions.get(0).getTarget();\n secondA = initNodeTransitions.get(1).getTarget();\n testKEqual(firstA, secondA, 1);\n testNotKEqual(firstA, secondA, 2);\n }", "boolean containsJewel(Graph<V, E> g)\n {\n for (V v2 : g.vertexSet()) {\n for (V v3 : g.vertexSet()) {\n if (v2 == v3 || !g.containsEdge(v2, v3))\n continue;\n for (V v5 : g.vertexSet()) {\n if (v2 == v5 || v3 == v5)\n continue;\n\n Set<V> F = new HashSet<>();\n for (V f : g.vertexSet()) {\n if (f == v2 || f == v3 || f == v5 || g.containsEdge(f, v2)\n || g.containsEdge(f, v3) || g.containsEdge(f, v5))\n continue;\n F.add(f);\n }\n\n List<Set<V>> componentsOfF = findAllComponents(g, F);\n\n Set<V> X1 = new HashSet<>();\n for (V x1 : g.vertexSet()) {\n if (x1 == v2 || x1 == v3 || x1 == v5 || !g.containsEdge(x1, v2)\n || !g.containsEdge(x1, v5) || g.containsEdge(x1, v3))\n continue;\n X1.add(x1);\n }\n Set<V> X2 = new HashSet<>();\n for (V x2 : g.vertexSet()) {\n if (x2 == v2 || x2 == v3 || x2 == v5 || g.containsEdge(x2, v2)\n || !g.containsEdge(x2, v5) || !g.containsEdge(x2, v3))\n continue;\n X2.add(x2);\n }\n\n for (V v1 : X1) {\n if (g.containsEdge(v1, v3))\n continue;\n for (V v4 : X2) {\n if (v1 == v4 || g.containsEdge(v1, v4) || g.containsEdge(v2, v4))\n continue;\n for (Set<V> FPrime : componentsOfF) {\n if (hasANeighbour(g, FPrime, v1) && hasANeighbour(g, FPrime, v4)) {\n if (certify) {\n Set<V> validSet = new HashSet<>();\n validSet.addAll(FPrime);\n validSet.add(v1);\n validSet.add(v4);\n GraphPath<V, E> p = new DijkstraShortestPath<>(\n new AsSubgraph<>(g, validSet)).getPath(v1, v4);\n List<E> edgeList = new LinkedList<>();\n edgeList.addAll(p.getEdgeList());\n if (p.getLength() % 2 == 1) {\n edgeList.add(g.getEdge(v4, v5));\n edgeList.add(g.getEdge(v5, v1));\n\n } else {\n edgeList.add(g.getEdge(v4, v3));\n edgeList.add(g.getEdge(v3, v2));\n edgeList.add(g.getEdge(v2, v1));\n\n }\n\n double weight =\n edgeList.stream().mapToDouble(g::getEdgeWeight).sum();\n certificate = new GraphWalk<>(g, v1, v1, edgeList, weight);\n }\n return true;\n }\n }\n }\n }\n }\n }\n }\n\n return false;\n }", "@Override\r\n public Set<List<String>> findAllPaths(int sourceId, int targetId, int reachability) {\r\n //all paths found\r\n Set<List<String>> allPaths = new HashSet<List<String>>();\r\n //collects path in one iteration\r\n Set<List<String>> newPathsCollector = new HashSet<List<String>>();\r\n //same as the solution but with inverted edges\r\n Set<List<String>> tmpPathsToTarget = new HashSet<List<String>>();\r\n //final solution\r\n Set<List<String>> pathsToTarget = new HashSet<List<String>>();\r\n \r\n String[] statementTokens = null; \r\n Set<Integer> allProcessedNodes = new HashSet<Integer>(); //to avoid duplicates\r\n List<String> statementsFound = new ArrayList<String>();\r\n \r\n for (int i = 0; i < reachability; i++) {\r\n if (i == 0) { \r\n Collection<String> inEdges = jungCompleteGraph.getInEdges(sourceId);\r\n for (String inEdge: inEdges) {\r\n \r\n statementsFound = new ArrayList<String>();\r\n statementTokens = inEdge.split(\"->\");\r\n int inNodeId = Integer.parseInt(statementTokens[0]);\r\n //allProcessedNodes.add(inNodeId); \r\n //Incoming nodes are reversed\r\n statementsFound.add(new StringBuilder(inEdge).reverse().toString());\r\n allPaths.add(statementsFound);\r\n if (inNodeId == targetId) tmpPathsToTarget.add(statementsFound);\r\n }\r\n \r\n Collection<String> outEdges = jungCompleteGraph.getOutEdges(sourceId);\r\n \r\n for (String outEdge: outEdges) {\r\n \r\n statementsFound = new ArrayList<String>();\r\n statementTokens = outEdge.split(\"->\");\r\n int outNodeId = Integer.parseInt(statementTokens[2]);\r\n statementsFound.add(outEdge);\r\n allPaths.add(statementsFound);\r\n if (outNodeId == targetId) tmpPathsToTarget.add(statementsFound);\r\n \r\n }\r\n \r\n } else {\r\n newPathsCollector = new HashSet<List<String>>();\r\n\r\n for (List<String> statements: allPaths) {\r\n allProcessedNodes = new HashSet<Integer>(); //to avoid duplicates\r\n int lastNodeInPath = 0;\r\n \r\n for (String predicate: statements) {\r\n if (predicate.contains(\">-\")) {\r\n statementTokens = predicate.split(\">-\");\r\n allProcessedNodes.add(Integer.parseInt(\r\n new StringBuilder(statementTokens[0]).reverse().toString()));\r\n allProcessedNodes.add(Integer.parseInt(\r\n new StringBuilder(statementTokens[2]).reverse().toString()));\r\n lastNodeInPath = Integer.parseInt(\r\n new StringBuilder(statementTokens[2]).reverse().toString());\r\n } else {\r\n statementTokens = predicate.split(\"->\"); \r\n allProcessedNodes.add(Integer.parseInt(statementTokens[0]));\r\n allProcessedNodes.add(Integer.parseInt(statementTokens[2]));\r\n lastNodeInPath = Integer.parseInt(statementTokens[2]);\r\n }\r\n }\r\n \r\n Collection<String> inEdges = jungCompleteGraph.getInEdges(lastNodeInPath);\r\n for (String inEdge: inEdges) {\r\n \r\n statementsFound = new ArrayList<String>();\r\n statementsFound.addAll(statements);\r\n statementTokens = inEdge.split(\"->\");\r\n int inNodeId = Integer.parseInt(statementTokens[0]);\r\n if (allProcessedNodes.contains(inNodeId)) continue;\r\n \r\n //Incoming nodes are reversed \r\n statementsFound.add(new StringBuilder(inEdge).reverse().toString());\r\n newPathsCollector.add(statementsFound);\r\n if (inNodeId == targetId) tmpPathsToTarget.add(statementsFound);\r\n \r\n }\r\n \r\n Collection<String> outEdges = jungCompleteGraph.getOutEdges(lastNodeInPath);\r\n for (String outEdge: outEdges) {\r\n \r\n statementsFound = new ArrayList<String>();\r\n statementsFound.addAll(statements);\r\n statementTokens = outEdge.split(\"->\");\r\n int outNodeId = Integer.parseInt(statementTokens[2]);\r\n if (allProcessedNodes.contains(outNodeId)) continue;\r\n \r\n //Incoming nodes are reversed \r\n statementsFound.add(outEdge);\r\n newPathsCollector.add(statementsFound);\r\n if (outNodeId == targetId) tmpPathsToTarget.add(statementsFound);\r\n }\r\n }\r\n allPaths.addAll(newPathsCollector);\r\n }\r\n \r\n //System.out.println(\"*****End of iteration \" + i);\r\n //System.out.println(\"#SIZE OF allPaths: \" + allPaths.size());\r\n int numItems = 0;\r\n for (List<String> currList: allPaths) {\r\n numItems = numItems + currList.size();\r\n }\r\n //System.out.println(\"#NUMBER OF ELEMS OF ALL LISTS: \" + numItems);\r\n //System.out.println(\"#SIZE OF tmpPathsToTarget : \" + tmpPathsToTarget.size());\r\n }\r\n \r\n //We need to reverse back all the predicates\r\n for (List<String> statements: tmpPathsToTarget) { \r\n List<String> fixedStatements = new ArrayList<String>(); \r\n for (int i = 0; i < statements.size(); i++) { \r\n String statement = statements.get(i); \r\n if (statement.contains(\">-\")) {\r\n fixedStatements.add(new StringBuilder(statement).reverse().toString());\r\n } else {\r\n fixedStatements.add(statement);\r\n } \r\n }\r\n pathsToTarget.add(fixedStatements);\r\n }\r\n return pathsToTarget;\r\n }", "private AssemblyResult cleanupSeqGraph(final SeqGraph seqGraph, final Haplotype refHaplotype) {\n if (debugGraphTransformations) {\n printDebugGraphTransform(seqGraph, refHaplotype.getLocation() + \"-sequenceGraph.\"+seqGraph.getKmerSize()+\".1.0.non_ref_removed.dot\");\n }\n // the very first thing we need to do is zip up the graph, or pruneGraph will be too aggressive\n seqGraph.zipLinearChains();\n if (debugGraphTransformations) {\n printDebugGraphTransform(seqGraph, refHaplotype.getLocation() + \"-sequenceGraph.\"+seqGraph.getKmerSize()+\".1.1.zipped.dot\");\n }\n\n // now go through and prune the graph, removing vertices no longer connected to the reference chain\n seqGraph.removeSingletonOrphanVertices();\n seqGraph.removeVerticesNotConnectedToRefRegardlessOfEdgeDirection();\n\n if (debugGraphTransformations) {\n printDebugGraphTransform(seqGraph, refHaplotype.getLocation() + \"-sequenceGraph.\"+seqGraph.getKmerSize()+\".1.2.pruned.dot\");\n }\n seqGraph.simplifyGraph();\n if (debugGraphTransformations) {\n printDebugGraphTransform(seqGraph, refHaplotype.getLocation() + \"-sequenceGraph.\"+seqGraph.getKmerSize()+\".1.3.merged.dot\");\n }\n\n // The graph has degenerated in some way, so the reference source and/or sink cannot be id'd. Can\n // happen in cases where for example the reference somehow manages to acquire a cycle, or\n // where the entire assembly collapses back into the reference sequence.\n if ( seqGraph.getReferenceSourceVertex() == null || seqGraph.getReferenceSinkVertex() == null ) {\n return new AssemblyResult(AssemblyResult.Status.JUST_ASSEMBLED_REFERENCE, seqGraph, null);\n }\n\n seqGraph.removePathsNotConnectedToRef();\n seqGraph.simplifyGraph();\n if ( seqGraph.vertexSet().size() == 1 ) {\n // we've perfectly assembled into a single reference haplotype, add a empty seq vertex to stop\n // the code from blowing up.\n // TODO -- ref properties should really be on the vertices, not the graph itself\n final SeqVertex complete = seqGraph.vertexSet().iterator().next();\n final SeqVertex dummy = new SeqVertex(\"\");\n seqGraph.addVertex(dummy);\n seqGraph.addEdge(complete, dummy, new BaseEdge(true, 0));\n }\n if (debugGraphTransformations) {\n printDebugGraphTransform(seqGraph, refHaplotype.getLocation() + \"-sequenceGraph.\"+seqGraph.getKmerSize()+\".1.4.final.dot\");\n }\n return new AssemblyResult(AssemblyResult.Status.ASSEMBLED_SOME_VARIATION, seqGraph, null);\n }", "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 }", "@Test\n public void sourceEqualsTarget() {\n graph.edge(0, 1).setDistance(1).set(speedEnc, 10, 10);\n graph.edge(0, 2).setDistance(1).set(speedEnc, 10, 10);\n graph.edge(1, 2).setDistance(1).set(speedEnc, 10, 10);\n assertPath(calcPath(0, 0, 0, 1), 0.3, 3, 300, nodes(0, 1, 2, 0));\n assertPath(calcPath(0, 0, 1, 0), 0.3, 3, 300, nodes(0, 2, 1, 0));\n // without restrictions the weight should be zero\n assertPath(calcPath(0, 0, ANY_EDGE, ANY_EDGE), 0, 0, 0, nodes(0));\n // in some cases no path is possible\n assertNotFound(calcPath(0, 0, 1, 1));\n assertNotFound(calcPath(0, 0, 5, 1));\n }", "private void phaseTwo(){\r\n\r\n\t\tCollections.shuffle(allNodes, random);\r\n\t\tList<Pair<Node, Node>> pairs = new ArrayList<Pair<Node, Node>>();\r\n\t\t\r\n\t\t//For each node in allNode, get all relationshpis and iterate through each relationship.\r\n\t\tfor (Node n1 : allNodes){\r\n\r\n\t\t\ttry (Transaction tx = graphDb.beginTx()){\r\n\t\t\t\t//If a node n1 is related to any other node in allNodes, add those relationships to rels.\r\n\t\t\t\t//Avoid duplication, and self loops.\r\n\t\t\t\tIterable<Relationship> ite = n1.getRelationships(Direction.BOTH);\t\t\t\t\r\n\r\n\t\t\t\tfor (Relationship rel : ite){\r\n\t\t\t\t\tNode n2 = rel.getOtherNode(n1);\t//Get the other node\r\n\t\t\t\t\tif (allNodes.contains(n2) && !n1.equals(n2)){\t\t\t\t\t//If n2 is part of allNodes and n1 != n2\r\n\t\t\t\t\t\tif (!rels.contains(rel)){\t\t\t\t\t\t\t\t\t//If the relationship is not already part of rels\r\n\t\t\t\t\t\t\tPair<Node, Node> pA = new Pair<Node, Node>(n1, n2);\r\n\t\t\t\t\t\t\tPair<Node, Node> pB = new Pair<Node, Node>(n2, n1);\r\n\r\n\t\t\t\t\t\t\tif (!pairs.contains(pA)){\r\n\t\t\t\t\t\t\t\trels.add(rel);\t\t\t\t\t\t\t\t\t\t\t//Add the relationship to the lists.\r\n\t\t\t\t\t\t\t\tpairs.add(pA);\r\n\t\t\t\t\t\t\t\tpairs.add(pB);\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\ttx.success();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn;\r\n\t}", "@FixFor( \"MODE-788\" )\n @Test\n public void shouldCreateSubgraphAndDeletePartOfThatSubgraphInSameOperation() {\n graph.batch()\n .create(\"/a\")\n .with(JcrLexicon.PRIMARY_TYPE, JcrNtLexicon.FOLDER)\n .orReplace()\n .and()\n .create(\"/a/b\")\n .with(JcrLexicon.PRIMARY_TYPE, JcrNtLexicon.FOLDER)\n .orReplace()\n .and()\n .create(\"/a/b/c\")\n .with(JcrLexicon.PRIMARY_TYPE, JcrNtLexicon.FOLDER)\n .orReplace()\n .and()\n .delete(\"/a/b\")\n .and()\n .execute();\n\n // Now look up node A ...\n File newFile = new File(testWorkspaceRoot, \"a\");\n assertTrue(newFile.exists());\n assertTrue(newFile.isDirectory());\n assertTrue(newFile.list().length == 0);\n assertFalse(new File(newFile, \"b\").exists());\n }", "@Test\n public void connectionNotFound() {\n graph.edge(0, 1).setDistance(1).set(speedEnc, 10, 0);\n graph.edge(2, 3).setDistance(1).set(speedEnc, 10, 0);\n\n Path path = calcPath(0, 3, 0, 1);\n assertNotFound(path);\n }", "@Test\n public void Test3() {\n TreeNode t1 = new TreeNode(1);\n TreeNode t2 = new TreeNode(2);\n TreeNode t3 = new TreeNode(3);\n TreeNode t4 = new TreeNode(4);\n TreeNode t5 = new TreeNode(5);\n TreeNode.connect(t3, t4, t2);\n TreeNode.connect(t4, t1, null);\n TreeNode.connect(t2, null, t5);\n TreeNode root = t3;\n\n TreeNode e1 = new TreeNode(1);\n TreeNode e2 = new TreeNode(2);\n TreeNode e3 = new TreeNode(3);\n TreeNode e4 = new TreeNode(4);\n TreeNode e5 = new TreeNode(5);\n TreeNode.connect(e3, e2, e4);\n TreeNode.connect(e2, e1, null);\n TreeNode.connect(e4, null, e5);\n TreeNode expected = e3;\n\n solution.recoverTree(root);\n assertTrue(TreeNode.isSameTree(expected, root));\n }", "protected boolean tryToConnectNode(IWeightedGraph<GraphNode, WeightedEdge> graph, GraphNode node,\r\n\t\t\tQueue<GraphNode> nodesToWorkOn) {\r\n\t\tboolean connected = false;\r\n\r\n\t\tfor (GraphNode otherNodeInGraph : graph.getVertices()) {\r\n\t\t\t// End nodes can not have a edge towards another node and the target\r\n\t\t\t// node must not be itself. Also there must not already be an edge\r\n\t\t\t// in the graph.\r\n\t\t\t// && !graph.containsEdge(node, nodeInGraph) has to be added\r\n\t\t\t// or loops occur which lead to a crash. This leads to the case\r\n\t\t\t// where no\r\n\t\t\t// alternative routes are being stored inside the pathsToThisNode\r\n\t\t\t// list. This is because of the use of a Queue, which loses the\r\n\t\t\t// memory of which nodes were already connected.\r\n\t\t\tif (!node.equals(otherNodeInGraph) && !this.startNode.equals(otherNodeInGraph)\r\n\t\t\t\t\t&& !graph.containsEdge(node, otherNodeInGraph)) {\r\n\r\n\t\t\t\t// Every saved path to this node is checked if any of these\r\n\t\t\t\t// produce a suitable effect set regarding the preconditions of\r\n\t\t\t\t// the current node.\r\n\t\t\t\tfor (WeightedPath<GraphNode, WeightedEdge> pathToListNode : node.pathsToThisNode) {\r\n\t\t\t\t\tif (areAllPreconditionsMet(otherNodeInGraph.preconditions, node.getEffectState(pathToListNode))) {\r\n\t\t\t\t\t\tconnected = true;\r\n\r\n\t\t\t\t\t\taddEgdeWithWeigth(graph, node, otherNodeInGraph, new WeightedEdge(),\r\n\t\t\t\t\t\t\t\tnode.action.generateCost(this.goapUnit));\r\n\r\n\t\t\t\t\t\totherNodeInGraph.addGraphPath(pathToListNode,\r\n\t\t\t\t\t\t\t\taddNodeToGraphPath(graph, pathToListNode, otherNodeInGraph));\r\n\r\n\t\t\t\t\t\tnodesToWorkOn.add(otherNodeInGraph);\r\n\r\n\t\t\t\t\t\t// break; // TODO: Possible Change: If enabled then only\r\n\t\t\t\t\t\t// one Path from the currently checked node is\r\n\t\t\t\t\t\t// transferred to another node. All other possible Paths\r\n\t\t\t\t\t\t// will not be considered and not checked.\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn connected;\r\n\t}", "public boolean reducible() {\n if (dfsTree.back.isEmpty()) {\n return true;\n }\n int size = controlFlow.transitions.length;\n boolean[] loopEnters = dfsTree.loopEnters;\n TIntHashSet[] cycleIncomings = new TIntHashSet[size];\n // really this may be array, since dfs already ensures no duplicates\n TIntArrayList[] nonCycleIncomings = new TIntArrayList[size];\n int[] collapsedTo = new int[size];\n int[] queue = new int[size];\n int top;\n for (int i = 0; i < size; i++) {\n if (loopEnters[i]) {\n cycleIncomings[i] = new TIntHashSet();\n }\n nonCycleIncomings[i] = new TIntArrayList();\n collapsedTo[i] = i;\n }\n\n // from whom back connections\n for (Edge edge : dfsTree.back) {\n cycleIncomings[edge.to].add(edge.from);\n }\n // from whom ordinary connections\n for (Edge edge : dfsTree.nonBack) {\n nonCycleIncomings[edge.to].add(edge.from);\n }\n\n for (int w = size - 1; w >= 0 ; w--) {\n top = 0;\n // NB - it is modified later!\n TIntHashSet p = cycleIncomings[w];\n if (p == null) {\n continue;\n }\n TIntIterator iter = p.iterator();\n while (iter.hasNext()) {\n queue[top++] = iter.next();\n }\n\n while (top > 0) {\n int x = queue[--top];\n TIntArrayList incoming = nonCycleIncomings[x];\n for (int i = 0; i < incoming.size(); i++) {\n int y1 = collapsedTo[incoming.getQuick(i)];\n if (!dfsTree.isDescendant(y1, w)) {\n return false;\n }\n if (y1 != w && p.add(y1)) {\n queue[top++] = y1;\n }\n }\n }\n\n iter = p.iterator();\n while (iter.hasNext()) {\n collapsedTo[iter.next()] = w;\n }\n }\n\n return true;\n }", "public boolean finished() {\r\n\t\tboolean allOccupied = true;\r\n\t\tfor (Node n : allNodes.values()) {\r\n\t\t\tif (n.path == 0) {\r\n\t\t\t\tallOccupied = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (allOccupied) {\r\n\r\n\t\t\tfor (Integer path : paths.keySet()) {\r\n\t\t\t\tStack<Node> sn=paths.get(path);\r\n\t\t\t\tNode n = sn.peek();\r\n\t\t\t\tif (!EndPoint.containsValue(n)) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (sn.size() > 1) {\r\n\t\t\t\t\tStack<Node> snBK = (Stack<Node>) sn.clone();\r\n\t\t\t\t\t\r\n\t\t\t\t\tNode n1 = snBK.pop();\r\n\t\t\t\t\twhile (!snBK.isEmpty()) {\r\n\t\t\t\t\t\tif(n1.path!=path)\r\n\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\tNode n2= snBK.pop();\r\n\t\t\t\t\t\tif(adjaMatrix[n1.index][n2.index]==0)\r\n\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tn1=n2;\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t} else\r\n\t\t\treturn false;\r\n\t}", "private PlainGraph mergeGraphsInternal(PlainGraph g1, PlainGraph g2) {\n // Create all nodes of g2 in g1\n // AddNode does check if the node does exist already, if so it doesn't create a new one\n for (Map.Entry<String, PlainNode> entry: graphNodeMap.get(g2).entrySet()){\n addNode(g1, entry.getKey(), null);\n }\n\n // create all edges of g2 in g1\n for (PlainEdge edge: g2.edgeSet()) {\n // check if the edge exists in g1, if so check if the variable names of the source and the target are also the same and not just the node names\n // Since the node names are numbered in each graph starting with 0, collisions could exists without the 2nd and 3rd check\n // Inverse the whole such that if this edge doesn't exist create it in g1\n if (! (g1.containsEdge(edge) && getVarName(g2, edge.source()).equals(getVarName(g1, edge.source())) && getVarName(g2, edge.target()).equals(getVarName(g1, edge.target())))) {\n addEdge(g1, getVarName(g2, edge.source()), edge.label().text(), getVarName(g2, edge.target()));\n }\n }\n return g1;\n }", "private static boolean isCycle(Graph graph) {\n for (int i = 0; i < graph.edges.length; ++i) {\n int x = graph.find(graph.edges[i][0]);\n int y = graph.find(graph.edges[i][1]);\n\n // if both subsets are same, then there is cycle in graph.\n if (x == y) {\n // for edge 2-0 : parent of 0 is 2 == 2 and so we detected a cycle\n return true;\n }\n // keep doing union/merge of sets\n graph.union(x, y);\n }\n return false;\n }", "@Test\n public void Test5() {\n TreeNode t1 = new TreeNode(1);\n TreeNode t2 = new TreeNode(2);\n TreeNode t3 = new TreeNode(3);\n TreeNode.connect(t3, t1, t2);\n TreeNode root = t3;\n\n TreeNode e1 = new TreeNode(1);\n TreeNode e2 = new TreeNode(2);\n TreeNode e3 = new TreeNode(3);\n TreeNode.connect(e2, e1, e3);\n TreeNode expected = e2;\n\n solution.recoverTree(root);\n assertTrue(TreeNode.isSameTree(expected, root));\n }", "private boolean findPath(Node b, Node e) throws GraphException{\n\t\t\n\t\t//mark start node and push it on stack\n\t\tb.setMark(true);\n\t\tthis.S.push(b);\n\t\t\t\t\n\t\t// base case, start is the end and we did not exceed the number of bus changes limit\n\t\tif (this.changeCount <= this.changes && b == e){\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t// variables to hold old values in case we need to change back\n\t\tint holdOldValue = this.changeCount;\n\t\tString holdLine = this.testLine;\n\t\t\n\t\t//iterator over the edges incident on the start node\n\t\tIterator<Edge> iter = this.graph.incidentEdges(b);\n\t\t\n\t\t// loop through incident edges\n\t\twhile(iter.hasNext()){\n\t\t\tEdge line = iter.next();\n\t\t\tString s = line.getBusLine();\n\t\t\t// increase the bus changes count if we change busLines\n\t\t\tif (!s.equals(this.testLine)){\n\t\t\t\tthis.changeCount++;\n\t\t\t}\n\t\t\t// set the bus line to the current one we are on\n\t\t\tthis.testLine = s;\n\t\t\t\n\t\t\t// take the node that is connected to start node via the edge\n\t\t\tNode u;\n\t\t\tif(line.secondEndpoint().equals(b)){\n\t\t\t\tu = line.firstEndpoint();\n\t\t\t}else{\n\t\t\t\tu = line.secondEndpoint();\n\t\t\t}\n\t\t\t// make sure node is not marked and perform a recursive call on it if\n\t\t\t// also make sure that the number of changes allowed has not already been exceeded\n\t\t\tif (u.getMark() != true && this.changeCount <= this.changes){\n\t\t\t\tif (findPath(u, e) == true){\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// undo changes to bus change count and current bus line if we move backwards\n\t\t\tif (holdOldValue < this.changeCount){\n\t\t\t\tthis.changeCount--;\n\t\t\t\tthis.testLine = holdLine;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t// unset the start node so that other recursive calls can use it and pop it off the stack\n\t\tb.setMark(false);\n\t\tthis.S.pop();\n\t\t\n\t\treturn false;\n\t}", "boolean reflow(DirectedGraph g)\n {\n ArrayList<Node> nodes = g.getNodes();\n int reset = 0;\n for(Node n: nodes)\n {\n ArrayList<Node> incoming = n.getIncomingLinks();\n ArrayList<Node> outgoing = n.getOutgoingLinks();\n // compute the total push force acting on this node\n int dx = 0;\n int dy = 0;\n for(Node ni: incoming) {\n dx += (ni.x-n.x);\n dy += (ni.y-n.y); }\n float len = (float) Math.sqrt(dx * dx + dy * dy);\n float angle = utility.getDirection(dx, dy);\n int[] motion = utility.rotateCoordinate((float) 0.9 * repulsion, (float) 0.0, angle);\n // move node\n int px = n.x;\n int py = n.y;\n n.x += motion[0];\n n.y += motion[1];\n if(n.x<0) { n.x=0; } else if(n.x>parent.width) { n.x=parent.width; }\n if(n.y<0) { n.y=0; } else if(n.y>parent.height) { n.y=parent.height; }\n // undo repositioning if elasticity is violated\n float shortest = n.getShortestLinkLength();\n if(shortest<min_size || shortest>elasticity*2) {\n reset++;\n n.x=px; n.y=py; }\n }\n return reset==nodes.size();\n }", "@Test\n public void testShortestPathEstacoes() {\n completeMap = new Graph(false);\n incompleteMap = new Graph(false);\n\n completeMap.insertVertex(porto);\n Company.getParkRegistry().getParkMap().put(porto, portoL);\n completeMap.insertVertex(braga);\n Company.getParkRegistry().getParkMap().put(braga, bragaL);\n completeMap.insertVertex(vila);\n Company.getParkRegistry().getParkMap().put(vila, vilaL);\n completeMap.insertVertex(aveiro);\n Company.getParkRegistry().getParkMap().put(aveiro, aveiroL);\n completeMap.insertVertex(coimbra);\n Company.getParkRegistry().getParkMap().put(coimbra, coimbraL);\n completeMap.insertVertex(leiria);\n Company.getParkRegistry().getParkMap().put(leiria, leiriaL);\n\n completeMap.insertVertex(viseu);\n Company.getParkRegistry().getParkMap().put(viseu, viseuL);\n completeMap.insertVertex(guarda);\n Company.getParkRegistry().getParkMap().put(guarda, guardaL);\n completeMap.insertVertex(castelo);\n Company.getParkRegistry().getParkMap().put(castelo, casteloL);\n completeMap.insertVertex(lisboa);\n Company.getParkRegistry().getParkMap().put(lisboa, lisboaL);\n completeMap.insertVertex(faro);\n Company.getParkRegistry().getParkMap().put(faro, faroL);\n\n completeMap.insertEdge(porto, aveiro, c, 75);\n completeMap.insertEdge(porto, braga, c2, 60);\n completeMap.insertEdge(porto, vila, c3, 100);\n completeMap.insertEdge(viseu, guarda, c4, 75);\n completeMap.insertEdge(guarda, castelo, c5, 100);\n completeMap.insertEdge(aveiro, coimbra, c6, 60);\n completeMap.insertEdge(coimbra, lisboa, c7, 200);\n completeMap.insertEdge(coimbra, leiria, c8, 80);\n completeMap.insertEdge(aveiro, leiria, c9, 120);\n completeMap.insertEdge(leiria, lisboa, c10, 150);\n\n completeMap.insertEdge(aveiro, viseu, c11, 85);\n completeMap.insertEdge(leiria, castelo, c12, 170);\n completeMap.insertEdge(lisboa, faro, c13, 280);\n\n incompleteMap = completeMap.clone();\n\n incompleteMap.removeEdge(aveiro, viseu);\n incompleteMap.removeEdge(leiria, castelo);\n incompleteMap.removeEdge(lisboa, faro);\n\n System.out.println(\"Test of shortest path\");\n\n LinkedList<String> shortPath = new LinkedList<>();\n double lenpath = 0;\n\n Company.getParkRegistry().setGraph(completeMap);\n lenpath = GraphAlgorithms.shortestPathEnergySpent(completeMap, porto, l, shortPath);\n assertTrue(\"Length path should be 0 if vertex does not exist\", lenpath == 0);\n\n Company.getParkRegistry().setGraph(incompleteMap);\n lenpath = GraphAlgorithms.shortestPathEnergySpent(incompleteMap, porto, faro, shortPath);\n assertTrue(\"Length path should be 0 if there is no path\", lenpath == 0);\n\n Company.getParkRegistry().setGraph(completeMap);\n lenpath = GraphAlgorithms.shortestPath(completeMap, porto, porto, shortPath);\n assertTrue(\"Number of nodes should be 1 if source and vertex are the same\", lenpath == 0);\n\n Company.getParkRegistry().setGraph(incompleteMap);\n lenpath = GraphAlgorithms.shortestPath(incompleteMap, porto, lisboa, shortPath);\n assertTrue(\"Path between Porto and Lisboa should be 335 Km\", lenpath == 335);\n\n Iterator<String> it = shortPath.iterator();\n assertTrue(\"First in path should be Porto\", it.next().equals(porto));\n assertTrue(\"then Aveiro\", it.next().equals(aveiro));\n assertTrue(\"then Coimbra\", it.next().equals(coimbra));\n assertTrue(\"then Lisboa\", it.next().equals(lisboa));\n completeMap.insertEdge(porto, lisboa, c, 10);\n\n Company.getParkRegistry().setGraph(incompleteMap);\n lenpath = GraphAlgorithms.shortestPathEnergySpent(incompleteMap, braga, leiria, shortPath);\n assertEquals(\"Path between Braga and Leiria should be close to 152.89\", lenpath, 152, 1);\n\n it = shortPath.iterator();\n\n assertTrue(\"First in path should be Braga\", it.next().equals(braga));\n assertTrue(\"then Porto\", it.next().equals(porto));\n assertTrue(\"then Aveiro\", it.next().equals(aveiro));\n assertTrue(\"then Coimbra\", it.next().equals(coimbra));\n assertTrue(\"then Leiria\", it.next().equals(leiria));\n\n shortPath.clear();\n Company.getParkRegistry().setGraph(completeMap);\n lenpath = GraphAlgorithms.shortestPathEnergySpent(completeMap, porto, castelo, shortPath);\n assertEquals(\"Path between Porto and Castelo Branco should be close to 202.86\", lenpath, 202, 1);\n assertTrue(\"N. cities between Porto and Castelo Branco should be 5 \", shortPath.size() == 5);\n\n it = shortPath.iterator();\n\n assertTrue(\"First in path should be Porto\", it.next().equals(porto));\n assertTrue(\"then Aveiro\", it.next().equals(aveiro));\n assertTrue(\"then Viseu\", it.next().equals(viseu));\n assertTrue(\"then Viseu\", it.next().equals(guarda));\n assertTrue(\"then Castelo Branco\", it.next().equals(castelo));\n\n //Changing Edge: aveiro-viseu with Edge: leiria-C.Branco \n //should change shortest path between porto and castelo Branco\n completeMap.removeEdge(aveiro, viseu);\n completeMap.insertEdge(leiria, castelo, c12, 170);\n shortPath.clear();\n\n Company.getParkRegistry().setGraph(completeMap);\n lenpath = GraphAlgorithms.shortestPath(completeMap, porto, castelo, shortPath);\n assertTrue(\"Path between Porto and Castelo Branco should now be 330 Km\", lenpath == 330);\n assertTrue(\"Path between Porto and Castelo Branco should be 4 cities\", shortPath.size() == 4);\n\n }", "protected synchronized void initGraph() throws Throwable {\r\n\t\tif (!initialized) {\r\n\t\t\tinitialized = true;\r\n\t\t\tif (rootGenerator instanceof MultipleRootGenerator) {\r\n\t\t\t\tCollection<Node<T, V>> roots = ((MultipleRootGenerator<T>) rootGenerator).getRoots().stream().map(n -> newNode(null, n)).collect(Collectors.toList());\r\n\t\t\t\tfor (Node<T, V> root : roots) {\r\n\t\t\t\t\tlabelNode(root);\r\n\t\t\t\t\topen.add(root);\r\n\t\t\t\t\tlogger.info(\"Labeled root with {}\", root.getInternalLabel());\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tNode<T, V> root = newNode(null, ((SingleRootGenerator<T>) rootGenerator).getRoot());\r\n\t\t\t\tlabelNode(root);\r\n\t\t\t\topen.add(root);\r\n\t\t\t}\r\n\r\n\t\t\t// check if the equals method is explicitly implemented.\r\n\t\t\t// Method [] methods = open.peek().getPoint().getClass().getDeclaredMethods();\r\n\t\t\t// boolean containsEquals = false;\r\n\t\t\t// for(Method m : methods)\r\n\t\t\t// if(m.getName() == \"equals\") {\r\n\t\t\t// containsEquals = true;\r\n\t\t\t// break;\r\n\t\t\t// }\r\n\t\t\t//\r\n\t\t\t// if(!containsEquals)\r\n\t\t\t// this.parentDiscarding = ParentDiscarding.NONE;\r\n\t\t}\r\n\t}", "@Test\n public void shouldDetectCycleWhenUpstreamLeavesAreAtDifferentLevels() {\n\n String g1 = \"g1\";\n String g2 = \"g2\";\n String p1 = \"p1\";\n String p2 = \"p2\";\n String p3 = \"p3\";\n String p4 = \"p4\";\n String p5 = \"p5\";\n String p6 = \"p6\";\n String current = \"current\";\n\n ValueStreamMap valueStreamMap = new ValueStreamMap(current, null);\n\n valueStreamMap.addUpstreamNode(new PipelineDependencyNode(p4, p4), null, current);\n valueStreamMap.addUpstreamNode(new PipelineDependencyNode(p3, p3), null, p4);\n valueStreamMap.addUpstreamNode(new PipelineDependencyNode(p2, p2), null, p3);\n valueStreamMap.addUpstreamNode(new PipelineDependencyNode(p1, p1), null, p2);\n valueStreamMap.addUpstreamMaterialNode(new SCMDependencyNode(g1, g1, \"git\"), null, p1, new MaterialRevision(null));\n\n valueStreamMap.addUpstreamNode(new PipelineDependencyNode(p5, p5), new PipelineRevision(p5,2,\"2\"), current);\n valueStreamMap.addUpstreamNode(new PipelineDependencyNode(p6, p6), new PipelineRevision(p6,1,\"1\"), p5);\n valueStreamMap.addUpstreamNode(new PipelineDependencyNode(p5, p5), new PipelineRevision(p5,1,\"1\"), p6);\n valueStreamMap.addUpstreamMaterialNode(new SCMDependencyNode(g2,g2,\"git\"), null, p5, new MaterialRevision(null));\n\n assertThat(valueStreamMap.hasCycle(), is(true));\n }", "@Test\r\n void remove_null() {\r\n graph.addEdge(\"A\", \"B\");\r\n graph.addEdge(\"B\", \"C\");\r\n graph.removeVertex(null);\r\n List<String> adjacent;\r\n vertices = graph.getAllVertices(); \r\n // Check that graph has all added vertexes\r\n if(!vertices.contains(\"A\")| !vertices.contains(\"B\")|\r\n !vertices.contains(\"C\")) {\r\n fail();\r\n }\r\n adjacent = graph.getAdjacentVerticesOf(\"A\");\r\n if (!adjacent.contains(\"B\"))\r\n fail();\r\n adjacent = graph.getAdjacentVerticesOf(\"B\");\r\n if (!adjacent.contains(\"C\"))\r\n fail();\r\n \r\n }", "@Test\r\n void add_20_remove_20_add_20() {\r\n //Add 20\r\n for(int i = 0; i < 20; i++) {\r\n graph.addVertex(\"\" +i);\r\n }\r\n vertices = graph.getAllVertices();\r\n //Check all 20 are in graph\r\n for(int i = 0; i < 20; i++) {\r\n if(!vertices.contains(\"\" + i)) {\r\n fail();\r\n }\r\n }\r\n //Remove 20 \r\n for(int i = 0; i < 20; i++) {\r\n graph.removeVertex(\"\" +i);\r\n }\r\n //Check all 20 are not in graph anymore \r\n \r\n for(int i = 0; i < 20; i++) {\r\n if(vertices.contains(\"\" + i)) {\r\n fail();\r\n }\r\n }\r\n //Add 20 again\r\n for(int i = 0; i < 20; i++) {\r\n graph.addVertex(\"\" +i);\r\n }\r\n //Check all 20 are in graph\r\n for(int i = 0; i < 20; i++) {\r\n if(!vertices.contains(\"\" + i)) {\r\n fail();\r\n }\r\n }\r\n }", "@SuppressWarnings(\"unchecked\")\n public synchronized void onChildrenChanged(String path, List<String> nodes) {\n for (String node : nodes) {\n \n if (filter(node) && !map.containsKey(node)) {\n try {\n //System.out.println(\"Loading: \" + node);\n Object o = registry.getRegistryObject(path + \"/\" + node);\n map.put(node, (T) o);\n } catch (Throwable e) {\n LOG.error(\"Error retrieving registry object at \" + path + \"/\" + node, e);\n }\n }\n }\n // Removes agents that go away.\n map.keySet().retainAll(nodes);\n notifyAll();\n }", "private boolean discrimPaths(Graph graph) {\n List<Node> nodes = graph.getNodes();\n\n for (Node b : nodes) {\n\n //potential A and C candidate pairs are only those\n // that look like this: A<-oBo->C or A<->Bo->C\n List<Node> possAandC = graph.getNodesOutTo(b, Endpoint.ARROW);\n\n //keep arrows and circles\n List<Node> possA = new LinkedList<>(possAandC);\n possA.removeAll(graph.getNodesInTo(b, Endpoint.TAIL));\n\n //keep only circles\n List<Node> possC = new LinkedList<>(possAandC);\n possC.retainAll(graph.getNodesInTo(b, Endpoint.CIRCLE));\n\n for (Node a : possA) {\n for (Node c : possC) {\n if (!graph.isParentOf(a, c)) {\n continue;\n }\n\n LinkedList<Node> reachable = new LinkedList<>();\n reachable.add(a);\n if (reachablePathFindOrient(graph, a, b, c, reachable)) {\n return true;\n }\n }\n }\n }\n return false;\n }", "public void resetVisited() {\n\t\tthis.visited = new HashSet<Point>();\n\t}", "public boolean reachable(Vertex start, Vertex end){\n\t\tSet<Vertex> reach = this.post(start); \n\t\treturn reach.contains(end);\n\t}", "public void markAllNodesAsUnvisited() {\r\n visitedToken++;\r\n }", "private List<AxiomTreeMapping> match(AxiomTreeNode t1, AxiomTreeNode t2, AxiomTreeMapping mapping) {\n if (mapping.contains(t1, t2)) {\n \t\n return matchChildren(t1, t2, mapping);\n }\n\n // else if the root nodes match and we haven't yet found a mapping for the node in t2\n if (!mapping.containsTarget(t2) && isMatch(t1, t2, mapping)) {\n \t\n // copy the mapping and add the two nodes to the existing mapping\n mapping = mapping.copy();\n \n if (t1.isLeaf() && t2.isLeaf()) {\n \t\tmapping.addMapping(t1, t2);\n \t\t//System.out.println(\"LEAF MAP\");\n \t\t//System.out.println(\"Current state of mapping: \");\n \t\t//mapping.printMapping();\n \t\t//System.out.println(\"-------------------------\");\n \t//System.out.println(\"\");\n \t\t//System.out.println(\"SHARED: \" + t1.getParent().toString()); \n\t //ystem.out.println(\"Leaf to leaf map: \" + t1.toString() + \" \" + t2.toString()); \t\n } \n\n // then continue with the child nodes\n return matchChildren(t1, t2, mapping);\n }\n\n // otherwise if the nodes don't match, return an empty list of mappings\n //System.out.println(\"Childe nodes don't match.\");\n return Collections.emptyList();\n }", "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 }", "void reinitialize(Graph.Vertex newSource) {\n\t\tsrc = newSource;\n\t\tfor (Graph.Vertex u : g) {\n\t\t\tDFSVertex bu = getVertex(u);\n\t\t\tbu.seen = false;\n\t\t\tbu.parent = null;\n\t\t\tbu.distance = INFINITY;\n\t\t\tbu.childrenCount = 0;\n\t\t}\n\t\tgetVertex(src).distance = 0;\n\t}", "public boolean correctCheckConnectGraph(ArrayList<MECountry> countryArr){\n Queue<String> queue = new LinkedList<String>();\n\n //If it is a empty map.\n if(countryArr.isEmpty()){\n return true;\n }\n\n HashMap<String,Boolean> visited = new HashMap<String,Boolean>();\n for(int i=0 ; i<countryArr.size(); i++ ){\n String countryTemp = countryArr.get(i).getCountryName();\n visited.put(countryTemp,false);\n }\n String firstCountry = countryArr.get(0).getCountryName();\n queue.offer(firstCountry);\n //bfs\n while(!queue.isEmpty()){\n String queueHead = queue.poll();\n visited.put(queueHead, Boolean.TRUE);\n for(int j=0 ;j<countryArr.size();j++){\n if(countryArr.get(j).getCountryName().equals(queueHead)){\n String countryNeighbor = countryArr.get(j).getNeighbor();\n countryNeighbor = countryNeighbor.replaceAll(\"\\\\[\",\"\");\n countryNeighbor = countryNeighbor.replaceAll(\"\\\\]\",\"\");\n countryNeighbor = countryNeighbor.replaceAll(\", \",\",\");\n String[] countryNeighbors = countryNeighbor.split(\",\");\n for(int k = 1;k<countryNeighbors.length;k++){\n String readyToAddInQueue = countryNeighbors[k];\n if(visited.get(readyToAddInQueue)==false){\n queue.offer(readyToAddInQueue);\n }\n }\n }\n }\n }\n for (String key: visited.keySet()) {\n if(visited.get(key)==false){\n checkFlagCG = false;\n break;\n }\n }\n return checkFlagCG;\n }", "@Test\n public void shouldUpdateDependentIfNodeAlreadyPresent() {\n String dependent = \"P1\";\n ValueStreamMap graph = new ValueStreamMap(dependent, null);\n graph.addUpstreamNode(new PipelineDependencyNode(\"d1\", \"d1\"), null, dependent);\n graph.addUpstreamNode(new PipelineDependencyNode(\"d2\", \"d2\"), null, dependent);\n graph.addUpstreamNode(new PipelineDependencyNode(\"d3\", \"d3\"), null, \"d1\");\n graph.addUpstreamNode(new PipelineDependencyNode(\"d3\", \"d3\"), null, \"d2\");\n\n VSMTestHelper.assertThatNodeHasChildren(graph, \"d3\", 0, \"d1\", \"d2\");\n }", "void flipPath(int lastNode) {\n int myLastNode = lastNode;\n while (myLastNode != EMPTY_LABEL) {\n int parent = this.tLabels[myLastNode];\n\n // Add (parent, lastNode) to matching. We don't need to\n // explicitly remove any edges from the matching because:\n // * We know at this point that there is no i such that\n // sMatches[i] = lastNode.\n // * Although there might be some j such that tMatches[j] =\n // parent, that j must be sLabels[parent], and will change\n // tMatches[j] in the next time through this loop.\n this.sMatches[parent] = lastNode;\n this.tMatches[myLastNode] = parent;\n\n myLastNode = this.sLabels[parent];\n }\n }", "protected void merge(FlowGraphNode victim){\r\n for(FlowGraphNode node : victim.to){\r\n this.addTo(node);\r\n node.from.remove(victim);\r\n }\r\n for(FlowGraphNode node : victim.from){\r\n node.addTo(this);\r\n node.to.remove(victim);\r\n }\r\n }", "public void checkConnections() {\n Boolean updateCanvas = false;\n\n // Find new connections set within a node and creates them\n for (DrawableNode node : nodes) {\n if (node instanceof LogicNode) {\n String src = ((LogicNode) node).getLogic().getLogic();\n\n for (DrawableNode endNode : getNodes()) {\n int nodeConnectionType = NodeConnection.NO_CONNECTION;\n\n // Here we are checked to see if any connections are linked from this LogicNode\n if (src.contains(\"run(\\\"\" + endNode.getContainedText() + \"\\\"\") ||\n src.contains(\"runAndWait(\\\"\" + endNode.getContainedText() + \"\\\"\") ||\n src.contains(\"runAndJoin(\\\"\" + endNode.getContainedText() + \"\\\"\")) {\n nodeConnectionType = NodeConnection.DYNAMIC_CONNECTION;\n } else if (src.contains(\"getNode(\\\"\" + endNode.getContainedText() + \"\\\"\")) {\n nodeConnectionType = NodeConnection.GET_NODE_CONNECTION;\n }\n\n // If we find a possible connection and it doesn't already exist, we create that connection with the correct type\n if (!connectionExists(node, endNode) && nodeConnectionType != -1) {\n NodeConnection newConnection = new NodeConnection(node, endNode, nodeConnectionType);\n connections.add(newConnection);\n updateCanvas = true;\n }\n }\n } else if (node instanceof TestCaseNode) {\n String src = ((TestCaseNode) node).getLogic().getLogic();\n\n for (DrawableNode endNode : getNodes()) {\n int nodeConnectionType = NodeConnection.NO_CONNECTION;\n\n // Here we are checked to see if any connections are linked from this TestCaseNode\n if (src.contains(\"run(\\\"\" + endNode.getContainedText() + \"\\\"\") ||\n src.contains(\"runAndWait(\\\"\" + endNode.getContainedText() + \"\\\"\") ||\n src.contains(\"runAndJoin(\\\"\" + endNode.getContainedText() + \"\\\"\")) {\n nodeConnectionType = NodeConnection.DYNAMIC_CONNECTION;\n } else if (src.contains(\"getNode(\\\"\" + endNode.getContainedText() + \"\\\"\")) {\n nodeConnectionType = NodeConnection.GET_NODE_CONNECTION;\n }\n\n // If we find a possible connection and it doesn't already exist, we create that connection with the correct type\n if (!connectionExists(node, endNode) && nodeConnectionType != -1) {\n NodeConnection newConnection = new NodeConnection(node, endNode, nodeConnectionType);\n connections.add(newConnection);\n updateCanvas = true;\n }\n }\n } else if (node instanceof SwitchNode) {\n List<Switch> aSwitches = ((SwitchNode) node).getSwitches();\n\n for (DrawableNode endNode : getNodes()) {\n Boolean createConnection = false;\n Boolean enabledConnection = false;\n\n for (Switch aSwitch : aSwitches) {\n if ((aSwitch.getTarget().equals(endNode.getContainedText()))) {\n enabledConnection = aSwitch.isEnabled();\n createConnection = true;\n }\n }\n\n if (createConnection && !connectionExists(node, endNode)) {\n Integer connectionType = NodeConnection.DYNAMIC_CONNECTION;\n if (!enabledConnection) {\n connectionType = NodeConnection.DISABLED_CONNECTION;\n }\n\n NodeConnection newConnection = new NodeConnection(node, endNode, connectionType);\n connections.add(newConnection);\n updateCanvas = true;\n }\n }\n } else if (node instanceof TriggerNode) {\n List<Trigger> triggers = ((TriggerNode) node).getTriggers();\n\n for (Trigger trigger : triggers) {\n String watchName = trigger.getWatch();\n\n for (DrawableNode endNode : getNodes()) {\n Boolean createConnection = false;\n\n if (watchName.equals(endNode.getContainedText())) {\n createConnection = true;\n }\n\n // This connection has the start and end the other way around, the target is specified in the trigger but\n // we want it to look like the watched node is connecting to the trigger as that is the order that they are run\n if (createConnection && !connectionExists(endNode, node)) {\n NodeConnection newConnection = new NodeConnection(endNode, node, NodeConnection.TRIGGER_CONNECTION);\n connections.add(newConnection);\n updateCanvas = true;\n }\n }\n }\n }\n\n // Find connection that are set using the Next node input box\n if (node != null && !node.getNextNodeToRun().isEmpty()) {\n for (DrawableNode endNode : getNodes()) {\n if (node.getNextNodeToRun().equals(endNode.getContainedText())) {\n if (!connectionExists(node, endNode)) {\n NodeConnection newConnection = new NodeConnection(node, endNode, NodeConnection.MAIN_CONNECTION);\n connections.add(newConnection);\n updateCanvas = true;\n }\n }\n }\n }\n }\n\n // Checks old connections and removes ones that don't exist\n List<NodeConnection> listToRemove = new ArrayList<>();\n List<NodeConnection> connectionsLoopTemp = new ArrayList<>(); // We make a copy the list here so that we can the original while iterating over this one\n connectionsLoopTemp.addAll(connections);\n for (NodeConnection nodeConnection : connectionsLoopTemp) {\n if (nodeConnection.getConnectionType().equals(NodeConnection.DYNAMIC_CONNECTION)) {\n if (nodeConnection.getConnectionStart() instanceof LogicNode) {\n if (!((LogicNode) nodeConnection.getConnectionStart()).getLogic().getLogic().contains(\"run(\\\"\" + nodeConnection.getConnectionEnd().getContainedText() + \"\\\"\")) {\n if (!((LogicNode) nodeConnection.getConnectionStart()).getLogic().getLogic().contains(\"runAndWait(\\\"\" + nodeConnection.getConnectionEnd().getContainedText() + \"\\\"\")) {\n if (!((LogicNode) nodeConnection.getConnectionStart()).getLogic().getLogic().contains(\"runAndJoin(\\\"\" + nodeConnection.getConnectionEnd().getContainedText() + \"\\\"\")) {\n if (!((LogicNode) nodeConnection.getConnectionStart()).getLogic().getLogic().contains(\"getNode(\\\"\" + nodeConnection.getConnectionEnd().getContainedText() + \"\\\"\")) {\n listToRemove.add(nodeConnection);\n updateCanvas = true;\n }\n }\n }\n }\n } else if (nodeConnection.getConnectionStart() instanceof TestCaseNode) {\n if (!((TestCaseNode) nodeConnection.getConnectionStart()).getLogic().getLogic().contains(\"run(\\\"\" + nodeConnection.getConnectionEnd().getContainedText() + \"\\\"\")) {\n if (!((TestCaseNode) nodeConnection.getConnectionStart()).getLogic().getLogic().contains(\"runAndWait(\\\"\" + nodeConnection.getConnectionEnd().getContainedText() + \"\\\"\")) {\n if (!((TestCaseNode) nodeConnection.getConnectionStart()).getLogic().getLogic().contains(\"runAndJoin(\\\"\" + nodeConnection.getConnectionEnd().getContainedText() + \"\\\"\")) {\n if (!((TestCaseNode) nodeConnection.getConnectionStart()).getLogic().getLogic().contains(\"getNode(\\\"\" + nodeConnection.getConnectionEnd().getContainedText() + \"\\\"\")) {\n listToRemove.add(nodeConnection);\n updateCanvas = true;\n }\n }\n }\n }\n } else if (nodeConnection.getConnectionStart() instanceof SwitchNode) {\n List<Switch> aSwitches = ((SwitchNode) nodeConnection.getConnectionStart()).getSwitches();\n String endContainedText = nodeConnection.getConnectionEnd().getContainedText();\n Integer removeCount = 0;\n for (Switch aSwitch : aSwitches) {\n if ((!aSwitch.getTarget().equals(endContainedText) || !aSwitch.isEnabled())) {\n removeCount++;\n }\n }\n\n if (removeCount.equals(aSwitches.size())) {\n // Create a disabled connection between these two nodes to give appearance of toggling\n NodeConnection newConnection = new NodeConnection(nodeConnection.getConnectionStart(), nodeConnection.getConnectionEnd(), NodeConnection.DISABLED_CONNECTION);\n connections.add(newConnection);\n\n listToRemove.add(nodeConnection);\n updateCanvas = true;\n }\n }\n } else if (nodeConnection.getConnectionType().equals(NodeConnection.TRIGGER_CONNECTION)) {\n if (nodeConnection.getConnectionEnd() instanceof TriggerNode) { // Here the start and end connections are reversed\n List<Trigger> triggers = ((TriggerNode) nodeConnection.getConnectionEnd()).getTriggers();\n String endContainedText = nodeConnection.getConnectionStart().getContainedText();\n Integer removeCount = 0;\n for (Trigger trigger : triggers) {\n if ((!trigger.getWatch().equals(endContainedText))) {\n removeCount++;\n }\n }\n\n if (removeCount.equals(triggers.size())) {\n listToRemove.add(nodeConnection);\n updateCanvas = true;\n }\n }\n } else if (nodeConnection.getConnectionType().equals(NodeConnection.GET_NODE_CONNECTION)) {\n if (nodeConnection.getConnectionStart() instanceof LogicNode) {\n if (!((LogicNode) nodeConnection.getConnectionStart()).getLogic().getLogic().contains(\"getNode(\\\"\" + nodeConnection.getConnectionEnd().getContainedText() + \"\\\"\")) {\n listToRemove.add(nodeConnection);\n updateCanvas = true;\n }\n } else if (nodeConnection.getConnectionStart() instanceof TestCaseNode) {\n if (!((TestCaseNode) nodeConnection.getConnectionStart()).getLogic().getLogic().contains(\"getNode(\\\"\" + nodeConnection.getConnectionEnd().getContainedText() + \"\\\"\")) {\n listToRemove.add(nodeConnection);\n updateCanvas = true;\n }\n }\n } else if (nodeConnection.getConnectionType().equals(NodeConnection.DISABLED_CONNECTION)) {\n if (nodeConnection.getConnectionStart() instanceof SwitchNode) {\n List<Switch> aSwitches = ((SwitchNode) nodeConnection.getConnectionStart()).getSwitches();\n String endContainedText = nodeConnection.getConnectionEnd().getContainedText();\n Integer removeCount = 0;\n for (Switch aSwitch : aSwitches) {\n if ((!aSwitch.getTarget().equals(endContainedText) || aSwitch.isEnabled())) {\n removeCount++;\n }\n }\n\n if (removeCount.equals(aSwitches.size())) {\n // Create an enabled connection between these two nodes to give appearance of toggling\n NodeConnection newConnection = new NodeConnection(nodeConnection.getConnectionStart(), nodeConnection.getConnectionEnd(), NodeConnection.DYNAMIC_CONNECTION);\n connections.add(newConnection);\n\n listToRemove.add(nodeConnection);\n updateCanvas = true;\n }\n }\n }\n\n if (nodeConnection.getConnectionType().equals(NodeConnection.MAIN_CONNECTION)) {\n if (!nodeConnection.getConnectionStart().getNextNodeToRun().equals(nodeConnection.getConnectionEnd().getContainedText())) {\n listToRemove.add(nodeConnection);\n updateCanvas = true;\n }\n }\n }\n\n connections.removeAll(listToRemove);\n if (updateCanvas) {\n Controller.getInstance().updateCanvasControllerLater();\n }\n }", "private List<V> intersectGraphPaths(GraphPath<V, E> p1, GraphPath<V, E> p2)\n {\n List<V> res = new LinkedList<>();\n res.addAll(p1.getVertexList());\n res.retainAll(p2.getVertexList());\n return res;\n }", "private void awayFromAncestorCycle(Graph graph) {\n while (changeFlag) {\n changeFlag = false;\n List<Node> nodes = graph.getNodes();\n\n for (Node B : nodes) {\n List<Node> adj = graph.getAdjacentNodes(B);\n\n if (adj.size() < 2) {\n continue;\n }\n\n ChoiceGenerator cg = new ChoiceGenerator(adj.size(), 2);\n int[] combination;\n\n while ((combination = cg.next()) != null) {\n Node A = adj.get(combination[0]);\n Node C = adj.get(combination[1]);\n\n //choice gen doesnt do diff orders, so must switch A & C around.\n awayFromAncestor(graph, A, B, C);\n awayFromAncestor(graph, C, B, A);\n awayFromCycle(graph, A, B, C);\n awayFromCycle(graph, C, B, A);\n }\n }\n }\n changeFlag = true;\n }", "@Test\n public void testGraphElements(){\n Vertex v1 = new Vertex(1, \"A\");\n Vertex v2 = new Vertex(2, \"B\");\n Vertex v3 = new Vertex(3, \"C\");\n Vertex v4 = new Vertex(4, \"D\");\n Vertex v5 = new Vertex(5, \"E\");\n Vertex v6 = new Vertex(6, \"F\");\n Vertex v7 = new Vertex(7, \"G\");\n Vertex v8 = new Vertex(8, \"H\");\n\n Vertex fakeVertex = new Vertex(100, \"fake vertex\");\n\n Edge<Vertex> e1 = new Edge<>(v1, v2, 1);\n Edge<Vertex> e2 = new Edge<>(v2, v3, 1);\n Edge<Vertex> e3 = new Edge<>(v3, v4, 1);\n Edge<Vertex> e4 = new Edge<>(v2, v4, 1);\n Edge<Vertex> e5 = new Edge<>(v2, v6, 1);\n Edge<Vertex> e6 = new Edge<>(v2, v5, 10);\n Edge<Vertex> e7 = new Edge<>(v5, v6, 10);\n Edge<Vertex> e8 = new Edge<>(v4, v6, 10);\n Edge<Vertex> e9 = new Edge<>(v6, v7, 10);\n Edge<Vertex> e10 = new Edge<>(v7, v8, 10);\n\n Edge<Vertex> fakeEdge = new Edge<>(fakeVertex, v1);\n Edge<Vertex> edgeToRemove = new Edge<>(v2, v7, 200);\n\n Graph<Vertex, Edge<Vertex>> g = new Graph<>();\n g.addVertex(v1);\n g.addVertex(v2);\n g.addVertex(v3);\n g.addVertex(v4);\n g.addVertex(v5);\n g.addVertex(v6);\n g.addVertex(v7);\n g.addVertex(v8);\n g.addEdge(e1);\n g.addEdge(e2);\n g.addEdge(e3);\n g.addEdge(e4);\n g.addEdge(e5);\n g.addEdge(e6);\n g.addEdge(e7);\n g.addEdge(e8);\n g.addEdge(e9);\n g.addEdge(edgeToRemove);\n\n Assert.assertTrue(g.addEdge(e10));\n\n //adding null edge or vertex to graph returns false\n Assert.assertFalse(g.addEdge(null));\n Assert.assertFalse(g.addVertex(null));\n\n //adding edge with a vertex that does not exist in graph g returns false\n Assert.assertFalse(g.addEdge(fakeEdge));\n\n //get an edge that does not exit in graph returns false\n Assert.assertFalse(g.edge(v1, fakeVertex));\n\n //getting length of edge from vertex not in graph g returns false\n Assert.assertEquals(0, g.edgeLength(fakeVertex, v2));\n\n //Remove an edge in graph g returns true\n Assert.assertTrue(g.remove(edgeToRemove));\n\n //Removing edge not in graph g returns false\n Assert.assertFalse(g.remove(fakeEdge));\n\n //Removing vertex not in graph g returns false\n Assert.assertFalse(g.remove(fakeVertex));\n\n //Finding an edge with an endpoint not in graph g returns null\n assertNull(g.getEdge(v1, fakeVertex));\n }", "@Test\n public void differentLinearGraphsTest() throws Exception {\n EventNode[] g1Nodes = getChainTraceGraphNodesInOrder(new String[] {\n \"a\", \"b\", \"c\", \"d\" });\n\n EventNode[] g2Nodes = getChainTraceGraphNodesInOrder(new String[] {\n \"a\", \"b\", \"c\", \"e\" });\n\n // ///////////////////\n // g1 and g2 are k-equivalent at first three nodes for k=1,2,3\n // respectively, but no further. Subsumption follows the same pattern.\n\n // \"INITIAL\" not at root:\n testKEqual(g1Nodes[0], g2Nodes[0], 1);\n testKEqual(g1Nodes[0], g2Nodes[0], 2);\n testKEqual(g1Nodes[0], g2Nodes[0], 3);\n testKEqual(g1Nodes[0], g2Nodes[0], 4);\n testNotKEqual(g1Nodes[0], g2Nodes[0], 5);\n testNotKEqual(g1Nodes[0], g2Nodes[0], 6);\n\n // \"a\" node at root:\n testKEqual(g1Nodes[1], g2Nodes[1], 1);\n testKEqual(g1Nodes[1], g2Nodes[1], 2);\n testKEqual(g1Nodes[1], g2Nodes[1], 3);\n testNotKEqual(g1Nodes[1], g2Nodes[1], 4);\n testNotKEqual(g1Nodes[1], g2Nodes[1], 5);\n\n // \"b\" node at root:\n testKEqual(g1Nodes[2], g2Nodes[2], 1);\n testKEqual(g1Nodes[2], g2Nodes[2], 2);\n testNotKEqual(g1Nodes[2], g2Nodes[2], 3);\n\n // \"c\" node at root:\n testKEqual(g1Nodes[3], g2Nodes[3], 1);\n testNotKEqual(g1Nodes[3], g2Nodes[3], 2);\n\n // \"d\" and \"e\" nodes at root:\n testNotKEqual(g1Nodes[4], g2Nodes[4], 1);\n }", "@Override\n\tpublic boolean findPath(PathfindingNode start, PathfindingNode end, ArrayList<PathfindingNode> path) \n\t{\n\t\tpath.clear();\n\t\t\n\t\t_visited.clear();\n\t\t_toVisit.clear();\n\t\t_parents.clear();\n\t\t_costsFromStart.clear();\n\t\t_totalCosts.clear();\n\n\t\t_costsFromStart.put(start, 0);\n\t\t_toVisit.add(start);\n\t\t_parents.put(start, null);\n\t\t\n\t\twhile (!_toVisit.isEmpty() && !_toVisit.contains(end))\n\t\t{\n\t\t\tPathfindingNode m = _toVisit.remove();\n\t\t\t\n\t\t\tint mCost = _costsFromStart.get(m);\n\t\t\t\n\t\t\tfor (int i = 0; i < m.getNeighbors().size(); ++i)\n\t\t\t{\n\t\t\t\tPathfindingNodeEdge n = m.getNeighbors().get(i);\n\t\t\t\tif (n.getNeighbor() != null && !_visited.contains(n.getNeighbor()))\n\t\t\t\t{\n\t\t\t\t\tint costFromSource = mCost + n.getCost();\n\t\t\t\t\tint totalCost = costFromSource + _estimator.estimate(n.getNeighbor(), end);\n\t\t\t\t\tif (!_toVisit.contains(n.getNeighbor()) || totalCost < _totalCosts.get(n.getNeighbor()))\n\t\t\t\t\t{\n\t\t\t\t\t\t_parents.put(n.getNeighbor(), m);\n\t\t\t\t\t\t_costsFromStart.put(n.getNeighbor(), costFromSource);\n\t\t\t\t\t\t_totalCosts.put(n.getNeighbor(), totalCost);\n\t\t\t\t\t\tif (_toVisit.contains(n.getNeighbor()))\n\t\t\t\t\t\t\t_toVisit.remove(n.getNeighbor());\n\t\t\t\t\t\t_toVisit.add(n.getNeighbor());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t_visited.add(m);\n\t\t}\n\t\t\n\t\tif (_toVisit.contains(end))\n\t\t{\n\t\t\t_reversePath.clear();\n\t\t\t\n\t\t\tPathfindingNode current = end;\n\t\t\twhile (current != null)\n\t\t\t{\n\t\t\t\t_reversePath.push(current);\n\t\t\t\tcurrent = _parents.get(current);\n\t\t\t}\n\t\t\t\n\t\t\twhile (!_reversePath.isEmpty())\n\t\t\t\tpath.add(_reversePath.pop());\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tpath.add(start);\n\t\t\treturn false;\n\t\t}\n\t}", "private boolean isReachable(String current, String destination) {\n if (current.equals(destination)) {\n return true;\n } else if (visited.contains(current) || graph.get(current) == null) {\n return false;\n }\n\n // similar to dfs\n visited.add(current);\n for (Object vertex : graph.get(current)) {\n if (isReachable((String) vertex, destination))\n return true;\n }\n\n return false;\n }", "@Test\n public void getGraphNull() throws Exception {\n try (final Graph defaultGraph = dataset.getGraph(null).get()) {\n // TODO: Can we assume the default graph was empty before our new triples?\n assertEquals(2, defaultGraph.size());\n assertTrue(defaultGraph.contains(alice, isPrimaryTopicOf, graph1));\n // NOTE: wildcard as graph2 is a (potentially mapped) BlankNode\n assertTrue(defaultGraph.contains(bob, isPrimaryTopicOf, null));\n }\n }", "private void removeNoMoreExistingOriginalEdges() {\n for (MirrorEdge mirrorEdge : directEdgeMap.values()) {\n if (!originalGraph.has(mirrorEdge.original)) {\n for (Edge segment : mirrorEdge.segments) {\n mirrorGraph.forcedRemove(segment);\n reverseEdgeMap.remove(segment);\n }\n for (Node bend : mirrorEdge.bends) {\n mirrorGraph.forcedRemove(bend);\n reverseEdgeMap.remove(bend);\n }\n directEdgeMap.remove(mirrorEdge.original);\n }\n }\n }" ]
[ "0.6281206", "0.6161731", "0.6150349", "0.6133898", "0.5993909", "0.59894145", "0.59654725", "0.5828475", "0.5828395", "0.5787099", "0.57577115", "0.5755697", "0.57489055", "0.57454044", "0.57430965", "0.57361263", "0.5722884", "0.57209057", "0.57154804", "0.56898916", "0.5684139", "0.56796813", "0.5677823", "0.5676954", "0.56765234", "0.56710243", "0.566917", "0.5646318", "0.56307274", "0.5611399", "0.5601572", "0.5600839", "0.56006676", "0.559695", "0.55930775", "0.5579726", "0.55777174", "0.55752665", "0.55732507", "0.55669636", "0.5561979", "0.5556419", "0.5555379", "0.55527383", "0.5547796", "0.55458236", "0.5537601", "0.5534644", "0.5527857", "0.5522326", "0.55207694", "0.55194706", "0.5513721", "0.55131334", "0.55121994", "0.550998", "0.550691", "0.550152", "0.54929626", "0.5485024", "0.5482147", "0.54738194", "0.54712343", "0.5465191", "0.54601085", "0.5455158", "0.54436433", "0.54413724", "0.543858", "0.54347265", "0.54326665", "0.54324603", "0.5426071", "0.54214865", "0.5419097", "0.5417936", "0.5416527", "0.54115796", "0.5411219", "0.5408892", "0.5400917", "0.53994274", "0.53965664", "0.5395484", "0.5387389", "0.53870064", "0.53850764", "0.5379756", "0.5371942", "0.53693783", "0.53678447", "0.5361872", "0.5361556", "0.5357703", "0.53501785", "0.53488594", "0.5345108", "0.5344667", "0.534212", "0.5330905" ]
0.718863
0
generate random 6 digit numbers for email
public String getRandomNumberString() { Random rnd = new Random(); int number = rnd.nextInt(899999) + 100000; // this will convert any number sequence into 6 character. String formatted_code = String.format("%06d", number); return formatted_code; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int getRandomNumberString() {\n // It will generate 6 digit random Number.\n // from 0 to 999999\n Random rnd = new Random();\n int number = rnd.nextInt(999999);\n\n // this will convert any number sequence into 6 character.\n return number;\n }", "public String generateRandomEmail() {\n return generateLocalPart() + \"@test\" + getRandNumber() + \".com\";\n }", "public static String getRandomNumberString() {\n Random rnd = new Random();\n int number = rnd.nextInt(9999999);\n\n // this will convert any number sequence into 6 character.\n return String.format(\"%07d\", number);\n }", "private static String accountNumberGenerator() {\n char[] chars = new char[10];\n for (int i = 0; i < 10; i++) {\n chars[i] = Character.forDigit(rnd.nextInt(10), 10);\n }\n return new String(chars);\n }", "public static String randomEmail() {\n\t\tRandom randomGenerator = new Random(); \n\t\tint randomInt = randomGenerator.nextInt(10000); \n\t\treturn \"username\"+ randomInt +\"@yopmail.com\"; \n\t}", "public static String randomNumberString() {\n\r\n Random random = new Random();\r\n int i = random.nextInt(999999);\r\n\r\n\r\n return String.format(\"%06d\", i);\r\n }", "public static String validEmailAddressGenerator() {\n\n\t\tStringBuffer sb = new StringBuffer();\n\t\tString allChar = \"0123456789abcdefghijklmnopqrstuvwxyz\";\n\n\t\tRandom random = new Random();\n\t\tfor (int i = 0; i < 8; i++) {\n\t\t\tsb.append(allChar.charAt(random.nextInt(allChar.length())));\n\t\t}\n\n\t\tString tmp = sb.toString();\n\n\t\tsb.append(\"@\");\n\t\tsb.append(tmp);\n\t\tsb.append(\".com\");\n\n\t\tString mailAdd = sb.toString();\n\n\t\treturn mailAdd;\n\t}", "private static String smsCode() {\n\t\t\tString random=new Random().nextInt(1000000)+\"\";\r\n\t\t\treturn random;\r\n\t\t}", "private String generateToken () {\n SecureRandom secureRandom = new SecureRandom();\n long longToken;\n String token = \"\";\n for ( int i = 0; i < 3; i++ ) {\n longToken = Math.abs( secureRandom.nextLong() );\n token = token.concat( Long.toString( longToken, 34 + i ) );//max value of radix is 36\n }\n return token;\n }", "public static String generateEmail(int length) {\n\t\tString allowedChars = \"abcdefghijklmnopqrstuvwxyz\" + // alphabets\n\t\t\t\t\"1234567890\"; // numbers\n\n\t\tString email = \"\";\n\t\tString temp = RandomStringUtils.random(length, allowedChars);\n\t\temail = temp.substring(0, temp.length() - 9) + \"@wrap.org\";\n\t\treturn email;\n\t}", "private byte[] generateRandomMessage(int size) {\r\n\t\t\r\n\t\tif (size < 10) { // minimum length is 10, since first 9 digits \r\n\t\t\t\t\t\t // are used as message id\r\n\t\t\tsize = 10;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tString message = \"\";\r\n\t\t\r\n\t\tfor(int j=0; j<size; j++) {\r\n\t\t\t\r\n\t\t\tmessage += (char)(random.nextInt(10)+'0');\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn message.getBytes();\r\n\t\t\r\n\t}", "public String generateOTP() {\n String values = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\"; //characters to use in password\n Random random = new Random();\n char[] password = new char[6]; //setting password size to 6\n IntStream.range(0, password.length).forEach(i -> password[i] = values.charAt(random.nextInt(values.length())));\n return String.valueOf(password);\n }", "private void getRandomNumber() {\n\t\tRandom random = new Random();\n\t\tint randomCount = 255;\n\t\tint randNum = 0; \n\t\tfor(int i = 0; i < numberAmt; i++) {\n\t\t\trandNum = random.nextInt(randomCount);\n\t\t\tswitch (numberType) {\n\t\t\tcase 1:\n\t\t\t\trandomNumbers.add(Integer.toString(randNum));\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tif(randNum > 15)\n\t\t\t\t\trandomNumbers.add(String.format(\"%8s\", Integer.toBinaryString(randNum)).replace(\" \", \"0\"));\n\t\t\t\telse\n\t\t\t\t\trandomNumbers.add(String.format(\"%4s\", Integer.toBinaryString(randNum)).replace(\" \", \"0\"));\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\trandomNumbers.add(Integer.toHexString(randNum));\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public String generateTrackingNumber() {\n String randChars = \"ABCDEFGHIJ0123456789\";\n StringBuilder trackingNumber = new StringBuilder();\n Random rand = new Random();\n \n while(trackingNumber.length() < 12) {\n int i = (int) (rand.nextFloat() * randChars.length());\n trackingNumber.append(randChars.charAt(i));\n }\n String trackingNum = trackingNumber.toString();\n return trackingNum;\n }", "public static String randomNumberGenerator() {\r\n\t\tint max = 999999999; // e.g. 714053349 (9 digits)\r\n\t\tRandom rand = new Random();\r\n\t\tint min = 0;\r\n\t\tint randomNum = rand.nextInt(max - min + 1) + min;\r\n\t\treturn Integer.toString(randomNum);\r\n\t}", "public static String generateRandomUsername() {\n final String randomFirst = Long.toHexString(Double.doubleToLongBits(Math\n .random()));\n final String randomSecond = Long.toHexString(Double.doubleToLongBits(Math\n .random()));\n final String randomThird = Long.toHexString(Double.doubleToLongBits(Math\n .random()));\n String userName = randomFirst + randomSecond + randomThird;\n\n userName = userName.substring(0, 10) + \"@ngetestmail.com\";\n\n return userName;\n }", "public String generateMP() {\n\t\t\tString characters = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789~`!@#$%^&*()-_=+[{]}\\\\|;:\\'\\\",<.>/?\";\n\t\t\tString pwd = RandomStringUtils.random(15, 0, 0, false, false, characters.toCharArray(), new SecureRandom());\n\t\t\treturn pwd;\n\t\t}", "private static String getRandString() {\r\n return DigestUtils.md5Hex(UUID.randomUUID().toString());\r\n }", "public int generateRandom() {\n\t\tint random = (int)(Math.random()*((6-1)+1))+1;\n\t\treturn random;\n\t}", "public String generateString() {\n\t\tint maxLength = 9;\n\t\tRandom random = new Random();\n\t\tStringBuilder builder = new StringBuilder(maxLength);\n\n\t\t// Looping 9 times, one for each char\n\t\tfor (int i = 0; i < maxLength; i++) {\n\t\t\tbuilder.append(ALPHABET.charAt(random.nextInt(ALPHABET.length())));\n\t\t}\n\t\t// Generates a random ID that has may have a quintillion different combinations\n\t\t// (1/64^9)\n\t\treturn builder.toString();\n\t}", "private static String genString(){\n final String ALPHA_NUMERIC_STRING =\n \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";\n int pwLength = 14; //The longer the password, the more likely the user is to change it.\n StringBuilder pw = new StringBuilder();\n while (pwLength-- != 0) {\n int character = (int)(Math.random()*ALPHA_NUMERIC_STRING.length());\n pw.append(ALPHA_NUMERIC_STRING.charAt(character));\n }\n return pw.toString(); //\n }", "private String getToken() {\n\t\tString numbers = \"0123456789\";\n\t\tRandom rndm_method = new Random();\n String OTP = \"\";\n for (int i = 0; i < 4; i++)\n {\n \tOTP = OTP+numbers.charAt(rndm_method.nextInt(numbers.length()));\n \n }\n return OTP;\n\t}", "public static String generateRandomInteger() {\n SecureRandom random = new SecureRandom();\n int aStart = 1;\n long aEnd = 999999999;\n long range = aEnd - (long) aStart + 1;\n long fraction = (long) (range * random.nextDouble());\n long randomNumber = fraction + (long) aStart;\n return String.valueOf(randomNumber);\n }", "public static String randomEmail(int min, int max) {\n\n\t\tString allowedChars = \"abcdefghiklmnopqrstuvwxyz\";\n\t\tString randommail = \"\";\n\t\tint num = (int) (Math.floor(Math.random() * (max - min)) + min);\n\n\t\tfor (int i = 0; i < num; i++) {\n\t\t\tint rnum = (int) Math.floor(Math.random() * allowedChars.length());\n\t\t\trandommail = randommail + allowedChars.subSequence(rnum, rnum + 1);\n\t\t}\n\n\t\trandommail += \"@gmail.com\";\n\t\t// System.out.println(randomstring);\n\t\treturn randommail;\n\n\t}", "public static String generateRandomNonce() {\n Random r = new Random();\n StringBuffer n = new StringBuffer();\n for (int i = 0; i < r.nextInt(8) + 2; i++) {\n n.append(r.nextInt(26) + 'a');\n }\n return n.toString();\n }", "private String createId() {\n int idLength = 5;\n String possibleChars = \"1234567890\";\n Random random = new Random();\n StringBuilder newString = new StringBuilder();\n\n for (int i = 0; i < idLength; i++) {\n int randomInt = random.nextInt(10);\n newString.append(possibleChars.charAt(randomInt));\n }\n\n return newString.toString();\n }", "private String generatePhone() {\n\t\tString ret = \"\";\n\t\tString[] areaCode = { \"051\", \"055\", \"045\", \"043\", \"053\" };\n\n\t\t// Gets an area code\n\t\tret = areaCode[(new Random()).nextInt(5)];\n\n\t\tfor (int i = 0; i < 8; i++) {\n\t\t\tint n = (new Random()).nextInt(9);\n\n\t\t\t// Checks if the first number is 0\n\t\t\tif (i == 0 && n == 0) {\n\t\t\t\ti -= 1;\n\t\t\t\tcontinue;\n\t\t\t} else {\n\t\t\t\tret += n;\n\t\t\t}\n\t\t}\n\n\t\treturn ret;\n\t}", "public static String generateResetKey() {\n return RandomStringUtils.randomNumeric(DEF_COUNT);\n }", "public static String generateMobNum() {\n\t\tString number = RandomStringUtils.randomNumeric(10);\t\n\t\treturn (number);\n\t}", "public int generateSessionID(){\r\n SecureRandom randsession = new SecureRandom();\r\n return randsession.nextInt(1234567890);\r\n }", "public static String createRandomNum() {\n\t\tlogger.debug(\"Navigating to URL\");\n\t\tString num = \"\";\n\t\ttry {\n\t\t\tnum = RandomStringUtils.random(4, true, true);\n\t\t\tlogger.debug(\"Generated Random Number is : \" + num);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn num;\n\t}", "private String generateRandomId(){\n\n //creates a new Random object\n Random rnd = new Random();\n\n //creates a char array that is made of all the alphabet (lower key + upper key) plus all the digits.\n char[] characters = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890\".toCharArray();\n\n //creates the initial, empty id string\n String id = \"\";\n\n /*Do this 20 times:\n * randomize a number from 0 to the length of the char array, characters\n * add the id string the character from the index of the randomized number*/\n for (int i = 0; i < 20; i++){\n id += characters[rnd.nextInt(characters.length)];\n }\n\n //return the 20 random chars long string\n return id;\n\n }", "private String getRandomString() {\n\t\tStringBuilder salt = new StringBuilder();\n\t\tRandom rnd = new Random();\n\t\twhile (salt.length() <= 5) {\n\t\t\tint index = (int) (rnd.nextFloat() * SALTCHARS.length());\n\t\t\tsalt.append(SALTCHARS.charAt(index));\n\t\t}\n\t\tString saltStr = salt.toString();\n\t\treturn saltStr;\n\t}", "public String generate() {\r\n String result = RandomStringUtils.random(8,true,true);\r\n return result;\r\n }", "private int randomAddress() {\n\t\tint randomAddressId = (int) (Math.random() * 603);\n\t\treturn randomAddressId;\n\t}", "private final String getRandomString() {\n StringBuffer sbRan = new StringBuffer(11);\n String alphaNum = \"1234567890abcdefghijklmnopqrstuvwxyz\";\n int num;\n for (int i = 0; i < 11; i++) {\n num = (int) (Math.random() * (alphaNum.length() - 1));\n sbRan.append(alphaNum.charAt(num));\n }\n return sbRan.toString();\n }", "private String getID()\n {\n String chars = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890!@#$%^&*()_+{}|:<>?/.,';][=-`~\";\n String id = \"\";\n int max = new Random().nextInt((16 - 12) + 1)+12;\n for(int i=0;i<16;i++)\n {\n int r = new Random().nextInt((chars.length()-1 - 0) + 1)+0;\n id+=chars.charAt(r);\n }\n return id;\n }", "public String generateNumber(int length) {\n int maxNumber = Integer.parseInt(new String(new char[length]).replace(\"\\0\", \"9\"));\n int intAccountNumber = ThreadLocalRandom.current().nextInt(0, maxNumber + 1);\n int accountNumberLength = String.valueOf(intAccountNumber).length();\n StringBuilder stringBuilder = new StringBuilder();\n if (accountNumberLength < length) {\n stringBuilder.append(new String(new char[length - accountNumberLength]).replace(\"\\0\", \"0\"));\n }\n stringBuilder.append(intAccountNumber);\n return stringBuilder.toString();\n }", "private String generateRandomHexString(){\n return Long.toHexString(Double.doubleToLongBits(Math.random()));\n }", "public static String generateCoupon() {\n \t\t// choose a Character random from this String\n\t\tString availableCharacters = \"ABCDEFGHIJKLMNPQRSTUVWXYZ\" + \"123456789\";\n\t\t// create StringBuffer \n\t\tStringBuilder sb = new StringBuilder(5);\n\t\tfor (int i = 0; i < 15; i++) {\n\t\t\t// generate a random number\n\t\t\tdouble indexDouble = availableCharacters.length() * Math.random();\n\t\t\tint index = (int)Math.round(indexDouble);\n\t\t\tif(index > 0 && index < 33) {\n\t\t\t\tsb.append(availableCharacters.charAt(index));\n\t\t\t}\n\t\t}\n\t\treturn sb.toString().substring(0,10);\t\t\n\t}", "public int generateOTP(String key){\n int len =4;\n\n int OTP;\n String numbers = \"0123456789\";\n Random rndm_method = new Random();\n\n char[] otp = new char[len];\n\n for (int i = 0; i < len; i++)\n {\n otp[i] =\n numbers.charAt(rndm_method.nextInt(numbers.length()));\n }\n OTP = Integer.parseInt(String.valueOf(otp));\n otpCache.put(key, OTP);\n return OTP;\n }", "private static String generateRandomString(int size) {\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < size / 2; i++) sb.append((char) (64 + r.nextInt(26)));\n return sb.toString();\n }", "private String generate_uuid() {\n\n int random_length = 12;\n int time_length = 4;\n\n byte[] output_byte = new byte[random_length+time_length];\n\n //12 byte long secure random\n SecureRandom random = new SecureRandom();\n byte[] random_part = new byte[random_length];\n random.nextBytes(random_part);\n System.arraycopy(random_part, 0, output_byte, 0, random_length);\n\n //merged with 4 less significant bytes of time\n long currentTime = System.currentTimeMillis();\n for (int i=random_length; i<output_byte.length; i++){\n output_byte[i] = (byte)(currentTime & 0xFF);\n currentTime >>= 8;\n }\n\n //Converted to base64 byte\n String output = Base64.encodeBase64String(output_byte);\n Log.debug_value(\"UUID\", output);\n return output;\n\n }", "public static String generateResetCode() {\n return RandomStringUtils.randomNumeric(RESET_CODE_DIGIT_COUNT);\n }", "private int aleatorizarNumero() {\n\t\tint aux;\n\t\taux = r.getIntRand(13) + 1;\n\t\treturn aux;\n\t}", "public String generate(int length) {\r\n\t\tString chars = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890\";\r\n\t\tString pass = \"\";\r\n\t\tfor (int x = 0; x < length; x++) {\r\n\t\t\tint i = (int) Math.floor(Math.random() * 62);\r\n\t\t\tpass += chars.charAt(i);\r\n\t\t}\r\n\r\n\t\treturn pass;\r\n\t}", "private synchronized static String getNextNumber() {\n String toReturn;\n String number = String.valueOf(Math.round(Math.random() * 89999) + 10000);\n if(meetings.containsKey(number)) {\n toReturn = getNextNumber();\n } else {\n toReturn = number;\n }\n return toReturn;\n }", "public void generateNewSecret() {\r\n \r\n //Get Random Number With Correct Digits\r\n int intRand = randomNumberGenerator.nextInt((int)(Math.pow(10, numDigits) - Math.pow(10, numDigits - 1))) + (int)Math.pow(10, numDigits - 1);\r\n \r\n //Set To String\r\n String strRand = String.valueOf(intRand);\r\n \r\n //Set Value\r\n secretNumber = convertNumToDigitArray(strRand);\r\n \r\n }", "private int generateRandomNumber() {\n\t\treturn new SplittableRandom().nextInt(0, 3);\n\t}", "public static int generateDigit() {\n\t\t\n\t\treturn (int)(Math.random() * 10);\n\t}", "private String genNewAccountNumber(int clientId) {\r\n\t\t// keep 4 digits\r\n\t\tint acNumber = clientId * 1000 + (int) (Math.random() * 900);\r\n\t\treturn String.valueOf(acNumber);\r\n\t}", "public static String generateResetKey() {\n return RandomStringUtils.randomNumeric(SHORT_DEF_COUNT);\n }", "public static synchronized String getRandomPassword() {\n\t\t StringBuilder password = new StringBuilder();\n\t\t int j = 0;\n\t\t for (int i = 0; i < MINLENGTHOFPASSWORD; i++) {\n\t\t \t//System.out.println(\"J is \"+j);\n\t\t password.append(getRandomPasswordCharacters(j));\n\t\t j++;\n\t\t \n\t\t if (j == 4) {\n\t\t j = 0;\n\t\t }\n\t\t }\n\t\t return password.toString();\n\t\t}", "private String getRandomSeed() {\n long newSeed = 0;\n Random randBoolean = new Random(randomSeed);\n for (int i = 0; i < 48; i++) {\n if (randBoolean.nextBoolean()) {\n newSeed += 1 << i;\n }\n }\n if (newSeed < 0) {\n newSeed = Math.abs(newSeed);\n }\n\n String s = \"\";\n if (newSeed == 0) {\n s += \"0\";\n } else {\n while (newSeed != 0) {\n long num = (newSeed & (0xF));\n if (num < 10) {\n s = num + s;\n } else {\n s = ((char) (num + 55)) + s;\n }\n newSeed = newSeed >> 4;\n }\n }\n return s;\n }", "public static String getRandomAplhaNumeric(String characters) {\n\t\tSecureRandom secureRnd = new SecureRandom();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i = 0; i < 5; i++)\n\t\t\tsb.append(characters.charAt(secureRnd.nextInt(characters.length())));\n\t\treturn sb.toString();\n\t}", "public String genUserToken()\n\t{\n\t\tString token = \"\";\n\t\tfor (int i = 0; i < 16; i++)\n\t\t{\n\t\t\ttoken = token + tokenGenerator.nextInt(10);\n\t\t}\n\t\treturn token;\n\t}", "public String generatePassword(int size) {\n\n int wordIndx = getRandomWord();\n String newPassword = threeCharWords.get(wordIndx);\n return newPassword + getRandomNumber(size);\n\n\n }", "public int getRandomsNumber(){\n Random random = new Random();\n int number = random.nextInt(12) + 1;\n return number;\n }", "private void setAccountNumber() // setare numar de cont\n {\n int random = ThreadLocalRandom.current().nextInt(1, 100 + 1);\n accountNumber = ID + \"\" + random + SSN.substring(0,2);\n System.out.println(\"Your account number is: \" + accountNumber);\n }", "public static String generateMessage(int len) {\n String messagePattern = \"[A-Za-z]{\" + len + \"}\";\n return new Generex(messagePattern).random();\n }", "@Override\r\n\tpublic String randString(int n) {\n\t\tString base=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";\r\n\t\treturn randString(n, base);\r\n\t}", "private\tString\tgenerateUUID(){\n\t\treturn\tUUID.randomUUID().toString().substring(0, 8).toUpperCase();\n\t}", "protected String generateUserID() {\n Random r = new Random();\n String userID;\n do {\n int randomIDnum = r.nextInt(999999999) + 1;\n userID = String.valueOf(randomIDnum);\n } while (this.userMap.containsKey(userID));\n return userID;\n }", "public static String getRandomString() {\n \tif (random == null)\n \t\trandom = new Random();\n \treturn new BigInteger(1000, random).toString(32);\n }", "public String generateGUID() {\n Random randomGenerator = new Random();\n String hash = DigestUtils.shaHex(HASH_FORMAT.format(new Date())\n + randomGenerator.nextInt());\n return hash.substring(0, GUID_LEN);\n }", "public static int[] generateSuperLottoNumbers() \n\t{\n\t\t// create an array that allocates only 6 integer slots.\n\t\tint[] ticketNumbers = new int[6];\n\t\t\n\t\t//generateSuperLottoNumbers() as an argument [1 pts]\n\t\t// Hint: numbers[i] = (int) (10 * Math.random()) + 1; // will assign your array element to a random number from 1 to 10\n\t\t// The first 5 numbers must be from the range 1 to 47 [1 pt]\n\t\t//we want to run the iteration 5 times so we use for loop knowing how many iterations are needed.\n\t\tfor (int i = 0; i < 5; i++) \n\t\t{\n\t\t\tticketNumbers[i] = (int) (47 * Math.random()) + 1; // random method in the Math class will only give number between 0 and 1 not including 1 (0-.99) \t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// so we add plus 1 to avoid the error we have to account for 0 and 47.\n\t\t}\n\t\t\n\t\t// The 6th number (the MEGA) must be from 1 to 27. [1 pt]\n\t\tticketNumbers[5] = (int) (27 * Math.random()) + 1;\n\n\t\treturn ticketNumbers;\n\t}", "protected String generateKey(){\n Random bi= new Random();\n String returnable= \"\";\n for(int i =0;i<20;i++)\n returnable += bi.nextInt(10);\n return returnable;\n }", "public static String generateActivationKey() {\n return RandomStringUtils.randomNumeric(DEF_COUNT);\n }", "public static String generateActivationKey() {\n return RandomStringUtils.randomNumeric(DEF_COUNT);\n }", "int generarNumeroNota();", "private String generateNonce() {\n // Get the time of day and run MD5 over it.\n Date date = new Date();\n long time = date.getTime();\n Random rand = new Random();\n long pad = rand.nextLong();\n // String nonceString = (new Long(time)).toString()\n // + (new Long(pad)).toString();\n String nonceString = Long.valueOf(time).toString()\n + Long.valueOf(pad).toString();\n byte mdbytes[] = messageDigest.digest(nonceString.getBytes());\n // Convert the mdbytes array into a hex string.\n return toHexString(mdbytes);\n }", "public static PhoneNumber buildRandomFrPhoneNumber() {\n\t\treturn PhoneNumber.builder().countryCode(\"+33\").nationalNumber(\"590\" + RandomStringUtils.random(6, false, true))\n\t\t\t\t.phoneNumberName(PersonalInfoGenerator.generateName(5)).build();\n\t}", "public static String generateID(int num){\n StringBuilder str=new StringBuilder();//定义变长字符串\n Random random=new Random();\n for (int i = 0; i < num; i++) {\n str.append(random.nextInt(10));\n }\n return str.toString();\n }", "public String generaNumPatente() {\n String numeroPatente = \"\";\r\n try {\r\n int valorRetornado = patenteActual.getPatCodigo();\r\n StringBuffer numSecuencial = new StringBuffer(valorRetornado + \"\");\r\n int valRequerido = 6;\r\n int valRetorno = numSecuencial.length();\r\n int valNecesita = valRequerido - valRetorno;\r\n StringBuffer sb = new StringBuffer(valNecesita);\r\n for (int i = 0; i < valNecesita; i++) {\r\n sb.append(\"0\");\r\n }\r\n numeroPatente = \"AE-MPM-\" + sb.toString() + valorRetornado;\r\n } catch (Exception ex) {\r\n LOGGER.log(Level.SEVERE, null, ex);\r\n }\r\n return numeroPatente;\r\n }", "private String getRandomPIN(int num) {\n\t\tStringBuilder randomPIN = new StringBuilder();\n\t\tfor (int i = 0; i < num; i++) {\n\t\t\trandomPIN.append((int) (Math.random() * 10));\n\t\t}\n\t\treturn randomPIN.toString();\n\t}", "public static int getRandomAmount(){\n return rand.nextInt(1000);\n }", "public void generateRandomNumber(String customer) {\n int randomNumber;\n\n SecureRandom secureRandom = new SecureRandom();\n String s = \"\";\n for (int i = 0; i < length; i++) {\n int number = secureRandom.nextInt(range);\n if (number == 0 && i == 0) { // to prevent the Zero to be the first number as then it will reduce the length of generated pin to three or even more if the second or third number came as zeros\n i = -1;\n continue;\n }\n s = s + number;\n }\n\n\n randomNumber = Integer.parseInt(s);\n final Intent emptyIntent = new Intent(this, AdminCusList.class);\n NotificationManager notificationManager = (NotificationManager) this.getSystemService(Context.NOTIFICATION_SERVICE);\n\n String channelId = \"channel-01\";\n String channelName = \"Channel Name\";\n int importance = NotificationManager.IMPORTANCE_HIGH;\n\n if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O) {\n NotificationChannel mChannel = new NotificationChannel(\n channelId, channelName, importance);\n notificationManager.createNotificationChannel(mChannel);\n }\n\n NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(this, channelId)\n .setSmallIcon(R.mipmap.jihuzurapplogo)\n .setContentTitle(\"You have message\")\n .setContentText(\"Check your helpcentre, you have message from \"+ customer);\n\n TaskStackBuilder stackBuilder = TaskStackBuilder.create(this);\n /* stackBuilder.addNextIntent(intent);*/\n PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, emptyIntent, PendingIntent.FLAG_UPDATE_CURRENT);\n mBuilder.setContentIntent(pendingIntent);\n notificationManager.notify(5, mBuilder.build());\n\n final Map<String, Object> adminnotify = new HashMap<>();\n\n adminnotify.put(\"Chat\", \"Customer\");\n\n db.collection(\"AdminChatNotify\").document(\"Admin\").set(adminnotify).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n\n }\n });\n\n // Toast.makeText(getApplicationContext(), randomNumber + \" number\", Toast.LENGTH_LONG).show();\n\n }", "public static String captcha(){\n\t\tString captcha=\"\";\n\t\tfor(int i=0; i<8; i+=2){\n\t\t\tcaptcha+=(char)(65+Math.random()*26)+\" \";\n\t\t\tcaptcha+=(char)(97+Math.random()*26);\n\t\t}\n\t\treturn captcha;\n\n\t}", "public String getRandomCustNum() {\n\t\tString generatedCustNum = RandomStringUtils.randomAlphanumeric(Integer.valueOf(custNumLimit));\n\t\tlog.info(\"generatedCustNum: \" + generatedCustNum);\n\t\treturn generatedCustNum;\n\t}", "public static String getNonce(int size){\r\n\t\tStringBuilder builder = new StringBuilder(size);\r\n\t\tRandom random = new Random();\r\n\t\t\r\n\t\tfor (int i = 0; i < size; i++) {\r\n\t\t\tbuilder.append(ALPHABET.charAt(random.nextInt(ALPHABET.length())));\r\n\t\t}\r\n\r\n\t\treturn builder.toString();\r\n\t}", "public int generateKey() {\n SecureRandom secureRandom = new SecureRandom();\n try {\n secureRandom = SecureRandom.getInstance(\"SHA1PRNG\");\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n return secureRandom.nextInt(26);\n }", "public void generateRandomPassword() {\n\t\tString randomPassword = \"\";\n\t\tchar[] chars = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\".toCharArray();\n\t\tjava.util.Random random = new java.util.Random();\n\t\tfor (int i = 0; i < 20; i++) {\n\t\t char c = chars[random.nextInt(chars.length)];\n\t\t randomPassword += c;\n\t\t}\n\t\tthis.password = randomPassword;\n\t}", "public void enterRandomEmailId() {\n String email = \"test\" + Utility.getRandomString(3) + \"@gmail.com\";\n Reporter.addStepLog(\"Enter email \" + email + \" to email field \" + _emailField.toString());\n sendTextToElement(_emailField, email);\n log.info(\"Enter email \" + email + \" to email field \" + _emailField.toString());\n }", "public static String generatePass(){\r\n \r\n String password = new Random().ints(10, 33, 122).collect(StringBuilder::new,\r\n StringBuilder::appendCodePoint, StringBuilder::append)\r\n .toString();\r\n return password;\r\n\r\n }", "public String generateLink_Id() {\n\t\tString Link_Id = \"L\" + String.valueOf(rand.genRandomDigits(7));\n\t\twhile (registerDao.checkLinkIdIfExist(Link_Id)) {\n\t\t\tLink_Id = \"C\" + String.valueOf(rand.genRandomDigits(7));\n\t\t}\n\t\treturn Link_Id;\n\t}", "private String getRandomContactPhoneNumber() {\n \t\treturn contactPhoneNumbers.get(randy.nextInt(contactPhoneNumbers.size()));\n \t}", "public static String generateActivationKey() {\n return RandomStringUtils.randomNumeric(RESET_CODE_DIGIT_COUNT);\n }", "String generateUID();", "private String creatNewText() {\n\t\tRandom rnd = new Random();\n\t\treturn \"Some NEW teXt U9\" + Integer.toString(rnd.nextInt(999999));\n\t}", "public static String generateId(int digitAmount) {\n\t\t\n\t\tfinal String upperAlpha = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\t\t\n\t\tString brokerOrderID = \"\";\n\t\tfor (int i = 0; i < digitAmount; i++) {\n\t\t\tif (i % 2 == 0) {\n\t\t\t\tint randomAlphaIndex = ThreadLocalRandom.current().nextInt(0, 25 + 1);\n\t\t\t\tbrokerOrderID += upperAlpha.charAt(randomAlphaIndex);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tint randomInteger = ThreadLocalRandom.current().nextInt(1, 9 + 1);\n\t\t\t\tbrokerOrderID += Integer.toString(randomInteger);\n\t\t\t}\n\t\t}\n\t\treturn brokerOrderID;\n\t}", "public synchronized static final String generateRandomString(int n) {\n\t\tchar[] chars = \"abcdefghijklmnopqrstuvwxyz1234567890\".toCharArray();\n\t\tSecureRandom random = new SecureRandom();\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tsb.append(chars[random.nextInt(chars.length)]);\n\t\t}\n\t\treturn sb.toString();\n\t}", "private void generatePopularHours() {\r\n double h = Math.random() * 10;\r\n String hrs = ((int)h) + \"\";\r\n }", "@SuppressWarnings(\"unused\")\n\tpublic static String retornaNumeroCNF() {\n\n\t\tInteger cnf = (int) (Math.random() * 99999999);\n\n\t\treturn /*cnf.toString();*/ \"18005129\";\n\t}", "private int generateRandomNumber() {\n\t\treturn (int) Math.floor(Math.random() * Constants.RANDOM_NUMBER_GENERATOR_LIMIT);\n\t}", "public static String generate6CharacterTagCode() {\n\t\tString longTime = String.valueOf(Calendar.getInstance().getTimeInMillis());\n\t\tint len = longTime.length();\n\n\t\treturn longTime.substring(len - 6);\n\t}", "public static long generateCode() {\n long code = (long) (100000 + Math.random() * 899999l);\n return code;\n }", "protected static String generateToken()\n\t{\n\t\treturn UUID.randomUUID().toString();\n\t}", "public static String generateNewUserId() {\r\n\t\tDate date = new Date();\r\n\t\treturn String.format(\"%s-%s\", UUID.randomUUID().toString(),\r\n\t\t\t\tString.valueOf(date.getTime()));\r\n\t}", "private String generateOtp() {\n\t\tString otp = TOTP.getOTP(SECRET);\n\t\treturn otp;\n\t}", "public String generateAccountNumber() {\n // Set First part of AccountNumber\n String accountNumberFirst = \"1398\";\n\n // To Make Second, Third part Get each date and time\n String currentTime = getCurrentTime();\n\n // Get year, month, day\n String date = currentTime.split(\" \")[0];\n int year, month, day;\n year = Integer.parseInt(date.split(\"-\")[0]);\n month = Integer.parseInt(date.split(\"-\")[1]);\n day = Integer.parseInt(date.split(\"-\")[2]);\n\n // Get hour, minute, second\n String time = currentTime.split(\" \")[1];\n int hour, minute, second;\n hour = Integer.parseInt(time.split(\":\")[0]);\n minute = Integer.parseInt(time.split(\":\")[1]);\n second = Integer.parseInt(time.split(\":\")[2]);\n\n // Set Second part of AccountNumber\n String accountNumberSecond;\n accountNumberSecond = Integer.toString((year % 10)) + Integer.toString((month * second) % 10) + Integer.toString((day * minute + hour) % 10);\n\n // Set Third part of AccountNumber\n String accountNumberThird;\n accountNumberThird = Integer.toString((second * hour + minute) % 10) + Integer.toString((second * day + hour) % 10) + Integer.toString((day * month + second) % 10) + Integer.toString((second * minute + day) % 10);\n\n // Set Forth part of AccountNumber\n String accountNumberForth;\n int count = (int)accountDataRepository.count();\n if(count % 100 < 10) {\n accountNumberForth = \"0\" + Integer.toString(count % 100);\n }\n else {\n accountNumberForth = Integer.toString(count % 100);\n }\n\n // Generate AccountNumber\n String accountNumber = accountNumberFirst + \"-\" + accountNumberSecond + \"-\" + accountNumberThird + \"-\" + accountNumberForth;\n\n return accountNumber;\n }" ]
[ "0.7405013", "0.7282352", "0.7044462", "0.7034236", "0.696747", "0.6912517", "0.6864621", "0.6824397", "0.6783637", "0.6739725", "0.6689073", "0.66844124", "0.6667769", "0.6644418", "0.6629278", "0.6618449", "0.6592798", "0.659028", "0.6583464", "0.65805924", "0.65699023", "0.656375", "0.6551739", "0.65430045", "0.6525272", "0.6522643", "0.6522035", "0.6490877", "0.6432067", "0.64137256", "0.64129496", "0.6409644", "0.6406998", "0.6403367", "0.63802916", "0.6377686", "0.6377136", "0.63482416", "0.6347596", "0.63447076", "0.6333049", "0.6308483", "0.62926394", "0.6282019", "0.6259602", "0.62291276", "0.62278354", "0.622776", "0.62210894", "0.6205947", "0.6195395", "0.61761665", "0.6174713", "0.61308587", "0.61292624", "0.6115016", "0.61081094", "0.60947555", "0.60868394", "0.60851896", "0.6084064", "0.60783756", "0.60781044", "0.60751617", "0.6062877", "0.60592765", "0.605889", "0.6044996", "0.6044996", "0.6039818", "0.6031074", "0.60201746", "0.60091496", "0.59958786", "0.59911984", "0.5979469", "0.59699285", "0.5962492", "0.5961598", "0.59527695", "0.59462255", "0.5945376", "0.59450567", "0.5942954", "0.59416413", "0.5923785", "0.5922915", "0.5921315", "0.592028", "0.59161836", "0.59077847", "0.5897525", "0.58826023", "0.58663744", "0.5866208", "0.58640796", "0.5856708", "0.5854935", "0.5836462", "0.5835791" ]
0.7150612
2
source file of SML code
public Translator(String fileName) { this.fileName = PATH + fileName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getSourceFile();", "String getSource();", "Source getSrc();", "public String getSource();", "java.lang.String getSource();", "java.lang.String getSource();", "public String getSource ();", "public abstract String getSource();", "String getSourceString();", "public void source(String path) throws Exception;", "public String get_source() {\n\t\treturn source;\n\t}", "@Override\n\tpublic String getSource() {\n\t\treturn source;\n\t}", "public IAstRlsSourceFile findRlsFile(int langCode);", "public String getSourceFileName() { return sourceFileName; }", "public String getCodeExample() {\r\n return SOURCE_CODE;\r\n }", "java.lang.String getSrc();", "@Override\n public String getSource() {\n return this.src;\n }", "public String getSource() {\r\n return source;\r\n }", "public String sourceCode() {\n\t\treturn m_sourceCode;\n\t}", "public SourceCode() {\n }", "public void createCode(){\n\t\tsc = animationScript.newSourceCode(new Coordinates(10, 60), \"sourceCode\",\r\n\t\t\t\t\t\t null, AnimProps.SC_PROPS);\r\n\t\t \r\n\t\t// Add the lines to the SourceCode object.\r\n\t\t// Line, name, indentation, display dealy\r\n\t\tsc.addCodeLine(\"1. Berechne für jede (aktive) Zeile und Spalte der Kostenmatrix\", null, 0, null); // 0\r\n\t\tsc.addCodeLine(\" die Differenz aus dem kleinsten (blau) und zweit-kleinsten (lila)\", null, 0, null);\r\n\t\tsc.addCodeLine(\" Element der entsprechenden Zeile/ Spalte.\", null, 0, null);\r\n\t\tsc.addCodeLine(\"2. Wähle die Zeile oder Spalte (grün) aus bei der sich die größte\", null, 0, null); \r\n\t\tsc.addCodeLine(\" Differenz (blau) ergab.\", null, 0, null);\r\n\t\tsc.addCodeLine(\"3. Das kleinste Element der entsprechenden Spalte\", null, 0, null); \r\n\t\tsc.addCodeLine(\" (bzw. Zeile) gibt nun die Stelle an, welche im\", null, 0, null);\r\n\t\tsc.addCodeLine(\" Transporttableau berechnet wird (blau).\", null, 0, null);\r\n\t\tsc.addCodeLine(\"4. Nun wird der kleinere Wert von Angebots- und\", null, 0, null); // 4\r\n\t\tsc.addCodeLine(\" Nachfragevektor im Tableau eingetragen.\", null, 0, null);\r\n\t\tsc.addCodeLine(\"5. Anschließend wird der eingetragene Wert von den Rändern\", null, 0, null); // 5\r\n\t\tsc.addCodeLine(\" abgezogen (mindestens einer muss 0 werden). \", null, 0, null);\r\n\t\tsc.addCodeLine(\"6. Ist nun der Wert im Nachfragevektor Null so markiere\", null, 0, null); // 6\r\n\t\tsc.addCodeLine(\" die entsprechende Spalte in der Kostenmatrix. Diese\", null, 0, null);\r\n\t\tsc.addCodeLine(\" wird nun nicht mehr beachtet (rot). Ist der Wert des\", null, 0, null);\r\n\t\tsc.addCodeLine(\" Angebotsvektors Null markiere die Zeile der Kostenmatrix.\", null, 0, null);\r\n\t\tsc.addCodeLine(\"7. Der Algorithmus wird beendet, falls lediglich eine Zeile oder\", null, 0, null); // 8\r\n\t\tsc.addCodeLine(\" Spalte der Kostenmatrix unmarkiert ist (eines reicht aus).\", null, 0, null);\r\n\t\tsc.addCodeLine(\"8 . Der entsprechenden Zeile bzw. Spalte im Transporttableau werden\", null, 0, null); // 9\t\t \r\n\t\tsc.addCodeLine(\" die restlichen Angebots- und Nachfragemengen zugeordnet.\", null, 0, null);\r\n\t\t\r\n\t}", "public String getSource() {\n return source;\n }", "@Override\n\tpublic java.lang.String getSrcPath() {\n\t\treturn _scienceApp.getSrcPath();\n\t}", "private List<String> applySSA() {\n\t\t//String content = Utility.getStringFromFile(filePath);\n\t\tList<String> ssa = new ArrayList<String>();\n\t\tInputStream stream = new ByteArrayInputStream(source.getBytes());\n\t\ttry {\n\t\t\tANTLRInputStream input = new ANTLRInputStream(stream);\n\t\t\tEntryLexer lexer = new EntryLexer(input);\n\t\t\tCommonTokenStream tokens = new CommonTokenStream(lexer);\n\t\t\tEntryParser parser = new EntryParser(tokens);\n\t\t\tProgContext prog = parser.prog();\n\t\t\tconvertToSSAString(prog, ssa);\n\t\t\treturn ssa;\n\t\t} catch (IOException e) {\n\t\t\t//\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "public String getSource() {\n/* 312 */ return getValue(\"source\");\n/* */ }", "private static String getSourceFile() {\n\t\tFileChooser fileChooser = new FileChooser(System.getProperty(\"user.home\"),\n\t\t\t\t\"Chose json file containing satellite data!\", \"json\");\n\t\tFile file = fileChooser.getFile();\n\t\tif (file == null) {\n\t\t\tSystem.exit(-42);\n\t\t}\n\t\treturn file.getAbsolutePath();\n\t}", "public String getSource() {\n return source;\n }", "public String getSource() {\n return source;\n }", "public String getSource() {\n return source;\n }", "public ModelSourceFile() {\n\t\t\n\t}", "@Override\n public File getSourceFile() {\n return _file;\n }", "private void createSource(String sourceName, String content) {\n\t\t\n\t}", "@Override\n\tpublic java.lang.String getSrcFileName() {\n\t\treturn _scienceApp.getSrcFileName();\n\t}", "MafSource readSource(File sourceFile);", "public SourceFile getSourceFile() throws InvalidFormatException;", "public String getSourcecode() {\n return sourcecode;\n }", "@Override\n public String getSource()\n {\n return null;\n }", "public final String getSourceFile() {\n return this.sourceFile;\n }", "public String getSource() {\n\n return source;\n }", "java.lang.String getSourceFile(int index);", "public FileSourceGraphML() {\n\t\tevents = new Stack<XMLEvent>();\n\t\tkeys = new HashMap<String, Key>();\n\t\tdatas = new LinkedList<Data>();\n\t\tgraphId = new Stack<String>();\n\t\tgraphCounter = 0;\n\t\tsourceId = String.format(\"<GraphML stream %x>\", System.nanoTime());\n\t}", "public String getSource() {\r\n return Source;\r\n }", "public void setSource (String source);", "java.lang.String getSrcPath();", "String getSrc();", "String generateCode(\n InputSource input, String filename,\n ProgrammingLanguage programmingLanguage,\n SourceResolver resolver\n ) throws Exception;", "public void setSource(String source) {\n this.source = source;\n }", "public void setSource(String source) {\n this.source = source;\n }", "public void setSource(String source) {\r\n this.source = source;\r\n }", "public java.lang.String getSource() {\r\n return localSource;\r\n }", "public SCMLReader() {}", "public void getSource(final Callback<String> callback) {\n if (sourceCode != null) {\n callback.onSuccess(sourceCode);\n } else {\n RequestCallback rc = new RequestCallback() {\n public void onError(Request request, Throwable exception) {\n callback.onError();\n }\n\n public void onResponseReceived(Request request, Response response) {\n sourceCode = response.getText();\n callback.onSuccess(sourceCode);\n }\n };\n\n String className = this.getClass().getName();\n className = className.substring(className.lastIndexOf(\".\") + 1);\n sendSourceRequest(rc, ShowcaseConstants.DST_SOURCE_EXAMPLE + className + \".html\");\n }\n }", "public String getSrc() {\r\n\t\treturn src;\r\n\t}", "public abstract Source getSource();", "public String getCode(){\n\t\treturn new SmartAPIModel().getCpSourceCode(cp.getLocalName());\n\t}", "private SourcecodePackage() {}", "java.lang.String getSourceContext();", "public final Artifact getSourceFile() {\n return compileCommandLine.getSourceFile();\n }", "public String getSource() {\n return this.source;\n }", "public void outputSource(int module, int line, String s)\n\t{\n\t\tStringBuilder sb = new StringBuilder();\n\t\tappendSource(sb, module, line, s, true);\n\t\tout( sb.toString() );\n\t}", "public void setSource(String source);", "public void setSrc(File source) {\r\n if (!(source.exists())) {\r\n throw new BuildException(\"the presentation \" + source.getName()+ \" doesn't exist\");\r\n }\r\n if (source.isDirectory()) {\r\n throw new BuildException(\"the presentation \" + source.getName() + \" can't be a directory\");\r\n }\r\n this._source = source;\r\n }", "public String toString() {\n StringBuffer buf = new StringBuffer(\" SourceFile: \\\"\");\n buf.append(sourceFileName);\n buf.append(\"\\\"\\n\");\n return buf.toString();\n }", "private String getSourceName() {\n return srcFileName;\n }", "public String getSourceString() {\n return null;\n }", "SourceFilePath getFilePath();", "public ArchillectSource() {\n super(SOURCE_NAME);\n }", "@Override\r\n\tpublic String getSource() {\n\t\treturn null;\r\n\t}", "public ClassNode source(String source) {\n $.sourceFile = source;\n return this;\n }", "public String getSouce() {\n\t\treturn source;\n\t}", "public void genCode(CodeFile code) {\n\t\t\n\t}", "public void outsource()\n\t{\n\t\tconstructPrefix();\t \n\t}", "@ApiModelProperty(required = true, value = \"The program that generated the test results\")\n public String getSource() {\n return source;\n }", "@Override\n public String generareSourcecodetoReadInputFromFile() throws Exception {\n String typeVar = VariableTypes.deleteStorageClasses(this.getType())\n .replace(IAbstractDataNode.REFERENCE_OPERATOR, \"\");\n // Ex: A::B, ::B. We need to get B\n if (typeVar.contains(\"::\"))\n typeVar = typeVar.substring(typeVar.lastIndexOf(\"::\") + 2);\n\n String loadValueStm = \"data.findStructure\" + typeVar + \"ByName\" + \"(\\\"\" + getVituralName() + \"\\\")\";\n\n String fullStm = typeVar + \" \" + this.getVituralName() + \"=\" + loadValueStm + SpecialCharacter.END_OF_STATEMENT;\n return fullStm;\n }", "public void setSource(String source) {\n _source = source;\n }", "public static String sourceContent()\n {\n read_if_needed_();\n \n return _src_content;\n }", "public String getSourceString() {\n return sourceString;\n }", "public void initSourceCode()\r\n\t{\r\n\t\tsc.addCodeLine(\"// Main method. Iterates over all stars. Delegates group finding to addAdjacentStars.\", null, 0, null);\t//0\r\n\t\tsc.addCodeLine(\"public void friendsOfFriends(double linkingLength, Set<Star> stars)\", null, 0, null);\r\n\t\tsc.addCodeLine(\"{\", null, 0, null);\r\n\t\tsc.addCodeLine(\" int groupID = 0;\", null, 0, null);\r\n\t\tsc.addCodeLine(\" \", null, 0, null);\r\n\t\tsc.addCodeLine(\" for(Star current : stars)\", null, 0, null);\t// 5\r\n\t\tsc.addCodeLine(\" {\", null, 0, null);\r\n\t\tsc.addCodeLine(\" if(!current.wasVisited())\", null, 0, null);\r\n\t\tsc.addCodeLine(\" {\", null, 0, null);\r\n\t\tsc.addCodeLine(\" groupID++;\", null, 0, null);\r\n\t\tsc.addCodeLine(\" current.setVisited(true);\", null, 0, null);\r\n\t\tsc.addCodeLine(\" current.group = groupID;\", null, 0, null);\r\n\t\tsc.addCodeLine(\" \", null, 0, null);\r\n\t\tsc.addCodeLine(\" addAdjacentStars(current, groupID, linkingLength, stars);\", null, 0, null);\t// 13\r\n\t\tsc.addCodeLine(\" }\", null, 0, null);\r\n\t\tsc.addCodeLine(\" }\", null, 0, null);\r\n\t\tsc.addCodeLine(\"};\", null, 0, null);\r\n\t\tsc.addCodeLine(\"\", null, 0, null);\r\n\t\tsc.addCodeLine(\"// Helper algorithm for FoF. Calls nearest neighbour search to get all adjacent stars.\", null, 0, null);\r\n\t\tsc.addCodeLine(\"private void addAdjacentStars(Star s, int groupID, double linkingLength, Set<Star> stars)\", null, 0, null);\t\t// 19\r\n\t\tsc.addCodeLine(\"{\", null, 0, null);\r\n\t\tsc.addCodeLine(\" Set<Star> adjacentStars = nearestNeighbourSearch(s, linkingLength, stars);\", null, 0, null);\r\n\t\tsc.addCodeLine(\" \", null, 0, null);\r\n\t\tsc.addCodeLine(\" for(Star current : adjacentStars)\", null, 0, null);\t\t// 23\r\n\t\tsc.addCodeLine(\" {\", null, 0, null);\r\n\t\tsc.addCodeLine(\" if(!current.wasVisited())\", null, 0, null);\r\n\t\tsc.addCodeLine(\" {\", null, 0, null);\r\n\t\tsc.addCodeLine(\" current.setVisited(true);\", null, 0, null);\r\n\t\tsc.addCodeLine(\" current.group = groupID;\", null, 0, null);\r\n\t\tsc.addCodeLine(\" \", null, 0, null);\r\n\t\tsc.addCodeLine(\" addAdjacentStars(current, groupID, linkingLength, stars);\", null, 0, null);\t// 30\r\n\t\tsc.addCodeLine(\" }\", null, 0, null);\r\n\t\tsc.addCodeLine(\" }\", null, 0, null);\r\n\t\tsc.addCodeLine(\"};\", null, 0, null);\r\n\t}", "public void load(File source);", "WfExecutionObject source () throws BaseException, SourceNotAvailable;", "public String getSource() {\n return JsoHelper.getAttribute(jsObj, \"source\");\n }", "public File getSource() {\n return source;\n }", "public abstract void buildStartSource(OutputStream out, SourceObjectDeclared o) throws IOException;", "protected File getSourceFile(String name) {\n String fileName = name.replace('.', File.separatorChar) + \".tea\";\n\n File file = new File(mRootSourceDir, fileName);\n return file;\n }", "public String toString()\n{\n StringBuffer buf = new StringBuffer();\n buf.append(\"[SOURCE: \" + for_source.getName() + \",\\n\");\n if (getTransforms() != null) {\n buf.append(\"TRANS:\");\n for (S6Transform.Memo m : getTransforms()) {\n\tbuf.append(\" \");\n\tbuf.append(m.getTransformName());\n }\n }\n else {\n buf.append(\" TEXT: \" + getFragment().getText());\n }\n buf.append(\"]\");\n\n return buf.toString();\n}", "@Override\r\n public String getSource()\r\n {\n return null;\r\n }", "public SLDStyle(String filename) {\n \n File f = new File(filename);\n setInput(f);\n readXML();\n }", "public abstract Source load(ModuleName name);", "public String getSource(String cat);", "public java.lang.String getSourceFile() {\n java.lang.Object ref = sourceFile_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n sourceFile_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public DetailGenerator(String xmlFile, String dtdFile, \n\t\t\t I18NTextSource source,\n\t\t\t String homeDirectory)\n\t{\n\txmlFileName = xmlFile;\n\tif (homeDirectory != null)\n xmlFileName = homeDirectory +\n\t File.separator + xmlFileName;\n\tdtdFileName = dtdFile;\n\ttextSource = source;\n\tApplicationManager.setTextSource(textSource);\n\ttry\n\t {\n\t FileInputStream stream = new FileInputStream(xmlFileName);\n\t xmlSource = new InputSource(new InputStreamReader(stream));\n\t }\n\tcatch (FileNotFoundException fnf)\n\t {\n\t System.out.println(\"Cannot find XML file: \" + xmlFileName);\n\t }\n\n\t}", "public java.lang.String getSourceFile() {\n java.lang.Object ref = sourceFile_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n sourceFile_ = s;\n }\n return s;\n }\n }", "public String getSource(){\n\t\treturn source.getEvaluatedValue();\n\t}", "public String getSourcePath()\r\n\t{\r\n\t\treturn sourcePath;\r\n\t}", "public void setSource(Source s)\n\t{\n\t\tsource = s;\n\t}", "public String getSource() {\n return mSource;\n }", "public String getSourceRoot() {\n return sourceRoot;\n }", "public void compile(MindFile f) {\n \t\t\n \t}", "public interface IAstRssSourceFile extends IAstSourceFile {\r\n\r\n /**\r\n * Get the top-level nodes defined by this file.\r\n */\r\n public IAstTopLevelNode[] getTopLevelNodes();\r\n\r\n /**\r\n * Tell whether the file contains a given node\r\n */\r\n public boolean hasTopLevelNode(IAstTopLevelNode node);\r\n\r\n /**\r\n * Get all the preprocessor nodes structuring this file. These include\r\n * directives and \"extra\" text not included in other nodes in the DOM\r\n * proper.\r\n * <p>\r\n * For instance, until a \"problem\" node exists, unparseable text will appear\r\n * as IAstPreprocessorTextNode outside of an IAstNode's range, when, say, a\r\n * nonsense top-level declaration exists; or overlapping the range of an\r\n * IAstNode, when a child of a complex node is unparseable.\r\n */\r\n public IAstPreprocessorNode[] getPreprocessorNodes();\r\n\r\n /**\r\n * Get all the macro definitions in this file\r\n * <p>\r\n * Note: the #defines are also accessible by iterating\r\n * getPreprocessorNodes()\r\n * <p>You must update any translation unit, if present, to notice. \r\n * @see ITranslationUnit#refresh()\r\n */\r\n public IAstPreprocessorDefineDirective[] getDefines();\r\n\r\n /**\r\n * Find a define\r\n */\r\n public IAstPreprocessorDefineDirective findDefine(String name);\r\n\r\n /**\r\n * Find an #include included in this file (non-recursive)\r\n */\r\n public IAstSourceFile findIncludeFile(ISourceFile file);\r\n\r\n /**\r\n * Find an #include included in this file (non-recursive).\r\n * Compares by filename.\r\n */\r\n public IAstSourceFile findIncludeFile(String string);\r\n \r\n /**\r\n * Find an #include included in this file (non-recursive)\r\n */\r\n public IAstPreprocessorIncludeDirective findInclude(ISourceFile file);\r\n\r\n /**\r\n * Find an #include included in this file (non-recursive)\r\n */\r\n public IAstPreprocessorIncludeDirective findInclude(String string);\r\n \r\n /**\r\n * Get all the includes in this file, in #include order.\r\n * Does not provide recursively included files.\r\n * This returns IAstSourceFile nodes, which reflect the\r\n * contents of the included files. These may be empty\r\n * when the second #include of the same file occurs.\r\n * <p>\r\n * Note: the #includes are also accessible by iterating\r\n * #getPreprocessorNodes()\r\n */\r\n public IAstPreprocessorIncludeDirective[] getIncludeFiles();\r\n\r\n /**\r\n * Get all macro references in this file\r\n * <p>\r\n * Note: the references are also accessible by iterating\r\n * getPreprocessorNodes()\r\n */\r\n public IAstPreprocessorMacroExpression[] getMacroExpressions();\r\n\r\n /**\r\n * Get all the *.rls includes in this file, in #include order.\r\n * Does not provide recursively included files.\r\n * This returns IAstRlsSourceFile nodes, which reflect the\r\n * contents of the included files. \r\n * <p>\r\n * Note: the #includes are also accessible by iterating\r\n * #getPreprocessorNodes()\r\n */\r\n public IAstRlsSourceFile[] getRlsSourceFiles();\r\n\r\n /**\r\n * Find a rls_string defined in this file (non-recursive)\r\n */\r\n public IAstRlsString findRlsString(String identifer);\r\n\r\n /**\r\n * Get all the rls_strings in this file.\r\n * Does not provide recursively included files.\r\n * <p>\r\n * Note: the #includes are also accessible by iterating\r\n * #getTopLevelNodes()\r\n */\r\n public IAstRlsString[] getRlsStrings();\r\n\r\n\t/**\r\n\t * Find a given RLS include\r\n\t * @param langCode\r\n\t * @return\r\n\t */\r\n\tpublic IAstRlsSourceFile findRlsFile(int langCode);\r\n\r\n\t/**\r\n\t * Remove an RLS file\r\n\t */\r\n\tpublic void removeRlsSourceFile(IAstRlsSourceFile rlsFile);\r\n\t\r\n\t/**\r\n\t * Refresh cached tables if nodes are changed outside\r\n\t */\r\n\tpublic void refresh();\r\n \r\n}", "public ModelSourceFile(File file) {\n\t\tsource_file = file;\n\t\tfilename = file.getName();\n\t\tnullChecks = new ArrayList<String>();\n\t\tnullVars = new HashMap<String, ArrayList<String>>();\n\t\tnullFields = new ArrayList<String>();\n\t\tassignments = new ArrayList<String>();\n\t\tnullAssignments = new HashMap<String, ArrayList<String>>();\n\t\tinvocs = new HashMap<String, ArrayList<String>>();\n\t\tremovedFields = new ArrayList<String>();\n\t\tremovedVars = new HashMap<String, ArrayList<String>>();\n\t\tremovedAssigns = new HashMap<String, ArrayList<String>>();\n\t\tNODPs = new ArrayList<String>();\n\t\tcollVars = new ArrayList<String>();\n\t\toptVars = new ArrayList<String>();\n\t\tcatchBlocks = new ArrayList<String>();\n\n\t\tallGenerics = new ArrayList<String>();\n\t\tgenerics = new HashMap<String, List<String>>();\n\t\t\n\t\tgenerics.put(\"type argument methods\", new ArrayList<String>());\n\t\tgenerics.put(\"wildcard\", new ArrayList<String>());\n\t\tgenerics.put(\"type declarations\", new ArrayList<String>());\n\t\tgenerics.put(\"type parameter methods\", new ArrayList<String>());\n\t\tgenerics.put(\"type parameter fields\", new ArrayList<String>());\n\t\tgenerics.put(\"diamond\", new ArrayList<String>());\n\t\tgenerics.put(\"method invocations\", new ArrayList<String>());\n\t\tgenerics.put(\"class instantiation\", new ArrayList<String>());\n\t\tgenerics.put(\"nested\", new ArrayList<String>());\n\t\t\n\t\tcommits = new ArrayList<ModelCommit>();\n\t\tmethods = new ArrayList<String>();\n\t\tmethodInvocs = new HashMap<String, Integer>();\n\t}", "public void setSourceFile(File file){\n System.out.println(\"Set source file=\" + file.toString());\n this.file = file;\n }" ]
[ "0.68734574", "0.65452623", "0.6445265", "0.64244723", "0.6379563", "0.6379563", "0.6366411", "0.635767", "0.62077695", "0.6149073", "0.613535", "0.60922474", "0.60812885", "0.60736156", "0.602827", "0.60281456", "0.600857", "0.591228", "0.5910765", "0.5893505", "0.5881042", "0.58706546", "0.5860349", "0.58592063", "0.5856555", "0.5852424", "0.58505386", "0.58505386", "0.58505386", "0.5828811", "0.5813225", "0.57952666", "0.5792652", "0.5774844", "0.576656", "0.5764637", "0.5762129", "0.5745287", "0.5738445", "0.57266206", "0.5704814", "0.57022685", "0.5680984", "0.567399", "0.5659923", "0.56534225", "0.5641496", "0.5641496", "0.5633217", "0.56325287", "0.5618357", "0.5611732", "0.5606857", "0.5600483", "0.5598768", "0.5596356", "0.55958503", "0.55927306", "0.5586112", "0.55828583", "0.5582035", "0.5572382", "0.55491704", "0.554784", "0.553509", "0.55324835", "0.5530337", "0.55289644", "0.5519519", "0.5513956", "0.5513347", "0.5501057", "0.5497808", "0.5494552", "0.54909194", "0.5488774", "0.5479734", "0.54671943", "0.54583365", "0.5450545", "0.54472935", "0.54458475", "0.544541", "0.5433845", "0.54158497", "0.5415158", "0.54135996", "0.5406613", "0.540577", "0.5405617", "0.5392002", "0.53705347", "0.5368201", "0.53671247", "0.53670603", "0.53558266", "0.5349631", "0.534771", "0.53475326", "0.53457093", "0.53268135" ]
0.0
-1
translate the small program in the file into lab (the labels) and prog (the program) return "no errors were detected"
public boolean readAndTranslate(Labels lab, ArrayList<Instruction> prog) { try (Scanner sc = new Scanner(new File(fileName))) { // Scanner attached to the file chosen by the user labels = lab; labels.reset(); program = prog; program.clear(); try { line = sc.nextLine(); } catch (NoSuchElementException ioE) { return false; } // Each iteration processes line and reads the next line into line while (line != null) { // Store the label in label String label = scan(); if (label.length() > 0) { Instruction ins = getInstruction(label); if (ins != null) { labels.addLabel(label); program.add(ins); } } try { line = sc.nextLine(); } catch (NoSuchElementException ioE) { return false; } } } catch (IOException ioE) { System.out.println("File: IO error " + ioE.getMessage()); System.exit(-1); return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) throws IOException {\n\t\tLineOfCode[] inputProgram = new LineOfCode[32];\n\t\t// Initialize an array of type LineOfMachineCode\n\t\tLineOfMachineCode[] instructions = new LineOfMachineCode[32];\n\t\tString[] opcodes = {\"LDA\", \"ADD\", \"SUB\", \"STA\", \"MPY\", \"DIV\", \n\t\t\t\t\"INP\", \"OUT\", \"JMP\", \"JMI\" }; \n\t\tString[] tokens = new String[80];\n\t\tString line = \"\";\n\t\t\n\t\t// prepare to read program from file\n\t\tFile filename = new File(\"MysteryProgram_0.txt\");\n\t\tScanner filescan = new Scanner(filename);\n\t\tScanner input = new Scanner(System.in);\n\t\tint numOfLines = 0; \n\t\t\n\t\t// Read the file containing the program one line at a time.\n\t\t// instantiate a LineOfCode Object for each line read in\n\t\t// and assign line tokens to the fields of the new object.\n\t\twhile(filescan.hasNext()){\n\t\t\tline = filescan.nextLine();\n\t\t\tString comments = \" \";\n\t\t\t// instantiate a LineOfCode object with empty fields\n\t\t\tinputProgram[numOfLines] = new LineOfCode();\n\t\t\t\n\t\t\tif(!line.isEmpty()){\n\t\t\ttokens = line.split(\"\\\\s+\");\n\t\t\t\n\t\t\t// if comments exits, create a comments string to holed them\n\t\t\t// and assign the comments to the appropriate instance variable\n\t\t\t\tif(tokens.length > 3 ){\n\t\t\t\t\tfor(int i = 3; i < tokens.length; i++ )\t\t\t\t\t\t\n\t\t\t\t\tcomments += tokens[i] + \" \";\t\n\t\t\t\t}else{\n\t\t\t\t\tcomments = \" \"; \n\t\t\t\t}\n\t\t\tinputProgram[numOfLines].setComments(comments);\n\t\t\t\n\t\t\t// check each token from the line and assign it to \n\t\t\t// its appropriate instance variable\n\t\t\tif(tokens[1].equals(\"DC\")){\n\t\t\t\tinputProgram[numOfLines].setOpcode(tokens[1]);\n\t\t\t\tinputProgram[numOfLines].setLabel(tokens[0]);\n\t\t\t\tinputProgram[numOfLines].setOperand(tokens[2]);\n\t\t\t}else if(tokens[1].equals(\"DL\")){\n\t\t\t\tinputProgram[numOfLines].setOpcode(tokens[1]);\n\t\t\t\tinputProgram[numOfLines].setLabel(tokens[0]);\n\t\t\t}else{// Big Else\t\t\t\n\t\t\t\t\n\t\t\t\t\tfor(int x = 0;x < opcodes.length; x++){\n\t\t\t\t\t\tif(opcodes[x].equals(tokens[0])){\n\t\t\t\t\t\tinputProgram[numOfLines].setOpcode(tokens[0]);\n\t\t\t\t\t\tinputProgram[numOfLines].setOperand(tokens[1]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(opcodes[x].equals(tokens[1])){\n\t\t\t\t\t\t\tinputProgram[numOfLines].setOpcode(tokens[1]);\n\t\t\t\t\t\t\tinputProgram[numOfLines].setLabel(tokens[0]);\n\t\t\t\t\t\t\tinputProgram[numOfLines].setOperand(tokens[2]);\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t} //for loop\n\t\t\t\n\t\t\t} //Big Else\n\t\t\t\t\n\t\t\t\n\t\t\t\tnumOfLines++;\n\t\t\t} \t//Super If\t\n\t\t\t\n\t\t} // while, \n\t\t\n\t\t\n\t\t// finished reading the file\n\t\tfilescan.close();\n\t\t\n\t\t// Assemble machine code out of each LineOfCode object \n\t\t// from the inputProgram array. \n\t\tfor(int i = 0; i < numOfLines; i++){\n\t\t\tinstructions[i] = new LineOfMachineCode();\n\t\t\t// handle pseudo-opcodes if they are present in the line\n\t\t\tif(inputProgram[i].getOpcode().equals(\"DL\"))\n\t\t\t\tinstructions[i].setOperand(0);\n\t\t\telse if(inputProgram[i].getOpcode().equals(\"DC\"))\n\t\t\t\t\tinstructions[i].setOperand(Integer.parseInt(inputProgram[i].getOperand()));\n\t\t\telse{\n\t\t\t\t// helper variables \n\t\t\t\tint opc = 0;\n\t\t\t\tint op = 0;\n\t\t\t\tfor(int j = 0; j < opcodes.length;j++){\n\t\t\t\t\tif(inputProgram[i].getOpcode().equals(opcodes[j])){\n\t\t\t\t\t\t// assign opcode in program to correct index of opcode array\n\t\t\t\t\t\topc = j; \n\t\t\t\t\t\tinstructions[i].setOpcode(opc);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor(int k = 0; k < numOfLines; k++){\n\t\t\t\t\tif(inputProgram[k].getLabel().equals(inputProgram[i].getOperand()))\n\t\t\t\t\t{\n\t\t\t\t\t\t// assign memory location of label to operand\n\t\t\t\t\t\top = k; \n\t\t\t\t\t\tinstructions[i].setOperand(op);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//if opcode == 0 which is LDA how to handle it\n\t\t\t\t// handle operand greater than 9 ex. 12\n\t\t\t\tif(opc == 0 && op > 9)\n\t\t\t\t\t//System.out.print(opc + \"\" + op );\n\t\t\t\t\tinstructions[i].setOpcode(opc);\n\t\t\t\t\n\t\t\t\t//else if(opc == 0 && op < 10)\n\t\t\t\t\t//System.out.print(opc + \"0\" + op + \"\\n\");\n\t\t\telse{\t\n\t\t\t\t//System.out.print( (opc * 100 + op) + \"\\n\");\n\t\t\t\tinstructions[i].setOpcode(opc);\n\t\t\t\tinstructions[i].setOperand(op);\n\t\t\t\t}\n\t\t\t} // Big else\n\t\t\t\n\t\t\t\n\t\t\t// At this point we have everything converted to machine code\n\t\t\t// Option I - have another for loop start here to begin execution of lineOfMachineCode\n\t\t}// outer for \n\t\t\n\t\t// Vars used during execution Execute the program\n\t\tint pc = 0; \t\t\t\t\n\t\tint store = 0; \n\t\tint opcode = 0;\t\t \n\t\tint value = 0; \n\t\tint accumulator = 0; \t\t\t\n\t\t// Program execution\n\t\twhile( pc < numOfLines){\n\n\t\t\t\topcode = instructions[pc].getOpcode();\n\t\t\t\n\t\t\t\tif(opcode == 8){\n\t\t\t\tpc = instructions[pc].getOperand();\n\t\t\t\topcode = instructions[pc].getOpcode();\n\t\t\t\t}else if(opcode == 9 && accumulator < 0 ){\n\t\t\t\t\tpc = instructions[pc].getOperand();\n\t\t\t\t\topcode = instructions[pc].getOpcode();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\tswitch(opcode){\n\t\t\tcase 0: // LDA \n\t\t\t\tif(inputProgram[pc].getOpcode().equals(\"DC\"))\n\t\t\t\taccumulator = instructions[pc].getOperand();\n\t\t\t\telse if(inputProgram[pc].getOpcode().equals(\"DL\"))\n\t\t\t\t\taccumulator = instructions[pc].getOperand();\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase 1: //ADD\n\t\t\t\t\taccumulator += value;\n\t\t\t\tbreak;\n\t\t\tcase 2: //SUB\n\t\t\t\t\taccumulator -= value;\n\t\t\t\tbreak;\n\t\t\tcase 3: // STA\n\t\t\t\tstore = accumulator; \n\t\t\t\tbreak;\n\t\t\tcase 4: // MPY\n\t\t\t\t\taccumulator *= value;\n\t\t\t\tbreak;\n\t\t\tcase 5: // DIV\n\t\t\t\t\taccumulator /= value;\n\t\t\t\tbreak;\n\t\t\tcase 6: //INP\n\t\t\t\tSystem.out.println(\"Enter an Integer\");\n\t\t\t\tvalue = input.nextInt();\n\t\t\t\tbreak;\n\t\t\tcase 7: // OUT\n\t\t\t\tSystem.out.println(store);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Invalid opcode\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tpc++;\n\t\t}// while\n\t\tSystem.out.println(\"Total Lines: \" + numOfLines);\n\t}", "static public void main(String argv[]) {\n for (String s : argv) {\n if (s.equals(\"-a\")) {\n SHOW_TREE = true;\n }\n else if (s.equals(\"-s\")) {\n SHOW_SYM_TABLES = true;\n }\n else if (s.equals(\"-c\")) {\n GENERATE_CODE = true;\n }\n //Check if the string ends with '.cm'\n else if (s.length() > 3 && s.substring(s.length()-3).equals(\".cm\")) { \n // If it does, make that the input file\n INPUT_FILE = s;\n }\n }\n\n if (INPUT_FILE == null) {\n System.out.println(\"No input file provided or incorrect file extension (must be .cm). Exiting...\");\n System.exit(-1);\n }\n\n // Retrieve the actual file name from between the path and the extension\n // E.g. tests/sort.cm gives a result of 'sort'\n int nameStartIndex = INPUT_FILE.lastIndexOf('/');\n int nameEndIndex = INPUT_FILE.lastIndexOf('.');\n FILE_NAME = INPUT_FILE.substring(nameStartIndex + 1, nameEndIndex);\n \n /* Start the parser */\n try {\n // Save original stdout to switch back to it as needed\n PrintStream console = System.out;\n\n if (!SHOW_SYM_TABLES && !SHOW_TREE && !GENERATE_CODE) {\n System.out.println(\"Showing errors only.\");\n System.out.println(\"Use [-a] flag to print the abstract syntax tree\" + \"\\n\" \n + \"Use [-s] flag to print the symbol table\" + \"\\n\"\n + \"Use [-c] to generate assembly code (.tm)\"); \n } \n\n parser p = new parser(new Lexer(new FileReader(INPUT_FILE)));\n // implement \"-a\", \"-s\", \"-c\" options\n Absyn result = (Absyn)(p.parse().value); \n \n if (result != null) {\n \n // If the '-a' flag is set, print the abstract syntax tree to a .abs file\n if (SHOW_TREE) {\n System.out.println(\"Abstract syntax tree written to '\" + FILE_NAME + \".abs'\");\n\n //Redirect stdout\n File absFile = new File(FILE_NAME + \".abs\");\n FileOutputStream absFos = new FileOutputStream(absFile);\n PrintStream absPS = new PrintStream(absFos);\n System.setOut(absPS);\n\n // Print abstract syntax tree to FILE_NAME.abs in current directory\n ShowTreeVisitor visitor = new ShowTreeVisitor();\n result.accept(visitor, 0, false); \n\n //Reset stdout\n System.setOut(console);\n }\n if (SHOW_SYM_TABLES) {\n //Redirect stdout to a .sym file \n File symFile = new File(FILE_NAME + \".sym\");\n FileOutputStream symFos = new FileOutputStream(symFile);\n PrintStream symPS = new PrintStream(symFos);\n System.setOut(symPS);\n } \n else {\n //Toss stdout output into the void while doing semantic analysis\n System.setOut(new PrintStream(OutputStream.nullOutputStream()));\n } \n\n // Perform semantic analysis\n SemanticAnalyzer analyzerVisitor = new SemanticAnalyzer();\n result.accept(analyzerVisitor, 0, false);\n\n //Restore stdout\n System.setOut(console);\n\n if (SHOW_SYM_TABLES) {\n //Print after having reported any errors\n System.out.println(\"Symbol table written to '\" + FILE_NAME + \".sym'\");\n }\n\n //Only generate code if the flag is set\n if (GENERATE_CODE) {\n\n //First, confirm that there are no syntax or semantic errors\n //HAS_ERRORS is true if there are any syntax errors or semantic errors, and false if both are error free\n HAS_ERRORS = (p.errorFound || analyzerVisitor.errorFound);\n\n if (HAS_ERRORS) {\n System.out.println(\"Cannot generate code while there are errors. Exiting...\");\n }\n else {\n //No syntax or semantic errors, proceed with code generation\n System.out.println(\"Assembly code written to '\" + FILE_NAME + \".tm'\");\n\n //Redirect stdout to .tm file\n File tmFile = new File(FILE_NAME + \".tm\");\n FileOutputStream tmFos = new FileOutputStream(tmFile);\n PrintStream tmPS = new PrintStream(tmFos);\n System.setOut(tmPS);\n\n //Perform code generation\n CodeGenerator generatorVisitor = new CodeGenerator();\n //result.accept(generatorVisitor, 0, false);\n generatorVisitor.visit(result, FILE_NAME + \".tm\");\n \n } \n }\n }\n\n } catch (FileNotFoundException e) {\n System.out.println(\"Could not find file '\" + INPUT_FILE + \"'. Check your spelling, and ensure it exists. Exiting...\");\n System.exit(-1); \n } catch (Exception e) {\n /* do cleanup here -- possibly rethrow e */\n e.printStackTrace();\n }\n }", "public static void main(String[] args) throws Exception {\n if(args.length < 2) {\n System.out.println(\"Not enough parameters! java -jar programAnalysis.jar <Analysis> <Input file> \");\n return;\n }\n\n // Parse the analysis input\n String analysisString = args[0];\n\n // Get Analysis from factory\n GeneralAnalysisFactory analysisFactory = new GeneralAnalysisFactory();\n GeneralAnalysis analysis = analysisFactory.getInstance(analysisString);\n\n TheLangLexer lex = new TheLangLexer(new ANTLRFileStream(args[1]));\n CommonTokenStream tokens = new CommonTokenStream(lex);\n TheLangParser parser = new TheLangParser(tokens);\n ProgramGeneralAnalysisListener listener = new ProgramGeneralAnalysisListener(analysis);\n parser.addParseListener(listener);\n\n try {\n TheLangParser.ProgramContext parserResult = parser.program();\n\n BaseMutableTreeNode rootTree = listener.getRootTree();\n FlowGraph graph = new FlowGraph();\n\n Enumeration en = rootTree.preorderEnumeration();\n int i = 1;\n while (en.hasMoreElements()) {\n\n // Unfortunately the enumeration isn't genericised so we need to downcast\n // when calling nextElement():\n BaseMutableTreeNode node = (BaseMutableTreeNode) en.nextElement();\n ParserRuleContext object = (ParserRuleContext) node.getUserObject();\n\n if(BaseStatement.class.isAssignableFrom(node.getClass())) {\n BaseStatement statement = (BaseStatement) node;\n graph.processStatement(statement);\n\n System.out.println(\"label-\" + i++ + \": \" + object.getText());\n }\n\n }\n\n analysis.doAnalysis(graph);\n\n System.out.println(analysis.printResult());\n\n// CommonTree t = (CommonTree) parserResult.getTree();\n// CommonTree t2 = (CommonTree) t.getChild(0);\n// int startToken = t2.getTokenStartIndex();\n// int stopToken = t2.getTokenStopIndex();\n// CommonToken token = (CommonToken) t2.getToken();\n// System.out.println(token.getText());\n//\n// if (parserResult != null) {\n// CommonTree tree = (CommonTree) parserResult.tree;\n// System.out.println(tree.toStringTree());\n// }\n } catch (RecognitionException e) {\n e.printStackTrace();\n }\n\n }", "public static void loadProgram() throws Exception{\n\t\t\n\t\tInteger instructionNumber = 0; \n\t\t\n\t\ttry {\n\t\t\tScanner scanner = new Scanner(new File(ramProgram));\n\t\t\twhile (scanner.hasNext()){\n\t\t\t\tString next = scanner.nextLine();\n\t\t\t\tnext = next.trim();\n\t\t\t\tString [] array = next.split(\"\\\\s+\");\n\t\t\t\t\n\t\t\t\tif (next.startsWith(\"#\") || next.isEmpty()){\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t\n\t\t\t\t\tif (array[0].endsWith(\":\")){\n\t\t\t\t\t\ttagList.add(new Tag(array[0], instructionNumber));\n\t\t\t\t\t\t\n\t\t\t\t\t\tswitch (array.length){\n\t\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t\tthrow new Exception(\"Error en la etiqueta:\" + array[0] + \". Línea: \" + getLine(next));\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\t\tprogramMemory.add(new Instruction(array[1], \"\", getLine(next)));\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\t\tprogramMemory.add(new Instruction(array[1], array[2], getLine(next)));\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\n\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\tthrow new Exception(\"Error en la instrucción: \" + array[0] + \". Línea: \" + getLine(next));\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\t\n\t\t\t\t\t\tswitch (array.length){\n\t\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t\tprogramMemory.add(new Instruction(array[0], \"\", getLine(next)));\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\t\tprogramMemory.add(new Instruction(array[0], array[1], getLine(next)));\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\tthrow new Exception(\"Error en la instrucción: \" + array[0] + \". Línea: \" + getLine(next));\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tinstructionNumber++;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tscanner.close();\n\t\t} \n\t\tcatch (FileNotFoundException e) {\n\t\t\n\t\t}\n\t}", "public static void main (String [] args) throws Exception {\n if(args.length < 1){\n System.err.println(\"Usage: java Main <inputFile1> <inputFile2> ... <inputFileN> \");\n System.exit(1);\n }\n\n FileInputStream fis = null;\n\n\n try{\n\n for (String s: args) {\n System.out.println(\"Type check on program: \"+s);\n System.out.print(\"\\n\"); \n\n //Parsing the input program.\n fis = new FileInputStream(s);\n MiniJavaParser parser = new MiniJavaParser(fis);\n System.err.println(\"Program parsed successfully.\");\n System.out.print(\"\\n\"); \n Goal root = parser.Goal(); \n \n //If the parsing was successful, we move on to the FirstVisitor which will create the Symbol Table and perform declaration checks.\n FirstVisitor eval = new FirstVisitor();\n\n boolean decl_error = false;\n\n try{ \n root.accept(eval, null);\n }catch(Exception ouch){ //If we encounter any declaration errors, the semantic check ends. \n\n System.out.println(\"We encountered at least one declaration error! \"); \n System.out.print(\"\\n\"); \n decl_error = true;\n\n }\n\n //We encountered a declaration error, so now we move on to the next program.\n if(decl_error == true){\n continue;\n }\n \n //Checking if the symbol table has a object from a class that was never declared. If so, we stop the semantic check.\n //This is the only check performed in the main function. All other checks are in the Visitor files.\n for (int counter = 0; counter < eval.idList.size(); counter++) { \t\t \n String id_check = eval.idList.get(counter);\n if( !(eval.visitor_sym.classId_table.containsKey(id_check)) ){\n\n System.out.println(\"We encountered at least one declaration error! \"); \n System.out.print(\"\\n\"); \n decl_error = true;\n \n }\n }\n \n if(decl_error == true){\n continue;\n }\n\n \n //Our program is free of declaration errors, so now we go to the second visitor which will perform type checking.\n SecondVisitor eval2 = new SecondVisitor(eval.visitor_sym);\n \n boolean type_error = false;\n\n try{\n root.accept(eval2, null);\n }catch(Exception ouch){ //If we encounter any type errors, the semantic check ends. \n System.out.println(\"We encountered at least one type error! \"); \n System.out.print(\"\\n\"); \n type_error = true;\n }\n\n //We encountered a type error, so now we move on to the next program.\n if (type_error == true){\n continue;\n }\n \n\n System.out.println(\"Our program is free of type errors, moving on to the offset table: \"); \n System.out.print(\"\\n\"); \n\n //Creating the offset table with the OffsetTable class.\n OffsetTable ot = new OffsetTable(eval.visitor_sym);\n ot.OutputCreator();\n System.out.print(\"\\n\"); \n\n }\n\n }\n\n catch(ParseException ex){\n System.out.println(ex.getMessage());\n }\n\n catch(FileNotFoundException ex){\n System.err.println(ex.getMessage());\n }\n\n finally{\n\n try{\n if(fis != null) fis.close();\n }\n catch(IOException ex){\n System.err.println(ex.getMessage());\n }\n }\n\n\n }", "static public void main(String argv[]) {\n String archivo_a_parsear = \"/home/maldad/repos/automatas/semantico/EjemploA/src/ejemploa/test.txt\";\n try {\n parser p = new parser(new Lexer(new FileReader(archivo_a_parsear)));\n Object result = p.parse().value; \n } catch (Exception e) {\n /* do cleanup here -- possibly rethrow e */\n e.printStackTrace();\n }\n }", "public void doProgram() throws LexemeException {\n\t\tlogMessage(\"<program>-->{<class>}\");\n\t\tfunctionStack.push(\"<program>\");\n\t\t// while(lexAnalyser.peekToken().getType() != \"EOSTREAM_\")\n\t\twhile (ifPeek(\"CLASS_\")) {\n\t\t\tdoClass(\"<program>\");\n\t\t}\n\t\t// else exit program\n\t\twhile (!ifPeek(\"EOSTREAM_\")) {\n\t\t\tlogErrorMessage(peekToken.getType(), \"EOSTREAM_\");\n\t\t\tpeekToken.setType(\"EOSTREAM_\");\n\t\t}\n\t\tSystem.out.println(\"Parser Finished with no errors found\");\n\t\tlog.logMsg(\"Parser Finished with no errors found\");\n\t\tlog.closeLog();\n\t\tfunctionStack.pop();\n\t}", "public static void main(String[] args) throws IOException{\n\t\t\r\n\t\tBufferedReader label = new BufferedReader(new FileReader(\"C:/PISTON/gold_standard.txt\"));\r\n\t\tBufferedReader label2 = new BufferedReader(new FileReader(\"C:/PISTON/gold_standard.txt\"));\r\n\t\tBufferedReader table = new BufferedReader(new FileReader(\"C:/PISTON/LDAGibbs_284_TopicProbabilities.txt\"));\r\n\t\tBufferedReader table2 = new BufferedReader(new FileReader(\"C:/PISTON/LDAGibbs_284_TopicProbabilities.txt\"));\r\n\t\tBufferedWriter output = new BufferedWriter(new FileWriter(\"C:/PISTON/assigned_class.txt\"));\r\n\r\n\t\tint label_loop = 0;\r\n\t\t\r\n\t\twhile(true){\r\n\t\t\t\r\n\t\t\tString line = label.readLine();\r\n\t\t\tif(line == null) break;\r\n\t\t\tlabel_loop++;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tString [] new_label = new String [label_loop];\r\n\t\t\r\n\t\tfor(int i=0; i<label_loop; i++){\r\n\t\t\t\r\n\t\t\tString line = label2.readLine();\r\n\t\t\tnew_label[i] = line;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tint table_loop = 0;\r\n\t\t\r\n\t\twhile(true){\r\n\t\t\t\r\n\t\t\tString line = table.readLine();\r\n\t\t\tif(line == null) break;\r\n\t\t\ttable_loop++;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tString [] new_table = new String [table_loop];\r\n\t\tString [] assigned_label = new String [table_loop];\r\n\t\t\r\n\t\tfor(int i=0; i<table_loop; i++){\r\n\t\t\t\r\n\t\t\tString line = table2.readLine();\r\n\t\t\tnew_table[i] = line;\r\n\t\t\t\r\n\t\t}\r\n\r\n\t\tfor(int i=0; i<table_loop; i++){\r\n\t\t\t\r\n\t\t\tint temp = 0;\r\n\t\t\t\r\n\t\t\tString [] split_topic = new_table[i].split(\"\\t\");\r\n\t\t\t\r\n\t\t\tfor(int j=0; j<label_loop; j++){\r\n\t\t\t\t\r\n\t\t\t\tif(split_topic[3].equals(new_label[j])){\r\n\r\n\t\t\t\t\ttemp = 1;\r\n\t\t\t\t\t\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\tif(temp==1){\r\n\t\t\t\t\r\n\t\t\t\tassigned_label[i] = \"T\";\r\n\t\t\t\toutput.flush();\r\n\t\t\t\toutput.write(assigned_label[i]+\"\\n\");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\t\r\n\t\t\t\tassigned_label[i] = \"F\";\r\n\t\t\t\toutput.flush();\r\n\t\t\t\toutput.write(assigned_label[i]+\"\\n\");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\r\n\t\tlabel.close();\r\n\t\tlabel2.close();\r\n\t\ttable.close();\r\n\t\ttable2.close();\r\n\t\toutput.close();\r\n\t\t\r\n\t\tSystem.out.println(\"Process finished.\");\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tNode root = null;\r\n\t\tboolean print=false; //是否打印错误信息\r\n\t\ttry {\r\n\t\t\troot = new MiniJavaParser(System.in).Goal();\r\n\t\t\t//System.out.println(\"Program parsed successfully\");\r\n\t\t}\r\n\t\tcatch (ParseException e) {\r\n\t\t\tSystem.out.println(e.toString());\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\r\n\t\t// 建立符号表,判断是否重定义,是否有循环继承,是否有重载\r\n\t\tSymbolTableVisitor stv = new SymbolTableVisitor();\r\n\t\troot.accept(stv,null);\r\n\t\tif (stv.error.size()!=0) {\r\n\t\t\tSystem.out.println(\"Type error\");\r\n\t\t\t\r\n\t\t\tif (print){\r\n\t\t\t\tfor (int i=0;i<stv.error.size();i++){\r\n\t\t\t\t\tSystem.out.println(stv.error.get(i));\r\n\t\t\t\t}\t\t\t\r\n\t\t\t}\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t\t\r\n\t\t// 类型检查,检查各种类型是否匹配\r\n\t\tTypeCheckVisitor tcv = new TypeCheckVisitor(stv);\r\n\t\troot.accept(tcv,null);\r\n\t\tif (tcv.error.size()!=0) {\r\n\t\t\tSystem.out.println(\"Type error\");\r\n\t\t\t\r\n\t\t\tif (print){\r\n\t\t\t\tfor (int i=0;i<tcv.error.size();i++){\r\n\t\t\t\t\tSystem.out.println(tcv.error.get(i));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.exit(1);\r\n\t\t} else {\r\n\t\t\t//System.out.println(\"Program type checked successfully\");\r\n\t\t}\r\n\t\t\r\n\t\t//生成Piglet代码\r\n\t\tPigletGenerateVisitor pg=new PigletGenerateVisitor(stv);\r\n\t\troot.accept(pg,null);\r\n\t}", "public static void main(String[] args) throws IOException {\r\n\t\tBufferedReader in = new BufferedReader(new FileReader(input_path)); \r\n\t\tString intext = in.readLine();\r\n\t\tint T = Integer.parseInt(intext);\r\n\t\tfor (int caseIter = 0; caseIter < T; caseIter ++) {\r\n\t\t\tintext = in.readLine();\r\n\t\t\t\r\n\t\t\tint N = Integer.parseInt(intext);\r\n\t\t\tint[] a = new int[N];\r\n\t\t\tint[] b = new int[N];\r\n\t\t\t\r\n\t\t\tfor (int i = 0; i < N; i ++) {\r\n\t\t\t\tintext = in.readLine();\r\n\t\t\t\tString[] parts = intext.split(\" \");\r\n\t\t\t\ta[i] = Integer.parseInt(parts[0]);\r\n\t\t\t\tb[i] = Integer.parseInt(parts[1]);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tint ans = solveEasy(N, a, b);\r\n\t\t\t\r\n\t\t\tif (ans < 0)\r\n\t\t\t\tSystem.out.println(String.format(\"Case #%d: Too Bad\", caseIter + 1));\r\n\t\t\telse\r\n\t\t\t\tSystem.out.println(String.format(\"Case #%d: %d\", caseIter + 1, ans));\r\n\t\t}\r\n\t\tin.close();\r\n\t}", "private void check(final VProgram program) {\n\t}", "public static void main(String args[]) throws Exception{\r\n java.io.BufferedReader in;\r\n Yylex sc;\r\n parser p;\r\n java_cup.runtime.Symbol sroot;\r\n boolean error=false;\r\n\r\n //El primer parametro es el nombre del fichero con el programa\r\n if (args.length != 2) {\r\n System.out.println(\r\n \"Uso: java Main <nombre_fichero> <fichero_generado>\");\r\n error=true;\r\n }\r\n\r\n //Analisis lexico y sintactico\r\n\r\n if (!error) {\r\n \ttry {\r\n \t in = new java.io.BufferedReader(new java.io.FileReader(args[0]));\r\n \t sc = new Yylex(in);\r\n \t p = new parser(sc);\r\n \t sroot = p.parse();\r\n \t System.out.println(\"Análisis léxico y sintáctico correctos\");\r\n\r\n /* Codigo para el analisis semantico, empieza a computar desde el nodo raiz */\r\n S root = (S) sroot.value;\r\n root.computeAH1();\r\n System.out.println(\"Análisis semántico correcto\");\r\n /* Fin codigo analisis semantico */\r\n\r\n /* Codigo para generar codigo Java */\r\n codeGenerator(args[1], root);\r\n /* Fin codigo para generar codigo Java */\r\n \t} catch(IOException e) {\r\n \t System.out.println(\"Error abriendo fichero: \" + args[0]);\r\n \t error= true;\r\n \t}\r\n }\r\n }", "private void checkRuntime(String filename, int[] input, int[] output) throws ParseException, IOException{\t\t\n\t\t\n\t\tString inputString = createInput(input);\n\t\t\n\t\tProgram prog = compiler.compile(new File(BASE_DIR, filename + EXT));\n\t\tMachine vm = new Machine();\n\t\tSimulator sim = new Simulator(prog, vm);\n\t\tvm.clear();\n\t\tsim.setIn(new ByteArrayInputStream(inputString.getBytes()));\n\t\tPipedInputStream in = new PipedInputStream();\n\t\tOutputStream out;\n\t\tout = new PipedOutputStream(in);\n\t\tsim.setOut(out);\n\t\tsim.run();\n\t\t\n\t\tString outputString = \"\";\n\t\tfor(int index = 0; index < output.length; index++)\n\t\t\toutputString += \"Output: \" + output[index] + \"\\r\\n\";\n\n\t\tassertEquals(outputString.length(), in.available());\n\t\tint max = in.available();\n\t\tfor(int index = 0; index < max; index++)\n\t\t\tassertEquals(outputString.charAt(index), (char)in.read());\n\t\t\n\t\tout.close();\n\t\tin.close();\n\t}", "public void runProgram() {\n\t\tJTextPane code = ((MinLFile) tabbedPane.getSelectedComponent()).CodeArea;\n\t\tminc.consolearea.setText(\"\");\n\t\tinterpretorMainMethod(code.getText(), 0);\n\t\tdouble_variables.clear();\n\t\tstring_variables.clear();\n\t\tfunctions.clear();\n\t}", "public static void main(String[] args) throws Exception {\n Options options = new Options();\n \n Option fileOpt = new Option(\"f\", \"file\", true, \"target spec file\");\n fileOpt.setRequired(false);\n options.addOption(fileOpt);\n \n Option coverOpt = new Option(\"c\", \"cover\", false, \"Set if the input is a coverability check.\");\n coverOpt.setRequired(false);\n options.addOption(coverOpt);\n \n Option boundOpt = new Option(\"b\", \"bound\", true, \"Set a bound on the absolute values of entries in k\");\n boundOpt.setRequired(false);\n options.addOption(boundOpt);\n \n Option minOpt = new Option(\"m\", \"min\", false, \"Set if minization should be used.\");\n minOpt.setRequired(false);\n options.addOption(minOpt); \n Option verbOpt = new Option(\"v\", \"verbose\", false, \"Set if more output is required.\");\n verbOpt.setRequired(false);\n options.addOption(verbOpt);\n \n CommandLineParser parserCmd = new DefaultParser();\n HelpFormatter formatter = new HelpFormatter();\n CommandLine cmd;\n \n try {\n cmd = parserCmd.parse(options, args);\n } catch (ParseException e) {\n System.out.println(e.getMessage());\n formatter.printHelp(\"Inequalizer\", options);\n System.exit(1);\n return;\n }\n if (cmd.hasOption(\"cover\")) {\n cover = true;\n }\n if (cmd.hasOption(\"min\")) {\n Formula.isOpt = true;\n }\n if (cmd.hasOption(\"verbose\")) {\n log.setLevel(Level.ALL);\n } else {\n log.setLevel(Level.OFF);\n }\n if (cmd.hasOption(\"bound\")) {\n isBounded = true;\n bound = Integer.parseInt(cmd.getOptionValue(\"bound\"));\n }\n if (cmd.hasOption(\"file\")) {\n String filePath = cmd.getOptionValue(\"file\");\n if (!filePath.endsWith(\"spec\")) {\n System.out.println(\"Unrecognized Petri Net format\");\n System.exit(0);\n return;\n }\n File modelfile = new File(filePath);\n \n String mcmtext = FileUtils.readFileToString(modelfile, \"UTF-8\");\n ANTLRInputStream mcminput = new ANTLRInputStream(mcmtext);\n PNLexer lexer = new PNLexer(mcminput);\n CommonTokenStream tokens = new CommonTokenStream(lexer);\n PNParser parser = new PNParser(tokens);\n //System.out.println((parser.mcm()).getText());\n //System.out.println(parser.mcm());\n PetriNet.setNet(parser.pn().netz);\n } else {\n if(cmd.hasOption(\"verbose\"))\n {\n// log.setLevel(Level.OFF);\n// for (int i = 1; i < 100; i++) {\n setExample(7);\n// }\n// System.exit(0);\n }\n else formatter.printHelp(\"Inequalizer\", options);\n }\n \n log.info(PetriNet.getNet().toString());\n log.info(\"M0: \" + m0.toString() + \"\\n\");\n log.info(\"MF: \" + mF.toString() + \"\\n\");\n// System.out.println(\"#P: \"+PetriNet.getNet().getSize()+\" #T: \"+PetriNet.getNet().getTransitions().size());\n// int[] k={3,2};\n// Inequality in=new Inequality(k);\n// in.findC();\n// in.print();\n \nif (isBounded) phi = new Formula(bound, cover);\nelse phi =new Formula(cover);\n \n \n Inequality temp = phi.simplesolve();\n if (temp != null) {\n //System.out.println(\"1\");\n //System.exit(0);\n System.out.println(\"The formula for trivial invariants produced a result.\");\n temp.setCnotrel();\n for (PNTransition transition : PetriNet.getNet().getTransitions()) {\n if (temp.isRelevant(transition) && !temp.isTrivialStable(transition)) {\n System.err.println(\"The inequalite is not stable wrt: \" + transition.getName());\n }\n }\n } else {\n log.info(\"There is no trivial solution.\");\n if(quant) temp=phi.quantifiedsolve();\n else temp = Cegar();\n }\n if (temp != null) {\n System.out.println(cmd.getOptionValue(\"file\"));\n// System.out.println(\"The marking is not reachable, it is separated from M0 by the following inductive inequality:\");\n temp.print();\n } else {\n System.out.println(\"0\");\n// System.out.println(\"There is no inductive inequality.\");\n }\n \n }", "@Test\n public void AppProcNumError() {\n try{\n App.main(new String[]{TEST_PATH + \"input.dot\",\"yes\"});\n }catch(RuntimeException re){\n assertEquals(re.getMessage(),\"Invalid number of processors\");\n }\n }", "public static void main(String[] args) {\n \n fillArrayList();\n getNextToken();\n parseProgram();\n\n //TODO output into file ID.java\n //This seems to work\n// File f = new File(programID+\".java\");\n// try {\n// PrintWriter write = new PrintWriter(f);\n// write.print(sb.toString());\n// write.flush();\n// write.close();\n// } catch (FileNotFoundException ex) {\n// Logger.getLogger(setTranslator.class.getName()).log(Level.SEVERE, null, ex);\n// }\n System.out.println(sb.toString());\n \n }", "public static void main(String... strings) {\n\t\t\n\t\tfinal MipsComputer comp = new MipsComputer();\n\t\t\n\t\tFile f = new File(filePath);\n\t\tif (f.exists() && !f.isDirectory()) {\n\t\t\tcomp.setFromMars(true);\n\t\t\treadInstructionsFromFile(f, comp);\n\t\t} else {\n\t\t\tcomp.setFromMars(false);\n\t\t\treadInstructionsFromArray(comp);\n\t\t}\n\t\t\n\t\tcomp.execute();\n\t\tcomp.print();\n\t}", "private static void usage()\n {\n System.out.println(\"Lex\");\n System.exit(-1);\n }", "public static void main(String[] args) {\n\t\tString[] prog = {\"Java\", \"C\", \"C#\", \"C++\", \"Python\", \"R\"};\r\n\t\t\r\n\t\tArrayList<String> prog2 = new ArrayList<String>();\r\n\t\tfor (int i=0; i<prog.length; i++) {\r\n\t\t\tprog2.add(prog[i]);\r\n\t\t}\r\n\t\t\r\n\t\tfor (int i=0; i<prog2.size(); i++) {\r\n\t\t\tSystem.out.println(prog2.get(i));\r\n\t\t}\r\n\t\t\r\n\t\t/* for (String word: prog2) {\r\n\t\t\tSystem.out.println(word);\r\n\t\t} */\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t// Task2: copy the array list in Task 1 and create an array list \"prog3\";\r\n\t\t\r\n\t\tArrayList<String> prog3 = new ArrayList<String>(prog2);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t// Task3: create an array list of integers 0,1,4,9,16,25 using for loop and print\r\n\t\t\r\n\t\tArrayList<Integer> numbers = new ArrayList<Integer>();\r\n\t\tfor (int x=0; x<=5; x++) {\r\n\t\t\tnumbers.add(x*x);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\r\n\t\t\r\n\t\t// Task4: from prog3, remove strings with length <=2. Use for loop.\r\n\t\t\r\n\t\tint i=0;\r\n\t\twhile (i<prog3.size()) {\r\n\t\t\tString word = prog3.get(i);\r\n\t\t\tif(word.length()<=2) {\r\n\t\t\t\tprog3.remove(i);\r\n\t\t\t} else {\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "private static void input(String[] args) {\n try (BufferedReader scanner = new BufferedReader(\n new InputStreamReader(args.length > 0 ? new FileInputStream(args[0]) : System.in))) {\n\n String linija;\n\n // regularne definicije\n while ((linija = scanner.readLine()) != null && linija.startsWith(\"{\")) {\n String tmp[] = linija.split(\" \");\n\n tmp[0] = tmp[0].substring(1, tmp[0].length() - 1);\n String naziv = tmp[0];\n String izraz = expandRegularDefinition(tmp[1]);\n\n regularneDefinicije.put(naziv, izraz);\n\n // System.out.println(naziv + \", \" + izraz);\n }\n\n // stanja\n while (!linija.startsWith(\"%X\")) {\n linija = scanner.readLine().trim();\n }\n\n skipSplitAdd(linija, stanjaLA);\n\n // leksicke jedinke\n while (!linija.startsWith(\"%L\")) {\n linija = scanner.readLine().trim();\n }\n\n skipSplitAdd(linija, leksickeJedinke);\n\n // pravila leksickog analizatora\n\n while ((linija = scanner.readLine()) != null) {\n while (!linija.startsWith(\"<\")) {\n linija = scanner.readLine();\n }\n\n String tmp[] = linija.split(\">\", 2);\n\n String stateName = tmp[0].substring(1, tmp[0].length());\n String regDef = tmp[1];\n\n regDef = expandRegularDefinition(regDef);\n\n // System.out.println(stateName + \"<> \" + regDef);\n LexerRule lexerRule = new LexerRule(regDef, stateName, 1, \"<\" + stateName + \">\" + regDef);\n lexerRules.add(lexerRule);\n\n scanner.readLine(); // preskoci {\n\n linija = scanner.readLine().trim();\n while (linija != null && scanner.ready() && !linija.equals(\"}\")) {\n // radi nesto s naredbom\n lexerRule.addAction(linija);\n linija = scanner.readLine().trim();\n }\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static void runTests(Preferences p) throws InvalidTagFormatException, FileNotFoundException, IOException {\n \n String testCaseFile = p.getTestFile();\n String testingPath = p.getTestPath();\n String resultsFormat = p.getFormat();\n boolean ignoreSpaCap = p.getIgnoreSpaCap();\n boolean removeBlankLines= p.getRemoveBlankLines();\n boolean debug = p.getDebug();\n JTextArea statusTextArea = p.getStatusTextArea();\n ProgramSettings settings= p.getSettings();\n\n // ultimately we need to figure actual OS\n OperatingSystem opSys = new OperatingSystemWindows(); \n \n String tempProgramFileName = settings.getTempProgramFileName();\n String tempInputFileName = settings.getTempInputFileName();\n String tempOutputFileName = settings.getTempOutputFileName();\n // TODO Replace this with actual storage of name in settings\n String tempErrorFileName = settings.getTempOutputFileName();\n int lastPeriod = tempErrorFileName.lastIndexOf(\".\");\n tempErrorFileName = tempErrorFileName.substring(0, lastPeriod) + \"Error$\"\n + tempErrorFileName.substring(lastPeriod);\n String resultsFileName = settings.getResultsFileName();\n \n \n //Ty Carpenter\n //From issue #89, added a new statistic variable to see if the test passes or fails\n //NOCOMP tests don't keep track of statistics, only if the test runs, therefore a variable is need to see if that run fails\n //nocompInTests keeps track to see if there is a single nocomp test so the results prints ALL TESTS RAN\n boolean testsSuccessful = true;\n boolean nocompInTests = false;\n \n int incorrectValues = 0;\n int incorrectText = 0;\n int incorrectSpacing = 0;\n int extraBlankLines = 0;\n int missingBlankLines = 0;\n int canNotRun = 0;\n int executionErrors = 0;\n\n //Brendan Villnave lines 48-51\n //From issue #111 I added the time of testing in military format\n //also tells you the day you tested the file\n Date current = new Date();\n statusTextArea.append(\"Date and time tested: \"+ current + \"\\n\");\n statusTextArea.update(statusTextArea.getGraphics());\n testingPath = testingPath + \"/\";\n statusTextArea.append(\"Test Case File: \" + p.getTestFile() + \"\\n\");\n statusTextArea.update(statusTextArea.getGraphics());\n statusTextArea.append(\"Testing path: \" + testingPath + \"\\n\");\n statusTextArea.update(statusTextArea.getGraphics());\n\n\n List<String> tests = new LinkedList<>();\n List<String> includes = new ArrayList<>();\n //Define Lists for storing information about files tested and whether\n //testes passed or failed.\n List<String> fileNames = new ArrayList<>();\n List<Integer> testsPassed = new ArrayList<>();\n List<Integer> testsApproximate = new ArrayList<>();\n List<Integer> testsRun = new ArrayList<>();\n //new list that stores information about nocompFiles run\n List<Integer> nocompTestsRun = new ArrayList<>();\n \n //Ty Carpenter Issue #89\n //boolean variable if NOCOMP tag is present\n boolean noComp = false;\n \n try {\n PytestFileReader testFile = new PytestFileReader(testCaseFile);\n tests = testFile.getText();\n includes = testFile.getIncludedFiles();\n } catch (Exception ex) {\n statusTextArea.append(\"Can't read test file: \" + testCaseFile + \"\\n\");\n }\n \n //Ty Carpenter Issue #94\n //Finds a Run tag in tests and transforms it into a NOCOMP test tag\n \n for(int i = 0; i < tests.size(); i++)\n {\n \n String possibleRunTag = tests.get(i);\n String upperPossibleRunTag = possibleRunTag.toUpperCase();\n String keepFile = \"\";\n if(upperPossibleRunTag.length() > 10)\n {\n \n String t = upperPossibleRunTag.substring(0, 10);\n \n if(t.equals(\"<RUN CODE=\"))\n {\n \n if(upperPossibleRunTag.substring(upperPossibleRunTag.length()-1,upperPossibleRunTag.length()).equals(\">\") && upperPossibleRunTag.substring(upperPossibleRunTag.length()-2,upperPossibleRunTag.length()-1).equals(\"/\"))\n {\n \n keepFile = possibleRunTag.substring(10, possibleRunTag.length() - 2);\n String newTag = \"<test code=\" + keepFile + \"nocomp>\";\n tests.set(i, newTag);\n tests.add(i+1, \"</test>\");\n }\n }\n }\n \n }\n \n // Process any COPY tags to copy files from the test case folder to\n // the folder under test\n \n String testCasePath = testCaseFile.substring( 0, testCaseFile.lastIndexOf( \"/\"));\n //testCaseFile.substring( 0, testCaseFile.lastIndexOf( \"/\"));\n \n \n for( String line : tests )\n {\n String upper = line.toUpperCase();\n // TODO: Not sure if the test for length is necessary\n // TODO: This is very demanding for spacing, etc.\n if( upper.length() > 13 && upper.startsWith( \"<COPY FILE=\") && upper.endsWith( \"/>\" ) )\n {\n String fileName = line.substring( line.indexOf( \"\\\"\" )+1, line.lastIndexOf( \"\\\"\" ) );\n String sourceFile = testCasePath + \"/\" + fileName;\n String destFile = testingPath + fileName;\n \n if( opSys.copy( sourceFile, destFile ) )\n {\n statusTextArea.append( \"COPIED: \" + fileName + \"\\n\" );\n \n }\n else\n {\n statusTextArea.append( \"*** NOT COPIED ***: \" + fileName + \"\\n\" );\n \n // might want to do something else\n } \n }\n } \n \n FileNameMapper fileNameMapper = \n new FileNameMapper( null, true, tests, testingPath );\n \n if( 0 < fileNameMapper.unknownCount() )\n {\n fileNameMapper.setVisible( true );\n if( !fileNameMapper.okClicked() )\n {\n statusTextArea.append(\"Testing cancelled by user.\");\n return;\n }\n }\n \n List<String> results = new LinkedList<>();\n \n if (!testCaseFile.endsWith(\".pytest\")) {\n statusTextArea.append(\"No tests were run because the Test Case File was not a PYTEST file.\");\n // ?? : statusTextArea.update(statusTextArea.getGraphics()); \n return;\n }\n \n for (String str : includes) {\n if (str.endsWith(\".py\")) {\n statusTextArea.append(\"The tag to include \" + str + \" was ignored because its argument was not a .pytest file.\\n\");\n }\n }\n \n TestTagParser testParser = new TestTagParser(tests);\n RUN_TESTS:\n while (testParser.hasNext()) {\n\n // Step #1 - Read the test case from the file\n TagBlock block = testParser.next();\n String pythonFileName = parseFileArg(block.getArgs(), statusTextArea );\n String userFileName = fileNameMapper.map( pythonFileName ); \n List<String> testData = block.getData();\n //Find out if the file is currently in the List of tested files and\n //if so where.\n int positionInNameList = fileNames.indexOf(pythonFileName);\n if(positionInNameList==-1)\n {\n //Initialize a new element in the Lists for this new .py file.\n fileNames.add(pythonFileName);\n positionInNameList = fileNames.size()-1;\n testsPassed.add(0);\n testsApproximate.add(0);\n nocompTestsRun.add(0);\n testsRun.add(0);\n }\n //Ty Carpenter Issue #89\n //Wherever a statistic is counted (like canNotRun, missingBlankLines, etc>)\n // check to see if there is a NOCOMP tag is present so that statistics are NOT counted in the test results\n //Either way, if there is an error, testsSuccessful becomes false\n try {\n //testPassed start out true and is set to false if the test fails.\n if( userFileName.equals( \"(none)\") )\n {\n boolean testPassed = false;\n if(!hasNoCompArg(block.getArgs()))\n {\n canNotRun++;\n testsSuccessful = false;\n }\n else\n {\n testsSuccessful = false;\n }\n results.add(\"Skipped \" + pythonFileName + \" - NO USER FILE\" );\n results.add( \"\" );\n statusTextArea.append(\"Skipped \" + pythonFileName + \" - NO USER FILE\\n\" );\n statusTextArea.update(statusTextArea.getGraphics());\n }\n else\n {\n boolean testPassed = true;\n boolean testApproximate = true;\n \n if( userFileName.equals( pythonFileName ) )\n {\n results.add(\"Testing \" + pythonFileName + \"...\");\n }\n else\n {\n results.add(\"Testing \" + pythonFileName + \n \" >>> \" + userFileName + \"...\");\n }\n if (true) // TODO should be if (verbose)\n {\n if( userFileName.equals( pythonFileName ) )\n {\n statusTextArea.append(\"Testing \" + pythonFileName + \"...\\n\");\n }\n else\n {\n statusTextArea.append(\"Testing \" + pythonFileName + \" (\" + userFileName + \")...\\n\");\n }\n statusTextArea.update(statusTextArea.getGraphics());\n }\n\n // Step #2 - Modify the student's code\n createModifiedProgram(testingPath, userFileName, tempProgramFileName);\n\n // Step #3 - Create the file with the inputs to the program\n createProgramInputs(testingPath, testData, tempInputFileName);\n\n // Step #4 - Run the student's program\n int rc = PythonExecutor.run(testingPath, tempProgramFileName,\n tempInputFileName,\n tempOutputFileName,\n tempErrorFileName,\n statusTextArea,\n settings);\n\n if( true ) // 0 == rc )\n {\n // Step #5 - Read the results from the output file\n TextFileReader fileIn = new TextFileReader(testingPath + tempOutputFileName);\n List<String> programOutput = fileIn.getText();\n\n if( 0 != rc && !hasNoCompArg(block.getArgs()))\n {\n // programOutput.add( \"EXECUTION ERROR RC=\" + rc );\n // TextFileReader errorIn = new TextFileReader(testingPath + tempErrorFileName);\n // List<String> errorText = errorIn.getText();\n // // Add the last two lines to the program output file, if present\n // if( errorText.size() >= 2 )\n // {\n // programOutput.add( errorText.get( errorText.size() - 2 ) );\n // }\n // if( errorText.size() >= 1 )\n // {\n // programOutput.add( errorText.get( errorText.size() - 1 ) );\n // } \n\n executionErrors++;\n testPassed = false;\n testsSuccessful = false;\n }\n if(0 != rc && hasNoCompArg(block.getArgs()))\n {\n testsSuccessful = false;\n \n }\n\n TextUtilities.removeTrailingBlanks( programOutput );\n\n // Step #6 - Compare the results to the expected values\n // TODO: move these inside the comparitor ??\n testData = InputTagParser.removeInputTags(testData);\n // List<String> outputText = ValueTagParser.removeValueTags( testData );\n \n int width = TextUtilities.maximumLength( programOutput );\n\n \n if (removeBlankLines) {\n while (testData.remove(\"\")) { /*\n * Do Nothing\n */ }\n while (programOutput.remove(\"\")) { /*\n * Do Nothing\n */ }\n }\n \n if (!hasNoCompArg(block.getArgs())) {\n // TODO: Convert to use iterators\n while (0 != testData.size() && 0 != programOutput.size()) {\n String testLine = testData.get(0);\n String progLine = programOutput.get(0);\n\n if (testLine.equals(\"\") && !progLine.equals(\"\")) {\n results.add(\"! missing blank line !\");\n testData.remove(0);\n missingBlankLines++;\n testsSuccessful = false;\n testPassed = false;\n } else if (!testLine.equals(\"\") && progLine.equals(\"\")) {\n results.add(\"! extra blank line !\");\n programOutput.remove(0);\n extraBlankLines++;\n testsSuccessful = false;\n testPassed = false;\n } else {\n TextLineComparator comp =\n new TextLineComparator(testLine, progLine);\n //TODO: Count multiple errors on one line?\n boolean exact = comp.equalsExact();\n boolean approx = comp.equalsSomeWhat();\n\n if (exact) {\n results.add(\"= \" + testLine);\n } else if (approx) {\n if (ignoreSpaCap) {\n results.add(\"~ \" + testLine);\n } else {\n testPassed=false;\n incorrectText++;\n incorrectSpacing++;\n testsSuccessful = false;\n\n if (resultsFormat.equals(\"Sequential\")) {\n results.add(\"~ \" + progLine);\n results.add(\"> \" + ValueTagParser.removeValueTags(testLine));\n } else {\n results.add(\"~ \" + TextUtilities.adjustLength( progLine, width ) + \" >-SHOULD BE-> \"\n + ValueTagParser.removeValueTags(testLine));\n }\n }\n } // else if( comp.equalValues() )\n // {\n // \tresults.add( \"# \" + programOutput.get(i) );\n // results.add( \"> \" + ValueTagParser.removeValueTags(testData.get(i)) );\n // }\n else {\n incorrectText++;\n testsSuccessful = false;\n testPassed = false;\n testApproximate = false;\n if (resultsFormat.equals(\"Sequential\")) {\n results.add(\"X \" + progLine);\n results.add(\"> \" + ValueTagParser.removeValueTags(testLine));\n } else {\n results.add(\"X \" + TextUtilities.adjustLength( progLine, width ) + \" >-SHOULD BE-> \"\n + ValueTagParser.removeValueTags(testLine));\n }\n }\n testData.remove(0);\n programOutput.remove(0);\n }\n }\n while (0 != testData.size()) {\n testApproximate = false;\n testPassed = false;\n if( 0 == rc )\n {\n // Only add this if there was not a python error\n incorrectText++;\n testsSuccessful = false;\n if (resultsFormat.equals(\"Sequential\")) {\n results.add(\"X **NO*OUTPUT*LINE**\");\n results.add(\"> \" + ValueTagParser.removeValueTags(testData.get(0)));\n } else {\n results.add(\"X \" + TextUtilities.adjustLength( \"**NO*OUTPUT*LINE**\", width) + \" >-SHOULD BE-> \"\n + ValueTagParser.removeValueTags(testData.get(0)));\n }\n }\n testData.remove(0);\n }\n while (0 != programOutput.size()) {\n testApproximate = false;\n testPassed = false;\n incorrectText++;\n testsSuccessful = false;\n if (resultsFormat.equals(\"Sequential\")) {\n results.add(\"X \" + programOutput.get(0));\n results.add(\"> **NO*OUTPUT*LINE**\");\n } else {\n results.add(\"X \" + TextUtilities.adjustLength( programOutput.get(0), width )\n + \" >-SHOULD BE-> **NO*OUTPUT*LINE**\");\n }\n programOutput.remove(0);\n }\n } else {\n \n \n //Ty Carpenter Issue #89\n //Variable when NOCOMP tag is found becomes true\n // NoComp argument present\n //nocompInTests is true so now will print ALL TESTS RUN if they all pass\n nocompInTests = true;\n noComp = true;\n for (int i = 0; i < programOutput.size(); i++) {\n results.add(\" \" + programOutput.get(i));\n }\n }\n }\n else\n {\n if(!hasNoCompArg(block.getArgs()))\n {\n executionErrors++;\n testsSuccessful = false;\n }\n else\n {\n testsSuccessful = false;\n }\n testPassed = false;\n testApproximate = false;\n if (debug) {\n break RUN_TESTS;\n }\n }\n //Ty Carpenter Issue #89\n //If there is no NOCOMP tag, testPassed and testApproximate are counted\n if(noComp == false)\n {\n\n TextFileReader errorIn = new TextFileReader(testingPath + tempErrorFileName);\n List<String> errorOutput = errorIn.getText();\n for( String line : errorOutput )\n {\n line = line.replace( testingPath+tempProgramFileName, userFileName );\n results.add( \"E \" + line );\n }\n\n results.add(\"\");\n\n\n if( testPassed )\n {\n testsPassed.set(positionInNameList,\n testsPassed.get(positionInNameList)+1);\n }\n \n if( testApproximate )\n {\n testsApproximate.set(positionInNameList,\n testsApproximate.get(positionInNameList)+1);\n }\n }\n //Ty Carpenter Issue #89\n //Resets NOCOMP argument for future tests\n else\n {\n //nocompTestsRun is counted\n nocompTestsRun.set(positionInNameList,\n testsRun.get(positionInNameList)+1);\n noComp = false;\n }\n testsRun.set(positionInNameList,\n testsRun.get(positionInNameList)+1);\n\n } \n } \n catch (Exception ex) \n {\n results.add(\"Exception: \" + ex.getMessage() + \"\\n\");\n statusTextArea.append(\"Can't run test: \" + pythonFileName + ex.getMessage() + \"\\n\");\n statusTextArea.update(statusTextArea.getGraphics());\n if(!hasNoCompArg(block.getArgs()))\n {\n canNotRun++;\n testsSuccessful = false;\n }\n else\n {\n testsSuccessful = false;\n }\n if (debug) \n {\n break RUN_TESTS;\n }\n }\n }\n //Brendan Villnave\n //Edited the following lines so everything after \"Run Completed!\"\n //gets added to the $TEST$RESULTS$.txt file as well\n TextFileWriter outFile = new TextFileWriter(testingPath + resultsFileName);\n if (!debug) {\n deleteFile(testingPath + tempProgramFileName);\n deleteFile(testingPath + tempInputFileName);\n deleteFile(testingPath + tempOutputFileName);\n deleteFile(testingPath + tempErrorFileName);\n }\n statusTextArea.append(\"Run completed!\\n\\n\");\n //Ty Carpenter Issue #89\n //testsSuccessful variable is now counted in overal statistics of the tests\n \n if (incorrectValues == 0\n && incorrectText == 0\n && incorrectSpacing == 0\n && extraBlankLines == 0\n && missingBlankLines == 0\n && canNotRun == 0\n && executionErrors == 0\n && testsSuccessful == true) {\n // TODO - in debug mode, this gets printed sometimes when it shouldn't\n //Determines ALL TESTS RUN vs ALL TESTS RUN EXACTLY CORRECTLY\n if(nocompInTests==true)\n {\n statusTextArea.append(\"ALL TESTS RAN\\n\");\n results.add(\"ALL TESTS RUN EXACTLY CORRECTLY\\n\");\n }\n else\n {\n statusTextArea.append(\"ALL TESTS EXACTLY CORRECT\\n\");\n results.add(\"ALL TESTS RUN EXACTLY CORRECTLY\\n\");\n }\n } else {\n // TODO - give option to open student's code\n statusTextArea.append(\"Incorrect values ............ \" \n + incorrectValues + \"\\n\");\n results.add(\"Incorrect values ............ \" \n + incorrectValues + \"\\n\");\n statusTextArea.append(\"Lines with errors ........... \" \n + incorrectText + \"\\n\");\n results.add(\"Lines with errors ........... \" \n + incorrectText + \"\\n\");\n statusTextArea.append(\"Bad spacing/capitalization .. \" \n + incorrectSpacing + \"\\n\");\n results.add(\"Bad spacing/capitalization .. \" \n + incorrectSpacing + \"\\n\");\n statusTextArea.append(\"Extra/missing blank lines ... \"\n + (extraBlankLines + missingBlankLines) + \"\\n\");\n results.add(\"Extra/missing blank lines ... \"\n + (extraBlankLines + missingBlankLines) + \"\\n\");\n statusTextArea.append(\"Python errors ............... \" \n + (executionErrors)+\"\\n\");\n results.add(\"Python errors ............... \" \n + (executionErrors)+\"\\n\");\n statusTextArea.append(\"Can't run test .............. \" \n + canNotRun +\"\\n\");\n results.add(\"Can't run test .............. \" \n + canNotRun +\"\\n\");\n statusTextArea.append(\"Code was successful .............. \" \n + testsSuccessful +\"\\n\");\n results.add(\"Code was successful .............. \" \n + testsSuccessful +\"\\n\");\n }\n statusTextArea.append(\"\\n\");\n \n for(int i=0; i<fileNames.size(); i++)\n {\n int passes = testsPassed.get(i);\n int approximate = testsApproximate.get(i);\n int run = testsRun.get(i);\n int nocompRun = nocompTestsRun.get(i);\n \n String dots = \" ................................................\";\n statusTextArea.append( ( fileNames.get(i)+dots).substring(0,41)+\" \");\n results.add(( fileNames.get(i)+dots).substring(0,41)+\" \");\n \n \n if(run == 0 )\n \n {\n statusTextArea.append(\"NO TESTS RUN\\n\");\n results.add(\"NO TESTS RUN\\n\");\n }\n //new results output All Tests Ran (check output)\n else if(nocompRun == run)\n {\n statusTextArea.append(\"All Tests Ran (check output)\\n\");\n results.add(\"All Tests Ran (check output)\\n\");\n }\n else if(passes == run)\n {\n statusTextArea.append(\"All Tests Passed\\n\");\n results.add(\"All Tests Passed\\n\");\n }\n else{\n \n statusTextArea.append( passes + \"/\" + approximate + \"/\" + \n run + \" tests passed/approximate/run\\n\");\n results.add(passes + \"/\" + approximate + \"/\" + \n run + \" tests passed/approximate/run\\n\");\n }\n }\n\n statusTextArea.update(statusTextArea.getGraphics());\n outFile.writeLines(results);\n outFile.close();\n \n }", "public void Run(boolean has_probe){\n hasProbe = has_probe;\n if (hasProbe){\n primerNum = 6;\n } else {\n primerNum = 4;\n }\n\n setUpBases();\n setUpCts();\n\n EnvMaker envMaker = new EnvMaker(pFilename, hasProbe);\n\n primers = envMaker.setPrimers();\n pNames = envMaker.getpNames();\n pLens = envMaker.getpLens();\n\n //Combined primer length - needed for combined mismatch freq\n mLen = primers[0].length() + primers[primerNum /2 -1].length();\n\n envMaker.checkSeqs(sFilename);\n\n buildSeqList(envMaker, envMaker.getSeqCount());\n //End Setup\n\n try {\n outFilename = sFilename + \"_out.txt\";\n\n FileWriter fstreamOut = new FileWriter(outFilename);\n BufferedWriter outOut = new BufferedWriter(fstreamOut);\n\n outFilename = sFilename + \"_cts.txt\";\n\n FileWriter fstreamCT = new FileWriter(outFilename);\n BufferedWriter outCT = new BufferedWriter(fstreamCT);\n\n //outputPrinter printer = new outputPrinter(sFilename, pLens);\n\n //Loop through each sequence in turn\n for (int s = 0; s < compSeqs.length; s++) {\n success = false;\n\n try {\n\n //outFilename=sFilename.substring(0, sFilename.lastIndexOf(\".\"))+\"_\"+s+\"_matrix.txt\";\n outFilename=sFilename+\"_\"+(s+1)+\"_matrix.txt\";\n\n tTx=\"Evaluating seq \"+(s+1)+\" \"+seqNames[s];\n System.out.println(tTx);\n outOut.write(tTx+System.getProperty(\"line.separator\"));\n\n //Clear results - 6 for F/P/R*2, 14 for all the different mutation counts - plus one for Ns now\n scores = new int[compSeqs[s].length()][primerNum][16];\n\n runMismatchDetection(s);\n\n PrintCandidatePos(outOut);\n }//matrix outputFile try\n\n catch (Exception e) {\n e.printStackTrace();\n System.err.println(\"Error: \" + e.getMessage());\n }\n\n if(!success) {\n noHits+=seqNames[s]+\"\\tNOHIT\"+System.getProperty(\"line.separator\");\n }\n }//end of comSeq loop s - evaluate each seq\n\n outOut.close();\n\n outCT.write(noHits);\n outCT.close();\n }//cts outFile try\n catch (Exception e) {\n e.printStackTrace();\n System.err.println(\"Error: \" + e.getMessage());\n }\n System.out.println(\"GoPrime finished...Exiting\");\n }", "public String parseSrc() throws Exception{\n\t\tr = new FileReader(userArg); \r\n\t\tst = new StreamTokenizer(r);\r\n\t\t st.eolIsSignificant(true);\r\n\t\t st.commentChar(46);\r\n\t\t st.whitespaceChars(9, 9);\r\n\t\t st.whitespaceChars(32, 32);\r\n\t\t st.wordChars(39, 39);\r\n\t\t st.wordChars(44, 44);\r\n\t\t \r\n\t\t //first we check for a specified start address\r\n\t\t while (InstructionsRead < 2) {\r\n\t\t \tif (st.sval != null) {\r\n\t\t \t\tInstructionsRead++;\r\n\t\t \t\tif (st.sval.equals(\"START\")) {\r\n\t\t \t\twhile(st.ttype != StreamTokenizer.TT_NUMBER) {\r\n\t\t \t\t\tst.nextToken();\r\n\t\t \t\t}\r\n\t\t \t\tDDnval = st.nval;\r\n\t\t \t\tstartAddress = Integer.parseInt(\"\" + DDnval.intValue(), 16);\r\n\t\t \t\tlocctr = startAddress;\r\n\t\t \t\tsLocctr = Integer.toHexString(locctr.intValue());\r\n\t\t \t\tif (sLocctr.length() == 1) {\r\n\t\t \t\t\tSystem.out.println(\"locctr: 000\" + Integer.toHexString(locctr.intValue()));\r\n\t\t \t\t}\r\n\t\t \t\telse if (sLocctr.length() == 2) {\r\n\t\t \t\t\tSystem.out.println(\"locctr: 00\" + Integer.toHexString(locctr.intValue()));\r\n\t\t \t\t}\r\n\t\t \t\telse if (sLocctr.length() == 3 ) {\r\n\t\t \t\t\tSystem.out.println(\"locctr: 0\" + Integer.toHexString(locctr.intValue()));\r\n\t\t \t\t}\r\n\t\t \t\telse {\r\n\t\t \t\t\tSystem.out.println(\"locctr: \" + Integer.toHexString(locctr.intValue()));\r\n\t\t \t\t}\r\n\t\t \t\t//writer.write(\"\" + locctr); //should write to IF, not working yet 2/15/2011\r\n\t\t \t\tstartSpecified = true;\r\n\t\t \t\t}\r\n\t\t \t\telse if (!st.sval.equals(\"START\") && InstructionsRead < 2) { //this should be the program name, also could allow for label here potentially...\r\n\t\t \t\t\t//this is the name of the program\r\n\t\t \t\t\t//search SYMTAB for label etc. \r\n\t\t \t\t\tname = st.sval;\r\n\t\t \t\t}\r\n\t\t \t}\r\n\t\t st.nextToken();\r\n\t\t }\r\n\t\t if (!startSpecified) {\r\n\t\t \tstartAddress = 0;\r\n\t\t \tlocctr = startAddress;\r\n\t\t }\r\n\t\t startAddress2 = startAddress;\r\n\t\t /*\r\n\t\t ATW = Integer.toHexString(startAddress2.intValue());\r\n\t\t \r\n\t\t for (int i = 0; i<(6-ATW.length()); i++){\r\n\t\t \tmyWriter.write(\"0\");\r\n\t\t }\r\n\t\t myWriter.write(ATW);\r\n\t\t myWriter.newLine();//end of line for now; in ReadIF when this line is read and translated to object code, the program length will be tacked on the end\r\n\t\t */\r\n\t\t \r\n\t\t //Now that startAddress has been established, we move on to the main parsing loop\r\n\t\t while (st.ttype != StreamTokenizer.TT_EOF) { //starts parsing to end of file\r\n\t\t \t//System.out.println(\"Stuck in eof\");\r\n\t\t \t//iLocctr = locctr.intValue();\r\n\t\t \tinstFound = false;\r\n\t\t \topcodeDone = false;\r\n\t\t \tlabelDone = false;\r\n\t\t \tmoveOn = true;\r\n\t\t \t//constantCaseW = false;\r\n\t\t \tconstantCaseB = false;\r\n\t\t \txfound = false;\r\n\t\t \tcfound = false;\r\n\t\t \t\r\n\t\t \tInstructionsRead = 0; //init InsRead to 0 at the start of each line\r\n\t\t \tSystem.out.println(\"new line\");\r\n\t\t \tSystem.out.println(\"Ins read: \" + InstructionsRead);\r\n\t\t \tsLocctr = Integer.toHexString(locctr.intValue());\r\n\t \t\tif (sLocctr.length() == 1) {\r\n\t \t\t\tSystem.out.println(\"locctr: 000\" + Integer.toHexString(locctr.intValue()));\r\n\t \t\t}\r\n\t \t\telse if (sLocctr.length() == 2) {\r\n\t \t\t\tSystem.out.println(\"locctr: 00\" + Integer.toHexString(locctr.intValue()));\r\n\t \t\t}\r\n\t \t\telse if (sLocctr.length() == 3 ) {\r\n\t \t\t\tSystem.out.println(\"locctr: 0\" + Integer.toHexString(locctr.intValue()));\r\n\t \t\t}\r\n\t \t\telse {\r\n\t \t\t\tSystem.out.println(\"locctr: \" + Integer.toHexString(locctr.intValue()));\r\n\t \t\t}\r\n\t\t \tif (foundEnd()) {\r\n\t\t \t\tbreak;\r\n\t\t \t}\r\n\t\t \twhile (st.ttype != StreamTokenizer.TT_EOL) {//breaks up parsing by lines so that InstructionsRead will be a useful count\r\n\t\t \t\t\r\n\t\t \t\tmoveOn = true;\r\n\t\t \t\tif (st.ttype == StreamTokenizer.TT_WORD) { \r\n\t\t \t\t\tInstructionsRead++;\r\n\t\t \t\t\tSystem.out.println(st.sval);\r\n\t\t \t\t\tSystem.out.println(\"Instructions Read: \" + InstructionsRead);\r\n\t\t \t\t\tif (foundEnd()) {\r\n\t\t \t\t\t\tbreak;\r\n\t\t \t\t\t}\r\n\t\t \t\t\t/*\r\n\t\t \t\t\t * The whole instructinsread control architecture doesn't quite work, because\r\n\t\t \t\t\t * the ST doesn't count the whitespace it reads in. This is by design because\r\n\t\t \t\t\t * the prof specified that whitespace is non-regulated and thus we cannot\r\n\t\t \t\t\t * predict exactly how many instances of char dec value 32 (space) will appear\r\n\t\t \t\t\t * before and/or between the label/instruction/operand 'fields'. \r\n\t\t \t\t\t * \r\n\t\t \t\t\t * What we could try alternatively is to structure the control around'\r\n\t\t \t\t\t * the optab, since it it static and populated pre-runtime. The schema might\r\n\t\t \t\t\t * go something like this: first convert whatever the sval or nval is to string.\r\n\t\t \t\t\t * Then call the optab.searchOpcode method with the resultant string as the input\r\n\t\t \t\t\t * parameter. If the string is in optab then it is an instruction and the ST is in the\r\n\t\t \t\t\t * instruction 'field' and boolean foundInst is set to true. If it is not in optab AND a boolean variable foundInst which resets to\r\n\t\t \t\t\t * false at the beginning of each new line is still false, then it is a label being declared in the label 'field'\r\n\t\t \t\t\t * If it is not in the optab AND foundInst is true, then the ST is at the operand 'field'.\r\n\t\t \t\t\t * This should work even if the prof has a crappy line with just a label declaration and no instruction or operand, because there\r\n\t\t \t\t\t * definitely cannot be an operand without an instruction...\r\n\t\t \t\t\t */\r\n\t\t \t\t\tif (instFound){\r\n\t\t \t\t\t\tprocessOperand(st);\r\n\t\t \t\t\t}\r\n\t\t \t\t\tif (!instFound) {//this is either label or instruction field\r\n\t\t \t\t\t\t//before anything, search optab to see if this might be the opcode\r\n\t\t \t\t\t\t//if it is an opcode, send it to the opcode processing function\r\n\t\t \t\t\t\tif (st.sval.equals(\"WORD\") || st.sval.equals(\"BYTE\")){//these are the directives... not technically instructions, but they go in the instruction field\r\n\t\t \t\t\t\t\tresCount = 0;\r\n\t\t \t\t\t\t\tif (st.sval.equals(\"WORD\")){\r\n\t\t \t\t\t\t\t\tif (hexDigitCount >= 55){\r\n\t\t \t\t\t\t\t\t\tnewTHandle();\r\n\t\t \t\t\t\t\t\t}\r\n\t\t \t\t\t\t\t\thexDigitCount += 6;\r\n\t\t \t\t\t\t\t}\r\n\t\t \t\t\t\t\tif (st.sval.equals(\"BYTE\")){\r\n\t\t \t\t\t\t\t\tconstantCaseB = true;\r\n\t\t \t\t\t\t\t}\r\n\t\t \t\t\t\t\tinstFound = true;\r\n\t\t \t\t\t\t\tprocessOpcode(st);\r\n\t\t \t\t\t\t}\r\n\t\t \t\t\t\telse if (st.sval.equals(\"RESW\") || st.sval.equals(\"RESB\")){//these are the directives... not technically instructions, but they go in the instruction field\r\n\t\t \t\t\t\t\tresCount++;\r\n\t\t \t\t\t\t\tnewTHandle();\r\n\t\t \t\t\t\t\tinstFound = true;\r\n\t\t \t\t\t\t\tprocessOpcode(st);\r\n\t\t \t\t\t\t}\r\n\t\t \t\t\t\telse if (optab.searchOpcode(st.sval)) {//if true this is the instruction\r\n\t\t \t\t\t\t\tresCount = 0;\r\n\t\t \t\t\t\t\tif (hexDigitCount >= 55){\r\n\t \t\t\t\t\t\t\tnewTHandle();\r\n\t \t\t\t\t\t\t}\r\n\t\t \t\t\t\t\thexDigitCount += 6;\r\n\t\t \t\t\t\t\tinstFound = true;\r\n\t\t \t\t\t\t\tprocessOpcode(st);\r\n\t\t \t\t\t\t\t//InstructionsRead++;\r\n\t\t \t\t\t\t}\r\n\t\t \t\t\t\telse {//otherwise this is the label\r\n\t\t \t\t\t\t\tprocessLabel(st);\r\n\t\t \t\t\t\t}\r\n\t\t \t\t\t\t\r\n\t\t \t\t\t\t\r\n\t\t \t\t\t\t\r\n\t\t \t\t\t}\r\n\t\t \t\t\t//else{ //if instFound is true, this must be the operand field\r\n\t\t \t\t\t\t\r\n\t\t \t\t\t\t//processOperand(st);\r\n\t\t \t\t\t//}\r\n\t\t \t\t\t//if (InstructionsRead == 3) {//this is the operand field\r\n\t\t \t\t\t\t//processOperand();\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\tif (st.ttype == StreamTokenizer.TT_NUMBER) {\r\n\t\t \t\t\tInstructionsRead++;\r\n\t\t \t\t\tif (!instFound) {//this is either label or instruction field\r\n\t\t \t\t\t\t//before anything, search optab to see if this might be the opcode\r\n\t\t \t\t\t\t//if it is an opcode, send it to the opcode processing function\r\n\t\t \t\t\t\tif (NtoString(st.nval).equals(\"WORD\") || NtoString(st.nval).equals(\"BYTE\")){//these are the directives... not technically instructions, but they go in the instruction field\r\n\t\t \t\t\t\t\tresCount = 0;\r\n\t\t \t\t\t\t\tif (NtoString(st.nval).equals(\"WORD\")){\r\n\t\t \t\t\t\t\t\tif (hexDigitCount >= 55){\r\n\t\t \t\t\t\t\t\t\tnewTHandle();\r\n\t\t \t\t\t\t\t\t}\r\n\t\t \t\t\t\t\t\thexDigitCount += 6;\r\n\t\t \t\t\t\t\t}\r\n\t\t \t\t\t\t\tif (NtoString(st.nval).equals(\"BYTE\")){\r\n\t\t \t\t\t\t\t\tconstantCaseB = true;\r\n\t\t \t\t\t\t\t}\r\n\t\t \t\t\t\t\tinstFound = true;\r\n\t\t \t\t\t\t\tprocessOpcodeN(st);\r\n\t\t \t\t\t\t}\r\n\t\t \t\t\t\tif (NtoString(st.nval).equals(\"RESW\") || NtoString(st.nval).equals(\"RESB\")){//these are the directives... not technically instructions, but they go in the instruction field\r\n\t\t \t\t\t\t\tresCount++;\r\n\t\t \t\t\t\t\tnewTHandle();\r\n\t\t \t\t\t\t\tinstFound = true;\r\n\t\t \t\t\t\t\tprocessOpcodeN(st);\r\n\t\t \t\t\t\t}\r\n\t\t \t\t\t\telse if (optab.searchOpcode(\"\" + st.nval)) {\r\n\t\t \t\t\t\t\tresCount = 0;\r\n\t\t \t\t\t\t\tif (hexDigitCount >= 55){\r\n\t \t\t\t\t\t\t\tnewTHandle();\r\n\t \t\t\t\t\t\t}\r\n\t\t \t\t\t\t\thexDigitCount += 6;\r\n\t\t \t\t\t\t\tinstFound = true;\r\n\t\t \t\t\t\t\tprocessOpcodeN(st);\r\n\t\t \t\t\t\t\t//InstructionsRead++;\r\n\t\t \t\t\t\t}\r\n\t\t \t\t\t\telse {\r\n\t\t \t\t\t\t\tprocessLabelN(st);\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\telse{ //this is the operand field\r\n\t\t \t\t\t\tprocessOperandN(st);\r\n\t\t \t\t\t}\r\n\t\t \t\t}\r\n\t\t \t\t\r\n\t\t \tif (moveOn){\r\n\t\t \tst.nextToken(); //read next token in current line\r\n\t\t \t}\r\n\t\t \t}\r\n\t\t \t////write line just finished to IF eventually\r\n\t\t if (moveOn){\r\n\t\t st.nextToken(); //read first token of next line\t\r\n\t\t }\r\n\t\t }\r\n\t\t programLength = (locctr - startAddress); \r\n\t\t programLength2 = programLength;\r\n\t\t System.out.println(\" !!prgmlngth2:\" + Integer.toHexString(programLength2.intValue()));\r\n\t\t /*\r\n\t\t sProgramLength = Integer.toHexString(programLength2.intValue());\r\n\t\t for (int i = 0; i<(6-sProgramLength.length()); i++){\r\n\t\t \tmyWriter.write(\"0\");\r\n\t\t }\r\n\t\t myWriter.write(sProgramLength);\r\n\t\t myWriter.close();\r\n\t\t ////myWriter.close();\r\n\t\t \r\n\t\t */\r\n\t\t r.close();\r\n\t\t System.out.println(\"?????!?!?!?!?ALPHA?!?!?!?!?!??!?!?!\");\r\n\t\t if (hexDigitCount/2 < 16){\r\n\t\t \tlineLength.add(\"0\" + Integer.toHexString(hexDigitCount/2));\r\n\t\t }\r\n\t\t else{\r\n\t\t lineLength.add(Integer.toHexString(hexDigitCount/2));\r\n\t\t }\r\n\t\t for (int i = 0; i<lineLength.size(); i++){\r\n\t\t System.out.println(lineLength.get(i));\r\n\t\t }\r\n\t\t // System.out.println(hexDigitCount);\r\n\t\t ReadIF pass2 = new ReadIF(this.optab,this.symtab,this.startAddress2,this.programLength2,this.name,this.lineLength,this.userArg);\r\n\t\t return st.sval;\r\n\t\t \r\n\t\t\r\n\r\n\t}", "public void Assemble(InputStream input) throws InvalidInstructionException, LabelNotResolvedException, ProgramSizeException {\r\n // Reset internal state\r\n codeSection = null;\r\n codeSectionList.clear();\r\n codeLine = 0;\r\n codeInstruction = new String();\r\n Emitter emitter = new Emitter();\r\n codeEmitter.setEmitter(emitter);\r\n // Instantiate the text reader\r\n reader = new TextReader(input);\r\n\r\n // REGEX matcher\r\n Matcher m = null;\r\n\r\n // Pass 1: instantiate list of instructions\r\n for(codeLine = 1;; codeLine++) {\r\n // Read single line from stream\r\n try { codeInstruction = reader.readLine(); }\r\n // RuntimeException at EOF\r\n catch(RuntimeException e) { break; }\r\n\r\n // Remove any comments\r\n int comment = codeInstruction.indexOf(COMMENT_CHAR);\r\n if(comment >= 0) codeInstruction = codeInstruction.substring(0, comment);\r\n\r\n // Try parsing it as a section\r\n m = patternSection.matcher(codeInstruction);\r\n if(m.matches()) { enterSection(m.group(1)); continue; }\r\n\r\n // Try parsing it as an instruction\r\n m = patternInstruction.matcher(codeInstruction);\r\n if(m.matches()) {\r\n // If there is no section bail out\r\n if(currentSection() == null && (m.group(1) != null || m.group(2) != null))\r\n invalidInstruction(\"Instruction and/or label outside of a section!\");\r\n\r\n // See if there is a label\r\n if(m.group(1) != null) addLabel(m.group(1));\r\n // See if there is an instruction\r\n if(m.group(2) != null) addInstruction(m.group(2), parseOperands(m.group(3)));\r\n }\r\n }\r\n\r\n // Add section for text constants\r\n Section textConst = enterSection(\".textconst\");\r\n emitter.setDataSection(textConst);\r\n\r\n // Pass 2: layout sections\r\n int baseAddress = 0;\r\n for(Section section : codeSectionList) {\r\n section.setAddress(baseAddress);\r\n baseAddress += section.getSize();\r\n }\r\n\r\n // Pass 3: resolve label operands\r\n for(Section section : codeSectionList)\r\n for(Instruction instr : section.getInstructions())\r\n for(Operand op : instr.getOperands())\r\n if(op instanceof LabelOperand) {\r\n LabelOperand lop = (LabelOperand) op;\r\n Integer addr = getLabel(lop.getLabel());\r\n if(addr != null) lop.setAddress(addr);\r\n }\r\n\r\n // Pass 4: generate machine code\r\n for(Section section : codeSectionList)\r\n for(Instruction instr : section.getInstructions())\r\n processInstruction(instr);\r\n\r\n // Check final program size, we need at least one byte for the stack\r\n if(getSize() > Machine.memorySize - 1)\r\n throw new ProgramSizeException(\"size of program, \" + getSize() + \" words, exceeds machine maximum of \" + (Machine.memorySize - 1));\r\n }", "private static int compile(String filename) throws Exception {\n\t\tInputStream inp = new BufferedInputStream(new FileInputStream(filename));\n\t\tParser parser = new Parser(inp);\n\t\tjava_cup.runtime.Symbol parseTree = null;\n\t\ttry {\n\t\t\tparseTree = parser.parse();\n\t\t} catch (Throwable e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new Error(e.toString());\n\t\t} finally {\n\t\t\tinp.close();\n\t\t}\n\t\t\n\t\tDecls tree = (Decls) parseTree.value;\n\t\t\n\t\tSemantic semant = new Semantic();\n\t\tsemant.checkProg(tree);\n\t\tif (semant.hasError()) {\n\t\t\tsemant.printErrors();\n\t\t\treturn 1;\n\t\t} else {\n\t\t\t//System.out.println(\"Semant: OK\");\n\t\t\tLabel.fcount = 0;\n\t\t\t\n\t\t\tLabel topLabel = new Label(\"main\");\n\t\t\tLevel topLevel = new Level();\n\t\t\tTranslate translate = new Translate();\n\t\t\ttranslate.transProg(tree, topLabel, topLevel);\n\t\t\tList<CompileUnit> units = translate.getUnits();\n\t\t\t\n\t\t\t//=============================== Optimize =================================\n\t\t\tAnalyzer analyzer = new Analyzer();\n\t\t\tLabelEliminator le = new LabelEliminator();\n\t\t\t\n\t\t\tfor (CompileUnit u : units) {\n\t\t\t\t//System.out.println(u.getQuads().get(0));\n\t\t\t\tu.replaceBranches(analyzer);\n\t\t\t\tu.findBasicBlocks(analyzer);\n\t\t\t\tu.findLiveness(analyzer);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tfor (CompileUnit u: units) {\n\t\t\t\tList<Quad> qs = u.getQuads();\n\t\t\t\tfor (Quad q: qs) {\n\t\t\t\t\tif (q instanceof MoveL)\n\t\t\t\t\t\t((MoveL)q).src.used = true;\n\t\t\t\t}\n\t\t\t\tGotoCompression.process(u);\n\t\t\t}\n\t\t\t\n\t\t\tLocalCopyPropagation lcp = new LocalCopyPropagation();\n\t\t\tDeadCodeEliminator dce = new DeadCodeEliminator();\n\t\t\tAvailableExpressionAnalyzer aea = new AvailableExpressionAnalyzer();\n\t\t\tCommonExpressionEliminator cse = new CommonExpressionEliminator();\n\t\t\tfor (CompileUnit u : units) {\n\t\t\t\tList<Quad> oldQuads = new LinkedList<Quad>();\n\t\t\t\t//int cnt = 0;\n\t\t\t\tdo {\n\t\t\t\t\toldQuads.clear();\n\t\t\t\t\toldQuads.addAll(u.getQuads());\n\t\t\t\t\t\n\t\t\t\t\tdo {\n\t\t\t\t\t\tu.findBasicBlocks(analyzer);\n\t\t\t\t\t\taea.analyze(u.getBasicBlocks());\n\t\t\t\t\t\t//System.out.println(++cnt);\n\t\t\t\t\t}\n\t\t\t\t\twhile (cse.eliminate(u));\n\n\t\t\t\t\tfor (BasicBlock bb : u.getBasicBlocks()) {\n\t\t\t\t\t\tlcp.process(bb);\n\t\t\t\t\t}\n\n\t\t\t\t\tu.findLiveness(analyzer);\n\t\t\t\t\tdce.process(u);\n\t\t\t\t\tu.findBasicBlocks(analyzer);\n\t\t\t\t\tu.findLiveness(analyzer);\n\t\t\t\t\twhile (le.eliminate(u));\n\t\t\t\t}\n\t\t\t\twhile (!u.getQuads().equals(oldQuads));\n\t\t\t}\n\t\t\t\n\t\t\t//========================================================================\n\t\t\tCodegen codegen = new Codegen();\n\t\t\tcodegen.gen(new Assem(\".data\"));\n\t\t\tcodegen.gen(new Assem(\".align 2\"));\n\t\t\tcodegen.gen(new Assem(\".globl args\"));\n\t\t\tcodegen.gen(new Assem(\"!args:\\t.space %\", (Translate.maxArgc + 1) * 4));\n\t\t\tcodegen.gen(new Assem(\".align 2\"));\n\t\t\tfor (DataFrag df: translate.getDataFrags())\n\t\t\t\tif (df.label.used)\n\t\t\t\t\tcodegen.gen(df.gen());\n\t\t\t\n\t\t\tcodegen.gen(new Assem(\".text\"));\n\t\t\tcodegen.gen(new Assem(\".align 2\"));\n\t\t\tcodegen.gen(new Assem(\".globl main\"));\n\t\t\t\n\t\t\tfor (CompileUnit u: units)\n\t\t\t\tcodegen.gen(u, new LinearScan(u, analyzer));/**/\n\n\t\t\t//System.out.println((System.nanoTime() - start) / 1000000 + \" ms\");\n\t\t\t//PrintStream out = System.out;\n\t\t\tPrintStream out = new PrintStream(new BufferedOutputStream(new FileOutputStream(\"assem.s\")));\n\t\t\tout.println(\"########################################\");\n\t\t\tout.println(\"############### CODE GEN ###############\");\n\t\t\tout.println(\"########################################\");\n\t\t\tcodegen.flush(out);\n\t\t\tout.println(\"########################################\");\n\t\t\tout.println(\"############# RUNTIME CODE #############\");\n\t\t\tout.println(\"########################################\");\n\t\t\t//Scanner scanner = new Scanner(new FileInputStream(new File(\"runtime.s\")));\n\t\t\t//while (scanner.hasNextLine()) {\n\t\t\t//\tout.println(scanner.nextLine());\n\t\t\t//}\n\t\t\t//scanner.close();\n\t\t\tout.close();\n\t\t\treturn 0;\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tString fopIdenIfer=PathConstanct.PATH_PROJECT_TRAIN_TEST_NAME;\n\t\tString fopStatType=PathConstanct.PATH_PROJECT_STATTYPE_DATA;\n\t\t\n\t\tString[] allProjectCurrent=FileIO.readStringFromFile(fopIdenIfer+\"all.project.txt\").split(\"\\n\");\n\t\tString[] arrStatType=FileIO.readStringFromFile(fopStatType+\"allProjectName.txt\").split(\"\\n\");\n\t\tint countAppear=0;\n\t\t\n\t\tHashSet<String> setST=new LinkedHashSet<String>();\n\t\tfor(int i=0;i<arrStatType.length;i++){\n\t\t\tsetST.add(arrStatType[i]);\n\t\t\n\t\t}\n\t\t\n\t\tHashSet<String> setNLPLInference=new LinkedHashSet<String>();\n\t\tfor(int i=0;i<allProjectCurrent.length;i++){\n\t\t\tsetNLPLInference.add(allProjectCurrent[i]);\n\t\t\n\t\t}\n\t\t\n\t\tStringBuilder sbResult=new StringBuilder();\n\t\tfor(int i=0;i<allProjectCurrent.length;i++){\n\t\t\tboolean exist=setST.contains(allProjectCurrent[i]);\n\t\t\tif(exist){\n\t\t\t\tcountAppear++;\n\t\t\t}\n\t\t\tsbResult.append(allProjectCurrent[i]+\"\\t\"+exist+\"\\n\");\n\t\t}\n\t\t\n\t\tint countInStatType=0;\n\t\tStringBuilder sbR2=new StringBuilder();\n\t\tfor(int i=0;i<arrStatType.length;i++){\n\t\t\tboolean exist=setNLPLInference.contains(arrStatType[i]);\n\t\t\tif(exist){\n\t\t\t\tcountInStatType++;\n\t\t\t}\n\t\t\tsbR2.append(arrStatType[i]+\"\\t\"+exist+\"\\n\");\n\t\t}\n\t\t\n\t\t\n\t\tFileIO.writeStringToFile(sbResult.toString(), fopIdenIfer+\"overlapInNLPLInference.txt\");\n\t\tFileIO.writeStringToFile(sbR2.toString(), fopIdenIfer+\"overlapInST.txt\");\n\t\tSystem.out.println(\"count overlap in NLPL: \"+countAppear);\n\t\tSystem.out.println(\"count overlap in StatType: \"+countInStatType);\n\t\t\n\t\t\n\t}", "private void scan(String filename){\n\t\tverifyAutomatons();\n\t\tsymbolTable = new SymbolTable();\n\t\tprogramInternalForm = new ProgramInternalForm();\n\n\t\tString[] tokensVal = getProgramFromFile(filename);\n\n\t\tint i = 0;\n\t\twhile (i < tokensVal.length) {\n\t\t\tverifySingleTokens(tokensVal[i]);\n\t\t\ti++;\n\t\t}\n\t}", "void format01(String line, int lineCount) {\n\n // only 1 survey is allowed per load file - max of 9 code 01 lines\n code01Count++;\n if (prevCode > 1) {\n outputError((lineCount-1) + \" - Fatal - \" +\n \"More than 1 survey in data file : \" + code01Count);\n } // if (prevCode != 1)\n\n // get the data from the line\n java.util.StringTokenizer t = new java.util.StringTokenizer(line, \" \");\n String dummy = t.nextToken(); // get 'rid' of the code\n int subCode = 0;\n if (t.hasMoreTokens()) subCode = toInteger(t.nextToken());\n switch (subCode) {\n //01 a2 format code Always '01' n/a\n //02 a1 format subCode Always '1' n/a\n //03 a9 survey_id e.g. '1997/0001' survey\n //04 a10 planam Platform name inventory\n case 1: if (t.hasMoreTokens()) survey.setSurveyId(t.nextToken());\n if (t.hasMoreTokens()) {\n dummy = t.nextToken(); //ub08\n while (t.hasMoreTokens()) dummy += \" \" + t.nextToken(); //ub08\n platformName = dummy;\n if (dummy.length() > 10) dummy = dummy.substring(0, 10);//ub06\n survey.setPlanam(dummy); //ub06\n if (dbg) System.out.println(\"planam = \" + platformName + \" \" + survey.getPlanam(\"\"));\n } // if (t.hasMoreTokens())\n break;\n //01 a2 format code Always '01' n/a\n //02 a1 format subCode Always '2' n/a\n //03 a15 expnam Expedition name, e.g. 'AJAXL2' survey\n case 2: if (t.hasMoreTokens()) {\n dummy = t.nextToken(); //ub08\n while (t.hasMoreTokens()) dummy += \" \" + t.nextToken(); //ub08\n expeditionName = dummy;\n if (dummy.length() > 10) dummy = dummy.substring(0, 10);//ub06\n survey.setExpnam(dummy); //ub06\n if (dbg) System.out.println(\"expnam = \" + expeditionName + \" \" + survey.getExpnam(\"\"));\n } // if (t.hasMoreTokens())\n break;\n //01 a2 format code Always '01' n/a\n //02 a1 format subCode Always '3' n/a\n //03 a3 institute 3-letter Institute code, e.g. 'RIO' survey\n //04 a28 prjnam project name, e.g. 'HEAVYMETAL' survey\n case 3: survey.setInstitute(t.nextToken());\n if (t.hasMoreTokens()) {\n dummy = t.nextToken(); //ub08\n while (t.hasMoreTokens()) dummy += \" \" + t.nextToken(); //ub08\n projectName = dummy;\n if (dummy.length() > 10) dummy = dummy.substring(0, 10);//ub06\n survey.setPrjnam(dummy); //ub06\n if (dbg) System.out.println(\"prjnam = \" + projectName + \" \" + survey.getPrjnam(\"\"));\n } // if (t.hasMoreTokens())\n break;\n //01 a2 format code Always '01' n/a\n //02 a1 format subCode Always '4' n/a\n //03 a10 domain e.g. 'SURFZONE', 'DEEPSEA' survey\n // domain corrected by user in form\n //case 4: inventory.setDomain(toString(line.substring(5)));\n //case 4: if (!loadFlag) inventory.setDomain(toString(line.substring(5)));\n case 4: //if (!loadFlag) {\n if (t.hasMoreTokens()) {\n dummy = t.nextToken(); //ub08\n while (t.hasMoreTokens()) dummy += \" \" + t.nextToken(); //ub08\n if (dummy.length() > 10) dummy = dummy.substring(0, 10);//ub06\n inventory.setDomain(dummy); //ub06\n } // if (t.hasMoreTokens())\n //} // if (!loadFlag)\n break;\n //01 a2 format code Always '01' n/a\n //02 a1 format subCode Always '5' n/a\n //03 a10 arenam Area name, e.g. 'AGULHAS BK' survey\n // area name corrected by user in form\n //case 5: inventory.setAreaname(toString(line.substring(5)));\n //case 5: if (!loadFlag) inventory.setAreaname(toString(line.substring(5)));\n case 5: //if (!loadFlag) {\n if (t.hasMoreTokens()) {\n dummy = t.nextToken(); //ub08\n while (t.hasMoreTokens()) dummy += \" \" + t.nextToken(); //ub08\n if (dummy.length() > 20) dummy = dummy.substring(0, 20);//ub06\n inventory.setAreaname(dummy); //ub06\n } // if (t.hasMoreTokens())\n //} // if (!loadFlag)\n break;\n //01 a2 format code Always '01' n/a\n //02 a1 format subCode Always '6' n/a\n //04 a10 insitute e.g. 'World Ocean database' inventory\n case 6: //if (!loadFlag) { //ub03\n if (t.hasMoreTokens()) { //ub03\n instituteName = t.nextToken(); //ub03\n while (t.hasMoreTokens()) //ub03\n instituteName += \" \" + t.nextToken(); //ub03\n } // if (t.hasMoreTokens()) //ub03\n //} // if (!loadFlag) //ub03\n break;\n //01 a2 format code Always '01' n/a\n //02 a1 format subCode Always '7' n/a\n //04 a10 chief scientist inventory\n case 7: //if (!loadFlag) { //ub03\n if (t.hasMoreTokens()) { //ub03\n chiefScientist = t.nextToken(); //ub03\n while (t.hasMoreTokens()) //ub03\n chiefScientist += \" \" + t.nextToken(); //ub03\n } // if (t.hasMoreTokens()) //ub03\n //} // if (!loadFlag) //ub03\n break;\n //01 a2 format code Always '01' n/a\n //02 a1 format subCode Always '8' n/a\n //04 a10 country e.g. 'Germany' inventory\n case 8: //if (!loadFlag) { //ub03\n if (t.hasMoreTokens()) { //ub03\n countryName = t.nextToken(); //ub03\n while (t.hasMoreTokens()) //ub03\n countryName += \" \" + t.nextToken(); //ub03\n } // if (t.hasMoreTokens()) //ub03\n //} // if (!loadFlag) //ub03\n break;\n //01 a2 format code Always '01' n/a\n //02 a1 format subCode Always '8' n/a\n //04 a10 submitting scientist load log\n case 9: //if (!loadFlag) { //ub03\n if (t.hasMoreTokens()) { //ub03\n submitScientist = t.nextToken(); //ub03\n while (t.hasMoreTokens()) //ub03\n submitScientist += \" \" + t.nextToken(); //ub03\n } // if (t.hasMoreTokens()) //ub03\n //!} // if (!loadFlag) //ub03\n break;\n } // switch (subCode)\n\n //survey.setSurveyId(toString(line.substring(2,11)));\n //survey.setPlanam(toString(line.substring(11,21)));\n //survey.setExpnam(toString(line.substring(21,31)));\n //survey.setInstitute(toString(line.substring(31,34)));\n //survey.setPrjnam(toString(line.substring(34,44)));\n //if (!loadFlag) {\n // inventory.setAreaname(toString(line.substring(44,54))); // use as default to show on screen\n // inventory.setDomain(toString(line.substring(54,64))); // use as default to show on screen\n //} // if (!loadFlag)\n\n if (dbg) System.out.println(\"<br>format01: line = \" + line);\n if (dbg) System.out.println(\"<br>format01: subCode = \" + subCode);\n\n }", "public static void main(String[] args){\r\n\tif (args.length>0){\r\n\t for (String arg : args){\r\n\t\tFile f = new File(arg);\r\n\t\tif (f.exists()){\r\n\t\t System.out.println(\"Parsing '\"+ f+\"'\");\r\n\t\t RobotProgramNode prog = parseFile(f);\r\n\t\t System.out.println(\"Parsing completed \");\r\n\t\t if (prog!=null){\r\n\t\t\tSystem.out.println(\"================\\nProgram:\");\r\n\t\t\tSystem.out.println(prog);}\r\n\t\t System.out.println(\"=================\");\r\n\t\t}\r\n\t\telse {System.out.println(\"Can't find file '\"+f+\"'\");}\r\n\t }\r\n\t} else {\r\n\t while (true){\r\n\t\tJFileChooser chooser = new JFileChooser(\".\");//System.getProperty(\"user.dir\"));\r\n\t\tint res = chooser.showOpenDialog(null);\r\n\t\tif(res != JFileChooser.APPROVE_OPTION){ break;}\r\n\t\tRobotProgramNode prog = parseFile(chooser.getSelectedFile());\r\n\t\tSystem.out.println(\"Parsing completed\");\r\n\t\tif (prog!=null){\r\n\t\t System.out.println(\"Program: \\n\"+prog);\r\n\t\t}\r\n\t\tSystem.out.println(\"=================\");\r\n\t }\r\n\t}\r\n\tSystem.out.println(\"Done\");\r\n }", "public static void main(String[] args) throws IOException {\n\t\tString EPGAscaffoldPath = args[0];\n\t\tString MisAssemblyContigPath = args[1];\n\t\tString ContigWritePath = args[2];\n\t\t//Load1.\n\t\tint LinesEPGAscaffold = CommonClass.getFileLines(EPGAscaffoldPath) / 2;\n\t\tString EPGAscaffoldArray[] = new String[LinesEPGAscaffold];\n\t\tint Realsize_EPGAscaff = CommonClass.FastaToArray(EPGAscaffoldPath, EPGAscaffoldArray);\n\t\t//Load2.\n\t\tint LinesMisassembly = CommonClass.getFileLines(MisAssemblyContigPath) / 2;\n\t\tint MisassemblyArray[] = new int[LinesEPGAscaffold+LinesMisassembly];\n\t\tint Realsize_Misassembly = CommonClass.GetFastaHead(MisAssemblyContigPath, MisassemblyArray);\n\t\t//Mark.\n\t\tfor (int g = 0; g < Realsize_EPGAscaff; g++) {\n\t\t\tfor (int f = 0; f < Realsize_Misassembly; f++) {\n\t\t\t\tif (g == MisassemblyArray[f]) {\n\t\t\t\t\tEPGAscaffoldArray[g] = \"#\" + EPGAscaffoldArray[g];\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//Write.\n\t\tfor (int w = 0; w < Realsize_EPGAscaff; w++) {\n\t\t\tif (EPGAscaffoldArray[w].charAt(0) == '#') {\n\t\t\t\tFileWriter writer = new FileWriter(ContigWritePath + \"/Misassembly_EPGAcontigs.fa\", true);\n\t\t\t\twriter.write(\">\" + (w) + \"\\n\"\n\t\t\t\t\t\t+ EPGAscaffoldArray[w].substring(1, EPGAscaffoldArray[w].length()) + \"\\n\");\n\t\t\t\twriter.close();\n\t\t\t} else {\n\t\t\t\tFileWriter writer = new FileWriter(ContigWritePath + \"/ErrorFree_EPGAcontigs.fa\", true);\n\t\t\t\twriter.write(\">\" + (w) + \"\\n\" + EPGAscaffoldArray[w] + \"\\n\");\n\t\t\t\twriter.close();\n\t\t\t}\n\t\t}\n\t\t//Free.\n\t\tEPGAscaffoldArray=null;\n\t\tMisassemblyArray=null;\n\t}", "public List<AssertionFailure> go() throws IOException,\r\n RecognitionException, CheckerExpception, InterruptedException,\r\n SMTSolverTimeoutException, UnknownResultException {\n Program p = SimpleCParserUtil.createAST(inputFile);\r\n\r\n // Add blocks to make things simpler\r\n // E.g. if(c) stmt; becomes if(c) {stmt;} else {}\r\n p = (Program) new MakeBlockVisitor().visit(p);\r\n\r\n // Do basic checks\r\n // E.g. Variables declared before use\r\n // no duplicate local variables\r\n Checker checker = new Checker();\r\n boolean success = checker.check(p);\r\n if (!success) {\r\n throw new CheckerExpception(checker.getCheckerError());\r\n }\r\n\r\n // Checks whether abstract loop abstraction is turned on\r\n if (clArgs.abstractLoops) {\r\n p = (Program) new LoopAbstractionVisitor().visit(p);\r\n } else {\r\n p = (Program) new LoopUnwinderVisitor(clArgs.unwindingAssertions,\r\n clArgs.unwindDepth).visit(p);\r\n }\r\n\r\n // Carries out predication on the program\r\n p = (Program) new PredicationVisitor().visit(p);\r\n\r\n // Carries out ssa renaming on the program\r\n p = (Program) new SSAVisitor().visit(p);\r\n\r\n // Output the program as text after being transformed (for debugging)\r\n // Comment the code below to hide the output\r\n String programText = new PrinterVisitor().visit(p);\r\n System.out.println(programText);\r\n\r\n // Collect the constraint expressions and variable names\r\n CollectConstraintsVisitor collectConstraintsVisitor = new CollectConstraintsVisitor();\r\n collectConstraintsVisitor.visit(p);\r\n\r\n // Stores the assertion failures\r\n List<AssertionFailure> assertionFailures = new ArrayList<AssertionFailure>();\r\n\r\n // Stop here if there are no assertions (properties) to check\r\n if (collectConstraintsVisitor.propertyExprs.size() == 0) {\r\n System.out.println(\"No asserts! Stopping.\");\r\n return assertionFailures;\r\n }\r\n\r\n // Convert constraints to SMTLIB string\r\n SMTLIBConverter converter = new SMTLIBConverter(collectConstraintsVisitor.variableNames,\r\n collectConstraintsVisitor.transitionExprs, collectConstraintsVisitor.propertyExprs);\r\n String smtQuery = converter.getQuery();\r\n\r\n // Submit query to SMT solver\r\n SMTQuery query = new SMTQuery(smtQuery, clArgs.timeout * 1000);\r\n String queryResult = query.go();\r\n if (queryResult == null) {\r\n throw new SMTSolverTimeoutException(\"Timeout!\");\r\n }\r\n System.out.println(\"--SMT COMPLETE--\");\r\n\r\n // Report the assertions that can be violated\r\n handleAssertionFailures(assertionFailures, collectConstraintsVisitor, queryResult);\r\n\r\n return assertionFailures;\r\n }", "private void checkRuntimeFail(String filename, int... input){\n\t\tString inputString = createInput(input);\n\t\t\n\t\tProgram prog;\n\t\tSimulator sim = null;\n\t\tMachine vm = null;\n\t\tPipedInputStream in = null;\n\t\ttry {\n\t\t\tprog = compiler.compile(new File(BASE_DIR, filename + EXT));\n\t\t\tvm = new Machine();\n\t\t\tsim = new Simulator(prog, vm);\n\t\t\tvm.clear();\n\t\t\tsim.setIn(new ByteArrayInputStream(inputString.getBytes()));\n\t\t\tin = new PipedInputStream();\n\t\t\tOutputStream out;\n\t\t\tout = new PipedOutputStream(in);\n\t\t\tsim.setOut(out);\n\t\t} catch (ParseException e) {fail(filename + \" did not generate\");\n\t\t} catch (IOException e) {\tfail(filename + \" did not generate\");}\n\t\t\n\t\ttry{\n\t\t\tsim.run();\n\t\t\tString output = \"\";\n\t\t\tint max = in.available();\n\t\t\tfor(int index = 0; index < max; index++)\n\t\t\t\toutput += (char)in.read();\n\t\t\t/** Check whether there was an error outputted. */\n\t\t\tif(!output.toLowerCase().contains(\"error: \"))\n\t\t\t\tfail(filename + \" shouldn't check but did\");\n\t\t} catch (Exception e) {\n\t\t\t// this is the expected behaviour\n\t\t}\n\t}", "public static void main(String[] args){\r\n try {\r\n AnalizadorSintactico asin = new AnalizadorSintactico(\r\n new AnalizadorLexico( new FileReader(args[0])));\r\n Object result = asin.parse().value;\r\n System.out.println(\"\\n*** Resultados finales ***\");\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n }\r\n }", "public void analysis(){\n\n\n this.outputFilename = \"PCAOutput\";\n if(this.fileOption==1){\n this.outputFilename += \".txt\";\n }\n else{\n this.outputFilename += \".xls\";\n }\n String message1 = \"Output file name for the analysis details:\";\n String message2 = \"\\nEnter the required name (as a single word) and click OK \";\n String message3 = \"\\nor simply click OK for default value\";\n String message = message1 + message2 + message3;\n String defaultName = this.outputFilename;\n this.outputFilename = Db.readLine(message, defaultName);\n this.analysis(this.outputFilename);\n }", "public static void main(String[] args) {\n String filename = \"\";\n Node root,standard_root;\n CseElement result;\n HashMap<Integer,ArrayList<CseElement>> control_structures;\n //Initialize variable DEBUG. True when debugging.\n boolean DEBUG = false;\n ArrayList<Node> outputs;\n //Get the filename from argument\n if(DEBUG == false & args.length ==0){\n System.out.println(\"Filename expected!..\");\n }\n else{\n filename = args[0];\n \n \n //Create the AST tree from user input file\n outputs = IOEditor.getList(filename);\n root = Tree.createTree(outputs);\n if(DEBUG == true){\n //Print and check the AST when debugging\n Tree.print(root);\n System.out.println(\"\\n\"); \n }\n //Get the Standaraize tree.\n standard_root = Tree.getST(root);\n if(DEBUG == true){\n //Print and check the standarize tree when debugging\n Tree.print(standard_root);\n }\n //Create the control structures for rpal code\n control_structures = Tree.preOrderTraversal(root);\n if(DEBUG == true){\n //Print and check the control structures when debugging\n System.out.println(control_structures);\n System.out.println(\"\");\n }\n // Evaluate the RPAL code using CSE machine\n CseMachine cm = new CseMachine(control_structures);\n try {\n //Get the resulted output\n result = cm.apply(DEBUG);\n if(result == null){\n if(DEBUG == true){\n //Check the result when debugging\n System.out.println(\"Final Result:- No return value\");\n }\n }\n else if(\"env\".equals(result.type)){\n if(DEBUG == true){\n //Check the result when debugging\n System.out.println(\"Final Result:- No return value\");\n }\n }\n else{\n if(DEBUG == true){\n //Check the result when debugging\n System.out.println(result.type +\" \"+result.value);\n }\n }\n } catch (Exception ex) {\n System.out.println(\"\\n\\n\"+ex+\"\\n\\n\");\n Logger.getLogger(Rpal.class.getName()).log(Level.SEVERE, null, ex);\n }\n } \n }", "public void runProgram()\n\t{\n\t\tintro();\n\t\tfindLength();\n\t\tguessLetter();\n\t\tguessName();\n\t}", "public static void main(String[] args){\n\n // Definite command line\n CommandLineParser parser = new PosixParser();\n Options options = new Options();\n\n //Help page\n String helpOpt = \"help\";\n options.addOption(\"h\", helpOpt, false, \"print help message\");\n\n String experimentFileStr = \"experimentFile\";\n options.addOption(experimentFileStr, true, \"Input File with all the ArrayExpress experiments.\");\n\n String protocolFileStr = \"protocolFile\";\n options.addOption(protocolFileStr, true, \"Input File with all the ArrayExpress protocols.\");\n\n String omicsDIFileStr = \"omicsDIFile\";\n options.addOption(omicsDIFileStr, true, \"Output File for omicsDI\");\n\n // Parse command line\n CommandLine line = null;\n try {\n line = parser.parse(options, args);\n if (line.hasOption(helpOpt) || !line.hasOption(protocolFileStr) ||\n !line.hasOption(experimentFileStr)\n || !line.hasOption(omicsDIFileStr)) {\n HelpFormatter formatter = new HelpFormatter();\n formatter.printHelp(\"validatorCLI\", options);\n }else{\n File omicsDIFile = new File (line.getOptionValue(omicsDIFileStr));\n Experiments experiments = new ExperimentReader(new File (line.getOptionValue(experimentFileStr))).getExperiments();\n Protocols protocols = new ProtocolReader(new File (line.getOptionValue(protocolFileStr))).getProtocols();\n generate(experiments, protocols, omicsDIFile);\n }\n\n } catch (ParseException e) {\n e.printStackTrace();\n } catch (Exception ex){\n ex.getStackTrace();\n }\n\n\n }", "public void prog() {\r\n \t\r\n // First parse declarations\r\n decls();\r\n // Next parse expression\r\n ArrayList<Integer> values = new ArrayList<Integer>(); \r\n values = exprs(values);\r\n for(int i = 0; i < values.size(); i++) {\r\n \tSystem.out.print(values.get(i) + \" \");\r\n }\r\n System.out.println();\r\n \r\n \r\n //int value = expr();\r\n // Finally parse the end of file character\r\n match(TokenType.END_OF_FILE);\r\n //System.out.println(\"Value of expression is: \" + value);\r\n }", "public static void main(String[] args)throws IOException {\n PrintStream prit=System.out;\n File file =new File(\"D:\"+File.separator+\"Exam\"+File.separator+\"exam.txt\");\n\t\tif (!file.exists()) {\n\t\t\tfile.getParentFile().mkdirs();\n\t\t}\n\t\t\n\t\tFileInputStream in=new FileInputStream(file);\n\t\tInputStreamReader inreader=new InputStreamReader(in);\n\t\tOutputStreamWriter out=new OutputStreamWriter(new FileOutputStream(file), \"GBK\");\n\t\tout.write(\" 这是一个Java上机题的文本文档:\\r\\n\");\n\t\tout.write(\" 一个正整数,它加上100后是一个完全平方数,再加上168又是一个完全平方数,请问该树是多少?\\r\\n\");\n\t\tout.write(\" 需要的参数如下:通过程序程序读取文件,解析下面的字符串得到所需要的参数值\\r\\n\");\n\t\tout.write(\" 100#168#1000\\r\\n\");\n\t\tout.write(\" 题目的要求是:在此文档中用程序写入解题思路,同时在源码中,尽可能多写注释让人一眼看懂代码逻辑\\r\\n\");\n\t\tout.write(\" 将计算结果,最后再写回这个配置文件的尾部,有多个结果时换行输出,以方便阅读。\\r\\n\");\n\t\tout.write(\"\\r\\n\");\n \n\t\tint l,m,n;\n\t\tDouble a;\n\t\tfor (int i = 1; i < 1001; i++) {\n\t\t\tl=i+100;\n\t\t\tm=l+168;\n\t\t\tif (Math.sqrt(l)%1<0) {\n if (Math.sqrt(m)%1<0) {\n \t prit.println(\"存在此正整数为: \"+i);\n } else {\n\t\t\t\t \n }\n } else {\n \n\t\t\t}\n\t\t}\n\t\t\t\n\t\tinreader.close();\n\t\tout.close();\n\t\tin.close();\n\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tString filename = \"src/y20161B/B-small-practice\";\n\t\t//String filename = \"src/y20161B/B-large-practice\";\n\n\t\tFileInputStream file;\n\t\tint T;\n\n\t\ttry {\n\t\t\tfile = new FileInputStream(filename+\".in\");\n\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(file));\n\n\t\t\tT = Integer.parseInt(in.readLine());\n\n\t\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(filename+\".out\"));\n\n\t\t\tfor (int i=0; i<T; i++) {\n\t\t\t\tint ind = i+1;\n\t\t\t\t// parser\n\t\t\t\tString buff[] = in.readLine().split(\" \");\n\t\t\t\tString C = buff[0];\n\t\t\t\tString J = buff[1];\n\t\t\t\t\n\t\t\t\t// calcul\n\t\t\t\tString res = solve(C, J);\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Result \"+i+\": \"+res);\n\t\t\t\tbw.write(\"Case #\"+ind+\": \"+res+\"\\n\");\n\t\t\t}\n\t\t\tbw.close();\n\n\t\t\tin.close();\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void main(String argv[]) throws UnsupportedEncodingException, ExecutionException, FileNotFoundException {\r\n // Check arguments\r\n if(argv.length <= 0) { System.err.println(\"Usage: <filename>\"); return; }\r\n\r\n // Start the machine\r\n Main.traceStream = System.out;\r\n Machine.powerOn();\r\n\r\n // Assemble the file\r\n Assembler assembler = new Assembler();\r\n InputStream stream = new FileInputStream(argv[0]);\r\n try { assembler.Assemble(stream); }\r\n catch(InvalidInstructionException e)\r\n { System.err.println(e.getMessage()); return; }\r\n catch(LabelNotResolvedException e)\r\n { System.err.println(e.getMessage()); return; }\r\n catch(ProgramSizeException e)\r\n { System.err.println(e.getMessage()); return; }\r\n\r\n // Run the code\r\n Machine.setPC((short) 0);\r\n Machine.setMSP((short) assembler.getSize());\r\n Machine.setMLP((short) (Machine.memorySize - 1));\r\n Machine.run();\r\n }", "public void parse()\n\t{\n\t\ttry\n\t\t{\n\t\t\tstatus = program();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\t\n\t\t}\n\t}", "public void exec(OxProgram pgm) {\n }", "public void cosoleText() throws IOException\n\t{\n\t\tconsole.setText(\"\"); //Clear the current text on the console\n\t\t//Create anew Process builder with the command to compile all the projects in the current open directory\n\t\tProcessBuilder processBuilder = new ProcessBuilder(javacCommandBuilder(currentProject, currentFile)); \n\t\tProcess process = processBuilder.start(); //Start the process\n\t\t//Create and start Processes for the CCL Loader and CCLRun functions\n\t\tProcess processCCLoader = new ProcessBuilder(new String[] {\"javac\", \"-cp\", \"Class\",\"-d\", \"Class\", \"SDPRO\\\\src\\\\CompilingClassLoader.java\"} ).start();\n\t\tProcess processCCL = new ProcessBuilder(new String[] {\"javac\", \"-cp\", \"Class\",\"-d\", \"Class\", \"SDPRO\\\\src\\\\CCLRun.java\"} ).start();\n\t\t\n\t\t//If the process fails on compile\n\t\tif(process.getErrorStream().read() != -1)\n\t\t{\n\t\t\t//Get the process Error message\n\t\t\tInputStream in = process.getErrorStream();\n\t\t\t//Read the error message and paste it to the console\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(in));\n\t\t\tString line = null;\n\t\t\twhile (in.read() != -1)\n\t\t\t{\n\t\t\t\tline = br.readLine();\n\t\t\t\tconsole.append(line + \"\\n\");\n\t\t\t}\n\t\t}\n\t\t//If the CCLpader process fails to compile\n\t\tif(processCCLoader.getErrorStream().read() != -1)\n\t\t{\n\t\t\t//Get the process Error message\n\t\t\tInputStream in = processCCLoader.getErrorStream();\n\t\t\t//Read the error message and paste it to the console\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(in));\n\t\t\tString line = null;\n\t\t\twhile (in.read() != -1)\n\t\t\t{\n\t\t\t\tline = br.readLine();\n\t\t\t\tconsole.append(line + \"\\n\");\n\t\t\t}\n\t\t}\n\t\t//If the CCLRun fails to compile\n\t\tif(processCCL.getErrorStream().read() != -1)\n\t\t{\n\t\t\t//Get the process Error message\n\t\t\tInputStream in = processCCL.getErrorStream();\n\t\t\t//Read the error message and paste it to the console\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(in));\n\t\t\tString line = null;\n\t\t\twhile (in.read() != -1)\n\t\t\t{\n\t\t\t\tline = br.readLine();\n\t\t\t\tconsole.append(line + \"\\n\");\n\t\t\t}\n\t\t}\n\t\t//If the process compiles\n\t\tif(process.exitValue() == 0)\n\t\t{\n\t\t\t//Create a new thread\n\t\t\tExecutorService service = Executors.newFixedThreadPool(1);\n\t\t\t//Run the java process in a thread\n\t\t\tservice.submit(new ProcessTask(javaCommadBuilder(currentFile)));\n\t\t}\n\t}", "public static void main(String[] args) throws FileNotFoundException {\n Solution45 sol1 = new Solution45();\n //declare ArrayList, strings, and Arrays for processing\n ArrayList<String> text = new ArrayList<String>();\n String fileName = \"\";\n String[][] arrOfstr = new String[3][15];\n\n //scan information into ArrayList from input file\n try (Scanner input = new Scanner(Paths.get(\"data/exercise45_input.txt\"))) {\n while (input.hasNext()) {\n text.add(input.nextLine());\n }\n } catch (IOException | NoSuchElementException | IllegalStateException e) {\n e.printStackTrace();\n }\n\n //call data parser to turn arraylist into 2d array and copy it to main's array\n System.arraycopy(sol1.dataParser(text), 0, arrOfstr,\n 0, arrOfstr.length);\n\n //loop through 2d array and replace \"utilize\" with \"use\"\n for (int counter2 = 0; counter2 < arrOfstr.length; counter2++) {\n for (int counter3 = 0; counter3 < arrOfstr[counter2].length; counter3++) {\n if (arrOfstr[counter2][counter3].equals(\"\\\"utilize\\\"\")) {\n arrOfstr[counter2][counter3] = \"\\\"use\\\"\";\n }\n if (arrOfstr[counter2][counter3].equals(\"utilize\")) {\n arrOfstr[counter2][counter3] = \"use\";\n }\n if (arrOfstr[counter2][counter3].equals(\"utilizes\")) {\n arrOfstr[counter2][counter3] = \"uses\";\n }\n }\n }\n //new scanner for output file name entry\n Scanner input = new Scanner(System.in);\n System.out.println(\"Enter file or directory name:\");\n fileName = input.nextLine();\n\n //call output method to take array and output it to text file in specified directory\n sol1.fileOutput(arrOfstr, fileName);\n }", "public static void testCases(File file){\n\t\tif (file.toString().toUpperCase().contains(\"FAIL\")){\n\t\t\tboolean failed = false;\n\t\t\ttry {\n\t\t\t\tparse(new ANTLRReaderStream(new FileReader(file)));\n\t\t\t} catch (IllegalArgumentException e) {\n\t\t\t\t//System.out.println(\"PASS\");\n\t\t\t\tfailed = true;\n\t\t\t} catch (ContextualRestraintException e){\n\t\t\t\tfailed = true;\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t} catch (RecognitionException e) {\n\t\t\t} catch (IOException e) {\n\t\t\t}\n\t\t\tif (failed){\n\t\t\t\tSystem.out.println(\"FILE \" + file + \" OK\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"FILE \" + file + \" ERROR\");\n\t\t\t}\n\t\t}\n\t\n\t\tif (file.toString().toUpperCase().contains(\"PASS\")){\n\t\t\tboolean failed = false;\n\t\t\ttry {\n\t\t\t\tparse(new ANTLRReaderStream(new FileReader(file)));\n\t\t\t} catch (Exception e) {\n\t\t\t\tfailed = true;\n\t\t\t}\n\t\t\tif (failed){\n\t\t\t\tSystem.out.println(\"FILE \" + file + \" ERROR\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"FILE \" + file + \" OK\");\n\t\t\t}\n\t\t}\n\t}", "public static void printUsage(){\n \n System.out.println(\"USAGE:\\njava -jar LMB.jar inputfilename\\n\"\n + \"\\nWhere: LMB is the executable of this program\"\n + \"\\ninputfilename is a plaintext file located in the ./text/ folder\"\n + \"\\nAll output files will be created and written to the \\\"lm\\\" directory in root\");\n System.exit(1);\n \n }", "public static void main(String[] args) {\n\t\t\t\t\n\t\tMain t = new Main();\n\t\t\n\t\tSystem.out.println(\" ---------------------------------------------------------------- \");\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(\" \tUniversidad Nacional del Centro de la Provincia de Buenos Aires \");\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(\" \t\tCátedra : Diseño de Compiladores \");\n\t\tSystem.out.println(\" \t\tExtensión del compilador : incorporación del operador '++' a identificadores tipo long \");\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(\" \tProf: Mg. Ing. Marcela Ridado \");\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(\" \tSr: Marcelo Rodríguez -- [email protected]\");\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(\" Uso : [1]path al programa [2] path al directorio del archivo assembler generado [3] directorio para guardar la salida \");\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(\" ---------------------------------------------------------------- \");\n\t\t\n\t\tif (args.length!=3){\n\t\t\tSystem.out.println(\" Error - Faltan argumentos \");\n\t\t\tSystem.out.println(\" Uso : [1]path al programa [2] path al directorio de archivos assembler [3] directorio para guardar la salida \");\n\t\t\t//return;\n\t\t}\n\t\t\n\t\tString programa=args[0];\n\t\tString asmDir=args[1];\n\t\tString outputDir=args[2];\n\t\t\n\t\t\t\t\n\t\tFile asm = new File(asmDir);\n\t\t\n\t\t\n\t\tif (!asm.exists()){\n\t\t\tboolean result=false;\n\t\t\ttry{\n \t\t \tasm.mkdir();\n \t\tresult = true;\n \t\t\t} \n\t\t\t catch(SecurityException se){\n\t\t\t //handle it\n\t\t\t } \n\t\t\t if(result) { \n\t\t\t System.out.println(\"Directorio para archivos assembler creado.\"); \n\t\t\t }\n\t\t\t}\n\t\t\n\t\tFile output=new File(outputDir);\n\t\t\n\t\tif (!output.exists()){\n\t\t\tboolean result=false;\n\t\t\ttry{\n \t\t \toutput.mkdir();\n \t\tresult = true;\n \t\t\t} \n\t\t\t catch(SecurityException se){\n\t\t\t //handle it\n\t\t\t } \n\t\t\t if(result) { \n\t\t\t System.out.println(\"Directorio para archivos de salida creado\"); \n\t\t\t }\n\t\t\t}\n\t\t\n\t\t\n\t\tFile file = null;\n\t\t\n\t\t\n\t\tfile = new File(programa);\n\n\t\tif (!file.exists()){\n\t\t\tSystem.out.println(\" No hay programa para compilar .\");\n\t\t\treturn;\n\t\t}\n\t\t\n\n\t\t\n\t\tt.setUp(file,asmDir,outputDir);\n\t\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "private void showLoadProgramDlg() {\n FileNameExtensionFilter filter = new FileNameExtensionFilter(\n SixDOFArmResources.getString(\"PIERINHO_FILE_DESCRIPTION\"),\n SixDOFArmResources.getString(\"PIERINHO_FILE_EXTENSION\")\n );\n File file;\n File dir;\n final JFileChooser fc = new JFileChooser();\n fc.setDialogTitle(SixDOFArmResources.getString(\"PIERINHO_FILE_SELECTION\"));\n fc.setFileFilter(filter);\n boolean proceed;\n String filename = programLabel.getText();\n \n if (filename.length() > 0) {\n dir = new File(FileUtils.expandFileName(filename));\n if (dir.exists()) {\n fc.setCurrentDirectory(dir);\n }\n }\n do {\n int returnVal = fc.showOpenDialog(this);\n if (returnVal == JFileChooser.APPROVE_OPTION) {\n file = fc.getSelectedFile();\n if (file.exists()) {\n proceed = true;\n } else {\n proceed = false;\n gui.showError(String.format(\n SixDOFArmResources.getString(\"ERROR_FILE_DOES_NOT_EXIST\"),\n file.getAbsolutePath()));\n }\n if (proceed) {\n programPathLabel.setText(file.getAbsolutePath());\n loadProgram();\n } else {\n }\n } else {\n break;\n }\n } while(!proceed);\n }", "void process() throws Exception {\n\t\n\n\t\t\tFile inputFile=new File(round+\"/\"+exercice+\"-small-attempt1.in\");\n\t\t\tPrintWriter outputFile= new PrintWriter(round+\"/\"+exercice+\"-small-attempt1.out\",\"UTF-8\");\n\n\t\t\n\t//\tFile inputFile=new File(round+\"/\"+exercice+\"-large.in\");\n\t//\tPrintWriter outputFile= new PrintWriter(round+\"/\"+exercice+\"-large.out\",\"UTF-8\");\n\n\n\t\tScanner scanner=new Scanner(inputFile);\n\t\tscanner.useLocale(Locale.US);\n\t\tint T = scanner.nextInt();\n\t\tSystem.out.println(\"Doing \"+T+\" cases\");\n\n\t\t\n\n\t\tfor (int t=1;t<=T;t++) {\n\t\n\t\t\t// do Something\n\t\t\tN=scanner.nextInt();\n\t\t\tS=new String[N];\n\t\t\n\t\t\t\n\t\t\tfor (int i=0;i<N;i++){\n\t\t\t\tS[i]=scanner.next();\n\t\t}\n\t\t\t\n\t\t\t\n\t\t\tString ss=\"\"+solve();\n\t\t\n\t\t\tSystem.out.println(\"Case #\"+t+\": \"+ss);\n\t\t\toutputFile.println(\"Case #\"+t+\": \"+ss);\n\t\t\t\n\t\t}\n\t\tscanner.close();\n\t\toutputFile.close();\n\n\t}", "public static void main(String[] args) {\n RegExp_final_version obj=new RegExp_final_version();\n BufferedReader br = null;\n\n\t\ttry {\n\n\t\t\tString sCurrentLine;\n \n\t\t\tbr = new BufferedReader(new FileReader(\"E:\\\\NetBeans Project workspace\\\\RegExp_final_version\\\\src\\\\regexp_final_version\\\\Inputs\"));\n\n System.out.println(\"Reading of Regular Exps: \");\n \n String [] exps=new String[Integer.parseInt(br.readLine())];\n for(int c1=0;c1<exps.length;c1++){\n System.out.println(exps[c1]=br.readLine());\n }\n System.out.println(\"\\n\\nReading The test Strings: \");\n String [] strs=new String[Integer.parseInt(br.readLine())];\n for(int c1=0;c1<strs.length;c1++){\n System.out.println(strs[c1]=br.readLine());\n }\n for (int i = 0; i < strs.length; i++) {\n for (int j = 0; j < exps.length; j++) {\n try{\n// System.out.println(\"CHECKER: i: \"+i+\": \"+exps[j]+\" , j: \"+j+\": \"+strs[i] );\n System.out.println(\"\\n-----------------------\"\n + \"\\n RESULTS: \"+\"i=\"+i+\" , j=\"+j+\"\\n ||\"\n + obj.supports(exps[j], strs[i])\n +\"||\\n---------------------\");\n\n }\n catch(Exception e){\n System.out.println(\"\\n_-___----__-\\nEXCEPTION: i: \"+i+\": \"+exps[i]+\" , j: \"+j+\": \"+strs[j] );\n// e.printStackTrace();\n }\n }\n }\n \n//\t\t\twhile ((sCurrentLine = br.readLine()) != null) {\n//\t\t\t obj.fullCode=obj.fullCode+sCurrentLine;\n// System.out.println(sCurrentLine);\n//\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (br != null)br.close();\n\t\t\t} catch (IOException ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n \n }", "public static void solve(){\n try {\r\n Rete env = new Rete();\r\n env.clear();\r\n env.batch(\"sudoku.clp\");\r\n\t\t\tenv.batch(\"solve.clp\");\r\n env.batch(\"output-frills.clp\");\r\n env.batch(\"guess.clp\");\r\n env.batch(\"grid3x3-p1.clp\");\r\n\t env.eval(\"(open \\\"test.txt\\\" output \\\"w\\\")\");\r\n env.reset();\r\n env.eval(\"(assert (try guess))\");\r\n env.run();\r\n env.eval(\"(close output)\");\r\n } catch (JessException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n System.out.println(\"ok\");\r\n FileReader fr;\r\n try {\r\n int r = 0,c = 0;\r\n fr = new FileReader(\"test.txt\");\r\n Scanner sc = new Scanner(fr);\r\n \r\n while (sc.hasNextInt()){\r\n int next = sc.nextInt();\r\n int i = id[r][c];\r\n gui.setSudokuValue(i-1, next);\r\n c++;\r\n if (c >= 6){\r\n c = 0; r++;\r\n }\r\n }\r\n } catch (Exception e){\r\n }\r\n \r\n }", "@Test\n public void testParse()\n {\n System.out.println(\"parse\");\n System.out.println(\" Test simple case\");\n final File file = new File(\"src/test/data/test.example.txt\");\n final Lexer lexer = new Lexer();\n final Token token = lexer.analyze(file);\n Model model = token.parse();\n assertTrue(model.isCompiled());\n System.out.println(\" Test complex case\");\n final File complexFile = new File(\"src/test/data/balancer.example.txt\");\n final Token complexToken = lexer.analyze(complexFile);\n model = complexToken.parse();\n assertTrue(model.isCompiled());\n }", "public static void main(String argv[]) {\n if (argv.length == 0) {\n System.out.println(\"Usage : java AnalizadorLexico2 [ --encoding <name> ] <inputfile(s)>\");\n }\n else {\n int firstFilePos = 0;\n String encodingName = \"UTF-8\";\n if (argv[0].equals(\"--encoding\")) {\n firstFilePos = 2;\n encodingName = argv[1];\n try {\n java.nio.charset.Charset.forName(encodingName); // Side-effect: is encodingName valid? \n } catch (Exception e) {\n System.out.println(\"Invalid encoding '\" + encodingName + \"'\");\n return;\n }\n }\n for (int i = firstFilePos; i < argv.length; i++) {\n AnalizadorLexico2 scanner = null;\n try {\n java.io.FileInputStream stream = new java.io.FileInputStream(argv[i]);\n java.io.Reader reader = new java.io.InputStreamReader(stream, encodingName);\n scanner = new AnalizadorLexico2(reader);\n while ( !scanner.zzAtEOF ) scanner.debug_next_token();\n }\n catch (java.io.FileNotFoundException e) {\n System.out.println(\"File not found : \\\"\"+argv[i]+\"\\\"\");\n }\n catch (java.io.IOException e) {\n System.out.println(\"IO error scanning file \\\"\"+argv[i]+\"\\\"\");\n System.out.println(e);\n }\n catch (Exception e) {\n System.out.println(\"Unexpected exception:\");\n e.printStackTrace();\n }\n }\n }\n }", "public static void main(String[] args) throws IOException {\n\t\tMain t = new Main();\n\t\tSystem.out.println(\"The model is trained: \");\n\t\tt.training(enTrainingDir, 0.7);\n\t\tSystem.out.println(\"Check validation in example of \\\"AB\\\":\");\n\t\tt.checkValid(\"AB\");\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"============= unsmoothed models =============================================================================\");\n\t\tSystem.out.print(\"Unigram: \");\n\t\tSystem.out.println(t.uni);\n\t\tSystem.out.print(\"Bigram: \");\n\t\tSystem.out.println(t.bi);\n\t\tSystem.out.print(\"Trigram: \");\n\t\tSystem.out.println(t.tri);\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"============= add-one smoothed models ========================================================================\");\n\t\tSystem.out.println(\"Note: this is only one of smoothed models , not the tuning process. Because there would be too many console lines.\");\n\t\tSystem.out.println(\"Here I take add-k = 0.7 as an example.\");\n\t\tSystem.out.println(\"*************************************************************************************************************\");\n\t\tdouble k = 0.7;\n\t\tt.training(enTrainingDir, 0.7);\n\t\tt.calculateScore(testDir, k, null, null);\n\t\tt.training(esTrainingDir, 0.7);\n\t\tt.calculateScore(testDir, k, null, null);\n\t\tt.training(deTrainingDir, 0.7);\n\t\tt.calculateScore(testDir, k, null, null);\n\t\tSystem.out.println(\"*************************************************************************************************************\");\n\t\tSystem.out.println(\"Then I take the classic add-k = 1.0 as an example.\");\n\t\tSystem.out.println(\"*************************************************************************************************************\");\n\t\tk = 1.0;\n\t\tt.training(enTrainingDir, 0.7);\n\t\tt.calculateScore(testDir, k, null, null);\n\t\tt.training(esTrainingDir, 0.7);\n\t\tt.calculateScore(testDir, k, null, null);\n\t\tt.training(deTrainingDir, 0.7);\n\t\tt.calculateScore(testDir, k, null, null);\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"===== linear interpolation smoothed models ===================================================================\");\n\t\tdouble[] lambdas_tri = new double[] {1.0 / 3, 1.0 / 3, 1.0 / 3};\n\t\tdouble[] lambdas_bi = new double[] {1.0 / 2, 1.0 / 2};\n\t\tSystem.out.println(\"First is equally weighted lambdas: \" + Arrays.toString(lambdas_tri) + \" and \" + Arrays.toString(lambdas_bi));\n\t\tt.training(enTrainingDir, 0.7);\n\t\tt.calculateScore(testDir, 0, lambdas_bi, lambdas_tri);\n\t\tt.training(esTrainingDir, 0.7);\n\t\tt.calculateScore(testDir, 0, lambdas_bi, lambdas_tri);\n\t\tt.training(deTrainingDir, 0.7);\n\t\tt.calculateScore(testDir, 0, lambdas_bi, lambdas_tri);\n\t\tSystem.out.println(\"**************************************************************************************************************\");\n\t\tlambdas_tri = new double[] {0.5, 0.3, 0.2};\n\t\tlambdas_bi = new double[] {0.7, 0.3};\n\t\tSystem.out.println(\"Then is tuned-weighted lambdas: \" + Arrays.toString(lambdas_tri) + \" and \" + Arrays.toString(lambdas_bi));\n\t\tSystem.out.println(\"Again, this is not all the tuning process. Here is only one set of lambdas.\");\n\t\tt.training(enTrainingDir, 0.7);\n\t\tt.calculateScore(testDir, 0, lambdas_bi, lambdas_tri);\n\t\tt.training(esTrainingDir, 0.7);\n\t\tt.calculateScore(testDir, 0, lambdas_bi, lambdas_tri);\n\t\tt.training(deTrainingDir, 0.7);\n\t\tt.calculateScore(testDir, 0, lambdas_bi, lambdas_tri);\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"=================== Generating texts ==========================================================================\");\n\t\tSystem.out.println(\"To save console space, here I generate A to E, five sentences. Feel free to adjust parameters in code.\");\n\t\tSystem.out.println(\"***************************************************************************************************************\");\n\t\tt.training(enTrainingDir, 0.7);\n\t\tSystem.out.println(\"**************** Bi-gram generating ***************************************************************************\");\n\t\tfor (char c = 'A'; c <= 'E'; c++) {\n\t\t\tt.generateWithBigramModel(String.valueOf(c));\n\t\t}\n\t\tSystem.out.println();\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Not that good huh?\");\n\t\tSystem.out.println(\"**************** Tri-gram generating *************************************************************************\");\n\t\tfor (char c = 'A'; c <= 'E'; c++) {\n\t\t\tt.generateWithBigramModel(String.valueOf(c));\n\t\t}\n\t\tSystem.out.println();\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"...Seems not good as well.\");\n\t}", "@Test\n\tpublic void predFuncTest() \n\t{\n\t\tPath filePath = Paths.get(\"src/test/testfile/test.txt\");\n\t\tScanner scanner;\n\t\ttry {\n\t\t\tscanner = new Scanner(filePath);\n\t\t\tTranslator translator = new Translator();\n\t\t\tList<String> startCodons = new ArrayList<String>();\n\t\t\tstartCodons.add(\"ATG\");\n\t\t\tList<List<String>> result = translator.translation(scanner.next(), startCodons );\n\t\t\tfor(List<String> r : result){\n\t\t\t\tfor(String s : r){\n\t\t\t\t\tif(scanner.hasNext()){\n\t\t\t\t\t\tassertEquals(s, scanner.next());\n\t\t\t\t\t\t\n\t\t\t\t\t}else{\n\t\t\t\t\t\tfail();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t \n\n\t\t} catch (IOException e) {\n\t\t\tfail(e.getLocalizedMessage());\n\t\t}\n\t}", "@Test(timeout = 4000)\n public void test021() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\"\", false);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "private void analysisText(){\n\n FileOutput fout = null;\n if(this.fileNumberingSet){\n fout = new FileOutput(this.outputFilename, 'n');\n }\n else{\n fout = new FileOutput(this.outputFilename);\n }\n\n // perform PCA if not already performed\n if(!pcaDone)this.pca();\n if(!this.monteCarloDone)this.monteCarlo();\n\n // output title\n fout.println(\"PRINCIPAL COMPONENT ANALYSIS\");\n fout.println(\"Program: PCA - Analysis Output\");\n for(int i=0; i<this.titleLines; i++)fout.println(title[i]);\n Date d = new Date();\n String day = DateFormat.getDateInstance().format(d);\n String tim = DateFormat.getTimeInstance().format(d);\n fout.println(\"Program executed at \" + tim + \" on \" + day);\n fout.println();\n if(this.covRhoOption){\n fout.println(\"Covariance matrix used\");\n }\n else{\n fout.println(\"Correlation matrix used\");\n }\n fout.println();\n\n // output eigenvalue table\n // field width\n int field1 = 10;\n int field2 = 12;\n int field3 = 2;\n\n fout.println(\"ALL EIGENVALUES\");\n\n fout.print(\"Component \", field1);\n fout.print(\"Unordered \", field1);\n fout.print(\"Eigenvalue \", field2);\n fout.print(\"Proportion \", field2);\n fout.print(\"Cumulative \", field2);\n fout.println(\"Difference \");\n\n fout.print(\" \", field1);\n fout.print(\"index\", field1);\n fout.print(\" \", field2);\n fout.print(\"as % \", field2);\n fout.print(\"percentage \", field2);\n fout.println(\" \");\n\n\n\n for(int i=0; i<this.nItems; i++){\n fout.print(i+1, field1);\n fout.print((this.eigenValueIndices[i]+1), field1);\n fout.print(Fmath.truncate(this.orderedEigenValues[i], this.trunc), field2);\n fout.print(Fmath.truncate(this.proportionPercentage[i], this.trunc), field2);\n fout.print(Fmath.truncate(this.cumulativePercentage[i], this.trunc), field2);\n if(i<this.nItems-1){\n fout.print(Fmath.truncate((this.orderedEigenValues[i] - this.orderedEigenValues[i+1]), this.trunc), field2);\n }\n else{\n fout.print(\" \", field2);\n }\n fout.print(\" \", field3);\n\n fout.println();\n }\n fout.println();\n\n\n // Extracted components\n int nMax = this.greaterThanOneLimit;\n if(nMax<this.meanCrossover)nMax=this.meanCrossover;\n if(nMax<this.percentileCrossover)nMax=this.percentileCrossover;\n fout.println(\"EXTRACTED EIGENVALUES\");\n fout.print(\" \", field1);\n fout.print(\"Greater than unity\", 3*field2 + field3);\n fout.print(\"Greater than Monte Carlo Mean \", 3*field2 + field3);\n fout.println(\"Greater than Monte Carlo Percentile\");\n\n fout.print(\"Component \", field1);\n fout.print(\"Eigenvalue \", field2);\n fout.print(\"Proportion \", field2);\n fout.print(\"Cumulative \", field2);\n fout.print(\" \", field3);\n\n fout.print(\"Eigenvalue \", field2);\n fout.print(\"Proportion \", field2);\n fout.print(\"Cumulative \", field2);\n fout.print(\" \", field3);\n\n fout.print(\"Eigenvalue \", field2);\n fout.print(\"Proportion \", field2);\n fout.print(\"Cumulative \", field2);\n fout.println(\" \");\n\n fout.print(\" \", field1);\n fout.print(\" \", field2);\n fout.print(\"as % \", field2);\n fout.print(\"percentage \", field2);\n fout.print(\" \", field3);\n\n fout.print(\" \", field2);\n fout.print(\"as % \", field2);\n fout.print(\"percentage \", field2);\n fout.print(\" \", field3);\n\n fout.print(\" \", field2);\n fout.print(\"as % \", field2);\n fout.print(\"percentage \", field2);\n fout.println(\" \");\n\n int ii=0;\n while(ii<nMax){\n fout.print(ii+1, field1);\n\n if(ii<this.greaterThanOneLimit){\n fout.print(Fmath.truncate(this.orderedEigenValues[ii], this.trunc), field2);\n fout.print(Fmath.truncate(this.proportionPercentage[ii], this.trunc), field2);\n fout.print(Fmath.truncate(this.cumulativePercentage[ii], this.trunc), (field2+field3));\n }\n\n if(ii<this.meanCrossover){\n fout.print(Fmath.truncate(this.orderedEigenValues[ii], this.trunc), field2);\n fout.print(Fmath.truncate(this.proportionPercentage[ii], this.trunc), field2);\n fout.print(Fmath.truncate(this.cumulativePercentage[ii], this.trunc), (field2+field3));\n }\n\n if(ii<this.percentileCrossover){\n fout.print(Fmath.truncate(this.orderedEigenValues[ii], this.trunc), field2);\n fout.print(Fmath.truncate(this.proportionPercentage[ii], this.trunc), field2);\n fout.print(Fmath.truncate(this.cumulativePercentage[ii], this.trunc));\n }\n fout.println();\n ii++;\n }\n fout.println();\n\n\n fout.println(\"PARALLEL ANALYSIS\");\n fout.println(\"Number of simulations = \" + this.nMonteCarlo);\n if(this.gaussianDeviates){\n fout.println(\"Gaussian random deviates used\");\n }\n else{\n fout.println(\"Uniform random deviates used\");\n }\n fout.println(\"Percentile value used = \" + this.percentile + \" %\");\n\n fout.println();\n fout.print(\"Component \", field1);\n fout.print(\"Data \", field2);\n fout.print(\"Proportion \", field2);\n fout.print(\"Cumulative \", field2);\n fout.print(\" \", field3);\n fout.print(\"Data \", field2);\n fout.print(\"Monte Carlo \", field2);\n fout.print(\"Monte Carlo \", field2);\n fout.println(\"Monte Carlo \");\n\n fout.print(\" \", field1);\n fout.print(\"Eigenvalue \", field2);\n fout.print(\"as % \", field2);\n fout.print(\"percentage \", field2);\n fout.print(\" \", field3);\n fout.print(\"Eigenvalue \", field2);\n fout.print(\"Eigenvalue \", field2);\n fout.print(\"Eigenvalue \", field2);\n fout.println(\"Eigenvalue \");\n\n fout.print(\" \", field1);\n fout.print(\" \", field2);\n fout.print(\" \", field2);\n fout.print(\" \", field2);\n fout.print(\" \", field3);\n fout.print(\" \", field2);\n fout.print(\"Percentile \", field2);\n fout.print(\"Mean \", field2);\n fout.println(\"Standard Deviation \");\n\n for(int i=0; i<this.nItems; i++){\n fout.print(i+1, field1);\n fout.print(Fmath.truncate(this.orderedEigenValues[i], this.trunc), field2);\n fout.print(Fmath.truncate(this.proportionPercentage[i], this.trunc), field2);\n fout.print(Fmath.truncate(this.cumulativePercentage[i], this.trunc), field2);\n fout.print(\" \", field3);\n fout.print(Fmath.truncate(this.orderedEigenValues[i], this.trunc), field2);\n fout.print(Fmath.truncate(this.randomEigenValuesPercentiles[i], this.trunc), field2);\n fout.print(Fmath.truncate(this.randomEigenValuesMeans[i], this.trunc), field2);\n fout.println(Fmath.truncate(this.randomEigenValuesSDs[i], this.trunc));\n }\n fout.println();\n\n // Correlation Matrix\n fout.println(\"CORRELATION MATRIX\");\n fout.println(\"Original component indices in parenthesis\");\n fout.println();\n fout.print(\" \", field1);\n fout.print(\"component\", field1);\n for(int i=0; i<this.nItems; i++)fout.print((this.eigenValueIndices[i]+1) + \" (\" + (i+1) + \")\", field2);\n fout.println();\n fout.println(\"component\");\n for(int i=0; i<this.nItems; i++){\n fout.print((this.eigenValueIndices[i]+1) + \" (\" + (i+1) + \")\", 2*field1);\n for(int j=0; j<this.nItems; j++)fout.print(Fmath.truncate(this.correlationMatrix.getElement(j,i), this.trunc), field2);\n fout.println();\n }\n fout.println();\n\n // Covariance Matrix\n fout.println(\"COVARIANCE MATRIX\");\n fout.println(\"Original component indices in parenthesis\");\n fout.println();\n fout.print(\" \", field1);\n fout.print(\"component\", field1);\n for(int i=0; i<this.nItems; i++)fout.print((this.eigenValueIndices[i]+1) + \" (\" + (i+1) + \")\", field2);\n fout.println();\n fout.println(\"component\");\n for(int i=0; i<this.nItems; i++){\n fout.print((this.eigenValueIndices[i]+1) + \" (\" + (i+1) + \")\", 2*field1);\n for(int j=0; j<this.nItems; j++)fout.print(Fmath.truncate(this.covarianceMatrix.getElement(j,i), this.trunc), field2);\n fout.println();\n }\n\n fout.println();\n\n // Eigenvectors\n fout.println(\"EIGENVECTORS\");\n fout.println(\"Original component indices in parenthesis\");\n fout.println(\"Vector corresponding to an ordered eigenvalues in each row\");\n fout.println();\n fout.print(\" \", field1);\n fout.print(\"component\", field1);\n for(int i=0; i<this.nItems; i++)fout.print((this.eigenValueIndices[i]+1) + \" (\" + (i+1) + \")\", field2);\n fout.println();\n fout.println(\"component\");\n for(int i=0; i<this.nItems; i++){\n fout.print((i+1) + \" (\" + (this.eigenValueIndices[i]+1) + \")\", 2*field1);\n for(int j=0; j<this.nItems; j++)fout.print(Fmath.truncate(this.orderedEigenVectorsAsRows[i][j], this.trunc), field2);\n fout.println();\n }\n fout.println();\n\n // Loading factors\n fout.println(\"LOADING FACTORS\");\n fout.println(\"Original indices in parenthesis\");\n fout.println(\"Loading factors corresponding to an ordered eigenvalues in each row\");\n fout.println();\n fout.print(\" \", field1);\n fout.print(\"component\", field1);\n for(int i=0; i<this.nItems; i++)fout.print((this.eigenValueIndices[i]+1) + \" (\" + (i+1) + \")\", field2);\n fout.print(\" \", field1);\n fout.print(\"Eigenvalue\", field2);\n fout.print(\"Proportion\", field2);\n fout.println(\"Cumulative %\");\n fout.println(\"factor\");\n for(int i=0; i<this.nItems; i++){\n fout.print((i+1) + \" (\" + (this.eigenValueIndices[i]+1) + \")\", 2*field1);\n for(int j=0; j<this.nItems; j++)fout.print(Fmath.truncate(this.loadingFactorsAsRows[i][j], this.trunc), field2);\n fout.print(\" \", field1);\n fout.print(Fmath.truncate(this.orderedEigenValues[i], this.trunc), field2);\n fout.print(Fmath.truncate(proportionPercentage[i], this.trunc), field2);\n fout.println(Fmath.truncate(cumulativePercentage[i], this.trunc));\n }\n fout.println();\n\n // Rotated loading factors\n fout.println(\"ROTATED LOADING FACTORS\");\n if(this.varimaxOption){\n fout.println(\"NORMAL VARIMAX\");\n }\n else{\n fout.println(\"RAW VARIMAX\");\n }\n\n String message = \"The ordered eigenvalues with Monte Carlo means and percentiles in parenthesis\";\n message += \"\\n (Total number of eigenvalues = \" + this.nItems + \")\";\n int nDisplay = this.nItems;\n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n int screenHeight = screenSize.height;\n int nDisplayLimit = 20*screenHeight/800;\n if(nDisplay>nDisplay)nDisplay = nDisplayLimit;\n for(int i=0; i<nDisplay; i++){\n message += \"\\n \" + Fmath.truncate(this.orderedEigenValues[i], 4) + \" (\" + Fmath.truncate(this.randomEigenValuesMeans[i], 4) + \" \" + Fmath.truncate(this.randomEigenValuesPercentiles[i], 4) + \")\";\n }\n if(nDisplay<this.nItems)message += \"\\n . . . \";\n message += \"\\nEnter number of eigenvalues to be extracted\";\n int nExtracted = this.greaterThanOneLimit;\n nExtracted = Db.readInt(message, nExtracted);\n this.varimaxRotation(nExtracted);\n\n fout.println(\"Varimax rotation for \" + nExtracted + \" extracted factors\");\n fout.println(\"Rotated loading factors and eigenvalues scaled to ensure total 'rotated variance' matches unrotated variance for the extracted factors\");\n fout.println(\"Original indices in parenthesis\");\n fout.println();\n fout.print(\" \", field1);\n fout.print(\"component\", field1);\n for(int i=0; i<this.nItems; i++)fout.print((this.rotatedIndices[i]+1) + \" (\" + (i+1) + \")\", field2);\n fout.print(\" \", field1);\n fout.print(\"Eigenvalue\", field2);\n fout.print(\"Proportion\", field2);\n fout.println(\"Cumulative %\");\n fout.println(\"factor\");\n\n for(int i=0; i<nExtracted; i++){\n fout.print((i+1) + \" (\" + (rotatedIndices[i]+1) + \")\", 2*field1);\n for(int j=0; j<this.nItems; j++)fout.print(Fmath.truncate(this.rotatedLoadingFactorsAsRows[i][j], this.trunc), field2);\n fout.print(\" \", field1);\n fout.print(Fmath.truncate(rotatedEigenValues[i], this.trunc), field2);\n fout.print(Fmath.truncate(rotatedProportionPercentage[i], this.trunc), field2);\n fout.println(Fmath.truncate(rotatedCumulativePercentage[i], this.trunc));\n }\n fout.println();\n\n fout.println(\"DATA USED\");\n fout.println(\"Number of items = \" + this.nItems);\n fout.println(\"Number of persons = \" + this.nPersons);\n\n\n if(this.originalDataType==0){\n fout.printtab(\"Item\");\n for(int i=0; i<this.nPersons; i++){\n fout.printtab(i+1);\n }\n fout.println();\n for(int i=0; i<this.nItems; i++){\n fout.printtab(this.itemNames[i]);\n for(int j=0; j<this.nPersons; j++){\n fout.printtab(Fmath.truncate(this.scores0[i][j], this.trunc));\n }\n fout.println();\n }\n }\n else{\n fout.printtab(\"Person\");\n for(int i=0; i<this.nItems; i++){\n fout.printtab(this.itemNames[i]);\n }\n fout.println();\n for(int i=0; i<this.nPersons; i++){\n fout.printtab(i+1);\n for(int j=0; j<this.nItems; j++){\n fout.printtab(Fmath.truncate(this.scores1[i][j], this.trunc));\n }\n fout.println();\n }\n }\n\n fout.close();\n }", "public static void main(String[] args) {\n\n String inputFile = \"data/input.txt\";\n String outputFile = \"data/output.txt\";\n String studentInfo = \"data/students_info.txt\";\n String studentData = \"\";\n BufferedReader reader = null;\n String[] data = null;\n boolean sex = false;\n try {\n reader = new BufferedReader(new FileReader(studentInfo));\n studentData = reader.readLine();\n data = studentData.split(\" \");\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n \n if (data[3].equals(\"1\")) {\n sex = true;\n }\n\n Student testStudent1 = new Student(Integer.parseInt(data[0]),data[1],sex,Integer.parseInt(data[3]));\n\n testStudent1.doHomework(inputFile,outputFile,\"Со\");\n\n }", "private void runApp() {\n\t\t//TODO: Run to see one exception. Trace the code to understand. \n\t\t// Then change to nums.txt to see the other exception. \n\t\t\n\t\tString inputFile = \"nums_wrongname.txt\"; \n\t\t//String inputFile = \"nums.txt\";\n\t\ttry {\n\t\t\tdouble average = computeAverageForFile(inputFile);\n\t\t\tSystem.out.println(\"Average: \" + average);\n\t\t} catch(FileNotFoundException e) {\n\t\t\tSystem.err.println(\"File \" + inputFile + \" not found. Exiting.\");\n\t\t} catch(IOException e) {\n\t\t\tSystem.err.println(\"Error closing file.\");\n\t\t} // end try-catch\t\n\t}", "public static void main(String[] args) {\n\t\tUtility.dirPath = \"C:\\\\Users\\\\imSlappy\\\\workspace\\\\FeelingAnalysis\\\\Documents\\\\2_group_eng\";\n\t\tString sub[] = {\"dup\",\"bug\"};\n\t\tUtility.classLabel = sub;\n\t\tUtility.numdoc = 350;\n\t\tSetClassPath.read_path(Utility.dirPath);\n\t\tUtility.language = \"en\";\n\t\t\n\t\tUtility.stopWordHSEN = Fileprocess.FileHashSet(\"data/stopwordAndSpc_eng.txt\");\n\t\tUtility.dicen = new _dictionary();\n\t\tUtility.dicen.getDictionary(\"data/dicEngScore.txt\");\n\t\t\n\t\tUtility.vocabHM = new HashMap();\n\t\t// ================= completed initial main Program ==========================\n\n\t\tMainExampleNaive ob = new MainExampleNaive();\n\t\t\n\t\t// --------------------- Pre-process -----------------------\n\t\tob.word_arr = new HashSet [Utility.listFile.length][];\n\t\tob.wordSet = new ArrayList<String>();\n\t\tfor (int i = 0; i < Utility.listFile.length; i++) {\n\t\t\tob.word_arr[i]=new HashSet[Utility.listFile[i].length];\n\t\t\tfor (int j = 0; j < Utility.listFile[i].length; j++) {\n\t\t\t\tStringBuffer strDoc = Fileprocess.readFile(Utility.listFile[i][j]);\n\t\t\t\tob.word_arr[i][j]=ob.docTokenization(new String(strDoc));\n\t\t\t}\n\t\t\tob.checkBound(3, 10000);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"++ Total : \"+Utility.vocabHM.size()+\" words\");\n\t\tSystem.out.println(\"++ \"+Utility.vocabHM);\n\t\t\n\t\t// ---------------------- Selection ------------------------\n//\t\tInformationGain ig = new InformationGain(ob.word_arr.length*ob.word_arr[0].length , ob.wordSet,ob.word_arr);\n//\t\tArrayList<String> ban_word = ig.featureSelection(0.0); // selected out with IG = 0\n//\t\t//ob.banFeature(ban_word);\n//\t\tSystem.out.println(\"ban list[\"+ban_word.size()+\"] : \"+ban_word);\n//\t\t\n//\t\tSystem.out.println(\"-- After \"+Utility.vocabHM.size());\n//\t\tSystem.out.println(\"-- \"+Utility.vocabHM);\n\t\t\n\t\tob.setWordPosition();\n\t\t// ---------------------- Processing -----------------------\n\t\tNaiveBayes naive = new NaiveBayes();\n\t\tnaive.naiveTrain(true);\n\t\t\n\t\tint result = naive.naiveUsage(\"after cold reset of my pc (crash of xp) the favorites of firefox are destroyed and all settings are standard again! Where are firefox-favorites stored and the settings ? how to backup them rgularely? All other software on my pc still works properly ! even INternetExplorer\");\n\t\tSystem.out.println(\"\\nResult : \"+Utility.classLabel[result]);\n\t}", "public static void main(String[] args) {\n RegexParser regexParser = new RegexParser(new File(args[0]));\n regexParser.parseCharClasses();\n regexParser.parseTokens();\n regexParser.buildDFATable();\n // write DFA Table to file\n try {\n BufferedWriter tableWriter = new BufferedWriter(new FileWriter(new File(args[2])));\n for (int i = 0; i < regexParser.dfaTable.tableRows.size(); i++) {\n tableWriter.write(\"State\" + i);\n tableWriter.newLine();\n for (int j = 0; j < 95; j++) {\n //if (regexParser.dfaTable.tableRows.get(i).nextStates[j] != 1) {\n tableWriter.write(\" \" + (char)(j + 32) + \" \" + regexParser.dfaTable.tableRows.get(i).nextStates[j]);\n //}\n }\n tableWriter.newLine();\n }\n tableWriter.newLine();\n tableWriter.write(\"Accept States\");\n tableWriter.newLine();\n for (int j = 0; j < regexParser.dfaTable.tableRows.size(); j++) {\n for (int i = 0; i < regexParser.dfaTable.nfa.acceptStates.size(); i++) {\n if (regexParser.dfaTable.tableRows.get(j).nfaStates.contains(regexParser.dfaTable.nfa.acceptStates.get(i))) {\n tableWriter.write(\" \" + j);\n }\n }\n }\n tableWriter.close();\n }\n catch (Exception e) {\n System.out.println(\"Could not write to table file\");\n System.exit(0);\n }\n TableWalker tw = new TableWalker(regexParser.dfaTable, new File(args[1]), new File(args[3]));\n System.out.println(\"Success! Check your output files!\");\n//Part 2, piece 1: parsing the grammar\n LL1GrammarParser parser = new LL1GrammarParser(new File(args[4]), regexParser.specReader.tokens);\n parser.parseGrammar();\n\n//piece 2/3: first and follow sets \n System.out.println(\"Creating First and Follow Sets: \");\n\n LL1FFSets sets = new LL1FFSets(parser.rules);\n\n System.out.println(\"Working on the Parsing Table\");\n//piece 4/5: LL(1) parsing table and running it. Success/reject message here.\n LL1ParsingTable table = new LL1ParsingTable(sets, regexParser.specReader.tokens,tw.parsedTokens, parser.rules);\n System.out.println(table.run());\n\n\n }", "protected void run() {\n\t\ttry {\n\t\t\tFileSet fileSet = targetModel.getFileSet();\n\t\t\tsetPhaseLength(phases.length);\n\t\t\tsetPhase(0);\n\t\t\tprintln(\"loading \" + fileSet.getCdt() + \" ... \");\n\t\t\ttry {\n\t\t\t\tparser.setParseQuotedStrings(fileSet.getParseQuotedStrings());\n\t\t\t\tparser.setResource(fileSet.getCdt());\n\t\t\t\tparser.setProgressTrackable(this);\n\t\t\t\tRectData tempTable = parser.loadIntoTable();\n\t\t\t\t\n\t\t\t\tif (loadProgress.getCanceled()) return;\n\t\t\t\tsetPhase(1);\n\t\t\t\tparseCDT(tempTable);\n\t\t\t} catch (LoadException e) {\n\t\t\t\tthrow e;\n\t\t\t} catch (Exception e) {\n\t\t\t\t// this should never happen!\n\t\t\t\tLogBuffer.println(\"TVModel.ResourceLoader.run() : while parsing cdt got error \" + e.getMessage());\n\t\t\t\te.printStackTrace();\n\t\t\t\tthrow new LoadException(\"Error Parsing CDT: \" + e, LoadException.CDTPARSE);\n\t\t\t}\n\t\t\tif (loadProgress.getCanceled()) return;\n\t\t\t\n\t\t\tsetPhase(2);\n\t\t\tif (targetModel.getArrayHeaderInfo().getIndex(\"AID\") != -1) {\n\t\t\t\tprintln(\"parsing atr\");\n\t\t\t\ttry {\n\t\t\t\t\tparser.setResource(fileSet.getAtr());\n\t\t\t\t\tparser.setProgressTrackable(this);\n\t\t\t\t\tRectData tempTable = parser.loadIntoTable();\n\t\t\t\t\tsetPhase(3);\n\t\t\t\t\tparseATR(tempTable);\n\t\t\t\t\ttargetModel.hashAIDs();\n\t\t\t\t\ttargetModel.hashATRs();\n\t\t\t\t\ttargetModel.aidFound(true);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tprintln(\"error parsing ATR: \" + e.getMessage());\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tprintln(\"ignoring array tree.\");\n\t\t\t\t\tsetHadProblem(true);\n\t\t\t\t\ttargetModel.aidFound(false);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\ttargetModel.aidFound(false);\n\t\t\t}\n\t\t\t\n\t\t\tif (loadProgress.getCanceled()) return;\n\t\t\tsetPhase(4);\n\t\t\tif (targetModel.getGeneHeaderInfo().getIndex(\"GID\") != -1) {\n\t\t\t\tprintln(\"parsing gtr\");\n\t\t\t\ttry {\n\t\t\t\t\tparser.setResource(fileSet.getGtr());\n\t\t\t\t\tparser.setProgressTrackable(this);\n\t\t\t\t\tRectData tempTable = parser.loadIntoTable();\n\t\t\t\t\tif (loadProgress.getCanceled()) return;\n\t\t\t\t\tsetPhase(5);\n\t\t\t\t\tparseGTR(tempTable);\n\t\t\t\t\ttargetModel.hashGIDs();\n\t\t\t\t\ttargetModel.hashGTRs();\n\t\t\t\t\ttargetModel.gidFound(true);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tprintln(\"error parsing GTR: \" + e.getMessage());\n\t\t\t\t\tprintln(\"ignoring gene tree.\");\n\t\t\t\t\tsetHadProblem(true);\n\t\t\t\t\ttargetModel.gidFound(false);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\ttargetModel.gidFound(false);\n\t\t\t}\n\t\t\tif (loadProgress.getCanceled()) return;\n\t\t\tsetPhase(6);\n\n\t\t\ttry {\n\t\t\t\tprintln(\"parsing jtv config file\");\n\t\t\t\tString xmlFile = targetModel.getFileSet().getJtv();\n\t\t\t\t\n\t\t\t\tXmlConfig documentConfig;\n\t\t\t\tif (xmlFile.startsWith(\"http:\")) {\n\t\t\t\t\tdocumentConfig = new XmlConfig(new URL(xmlFile), \"DocumentConfig\");\n\t\t\t\t} else {\n\t\t\t\t\tdocumentConfig = new XmlConfig(xmlFile, \"DocumentConfig\");\n\t\t\t\t}\n\t\t\t\ttargetModel.setDocumentConfig(documentConfig);\n\t\t\t} catch (Exception e) {\n\t\t\t\ttargetModel.setDocumentConfig(null);\n\t\t\t\tprintln(\"Got exception \" + e);\n\t\t\t\tsetHadProblem(true);\n\t\t\t}\n\t\t\tif (loadProgress.getCanceled()) return;\n\t\t\tsetPhase(7);\n\t\t\tif (getException() == null) {\n\t\t\t\t/*\t\n\t\t\t\tif (!fileLoader.getCompleted()) {\n\t\t\t\t\tthrow new LoadException(\"Parse not Completed\", LoadException.INTPARSE);\n\t\t\t\t}\n\t\t\t\t//System.out.println(\"f had no exceptoin set\");\n\t\t\t\t*/\n\t\t\t} else {\n\t\t\t\tthrow getException();\n\t\t\t}\n\t\t\ttargetModel.setLoaded(true);\n\t\t\t//\tActionEvent(this, 0, \"none\",0);\n\t\t} catch (java.lang.OutOfMemoryError ex) {\n\t\t\t\t\t\t\tJPanel temp = new JPanel();\n\t\t\t\t\t\t\ttemp. add(new JLabel(\"Out of memory, allocate more RAM\"));\n\t\t\t\t\t\t\ttemp. add(new JLabel(\"see Chapter 3 of Help->Documentation... for Out of Memory\"));\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(parent, temp);\n\t\t} catch (LoadException e) {\n\t\t\tsetException(e);\n\t\t\tprintln(\"error parsing File: \" + e.getMessage());\n\t\t\tprintln(\"parse cannot succeed. please fix.\");\n\t\t\tsetHadProblem(true);\n\t\t}\n\t\tsetFinished(true);\n\t}", "void printUsage(){\n\t\tSystem.out.println(\"Usage: RefactorCalculator [prettyPrint.tsv] [tokenfile.ccfxprep] [cloneM.tsv] [lineM.tsv]\");\n\t\tSystem.out.println(\"Type -h for help.\");\n\t\tSystem.exit(1); //error\n\t}", "public Main(String[] lines) {\n System.out.print(loadInput(lines));\n }", "public String program();", "private static void usage(String argv[]) {\n\tSystem.out.println(\"Usage: java Sudoku\");\n System.exit(-1);\n }", "public static void main(String[] args) throws IOException {\n\r\n ParserMain Parse = new ParserMain(args);\r\n Node n_program = Parse.program();\r\n\tSystem.out.println(\"\\ninside parser: parsing end, pass tree ro type checking\\n\");\r\n CodeGener cg= new CodeGener(n_program,args[0]); ////////////////////////////////////////////////////////////////////////////////////kavita\r\n h_typeCheckingClass tp = new h_typeCheckingClass(n_program);\r\n Node result = tp.starttype(n_program);\r\n\tSystem.out.println(\"\\ninside parser: TYPE checking end, pass tree to WRITING AST\\n\");\r\n AST2word ast=new AST2word();\r\n ast.read(result, args);\r\n\r\n\r\n\r\n\r\n }", "private boolean isValidProgram() throws IOException\n\t{\n\t\t// Initialize return value to false.\n\t\tboolean isValid = false;\n\t\t\n\t\t// If the current token is program type, confirm if valid program header and body exist.\n\t\tif(theCurrentToken.TokenType == TokenType.PROGRAM)\n\t\t{\n\t\t\t// Set Symbol Type for table. \n\t\t\ttheSymbolTable.CURR_SYMBOL.setType(theCurrentToken.TokenType);\n\t\t\t\n\t\t\t// Update current token before checking if program header.\n\t\t\tupdateToken();\n\t\t\tif(isProgramHeader())\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Program Header!\");\n\t\t\t\t// Update current token before checking if program body.\n\t\t\t\tupdateToken();\n\t\t\t\tif(isProgramBody())\n\t\t\t\t{\n\t\t\t\t\t// Update current token before checking if end of program.\n\t\t\t\t\tif(theNextToken != null)\n\t\t\t\t\t\tupdateToken();\n\t\t\t\t\tif(theCurrentToken.TokenType == TokenType.PERIOD)\n\t\t\t\t\t{\n\t\t\t\t\t\tupdateToken();\n\t\t\t\t\t\tisValid = true;\n\t\t\t\t\t\ttheTranslator.WriteCodeToFile();\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\ttheLogger.LogParseError(theCurrentToken);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t\ttheLogger.LogParseError(theCurrentToken);\n\t\t\n\t\treturn isValid;\n\t}", "public static void main(String[] args) throws IOException {\n\t\tCharStream input = CharStreams.fromFileName(\"C:\\\\Users\\\\User\\\\eclipse-workspace\\\\Compilateur-Aisha-Liliya\\\\src\\\\test\\\\test0.txt\");\n\t\tLangageLexer lexer = new LangageLexer( input);\n\t\tLangageParser parser = new \tLangageParser(new CommonTokenStream(lexer));\n\t\tListener l =new Listener();\n\t\tparser.addParseListener(l);\n\t\t\n\t\tParseTree tree = parser.code();\n\tl.s.printTE();\n\tl.s.printTS();\n\tl.s.printQuad();\n\tl.s.printCODEOBJET();\n\t}", "@Override\r\n\tpublic int loadProgramFromFile(Robot robot, String path)\r\n\t{\r\n\t\t\r\n\t\t\r\n\t\tString inputProgram = null;\r\n\t\tjava.io.FileReader fileReader = null;\r\n\t\tStringBuffer buffer = null;\r\n\t\t\r\n\t\tjava.io.File file = new java.io.File(path);\r\n\t\tif(file.exists() && file.canRead())\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tfileReader = new java.io.FileReader(file);\r\n\t\t\t\tbuffer = new StringBuffer();\r\n\t\t\t\tint len;\r\n\t\t\t\tchar[] chr = new char[4096];\r\n\t\t\t\t// if the read()-method returns -1 the end of the string is reached\r\n\t\t\t\twhile ((len = fileReader.read(chr)) > 0) \r\n\t\t\t\t{\r\n\t\t\t\t\tbuffer.append(chr, 0, len);\r\n\t\t\t\t}\r\n\t\t\t} \r\n\t\t\t\t\r\n\t\t\tcatch (IOException e)\r\n\t\t\t{\r\n\t\t\t}\r\n\t\t\tfinally \r\n\t\t\t{\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\tfileReader.close();\r\n\t\t\t\t}\r\n\t\t\t\tcatch (IOException e)\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\tinputProgram = buffer.toString();\r\n\t\t}\r\n\t\t\r\n\t\tif(inputProgram == null)\r\n\t\t{\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\ttry\r\n\t\t{\r\n\t\t\trobot.setProgram(inputProgram);\r\n\t\t}\r\n\t\tcatch(IllegalSyntaxException exc)\r\n\t\t{\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\t\r\n\t\tif(robot.getProgram() == Parser.parse(0, robot, inputProgram))\r\n\t\t{\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "public static void main(String[] args) {\n\n\t\t// File file=new File(\"./testClasses/binarysearch.java\");\n\t\tCharStream input = null;\n\t\tif (args.length > 0) {\n\t\t\ttry {\n\t\t\t\tinput = CharStreams.fromFileName(args[0]);\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(BGSTYLE + RED + BOLD + UNDERLINE\n\t\t\t\t\t\t+ \"THE GIVEN FILE PATH IS WRONG!\" + RESET);\n\t\t\t\tSystem.out.println(YELLOW + BOLD\n\t\t\t\t\t\t+ \"IF EXECUTING THE JAR, CHECK YOUR COMMAND \"\n\t\t\t\t\t\t+ \" java -jar MJCompiler <filePath> \\n\"\n\t\t\t\t\t\t+ \"OTHERWISE CHECK THE MAIN METHOD\" + RESET);\n\t\t\t\treturn;\n\t\t\t}\n\t\t} else {\n\n\t\t\ttry {\n\t\t\t\tinput = CharStreams.fromFileName(\"./testFiles/factorial.java\");\n\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(BGSTYLE + RED + BOLD + UNDERLINE\n\t\t\t\t\t\t+ \"THE GIVEN FILE PATH IS WRONG!!\" + RESET);\n\t\t\t\tSystem.out.println(YELLOW + BOLD\n\t\t\t\t\t\t+ \"IF EXECUTING THE JAR, CHECK YOUR COMMAND \"\n\t\t\t\t\t\t+ \" java -jar MJCompiler <filePath> \\n\"\n\t\t\t\t\t\t+ \"OTHERWISE CHECK THE MAIN METHOD\" + RESET);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tMiniJavaLexer lexer = new MiniJavaLexer(input);\n\t\tMiniJavaParser parser = new MiniJavaParser(new BufferedTokenStream(\n\t\t\t\tlexer));\n\t\tParseTree tree = parser.program();\n\t\tTrees.inspect(tree, parser);\n\n\t\t// ---------PrintVisitor-------------\n\t\tPrintVisitor pv = new PrintVisitor();\n\t\tpv.visitMiniJava(tree);\n\n\t\t// --------SymbolTableVisitor--------\n\t\tSymbolTableVisitor symbolTableVisitor = new SymbolTableVisitor();\n\t\tSymbolTable visitedST = (SymbolTable) symbolTableVisitor.visit(tree);\n\t\tif (symbolTableVisitor.getErrorFlag()) {\n\t\t\tSystem.err\n\t\t\t\t\t.println(BGSTYLE\n\t\t\t\t\t\t\t+ RED\n\t\t\t\t\t\t\t+ \"THE PROGRAM COTAINS ERRORS! \\n CHECK CONSOLE AND PARSE TREE WINDOW FOR MORE INFO!\");\n\t\t} else {\n\t\t\tvisitedST.printTable();\n\t\t\tvisitedST.resetTable();\n\n\t\t\t// ------TypeCheckVisitor\n\t\t\tTypeCheckVisitor tcv = new TypeCheckVisitor(visitedST);\n\t\t\ttcv.visit(tree);\n\t\t\tif (tcv.getErrorCount() > 0) {\n\t\t\t\tSystem.err.println(\"The Program contains \"\n\t\t\t\t\t\t+ tcv.getErrorCount() + \" Type Errors!\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"TypeChecking Done With No Errors!\");\n\t\t\t}\n\t\t}\n\n\t}", "public static void main(String args[]) throws IOException{\n\t\tscan = new BufferedReader(new InputStreamReader(System.in));\n\t\tregisters = new HashMap<Character,String>();\n\t\tmemory = new HashMap<Integer , String>();//Memory location 0 will remain unused\n\t\tlabels = new HashMap<String , Integer>();\n\t\thexa = \"0123456789ABCDEF\".toCharArray();\n\t\tpossible_codes = \"HLT RST MOV MVI LXI LDA STA LHLD SHLD LDAX STAX XCHG ADD ADC ADI ACI DAD SUB SBB SUI INR DCR INX DCX ANA ANI ORA ORI XRA XRI CMA CMC STC CMP CPI RLC RRC RAL RAR JMP JZ JNZ JC JNC JP JM JPE JPO CALL CZ CNZ CC CNC CP CM CPE CPO RET RZ RNZ RC RNC RP RM RPE RPO PCHL IN OUT PUSH POP XTHL SPHL\".split(\" \");\n\t\tgeneral_registers = new HashSet<Character>();\n\t\tAC=CS=Z=P=S=false;\n\t\tSP = 65536;\n\t\tPC = 0;\n\t\tmodified = false;\n\t\tadd_the_general_registers();\n\n\t\tSystem.out.println(\"SIMULATOR FOR 8085 MICROPROCESSOR\\n\");\n\t\t//Take the input of code\n\t\tSystem.out.println(\"ENTER THE CODE :-\\n\");\n\t\ttake_the_input();\n\t\t//Take the input of memory values\n\t\tSystem.out.println(\"ENTER THE MEMORY VALUES :-\");\n\t\tSystem.out.println(\"IF NO VALUE HAS TO BE ENTERED PRESS N ELSE WRITE THE ADDRESS.\\n\");\n\t\ttake_memory_values();\n\t\t//Execution starts\n\t\tSystem.out.println(\"\\nNOW EXECUTION WILL BEGIN...\");\n\t\texecute();\n\t\t//Providing the output to the user\n\t\tSystem.out.println(\"\\nENTER THE MEMORY LOCATIONS AND REGISTER VALUES YOU WANT TO CHECK : \");\n\t\tSystem.out.println(\"(WHEN YOU ARE DONE CHECKING TYPE N)\\n\");\n\t\toutput_process();\n\t}", "private void compile(SSAProgram prog, String methodName, SSAStatement s) {\n // recommended for debuggability:\n sb.append(\" # \");\n if (s.getRegister() >= 0)\n sb.append(reg(s));\n sb.append(\": \");\n sb.append(s.toString());\n sb.append(\"\\n\");\n\n SSAStatement left, right;\n String special;\n StringBuilder built = new StringBuilder();\n\n left = s.getLeft();\n right = s.getRight();\n\n switch (s.getOp()) {\n // FILLIN (this is the actual code generator!)\n case Unify:\n case Alias:\n break; // Do nothing\n case Parameter:\n int paramPos = (Integer)s.getSpecial();\n if(paramPos > 3) {\n built.append(\" lw $\" + reg(s) + \", \" + (paramPos-3)*wordSize + \"($fp)\\n\"); \n }\n break; \n case Int:\n int intValue = (Integer)s.getSpecial();\n built.append(\" li $\" + reg(s) + \", \" + intValue + \"\\n\");\n break;\n case Print:\n callerSave(-1);\n built.append(crstores);\n built.append(moveRegister(\"a0\", reg(left)));\n built.append(\" jal minijavaPrint\\n\");\n built.append(crloads);\n break;\n case Boolean:\n boolean boolValue = (Boolean)s.getSpecial();\n if(boolValue) {\n built.append(\" li $\" + reg(s) + \", \" + 1 + \"\\n\");\n } else {\n built.append(\" move $\" + reg(s) + \", $zero\\n\");\n }\n break;\n case This:\n built.append(\" move $\" + reg(s) + \", $v0\\n\");\n break;\n case Arg:\n int argPos = (Integer)s.getSpecial();\n if(argPos > 3) {\n built.append(\" sw $\" + reg(left) + \", \" + (argPos-4)*wordSize + \"($sp)\\n\"); \n } else {\n built.append(moveRegister(reg(s) ,reg(left)));\n }\n break;\n case Null:\n built.append(\" move $\" + reg(s) + \", $zero\\n\");\n break;\n case NewObj:\n callerSave(freeReg(s));\n built.append(crstores);\n special = (String)s.getSpecial();\n built.append(\" la $a0, mj__v_\" + special + \"\\n\");\n built.append(\" li $a1, \" + objectSize(prog, prog.getClass(special)) + \"\\n\");\n built.append(\" jal minijavaNew\\n\");\n built.append(\" move $\" + reg(s) + \", $v0\\n\");\n built.append(crloads);\n break;\n case NewIntArray:\n callerSave(freeReg(s));\n built.append(crstores);\n built.append(moveRegister(\"a0\", reg(left)));\n built.append(\" jal minijavaNewArray\\n\");\n built.append(\" move $\" + reg(s) + \", $v0\\n\");\n built.append(crloads);\n break;\n case Label:\n special = (String)s.getSpecial();\n built.append(\" .\" + special + \":\\n\");\n break;\n case Goto:\n special = (String)s.getSpecial();\n built.append(\" j .\" + special + \"\\n\");\n break;\n case Branch:\n special = (String)s.getSpecial();\n built.append(\" bne $\" + reg(left) + \", $zero .\" + special +\"\\n\");\n break;\n case NBranch:\n // could change to beqz\n special = (String)s.getSpecial();\n built.append(\" beq $\" + reg(left) + \", $zero, .\" + special +\"\\n\");\n break;\n case Call:\n String clasName = left.getType().toString();\n SSACall call = (SSACall)s.getSpecial();\n String funcName = call.getMethod();\n Vtable vtab = getVtable(prog, prog.getClass(clasName));\n int methodOffset = vtab.methodOffsets.get(funcName);\n callerSave(freeReg(s));\n built.append(crstores);\n built.append(\" move $v0, $\" + reg(left) + \"\\n\");\n built.append(\" lw $v1, ($v0)\\n\");\n built.append(\" lw $v1, \" + (methodOffset*wordSize) + \"($v1)\\n\");\n built.append(\" jal $v1\\n\");\n built.append(\" move $\" + reg(s) + \", $v0\\n\");\n built.append(crloads);\n break;\n case Return:\n built.append(\" move $v0, $\" + reg(left) + \"\\n\");\n built.append(\" j .ret_\" + methodName + \"\\n\");\n break;\n case Member:\n special = (String)s.getSpecial();\n String clname = left.getType().toString();\n int memOffset;\n if(clname.equals(\"int[]\")) {\n memOffset = 0;\n } else {\n memOffset = fieldOffset(prog, prog.getClass(clname), special);\n }\n if(memOffset == 0) {\n built.append(\" lw $\" + reg(s) + \", ($\" + reg(left) + \")\\n\");\n } else {\n built.append(\" lw $\" + reg(s) + \", \" + (wordSize*memOffset) + \"($\" + reg(left) + \")\\n\");\n }\n break;\n case Index:\n built.append(\" mul $v1, $\" + reg(right) + \", 4\\n\");\n built.append(\" add $v1, $v1, 4\\n\");\n built.append(\" add $v1, $v1, $\" + reg(left) + \"\\n\");\n built.append(\" lw $\" + reg(s) + \", ($v1)\\n\");\n break;\n case VarAssg:\n built.append(moveRegister(reg(s), reg(left)));\n break;\n case MemberAssg:\n special = (String)s.getSpecial();\n String className = left.getType().toString();\n int memSOffset = fieldOffset(prog, prog.getClass(className), special);\n built.append(\" sw $\" + reg(right) + \", \" + (memSOffset*wordSize) + \"($\" + reg(left) + \")\\n\");\n built.append(moveRegister(reg(s), reg(right)));\n break;\n case IndexAssg:\n SSAStatement index = (SSAStatement)s.getSpecial();\n built.append(\" mul $v1, $\" + reg(index) + \", 4\\n\");\n built.append(\" add $v1, $v1, 4\\n\");\n built.append(\" add $v1, $v1, $\" + reg(left) + \"\\n\");\n built.append(\" sw $\" + reg(right) + \", ($v1)\\n\");\n built.append(moveRegister(reg(s), reg(right)));\n break;\n case Not:\n built.append(\" seq $\" + reg(s) + \", $zero , $\" + reg(left) + \"\\n\");\n break;\n case Eq:\n built.append(\" seq $\" + reg(s) + \", $\" + reg(left) + \", $\" + reg(right) + \"\\n\");\n break; \n case Ne:\n built.append(\" sne $\" + reg(s) + \", $\" + reg(left) + \", $\" + reg(right) + \"\\n\");\n break;\n case Lt:\n built.append(\" slt $\" + reg(s) + \", $\" + reg(left) + \", $\" + reg(right) + \"\\n\");\n break;\n case Le:\n built.append(\" sle $\" + reg(s) + \", $\" + reg(left) + \", $\" + reg(right) + \"\\n\");\n break; \n case Gt:\n built.append(\" sgt $\" + reg(s) + \", $\" + reg(left) + \", $\" + reg(right) + \"\\n\");\n break;\n case Ge:\n built.append(\" sge $\" + reg(s) + \", $\" + reg(left) + \", $\" + reg(right) + \"\\n\");\n break;\n case And:\n built.append(\" add $\" + reg(s) + \", $\" + reg(left) + \", $\" + reg(right) + \"\\n\");\n built.append(\" seq $\" + reg(s) + \", $\" + reg(s) + \", 2\\n\");\n break;\n case Or:\n built.append(\" add $\" + reg(s) + \", $\" + reg(left) + \", $\" + reg(right) + \"\\n\");\n built.append(\" sgt $\" + reg(s) + \", $\" + reg(s) + \", 0\\n\");\n break;\n case Plus:\n built.append(\" add $\" + reg(s) + \", $\" + reg(left) + \", $\" + reg(right) + \"\\n\");\n break; \n case Minus:\n built.append(\" sub $\" + reg(s) + \", $\" + reg(left) + \", $\" + reg(right) + \"\\n\");\n break; \n case Mul:\n built.append(\" mul $\" + reg(s) + \", $\" + reg(left) + \", $\" + reg(right) + \"\\n\");\n break; \n case Div: \n // can change this to one liner after verifying it works\n built.append(\" div $\" + reg(s) + \", $\"+ reg(left) + \", $\" + reg(right) + \"\\n\");\n //built.append(\" mflo $\" + reg(s) + \"\\n\");\n break; \n case Mod:\n // can change to one liner\n //built.append(\" div $\" + reg(left) + \", $\" + reg(right) + \"\\n\");\n //built.append(\" mfhi $\" + reg(s) + \"\\n\");\n built.append(\" rem $\" + reg(s) + \", $\"+ reg(left) + \", $\" + reg(right) + \"\\n\");\n \n break;\n case Store:\n int storeVal = (Integer)s.getSpecial();\n built.append(\" sw $\" + reg(left) + \", -\" + (storeVal+1)*wordSize + \"($fp)\\n\");\n break;\n case Load:\n int loadVal = (Integer)s.getSpecial();\n built.append(\" lw $\" + reg(s) + \", -\" + (loadVal+1)*wordSize + \"($fp)\\n\");\n break;\n default:\n throw new Error(\"Implement MIPS compiler for \" + s.getOp() + \"!\");\n }\n\n sb.append(built);\n }", "public static int step() {\n if (instructions_addr.get(line_count) == null) {\n // System.exit(1);\n return -1;\n }\n String[] in = (instructions_addr.get(line_count)).split(\"\\\\s+\");\n int r1 = 0;\n int r2 = 0;\n int r3 = 0;\n try {\n r1 = registers.get(in[1]);\n r2 = registers.get(in[2]);\n r3 = registers.get(in[3]);\n } catch (NullPointerException npe) {\n // sike no exception\n } catch (ArrayIndexOutOfBoundsException e) {\n\n }\n System.out.println(line_count+Arrays.toString(in));\n String op = in[0];\n switch (op) {\n case \"add\":\n register[r1] = register[r2] + register[r3];\n line_count = line_count + 1;\n break;\n\n case \"sub\":\n register[r1] = register[r2] - register[r3];\n line_count = line_count + 1;\n break;\n\n case \"addi\":\n register[r1] = register[r2] + Integer.parseInt(in[3]);\n line_count = line_count + 1;\n break;\n\n case \"beq\":\n if (register[r1] == register[r2]) {\n actual(1);\n line_count = labels_addr.get(in[3]);\n } else {\n actual(0);\n line_count++;\n }\n break;\n\n case \"bne\":\n if (register[r1] != register[r2]) {\n line_count = labels_addr.get(in[3]);\n actual(1);\n } else {\n line_count = line_count + 1;\n actual(0);\n }\n break;\n\n case \"or\":\n register[r1] = register[r2] | register[r3];\n line_count = line_count + 1;\n break;\n\n case \"and\":\n register[r1] = register[r2] & register[r3];\n line_count = line_count + 1;\n break;\n\n case \"sll\":\n register[r1] = register[r2] << Integer.parseInt(in[3]);\n line_count = line_count + 1;\n break;\n\n case \"slt\":\n if (register[r2] < register[r3]) {\n register[r1] = 1;\n } else {\n register[r1] = 0;\n }\n line_count = line_count + 1;\n break;\n\n case \"lw\":\n r2 = Integer.parseInt(in[2].substring(0, in[2].indexOf(\"(\")));\n r3 = registers.get(in[3].substring(0, in[3].indexOf(\")\"))); // imm\n register[r1] = data_mem[r2 + register[r3]];\n line_count = line_count + 1;\n break;\n\n case \"sw\":\n r2 = Integer.parseInt(in[2].substring(0, in[2].indexOf(\"(\")));\n r3 = registers.get(in[3].substring(0, in[3].indexOf(\")\"))); // imm\n data_mem[r2 + register[r3]] = register[r1];\n line_count = line_count + 1;\n break;\n\n case \"j\":\n line_count = labels_addr.get(in[1]);\n break;\n\n case \"jr\":\n line_count = register[31];\n break;\n\n case \"jal\":\n register[31] = line_count + 1;\n line_count = labels_addr.get(in[1]);\n break;\n\n default:\n line_count = line_count + 1;\n }\n return 1;\n }", "public static void printProg(ParseTree parseTree)\r\n {\r\n if ((parseTree.getNodeType() != TreeNode.NodeType.PROG))\r\n throw new AssertionError(\"Node must be an PROG\");\r\n\r\n System.out.print(\"program \\n\");\r\n indentLevel += 1;\r\n parseTree.moveToChild(0);\r\n printDeclSeq(parseTree);\r\n parseTree.moveToParent();\r\n\r\n indent();\r\n System.out.print(\"begin\\n\");\r\n indentLevel += 1;\r\n\r\n parseTree.moveToChild(1);\r\n printStmtSeq(parseTree);\r\n parseTree.moveToParent();\r\n\r\n indentLevel -= 1;\r\n indent();\r\n System.out.print(\"end\\n\");\r\n }", "public static void main(String[] args) {\n\t\t\n\t\tmakeCFG(\"E -> T + T\\n \"\n\t\t\t\t+ \"E -> T - T\\n \"\n\t\t\t\t+ \"T -> F * F\\n \"\n\t\t\t\t+ \"T -> F / F\\n\", \"E\");\n\t\t\n\t\t\n//\t\tNontermianlSymbol procedure = new NontermianlSymbol(\"procedure\");\n//\t\tNontermianlSymbol subprocedure = new NontermianlSymbol(\"subprocedure\");\n//\t\tNontermianlSymbol constDefinition = new NontermianlSymbol(\"constDefinition\");\n//\t\tNontermianlSymbol varDefinition = new NontermianlSymbol(\"varDefinition\");\n//\t\tNontermianlSymbol statement = new NontermianlSymbol(\"statement\");\n//\t\tNontermianlSymbol condition = new NontermianlSymbol(\"condition\");\n//\t\tNontermianlSymbol expression = new NontermianlSymbol(\"expression\");\n//\t\tNontermianlSymbol term = new NontermianlSymbol(\"term\");\n//\t\tNontermianlSymbol factor = new NontermianlSymbol(\"factor\");\n\t\t\n\t\t\n//\t\tNontermianlSymbol S = new NontermianlSymbol(\"S\");\n//\t\tNontermianlSymbol T = new NontermianlSymbol(\"T\");\n//\t\t\n//\t\tTerminalSymbol a = new TerminalSymbol(\"a\");\n//\t\tTerminalSymbol and = new TerminalSymbol(\"^\");\n//\t\tTerminalSymbol lp = new TerminalSymbol(\"(\");\n//\t\tTerminalSymbol rp = new TerminalSymbol(\")\");\n//\t\tTerminalSymbol comma = new TerminalSymbol(\",\");\n//\t\t\n//\t\tRule r1 = new Rule(S, Arrays.asList(a));\n//\t\tRule r2 = new Rule(S, Arrays.asList(and));\n//\t\tRule r3 = new Rule(S, Arrays.asList(lp,T,rp));\n//\t\tRule r4 = new Rule(T, Arrays.asList(S));\n//\t\tRule r5 = new Rule(T, Arrays.asList(T,comma,S));\n//\t\t\n//\t\tSet<Rule> rules = new HashSet<>(Arrays.asList(r1,r2,r3,r4,r5));\n//\t\tSet<NontermianlSymbol> nonterminals = new HashSet<>(Arrays.asList(T,S));\n//\t\tSet<TerminalSymbol> terminals = new HashSet<>(Arrays.asList(a,and,lp,rp,comma));\n//\t\tNontermianlSymbol startSymbol = S;\n//\t\t\n//\t\tCFG cfg = new CFG(rules, nonterminals,terminals,startSymbol);\n//\t\t\n//\t\tSystem.out.println(cfg.isLL1());\n//\t\tcfg.removeLeftRecursion();\n//\t\tSystem.out.println(cfg.isLL1());\n// \n//\t\tfor(Rule rule : cfg.rules) {\n//\t\t\tSystem.out.println(rule.toString() + \"\\t\\t\" + cfg.SELECT(rule));\n//\t\t}\n\t}", "private static void startWork()\n {{\n String ftnTxt= null;\n FileToFtnParser parser= new FileToFtnParser( arg_ir_filename );\n String hashes39= \"#######################################\";\n\n while( true ) {\n\t ftnTxt= parser.parseFtn();\n\t if ( ftnTxt == null ) { break; }\n\t if ( arg_verbosity > 1 ) {\n\t System.out.println ( hashes39+ hashes39 );\n\t System.out.println ( \"found function: <<EOF \" );\n\t System.out.println ( ftnTxt );\n\t System.out.println ( \"EOF\" );\n\t }\n\n\t FtnParts ftnParts= new FtnParts( ftnTxt );\n\n\t if ( arg_verbosity > 0 ) {\n System.out.println( \"---\" );\n\t System.out.println( \"function: \" );\n\t System.out.println( ftnParts.toString() );\n\t }\n\n\t TestGenerator generator= new TestGenerator( ftnParts, arg_numCalls );\n\t String outFilename= arg_outDirname+ File.separator+ \n\t ftnParts.getNameWithoutSigil()+ \".ll\";\n\t generator.generate( outFilename );\n }\n\n }}", "Program createProgram();", "Program createProgram();", "Program createProgram();", "public static void main(String[] args) throws IOException {\n br = new BufferedReader(new FileReader(\"input.txt\"));\r\n\r\n int T = nextInt();\r\n for (int t = 1; t <= T; t++) {\r\n nextInt();\r\n int X = nextInt();\r\n String lString = nextToken();\r\n\r\n StringBuilder s = new StringBuilder();\r\n for (; X > 0; X--) s.append(lString);\r\n char[] arr = s.toString().toCharArray();\r\n String soln = solve(arr) ? \"YES\" : \"NO\";\r\n\r\n System.out.printf(\"Case #%d: %s%n\", t, soln);\r\n }\r\n }", "public static void main(String[] args) throws Exception {\n Scanner scan = new Scanner(new File(\"prob01.txt\"));\n String a = scan.nextLine();\n System.out.println(\"Greetings, O Honorable \" + a + \" the Magnificent! May I kiss your signet ring?\");\n }", "public void run() throws IloException {\n\t\t\n\t\t//Instancie la classe Cplex avec le programme lineaire et la nature\n\t\tCplex cplex = new Cplex(prog, nature);\n\t\tboolean st = false;\n\t\tString info;\n\t\tint i = 0;\n\t\t\n\t\t/*Tant que l'on a des sous tours dans le modèle*/\n\t\tdo {\n\t\t\t//Lancement du solve du model de cplex\n\t\t\tcplex.solve();\n\t\t\t\n\t\t\t//Récupère un booléen en fonction de la présence de sous tours après le solve\n\t\t\tst = contrainteSousTour(cplex);\n\t\t\tinfo = \"Contrainte de sous-tours ajouté au modèle\";\n\t\t\tInterface.majAffichage(info);\n\t\t\ti++;\n\t\t} while (st && i!= 5);\n\n\t}", "@Test(timeout = 4000)\n public void test113() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(false);\n assertEquals(\"=== Summary ===\\n\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n }", "public static void main(String[] args) throws Exception {\n \n\n\t File pasta = new File(\"C:\\\\Users\\\\Álvaro\\\\workspace\\\\ProjetoTCC\\\\src\\\\data\\\\dir\\\\training\\\\phishing\");\n\t \n\t File[] arquivos = pasta.listFiles();\n\t \n\t \n\t for (File file : arquivos) {\n\t\t System.out.println(file.getName()+ \"\tphishing\");\n\t }\n\t \n\t File pasta1 = new File(\"C:\\\\Users\\\\Álvaro\\\\workspace\\\\ProjetoTCC\\\\src\\\\data\\\\dir\\\\training\\\\not_phishing\");\n\t \n\t File[] arquivos1 = pasta1.listFiles();\n\t \n\t \n\t for (File file : arquivos1) {\n\t\t if(!file.isDirectory()){\n\t\t\t System.out.println(file.getName()+ \"\tnot_phishing\"); \n\t\t }\t\t \n\t }\n\t \n//\t FileReader m = new FileReader(\"C:\\\\Users\\\\Álvaro\\\\workspace\\\\ProjetoTCC\\\\src\\\\data\\\\dir\\\\training\\\\EMAIL000240\");\n//\n//\t\tStringBuffer text = new StringBuffer();\n//\t\tint l;\n//\t\twhile ((l = m.read()) != -1) {\n//\t\t\ttext.append((char) l);\n//\t\t}\n//\t\tm.close();\n//\t\t\n//\t\tString texto = text.toString();\n//\t\t\n//\t\tSystem.out.println(texto);\n//\t\tSystem.out.println(\"#########################################################################################################\");\n//\t\tSystem.out.println(\"############################################### NOVO TEXTO ##############################################\");\n//\t\tSystem.out.println(\"#########################################################################################################\");\n//\t\tString texto1 = texto.replaceAll(\"<.*?>\", \"\");\n//\t\ttexto1 = texto1.replaceAll(\"<.*?>\", \"\");\n//\t\ttexto1 = texto1.replaceAll(\"[0-9]\", \"\");\n//\t\tSystem.out.println(texto1);\n\t \n\t\t\n\t\t \n\t \n\t \n }", "public static void main(String argv[]) {\n if (argv.length == 0) {\n System.out.println(\"Usage : java AnalizadorLexicoPaginas [ --encoding <name> ] <inputfile(s)>\");\n }\n else {\n int firstFilePos = 0;\n String encodingName = \"UTF-8\";\n if (argv[0].equals(\"--encoding\")) {\n firstFilePos = 2;\n encodingName = argv[1];\n try {\n java.nio.charset.Charset.forName(encodingName); // Side-effect: is encodingName valid? \n } catch (Exception e) {\n System.out.println(\"Invalid encoding '\" + encodingName + \"'\");\n return;\n }\n }\n for (int i = firstFilePos; i < argv.length; i++) {\n AnalizadorLexicoPaginas scanner = null;\n try {\n java.io.FileInputStream stream = new java.io.FileInputStream(argv[i]);\n java.io.Reader reader = new java.io.InputStreamReader(stream, encodingName);\n scanner = new AnalizadorLexicoPaginas(reader);\n while ( !scanner.zzAtEOF ) scanner.debug_next_token();\n }\n catch (java.io.FileNotFoundException e) {\n System.out.println(\"File not found : \\\"\"+argv[i]+\"\\\"\");\n }\n catch (java.io.IOException e) {\n System.out.println(\"IO error scanning file \\\"\"+argv[i]+\"\\\"\");\n System.out.println(e);\n }\n catch (Exception e) {\n System.out.println(\"Unexpected exception:\");\n e.printStackTrace();\n }\n }\n }\n }", "public void runProgram(Path p) {\n\t\ttry {\n\t\t\tFile f = new File(p.toString());\n\t\t\tString dir = f.getParent();\n\t\t\tString filename = f.getName();\n\t\t\tString currentOS = System.getProperty(\"os.name\").toLowerCase();\n\n\t\t\t//System.out.println(\"OS: \" + currentOS);\n\t\t\t\n\t\t\tif (currentOS.indexOf(\"win\") >= 0) {\n\t\t\t\tString compiled = dir.concat(\"\\\\\").concat(filename.substring(0, f.getName().lastIndexOf(\".\")).concat(\".exe\"));\n\t\t\t\t\n\t\t\t\t//System.out.println(\"Compiled File: \" + compiled);\n\n\t\t\t\tif (this.programIfExists(compiled)) {\n\t\t\t\t\tSystem.out.println(\"Finished Compiling\");\n\t\t\t\t\tProcessBuilder pb = new ProcessBuilder(\"cmd\", \"/k\", \"start\", compiled);\n\t\t\t\t\tProcess proc = pb.start();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Some compilation error occured\", \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\telse if(currentOS.indexOf(\"mac\") >= 0) {\n\t\t\t\tString compiled = dir.concat(\"\\\\\").concat(filename.substring(0, f.getName().lastIndexOf(\".\")).concat(\".out\"));\n\t\t\t\tRuntime rt = Runtime.getRuntime();\n\t\t\t\tProcess proc = rt.exec(compiled);\n\t\t\t}\n\n\t\t\telse if(currentOS.indexOf(\"nix\") >= 0 || currentOS.indexOf(\"nux\") >= 0) {\n\t\t\t\tString compiled = dir.concat(\"\\\\\").concat(filename.substring(0, f.getName().lastIndexOf(\".\")));\n\t\t\t\tRuntime rt = Runtime.getRuntime();\n\t\t\t\tProcess proc = rt.exec(compiled);\n\t\t\t}\n\t\t}\n\n\t\tcatch(Exception ex) {\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}", "public static void main(String argv[]) {\n if (argv.length == 0) {\n System.out.println(\"Usage : java AnalizadorLexicoArchivo [ --encoding <name> ] <inputfile(s)>\");\n }\n else {\n int firstFilePos = 0;\n String encodingName = \"UTF-8\";\n if (argv[0].equals(\"--encoding\")) {\n firstFilePos = 2;\n encodingName = argv[1];\n try {\n java.nio.charset.Charset.forName(encodingName); // Side-effect: is encodingName valid? \n } catch (Exception e) {\n System.out.println(\"Invalid encoding '\" + encodingName + \"'\");\n return;\n }\n }\n for (int i = firstFilePos; i < argv.length; i++) {\n AnalizadorLexicoArchivo scanner = null;\n try {\n java.io.FileInputStream stream = new java.io.FileInputStream(argv[i]);\n java.io.Reader reader = new java.io.InputStreamReader(stream, encodingName);\n scanner = new AnalizadorLexicoArchivo(reader);\n while ( !scanner.zzAtEOF ) scanner.debug_next_token();\n }\n catch (java.io.FileNotFoundException e) {\n System.out.println(\"File not found : \\\"\"+argv[i]+\"\\\"\");\n }\n catch (java.io.IOException e) {\n System.out.println(\"IO error scanning file \\\"\"+argv[i]+\"\\\"\");\n System.out.println(e);\n }\n catch (Exception e) {\n System.out.println(\"Unexpected exception:\");\n e.printStackTrace();\n }\n }\n }\n }", "public String translate(Program p)\r\n\t{\r\n\t\tString headers= \"#include \\\"lcpl_runtime.h\\\" \\n\";\r\n\t\t\r\n\t\t/* static data : strings used in the program */\r\n\t\tString stringConstants;\r\n\t\t_GlobalStringRuntime gsr = new _GlobalStringRuntime();\r\n\t\tgsr.searchProgramForStrings(p);\r\n\t\tstringConstants = gsr.getStringCode();\r\n\t\t\r\n\t\t/* object layouts: pointer to RTTI followed by attributes */\r\n\t\tString objectLayouts;\r\n\t\t_Object_Layout ol = new _Object_Layout();\r\n\t\tol.generateObjectLayoutCode(p);\r\n\t\tobjectLayouts =ol.getObjLayoutCode();\r\n\t\t\r\n\t\t/* static data : class names, as strings */\r\n\t\tString classNames;\r\n\t\t_ClassName cn = new _ClassName();\r\n\t\tcn.generateClassNames(p);\r\n\t\tclassNames = cn.getClassNameCode();\r\n\t\t\r\n\t\t/* constructors */\r\n\t\tString constructorDeclarations;\r\n\t\t_ConstructDeclarations cd = new _ConstructDeclarations();\r\n\t\tcd.generateConstructDecl(p);\r\n\t\tconstructorDeclarations = cd.getConstructDeclCode();\r\n\t\t\r\n\t\t/* declaration of methods */\r\n\t\tString methodDeclarations;\r\n\t\t_MethodDeclarations md = new _MethodDeclarations();\r\n\t\tmd.generateMethodDeclCode(p);\r\n\t\tmethodDeclarations = md.getMethodDeclCode();\r\n\t\t\r\n\t\t/* runtime type information (RTTI) - class name, class size, parent class, vtable */\r\n\t\tString vtables;\r\n\t\t_RTTI_Layout rtti = new _RTTI_Layout();\r\n\t\trtti.generateLayoutCode(p);\r\n\t\tvtables = rtti.getLayoutCode();\r\n\t\t\r\n\t\t/* definitions of methods in the program, including constructors */\r\n\t\tString constructors;\r\n\t\t//\"void Main_init(struct TMain *self){ IO_init((struct TIO*)self); } \\n\";\r\n\t\t_ClassInit ci = new _ClassInit(rtti.vt, gsr.getLiterals());\r\n\t\tci.generateMethodsCode(p, rtti.getSortedClassesList());\r\n\t\tconstructors = ci.getInitMethodsCode();\r\n\t\t\r\n\t\tString startup= \"void startup(void) { struct TMain *main=__lcpl_new(&RMain); M4_Main_main(main); } \\n\";\r\n\t\tSystem.out.println(headers+stringConstants+objectLayouts+classNames+constructorDeclarations+methodDeclarations+vtables+constructors+startup);\r\n\t\t//System.out.println(stringConstants);\r\n\t\t/*\r\n\t\tSystem.out.println(\"=======headers========\");\r\n\t\tSystem.out.println(headers);\r\n\t\tSystem.out.println(\"=======stringConstanf========\");\r\n\t\tSystem.out.println(stringConstants);\r\n\t\tSystem.out.println(\"=======objectLayou========\");\r\n\t\tSystem.out.println(objectLayouts);\r\n\t\tSystem.out.println(\"=======classnames========\");\r\n\t\tSystem.out.println(classNames);\r\n\t\tSystem.out.println(\"=======constructDecl========\");\r\n\t\tSystem.out.println(constructorDeclarations);\r\n\t\tSystem.out.println(\"=======methodDecl========\");\r\n\t\tSystem.out.println(methodDeclarations);\r\n\t\tSystem.out.println(\"=======vtables========\");\r\n\t\tSystem.out.println(vtables);\r\n\t\tSystem.out.println(\"=======constructors========\");\r\n\t\tSystem.out.println(constructors);\r\n\t\tSystem.out.println(\"=======startup========\");\r\n\t\tSystem.out.println(startup);*/\r\n\t\treturn headers+stringConstants+objectLayouts+classNames+constructorDeclarations+methodDeclarations+vtables+constructors+startup;\r\n\t\t\r\n\t}", "public DTProgramaFormacion verInfoPrograma(String nombreProg) throws ProgramaFormacionExcepcion;", "public static void main(String[] args) {\n\t\tString filename = \"C:/Users/Myky/Documents/EDAN55/Independent Set/g30.txt\";\n\t\tint[][] adjMatrix = readFile(filename);\n\t\tCounter counter = new Counter(0);\n\t\tint MIS = run(adjMatrix);\n\t\tprint(MIS);\n\n\t}", "public static void main(String[] args) {\n String line;\n Scanner Input = new Scanner(System.in);\n ui.showIntroMessage();\n try {\n loadFile();\n } catch (FileNotFoundException e) {\n ui.showToUser(\"File Not Found\", \"Creating new file...\");\n }\n line = Input.nextLine();\n boolean inSystem = !line.equals(\"bye\");\n while (inSystem) {\n String[] words = line.split(\" \");\n boolean isList = words[0].equals(\"list\");\n boolean isDone = words[0].equals(\"done\");\n boolean isTodo = words[0].equals(\"todo\");\n boolean isDeadline = words[0].equals(\"deadline\");\n boolean isEvent = words[0].equals(\"event\");\n boolean isDelete = words[0].equals(\"delete\");\n boolean isFind = words[0].equals(\"find\");\n try {\n validateInput(words);\n } catch (Exception e) {\n ui.showToUser(e.getMessage());\n line = Input.nextLine();\n inSystem = !line.equals(\"bye\");\n continue;\n }\n if (isList) {\n try {\n validateListInput(words);\n } catch (Exception e) {\n ui.showToUser(e.getMessage());\n line = Input.nextLine();\n inSystem = !line.equals(\"bye\");\n continue;\n }\n printList();\n } else if (isDone) {\n int taskNumber = Integer.parseInt(words[1]) - 1;\n Tasks.get(taskNumber).taskComplete();\n ui.showToUser(ui.DIVIDER, \"Nice! I've marked this task as done:\\n\" + \" \" + Tasks.get(taskNumber).toString(), ui.DIVIDER);\n } else if (isDelete) {\n int taskNumber = Integer.parseInt(words[1]) - 1;\n ui.showToUser(ui.DIVIDER, \"Noted. I've removed this task:\\n\" + Tasks.get(taskNumber).toString());\n Tasks.remove(taskNumber);\n ui.showToUser(\"Now you have \" + Tasks.size() + \" tasks in the list.\", ui.DIVIDER);\n } else if (isTodo) {\n try {\n validateToDoInput(words);\n } catch (Exception e) {\n ui.showToUser(e.getMessage());\n line = Input.nextLine();\n inSystem = !line.equals(\"bye\");\n continue;\n }\n line = line.replace(\"todo \", \"\");\n ToDo toDo = new ToDo(line);\n Tasks.add(toDo);\n printTaskAdded();\n } else if (isDeadline) {\n line = line.replace(\"deadline \", \"\");\n words = line.split(\"/by \");\n Deadline deadline = new Deadline(words[0], words[1]);\n Tasks.add(deadline);\n printTaskAdded();\n } else if (isEvent) {\n line = line.replace(\"event \", \"\");\n words = line.split(\"/at \");\n Event event = new Event(words[0], words[1]);\n Tasks.add(event);\n printTaskAdded();\n } else if (isFind) {\n line = line.replace(\"find \", \"\");\n findTask(line);\n }\n line = Input.nextLine();\n inSystem = !line.equals(\"bye\");\n }\n String file = \"tasks.txt\";\n try {\n saveFile(file);\n } catch (IOException e) {\n ui.showToUser(\"Something went wrong: \" + e.getMessage());\n }\n ui.showExitMessage();\n }", "@Test\n\t/**\n\t * Testing the functions and procedures.\n\t * Testing:\n\t * - A correct sample program.\n\t * - A sample program containing spelling and context free errors.\n\t * - A sample program containing context errors.\n\t * - A sample program containing runtime errors.\n\t * \n\t * @throws ParseException\n\t * @throws IOException\n\t */\n\tpublic void functionTest() throws ParseException, IOException{\n\t\tint[] input = {13};\n\t\tint[] output = {10, 0, 589, 233};\n\t\tcheckRuntime(\"functionCorrect\", input, output);\n\t\t\n\t\t/** Check whether a program contains syntax errors. */\n\t\tcheckFail(\"functionSpellingContextFreeSyntaxError\");\n\t\t\n\t\t/** Check whether a program contains the given errors. */\n\t\tSet<String> errors = new HashSet<String>();\n\t\terrors.add(\"Line 6:1 - No return statements are allowed.\");\n\t\terrors.add(\"Line 28:31 - 'ivar2' not defined in scope\");\n\t\terrors.add(\"Line 38:27 - Expected type 'Boolean' but found 'Integer'\");\n\t\terrors.add(\"Line 39:47 - Expected type 'Char' but found 'Integer'\");\n\t\terrors.add(\"Line 46:35 - Expected type not null but found 'null'\");\n\t\terrors.add(\"Line 48:28 - 'ivar3' already defined within the scope\");\n\t\terrors.add(\"Line 48:36 - 'function5' not defined in scope\");\n\t\terrors.add(\"\");\t//Because \"Line 48:36 - 'function5' not defined in scope\" is noticed twice\n\t\terrors.add(\"Line 48:36 - Expected type not null but found 'null'\");\n\t\tcheckContextFail(\"functionContextError\", errors);\n\t\t\n\t\t/** Check whether a program gives a runtime error. */\n\t\tcheckRuntimeFail(\"functionRuntimeError\");\n\t}", "public static ArrayList<A0_RawText> loadConstraintsFromFile(File f) {\n\t\tArrayList<A0_RawText> res = new ArrayList<>();\n\t\tif (f == null) {\n\t\t\tA0_RawText.LOGGER.warning(\"IllegalArgument : \" + f + \". No A0 constraint loaded.\");\n\t\t\treturn res;\n\t\t}\n\t\n\t\tif (f.isDirectory()) {\n\t\t\tA0_RawText.LOGGER.finer(\"File '\" + f.getAbsolutePath() + \"' is a directory. \");\n\t\t\tfor (File ff : f.listFiles(new FileFilter() {\n\t\t\t\t@Override\n\t\t\t\tpublic boolean accept(File pathname) {\n\t\t\t\t\treturn pathname != null && pathname.exists() && (pathname.getName().endsWith(\"ocl\") || pathname.getName().endsWith(\"OCL\"));\n\t\t\t\t}\n\t\t\t})) {\n\t\t\t\tres.addAll(loadConstraintsFromFile(ff));\n\t\t\t}\n\t\t\treturn res;\n\t\t} else if (f.getName().endsWith(\"ocl\") || f.getName().endsWith(\"OCL\")) {\n\t\t\t// ELSE f is not a directory -> process ocl file.\n\t\t\tString text = \"\", s;\n\t\t\tArrayList<String> cleanText = new ArrayList<>();\n\t\t\ttry {\n\t\t\t\tBufferedReader br3 = new BufferedReader(new FileReader(f));\n\t\t\t\twhile ((s = br3.readLine()) != null) {\n\t\t\t\t\ts = s.trim();\n\t\t\t\t\tif (!s.isEmpty() && !s.startsWith(\"import\") && !s.startsWith(\"package\") && !s.startsWith(\"endpackage\") && !s.startsWith(\"--\")) {\n\t\t\t\t\t\ttext += s + \"\\n\";\n\t\t\t\t\t\tcleanText.add(s.trim() + \" \");\n\t\t\t\t\t}\n\t\t\t\t\tif (A0_RawText.LOGGER.isLoggable(Level.FINEST) && s.startsWith(\"--\"))\n\t\t\t\t\t\tA0_RawText.LOGGER.finest(\"Comment line '\" + s + \"' \");\n\t\t\t\t}\n\t\t\t\tbr3.close();\n\t\t\t} catch (IOException e1) {\n\t\t\t\tA0_RawText.LOGGER.severe(\"Error during OCL file reading : \" + e1.getMessage());\n\t\t\t\tif (A0_RawText.LOGGER.isLoggable(Level.CONFIG))\n\t\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\ttext = text.trim();\n\t\t\t\n\t\t\tString[] contexts = text.split(\"context\");\n\t\t\tfor (int i = 1; i < contexts.length; i++) {// First \"contexts[0]\" always empty.\n\t\t\t\tString[] constraints = contexts[i].trim().split(\"inv\");\n\t\t\t\tConcept context = Metamodel.getConcept(constraints[0].trim());\n\t\t\t\tString cstName = null;\n\t\t\t\ttry {\n\t\t\t\t\tcstName = constraints[1].substring(0, constraints[1].indexOf(\":\")).trim()+\"_\";\n\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t//CST HAS NO NAME\n\t\t\t\t}\n\t\t\t\tif (context == null) {\n\t\t\t\t\tA0_RawText.LOGGER.severe(\"Constraint unclear ! '\" + constraints[0].trim() + \"' should be a valid concept.\");\n\t\t\t\t}\n\t\t\t\tfor (int j = 1; j < constraints.length; j++) {\n\t\t\t\t\tconstraints[j] = constraints[j].trim();\n\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\tString constraintName = context.getName() + \"_\" + constraints[j].substring(0, constraints[j].indexOf(\":\")).trim();\n\t\t\t\t\t\tString constraint = constraints[j].substring(constraints[j].indexOf(\":\") + 1).trim();\n\t\t\t\t\t\tif(cstName != null)\n\t\t\t\t\t\t\tconstraintName = cstName;\n\t\t\t\t\t\tA0_RawText a = new A0_RawText(constraintName, context, constraint, f);\n\t\t\t\t\t\tA0_RawText.LOGGER.finer(\"Constraint added : \" + a);\n\t\t\t\t\t\tres.add(a);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tA0_RawText.LOGGER.severe(\"Parsing fail : \" + e.getMessage() + \"\\n Context : \" + context.getName() + \"\\n Constraint : '\" + constraints[j]\n\t\t\t\t\t\t\t\t+ \"' \\n -> Constraint ignored ! <-\");\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tA0_RawText.LOGGER.config(res.size() + \" constraints added from '\" + f.getAbsolutePath() + \"'\");\n\t\t}\n\t\treturn res;\n\t\n\t}", "private void translateBtnActionPerformed(ActionEvent evt) {\r\n if(switchBtnState == 1) {\r\n assemblyreader = new mipstoc.read.CodeReader(inputTxtArea.getText());\r\n mipstoc.lexer.Lexer lex = new mipstoc.lexer.Lexer(assemblyreader);\r\n mipstoc.parser.Parser parser = new mipstoc.parser.Parser(lex);\r\n try {\r\n parser.program();\r\n outputTxtArea.setText(mipstoc.parser.Parser.output);\r\n mipstoc.parser.Parser.output = \"\";\r\n }\r\n catch(Error e) {\r\n \tToolkit.getDefaultToolkit().beep();\r\n \tJOptionPane.showMessageDialog(panel, e.toString(), \"Error\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n }\r\n else {\r\n \ttry {\r\n \t\tctomips.reader.ReadFile reader = new ctomips.reader.ReadFile(inputTxtArea.getText());\r\n \tctomips.lexer.LexInter li = new ctomips.lexer.LexInter();\r\n \tctomips.asm.Assembly ass = new ctomips.asm.Assembly(li);\r\n \tctomips.lexer.Lexer lex = new ctomips.lexer.Lexer(reader);\r\n \tctomips.parser.Parser parser = new ctomips.parser.Parser(lex, ass);\r\n \tctomips.inter.Node.labels = 0;\r\n \tctomips.lexer.Lexer.line = 1;\r\n \tparser.program();\r\n \tass.program();\r\n \toutputTxtArea.setText(ass.assembStr);\r\n \tctomips.parser.Parser.output = \"\";\r\n \t}\r\n \tcatch(IOException ie) {\r\n \t\t\r\n \t}\r\n \tcatch(Error e) {\r\n \t\tToolkit.getDefaultToolkit().beep();\r\n \t\tJOptionPane.showMessageDialog(panel, e.toString(), \"Error\", JOptionPane.ERROR_MESSAGE);\r\n \t}\r\n }\r\n }", "@Test\n public void AppFileError() {\n try{\n App.main(new String[]{TEST_PATH + \"asdfghjkl-nice.dot\",\"1\"});\n }catch(RuntimeException re){\n assertEquals(re.getMessage(),\"Input file does not exist\");\n }\n }", "public static void main(String[] args) {\n String filePath=args[0];\n Parser parser = new Parser(filePath);\n Code code = new Code();\n SymbolTable symbol = new SymbolTable();\n initSymbol(filePath, parser, symbol);\n String fileOutputPath=filePath.replace(\".asm\",\".hack\");\n Parser parser1 = new Parser(filePath);\n\n try {\n BufferedWriter writer = new BufferedWriter(new FileWriter(fileOutputPath ,true));\n PrintWriter emptyFile = new PrintWriter(fileOutputPath);\n emptyFile.print(\"\");\n emptyFile.close();\n\n //count the num of var in the program\n int numVariables = 16;\n while (parser1.hasMoreCommands()) {\n parser1.advance();\n String type = parser1.commandType();\n StringBuilder binCommand=new StringBuilder();\n switch (type) {\n case \"A_COMMAND\":\n //get the symbol\n String commandSymbol= parser1.symbol();\n Integer address=0;\n if(isNumeric(commandSymbol)){\n address=Integer.parseInt(commandSymbol);\n }\n //check if the symbol don't exist in the symbol Table and add it\n else if (!symbol.contain(commandSymbol)) {\n symbol.addEntry(commandSymbol, numVariables);\n address=symbol.getAddress(commandSymbol);\n numVariables++;\n }\n //get the symbol value from the symbol table\n else if(symbol.contain((commandSymbol))){\n address=symbol.getAddress(commandSymbol);\n }\n\n binCommand.append(Integer.toBinaryString(address));\n int j=binCommand.length();\n for (int i = 0; i < 16 - j; i++) {\n binCommand.insert(0, \"0\");\n }\n writer.append(binCommand.toString());\n writer.append('\\n');\n binCommand.setLength(0);\n break;\n case \"C_COMMAND\":\n //write the c command\n binCommand.append(\"111\");\n binCommand.append(code.comp(parser1.comp()));\n binCommand.append(code.dest(parser1.dest()));\n binCommand.append(code.jump(parser1.jump()));\n writer.append(binCommand.toString());\n writer.append('\\n');\n binCommand.setLength(0);\n break;\n }\n }\n\n writer.close();\n\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n }", "@Test\n\tpublic void testPhase3(){\n\t\tSystem.out.println(\"Array test\");\n\t\tParseDriver driver = new ParseDriver(\"resources/pascal_files/array.pas\");\n\t\tdriver.run();\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Array Ref test\");\n\t\tdriver = new ParseDriver(\"resources/pascal_files/arrayref.pas\");\n\t\tdriver.run();\n\t\t\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"If2 test\");\n\t\tdriver = new ParseDriver(\"resources/pascal_files/if2.pas\");\n\t\tdriver.run();\n\t}" ]
[ "0.62118083", "0.5943165", "0.5790704", "0.575096", "0.55686563", "0.5548957", "0.55200255", "0.54519075", "0.5449761", "0.5440949", "0.5432699", "0.54176396", "0.5388354", "0.53882563", "0.5354834", "0.5349097", "0.5334538", "0.5330991", "0.532879", "0.5315429", "0.52953357", "0.52943707", "0.52863324", "0.52724135", "0.5269985", "0.52648795", "0.52485466", "0.52450514", "0.5238833", "0.5234625", "0.5225012", "0.5219923", "0.5201881", "0.52006686", "0.5198423", "0.5197298", "0.5194327", "0.51918995", "0.51880705", "0.51878446", "0.518505", "0.5176568", "0.51755255", "0.51716566", "0.5166272", "0.51611894", "0.5150736", "0.51502895", "0.514422", "0.5143761", "0.5138356", "0.51343113", "0.51303846", "0.5108403", "0.5104605", "0.51038826", "0.5101107", "0.5099195", "0.50931686", "0.50890714", "0.50813913", "0.5079542", "0.50776374", "0.50736195", "0.50724214", "0.50720334", "0.50718457", "0.507129", "0.506984", "0.5067065", "0.5066121", "0.505888", "0.50586593", "0.50564206", "0.50472414", "0.5046055", "0.5042255", "0.5041804", "0.50368506", "0.50365907", "0.50365907", "0.50365907", "0.5030783", "0.503038", "0.5030366", "0.50268036", "0.5023471", "0.50232893", "0.50211436", "0.50140375", "0.5011317", "0.5011219", "0.50051457", "0.4997536", "0.49947342", "0.49891695", "0.49862477", "0.49855772", "0.4981993", "0.4980723" ]
0.67777836
0
line should consist of an MML instruction, with its label already removed. Translate line into an instruction with label label and return the instruction
public Instruction getInstruction(String label) { int s1; // Possible operands of the instruction int s2; String s3; int r; int x; if (line.equals("")) return null; //Get the first word as a string String ins = scan(); // Generate the instruction classname that corresponds with the label String instructionName = ins.substring(0, 1).toUpperCase() + ins.substring(1).toLowerCase() + "Instruction" ; //System.out.println("The scanned label is: " + ins); //System.out.println("Use instruction class: " + instructionName); // Make a list of the remaining words List<String> wordList = new ArrayList<>(); List<Class> paramTypes = new ArrayList<>(); //The first constructor param is always the label string wordList.add(label); paramTypes.add(String.class); String nextWord; /* if (!nextWord.equals("")){ wordList.add(nextWord); paramTypes.add(nextWord.getClass()); } */ while (!(nextWord = scan()).equals("")){ wordList.add(nextWord); } //System.out.println("The next word is: " + instructionName); Object wordArray [] = wordList.toArray(); Class<?> paramArray [] = new Class<?> [wordArray.length]; try { for (int i = 0; i < wordArray.length; i++){ String str = wordArray[i].toString(); if (Pattern.matches(("-?[0-9]+"), str)){ paramArray [i] = Integer.TYPE; wordArray [i] = Integer.parseInt((String) wordArray[i]); } else { paramArray [i] = String.class; } } //System.out.println("My word array contains: " + Arrays.asList(wordArray)); //System.out.println("My parameter array contains: " + Arrays.asList(paramArray)); //System.out.println("Instruction name is: " + instructionName); //Reflect class Class reflectionClass = Class.forName("sml." + instructionName); //System.out.println("My reflection is: " + reflectionClass); Constructor con = reflectionClass.getConstructor(paramArray); // Cast return back to an Instruction return ((Instruction)con.newInstance(wordArray)); } catch (ClassNotFoundException e) { //e.printStackTrace(); System.err.println("Error"); } catch (NoSuchMethodException e) { //e.printStackTrace(); System.err.println("Error"); } catch (InvocationTargetException e) { //e.printStackTrace(); System.err.println("Error"); } catch (InstantiationException e) { //e.printStackTrace(); System.err.println("Error"); } catch (IllegalAccessException e) { //e.printStackTrace(); System.err.println("Error"); } /* // Commented out switch statement switch (ins) { case "add": r = scanInt(); s1 = scanInt(); s2 = scanInt(); return new AddInstruction(label, r, s1, s2); case "lin": r = scanInt(); s1 = scanInt(); return new LinInstruction(label, r, s1); case "out": r = scanInt(); return new OutInstruction(label, r); case "sub": r = scanInt(); s1 = scanInt(); s2 = scanInt(); return new SubInstruction(label, r, s1, s2); case "mul": r = scanInt(); s1 = scanInt(); s2 = scanInt(); return new MulInstruction(label, r, s1, s2); case "div": r = scanInt(); s1 = scanInt(); s2 = scanInt(); return new DivInstruction(label, r, s1, s2); case "bnz": r = scanInt(); s3 = scan(); return new BnzInstruction(label, r, s3); } // You will have to write code here for the other instructions. */ return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String label(String line) {\n\t\tint idx = line.lastIndexOf(':');\n\t\tint idxQuote = line.lastIndexOf('\\'');\n\t\tif (idx < 0 || idx < idxQuote) return line.trim();\n\n\t\tString label = line.substring(0, idx).trim();\n\t\tString rest = line.substring(idx + 1).trim();\n\n\t\t// Is 'label' a function signature?\n\t\tif (label.indexOf('(') > 0 && label.indexOf(')') > 0) {\n\t\t\tbdsvm.updateFunctionPc(label, pc());\n\t\t} else {\n\t\t\tbdsvm.addLabel(label, pc());\n\t\t}\n\n\t\treturn rest.trim();\n\t}", "private List<Action> createInstructions(String line) {\n\t\tLOGGER.info(\"Reads instruction as '{}'\", line);\n\t\tMatcher m = INSTRUCTION_LINE_PATTERN.matcher(line);\n\t\tif (!m.matches()) {\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\tString.format(\"The line '%s' does not define a correct sequence of mower instructions!\", line));\n\t\t}\n\t\treturn line.chars()\n\t\t\t.mapToObj(c -> Action.valueOf((char)c))\n\t\t\t.collect(Collectors.toList());\n\t}", "private Label handleLabel(String line, int lineNum, SymbolTable table) {\n\t\tLabel l = new Label(line.substring(1, line.length()-1));\n\t\tl.addToTable(lineNum, table);\n\t\treturn l;\n\t}", "public static String getLabel(String line) throws Exception {\n\t\tif(line.equalsIgnoreCase(\"\")) return null;\n\t\tString[] st = FileChecker.splitNonRegex(line, \" \");\n\t\tString labelFound = null;\n//\t\tif(line.charAt(0) == '%') return null;\n\t\tfor(String s:st) {\n\t\t\tif(s.equalsIgnoreCase(\"\")) continue;\n\t\t\ttry {\n\t\t\t\tOpCodes.getOpCode(s);\n\t\t\t\treturn labelFound;\n\t\t\t}catch(Exception e) {\n\t\t\t\ts = FileChecker.replaceAll(s, \":\", \"\");\n\t\t\t\tif(Mem.getTypeInt(s)!= Integer.MIN_VALUE)\n\t\t\t\t\tthrow new Exception(\"Expected label not number: \"+s+\" (previous label=\"+labelFound+\") L= \"+line);\n\t\t\t\tif(labelFound != null)\n\t\t\t\t\tthrow new Exception(\"Expected a command: \"+s+\" (previous label=\"+labelFound+\")\");\n\t\t\t\tlabelFound = s;\n\t\t\t}\n\t\t}\n\t\treturn labelFound;\n\t}", "public String parseAndTranslate(String fileName, String vmLine) {\n List<String> args = new ArrayList<>(Arrays.asList(vmLine.split(\" \")));\n args.add(fileName);\n String command = args.get(0);\n if (statArithmeticToAsm.containsKey(command)) {\n return statArithmeticToAsm.get(command);\n } else if (dynArithmeticToAsm.containsKey(command)) {\n // dynamic arithmetic requires us to increment certain labels\n commandCounter++;\n return dynArithmeticToAsm.get(command).apply(commandCounter);\n } else if (statControlToAsm.containsKey(command)) {\n return statControlToAsm.get(command).apply(args.get(1));\n } else {\n return argumentCommandToAsm.get(command).apply(args);\n }\n }", "public Line getLine(String targetLine);", "public void map(String line, ImoocContext context);", "private CInstruction handleCInstruction(String line) {\n\t\tCInstruction c = new CInstruction();\n\t\tString dest = \"\";\n\t\tString expr = \"\";\n\t\tString jmp = \"\";\n\t\t\n\t\tString[] parts = line.split(\";\");\n\t\t\n\t\tif (parts.length > 1) {\n\t\t\tjmp = parts[1].trim().replaceAll(\"\\\\s\", \"\");\n\t\t} else {\n\t\t\tjmp = \"\";\n\t\t}\n\t\t\n\t\tString[] subParts = parts[0].split(\"=\");\n\t\t\n\t\tif (subParts.length > 1) {\n\t\t\texpr = subParts[1].trim().replaceAll(\"\\\\s\", \"\");\n\t\t\tdest = subParts[0].trim().replaceAll(\"\\\\s\", \"\");\n\t\t} else {\n\t\t\texpr = subParts[0].trim().replaceAll(\"\\\\s\", \"\");\n\t\t}\n\t\t\n\t\tc.setParts(dest, expr, jmp);\n\t\t\n\t\treturn c;\n\t}", "String getMarkingInstruction();", "T transform(String line);", "String getInstruction();", "private static int firstPassParse(String line, int offset)\r\n {\r\n String[] tokens = line.split(\"[\\\\s,]+\");\r\n\r\n if(tokens.length <= 0)\r\n {\r\n return offset;\r\n }\r\n \r\n if(!isOpcode(tokens[0]) && !tokens[0].startsWith(\".\"))\r\n {\r\n int address = beginningAddress + offset;\r\n \r\n if(isHex(tokens[0]))\r\n {\r\n throw new AssemblerException(\"Invalid label on line: \" + line);\r\n }\r\n else\r\n {\r\n symbolTable.put(tokens[0], address);\r\n }\r\n }\r\n\r\n return offset + ADDRESS_OFFSET;\r\n }", "void annotate(String line);", "public void Assemble(InputStream input) throws InvalidInstructionException, LabelNotResolvedException, ProgramSizeException {\r\n // Reset internal state\r\n codeSection = null;\r\n codeSectionList.clear();\r\n codeLine = 0;\r\n codeInstruction = new String();\r\n Emitter emitter = new Emitter();\r\n codeEmitter.setEmitter(emitter);\r\n // Instantiate the text reader\r\n reader = new TextReader(input);\r\n\r\n // REGEX matcher\r\n Matcher m = null;\r\n\r\n // Pass 1: instantiate list of instructions\r\n for(codeLine = 1;; codeLine++) {\r\n // Read single line from stream\r\n try { codeInstruction = reader.readLine(); }\r\n // RuntimeException at EOF\r\n catch(RuntimeException e) { break; }\r\n\r\n // Remove any comments\r\n int comment = codeInstruction.indexOf(COMMENT_CHAR);\r\n if(comment >= 0) codeInstruction = codeInstruction.substring(0, comment);\r\n\r\n // Try parsing it as a section\r\n m = patternSection.matcher(codeInstruction);\r\n if(m.matches()) { enterSection(m.group(1)); continue; }\r\n\r\n // Try parsing it as an instruction\r\n m = patternInstruction.matcher(codeInstruction);\r\n if(m.matches()) {\r\n // If there is no section bail out\r\n if(currentSection() == null && (m.group(1) != null || m.group(2) != null))\r\n invalidInstruction(\"Instruction and/or label outside of a section!\");\r\n\r\n // See if there is a label\r\n if(m.group(1) != null) addLabel(m.group(1));\r\n // See if there is an instruction\r\n if(m.group(2) != null) addInstruction(m.group(2), parseOperands(m.group(3)));\r\n }\r\n }\r\n\r\n // Add section for text constants\r\n Section textConst = enterSection(\".textconst\");\r\n emitter.setDataSection(textConst);\r\n\r\n // Pass 2: layout sections\r\n int baseAddress = 0;\r\n for(Section section : codeSectionList) {\r\n section.setAddress(baseAddress);\r\n baseAddress += section.getSize();\r\n }\r\n\r\n // Pass 3: resolve label operands\r\n for(Section section : codeSectionList)\r\n for(Instruction instr : section.getInstructions())\r\n for(Operand op : instr.getOperands())\r\n if(op instanceof LabelOperand) {\r\n LabelOperand lop = (LabelOperand) op;\r\n Integer addr = getLabel(lop.getLabel());\r\n if(addr != null) lop.setAddress(addr);\r\n }\r\n\r\n // Pass 4: generate machine code\r\n for(Section section : codeSectionList)\r\n for(Instruction instr : section.getInstructions())\r\n processInstruction(instr);\r\n\r\n // Check final program size, we need at least one byte for the stack\r\n if(getSize() > Machine.memorySize - 1)\r\n throw new ProgramSizeException(\"size of program, \" + getSize() + \" words, exceeds machine maximum of \" + (Machine.memorySize - 1));\r\n }", "public LabelToken(String value, int line) {\n super(value, TokenType.LABEL, line);\n this.origin = -1;\n this.originOffset = 0;\n }", "public void parse(){\n\t\t//Read next line in content; timestamp++\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(instructionfile))) {\n\t\t String line;\n\t\t while ((line = br.readLine()) != null) {\n\t\t \t//divide the line by semicolons\n\t\t \tString[] lineParts = line.split(\";\");\n\t\t \tfor(String aPart: lineParts){\n\t\t\t \tSystem.out.println(\"Parser:\"+aPart);\n\n\t\t\t \t// process the partial line.\n\t\t\t \tString[] commands = parseNextInstruction(aPart);\n\t\t\t \tif(commands!=null){\n\t\t\t\t\t\t\n\t\t\t \t\t//For each instruction in line: TransactionManager.processOperation()\n\t\t\t \t\ttm.processOperation(commands, currentTimestamp);\n\t\t\t \t}\n\t\t \t}\n\t\t \t//Every new line, time stamp increases\n\t \t\tcurrentTimestamp++;\n\t\t }\n\t\t} catch (FileNotFoundException e) {\n \t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n \t\t\te.printStackTrace();\n\t\t}\n\t}", "String getProcessingInstructionTarget(Object pi);", "void visit(Line line);", "public abstract void visit(Line line);", "private void processLine(String line, String fileName) {\n splitedLine = textProcess.lemmatize(line);\n indexer.addLineToDoc(fileName, splitedLine);\n }", "public abstract T parseLine(String inputLine);", "private void loadLineOfMaze(short lineNumber, String line) {\n\t\tfor (int x = 0; x < width - 2; x++) {\n\t\t\tmaze[x + 1][lineNumber] = Block.getEnum(line.charAt(x));\n\t\t}\n\t}", "private TraceLine parseTraceInstruction(String traceInstruction) {\n int whiteSpaceIndex = ParseUtils.indexOfFirstWhiteSpace(traceInstruction);\n String addressString = traceInstruction.substring(0, whiteSpaceIndex);\n String instruction = traceInstruction.substring(whiteSpaceIndex).trim();\n\n /// Parse Instruction Address\n // Remove prefix\n addressString = addressString.substring(TraceDefinitions.TRACE_PREFIX.length());\n // Get Instruction Address\n int instructionAddress = Integer.valueOf(addressString, 16);\n\n return new TraceLine(instructionAddress, instruction);\n }", "LineReferenceType getLineReference();", "public GetParse(String line){\r\n\r\n Inline = line;\r\n this.parseWord(line);\r\n }", "private void translateInstructions() {\n Map<String, String> translations = new HashMap<String, String>() {{\n put(\"go\", \"pojdi\");\n put(\"left\", \"levo\");\n put(\"right\", \"desno\");\n put(\"straight\", \"naravnost\");\n put(\" on unnamed road\", \"\");\n put(\"on\", \"na\");\n put(\"turn\", \"zavij\");\n put(\"continue\", \"nadaljuj\");\n put(\"stay\", \"ostani\");\n put(\"north\", \"severno\");\n put(\"east\", \"vzhodno\");\n put(\"south\", \"južno\");\n put(\"west\", \"zahodno\");\n put(\"northeast\", \"severnovzhodno\");\n put(\"southeast\", \"jugovzhodno\");\n put(\"southwest\", \"jugozahodno\");\n put(\"northwest\", \"servernozahodno\");\n }};\n\n String regex = \"(?i)\\\\b(go|left|right|straight| on unnamed road|on|turn|continue|stay|\" +\n \"north|east|south|west|northeast|southeast|southwest|northwest)\\\\b\";\n\n Pattern pattern = Pattern.compile(regex);\n StringBuffer stringBuffer;\n Matcher matcher;\n\n for (RoadNode node : mRoad.mNodes) {\n String instructions = node.mInstructions;\n stringBuffer = new StringBuffer();\n matcher = pattern.matcher(instructions);\n\n while (matcher.find()) {\n matcher.appendReplacement(stringBuffer, translations.get(matcher.group().toLowerCase()));\n }\n matcher.appendTail(stringBuffer);\n\n node.mInstructions = stringBuffer.toString();\n }\n }", "public String getSourceLine (int line);", "public static boolean isInstruction(String line){\n\t\tString[] validInstructions = {\"add\", \"and\", \"or\", \"xor\", \"addi\",\n\t\t\t\t\"lw\", \"sw\", \"jr\", \"cmp\", \"b\", \"bal\", \"j\", \"jal\", \"li\", \n\t\t\t\t\"blt\", \"beq\", \"bne\", \"sub\"};\n\t\tif(line.trim().indexOf(\" \") == -1)\n\t\t\treturn false;\n\t\tString inst2bedet = line.trim().substring(0, line.indexOf(\" \"));\n\t\tfor(int i = 0; i<validInstructions.length; i++){\n\t\t\t\tif(validInstructions[i].equals(inst2bedet)){\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public void addLine(LabelLine labelLine) {\n\n\t\tfloat fLineHeight = labelLine.getHeight();\n\t\tfloat fLineWidth = labelLine.getWidth();\n\n\t\tif ((fLineWidth + 2.0f * CONTAINER_BOUNDARY_SPACING) > fWidth) {\n\t\t\tfWidth = fLineWidth + 2.0f * CONTAINER_BOUNDARY_SPACING;\n\t\t}\n\n\t\tfloat fXLinePosition = fXContainerLeft + CONTAINER_BOUNDARY_SPACING;\n\t\tfloat fYLinePosition;\n\n\t\tif (alLabelLines.size() == 0) {\n\t\t\tfHeight += 2.0f * CONTAINER_BOUNDARY_SPACING + fLineHeight;\n\t\t\tfYLinePosition = fYContainerCenter + (fHeight / 2.0f)\n\t\t\t\t\t- CONTAINER_BOUNDARY_SPACING - fLineHeight;\n\t\t} else {\n\t\t\tfHeight += CONTAINER_LINE_SPACING + fLineHeight;\n\t\t\tupdateLinePositions();\n\t\t\tLabelLine lastLine = alLabelLines.get(alLabelLines.size() - 1);\n\t\t\tfYLinePosition = lastLine.getPosition().y() - CONTAINER_LINE_SPACING\n\t\t\t\t\t- fLineHeight;\n\t\t}\n\n\t\tlabelLine.setPosition(fXLinePosition, fYLinePosition);\n\t\talLabelLines.add(labelLine);\n\t}", "private void setMarkersNotConcreteFeatures(String line, IFile res,\r\n\t\t\tint lineNumber) {\r\n\t\tString[] splitted = line.split(CPPModelBuilder.OPERATORS, 0);\r\n\r\n\t\tfor (int i = 0; i < splitted.length; ++i) {\r\n\t\t\tif (!splitted[i].equals(\"\") && !splitted[i].contains(\"#\")) {\r\n\t\t\t\tsetMarkersOnNotExistingOrAbstractFeature(splitted[i],\r\n\t\t\t\t\t\tlineNumber, res);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "protected abstract void parse(String line);", "@Override\n public String visit(Label n) {\n // 注意进入这里的只会有开头的标识 Label\n // 屏蔽 Procedure/CJUMP/JUMP/SimpleExp\n String _ret = null;\n Global.outputString += n.f0.tokenImage + \":\";\n return _ret;\n }", "private static String getOutputMsg(String line){\n String[] arr = line.split(\" \");\n return arr[0] + \"|\" + arr[3].replace(\"[\",\"\");\n }", "public void recover(List<Line> cppMatrix, Line line) {\n Line newLine = new Line();\n for (int i = findSplitPoint(line); i < line.getContent().size(); i++) {\n newLine.getContent().add(line.getContent().get(i));\n line.getContent().remove(i);\n }\n line.setEndLineCharacter(\"{\");\n cppMatrix.add(newLine);\n }", "public String fixline(String line, float by);", "private Instruction decodeL1() {\n String subType = nullIsIllegal(json.get(InstructionCodec.SUBTYPE),\n InstructionCodec.SUBTYPE + InstructionCodec.ERROR_MESSAGE).asText();\n if (subType.equals(L1ModificationInstruction.L1SubType.ODU_SIGID.name())) {\n int tributaryPortNumber = nullIsIllegal(json.get(InstructionCodec.TRIBUTARY_PORT_NUMBER),\n InstructionCodec.TRIBUTARY_PORT_NUMBER + InstructionCodec.MISSING_MEMBER_MESSAGE).asInt();\n int tributarySlotLen = nullIsIllegal(json.get(InstructionCodec.TRIBUTARY_SLOT_LEN),\n InstructionCodec.TRIBUTARY_SLOT_LEN + InstructionCodec.MISSING_MEMBER_MESSAGE).asInt();\n byte[] tributarySlotBitmap = null;\n tributarySlotBitmap = HexString.fromHexString(\n nullIsIllegal(json.get(InstructionCodec.TRIBUTARY_SLOT_BITMAP),\n InstructionCodec.TRIBUTARY_SLOT_BITMAP + InstructionCodec.MISSING_MEMBER_MESSAGE).asText());\n return Instructions.modL1OduSignalId(OduSignalId.oduSignalId(tributaryPortNumber, tributarySlotLen,\n tributarySlotBitmap));\n }\n throw new IllegalArgumentException(\"L1 Instruction subtype \"\n + subType + \" is not supported\");\n }", "public boolean map(String newLine) {\n\t\t\n\t\tboolean success = false;\n\t\tString label = _extractor.extractLabel(newLine);\n\t\t\n\t\tif( label != null ) {\n\t\t\tString content = extractOntology(newLine, DBPEDIA_ONTOLOGY_MARKER);\t\t\t\n\t\t\t\n\t\t\tif( content != null ) {\n\t\t\t\t\t/*\n\t\t\t\t\t * If this is not a new content then add to the Ontology column.\n\t\t\t\t\t */\n\t\t\t\tif( _prevLabel.compareTo(label) == 0) {\n\t\t\t\t\t_ontoBuffer.append(FIELD_DELIM);\n\t\t\t\t\t_ontoBuffer.append(content);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\t/*\n\t\t\t\t\t * If this is a new label entry, then process the previous set of\n\t\t\t\t\t * ontologies categories..\n\t\t\t\t\t */\n\t\t\t\telse {\n\t\t\t\t\n\t\t\t\t\tif( _ontoBuffer != null ) {\n\t\t\t\t\t\tList<String> categories = CStringUtil.split(_ontoBuffer.toString(), FIELD_DELIM);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(categories != null) {\n\t\t\t\t\t\t\tString subtype = null;\n\t\t\t\t\t\t\tif( categories.size() > 0) {\n\t\t\t\t\t\t\t\tint lastOntology = categories.size()-1;\n\t\t\t\t\t\t\t\tStringBuilder typeBuf = new StringBuilder();\n\t\t\t\t\t\t\t\tfor( int j = lastOntology; j >= 0; j--) {\n\t\t\t\t\t\t\t\t\tsubtype = categories.get(j);\n\t\t\t\t\t\t\t\t\tsubtype = CDatasetExtractor.AResConverter.convertCompound(subtype);\n\t\t\t\t\t\t\t\t\ttypeBuf.append(subtype);\n\t\t\t\t\t\t\t\t\tif( j > 0) {\n\t\t\t\t\t\t\t\t\t\ttypeBuf.append(\"/\");\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\tif( typeBuf.length() > 2) {\n\t\t\t\t\t\t\t\t\t_dbpediaOntologyMap.put(typeBuf.toString(), null);\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\tStringBuilder sqlUpdate = new StringBuilder(\"UPDATE 24x7c.dbpedia SET ontology=\\'\");\n\t\t\t\t\t\t\t\tsqlUpdate.append(CStringUtil.encodeLatin1(typeBuf.toString()));\n\t\t\t\t\t\t\t\tsqlUpdate.append(\"\\' WHERE label=\\'\");\n\t\t\t\t\t\t\t\tsqlUpdate.append(CStringUtil.encodeLatin1(_prevLabel));\n\t\t\t\t\t\t\t\tsqlUpdate.append(\"\\';\");\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tsuccess = stmt.execute(sqlUpdate.toString());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcatch( SQLException e) { \n\t\t\t\t\t\t\t\t\tCLogger.error(e.toString());\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_prevLabel = label;\n\t\t\t\t\t_ontoBuffer = new StringBuilder(content);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn success;\n\t}", "Instruction createInstruction();", "public static String getCommand(String line) throws Exception {\n\t\tif(line.equalsIgnoreCase(\"\")) return null;\n\t\tString[] st = FileChecker.splitNonRegex(line, \" \");\n\t\tString cmdFound = null;\n\t\tfor(String s:st) {\n\t\t\tif(s.equalsIgnoreCase(\"\")) continue;\n\t\t\ttry {\n\t\t\t\tOpCodes.getOpCode(s);\n\t\t\t\tif(cmdFound != null)\n\t\t\t\t\tthrow new Exception(\"Expected arguments not another command: \"+s+\" (previous command=\"+cmdFound+\")\");\n\t\t\t\tcmdFound = s;\n\t\t\t}catch(Exception e) { }\n\t\t}\n\t\treturn cmdFound;\n\t}", "public ParsedLine parseLine(String line, int lineNum, SymbolTable table) {\n\t\tline = line.trim();\n\t\tint comment = line.indexOf(\"//\");\n\t\tif (comment > -1) line = line.substring(0, comment);\n\t\t\n\t\tif (line.length()==0) {\n\t\t\treturn handleComment(line);\n\t\t\t\n\t\t} else if (line.charAt(0) == '(' && line.charAt(line.length()-1)==')') {\n\t\t\treturn handleLabel(line, lineNum, table);\n\t\t\t\n\t\t} else if (line.charAt(0)=='@') {\n\t\t\treturn handleAInstruction(line, table);\n\t\t\t\n\t\t} else {\n\t\t\t// Note: Last statement needs more robust error checking\n\t\t\treturn handleCInstruction(line);\n\t\t}\n\t}", "public static void parseAnnotations(String previousLine, String line, ApexModel model) {\n if (previousLine != null && !previousLine.startsWith(\"*\")) {\n line += \" \" + previousLine;\n if (line.toLowerCase().contains(\"isTest\"))\n System.out.println(line);\n }\n\n ArrayList<String> matches = new ArrayList<String>();\n Matcher m = Pattern.compile(\"@\\\\w+\\\\s*(\\\\([\\\\w=.*''/\\\\s]+\\\\))?\").matcher(line);\n\n while (m.find()) {\n matches.add(m.group().trim());\n }\n\n if (model != null) model.getAnnotations().addAll(matches);\n }", "Instruction asInstruction();", "public abstract Code addLabel(String label);", "private void checkAndCorrectLabelReferences() {\n\t\t\n\t\tboolean madeChange;\n\t\tCodeItem codeItem = getCodeItem();\n\t\tList<Label> labels = codeItem.getLabels();\n\n\t\t// Parses all the Labels, and all the OffsetInstructions inside the Labels.\n\t\t// We stop the parsing whenever a change of instruction has been made, to restart the parsing\n\t\t// once again till everything is valid.\n\t\tdo {\n\t\t\tmadeChange = false;\n\t\t\tIterator<Label> labelIterator = labels.iterator();\n\t\t\twhile (!madeChange && labelIterator.hasNext()) {\n\t\t\t\tLabel label = labelIterator.next();\n\t\t\t\tArrayList<Instruction> instructions = label.getReferringInstructions();\n\t\n\t\t\t\tint insnIndex = 0;\n\t\t\t\tint nbInsn = instructions.size();\n\t\t\t\twhile (!madeChange && (insnIndex < nbInsn)) {\n\t\t\t\t\tInstruction insn = instructions.get(insnIndex);\n\t\t\t\t\t\n\t\t\t\t\tIOffsetInstruction offsetInsn = (IOffsetInstruction)insn;\n\t\t\t\t\tint instructionOffset = offsetInsn.getInstructionOffset();\n\t\t\t\t\t// The offset have to be divided by two, because the encoded offset is word based.\n\t\t\t\t\t// The relativeOffset is the offset for the Instruction to reach the Label.\n\t\t\t\t\t// It is negative if the Label is before the Instruction.\n\t\t\t\t\tint relativeOffset = (label.getOffset() - instructionOffset) / 2;\n\t\t\t\t\t\n\t\t\t\t\tint opcode = insn.getOpcodeByte();\n\t\t\t\t\tint maximumOffset = 0;\n\t\t\t\t\t// Check if the relative offset is valid for the instruction range. \n\t\t\t\t\tswitch (opcode) {\n\t\t\t\t\tcase 0x28: // Goto 8 bits.\n\t\t\t\t\t\tmaximumOffset = MAXIMUM_SIGNED_VALUE_8_BITS;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 0x29: // Goto 16 bits.\n\t\t\t\t\tcase 0x32: // If-test.\n\t\t\t\t\tcase 0x33:\n\t\t\t\t\tcase 0x34:\n\t\t\t\t\tcase 0x35:\n\t\t\t\t\tcase 0x36:\n\t\t\t\t\tcase 0x37:\n\t\t\t\t\tcase 0x38: // If-testz.\n\t\t\t\t\tcase 0x39:\n\t\t\t\t\tcase 0x3a:\n\t\t\t\t\tcase 0x3b:\n\t\t\t\t\tcase 0x3c:\n\t\t\t\t\tcase 0x3d:\n\t\t\t\t\t\tmaximumOffset = MAXIMUM_SIGNED_VALUE_16_BITS;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 0x2a: // Goto 32 bits.\n\t\t\t\t\tcase 0x2b: // Packed Switch.\n\t\t\t\t\tcase 0x2c: // Sparse Switch.\n\t\t\t\t\t\tmaximumOffset = MAXIMUM_SIGNED_VALUE_32_BITS;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\ttry { throw new Exception(\"Opcode error : 0x\" + Integer.toHexString(opcode)); } catch (Exception e) { e.printStackTrace(); }\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tint minimumOffset = -maximumOffset - 1;\n\t\t\t\t\t\n\t\t\t\t\tif ((relativeOffset < minimumOffset) || (relativeOffset > maximumOffset)) {\n\t\t\t\t\t\t// Must change to an Instruction with a bigger range. This is only possible for\n\t\t\t\t\t\t// the GOTO 8/16 bits.\n\t\t\t\t\t\tif ((opcode == Opcodes.INSN_GOTO) || (opcode == Opcodes.INSN_GOTO_16)) {\n\t\t\t\t\t\t\tInstruction newInsn;\n\t\t\t\t\t\t\t// Change to 16 or 32 bits ?\n\t\t\t\t\t\t\tif ((relativeOffset > MAXIMUM_SIGNED_VALUE_16_BITS) || (relativeOffset < MINIMUM_SIGNED_VALUE_16_BITS)) {\n\t\t\t\t\t\t\t\t// 32 bits.\n\t\t\t\t\t\t\t\tnewInsn = new InstructionFormat30T(Opcodes.INSN_GOTO_32, label, instructionOffset);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// 16 bits.\n\t\t\t\t\t\t\t\tnewInsn = new InstructionFormat20T(Opcodes.INSN_GOTO_16, label, instructionOffset);\n\t\t\t\t\t\t\t}\n\t\n\t\t\t\t\t\t\t// Removes the instruction from the codeItem and replaces it with the new one.\n\t\t\t\t\t\t\tcodeItem.replaceInstructions(insn, newInsn);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Replaces the old instruction with the new one in the Label Instructions list.\n\t\t\t\t\t\t\tinstructions.remove(insnIndex);\n\t\t\t\t\t\t\tinstructions.add(insnIndex, newInsn);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Shifts all the Jump related instructions and the labels AFTER this instruction.\n\t\t\t\t\t\t\tshiftOffsetInstructionsAndLabels(instructionOffset, newInsn.getSize() - insn.getSize());\n\t\t\t\t\t\t\tmadeChange = true;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\ttry { throw new IllegalArgumentException(\"Instruction Range extension unhandled. Opcode : 0x\" + Integer.toHexString(opcode)); } catch (Exception e) { e.printStackTrace(); }\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tinsnIndex++;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t} while (madeChange);\n\t}", "public String getTargetString(CharSequence line) {\n\t\tList<String> values = parseCsvLine(line);\n\t\treturn values.get(target);\n\n\t}", "@Override\r\n\tprotected String processLine(String line) {\n\t\treturn null;\r\n\t}", "private static void extractProduction(Grammar grammar, String line) throws GrammarSyntaxException{\r\n\r\n\t\tint lineSeparatorIndex = line.indexOf(\":\");\r\n\r\n\t\tif (lineSeparatorIndex < 1) {\r\n\t\t\tthrow new GrammarSyntaxException(\"The line do not start with line number.\", line);\r\n\t\t}\r\n\r\n\t\tString lineNumber = line.substring(0, lineSeparatorIndex);\r\n\t\ttry {\r\n\t\t\tInteger.parseInt(lineNumber);\r\n\t\t} catch(NumberFormatException e) {\r\n\t\t\tthrow new GrammarSyntaxException(\"The line do not start with line number.\", line);\r\n\t\t}\r\n\r\n\t\tString lineToParse = line.substring(lineSeparatorIndex + 1);\r\n\r\n\t\tString[] productionString = lineToParse.split(Production.ASSIGNMENT_STRING);\r\n\r\n\t\tif(productionString.length != 2)\r\n\t\t\tthrow new GrammarSyntaxException(\"A production must be in format like <T> ::= <T>|a\", line);\r\n\r\n\t\tString leftSide = productionString[0].replaceAll(\" \", \"\");\r\n\r\n\r\n\t\tString ntLabel = leftSide.substring(1, leftSide.length() - 1);\r\n\t\tif(!NonTerminal.NON_TERMINAL_PATTERN.matcher(ntLabel).matches())\r\n\t\t\tthrow new GrammarSyntaxException(\"Unespected non teminal \" + ntLabel, line);\r\n\t\tNonTerminal leftNt = grammar.findNonTerminal(ntLabel);\r\n\t\tif(leftNt == null){\r\n\t\t\t\tleftNt = new NonTerminal(ntLabel);\r\n\t\t\t\tgrammar.addNonTerminal(leftNt);\r\n\t\t}\r\n\r\n\t\tProduction p = new Production();\r\n\t\tgrammar.addProduction(p);\r\n\t\tp.setLeft(leftNt);\r\n\t\tp.setRight(getRightSide(grammar, leftNt, productionString[1]));\r\n\r\n\r\n\t}", "private Instruction decodeL4() {\n String subType = nullIsIllegal(json.get(InstructionCodec.SUBTYPE),\n InstructionCodec.SUBTYPE + InstructionCodec.ERROR_MESSAGE).asText();\n\n if (subType.equals(L4ModificationInstruction.L4SubType.TCP_DST.name())) {\n TpPort tcpPort = TpPort.tpPort(nullIsIllegal(json.get(InstructionCodec.TCP_PORT),\n InstructionCodec.TCP_PORT + InstructionCodec.MISSING_MEMBER_MESSAGE).asInt());\n return Instructions.modTcpDst(tcpPort);\n } else if (subType.equals(L4ModificationInstruction.L4SubType.TCP_SRC.name())) {\n TpPort tcpPort = TpPort.tpPort(nullIsIllegal(json.get(InstructionCodec.TCP_PORT),\n InstructionCodec.TCP_PORT + InstructionCodec.MISSING_MEMBER_MESSAGE).asInt());\n return Instructions.modTcpSrc(tcpPort);\n } else if (subType.equals(L4ModificationInstruction.L4SubType.UDP_DST.name())) {\n TpPort udpPort = TpPort.tpPort(nullIsIllegal(json.get(InstructionCodec.UDP_PORT),\n InstructionCodec.UDP_PORT + InstructionCodec.MISSING_MEMBER_MESSAGE).asInt());\n return Instructions.modUdpDst(udpPort);\n } else if (subType.equals(L4ModificationInstruction.L4SubType.UDP_SRC.name())) {\n TpPort udpPort = TpPort.tpPort(nullIsIllegal(json.get(InstructionCodec.UDP_PORT),\n InstructionCodec.UDP_PORT + InstructionCodec.MISSING_MEMBER_MESSAGE).asInt());\n return Instructions.modUdpSrc(udpPort);\n }\n throw new IllegalArgumentException(\"L4 Instruction subtype \"\n + subType + \" is not supported\");\n }", "protected void processLine(String line){}", "private void addInstructions() {\n for (InstructionWrapper instructionWrapper : this.instructions) {\n if (!(instructionWrapper.instruction instanceof LabelInstruction)) {\n this.code.addInstruction(instructionWrapper.instruction);\n }\n }\n }", "public String obtener_tipo_instruccion(String line) {\n \tif( line.matches(this.pattern_enlace) ) {\n \t\treturn \"EnunciadoCrearEnlace\";\n \t} else if( line.matches(this.pattern_remover_enlace) ){\n \t\treturn \"EnunciadoRemoverEnlace\";\n \t} else {\n \t\treturn \"EnunciadoPregunta\";\n \t}\n }", "public String getInstruction(){\n\t\treturn this.instruction;\n\t}", "private void parseUsemtl(String line) {\n int space_index = line.indexOf(' ') + 1;\n String mtl_name = line.substring(space_index);\n mtl_name = mtl_name.trim();\n float[] material_color = mMaterial.getFloatArray(mtl_name);\n if (material_color == null) {\n return;\n }\n if (material_color.length != 3) {\n return;\n }\n mMaterialColor[0] = material_color[0];\n mMaterialColor[1] = material_color[1];\n mMaterialColor[2] = material_color[2];\n mHaveMaterialColor = true;\n }", "@Override\n\tpublic String convert(String sLine) throws ExceptionZZZ {\n\t\treturn null;\n\t}", "public MInOutLine getLine()\n\t{\n\t\tif (m_line == null)\n\t\t\tm_line = new MInOutLine (getCtx(), getM_InOutLine_ID(), get_TrxName());\n\t\treturn m_line;\n\t}", "private String handleMixedLine(String line, int bracketsState) {\n // instructions to extract between comments\n StringBuilder nonCommentLines = new StringBuilder();\n char prevChar = '\\0';\n boolean isString = false;\n\n for (int i = 0; i < line.length(); i++) {\n // if long comment open bracket found, change the current state\n // if no escape sequence found and not a String\n if (line.charAt(i) == AssemblyConstants.LONG_COMMENT_OPEN\n && prevChar != AssemblyConstants.ESCAPE_SEQUENCE && !isString) {\n bracketsState = 1;\n\n // if long comment close bracket found, change the current state\n // if no escape sequence found and not a String\n } else if (line.charAt(i) == AssemblyConstants.LONG_COMMENT_CLOSE\n && prevChar != AssemblyConstants.ESCAPE_SEQUENCE && !isString) {\n bracketsState--;\n\n // make sure there is not too many long comment close brackets\n if (bracketsState < 0)\n throw new WrongCommentFormatException(\"\\nInvalid long comment found: \" +\n \"Too many long comment close brackets found in line: '\" + line + \"'\");\n\n // if state equals zero, extract all instructions found\n } else if (bracketsState == 0)\n // if single line comment found, break the loop (everything else is definitely a part of the comment)\n // if no escape sequence found and not a String\n if (line.charAt(i) == AssemblyConstants.SINGLE_LINE_COMMENT\n && prevChar != AssemblyConstants.ESCAPE_SEQUENCE && !isString)\n break;\n else\n // add the instruction part found\n nonCommentLines.append(line.charAt(i));\n\n // check if the string separator found and is not with an escape sequence\n if (line.charAt(i) == AssemblyConstants.STRING_SEPARATOR\n && prevChar != AssemblyConstants.ESCAPE_SEQUENCE)\n isString = !isString;\n // save the previous char\n prevChar = line.charAt(i);\n }\n\n // update the brackets' state\n isLongComment = bracketsState != 0;\n\n // remove all unnecessary whitespaces found in lines in-between\n return removeWhitespace(nonCommentLines.toString());\n\n }", "public OMAbstractLine() {\n super();\n }", "public abstract String getLine(int lineNumber);", "public UM readUM(String line){\n\t\tStringTokenizer tokenizer = new StringTokenizer(line, \"|\");\n\t\tString code = tokenizer.nextToken();\n\n\t\twhile(code.startsWith(\"0\")){\n\t\t\tcode = code.substring(1, code.length());\n\t\t}\n\n\t\tshort codeValue = new Integer(code).shortValue();\n\t\tString name = tokenizer.nextToken();\n\t\treturn new UM(codeValue,name);\n\t}", "@Override\n\tprotected String processLine(String line) {\n\t\treturn null;\n\t}", "private SimInstruction getInstruction(Addr address) {\n var inst = decodedInstructions.get(address);\n\n if (inst != null) {\n return inst;\n }\n\n // Try to decode instruction\n var rawInstruction = program.get(address);\n\n // System.out.println(\"INSTRUC: \" + instructions);\n SpecsCheck.checkNotNull(rawInstruction,\n () -> \"No program instruction found at address \" + address.toNumber() + \" (\" +\n address + \")\");\n\n var microCodeInstruction = decoder.decode(rawInstruction, this);\n decodedInstructions.put(address, microCodeInstruction);\n\n return microCodeInstruction;\n }", "void visit(ProcessingInstruction node);", "public List<ConvertedLine> convert(final String line) {\n if (line.length() > 400) {\n return null;\n }\n\n Matcher match = linePattern.matcher(line);\n\n if (match.matches()) {\n String file = null;\n int lineno = -1;\n\n if (fileGroup >= 0) {\n file = match.group(fileGroup);\n // Make some adjustments - easier to do here than in the regular expression\n // (See 109721 and 109724 for example)\n if (file.startsWith(\"\\\"\")) { // NOI18N\n file = file.substring(1);\n }\n if (file.startsWith(\"./\")) { // NOI18N\n file = file.substring(2);\n }\n if (filePattern != null && !filePattern.matcher(file).matches()) {\n return null;\n }\n }\n\n if (lineGroup >= 0) {\n String linenoStr = match.group(lineGroup);\n\n try {\n lineno = Integer.parseInt(linenoStr);\n } catch (NumberFormatException nfe) {\n LOGGER.log(Level.INFO, null, nfe);\n lineno = 0;\n }\n }\n\n return Collections.<ConvertedLine>singletonList(\n ConvertedLine.forText(line,\n new FileListener(file, lineno, locator, handler)));\n }\n\n return null;\n }", "Line createLine();", "@Override\n public Line getLine() {\n return line;\n }", "public void Mirror(Line l)\n\t{\n\t\tif (l == null) return;\n\t\tif (l.point1 == null || l.point2 == null)\n {\n return;\n }\n\t\tint rise = l.point1.y - l.point2.y;\n\t\tint run = l.point1.x - l.point2.x;\n\t\t\n\t\tif (run != 0)\n\t\t{\n\t\t\tint slope = rise/run;\n\n\t\t\tint b = l.point1.y - (slope*l.point1.x);\n\n\t\t\tint d = (l.point1.x + (l.point1.y - b)*slope) / ( 1 + slope*slope);\n\n\t\t\tthis.x = 2*d - this.x;\n\t\t\tthis.y = (2*d*slope - this.y + 2*b);\n\t\t}\n\t\t//handle undefined slope; \n\t\telse\n\t\t{\n\t\t\tthis.x = -(this.x - l.point1.x); \n\t\t}\n\t\t\n\n\t}", "public final AntlrDatatypeRuleToken ruleLineRegress() throws RecognitionException {\n AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();\n\n Token kw=null;\n\n\n \tenterRule();\n\n try {\n // InternalMLRegression.g:903:2: (kw= 'line_regress' )\n // InternalMLRegression.g:904:2: kw= 'line_regress'\n {\n kw=(Token)match(input,26,FOLLOW_2); \n\n \t\tcurrent.merge(kw);\n \t\tnewLeafNode(kw, grammarAccess.getLineRegressAccess().getLine_regressKeyword());\n \t\n\n }\n\n\n \tleaveRule();\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "private int findLineOffset(int line) {\n if (line == 1) {\n return 0;\n }\n if (line > 1 && line <= lineOffsets.size()) {\n return lineOffsets.get(line - 2);\n }\n return -1;\n }", "public Line voToLine() {\n Line line = new Line();\n if (this.getLineId() != null) {\n line.setLineId(this.getLineId());\n }\n line.setAppmodelId(this.getAppmodelId());\n line.setDriverName(this.getDriverName());\n line.setDriverPhone(this.getDriverPhone());\n line.setLineName(this.getLineName());\n line.setProvinceId(this.provinceId);\n line.setCityId(this.cityId);\n line.setAreaId(this.areaId);\n return line;\n }", "@Nonnull\r\n private Token line_token(int line, @CheckForNull String name, @Nonnull String extra) {\r\n StringBuilder buf = new StringBuilder();\r\n buf.append(\"#line \").append(line)\r\n .append(\" \\\"\");\r\n /* XXX This call to escape(name) is correct but ugly. */\r\n if (name == null)\r\n buf.append(\"<no file>\");\r\n else\r\n MacroTokenSource.escape(buf, name);\r\n buf.append(\"\\\"\").append(extra).append(\"\\n\");\r\n return new Token(P_LINE, line, 0, buf.toString(), null);\r\n }", "String removeLabel(String label);", "public Token<TOKs> transition( CharSequence sequence, int line ) {\n\t\t\n\t\treturn new T_prensclose( sequence.toString(), line );\n\t}", "public void modifyIntrogressionLine(IntrogressionLine il)\n\t{\n\t\tList<SegmentExt> segments = il.getSegments();\n//\t not checking right now, just update segment info directly\n\t\tif (segments != null && !segments.isEmpty())\n\t\t{\n\t\t\tSegmentManagerImpl sManagerImpl = new SegmentManagerImpl();\n\t\t\tIntrogressionLine temp = this.getIntrogressionLineByName(il\n\t\t\t .getGermplasmname());\n\t\t\tGermplasmSegmentManagerImpl gsManagerImpl = new GermplasmSegmentManagerImpl();\n\t\t\tif (il.getId() == null)\n\t\t\t\til.setId(temp.getId());\n\t\t\tList<SegmentExt> lstSegmentExt = new ArrayList<SegmentExt>(); // used to store the segment info for batching update segment and germplasm_segment table info\n\t\t\t\n\t\t\tfor (SegmentExt segmentExt : segments)\n\t\t\t{\n\t\t\t\tSegment segment = sManagerImpl\n\t\t\t\t .getSegmentBySegmentExtWithoutConsiderId(segmentExt);\n\t\t\t\tif (segment != null)\n\t\t\t\t{\n\t\t\t\t\tsegmentExt.setSegmentExtFromSegment(segment);\n\t\t\t\t\tlstSegmentExt.add(segmentExt);\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\tsManagerImpl.addSegmentNoRepeat(segmentExt);\n\t\t\t\t\tsegment = sManagerImpl\n\t\t\t\t\t .getSegmentBySegmentExtWithoutConsiderId(segmentExt);\n\t\t\t\t\tsegmentExt.setSegmentExtFromSegment(segment);\n\t\t\t\t\tlstSegmentExt.add(segmentExt);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (lstSegmentExt.size() != 0)\n\t\t\t{\n\t\t\t\tgsManagerImpl.deleteGermplasmSegmentByGermplasmId(il.getId());\n\t\t\t\t\n\t\t\t\tfor (SegmentExt segmentExt : lstSegmentExt)\n\t\t\t\t{\n\t\t\t\t\tGermplasmSegment gs = new GermplasmSegment();\n\t\t\t\t\tgs.setGermplasmId(il.getId());\n\t\t\t\t\tgs.setSegmentId(segmentExt.getSegmentId());\n\t\t\t\t\tgs.setGermplasmSegmentNumber(segments.size());\n\t\t\t\t\tgs.setIshomogenous(segmentExt.getIsHomogenous().toString());\n\t\t\t\t\t\n\t\t\t\t\tgsManagerImpl.addGermplasmSegment(gs);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static String process(String line) {\r\n LinkedList<Character> list = new LinkedList<>();\r\n String lineR = \"\";\r\n boolean start = false;\r\n int contAux = 0;\r\n\r\n for (int i = 0; i < line.length() - 1; i++) {\r\n do {\r\n if (line.charAt(i) == '[') {\r\n start = true;\r\n i++;\r\n contAux = 0;\r\n }\r\n if (line.charAt(i) == ']') {\r\n start = false;\r\n contAux = 0;\r\n i++;\r\n }\r\n } while (line.charAt(i) == '[' || line.charAt(i) == ']');\r\n\r\n if (start) {\r\n list.add(contAux, line.charAt(i));\r\n contAux++;\r\n } else {\r\n list.add(line.charAt(i));\r\n }\r\n }\r\n\r\n for (int i = 0; i < list.size(); i++) {\r\n lineR += list.get(i);\r\n }\r\n return lineR;\r\n }", "public void addLine(String line) {\n if (methodMode) {\n methodCode.add(new AsmLine(line));\n } else {\n program.add(new AsmLine(line));\n }\n }", "ILoLoString translate();", "public String getLine ()\n {\n return line;\n }", "void setCode(LineLoader in) {\n code=in;\n }", "protected TextLine genText (String str, Text text, TextLine line, Context context) {\n\t\tTextLine tLine = line;\n\t\tString[] parts = str.split(\"\\\\n\");\n\t\tbyte charset = TextParams.ROMAN;\n\t\tbyte size = TextParams.ILIAD_SCHOLIA_FONT_SIZE;\n\n\t\tString part = parts[0];\n\t\tpart = part.replaceAll(\"\\\\s+\", \" \");\n\t\tTextRun run = new TextRun(part, charset, size);\n\t\tif (context.bold) run.setBold();\n\t\tif (context.italic) run.setItalic();\n\t\ttLine.appendRun(run);\n\n\t\tif(parts.length > 1) {\n\t\t\ttext.copyLine(tLine);\n\t\t\tfor(int i =1;i<parts.length;i++) {\n\t\t\t\tpart = parts[i];\n\t\t\t\tpart = part.replaceAll(\"\\\\s+\", \" \");\n\t\t\t\ttLine = new TextLine();\n\t\t\t\trun = new TextRun(part, charset, size);\n\t\t\t\tif (context.bold) run.setBold();\n\t\t\t\tif (context.italic) run.setItalic();\n\t\t\t\ttLine.appendRun(run);\n\t\t\t\tif(i<parts.length -1) {\n\t\t\t\t\ttext.copyLine(tLine);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn tLine;\n\t}", "@Override\n\tpublic String extendCode(String initialSvgString, Label label) {\n\n\t\t//comment\n\t\tString commentString = createComment(label);\n\n\t\t//label image\n\t\tString imageSvgString = createImageSvgStringFromLabel(label);\n\n\t\t//text\n\t\tString text = label.getText();\n\n\t\t//background color\n\t\tString backgroundFill = determineBackgroundFill(label);\n\t\tboolean hasBackground = backgroundFill != null;\n\n\t\t//x & y\n\t\tList<Node> childNodes = label.getChildrenUnmodifiable();\n\t\tText textNode = null;\n\t\tfor (Node childNode : childNodes) {\n\t\t\tboolean isText = childNode instanceof Text;\n\t\t\tif (isText) {\n\t\t\t\ttextNode = (Text) childNode;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tObjects.requireNonNull(textNode, \"Could not retrive Text node from Label.\");\n\n\t\tBounds bounds = label.getBoundsInParent();\n\t\tDouble xl = bounds.getMinX();\n\t\tDouble yl = bounds.getMinY();\n\n\t\tBounds textBounds = textNode.getBoundsInParent();\n\t\tDouble xt = textBounds.getMinX();\n\t\tDouble yt = textBounds.getMinY();\n\n\t\tDouble x = xl + xt;\n\t\tDouble yField = yl + yt;\n\n\t\t//Bounds bounds = label.getBoundsInParent();\n\t\t//Double x = bounds.getMinX();\n\t\tboolean hasImage = !imageSvgString.isEmpty();\n\t\tif (hasImage) {\n\t\t\tNode image = label.getGraphic();\n\t\t\tDouble xOffset = image.getBoundsInParent().getMaxX();\n\t\t\tx = x + xOffset;\n\t\t}\n\t\tDouble baseLineOffset = label.getBaselineOffset();\n\t\tDouble y = yField + baseLineOffset;\n\n\t\t//font\n\t\tFont font = label.getFont();\n\t\tString fontFamily = font.getFamily();\n\t\tDouble fontSize = font.getSize();\n\n\t\t//font color\n\t\tPaint textFill = label.getTextFill();\n\t\tString fill = paintToColorString(textFill);\n\n\t\t//text anchor (horizontal alignment)\n\t\tSvgTextAnchor textAnchor = determineTextAnchor(label);\n\n\t\t//comment\n\t\tString svgString = commentString;\n\n\t\t//<rect> start\n\t\tboolean wrapInRect = hasImage || hasBackground;\n\t\tif (wrapInRect) {\n\t\t\tsvgString = includeRectStartTag(svgString, imageSvgString, backgroundFill, hasBackground, textBounds);\n\t\t}\n\n\t\t//<text> start\n\t\tsvgString = includeTextStartTag(svgString, x, y, fontFamily, fontSize, fill, textAnchor);\n\n\t\t//<text> content\n\t\tsvgString = svgString + text;\n\n\t\t//<text> end\n\t\tsvgString = svgString + \"</text>\\n\\n\";\n\n\t\t//<rect> end\n\t\tif (wrapInRect) {\n\t\t\tdecreaseIndentation();\n\t\t\tsvgString = includeRectEndTag(svgString);\n\t\t}\n\n\t\treturn svgString;\n\n\t}", "public String getLine() {\n\t\treturn line.toString();\n\t}", "public static Reindeer PARSE(String line) {\n String[] bits = line.split(\" \");\n return new Reindeer(bits[0], Integer.parseInt(bits[3]), Integer.parseInt(bits[6]), Integer.parseInt(bits[13]));\n }", "public static Line CreateLine(String id) { return new MyLine(id); }", "public int getLine()\n/* */ {\n/* 1312 */ return this.line;\n/* */ }", "public String getInstruction()\n\t\t{\n\t\t\treturn m_instruction;\n\t\t}", "private FlowRule buildTLineMapFlowRule(Attachment attachment)\n throws BngProgrammableException {\n PiCriterion criterion = PiCriterion.builder()\n .matchExact(FabricConstants.HDR_S_TAG,\n attachment.sTag().toShort())\n .matchExact(FabricConstants.HDR_C_TAG,\n attachment.cTag().toShort())\n .build();\n TrafficSelector trafficSelector = DefaultTrafficSelector.builder()\n .matchPi(criterion)\n .build();\n PiAction action = PiAction.builder()\n .withId(FabricConstants.FABRIC_INGRESS_BNG_INGRESS_SET_LINE)\n .withParameter(new PiActionParam(FabricConstants.LINE_ID,\n lineId(attachment)))\n .build();\n TrafficTreatment instTreatment = DefaultTrafficTreatment.builder()\n .piTableAction(action)\n .build();\n return buildFlowRule(trafficSelector,\n instTreatment,\n FabricConstants.FABRIC_INGRESS_BNG_INGRESS_T_LINE_MAP,\n attachment.appId());\n }", "public interface GraphmlLabelParser<LabelType> extends LabelParser<LabelType> {\n\n /**\n * @return a Set of all possible attribute names\n */\n public Set<String> attributes();\n\n /**\n * @param map\n * @return the label represented by the given map\n * @throws ParseException\n */\n public LabelType parseML(Map<String, String> map) throws ParseException;\n\n /**\n * @param label\n * @return the Map representing the given label\n */\n public Map<String, String> serializeML(LabelType label);\n\n /**\n * compares and set the attributes for this Parser\n *\n * @param foundAttributes\n * @return <code>true</code>, if the attributes are possible, otherwise\n * <code>false</code>\n */\n public boolean setAttributes(Set<String> foundAttributes);\n\n}", "private void setMarkersContradictionalFeatures(String line, IFile res,\r\n\t\t\tint lineNumber) {\r\n\t\tif (line.contains(\"#else\")) {\r\n\t\t\tif (!expressionStack.isEmpty()) {\r\n\t\t\t\tNode[] nestedExpressions = new Node[expressionStack.size()];\r\n\t\t\t\tnestedExpressions = expressionStack.toArray(nestedExpressions);\r\n\r\n\t\t\t\tAnd nestedExpressionsAnd = new And(nestedExpressions);\r\n\r\n\t\t\t\tisContradictionOrTautology(nestedExpressionsAnd.clone(), true,\r\n\t\t\t\t\t\tlineNumber, res);\r\n\t\t\t}\r\n\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tboolean negative = line.contains(\"#ifndef \");\r\n\r\n\t\t// remove \"//#if \", \"//ifdef\", ...\r\n\t\t// TODO TIRAR O defined\r\n\t\tline = replaceCommandPattern.matcher(line).replaceAll(\"\");\r\n\r\n\t\t// prepare expression for NodeReader()\r\n\t\tline = line.trim();\r\n\t\tline = line.replace(\"&&\", \"&\");\r\n\t\tline = line.replace(\"||\", \"|\");\r\n\t\tline = line.replace(\"!\", \"-\");\r\n\t\tline = line.replace(\"&\", \" and \");\r\n\t\tline = line.replace(\"|\", \" or \");\r\n\t\tline = line.replace(\"-\", \" not \");\r\n\r\n\t\t// get all features and generate Node expression for given line\r\n\t\tNode ppExpression = nodereader.stringToNode(line, featureList);\r\n\r\n\t\tif (ppExpression != null) {\r\n\t\t\tif (negative)\r\n\t\t\t\tppExpression = new Not(ppExpression.clone());\r\n\r\n\t\t\tdoThreeStepExpressionCheck(ppExpression, lineNumber, res);\r\n\t\t}\r\n\r\n\t}", "int getLineOffset(int line) throws BadLocationException;", "private static Text createOffset(int line) {\n String offset = Integer.toHexString(line * 16);\n StringBuilder stringBuilder = new StringBuilder();\n for (int j = 0; j < (8 - offset.length()); j++) {\n stringBuilder.append(0);\n }\n stringBuilder.append(offset).append(' ');\n Text result = new Text(stringBuilder.toString());\n //noinspection HardCodedStringLiteral\n result.getStyleClass().add(\"normal\");\n return result;\n }", "static String extractSpriteImageDirectiveString(String cssLine)\n {\n final Matcher matcher = SPRITE_IMAGE_DIRECTIVE.matcher(cssLine);\n\n if (matcher.find())\n {\n return matcher.group(1).trim();\n }\n else\n {\n return null;\n }\n }", "abstract protected T getRecordFromLine(String line) throws DataImportException ;", "private void parseNativeCodeLine(final String line, final AtomicReference<String> appArch) {\n if (line.indexOf(\"armeabi-v7a\") != -1) {\n if (Application.ARCH_ARM64.equals(appArch.get())) {\n // ARM64 has already been set elsewhere, so it is a universal file\n // This is the case when the AAPT output has the form:\n // native-code: 'armeabi-v7a'\n // alt-native-code: 'arm64-v8a'\n appArch.set(null);\n return;\n }\n appArch.set(Application.ARCH_ARMEABI);\n if (line.indexOf(\"arm64-v8a\") != -1) {\n // Native code for both architectures present, so it is a universal file\n appArch.set(null);\n }\n } else if (line.indexOf(\"arm64-v8a\") != -1) {\n if (Application.ARCH_ARMEABI.equals(appArch.get())) {\n // ARMEABI has already been set elsewhere, so it is a universal file\n appArch.set(null);\n return;\n }\n appArch.set(Application.ARCH_ARM64);\n }\n }", "private static void processPart (WorkPart part) \n\t\tthrows Exception\n\t{\n\t\tTextWrapper textWrapper = part.getPrimaryText();\n\t\tif (textWrapper == null) return;\n\t\tText primary = textWrapper.getText();\n\t\tint n = primary.getNumLines();\n\t\tTextLine[] primaryLines = primary.getLines();\n\t\tTextLine[] translationLines = new TextLine[n];\n\t\tCollection lines = pm.getLinesInWorkPart(part);\n\t\tint numTranslatedLines = 0;\n\t\tfor (Iterator it = lines.iterator(); it.hasNext(); ) {\n\t\t\tLine line = (Line)it.next();\n\t\t\tTextRange location = line.getLocation();\n\t\t\tif (location == null) continue;\n\t\t\tTextLocation start = location.getStart();\n\t\t\tif (start == null) continue;\n\t\t\tTextLocation end = location.getEnd();\n\t\t\tif (end == null) continue;\n\t\t\tint endIndex = end.getIndex();\n\t\t\tString lineTag = line.getTag();\n\t\t\tif (lineTag == null) continue;\n\t\t\tElement el = (Element)lineTagToElMap.get(lineTag);\n\t\t\tif (el == null) continue;\n\t\t\tlineTagsFound.add(lineTag);\n\t\t\tTextLine translationLine = new BuildParagraph(el, \n\t\t\t\tTextParams.ROMAN,\n\t\t\t\tTextParams.TRANSLATED_LINE_FONT_SIZE);\n\t\t\tTextLine primaryLine = primaryLines[endIndex];\n\t\t\tint primaryIndentation = primaryLine.getIndentation();\n\t\t\ttranslationLine.setIndentation(primaryIndentation +\n\t\t\t\tTextParams.TRANSLATION_INDENTATION);\n\t\t\ttranslationLines[endIndex] = translationLine;\n\t\t\tnumTranslatedLines++;\n\t\t}\n\t\tif (numTranslatedLines == 0) return;\n\t\tText translation = new Text();\n\t\ttranslation.setCollapseBlankLines(false);\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tTextLine translationLine = translationLines[i];\n\t\t\tif (translationLine == null) {\n\t\t\t\ttranslation.appendBlankLine();\n\t\t\t} else {\n\t\t\t\ttranslation.appendLine(translationLine);\n\t\t\t}\n\t\t}\n\t\ttranslation.finalize();\n\t\tpm.begin();\n\t\tTextWrapper translationWrapper = new TextWrapper(translation);\n\t\tpm.save(translationWrapper);\n\t\tpart.addTranslation(translationTag, translationWrapper);\n\t\tpm.commit();\n\t}", "@XmlElement(\"LinePlacement\")\npublic interface LinePlacement extends LabelPlacement {\n /**\n * The PerpendicularOffset element of a LinePlacement gives the perpendicular distance\n * away from a line to draw a label.\n *\n * The distance is in uoms and is positive to the left-hand side of the line string.\n * Negative numbers mean right. The default offset is 0.\n */\n @XmlElement(\"PerpendicularOffset\")\n Expression getPerpendicularOffset();\n\n /**\n * InitialGap specifies how far away the first graphic will be drawn relative to the start of\n * the rendering line\n */\n @XmlElement(\"InitialGap\")\n Expression getInitialGap();\n\n /**\n * Gap gives the distance between two graphics.\n */\n @XmlElement(\"Gap\")\n Expression getGap();\n\n /**\n * If IsRepeated is \"true\", the label will be repeatedly drawn\n * along the line with InitialGap and Gap defining the spaces at the\n * beginning and between labels.\n */\n @XmlElement(\"IsRepeated\")\n boolean isRepeated();\n\n /**\n * Labels can either be aligned to the line geometry if IsAligned is \"true\" (the default) or are\n * drawn horizontally.\n */\n @XmlElement(\"IsAligned\")\n boolean IsAligned();\n\n /**\n * GeneralizeLine allows the actual geometry, be it a\n * linestring or polygon to be generalized for label placement. This is e.g. useful for\n * labelling polygons inside their interior when there is need for the label to resemble the\n * shape of the polygon.\n */\n @XmlElement(\"GeneralizeLine\")\n boolean isGeneralizeLine();\n\n /**\n * calls the visit method of a StyleVisitor\n *\n * @param visitor the style visitor\n */\n Object accept(StyleVisitor visitor, Object extraData);\n}", "public final void ruleLineRegress() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMLRegression.g:416:2: ( ( 'line_regress' ) )\n // InternalMLRegression.g:417:2: ( 'line_regress' )\n {\n // InternalMLRegression.g:417:2: ( 'line_regress' )\n // InternalMLRegression.g:418:3: 'line_regress'\n {\n before(grammarAccess.getLineRegressAccess().getLine_regressKeyword()); \n match(input,11,FOLLOW_2); \n after(grammarAccess.getLineRegressAccess().getLine_regressKeyword()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "private boolean LineHandler(String line, Out out) \n throws SQLException, IOException\n {\n if(line == null) \n {\n return false;\n }\n // Get Norm result by going through flow:t:g:o:l:B:w\n // get the term from appropriate field\n String inTerm = In.GetField(line, separator_, termFieldNum_);\n LexItem in = new LexItem(inTerm);\n Vector<LexItem> result = ToNormalize.Mutate(in, maxTerm_, stopWords_, \n conn_, trie_, symbolMap_, unicodeMap_, ligatureMap_, diacriticMap_, \n nonStripMap_, removeSTree_, detailsFlag_, false);\n \n // print results\n // check no output flag\n if((noOutputFlag_ == true) // no output flag\n && ((result.size() == 0) // no output LexItem\n || ((result.size() == 1) // one output lexItem with empty string\n && (result.elementAt(0).GetTargetTerm().length() == 0))))\n {\n String outStr = line;\n if(filterInputFlag_ == true)\n {\n outStr = in.GetOriginalTerm();\n }\n out.Println(outWriter_, (outStr + separator_ + noOutputStr_), \n fileOutput_, false);\n }\n else\n {\n for(int i = 0; i < result.size(); i++)\n {\n LexItem temp = result.elementAt(i);\n String outStr = line;\n if(filterInputFlag_ == true)\n {\n outStr = temp.GetOriginalTerm();\n }\n out.Println(outWriter_, (outStr + separator_ \n + temp.GetTargetTerm()), fileOutput_, false);\n // print details\n if(detailsFlag_ == true)\n {\n out.Println(outWriter_, temp.GetDetailInformation(), \n fileOutput_, false);\n }\n }\n }\n return true;\n }", "protected abstract Operation parseLine(File baseDir, String line, int lineNum) throws IOException;", "public String getLBR_DocLine_ICMS_UU();", "public void parseInstruction(String instruction) {\n String regex = \"Step ([A-Z]) must be finished before step ([A-Z]) can begin\\\\.\";\n Pattern pattern = Pattern.compile(regex, Pattern.CASE_INSENSITIVE);\n Matcher matcher = pattern.matcher(instruction);\n matcher.find();\n String vertex1 = matcher.group(1);\n String vertex2 = matcher.group(2);\n\n // Create vertices and edges in the DAG\n if (!steps.containsVertex(vertex1)) {\n steps.addVertex(vertex1);\n }\n if (!steps.containsVertex(vertex2)) {\n steps.addVertex(vertex2);\n }\n DefaultEdge edge = new DefaultEdge();\n if (!steps.containsEdge(vertex1, vertex2)) {\n steps.addEdge(vertex1, vertex2);\n }\n }" ]
[ "0.607533", "0.6005245", "0.56938064", "0.5652317", "0.5551659", "0.5452808", "0.5284057", "0.5267775", "0.5186408", "0.5130204", "0.50830275", "0.5078421", "0.4988321", "0.4904594", "0.48340937", "0.4818806", "0.48121834", "0.4810939", "0.47992256", "0.4788842", "0.47673714", "0.47576907", "0.47477546", "0.47249785", "0.47207716", "0.47136128", "0.47111365", "0.47066393", "0.46965063", "0.4694743", "0.4687974", "0.46769768", "0.46715152", "0.46684778", "0.4664002", "0.46552226", "0.46543813", "0.46533212", "0.4652237", "0.4615545", "0.46062738", "0.4603978", "0.459768", "0.45953545", "0.45883423", "0.4583698", "0.45820743", "0.45719796", "0.4571338", "0.4553154", "0.455249", "0.45524102", "0.45447478", "0.45311087", "0.45271182", "0.45178747", "0.45124617", "0.45121932", "0.4503367", "0.4500175", "0.44948602", "0.44925433", "0.4490217", "0.4489691", "0.44787163", "0.44753712", "0.4470103", "0.4455558", "0.44540647", "0.44530407", "0.4452818", "0.4447572", "0.44449434", "0.44443387", "0.4441172", "0.4437685", "0.44363824", "0.44299832", "0.4428257", "0.4425092", "0.44243443", "0.44230583", "0.441665", "0.44131804", "0.44117218", "0.44100183", "0.44035792", "0.44001165", "0.4396445", "0.4395964", "0.43940267", "0.43906614", "0.4390079", "0.4385681", "0.43829578", "0.43805766", "0.43780473", "0.4369559", "0.43623874", "0.43621865" ]
0.4788449
20
/ Return the first word of line and remove it from line. If there is no word, return ""
private String scan() { line = line.trim(); if (line.length() == 0) return ""; int i = 0; while (i < line.length() && line.charAt(i) != ' ' && line.charAt(i) != '\t') { i = i + 1; } String word = line.substring(0, i); line = line.substring(i); return word; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String firstWord(String userMessage) {\n if (userMessage.contains(\" \"))\n return userMessage.substring(0, userMessage.indexOf(\" \"));\n return userMessage;\n }", "private String trimName(String line) {\n line = trimLine(line);\n int idx = line.indexOf(\"(\");\n if(idx == -1){\n idx = line.indexOf(\":\");\n }\n if (idx != -1) {\n line = line.substring(0, idx);\n }\n return line.trim();\n }", "public static String delFirstChar(String word){\n\t\tif(word.length() <= 1){\n\t\t\treturn word;\n\t\t}\n\t\tword = word.substring(1, word.length());\n\t\tguessPW(word);\n\t\treturn word;\n\n\t}", "public static void cleanLine(String[] wordsInLine){\n int i = 0;\n for(String word : wordsInLine){\n wordsInLine[i] = word.toLowerCase().replaceAll(\"[^a-zA-Z0-9\\\\s]\",\"\");\n i++;\n }\n }", "private String skipEmptyLines(String line, Scanner myReader){\n while (myReader.hasNextLine()){\n if (line.length() == 0){\n line = myReader.nextLine();\n }\n else{\n String[] tokens = line.split(\" \");\n if (tokens.length > 0){\n return line;\n }\n }\n }\n return \"\";\n }", "private String trimLine(String line) {\n int idx = line.indexOf(\"//\");\n if (idx != -1) {\n line = line.substring(0, idx);\n }\n return line.trim();\n }", "private String removeLeadingWhitespace(String input) {\n for (int index = 0; index < input.length(); index++) {\n if (!Character.isWhitespace(input.charAt(index))) {\n return input.substring(index);\n }\n }\n return input;\n }", "String trimLeft( String txt ){\r\n // trim\r\n int start = 0;\r\n WHITESPACE: for( int i=0; i < txt.length(); i++ ){\r\n char ch = txt.charAt(i);\r\n if( Character.isWhitespace(ch)){\r\n continue;\r\n }\r\n else {\r\n start = i;\r\n break WHITESPACE;\r\n }\r\n }\r\n return txt.substring(start); \r\n }", "private String filter(String line) {\n return line.toLowerCase().replaceAll(\"[^a-z]\", \"\");\n }", "private String getStemming(String line) throws IOException {\n\t\treturn line;\n\t\t// return Stemmer.processTweets(line);\n\t}", "public static String removePosessive(String line) {\n\t\tif (line.contains(\"'S\")) {\n\t\t\tline = line.replace(\"'S\", \"\");\n\t\t}\n\t\treturn line;\n\t}", "private String fixMistakes(final String line) {\n final String[] parts = line.split(\" \");\n final StringBuilder lineBuilder = new StringBuilder();\n\n for (int i = 0; i < parts.length; i++) {\n String part = parts[i];\n\n for (final String[] fixWord : FIX_LIST) {\n if (fixWord[0].equals(part)) {\n part = fixWord[1];\n break;\n }\n }\n\n lineBuilder.append(part);\n\n // add trailing space if it is not the last part\n if (i != parts.length - 1) {\n lineBuilder.append(\" \");\n }\n }\n\n return lineBuilder.toString();\n }", "static String trimStart(String s) {\n StringBuilder sb = new StringBuilder(s);\n while(sb.length() > 0 && (sb.charAt(0) == '\\u005cr'\n || sb.charAt(0) == '\\u005cn'\n || sb.charAt(0) == '\\u005ct'\n || sb.charAt(0) == ' ')) {\n sb.deleteCharAt(0);\n }\n return sb.toString();\n }", "private String removeFirstChar(String name) {\n\t\treturn name.substring(1, name.length());\n\t}", "static String cutName(String input) { return input.split(\" \")[0]; }", "public String removeFirst() {\n\t\treturn removeAt(0);\n\t}", "public static String removeNonWord(String message)\r\n {\r\n int start = getLetterIndex(message, head); //get the fist index that contain English letter\r\n int end = getLetterIndex(message, tail); //get the last index that contain English letter\r\n if (start == end) // if only contain one letter\r\n return String.valueOf(message.charAt(start)); // return the letter\r\n return message.substring(start, end + 1); // return the content that contain English letter\r\n }", "public String removeLastWord(String text) {\n return text.substring(0, text.lastIndexOf(\" \"));\n }", "public String trim(String str) {\n\n return str.replaceFirst(\" \", \"\");\n\n }", "public static String getFirstChunk( String line )\r\n\t{\r\n\t\tif( line.indexOf(\"@\") == 0 )\r\n\t\t\treturn \"APLUS\";\r\n\t\tif( line.indexOf(\"@\") == -1 )\r\n\t\t\treturn \"aplus\";\r\n\t\treturn line.substring(0,line.indexOf(\"@\"));\r\n\t}", "public String trimOne(String str) {\n return trim(str, 1);\n }", "private String fixWordStarts(final String line) {\n final String[] parts = line.split(\" \");\n\n final StringBuilder lineBuilder = new StringBuilder();\n\n for (int i = 0; i < parts.length; i++) {\n String part = parts[i];\n\n // I prefer a space between a - and the word, when the word starts with a dash\n if (part.matches(\"-[0-9a-zA-Z']+\")) {\n final String word = part.substring(1);\n part = \"- \" + word;\n }\n\n // yes this can be done in 1 if, no I'm not doing it\n if (startsWithAny(part, \"lb\", \"lc\", \"ld\", \"lf\", \"lg\", \"lh\", \"lj\", \"lk\", \"ll\", \"lm\", \"ln\", \"lp\", \"lq\", \"lr\",\n \"ls\", \"lt\", \"lv\", \"lw\", \"lx\", \"lz\")) {\n // some words are incorrectly fixed (llama for instance, and some Spanish stuff)\n if (startsWithAny(part, \"ll\") && isOnIgnoreList(part)) {\n lineBuilder.append(part);\n } else {\n // I starting a word\n part = part.replaceFirst(\"l\", \"I\");\n lineBuilder.append(part);\n }\n } else if (\"l.\".equals(part)) {\n // I at the end of a sentence.\n lineBuilder.append(\"I.\");\n } else if (\"l,\".equals(part)) {\n // I, just before a comma\n lineBuilder.append(\"I,\");\n } else if (\"l?\".equals(part)) {\n // I? Wut? Me? Moi?\n lineBuilder.append(\"I?\");\n } else if (\"l!\".equals(part)) {\n // I! 't-was me!\n lineBuilder.append(\"I!\");\n } else if (\"l..\".equals(part)) {\n // I.. think?\n lineBuilder.append(\"I..\");\n } else if (\"l...\".equals(part)) {\n // I... like dots.\n lineBuilder.append(\"I...\");\n } else if (\"i\".equals(part)) {\n // i suck at spelling.\n lineBuilder.append(\"I\");\n } else if (part.startsWith(\"i'\")) {\n // i also suck at spelling.\n part = part.replaceFirst(\"i\", \"I\");\n lineBuilder.append(part);\n } else {\n // nothing special to do\n lineBuilder.append(part);\n }\n\n // add trailing space if it is not the last part\n if (i != parts.length - 1) {\n lineBuilder.append(\" \");\n }\n }\n\n return lineBuilder.toString();\n }", "public static String removeSingleQuotation(String line) {\n\t\tif (line.contains(\"'\")) {\n\t\t\tline = line.replace(\"'\", \"\");\n\t\t}\n\t\treturn line;\n\t}", "static String[] clean(String line) {\n String[] words = line.trim().split(\"[\\\\p{Punct}\\\\s]+\");\n Object[] cleanedWordsArray = Arrays.stream(words)\n .filter(word -> !wordsSet.contains(word))\n .map(String::trim)\n .toArray();\n\n return Arrays.copyOf(cleanedWordsArray, cleanedWordsArray.length, String[].class);\n }", "private String cutString(String value){\n String [] strings = value.split(\" \");\n System.out.println(strings[0]);\n return strings[0];\n }", "private static String trimWhiteSpace(String sentence) {\n\t\tsentence = sentence.replaceAll(\"[^a-zA-Z]\", \" \");\n//\t\tsentence = sentence.replaceAll(\"\\n\", \" \");\n//\t\tsentence = sentence.replaceAll(\"\\t\", \" \");\n// sentence = sentence.replaceAll(\"\\\\.\", \" \");\n// sentence = sentence.replaceAll(\",\", \" \");\n \n//\t\tint length;\n//\t\tdo {\n//\t\t\tlength = sentence.length();\n//\t\t\tsentence = sentence.replaceAll(\" \", \" \");\n//\n//\t\t} while (sentence.length() < length);\n\t\treturn sentence;\n\t}", "public static void main(String[] args) {\n String sentence=\"I am the best\";\n System.out.println(sentence.replace(\" \", \"\"));\n }", "public static String getWord(String sentence, char word) {\n\t\tString[] words;\n\t\twords = sentence.split(\" \");\n\t\tString cleanedWord=\"\";\n\t\t\n\t\tif(word=='f') {//return the first word\n\t\t\tString temp = words[0];\n\t\t\t\n\t\t\tfor(int i=0; i < temp.length(); i++) {\n\t\t\t\tif(Character.isLetter(temp.charAt(i))) {\n\t\t\t\t\tcleanedWord+= Character.toString(temp.charAt(i));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}else {//return the last word\n\t\t\tString temp = words[words.length -1];\n\t\t\t\n\t\t\tfor(int i=0; i < temp.length(); i++) {\n\t\t\t\tif(Character.isLetter(temp.charAt(i))) {\n\t\t\t\t\tcleanedWord+= Character.toString(temp.charAt(i));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\treturn cleanedWord;\n\t}", "public static String trimString(String line) {\n\t\tline = line.trim();\n\t\tStringBuilder tline = new StringBuilder(\"\");\n\t\tint textMode = 0;\n\t\tboolean trim = false;\n\t\tString temp = \"\";\n\t\tif(line.equalsIgnoreCase(\"\")) return \"\";\n\t\tboolean macro = line.charAt(0)=='%';\n\t\tfor(int c=0;c<line.length();c++) {\n\t\t\tif((textMode == 0 || textMode == 2) && line.charAt(c)=='\"') {\n\t\t\t\tif(macro)\n\t\t\t\t\ttline.append('\"');\n\t\t\t\telse {\n\t\t\t\t\ttextMode = textMode==0?2:0;\n\t\t\t\t\tif(textMode == 0)\n\t\t\t\t\t\ttline.deleteCharAt(tline.length()-1);\n\t\t\t\t}\n\t\t\t}else if((textMode == 0 || textMode == 1) && line.charAt(c) == \"'\".charAt(0)) {\n\t\t\t\tif(macro)\n\t\t\t\t\ttline.append('\"');\n\t\t\t\telse {\n\t\t\t\t\ttextMode = textMode==0?1:0;\n\t\t\t\t\tif(textMode == 0)\n\t\t\t\t\t\ttline.deleteCharAt(tline.length()-1);\n\t\t\t\t}\n\t\t\t}else if(textMode != 0) {\n\t\t\t\ttline.append(\"'\"+line.charAt(c)+\"',\");\n\t\t\t}else if(textMode == 0 && line.charAt(c) == ';')\n\t\t\t\tbreak;\n\t\t\telse if(textMode == 0 && (line.charAt(c) == ' ' || line.charAt(c) == '\\t')) {\n\t\t\t\tif(trim == false) {\n\t\t\t\t\ttline.append(\" \");\n\t\t\t\t\ttemp = \"\";\n\t\t\t\t\ttrim = true;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\ttrim = false;\n\t\t\t\ttline.append(line.charAt(c));\n\t\t\t\ttemp = temp + line.charAt(c);\n\t\t\t\tif(temp.equalsIgnoreCase(\"incbin\"))\n\t\t\t\t\tmacro = true;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn tline.toString();\n\t}", "@Override\r\n\tprotected String processLine(String line) {\n\t\treturn null;\r\n\t}", "@Override\n\tprotected String processLine(String line) {\n\t\treturn null;\n\t}", "private static String trim(String s) {\n return s.replace(\" \", \"\");\n }", "private String getFirstWordOfFile(String filename) {\n try {\n String result = \"\";\n BufferedReader bf = new BufferedReader(new FileReader(filename));\n boolean isComment = false;\n boolean noCase = false;\n boolean cont = false;\n\n for (String line = bf.readLine(); line != null; line = bf\n .readLine()) {\n line = line.trim();\n while (!noCase) {\n noCase = true;\n if (line.startsWith(\"--\")) {\n noCase = true;\n cont = true;\n continue;\n }\n if (line.startsWith(\"/*\")) {\n noCase = false;\n isComment = true;\n line = line.substring(line.indexOf(\"/*\") + 2).trim();\n }\n if (isComment == true) {\n noCase = false;\n int index = line.indexOf(\"*/\");\n if (index != -1) {\n line = line.substring(index + 2).trim();\n isComment = false;\n }\n if (index == -1) {\n noCase = true;\n cont = true;\n continue;\n }\n }\n }\n if (cont || line.trim().equals(\"\")) {\n cont = false;\n noCase = false;\n continue;\n }\n StringTokenizer st = new StringTokenizer(line);\n result = st.nextToken();\n return result;\n }\n } catch (FileNotFoundException e) {\n // ignored\n Log.println(\"Error: File `\" + filename + \"' could not be found!\");\n return \"ERROR: -1\";\n } catch (IOException e) {\n // ignored\n }\n return null;\n }", "private static String capitaliseSingleWord(String word) {\n String capitalisedFirstLetter = word.substring(0, 1).toUpperCase();\n String lowercaseRemaining = word.substring(1).toLowerCase();\n return capitalisedFirstLetter + lowercaseRemaining;\n }", "public abstract String getFirstLine();", "private static String firstUpperCase(String word) {\n\t\tif (word == null || word.isEmpty()) {\n\t\t\treturn \"\";\n\t\t}\n\t\treturn word.substring(0, 1).toUpperCase() + word.substring(1);\n\t}", "public void removeWord(String word) throws WordException;", "private String removeComments(String line) {\n\t\tint commentIndex = line.indexOf(\"//\");\n\t\tif (commentIndex >= 0) {\n\t\t\tline = line.substring(0, commentIndex);\n\t\t}\n\t\tline = line.trim();\n\n\t\t// clear line if entire line is comment\n\t\tif (line.startsWith(\"#\")) {\n\t\t\treturn \"\";\n\t\t}\n\t\treturn line;\n\t}", "public void process() {\n int secondSpace = songLine.indexOf(' ', (songLine.indexOf(' ') + 1));\n \n if(secondSpace != -1) {\n String firstTwoWords = songLine.substring(0, secondSpace);\n String rest = songLine.substring(secondSpace);\n System.out.printf(\"First two words: %s%n\",firstTwoWords);\n System.out.printf(\"Rest of the words: %s%n\",rest.substring(1));\n }\n \n int thirdSpace = songLine.indexOf(' ', (songLine.indexOf(' ') + 2));\n char firstLetterThirdWord = songLine.charAt(thirdSpace + 1);\n \n int firstOccurance = songLine.indexOf('b');\n \n System.out.printf(\"Length is: %d%n\", songLine.length());\n \n System.out.printf(\"Last character is: %c%n\", songLine.charAt(songLine.length() - 1) );\n \n System.out.printf(\"First letter of the third word: %c%n\",firstLetterThirdWord);\n \n System.out.printf(\"Replaced spaces with x's: %s%n\", songLine.replace(\" \", \"x\"));\n \n System.out.printf(\"Uppercase: %s%n\", songLine.toUpperCase());\n \n System.out.printf(\"Index of first occurence of 'b': %d%n%n\", firstOccurance);\n \n }", "public void parseWord(String line){\r\n String[] tokens = line.split(\"\\\\t|/|<|>|\\\\?|=%3C|%3E|=%3C|&=%3C|&|=| \");\r\n// for(String word: tokens){\r\n//\r\n// keys.add(word);\r\n// }\r\n int n = tokens.length-2;//to ignore the the word GET from the string.\r\n if(n>0){\r\n for(int i=1;i<n;i++){\r\n if(!tokens[i].equals(\"\")){\r\n this.keys.add(tokens[i]);\r\n }\r\n\r\n }\r\n }\r\n\r\n }", "public static String ltrim(String s)\r\n {\r\n if (s == null)\r\n return null;\r\n \r\n for (int k = 0; k < s.length(); k++)\r\n {\r\n if (!Character.isWhitespace(s.charAt(k)))\r\n return (k == 0 ? s : s.substring(k));\r\n }\r\n return \"\";\r\n }", "private String parseMaterialTemplateName(String line) {\n int space_index = line.indexOf(' ') + 1;\n String mtl_name = line.substring(space_index);\n mtl_name = mtl_name.trim();\n return mtl_name;\n }", "public Word getWordFromLine(String line) {\n Word objWord = null;\n\n try {\n String[] data = line.split(\" \");\n String subj = data[colSubj].split(\"=\")[1];\n // Ignoring Len (colLen)\n String word = data[colWord].split(\"=\")[1];\n String pos = data[colPos].split(\"=\")[1];\n String stemmed = data[colStemmed].split(\"=\")[1];\n String polarity = data[colPolarity].split(\"=\")[1];\n\n objWord = new Word(word, Word.strToSubjectivity(subj),\n Word.strToPosition(pos), Word.strToStemmed(stemmed),\n Word.strToPolarity(polarity));\n } catch (Exception e) {\n System.err.println(\"Error when parsing line for a word\");\n e.printStackTrace();\n System.exit(1);\n }\n\n return objWord;\n }", "@Override\n\tpublic String spaceRemover(String input) {\n\t\treturn input.replaceAll(\"\\\\s+\",\"\");\n\n\t}", "private String eliminar_contenido_innecesario(String line) {\n \n \tint index_question = line.indexOf('?');\n\t\tint index_point = line.indexOf('.');\n\t\t\n\t\tline = ( index_question > 0 ) ? line.substring(0, index_question+1) : line;\n\t\tline = ( index_point > 0 ) ? line.substring(0, index_point+1) : line;\n\t\t\n \treturn line;\n }", "private String trimLeft(String html) {\n int start = 0;\n for (int i = 0; i < html.length(); ++i) {\n char c = html.charAt(i);\n if (Character.isWhitespace(c) || c == 0xA0) { // nbsp\n start = i;\n } else {\n break;\n }\n }\n\n if (html.charAt(start) == 0xA0) {\n return html.substring(start + 1);\n } else {\n return html.substring(start); // left one space\n }\n }", "@Override\n public String postProcess(final String line) {\n var lineSeparatorIndex = line.lastIndexOf(RECORD_SEPARATOR_CHARACTER);\n return lineSeparatorIndex >= 0 ? line.substring(0, lineSeparatorIndex) : line;\n }", "private String stripQuotes(String word) {\n\t\tString workWord = new String (word);\n\t\tif (workWord != null && workWord.length() > 1) {\n\t\t\tif (workWord.endsWith(new String(\"\\'\")) || workWord.endsWith(new String(\"\\\"\"))) {\n\t\t\t\tworkWord = workWord.substring(0, workWord.length()-1);\n\t\t\t}\n\t\t\telse if (workWord.endsWith(new String(\"\\'s\")) || workWord.endsWith(new String(\"\\'d\")) ) {\n\t\t\t\tworkWord = workWord.substring(0, workWord.length()-2);\n\t\t\t}\n\t\t\tif (workWord.startsWith(new String(\"\\'\")) || workWord.startsWith(new String(\"\\\"\")) && workWord.length() > 1) {\n\t\t\t workWord = workWord.substring(1);\n\t\t\t}\n\t\t}\n\t return workWord;\n\t}", "public static void sayStripped(String s){\n int i, count, bC, aC;\n boolean f = false;\n count = 0;\n // After Word Space Count\n aC = 0;\n // Before Word Space Count\n bC = 0;\n // Remove spaces before word\n for(i = 0; i < s.length(); i++){\n if(s.charAt(i) == ' '){\n bC++;\n } else {\n break;\n }\n }\n s = s.substring(0 + bC, s.length());\n \n // Remove spaces after word\n for(i = s.length() - 1; i > 0; i--){\n if(s.charAt(i) == ' '){\n aC++;\n } else {\n break;\n }\n }\n s = s.substring(0, s.length() - aC);\n say(s);\n return;\n }", "public String readWord() throws IOException\n {\n byte[] buf = new byte[64]; // line length\n int cnt = 0, c;\n while ((c = read()) != -1)\n {\n if (Character.isWhitespace(c)) //care ADD ANY WHITESPACE CHAR??\n break;\n buf[cnt++] = (byte) c;\n }\n return new String(buf, 0, cnt);\n }", "private String removeTailComment(String line) {\n //remove any comment from this line\n int commentPos = line.indexOf(\",#\");\n if (commentPos != -1) {\n line = line.substring(0, commentPos);\n }\n return line;\n }", "private static String removeWord(String string, String word) {\n\t\tif (string.contains(word)) {\n\t\t\tstring = string.replaceAll(word, \"\");\n\t\t}\n\n\t\t// Return the resultant string\n\t\treturn string;\n\t}", "public String readFirstLine() {\n if ( scanner.hasNextLine() ) {\n return scanner.nextLine();\n }\n return \"\";\n }", "public String formatSpaceBetweenWords(String line) {\r\n line = line.replaceAll(\"\\\\s+\", \" \"); \r\n line = line.toLowerCase();\r\n line = oneSpaceSpecial(line, \".\");\r\n line = oneSpaceSpecial(line, \",\");\r\n line = oneSpaceSpecial(line, \":\");\r\n line = oneSpaceSpecial(line, \"\\\"\");\r\n return line.trim();\r\n }", "public String atFirst(String str) {\r\n return str.length() > 1 ? str.substring(0, 2) : (str + \"@@\").substring(0, 2);\r\n }", "private String removeWhitespace(String lineToFormat) {\n StringBuilder lineWithoutWhitespace = new StringBuilder();\n StringBuilder buffer = new StringBuilder();\n boolean isString = false;\n char prevChar = '\\0';\n\n for (int i = 0; i < lineToFormat.length(); i++) {\n // check if the current char is a whitespace char\n if (AssemblyConstants.isWhitespace(lineToFormat.charAt(i))) {\n if (buffer.length() > 0) {\n // add everything from buffer in-between\n lineWithoutWhitespace.append(buffer).append(\" \");\n buffer.setLength(0);\n }\n } else {\n // add all non-whitespace chars found to the buffer\n char charToAdd = lineToFormat.charAt(i);\n // check if the char is a part of a string (check if it's not an escaped string separator as well)\n if (charToAdd == AssemblyConstants.STRING_SEPARATOR && prevChar != AssemblyConstants.ESCAPE_SEQUENCE)\n isString = !isString;\n\n // if the char is not a part of a string, make it lowercase if it's a letter\n if (!isString)\n buffer.append((charToAdd < 'A' || charToAdd > 'Z')\n ? charToAdd\n : (char) (charToAdd + 0x20));\n else\n // if the char is a part of a string, just add it as it is\n buffer.append(charToAdd);\n }\n\n prevChar = lineToFormat.charAt(i);\n }\n\n if (isString)\n throw new WrongAssemblyLineException(\"\\nWrong assembly line found:\\n\"\n + \"'\" + lineToFormat + \"' contains too many string separators\");\n\n // add the rest found in buffer\n return buffer.length() > 0\n ? lineWithoutWhitespace.append(buffer).toString().trim()\n : lineWithoutWhitespace.toString().trim();\n }", "public String deFront(String str) {\r\n if (!str.isEmpty()) {\r\n if (str.length() > 1) {\r\n if (str.charAt(0) == 'a' && str.charAt(1) != 'b') {\r\n\r\n return \"a\" + str.substring(2);\r\n } else if (str.charAt(0) != 'a' && str.charAt(1) == 'b') {\r\n\r\n return str.substring(1);\r\n } else if (str.charAt(1) != 'b') {\r\n\r\n return str.substring(2);\r\n }\r\n }\r\n if (str.length() == 1) {\r\n if (str.charAt(0) != 'a') {\r\n\r\n return \"\";\r\n }\r\n }\r\n }\r\n\r\n return str;\r\n }", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n System.out.println(\"Ingrese Frase\");\n String frase = sc.nextLine();\n\n System.out.println(frase.replace(\" \",\"\"));\n }", "private String firstSentenceSplitting(String s) {\n // Double new-line means a new sentence:\n s = paragraph.matcher(s).replaceAll(\"$1\" + EOS);\n // Punctuation followed by whitespace means a new sentence:\n s = punctWhitespace.matcher(s).replaceAll(\"$1\" + EOS);\n // New (compared to the perl module): Punctuation followed by uppercase followed\n // by non-uppercase character (except dot) means a new sentence:\n s = punctUpperLower.matcher(s).replaceAll(\"$1\" + EOS + \"$2\");\n // Break also when single letter comes before punctuation:\n s = letterPunct.matcher(s).replaceAll(\"$1\" + EOS);\n return s;\n }", "public static void main(String[] args) {\n\t\tString str = \"Harmohan Is Mad Person\";\n\t\tString newString = str.replaceAll(\" \", \"\");\n\t\tSystem.out.println(newString);\n\t\t\n\n\t}", "public static String removeDuplicate(String word) {\n StringBuffer sb = new StringBuffer();\n if(word.length() <= 1) {\n return word;\n }\n char current = word.charAt(0);\n sb.append(current);\n for(int i = 1; i < word.length(); i++) {\n char c = word.charAt(i);\n if(c != current) {\n sb.append(c);\n current = c;\n }\n }\n return sb.toString();\n }", "@Test\n\tpublic void testTrimmingWhiteSpaces() {\n\t\t// Setup\n\t\tString file = \" file.name \";\n\n\t\t// Exercise\n\t\tLine line = new Line(\"5\", \"5\", file);\n\n\t\t// Verify\n\t\tassertEquals(\"file.name\", line.toString());\n\t}", "private static String cutTextAtLastSpace(String lastTxt) {\n\t\tint idx = lastTxt.lastIndexOf(\" \");\n\t\t// if no space is found, cut on length\n\t\tif (idx > 0) {\n\t\t\tlastTxt = lastTxt.substring(0, idx);\n\t\t}\n\t\treturn lastTxt;\n\t}", "public static String trim(String str) {\n\n\n str = str.replace(\"_IN_\", \"\");\n str = str.replace(\"_In_\", \"\");\n str = str.replace(\"__in\", \"\");\n str = str.replace(\"_Out_\", \"\");\n str = str.replace(\"__out\", \"\");\n str = str.replace(\"_Inout_\", \"\");\n str = str.replace(\"opt_\", \"\"); // this method is to remove _In_opt_\n str = str.replace(\"<span style=\\\"color:Blue;\\\">\", \"\");\n str = str.replace(\"</span>\", \"\");\n str = str.replace(\"WINAPI\", \"\");\n str = str.replace(\"_Inout_\", \"\");\n str = str.replaceAll(\"&nbsp;\", \"\");\n str = str.replaceAll(String.valueOf((char)160), \"\");\n str = str.replaceAll(\" \", \" \");\n str = str.replaceAll(\"CALLBACK \", \"\");\n str = str.replaceAll(\"const\", \"\");\n str = str.replaceAll(\"\\\\( \", \"\\\\(\");\n str = str.trim();\n str = str.substring(0, str.length() - 1);\n\n\n // System.out.println(\"AFTER TRIM \" + this.syntax);\n\n return str;\n\n\n }", "private String spacing(String line) {\n \n \t\t/* Remove redundant spaces (keep only one space between two words) */\n \t\tint limit = 0;\n \t\tMatcher matcher = patternSpaces.matcher(line);\n \n \t\tString oldLine = line;\n \n \t\tremSpaces: while (matcher.find()) {\n \n \t\t\tint offset = matcher.start();\n \n \t\t\t// do not remove spaces at the beginning of a line\n \t\t\tif (line.substring(0, offset).trim().equals(\"\"))\n \t\t\t\tcontinue;\n \n \t\t\t/*\n \t\t\t * if the spaces (or tabs) are at the beginning of a line or before a comment, then we keep them\n \t\t\t */\n \t\t\t/*\n \t\t\t * Matcher matcherSpacesBeforeComment = patternSpacesBeforeComment.matcher(line); if\n \t\t\t * (matcherSpacesBeforeComment.find()) { if (offset < matcherSpacesBeforeComment.end()) continue\n \t\t\t * remSpaces; }\n \t\t\t */\n \n \t\t\t// if the spaces are before a comment, then we keep them\n \t\t\tString afterSpaces = line.substring(matcher.end());\n \t\t\tif (afterSpaces.startsWith(\"(*\"))\n \t\t\t\tcontinue remSpaces;\n \n \t\t\t// If we are inside a string, then we skip this replacing\n \t\t\tMatcher matcherString = patternString.matcher(line);\n \t\t\twhile (matcherString.find()) {\n \t\t\t\tif (matcherString.start() <= offset && offset < matcherString.end())\n \t\t\t\t\tcontinue remSpaces;\n \t\t\t}\n \n \t\t\t// If we are inside a comment, then we skip this replacing\n \t\t\tMatcher matcherComment = patternComment.matcher(line);\n \t\t\twhile (matcherComment.find()) {\n \t\t\t\tif (matcherComment.start() <= offset && offset < matcherComment.end())\n \t\t\t\t\tcontinue remSpaces;\n \t\t\t}\n \n \t\t\tline = line.substring(0, offset) + \" \" + line.substring(matcher.end());\n \n \t\t\t// we have to reset the matcher, because we modified the line\n \t\t\tmatcher = patternSpaces.matcher(line);\n \n \t\t\t// we put a limit, just in case we would get into an infinite loop\n \t\t\tif (limit++ > 10000) {\n \t\t\t\tOcamlPlugin.logError(\"Infinite loop detected in formatter during spacing (1): <<\" + oldLine\n \t\t\t\t\t\t+ \">>\");\n \t\t\t\tbreak;\n \t\t\t}\n \n \t\t}\n \n \t\t// remove spaces before commas\n \t\t//line = line.replaceAll(\" ,\", \",\");\n \t\t// remove spaces before semicolons\n \t\t//line = line.replaceAll(\" ;\", \";\");\n \n \t\tfor (int nPattern = 0; nPattern <= 1; nPattern++) {\n \t\t\tPattern patternSpacing;\n \t\t\tif (nPattern == 0)\n \t\t\t\tpatternSpacing = patternSpacingRight;\n \t\t\telse\n \t\t\t\tpatternSpacing = patternSpacingLeft;\n \n \t\t\t/*\n \t\t\t * We put a limit to the number of replacements, just in case we would get into an infinite loop\n \t\t\t */\n \t\t\tlimit = 0;\n \t\t\t// add spaces before some characters\n \t\t\tmatcher = patternSpacing.matcher(line);\n \n \t\t\toldLine = line;\n \n \t\t\taddSpaces: while (matcher.find()) {\n \n \t\t\t\tint offset = matcher.start() + 1;\n \t\t\t\tif (offset > line.length() - 1 || offset < 0) {\n \t\t\t\t\tocaml.OcamlPlugin.logError(\"OcamlIndenter:format : invalid position\");\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \n \t\t\t\t// if we are inside a string, then we skip this replacement\n \t\t\t\tMatcher matcherString = patternString.matcher(line);\n \t\t\t\twhile (matcherString.find()) {\n \t\t\t\t\tif (matcherString.start() <= offset && offset < matcherString.end())\n \t\t\t\t\t\tcontinue addSpaces;\n \t\t\t\t}\n \n \t\t\t\t// Skip replacement if in comment\n \t\t\t\tMatcher matcherComment = patternComment.matcher(line);\n \t\t\t\twhile (matcherComment.find()) {\n \t\t\t\t\tif (matcherComment.start() <= offset && offset < matcherComment.end())\n \t\t\t\t\t\tcontinue addSpaces;\n \t\t\t\t}\n \n \t\t\t\tline = line.substring(0, offset) + \" \" + line.substring(offset);\n \n \t\t\t\t// we have to reset the matcher, because we modified the line\n \t\t\t\tmatcher = patternSpacing.matcher(line);\n \t\t\t\tif (limit++ > 10000) {\n \t\t\t\t\tOcamlPlugin.logError(\"Infinite loop detected in formatter during spacing (2): <<\"\n \t\t\t\t\t\t\t+ oldLine + \">>\");\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \n \t\treturn line;\n \n \t}", "public static String stripLabel(String s) {\n\t\tint labelEnd = labelEnd(s);\n\t\tif (labelEnd == -1) {\n\t\t\treturn s.trim();\n\t\t} else {\n\t\t\treturn s.substring(labelEnd + 1).trim();\n\t\t}\n\t}", "public static FeatureNode getFirstWord(FeatureNode word)\n\t{\n\t\tFeatureNode fn = word.get(\"phr-head\");\n\t\twhile (fn != null)\n\t\t{\n\t\t\tFeatureNode wd = fn.get(\"phr-word\");\n\t\t\tif (wd != null) return wd;\n\n\t\t\tFeatureNode subf = fn.get(\"phr-head\");\n\t\t\tif (subf != null)\n\t\t\t{\n\t\t\t\twd = getFirstWord(fn);\n\t\t\t\tif (wd != null) return wd;\n\t\t\t}\n\t\t\tfn = fn.get(\"phr-next\");\n\t\t}\n\t\treturn null;\n\t}", "public static String removeLeftSpaceOrTabs(String current) {\n char ch;\n int whiteSpacesLen = 0;\n for (int i = 0; i < current.length(); i++) {\n ch = current.charAt(i);\n if (CR == ch || LF == ch || CharacterConstants.SPACE == ch || CharacterConstants.TAB == ch) {\n whiteSpacesLen++;\n } else {\n break;\n }\n }\n return current.substring(whiteSpacesLen);\n }", "protected String firstToken(String unparsedLine) {\r\n\t\tStringTokenizer t = new StringTokenizer(unparsedLine, \" ,\\011\\042\");\r\n\t\tString returnValue = null;\r\n\t\ttry {\r\n\t\t\treturnValue = t.nextToken();\r\n\t\t} catch (NoSuchElementException e) {\r\n\t\t\tSystem.out.println(\"ERROR in IrregularXsectsInpAsciiInput\");\r\n\t\t}\r\n\t\treturn returnValue;\r\n\t}", "public static String cleanName(String firstOrLastName) {\n return firstOrLastName.trim().replaceAll(\"\\\\s+\", \" \");\n }", "private String eliminarEspaciosMayoresA1(String mensaje) {\n //Elimina todos los espacios mayores a 1 que se encuentren dentro del mensaje\n Pattern patron = Pattern.compile(\"[ ]+\");\n Matcher encaja = patron.matcher(mensaje);\n String resultado = encaja.replaceAll(\" \");\n return resultado;\n }", "public static TreeSet<String> uniqueStems(String line) {\n\t\t// THIS IS PROVIDED FOR YOU; NO NEED TO MODFY //\n\t\treturn uniqueStems(line, new SnowballStemmer(DEFAULT));\n\t}", "private static String _stripWhitespace(String str)\n {\n if (str == null)\n return null;\n\n int length = str.length();\n int startIndex = 0;\n\n while (startIndex < length)\n {\n if (Character.isWhitespace(str.charAt(startIndex)))\n startIndex++;\n else\n break;\n }\n\n int endIndex = length;\n while (endIndex > 0)\n {\n if (Character.isWhitespace(str.charAt(endIndex - 1)))\n endIndex--;\n else\n break;\n }\n\n if ((startIndex == 0) && (endIndex == length))\n return str;\n\n return str.substring(startIndex, endIndex);\n }", "public Sentence getFirstSentence ()\n {\n\n Paragraph p = this.getFirstParagraph ();\n\n if (p == null)\n {\n\n return null;\n\n }\n\n return p.getFirstSentence ();\n\n }", "private String cleanLine(String line) {\n line = line.replace(\"class\", \"class\");\n line = line.replace(\"abstract class\", \"abstract class\");\n line = line.replace(\"enum\", \"enum\");\n return line;\n }", "private String fixName(String aName) {\n final String firstToken = new StringTokenizer(aName, \" \").nextToken();\n int iRepeatedNamePos = aName.indexOf(firstToken, 1);\n if (iRepeatedNamePos > 0) {\n return aName.substring(0, iRepeatedNamePos).trim();\n }\n return aName;\n }", "private String removeFeat(String songName) {\n if(songName.contains(\"feat.\")){\n int index = songName.indexOf(\"feat.\");\n songName = songName.substring(0,index -1);\n }\n return songName;\n }", "public static String cleanString(String s) {\n\t\ts = s.trim();\n\t\tString newStr = \"\";\n\t\tboolean lastWasSpace = false;\n\t\tfor(int i = 0; i < s.length(); i++) {\n\t\t\tchar c = s.charAt(i);\n\t\t\tif(c == ' ' && lastWasSpace) {\n\t\t\t\t//Ignore\n\t\t\t} else if (c == ' ' && !lastWasSpace) {\n\t\t\t\tnewStr+=c;\n\t\t\t\tlastWasSpace = true;\n\t\t\t} else {\n\t\t\t\tnewStr+=c;\n\t\t\t\tlastWasSpace = false;\n\t\t\t}\n\t\t}\n\t\ts = newStr;\n\t\treturn s;\n\t}", "@Override\n\tpublic String clean(String input) {\n\t\tinput = input.replaceAll(removeCommonWords.toString(), \" \");\n\t\t//input = input.replaceAll(removeSingleCharacterOrOnlyDigits.toString(), \" \");\n\t\t//input = input.replaceAll(removeTime.toString(), \" \");\n\t\t//input = input.replaceAll(\"(\\\\s+>+\\\\s+)+\", \" \");\n\t\treturn input;\n\t}", "public void shingleStrippedString(String s) {\n\t\t\n\t\tString s_stripped = s.replaceAll(\"\\\\s\",\"\");\n//\t\tSystem.out.println(s_stripped);\n\t\tthis.shingleString(s_stripped);\n\t}", "static void trimNL(String s) {\n StringBuilder sb = new StringBuilder(s);\n while(sb.length() > 0 && (sb.charAt(sb.length() - 1) == '\\u005cr' || sb.charAt(sb.length() - 1) == '\\u005cn'))\n sb.deleteCharAt(sb.length() - 1);\n }", "public static String removeQuebraLinha (String s) {\n\n\t\tif (StringUtils.isNotBlank(s)) {\n\n\t\t\ts = s.replaceAll(\"\\r\", \"\"); \n\t\t\ts = s.replaceAll(\"\\t\", \"\");\n\t\t\ts = s.replaceAll(\"\\n\", \"\");\n\t\t}\n\n\t\treturn s;\n\t}", "public ILoString removeFirst(int n) {\n return this;\n }", "static String trim(String s) {\n return s.substring(0, s.length() - 1);\n }", "private static String readWord(String word, int l){\n\t\tint index = l;\n\t\twhile(index < word.length()){\n\t\t\tif(word.charAt(index) != ':')\n\t\t\t\tindex++;\n\t\t\telse{\n\t\t\t\tif(index < word.length()-1 && word.charAt(index+1) != ':')\n\t\t\t\t\tindex++;\n\t\t\t\telse{\n\t\t\t\t\tif(index != word.length()-1){\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\treturn word.substring(l, index);\n\t}", "public static String[] tokenizeWords(String line) {\n\n String[] lineTokens = new String[0];\n if (!line.equals(\"\") && !line.equals(\" \")) {\n lineTokens = line.split(\":| :|: | : \");\n }\n return lineTokens;\n }", "public static String delLastChar(String word){\n\t\tif(word.length() <= 1){\n\t\t\treturn word;\n\t\t}\n\t\tword = word.substring(0, word.length() - 1);\n\t\tguessPW(word);\n\t\treturn word;\n\n\t}", "public static String the(String str)\n\t{\t\t\n\t\tif (str.startsWith(\"the \")) return str;\n\t\telse if (str.startsWith(\"The \")) return str;\n\t\telse if (str.toLowerCase().charAt(0) == str.charAt(0)) return \"the \" + str;\n\t\telse return \"The \" + str.toLowerCase();\n\t}", "public static String squeezeWhitespace (String input){\r\n return Whitespace.matcher(input).replaceAll(\" \").trim();\r\n }", "public static String cutSpaces(String s){\n\t\tString res = s;\n\t\t\n\t\twhile ((res.startsWith(\" \")||(res.startsWith(\"\\n\")))&& res.length()>0) {\n\t\t\tres=res.substring(1);\n\t\t}\n\t\treturn res;\n\t}", "private static ArrayList<String> sanatizeDataInstr(String lineInput){\n\t\tString line = lineInput;\n\t\tline = line.trim();\n\t\t//System.out.println(\"Line starts out as:(\"+line+\")\");\n\t\tArrayList<String> toReturn = new ArrayList<String>();\n\t\t\n\t\twhile(line.length()>0){\n\t\t\tif(line.indexOf(\" \") != -1){\n\t\t\t\ttoReturn.add(line.trim().substring(0, line.indexOf(\" \")).trim().toLowerCase());\n\t\t\t\tline = line.substring(line.indexOf(\" \"), line.length()).trim();\n\t\t\t} else {\n\t\t\t\ttoReturn.add(line.trim().toLowerCase());\n\t\t\t\tline = \"\";\n\t\t\t}\n\t\t\t//System.out.println(\"Line now equals:(\" + line +\")\");\n\t\t}\n\t\t\n\t\treturn toReturn;\n\t}", "public static String removePunctuation( String word )\n {\n while(word.length() > 0 && !Character.isAlphabetic(word.charAt(0)))\n {\n word = word.substring(1);\n }\n while(word.length() > 0 && !Character.isAlphabetic(word.charAt(word.length()-1)))\n {\n word = word.substring(0, word.length()-1);\n }\n \n return word;\n }", "java.lang.String getWord();", "private static String clearSpaces(final String old) {\n return old.replace(\" \", \"\").replace(\"\\n\", \"\");\n }", "public static String trimLineSeparator(String line) {\n int n = line.length();\n if (n == 0) {\n return line;\n }\n char ch = line.charAt(n - 1);\n if (ch == '\\n' || ch == '\\r') {\n n--;\n }\n else {\n return line;\n }\n if (n > 0) {\n char ch2 = line.charAt(n - 1);\n if ((ch2 == '\\n' || ch2 == '\\r') && ch2 != ch) {\n n--;\n }\n }\n return line.substring(0, n);\n\n }", "private String pickHead(String block) {\n if (block.length() > 0) {\n Integer breakIndex = 1;\n for (Integer index = 0; index < block.length(); index++) {\n if (block.charAt(index) == '\\n' || block.charAt(index) == '\\r') {\n breakIndex = index;\n break;\n }\n }\n return block.substring(0, breakIndex);\n } else {\n return \"\";\n }\n }", "private String fixCapsOnlyLines(final String line) {\n if (line.matches(\"^[0-9A-Zl\\\\[\\\\]:'\\\"\\\\(\\\\)\\\\- ]*$\")) {\n return line.replaceAll(\"l\", \"I\");\n }\n return line;\n }", "public static String preProcessWordsSpecialCharacters(String line){\n\n\t\tStringBuilder newLine = new StringBuilder();\n\t\t//System.out.println(\"Preprocess words with special characaters ...\");\n\t\tList<String> newLineList = new ArrayList<String>();\n\t\tString eachWord;\n\t\tString[] hyphenWordArray;\n\t\t//replace all forward slash in the string with whitespace\n\t\t//line = line.replaceAll(\"[/|:|?|..|adverb|noun]\", \" \");\n\t\t//System.out.println(\"Line before modification: \"+ line);\n\t\tline = line.replaceAll(\"(\\\\?)|(\\\\()|(\\\\))|(\\\\,)|(\\\\.)|(\\\\!)|(\\\\/)|(\\\\:)|(\\\\?)|(\\\\')|(\\\\])|(\\\\[)\", \" \");\n\t\t//System.out.println(\"Line after first modification: \"+ line);\n\t\tline = line.replaceAll(\"\\\\s+\", \" \");\n\n\t\tnewLineList = Arrays.asList(line.split(\"\\\\s+\"));\n\t\tIterator<String> iter = newLineList.iterator();\n\n\t\twhile(iter.hasNext()){\n\t\t\teachWord = (String)iter.next();\n\t\t\tnewLine.append(\" \").append(eachWord);\n\t\t\tif(eachWord.contains(\"-\")){ //if the word contains a hyphen\n\t\t\t\t//System.out.println(\"Word containing hyphen: \"+ eachWord);\n\t\t\t\thyphenWordArray = eachWord.split(\"\\\\-\");\n\t\t\t\t//adding aaabbccc for aaa-bb-ccc \n\t\t\t\tnewLine.append(\" \").append(eachWord.replaceAll(\"\\\\-\", \"\"));\n\t\t\t\tfor(int i = 0; i < hyphenWordArray.length; i++ )\n\t\t\t\t\t//adding aaa, bb, cc for aaa-bb-ccc \n\t\t\t\t\tnewLine.append(\" \").append(hyphenWordArray[i]);\n\t\t\t}/*else{ //if the word does not contain hyphen, add it as it is\n\t\t\t\tnewLine.append(\" \").append(eachWord);\n\t\t\t}*/\n\t\t}\n\t\t//System.out.println(\"Line after modification: \"+ newLine.toString());\n\t\treturn newLine.toString();\n\t}", "private void checkEmptyLine(String line) {\n if (line.substring(5).replace('\\t', ' ')\n .replace('\\n', ' ').trim().length() != 0) {\n throw new IllegalArgumentException(\"Invalid characters after tag.\");\n }\n }", "public void clearParser(String str){\r\n\r\n String[] words = str.split(\" \");\r\n String word = words[words.length - 1];\r\n\r\n if(values.get(word) == null) {\r\n word = word.substring(0, word.length() - 1);\r\n setValue(word, 0);\r\n }\r\n else{\r\n values.replace(word,0);\r\n }\r\n\r\n }" ]
[ "0.6574467", "0.6567907", "0.65031826", "0.6390543", "0.63283926", "0.6288859", "0.62820107", "0.6212384", "0.618049", "0.606304", "0.60394907", "0.6035528", "0.59798455", "0.59486747", "0.5940842", "0.5914148", "0.5855286", "0.58379513", "0.58326215", "0.58073527", "0.5722856", "0.57108593", "0.56847703", "0.5669588", "0.56463015", "0.5644204", "0.56266737", "0.5583857", "0.55835956", "0.5543294", "0.5525889", "0.55083555", "0.55063", "0.549756", "0.5493973", "0.5470143", "0.5469038", "0.5446476", "0.54280496", "0.54230374", "0.5422254", "0.5412297", "0.54066014", "0.5404101", "0.5380495", "0.5378271", "0.5371171", "0.53681695", "0.5359615", "0.53548455", "0.5341175", "0.5340451", "0.5339905", "0.53306645", "0.5323113", "0.5315906", "0.5314266", "0.53137624", "0.531328", "0.5307317", "0.5290215", "0.52646923", "0.5261027", "0.52603686", "0.5251529", "0.52495277", "0.5247007", "0.5242505", "0.52396464", "0.5236646", "0.5233916", "0.5231207", "0.52309716", "0.51951706", "0.5192573", "0.51893705", "0.5172767", "0.51545614", "0.51520294", "0.51435506", "0.51435053", "0.5122646", "0.5110753", "0.51106244", "0.5108308", "0.51033086", "0.50826967", "0.5067194", "0.5063721", "0.50615466", "0.50591004", "0.50495404", "0.5043989", "0.50306636", "0.50299925", "0.5024653", "0.50201964", "0.5012517", "0.50116587", "0.50053495" ]
0.6524759
2
Return the first word of line as an integer. If there is any error, return the maximum int
private int scanInt() { String word = scan(); if (word.length() == 0) { return Integer.MAX_VALUE; } try { return Integer.parseInt(word); } catch (NumberFormatException e) { return Integer.MAX_VALUE; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int getFirstIntValue(String line) {\n return getNthIntValue(line, 1);\n }", "private static int getSatFromLine(String line) {\n\t\treturn Integer.parseInt(line.split(\" \")[0]);\n\t}", "String getFirstInt();", "private int getInt(String next) {\n\t\ttry {\n\t\t\tint a = Integer.parseInt(next);\n\t\t\tif (a > 10) {\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t\treturn a;\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn 0;\n\t\t}\n\t}", "public int toInt(){\n\t\tString s = txt().trim();\n\t\tint i;\n\t\ttry{\n\t\t\ti = Integer.parseInt(s);\n\t\t}catch(NumberFormatException exp){\n\t\t\texp.printStackTrace();\n\t\t\treturn 0;\n\t\t}\n\t\treturn i;\t\n\t}", "public int getInt() throws NoSuchElementException,\n\t NumberFormatException\n {\n\tString s = tokenizer.nextToken();\n\treturn Integer.parseInt(s);\n }", "private static int getVal(String s) {\n int val = Integer.parseInt(s.split(\" \")[0]);\r\n return val;\r\n }", "public int readInt() {\n return Integer.parseInt(readNextLine());\n }", "public int parseInt()\r\n {\r\n String str = feed.findWithinHorizon( INTEGER_PATTERN, 0 );\r\n \r\n if( str == null )\r\n throw new NumberFormatException( \"[Line \" + lineNum + \"] Input did not match an integer\" );\r\n else if( str.length() == 0 )\r\n throw new NumberFormatException( \"Input did not match an integer\" );\r\n \r\n return Integer.parseInt( str );\r\n }", "int getIntArgument() throws Exception {\n return Integer.parseInt(this.readLine().split(\"\\\\s+\", 2)[1]);\n }", "public int getInt()\n\t{\n\t\tfinal String text = getText();\n\t\tif (text == null || text.length() == 0)\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t\treturn Integer.parseInt(text);\n\t}", "public int readInt(){\n\t\tif(sc.hasNextInt()){\n\t\t\treturn sc.nextInt();\n\t\t}\n\t\tsc.nextLine();\n\t\treturn -1;\n\t}", "public Integer toInt(String lex) {\r\n\t\tInteger i=-1;\r\n\t\ttry{\r\n\t\t\ti=Integer.parseInt(lex);\r\n\t\t}catch(NumberFormatException e){\r\n\t\t\tSystem.err.println(\"error, numero demasiado largo\");\r\n\t\t}\r\n\t\treturn i;\r\n\t}", "public static int readInt() {\n return Integer.parseInt(readString());\n }", "private static int getErrorLine(String errmsg){\n\t\treturn Integer.parseInt(errmsg.substring(0,errmsg.indexOf(\":\")).substring(errmsg.substring(0,errmsg.indexOf(\":\")).lastIndexOf(\" \")+1));\n\t}", "public static int getMin(String str){\n\t\tStack<Character> st = new Stack<>();\n\t\tint count = 0;\n\t\tfor(char c: str.toCharArray()){\n\t\t if(c == ')'){\n\t\t if(st.size() > 0){\n\t\t st.pop();\n\t\t }\n\t\t else{\n\t\t count++;\n\t\t }\n\t\t }\n\t\t else{\n\t\t st.push(c);\n\t\t }\n\t\t}\n\t\treturn count + st.size();\n\t}", "public static Integer getLine(String line){\n\t\ttry{\n\t\t\tScanner scanner = new Scanner(new File(ramProgram));\n\t\t\tInteger numberLine = 1;\n\t\t\twhile (scanner.hasNext()){\n\t\t\t\tif (scanner.nextLine().trim().equals(line)){\n\t\t\t\t\tscanner.close();\n\t\t\t\t\treturn numberLine;\n\t\t\t\t}\n\t\t\t\tnumberLine++;\n\t\t\t}\n\t\t\tscanner.close();\n\t\t}\n\t\tcatch (FileNotFoundException e) {\n\t\t\t\n\t\t}\n\t\t\n\t\treturn -1;\n\t}", "private int parseHead(String s) \r\n\t{\r\n\t\tString[] parts = LineBase.getParts(LineBase.toWhiteSpaced(this.strLineBase), \"=\");\r\n\t\treturn Integer.parseInt(parts[1]);\r\n\t}", "public static int parseT1(String in){\n Scanner s = new Scanner(in);\n return s.nextInt();\n }", "public static int getInt() throws IOException {\n\t\nString s = getString();\nreturn Integer.parseInt(s);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Returns the integer in the string as an Int.\n\t\n}", "public int readInt() {\n\t\tString read;\n\t\ttry {\n\t\t\tread = myInput.readLine();\n\t\t\tint num = Integer.parseInt(read);\n\t\t\treturn num;\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Input failed!\\n\");\n\t\t\treturn -1;\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.out.println(\"Not a valid selection!\\n\");\n\t\t\treturn -1;\n\t\t}\n\t}", "int getFirstNumber();", "private static int findIndex(String line) {\n\n int index = -1;\n\n if (line == null) {\n return index;\n }\n\n line = line.trim();\n int spaceIndex = line.indexOf(\" \");\n int tabIndex = line.indexOf(\"\\t\");\n\n if (spaceIndex != -1) {\n if (tabIndex != -1) {\n if (spaceIndex < tabIndex) {\n index = spaceIndex;\n } else {\n index = tabIndex;\n }\n } else {\n index = spaceIndex;\n }\n } else {\n index = tabIndex;\n }\n return index;\n }", "public int readInt() throws IOException {\n int token = fTokenizer.nextToken();\n if (token == StreamTokenizer.TT_NUMBER)\n return (int) fTokenizer.nval;\n\n String msg = \"Integer expected in line: \" + fTokenizer.lineno();\n throw new IOException(msg);\n }", "public int readInt(){\n\t\ttry{\n\t\t\treturn scanner.nextInt();\n\t\t}catch (InputMismatchException e){\n\t\t\tString token=scanner.next();\n\t\t\tthrow new InputMismatchException(\"the next token is\\\"\"+token+\"\\\"\");\n\t\t}\n\t\tcatch (NoSuchElementException e){\n\t\t\tthrow new NoSuchElementException(\"no more tokens are available\");\n\t\t}\n\t}", "private void processFirstLine(String line) {\r\n\t\tString[] numsAsStr = line.split(\" \");\r\n\t\tnumRows = Integer.parseInt(numsAsStr[0]);\r\n\t\tnumCols = Integer.parseInt(numsAsStr[1]);\r\n\t\t/**\r\n\t\t * Taken out for time testing\r\n\t\t */\r\n//\t\tSystem.out.println(\"Rows: \" + numRows + \" Cols: \" + numCols);\r\n\t}", "protected String firstToken(String unparsedLine) {\r\n\t\tStringTokenizer t = new StringTokenizer(unparsedLine, \" ,\\011\\042\");\r\n\t\tString returnValue = null;\r\n\t\ttry {\r\n\t\t\treturnValue = t.nextToken();\r\n\t\t} catch (NoSuchElementException e) {\r\n\t\t\tSystem.out.println(\"ERROR in IrregularXsectsInpAsciiInput\");\r\n\t\t}\r\n\t\treturn returnValue;\r\n\t}", "private int getNumFromLine(String[] arrayToUse)\n {\n for(int i = 0; i < arrayToUse.length; i++)\n {\n for(int k = 0; k < arrayToUse[i].length(); k++)\n {\n if(Character.isDigit(arrayToUse[i].charAt(k)))\n {\n return(Integer.decode(arrayToUse[i]));\n }\n }\n }\n return (-1);\n }", "private int extractNumberFromText(String value) {\n\t\tif(!value.isEmpty()) {\n\t\t\tString[] token = value.split(\";\");\n\t\t\tString number = token[0].trim();\n\t\t\treturn Integer.valueOf(number);\n\t\t}\n\t\treturn 0;\n\t}", "private int findFirstNotWhitespace(char[] characters) \n\t{\n\t\t//find starting position of token\n\t\tfor(int i=0; i<characters.length; i++)\n\t\t{\n\t\t\t//check if character is not whitespace.\n\t\t\tif(!Character.isWhitespace( characters[i]))\n\t\t\t{\n\t\t\t\t//non-whitespace found, return position \n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\t//no non-whitespace in char[].\n\t\treturn -1;\n\t}", "public static int getInt() throws IOException {\n String s = getString();\n return Integer.parseInt(s);\n }", "public static int getInt() throws IOException {\r\n String s = getString();\r\n return Integer.parseInt(s);\r\n }", "public static int readInt()\n \n {\n int i=0;\n String wort=\"xxxx\";\n try {\n wort=eingabe.readLine();\n i=Integer.parseInt(wort) ;\n } catch(IOException e1) {\n System.out.println(\"Eingabefehler, bitte noch einmal!\");\n i=readInt();\n } catch(NumberFormatException e2) {\n if(wort.equals(\"\"))\n System.out.println(\"Bitte etwas eingeben, noch einmal:\");\n else {\n System.out.print(\"Fehler beim Format, \");\n System.out.println(\"bitte noch einmal!\");}\n i=readInt();\n }\n return i;\n }", "public static int readInt(){\n\t\tSystem.out.println();\n\t\tstringInput = readInput();\n\t\ttry{\n\t\t\tintInput = Integer.parseInt(stringInput);\n\t\t}\n\t\tcatch (NumberFormatException ex) {\n\t\t System.err.println(\"Not a valid number: \" + stringInput);\n\t\t}\n\t\treturn intInput; \t\t\n\t}", "public int parse()\n\t{\n\t\tString[] lines = data.split(System.getProperty(\"line.separator\"));\n\n\t\t//A '1' at the first line on the first char indicate that it has a saved data\n\t\tif(lines[0].charAt(0) == 0|| data == null || data.equals(\"\"))\n\t\t{\n\t\t\treturn -1; // should return an error or -1 to indicate so\n\t\t}\n\n\t\tfor(int i = 0;i<lines.length;i++)\n\t\t{\n\t\t\tdataArray[i] =\tInteger.parseInt(lines[i]);\n\t\t}\n\n\t\treturn 1; \n\t}", "@Override\n public long resultPart1() throws Exception {\n Scanner sc = inputScanner();\n \n int valid = 0;\n\n while(sc.hasNextLine()) {\n StringBuilder line = new StringBuilder(sc.nextLine());\n \n int min = Integer.parseInt(line.substring(0, line.indexOf(\"-\")));\n int max = Integer.parseInt(line.substring(line.indexOf(\"-\") + 1, line.indexOf(\" \")));\n line.delete(0, line.indexOf(\" \") + 1);\n\n char c = line.charAt(0);\n line.delete(0, line.indexOf(\" \") + 1);\n \n int count = 0;\n for(int i=0; i<line.length(); i++) {\n if(line.charAt(i) == c) count++;\n }\n\n if(count >= min && count <= max) valid++;\n }\n\n return valid;\n }", "java.lang.String getNum1();", "public static int getNforNgram(){\r\n\t\tString path = \"conf/ngram.txt\"; \r\n\t\tint res = 0;\r\n\t\tArrayList<String> words = TextFile.getLines(path);\r\n\t\tString s = words.get(0);\r\n\t\tres = Integer.valueOf(s);\r\n\t\treturn res;\r\n\t}", "public static int getInt(String value)\r\n\t{\r\n\t\treturn getInt(value, 0);\r\n\t}", "public int minCut(String s) {\n \n if(s == null || s.length() == 0) {\n return 0;\n }\n return minCutHelper(s);\n \n }", "public int nextInt()\r\n\t{\r\n\t\tif(st == null || !st.hasMoreTokens())\r\n\t\t\tnewst();\r\n\t\treturn Integer.parseInt(st.nextToken());\r\n\t}", "String getFirst(int n);", "public static int parseIndex(String sentence) throws IllegalInputException {\n String[] words = sentence.split(\" \");\n try {\n int targetIndex = Integer.parseInt(words[1]) - 1;\n return targetIndex;\n } catch (NumberFormatException nfe) {\n throw new IllegalInputException(\"Not a number. Try again!\");\n }\n }", "public static int getInt() {\n while (!consoleScanner.hasNextInt()) {\n consoleScanner.next();\n }\n return consoleScanner.nextInt();\n }", "public int getNumber(String s) {\n String snum = s.substring(1,s.length()-1);\n return Integer.parseInt(snum);\n }", "private static int firstWhitespaceIndexOf(String text) {\n return minIndex(\n text.indexOf(' '),\n text.indexOf('\\n'),\n text.indexOf('\\r'),\n text.indexOf('\\t')\n );\n }", "Integer getTxtOrent();", "private static int parseInt(String s) {\n int value;\n try {\n value = Integer.parseInt(s);\n } catch (NumberFormatException e) {\n value = 0;\n }\n return value;\n }", "private int getShulkerBoxExcess(String line) {\n line = line.replaceAll(\"[^0-9]\",\"\");\n if (line.isEmpty()) {\n line = \"0\";\n }\n return Integer.valueOf(line);\n }", "private static int parseIntWithDefault(String p_78862_0_, int p_78862_1_) {\n/* */ try {\n/* 108 */ return Integer.parseInt(p_78862_0_.trim());\n/* */ }\n/* 110 */ catch (Exception var3) {\n/* */ \n/* 112 */ return p_78862_1_;\n/* */ } \n/* */ }", "public static int parseInt(String s){\r\n int v=-1;\r\n try{\r\n v = Integer.parseInt(s);\r\n }catch(NumberFormatException e){\r\n \r\n }\r\n return v;\r\n }", "public int getFirstLiteral() {\n\t\treturn literals.get(0);\n\t}", "public static Integer scanInt() {\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}\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}", "private static int getColumn(String s) {\n int i = -1;\n try {\n i = Integer.parseInt(s);\n } catch (Exception e) {\n return -1;\n }\n if (i>GameBoardMainArea.NUMCOLS) {\n return -1;\n }\n if (i<1) {\n return -1;\n }\n return i;\n }", "private static int buscarEntero(Scanner s) {\n\t\tint Temp = -1;\n\n\t\tif (!s.hasNextLine() || !s.hasNextInt()) {\n\t\t\treturn -1;\n\t\t}\n\n\t\tString ValorLeido = s.nextLine();\n\t\tif (ValorLeido.length() != 0) {\n\t\t\tScanner Aux = new Scanner(ValorLeido);\n\t\t\twhile (Aux.hasNextInt()) {\n\t\t\t\tTemp = Aux.nextInt();\n\t\t\t}//fin while\n\t\t\tAux.close();\n\t\t}\n\t\treturn Temp;\n\t}", "static int getLength(String line)\n{\n\tString pattern = \"SVLEN=\";\n\tint idx = line.indexOf(pattern);\n\tif(idx == -1) return 0;\n\tline = line.toUpperCase();\n\tidx += pattern.length();\n\tint end = idx;\n\tint length = 0;\n\twhile(end < line.length() && line.charAt(end) >= '0' && line.charAt(end) <= '9')\n\t{\n\t length = length * 10 + (line.charAt(end) - '0');\n\t end++;\n\t}\n\treturn length;\n}", "private static int extractInt(String str) {\n\n String num = \"\";\n for (int i = 0; i < str.length(); i++) {\n if (java.lang.Character.isDigit(str.charAt(i))) num += str.charAt(i);\n }\n return (num.equals(\"\")) ? 0 : java.lang.Integer.parseInt(num);\n\n }", "public Integer tryIntParsing(String s) {\n try {\n int parsedInt = Integer.parseInt(s);\n return parsedInt;\n } catch (NumberFormatException e) {\n return 0;\n }\n }", "public static int getNthIntValue(String line, int n) {\n // Split the string by non-digits,\n String[] split = RegEx.NOT_NUMBERS.split(RegEx.WITH_NOT_NUMBERS.matcher(line).replaceFirst(Normal.EMPTY));\n if (split.length >= n) {\n return parseIntOrDefault(split[n - 1], 0);\n }\n return 0;\n }", "public static int m2197ao(String str) {\n try {\n return Integer.valueOf(str).intValue();\n } catch (Exception e) {\n return -1;\n }\n }", "private static Integer getInteger(BufferedReader reader) throws IOException{\n Integer result=null;\n while(result==null) {\n try {\n result = Integer.parseInt(reader.readLine().trim());\n } catch (NumberFormatException e) {\n throw new NumberFormatException(\"You should feed integer for this input.\");\n }\n }\n return result;\n }", "private static int getIntValue(String s) {\n try {\n return Integer.parseInt(s, 16);\n } catch (NumberFormatException e) {\n e.printStackTrace();\n return -1;\n }\n }", "private int _parseSize(\n String value\n )\n {\n if (value == null)\n return -1;\n\n try\n {\n return Integer.parseInt(value);\n }\n catch (NumberFormatException e)\n {\n ;\n }\n\n _LOG.warning(_SIZE_ERROR);\n\n return -1;\n }", "static int convertToInt(String s){\n\n int value = -1;\n\n try{\n value = Integer.parseInt(s);\n return value;\n }\n catch(NumberFormatException e) {\n return value;\n }\n catch(NullPointerException e) {\n return value;\n }\n }", "int maxLength() {\n try (Stream<String> words = Files.lines(dictionary)) {\n return words.mapToInt(String::length).max().orElse(0);\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "static int readInt() throws Exception {\n\t\treturn Integer.parseInt(readString());\n\t}", "public static int readInt() {\n try {\n return scanner.nextInt();\n }\n catch (InputMismatchException e) {\n String token = scanner.next();\n throw new InputMismatchException(\"attempts to read an 'int' value from standard input, \"\n + \"but the next token is \\\"\" + token + \"\\\"\");\n }\n catch (NoSuchElementException e) {\n throw new NoSuchElementException(\"attemps to read an 'int' value from standard input, \"\n + \"but no more tokens are available\");\n }\n }", "String getInt();", "public static int shortStringToInt(String s) {\n int retval = 0;\n for (int i = 0; i < s.length(); i++) {\n int j = intForChar(s.charAt(i));\n //If the character can't be found (is not a keyboard character), then don't include.\n if (j != 0) {\n retval *= 100;\n retval += j;\n }\n }\n return retval;\n }", "public int min()\n\t{\n\t\tif (arraySize > 0)\n\t\t{\n\t\t\tint minNumber = array[0];\n\t\t\tfor (int index = 0; index < arraySize; index++) \n\t\t\t{\n\t\t\t\tif (array[index] < minNumber)\n\t\t\t\t{\n\t\t\t\t\tminNumber = array[index];\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t\treturn minNumber;\n\t\t}\n\t\tSystem.out.println(\"Syntax error, array is empty.\");\n\t\treturn -1;\n\n\t}", "@Override\n\tpublic int func1(String s) {\n\t\tfor(int i=0; i<=s.length()-1; i++) {\n\t\t\tif(s.charAt(i)>=48 && s.charAt(i)<=57) {\n\t\t\t\treturn Integer.parseInt(\"\"+s.charAt(i));\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "public int getInt(String name)\n/* */ {\n/* 908 */ return getInt(name, 0);\n/* */ }", "public int leerInt() throws IOException\r\n {\r\n return maestro.readInt(); \r\n }", "public static int parseT2(String in){\n Scanner s = new Scanner(in);\n int out = -1;\n if(s.hasNext()){\n out = s.nextInt();\n }\n return out;\n }", "@EpiTest(testDataFile = \"pretty_printing.tsv\")\n\n public static int minimumMessiness(List<String> words, int lineLength) {\n words = List.of(\"a\", \"b\", \"c\", \"d\");\n lineLength = 5;\n //expected 8\n int minimumMessiness[] = new int[words.size()];\n Arrays.fill(minimumMessiness, Integer.MAX_VALUE);\n\n int numRemainingBlanks = words.get(0).length() - lineLength;\n minimumMessiness[0] = numRemainingBlanks * numRemainingBlanks; //placing word 0 to i+1 word\n\n for (int i = 1; i < words.size(); i++) {\n numRemainingBlanks = lineLength - words.get(i).length();\n minimumMessiness[i] = minimumMessiness[i - 1] + numRemainingBlanks * numRemainingBlanks;\n\n for (int j = i - 1; j >= 0; j--) {\n numRemainingBlanks = numRemainingBlanks - words.get(j).length() - 1;\n if (numRemainingBlanks < 0) {\n break;\n }\n int firstJMessiness = j - 1 < 0 ? 0 : minimumMessiness[j - 1]; //doubt\n int currentLineMessiness = numRemainingBlanks * numRemainingBlanks;\n minimumMessiness[i] = Math.min(minimumMessiness[i], firstJMessiness + currentLineMessiness);\n }\n\n\n }\n return minimumMessiness[words.size() - 1];\n }", "static int check(String exp) {\n exp = exp.replaceAll(\"\\\\+\\n\", \"\");\n int val = 0;\n StringTokenizer tokenizer = new StringTokenizer(exp, \"\\n\", true);\n\n while (tokenizer.hasMoreTokens()) {\n String nextToken = tokenizer.nextToken().trim();\n if (nextToken.equals(\"\\n\") || nextToken.equals(\"\")) {\n val += Integer.parseInt(tokenizer.nextToken().trim());\n } else {\n val = Integer.parseInt(nextToken);\n }\n }\n return val;\n }", "private int extractInt() {\n\t\tint startIndex = index;\n\t\tfor (; index < exprLen; index++) {\n\t\t\tchar c = expr.charAt(index);\n\t\t\tif (!Character.isDigit(c)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tint endIndex = index;\n\t\tint value;\n\t\ttry {\n\t\t\tvalue = Integer.parseInt(expr.substring(startIndex, endIndex));\n\t\t} catch (NumberFormatException e) {\n\t\t\tthrow new IllegalArgumentException(e.getMessage());\n\t\t}\n\n\t\treturn value;\n\t}", "public static int parseInt(String S1){\n return Integer.parseInt(S1);\n }", "public int getStatusCode()\n {\n return Integer.parseInt(startLine.split(\" \")[1]);\n }", "int toInt(String a){\n\t\tint name=0;\r\n\t\tfor(int i=0;i<a.length();i++){\r\n\t\t\tname+=(int)a.charAt(i);\r\n\t\t}\r\n\t\treturn name;\r\n\t}", "static int getNumberFromString(String s) {\n if (s == null) {\n throw new NumberFormatException(\"null\");\n }\n int result = 0;\n int startIndex = 0;\n int length = s.length();\n boolean negative = false;\n char firstChar = s.charAt(0);\n if (firstChar == '-') {\n negative = true;\n startIndex = 1;\n }\n\n for (int i = startIndex; i < length; i++) {\n char num = s.charAt(i);\n result = result * 10 + num - '0';\n }\n\n return negative ? -result : result;\n }", "private static int i(String s) {\n return Integer.parseInt(s);\n }", "public int getInt(String prompt) {\n do {\n try {\n String item = getToken(prompt);\n Integer num = Integer.valueOf(item);\n return num.intValue();\n }\n catch (NumberFormatException nfe) {\n System.out.println(\"Please input a number \");\n }\n } while (true);\n }", "public int getInt(String prompt) {\n do {\n try {\n String item = getToken(prompt);\n Integer num = Integer.valueOf(item);\n return num.intValue();\n }\n catch (NumberFormatException nfe) {\n System.out.println(\"Please input a number \");\n }\n } while (true);\n }", "public long getLong() throws NoSuchElementException,\n\t NumberFormatException\n {\n\tString s = tokenizer.nextToken();\n\treturn Long.parseLong(s);\n }", "private String getIntToken(char[] characters) {\n\t\tString currentToken = \"\";\n\t\t//look at each character\n\t\tfor (char ch: characters)\n\t\t{\n\t\t\t//check if whitespace\n\t\t\tboolean ws = Character.isWhitespace(ch);\n\t\t\t//check type\n\t\t\tString type = getType(ch);\n\t\t\t\n\t\t\t//not whitespace and new ch is an integer.\n\t\t\tif (!ws && Objects.equals(type, \"int\"))\n\t\t\t{\n\t\t\t\tcurrentToken = currentToken.concat(String.valueOf(ch));\n\t\t\t}\n\t\t\t//not whitespace and special ch\n\t\t\telse if (!ws && Objects.equals(type, \"special\"))\n\t\t\t{\n\t\t\t\treturn currentToken;\n\t\t\t}\n\t\t\telse if ( ws )\n\t\t\t{\n\t\t\t\treturn currentToken;\n\t\t\t}\n\t\t\telse //ch type cannot follow integer \n\t\t\t{\n\t\t\t\tSystem.out.println(\"invalid type follows int\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t\t//ran out of tokens to process\n\t\treturn currentToken;\n\t}", "public static void findTheLargestWord() {\n\t\ttry (Scanner scan = new Scanner(new File(\"in1.txt\"))) {\r\n\r\n\t\t\tString largestWord = \"\";\r\n\t\t\tString current = \"\";\r\n\r\n\t\t\twhile (scan.hasNext()) {\r\n\t\t\t\tcurrent = scan.next();\r\n\t\t\t\tif (current.length() > largestWord.length()) {\r\n\t\t\t\t\tlargestWord = current;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println(largestWord);\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.out.println(\"I can't find the file, where it is????\");\r\n\t\t}\r\n\r\n\t}", "private int findTokenStart() {\n\n\t\tint tokenStart = NOTOKENFOUND;\n\t\t//find starting position of token\n\t\twhile ( tokenStart == NOTOKENFOUND)\n\t\t{\n\t\t\t//empty line, but more lines to read\n\t\t\tif (line.length() == 0 && s.hasNextLine()) \n\t\t\t{\n\t\t\t\t//read next line\n\t\t\t\tline = s.nextLine(); \n\t\t\t}\n\t\t\t//empty line, and no more lines to read\n\t\t\telse if (line.length() == 0 && !s.hasNextLine() )\n\t\t\t{\n\t\t\t\treturn NOTOKENFOUND;\n\t\t\t}\n\t\t\t//line not empty\n\t\t\telse if (line.length() > 0)\n\t\t\t{\n\t\t\t\t//convert to characters[]\n\t\t\t\tchar[] characters = line.toCharArray();\n\t\t\t\t//find position of token in line.\n\t\t\t\ttokenStart = findFirstNotWhitespace(characters);\n\t\t\t\t//empty line if no token found.\n\t\t\t\tif (tokenStart == NOTOKENFOUND)\n\t\t\t\t{\t\n\t\t\t\t\t//empty the line.\n\t\t\t\t\tline = \"\";\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//token was found!\n\t\treturn tokenStart;\n\t}", "public static double obtenerCantidad(String linea){\n String numeroString = \"\";\n double numero = 0;\n for(int i = 0;i<linea.length();i++) {\n String letra = String.valueOf(linea.charAt(i));\n if(isNumeric(letra)){\n numeroString += linea.charAt(i);\n }\n }\n numero = Double.parseDouble(numeroString);\n return numero;\n }", "public static int getInt (String ask)\r\n {\r\n boolean badInput = false;\r\n String input = new String(\"\");\r\n int value = 0;\r\n do {\r\n badInput = false;\r\n input = getString(ask);\r\n try {\r\n value = Integer.parseInt(input);\r\n }\r\n catch(NumberFormatException e){\r\n badInput = true;\r\n }\r\n }while(badInput);\r\n return value;\r\n }", "@Override\n\tpublic int func1(String s) {\n\t\tfor(int i=s.length()-1; i>=0; i--) {\n\t\t\tif(s.charAt(i)>=48 && s.charAt(i)<=57) {\n\t\t\t\treturn Integer.parseInt(\"\"+s.charAt(i));\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "public static int atoi(String s)\n {\n return (int) atol(s);\n }", "public static int getInt (String ask, int min, int max)\r\n {\r\n int value = 0;\r\n do {\r\n value = getInt(ask + \" (\" + min + \" - \" + max + \")\");\r\n } while (value < min || value > max);\r\n return value;\r\n }", "public int get_ultimo_idUsuario() throws RemoteException {\n int idu=0;\n try {\n FileReader fr = new FileReader(datos);\n BufferedReader entrada = new BufferedReader(fr);\n String s, p=\"\";\n String texto[]=new String[11];\n while((s = entrada.readLine()) != null) p=s;\n\n if(p!=null && p.compareTo(\"\")!=0) {\n texto=p.split(\" \");\n if(texto[0].compareTo(\"\")!=0)\n idu=Integer.parseInt(texto[0]);\n else\n idu=0;\n }\n\n entrada.close();\n } catch (FileNotFoundException e) {\n System.err.println(\"FileStreamsTest: \" + e);\n } catch (IOException e) {\n System.err.println(\"FileStreamsTest: \" + e);\n }\n return idu;\n }", "public static final int getListFileFirstInt(final ListFile var) {\n if (var == null)\n return -1;\n return getListFileIntList(var)[0];\n }", "public static int dataNum(File file) {\n int lineCount = 0; // Start line count at 0\n\n try { // Try catch\n Scanner scan = new Scanner(file); // Scans file that was specified\n while(scan.hasNextLine()) { // While loop runs until there are no more lines to read\n String line = scan.nextLine(); // Line read is stored as a string\n if (Character.isDigit(line.charAt(4))) { // Sees if the 4th character in the line is a integer\n lineCount++; // If it is an integer, it counts that line\n }\n }\n return lineCount; // Returns the line count\n } catch (FileNotFoundException e) { // If error occurs\n System.out.println(\"An error has occured\"); // Print that error has occured\n }\n return 0; // In case there is no lineCount return and to get rid of errors\n }", "private int parseHTMLForSpeed(String line){\n String output = \"\";\n int end = 0;\n char charInt;\n for (int i=0; i<line.length(); i++){\n charInt=line.charAt(i);\n if(charInt>=45 && charInt<=57){\n output = output + charInt;\n end+=1;\n }\n else{\n if (end > 1){\n break;\n }\n }\n }\n\n return Integer.parseInt(output.substring(1));\n }", "private String getFirstWordOfFile(String filename) {\n try {\n String result = \"\";\n BufferedReader bf = new BufferedReader(new FileReader(filename));\n boolean isComment = false;\n boolean noCase = false;\n boolean cont = false;\n\n for (String line = bf.readLine(); line != null; line = bf\n .readLine()) {\n line = line.trim();\n while (!noCase) {\n noCase = true;\n if (line.startsWith(\"--\")) {\n noCase = true;\n cont = true;\n continue;\n }\n if (line.startsWith(\"/*\")) {\n noCase = false;\n isComment = true;\n line = line.substring(line.indexOf(\"/*\") + 2).trim();\n }\n if (isComment == true) {\n noCase = false;\n int index = line.indexOf(\"*/\");\n if (index != -1) {\n line = line.substring(index + 2).trim();\n isComment = false;\n }\n if (index == -1) {\n noCase = true;\n cont = true;\n continue;\n }\n }\n }\n if (cont || line.trim().equals(\"\")) {\n cont = false;\n noCase = false;\n continue;\n }\n StringTokenizer st = new StringTokenizer(line);\n result = st.nextToken();\n return result;\n }\n } catch (FileNotFoundException e) {\n // ignored\n Log.println(\"Error: File `\" + filename + \"' could not be found!\");\n return \"ERROR: -1\";\n } catch (IOException e) {\n // ignored\n }\n return null;\n }", "public int lowestHighscore()\n {\n FileReader filereader;\n PrintWriter writer;\n int lowHighScore = 0;\n try{\n \n filereader = new FileReader(getLevel());\n BufferedReader bufferedreader = new BufferedReader(filereader);\n \n \n String finalLine =\"\";\n for(int i = 0;i<5;i++)\n {\n finalLine = bufferedreader.readLine();\n }\n lowHighScore = Integer.parseInt(finalLine.split(\":\")[1]);\n \n }\n catch(IOException e){}\n return lowHighScore;\n }", "java.lang.String getNum2();" ]
[ "0.75109965", "0.6655126", "0.6622817", "0.63446647", "0.62669927", "0.61986446", "0.6169627", "0.6148506", "0.61192113", "0.60641766", "0.6053946", "0.6003012", "0.5937922", "0.5932187", "0.5908694", "0.58508134", "0.5780198", "0.5773387", "0.57496196", "0.5733458", "0.56658834", "0.5653594", "0.5648604", "0.56455415", "0.56256133", "0.5623705", "0.5600367", "0.55989486", "0.55957115", "0.5590544", "0.55885154", "0.5588337", "0.55834174", "0.5542468", "0.55404055", "0.55132157", "0.54845464", "0.5480077", "0.5466258", "0.54621434", "0.54584813", "0.54568404", "0.5449247", "0.54484516", "0.5428416", "0.541786", "0.5417496", "0.5414306", "0.54139876", "0.5406999", "0.54068106", "0.54004914", "0.5399034", "0.5398699", "0.5393435", "0.53835154", "0.53825307", "0.537884", "0.53700155", "0.53694665", "0.5368948", "0.53386307", "0.53285205", "0.5325905", "0.5313202", "0.531277", "0.52949893", "0.5272961", "0.5272051", "0.52617425", "0.52609426", "0.524897", "0.5246987", "0.5245221", "0.5244259", "0.5240349", "0.52365905", "0.5232417", "0.52317184", "0.5215655", "0.52108866", "0.52067816", "0.520559", "0.520559", "0.5203357", "0.5198667", "0.5194974", "0.51912016", "0.51851124", "0.51587254", "0.51573914", "0.51509523", "0.51503044", "0.5149807", "0.51468253", "0.5145395", "0.51435673", "0.51396114", "0.5129524", "0.5127877" ]
0.67530334
1
Created by IntelliJ IDEA. User: nah67 Date: 9/6/11 Time: 10:20 AM To change this template use File | Settings | File Templates.
public interface User extends Serializable { Long getId(); String getUserName(); String getPassword(); String getDescription(); boolean isEnabled(); void setUserName(String userName); void setPassword(String password); void setDescription(String description); void setEnabled(boolean value); public void addUserGroup(UserGroup userGroup); public void removeUserGroup(UserGroup userGroup); public void removeAllGroups(); public void setGroups(Set<UserGroup> groups); public Set<UserGroup> getGroups(); /* void addGroup(Group group); void removeGroup(Group group); public void removeAllGroups(); List<Group> getGroups(); */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "public void mo38117a() {\n }", "@Override\n public void perish() {\n \n }", "public void mo21785J() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\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 public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }", "public final void mo51373a() {\n }", "public void mo21792Q() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public void mo97908d() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void mo21779D() {\n }", "public void mo12930a() {\n }", "public void m23075a() {\n }", "public void mo21825b() {\n }", "private Solution() {\n /**.\n * { constructor }\n */\n }", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "@Override\n public void init() {\n\n }", "public void mo4359a() {\n }", "public void mo21795T() {\n }", "@Override\n\tpublic void name() {\n\t\t\n\t}", "@Override\n\tpublic void name() {\n\t\t\n\t}", "public void mo21877s() {\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo1531a() {\n }", "public void mo23813b() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public void mo21781F() {\n }", "public static void main(String args[]) throws Exception\n {\n \n \n \n }", "private void m50366E() {\n }", "public void mo21878t() {\n }", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "public void mo5382o() {\n }", "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "public void mo3376r() {\n }", "public static void thisDemo() {\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private void habilitar() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public void mo6081a() {\n }", "public void mo115188a() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "public void mo21782G() {\n }", "public void mo21793R() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public void mo56167c() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "private static void oneUserExample()\t{\n\t}", "public static void generateCode()\n {\n \n }", "public void mo115190b() {\n }", "public void mo2740a() {\n }", "public void mo55254a() {\n }", "public void mo21791P() {\n }", "public static void listing5_14() {\n }", "private void cargartabla() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public void method_4270() {}", "@Override\n public String getDescription() {\n return DESCRIPTION;\n }", "@Override\n void init() {\n }", "public void mo5248a() {\n }", "@Override\n public void init() {\n }", "@Override\n\tprotected void logic() {\n\n\t}", "public void mo3749d() {\n }", "public final void mo91715d() {\n }", "@Override\n public void initialize() { \n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "private test5() {\r\n\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "public void mo9848a() {\n }", "public void mo44053a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo2471e() {\n }", "public void mo21787L() {\n }", "@Override\n public int describeContents() { return 0; }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void mo6944a() {\n }", "private TMCourse() {\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}" ]
[ "0.62008333", "0.60300136", "0.59609437", "0.5928674", "0.59169066", "0.59031975", "0.58856463", "0.58856463", "0.5866591", "0.5857389", "0.585195", "0.5840892", "0.5834578", "0.58242065", "0.58099496", "0.58099496", "0.58039683", "0.578313", "0.5782474", "0.5778352", "0.5776725", "0.57712275", "0.5759895", "0.57471794", "0.57441217", "0.5741533", "0.5738273", "0.5729059", "0.5729059", "0.5722608", "0.5716773", "0.5712856", "0.5712442", "0.57096946", "0.57085276", "0.5705568", "0.57005113", "0.56968015", "0.5688314", "0.56882995", "0.5687383", "0.5687212", "0.56852424", "0.56816787", "0.56811035", "0.56798184", "0.5676763", "0.5676618", "0.5669796", "0.56676203", "0.5664638", "0.5664297", "0.5657573", "0.5657573", "0.5653878", "0.5649028", "0.5648564", "0.5645027", "0.5645027", "0.5645027", "0.5645027", "0.5645027", "0.5645027", "0.56407166", "0.5637694", "0.5625822", "0.5620757", "0.561369", "0.56135327", "0.5612516", "0.56124204", "0.56086075", "0.56079495", "0.5605781", "0.56046325", "0.5604472", "0.5596131", "0.55947626", "0.55946344", "0.55887836", "0.5585645", "0.5585645", "0.55825794", "0.55778337", "0.5572265", "0.55716664", "0.5570984", "0.5570984", "0.5570984", "0.5570984", "0.5570984", "0.5570984", "0.5570984", "0.5565259", "0.5565031", "0.55584854", "0.555797", "0.5550461", "0.55496275", "0.5548173", "0.5545645" ]
0.0
-1
this method runs before each test in remote
@BeforeMethod public void setUp() { initialization(); loginPage = new LoginPage(); homePage = loginPage.login(prop.getProperty("username"), prop.getProperty("password")); System.out.println("Logged in successfully"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void runBeforeTest() {}", "@Before\n public void setUp() {\n \tserver = super.populateTest();\n }", "@Before public void setUp() { }", "@Before\n public void beforeTest(){\n\n\n }", "@Before public void setUp() {\n }", "@Before public void setUp() {\n }", "@Before public void setUp() {\n }", "@Before public void setUp() {\n }", "@Before public void setUp() {\n }", "protected void runBeforeStep() {}", "@Before\n public void setup() {\n }", "@Before\r\n public void setUp() { \r\n ApiProxy.setEnvironmentForCurrentThread(new TestEnvironment());\r\n //ApiProxy.setDelegate(new ApiProxyLocalImpl(new File(\".\")){});\r\n \t\r\n //helper.setUp();\r\n }", "@Before\n public void setup() {\n }", "@Before\n public void setup() {\n }", "@Before\n public void setup() {\n }", "@Before\n public void postSetUpPerTest(){\n\n }", "@Before\r\n\tpublic void setup() {\r\n\t}", "@BeforeAll\n static void setup() {\n log.info(\"@BeforeAll - executes once before all test methods in this class\");\n }", "protected void setUp() {\n\t}", "@Before\r\n\t public void setUp(){\n\t }", "public void setUp() {\n\n\t}", "@Before\n\t public void setUp() {\n\t }", "@Before\n\tpublic void setup() {\n\t\t\n\t\t\n\t}", "protected void setUp() {\n\n }", "@Override\n @Before\n public void before() throws Exception {\n\n super.before();\n }", "public void before() {\n }", "public void before() {\n }", "public void setUp()\r\n {\r\n //empty on purpose\r\n }", "@Before\n public void setupThis() {\n System.out.println(\"* Before test method *\");\n }", "@BeforeClass\n\tpublic void beforeClass() {\n\t}", "@Before\r\n\tpublic void before() {\r\n\t}", "@Before\r\n\tpublic void setUp() {\n\t}", "@BeforeClass\n\tpublic static void setUp() {\n\t\texecutor = new RESTManager(URL);\n\t}", "protected void setUp()\n {\n }", "protected void setUp()\n {\n }", "@Before\r\n public void setUp()\r\n {\r\n }", "@Before\r\n public void setUp()\r\n {\r\n }", "@Before\r\n public void setUp()\r\n {\r\n }", "@Before\r\n public void setUp()\r\n {\r\n }", "@BeforeMethod\r\n\tpublic void beforeMethod() {\r\n\t\t//initializeTestBaseSetup();\r\n\t}", "@Before\n public void before() {\n }", "@Before\n public void before() {\n }", "@Before\n\tpublic void setUp() {\n\t}", "@Before\n public void setUp() {\n }", "@Before\n public void setUp() {\n }", "@Before\n public void setUp() {\n }", "@Before\n public void setUp() {\n }", "@Before\n public void setUp() {\n }", "@Before\n public void setUp() {\n System.out.println(\"\\n@Before - Setting Up Stuffs: Pass \"\n + ++setUpCount);\n // write setup code that must be executed before each test method run\n }", "@Before\n public void setUp() {\n }", "@Before\n public void setUp() {\n }", "@BeforeClass\n public static void beforeClass() {\n }", "@BeforeMethod\n\tpublic void beforeMethod() {\n//\t\tSeleniumWrapper.openPage(\"http://localhost:8080\");\n//\t\tm_logMessage = new StringBuilder();\n//\t\tm_logMessage.append(String.format(\"TestCase - %s, started @ %s \\n\", m_currentTestCaseName,\n//\t\t\t\tCommonUtil.getFormatedDate(\"yyyy-MM-dd HH:mm:ss.SSS \")));\n//\t\tm_logMessage.append(\n//\t\t\t\t\"------------------------------------------------------------------------------------------------------------------------- \\n\");\n//\t\tm_logMessage.append(String.format(\"Description: %s. \\nTest Steps: \\n\", m_currentTestCaseDescription));\n//\t\tlogFullTestDescription();\n//\t\tLog.writeMessage(LogLevel.INFO, m_logMessage.toString());\n\t\tHelper.sleep(4000);\n\t}", "@Before\n public void setUp () {\n }", "@BeforeAll\n public void prepare() {\n }", "@Before\n\tpublic void setup() \n\t{\n\t\tsuper.setup();\n\t\t\n }", "@BeforeClass\n public void beforeclass() {\n\t}", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "void beforeRun();", "@Override\r\n\tpublic void setUp() {\n\t\t\r\n\t}", "@Before\n public void setUp() throws Exception {\n\n }", "@BeforeMethod(alwaysRun = true)\r\n\tpublic void testMethodSetup() {\r\n\t\tif (driver == null)\r\n\t\t\tinitializeDriver();\r\n\t\tlaunchURl();\r\n\t\twaitForPageLoad(1000);\r\n\t}", "@Before\r\n public void before() throws Exception {\r\n }", "@Before\n\tpublic void setUpTestFrames() {\n\t\ttestXOffset = 0;\n\t\tinitializeRemoteBrowser( System.getProperty(\"browserType\"), System.getProperty(\"hubUrl\") ,\n Integer.parseInt( System.getProperty(\"hubPort\") ) );\n\t\tSystem.out.println(\"TestFrames thread id = \" + Thread.currentThread().getId());\n\t\tclasslogger.info(\"Finished setUpTestFrames\");\n\t}", "@BeforeEach\n\tpublic void runBeforeTests() {\n\t\ttestArrayList = new ArrayList<>(Arrays.asList(38, 3, 33, 36, 5, 70, 24, 47, 7, 27, 15, 48, 53, 32, 93));\n\t}", "@Before\n public void setUp() throws Exception {\n\n }", "@BeforeAll\n\tstatic void initOperate()\n\t{\t\n\t\tSystem.out.println(\"only Before All the tests....\");\n\t\toperate = new Operations();\n\t}", "protected void setUp()\r\n {\r\n /* Add any necessary initialization code here (e.g., open a socket). */\r\n }", "@Stub\n\tpublic void before()\n\t{\n\t\t//\n\t}", "protected void runBeforeIterations() {}", "protected void setUp()\n {\n /* Add any necessary initialization code here (e.g., open a socket). */\n }", "@BeforeSuite\r\n\t\tpublic void BeforeSute()\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Before suite\");\r\n\t\t}", "@Override\n public void beforeMethod(BQTestScope scope, ExtensionContext context) {\n this.withinTestMethod = true;\n\n // TODO: prefilter callbacks collection of \"beforeTestIfStarted\" in a separate collection to avoid iteration\n // on every run?\n if (isStarted()) {\n callbacks.forEach((k, v) -> beforeTestIfStarted(cayenneRuntime, k, v));\n }\n }", "@Before\n public void setUp() throws Exception {\n }", "@Before\n public void setUp() throws Exception {\n }", "@Override\r\n\tpublic void setUp() {\n\r\n\t}", "@Override\n public void setUp() {\n }", "@BeforeTest\n\tpublic void beforeTest() throws Exception {\n\t\textent = ExtentManager.getReporter(filePath);\n\t\trowData = testcase.get(this.getClass().getSimpleName());\n\t\ttest = extent.startTest(rowData.getTestcaseId(), rowData.getTestcaseDescription()).assignCategory(\"Watchlist\");\n\n\t}", "protected void setUp() throws Exception {\n \n }", "@Override\r\n protected void setUp() {\r\n // nothing yet\r\n }", "@Before\r\n\tpublic void setUp() throws Exception {\r\n\t\t//This method is unused. \r\n\t}", "@BeforeTest\n\tpublic void beforeTest() {\n\t\t\n\t\tSystem.setProperty(\"webdriver.gecko.driver\",\".\\\\lib\\\\geckodriver.exe\");\n\t\tdriver = new FirefoxDriver(); \n//\t\tSystem.setProperty(\"webdriver.ie.driver\",\".\\\\lib\\\\IEDriverServer.exe\");\n//\t\tdriver = new InternetExplorerDriver();\n\t\t\n//\t\tSystem.setProperty(\"webdriver.chrome.driver\",\".\\\\lib\\\\chromedriver.exe\");\n//\t\tdriver = new ChromeDriver();\n\t\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n\t\tdriver.manage().window().maximize();\n\t}", "@Before\n public void beforeScenario() {\n }", "@Before\r\n\tpublic void set_up(){\n\t}" ]
[ "0.7871284", "0.7030436", "0.692643", "0.68716466", "0.6855133", "0.6855133", "0.6855133", "0.6855133", "0.6855133", "0.68545496", "0.68516034", "0.68498653", "0.68305916", "0.68305916", "0.68305916", "0.68236434", "0.68170494", "0.6813505", "0.67949957", "0.6785176", "0.67839116", "0.6774297", "0.6768281", "0.6732056", "0.6706503", "0.67048216", "0.67048216", "0.6690348", "0.6665271", "0.66646475", "0.6658165", "0.6656187", "0.66500086", "0.6640372", "0.6640372", "0.6636647", "0.6636647", "0.6636647", "0.6636647", "0.66289955", "0.66239095", "0.66239095", "0.66053283", "0.6604333", "0.6604333", "0.6604333", "0.6604333", "0.6604333", "0.6602297", "0.6591712", "0.6577785", "0.6575315", "0.6574454", "0.6570274", "0.6568047", "0.65625864", "0.65606534", "0.65586054", "0.65586054", "0.65586054", "0.65586054", "0.65586054", "0.65586054", "0.65586054", "0.65586054", "0.65586054", "0.65586054", "0.65586054", "0.65586054", "0.65586054", "0.65586054", "0.65586054", "0.65586054", "0.65586054", "0.65586054", "0.65507907", "0.654991", "0.65076786", "0.64997816", "0.6493454", "0.64900297", "0.6480829", "0.64689267", "0.64570004", "0.6453866", "0.64453554", "0.6444", "0.64315856", "0.64269197", "0.64257336", "0.64244115", "0.64244115", "0.64182407", "0.6417288", "0.6415531", "0.6413629", "0.64127415", "0.6402293", "0.64010936", "0.639917", "0.63989097" ]
0.0
-1
TODO Autogenerated method stub
@Override protected BaseListAdapter.ViewHolder createViewHolder(View root) { MyViewHolder holder = new MyViewHolder(root); return holder; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override protected void fillView(View root, GroupClassInfo item, ViewHolder holder, final int position) { if (item == null)return; final MyViewHolder h = (MyViewHolder) holder; h.tvName.setText(item.getName()); if(info != null && item.equals(info)){ h.mCB.setChecked(true); }else{ h.mCB.setChecked(false); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override protected int getItemViewId() { return R.layout.item_group_class; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void run() { String path = "D:\\test"; for(int i=1;i<65535;i++){ File file = new File(path+File.separator+name+i); if(!file.exists()){ file.mkdirs(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Created by Administrator on 2018/10/13.
public interface DeptService { List<Dept> findAllDepts(); Dept findDeptByName(String dName); List<Employee> searchEmployeeByDeptName(String name); List<Employee> searchEmployeeByJobName(String name); void addDept(Dept dept); void editDept(Dept dept); void deleteDeptByName(String name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void create () {\n\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tpublic void create() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void dormir() {\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}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "@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 public void memoria() {\n \n }", "@Override\n\tpublic void create() {\n\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "public void create() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n\n \n }", "private TMCourse() {\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "Petunia() {\r\n\t\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void create() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void create() {\n\r\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n protected void initialize() \n {\n \n }", "public contrustor(){\r\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "public void autoDetails() {\n\t\t\r\n\t}", "public Pitonyak_09_02() {\r\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo4359a() {\n }", "@Override\n public Date getCreated()\n {\n return null;\n }", "@Override\n public void init() {\n\n }", "private static void oneUserExample()\t{\n\t}", "@Override\n protected void getExras() {\n }", "protected Doodler() {\n\t}", "public static void created() {\n\t\t// TODO\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 }", "private static void cajas() {\n\t\t\n\t}", "@SuppressWarnings(\"unused\")\n private void generateInfo()\n {\n }", "private Singletion3() {}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public void verarbeite() {\n\t\t\r\n\t}", "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }", "@Override\n public int describeContents() { return 0; }", "private UsineJoueur() {}", "private ReportGenerationUtil() {\n\t\t\n\t}", "@Override\n protected void execute() {\n \n }", "@Override\n void init() {\n }", "public void designBasement() {\n\t\t\r\n\t}", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "@Override\n public void init() {\n }", "@Override\n public String toString() {\n return \"\";\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n public void func_104112_b() {\n \n }", "CreationData creationData();", "Consumable() {\n\t}", "@Override\n public void initialize() {\n \n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n protected void execute() {\n \n }", "Constructor() {\r\n\t\t \r\n\t }", "protected void onFirstUse() {}", "private void getStatus() {\n\t\t\n\t}", "public void mo55254a() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void mo6081a() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void startUp() {\n }", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "private DittaAutonoleggio(){\n \n }", "private MetallicityUtils() {\n\t\t\n\t}", "@Override\n public int getSize() {\n return 1;\n }" ]
[ "0.61508083", "0.6079463", "0.5785022", "0.57656544", "0.5765204", "0.5742778", "0.56735706", "0.56320506", "0.5631582", "0.5608195", "0.5601113", "0.56004363", "0.55882514", "0.55874676", "0.55872923", "0.55789447", "0.55789447", "0.5576192", "0.5570869", "0.55668443", "0.55668443", "0.55643135", "0.5560686", "0.5556142", "0.55361885", "0.5527095", "0.5517854", "0.5517722", "0.5517296", "0.550835", "0.55031765", "0.55010784", "0.55002505", "0.54996514", "0.5498437", "0.54926944", "0.54926944", "0.54926944", "0.54926944", "0.54926944", "0.54926944", "0.5491532", "0.5479298", "0.5466152", "0.54492384", "0.5442383", "0.54204935", "0.5415133", "0.5408162", "0.5406419", "0.53925824", "0.5391711", "0.5378685", "0.5378685", "0.5378685", "0.5378685", "0.5378685", "0.5378685", "0.5378685", "0.5377548", "0.5374181", "0.5365605", "0.53646106", "0.53630185", "0.5362202", "0.53489286", "0.5336012", "0.5335741", "0.5335348", "0.533", "0.5329836", "0.53105795", "0.52956027", "0.5293358", "0.52889305", "0.52889305", "0.52882314", "0.52870977", "0.5286891", "0.5281992", "0.5281242", "0.52787673", "0.5277486", "0.52706254", "0.52673346", "0.5263174", "0.5260454", "0.52599376", "0.5254662", "0.5253114", "0.52490544", "0.52407295", "0.5231647", "0.52294046", "0.52281636", "0.5227178", "0.5227178", "0.5227178", "0.52260184", "0.5224974", "0.52183783" ]
0.0
-1
for AICC import by cliff, 2001/4/19
public void updAiccLongText(Connection con, String mod_import_xml, String mod_core_vendor, String mod_desc, String mod_web_launch) throws qdbException { try { /* commented for using the new update function for clob (2002.04.22 kawai) // update mod_import_xml PreparedStatement stmt = con.prepareStatement( " UPDATE Module SET mod_import_xml= " + cwSQL.getClobNull(con) + " WHERE mod_res_id = ? "); stmt.setLong(1, mod_res_id); stmt.executeUpdate(); stmt.close(); stmt = con.prepareStatement( " SELECT mod_import_xml FROM Module " + " WHERE mod_res_id = ? FOR UPDATE " ,ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_UPDATABLE ); stmt.setLong(1, mod_res_id); ResultSet rs = stmt.executeQuery(); if (rs.next()) { cwSQL.setClobValue(con, rs, "mod_import_xml", mod_import_xml); rs.updateRow(); } stmt.close(); // update mod_core_vendor stmt = con.prepareStatement( " UPDATE Module SET mod_core_vendor= " + cwSQL.getClobNull(con) + " WHERE mod_res_id = ? "); stmt.setLong(1, mod_res_id); stmt.executeUpdate(); stmt.close(); stmt = con.prepareStatement( " SELECT mod_core_vendor FROM Module " + " WHERE mod_res_id = ? FOR UPDATE " ,ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_UPDATABLE ); stmt.setLong(1, mod_res_id); rs = stmt.executeQuery(); if (rs.next()) { cwSQL.setClobValue(con, rs, "mod_core_vendor", mod_core_vendor); rs.updateRow(); } stmt.close(); */ //--- use new clob update method to update clob columns (2002.04.22 kawai) // construct the condition String condition = "mod_res_id = " + mod_res_id; // construct the column & value String[] columnName = new String[3]; String[] columnValue = new String[3]; columnName[0] = "mod_import_xml"; columnValue[0] = mod_import_xml; columnName[1] = "mod_core_vendor"; columnValue[1] = mod_core_vendor; columnName[2] = "mod_web_launch"; columnValue[2] = mod_web_launch; cwSQL.updateClobFields(con, "Module", columnName, columnValue, condition); // update res desc if(mod_desc != null && mod_desc.length() > RES_DESC_LENGTH) { mod_desc = mod_desc.substring(0,RES_DESC_LENGTH); } PreparedStatement stmt = null; try { stmt = con.prepareStatement( " UPDATE Resources SET res_desc = ? " + " WHERE res_id = ? "); stmt.setString(1, mod_desc); stmt.setLong(2, mod_res_id); stmt.executeUpdate(); } finally { if(stmt!=null) stmt.close(); } super.updateTimeStamp(con); } catch(SQLException e) { throw new qdbException("SQL Error: " + e.getMessage()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean updAiccAu(Connection con, String domain, loginProfile prof, String aicc_crs_filename, String aicc_cst_filename, String aicc_des_filename, String aicc_au_filename, String aicc_ort_filename)\n throws IOException, SQLException, qdbException, qdbErrMessage, cwSysMessage {\n//System.out.println(\"mod_in_eff_start_datetime:\" + mod_in_eff_start_datetime);\n//System.out.println(\"mod_in_eff_end_datetime:\" + mod_in_eff_end_datetime);\n//System.out.println(\"mod_max_score:\" + mod_max_score);\n//System.out.println(\"res_subtype:\" + res_subtype);\n//System.out.println(\"res_src_type:\" + res_src_type);\n//System.out.println(\"res_src_link:\" + res_src_link);\n // only used for calling aicc methods\n dbCourse dbCos = new dbCourse();\n dbCos.cos_res_id = getCosId(con, mod_res_id);\n\n try {\n String mod_import_xml = null;\n\n Vector vtCosDescriptor = null;\n Vector vtCosStructure = null;\n Vector vtObjectiveRelation = null;\n\n Vector vtTemp = null;\n\n crsIniFile iniFileCRS = null;\n try {\n iniFileCRS = new crsIniFile(aicc_crs_filename);\n } catch(IOException e) {\n \tCommonLog.error(\"Error in loading the iniFileCRS:\" + e.toString());\n throw new IOException(e.toString());\n }\n\n vtCosDescriptor = dbCos.buildCosDescriptorVector(aicc_des_filename);\n vtCosStructure = dbCos.getCosStructureVector(aicc_cst_filename);\n if (aicc_ort_filename != null) {\n vtObjectiveRelation = dbCos.getCosObjectiveVector(aicc_ort_filename);\n }\n Hashtable htBlockElements = dbCos.buildAiccBlockElements(dbCos.getMemberRelationLst(aicc_cst_filename));\n\n Hashtable htAuModID = new Hashtable();\n Hashtable htObjObjID = new Hashtable();\n\n BufferedReader in = null;\n try {\n in = new BufferedReader(new InputStreamReader(new FileInputStream(new File(aicc_au_filename))));\n } catch(Exception e) {\n throw new IOException(e.toString());\n }\n String line = null;\n String systemID = null;\n String type = null;\n String command_line = null;\n String file_name = null;\n String max_score = null;\n String mastery_score = null;\n String max_time_allowed = null;\n String time_limit_action = null;\n String system_vendor = null;\n String core_vendor = null;\n String web_launch = null;\n String au_password = null;\n\n String tempStr = null;\n\n Hashtable htAuFieldOrder = null;\n Hashtable htAuFieldValue = null;\n\n StringTokenizer st = null;\n // the first line is used to determine the field order\n for (;;) {\n try {\n line = in.readLine();\n } catch(Exception e) {\n throw new IOException(e.toString());\n }\n if (line == null) {\n break;\n }\n else if (line.trim().length() > 0 && line.trim().equalsIgnoreCase(\"\") == false) {\n htAuFieldOrder = new Hashtable();\n\n int index = 1;\n\n Vector vtRecord = dbCos.buildTableRecord(line);\n String recordElement = null;\n for (int i=0; i<vtRecord.size(); i++) {\n recordElement = (String)vtRecord.elementAt(i);\n htAuFieldOrder.put(recordElement.toLowerCase(), new Integer(index));\n index++;\n }\n\n break;\n }\n }\n\n //actually there should be only one AU record in the .au file for skillsoft course\n for (;;) {\n String mod_desc = null;\n\n try {\n line = in.readLine();\n } catch(Exception e) {\n throw new IOException(e.toString());\n }\n if (line == null) {\n break;\n }\n else if (line.trim().length() == 0 || line.trim().equalsIgnoreCase(\"\") == true) {\n continue;\n }\n else {\n htAuFieldValue = new Hashtable();\n\n int index = 1;\n\n Vector vtRecord = dbCos.buildTableRecord(line);\n String recordElement = null;\n for (int i=0; i<vtRecord.size(); i++) {\n recordElement = (String)vtRecord.elementAt(i);\n htAuFieldValue.put(new Integer(index), recordElement);\n index++;\n }\n\n Integer fieldIndex = null;\n\n fieldIndex = (Integer)htAuFieldOrder.get(\"system_id\");\n systemID = (String)htAuFieldValue.get(fieldIndex);\n\n fieldIndex = (Integer)htAuFieldOrder.get(\"type\");\n type = (String)htAuFieldValue.get(fieldIndex);\n\n fieldIndex = (Integer)htAuFieldOrder.get(\"command_line\");\n command_line = (String)htAuFieldValue.get(fieldIndex);\n\n fieldIndex = (Integer)htAuFieldOrder.get(\"file_name\");\n file_name = (String)htAuFieldValue.get(fieldIndex);\n\n fieldIndex = (Integer)htAuFieldOrder.get(\"max_score\");\n max_score = (String)htAuFieldValue.get(fieldIndex);\n\n fieldIndex = (Integer)htAuFieldOrder.get(\"mastery_score\");\n mastery_score = (String)htAuFieldValue.get(fieldIndex);\n\n fieldIndex = (Integer)htAuFieldOrder.get(\"max_time_allowed\");\n max_time_allowed = (String)htAuFieldValue.get(fieldIndex);\n\n fieldIndex = (Integer)htAuFieldOrder.get(\"time_limit_action\");\n time_limit_action = (String)htAuFieldValue.get(fieldIndex);\n\n fieldIndex = (Integer)htAuFieldOrder.get(\"system_vendor\");\n system_vendor = (String)htAuFieldValue.get(fieldIndex);\n\n fieldIndex = (Integer)htAuFieldOrder.get(\"core_vendor\");\n core_vendor = (String)htAuFieldValue.get(fieldIndex);\n\n fieldIndex = (Integer)htAuFieldOrder.get(\"web_launch\");\n web_launch = (String)htAuFieldValue.get(fieldIndex);\n\n fieldIndex = (Integer)htAuFieldOrder.get(\"au_password\");\n au_password = (String)htAuFieldValue.get(fieldIndex);\n\n vtTemp = null;\n for (int i=0; i<vtCosDescriptor.size(); i++) {\n vtTemp = (Vector)vtCosDescriptor.elementAt(i);\n if (systemID.equalsIgnoreCase((String)vtTemp.elementAt(0)) == true) {\n break;\n }\n else {\n vtTemp = null;\n }\n }\n\n mod_import_xml = \"<assignable_unit system_id=\\\"\";\n mod_import_xml += dbUtils.esc4XML(systemID);\n mod_import_xml += \"\\\" type=\\\"\";\n mod_import_xml += dbUtils.esc4XML(type);\n mod_import_xml += \"\\\" command_line=\\\"\";\n mod_import_xml += dbUtils.esc4XML(command_line);\n mod_import_xml += \"\\\" file_name=\\\"\";\n mod_import_xml += dbUtils.esc4XML(file_name);\n mod_import_xml += \"\\\" max_score=\\\"\";\n mod_import_xml += dbUtils.esc4XML(max_score);\n mod_import_xml += \"\\\" mastery_score=\\\"\";\n mod_import_xml += dbUtils.esc4XML(mastery_score);\n mod_import_xml += \"\\\" max_time_allowed=\\\"\";\n mod_import_xml += dbUtils.esc4XML(max_time_allowed);\n mod_import_xml += \"\\\" time_limit_action=\\\"\";\n mod_import_xml += dbUtils.esc4XML(time_limit_action);\n mod_import_xml += \"\\\" system_vendor=\\\"\";\n mod_import_xml += dbUtils.esc4XML(system_vendor);\n mod_import_xml += \"\\\" core_vendor=\\\"\";\n mod_import_xml += dbUtils.esc4XML(core_vendor);\n mod_import_xml += \"\\\" web_launch=\\\"\";\n mod_import_xml += web_launch;\n mod_import_xml += \"\\\" au_password=\\\"\";\n mod_import_xml += au_password;\n\n mod_import_xml += \"\\\" />\";\n\n if (max_score.length() > 0) {\n mod_max_score = Float.parseFloat(max_score);;\n }\n else {\n }\n\n if (mastery_score.length() > 0) {\n mod_pass_score = Float.parseFloat(mastery_score);\n }\n else {\n }\n\n if (max_time_allowed.equalsIgnoreCase(\"\") == true || max_time_allowed.length() == 0) {\n }\n else {\n int hr = 0;\n int min = 0;\n int sec = 0;\n String strTime = null;\n StringTokenizer stTime = new StringTokenizer(max_time_allowed,\":\");\n\n strTime = stTime.nextToken();\n strTime = strTime.trim();\n hr = Integer.parseInt(strTime);\n\n strTime = stTime.nextToken();\n strTime = strTime.trim();\n min = Integer.parseInt(strTime);\n\n strTime = stTime.nextToken();\n strTime = strTime.trim();\n sec = Integer.parseInt(strTime);\n\n res_duration = hr*60 + min + sec/60;\n }\n\n res_type = \"MOD\";\n// res_lan = \"ISO-8859-1\";\n res_subtype = \"AICC_AU\";\n res_src_type = \"AICC_FILES\";\n res_src_link = file_name;\n// mod_in_eff_end_datetime = Timestamp.valueOf(dbUtils.MAX_TIMESTAMP);\n// mod_in_eff_start_datetime = Timestamp.valueOf(dbUtils.MIN_TIMESTAMP);\n\n // truncate the length of the description\n //if (res_desc.length() > 200) {\n //res_desc = res_desc.substring(0, 200);\n //}\n\n upd(con, prof);\n updAicc(con, prof, core_vendor, au_password, mod_import_xml, time_limit_action, web_launch, iniFileCRS.getValue(\"Course_Creator\"), res_desc, iniFileCRS.getValue(\"Version\"));\n\n htAuModID.put(systemID, new Long(mod_res_id));\n }\n\n }\n\n in.close();\n\n Vector vtElement = null;\n\n // input AICC objectives into DB\n for (int i=0; i<vtCosDescriptor.size(); i++) {\n String objSystemID = null;\n String objDeveloperID = null;\n String objTitle = null;\n String objDesc = null;\n dbObjective dbObj = null;\n\n vtElement = (Vector)vtCosDescriptor.elementAt(i);\n objSystemID = (String)vtElement.elementAt(0);\n if (objSystemID.toLowerCase().startsWith(\"j\") == true) {\n objDeveloperID = (String)vtElement.elementAt(1);\n objTitle = (String)vtElement.elementAt(2);\n objDesc = (String)vtElement.elementAt(3);\n\n dbObj = new dbObjective();\n dbObj.obj_type = \"AICC\";\n dbObj.obj_desc = dbCos.trimObjDesc(dbUtils.esc4XML(objDesc));\n dbObj.obj_title = objTitle;\n dbObj.obj_developer_id = objDeveloperID;\n dbObj.obj_import_xml = \"<objective developer_id=\\\"\";\n dbObj.obj_import_xml += objDeveloperID;\n dbObj.obj_import_xml += \"\\\" />\";\n int obj_id = (int)dbObj.insAicc(con, prof);\n htObjObjID.put(objSystemID, new Integer(obj_id));\n }\n }\n\n if (vtObjectiveRelation != null) {\n vtElement = null;\n for (int i=0; i<vtObjectiveRelation.size(); i++) {\n vtElement = (Vector)vtObjectiveRelation.elementAt(i);\n String parentSystemID = (String)vtElement.elementAt(0);\n\n Vector vtObjID = new Vector();\n String childSystemID = null;\n for (int j=1; j<vtElement.size(); j++) {\n childSystemID = (String)vtElement.elementAt(j);\n vtObjID.addElement((Integer)htObjObjID.get(childSystemID));\n }\n\n long[] intObjID = new long[vtObjID.size()];\n for (int k=0; k<vtObjID.size(); k++) {\n intObjID[k] = ((Integer) vtObjID.elementAt(k)).longValue();\n }\n\n long[] int_parent_mod_id_lst = null;\n if (parentSystemID.startsWith(\"A\") == true || parentSystemID.startsWith(\"a\") == true) {\n int_parent_mod_id_lst = new long[] { ((Long)htAuModID.get(parentSystemID)).longValue() };\n }\n // collect all AU's mod_id in that AICC Block\n else if (parentSystemID.startsWith(\"B\") == true || parentSystemID.startsWith(\"b\") == true) {\n Vector vtBlockElements = (Vector)htBlockElements.get(parentSystemID);\n int_parent_mod_id_lst = new long[vtBlockElements.size()];\n String tempSystemID = null;\n for (int m=0; m<vtBlockElements.size(); m++) {\n tempSystemID = (String)vtBlockElements.elementAt(m);\n int_parent_mod_id_lst[m] = ((Long)htAuModID.get(tempSystemID)).longValue();\n }\n }\n dbResourceObjective dbResObj = new dbResourceObjective();\n // remove the previous objective relations\n dbResObj.removeResObj(con, int_parent_mod_id_lst);\n // add new objective relations\n dbResObj.insResObj(con, int_parent_mod_id_lst, intObjID);\n\n }\n }\n\n // update the cos corresponding fields, or reset the fields that is previously set\n // during importing an AICC course which should be reset when inserting/updating an AICC AU\n dbCos.updAiccCos(con, prof, null, null, null, -1, false, false);\n\n return true;\n\n } catch(qdbErrMessage e) {\n // rollback at qdbAction\n //con.rollback();\n throw new qdbErrMessage(e.toString());\n }\n }", "public INTF_Itau_CMX_Import() {\r\n\t\tsuper();\r\n\t}", "@Override\n public void iCGAbsAc(int icgAbsAc, int timestamp) {\n }", "static void aci_data_with_acc(String passed){\n\t\tint sum = hexa_to_deci(registers.get('A'));\n\t\tsum+=(CS?1:0);\n\t\tsum+=hexa_to_deci(passed.substring(4));\n\t\tCS = sum>255?true:false;\n\t\tregisters.put('A',decimel_to_hexa_8bit(sum));\n\t\tmodify_status(registers.get('A'));\n\t}", "private USI_ADRC() {}", "public static void readAcu() throws IOException, ClassNotFoundException, SQLException\n\t{\n\tString line;\n\tFile worksheet = new File(\"/Users/sturtevantauto/Pictures/Car_Pictures/XPS/6715329.acu\");\n\t\tBufferedReader reader = new BufferedReader(new FileReader(worksheet));\n\t\tint i = 1;\n\t\tString namebegin = null;\n\t\tboolean sw = false;\n\t\tint linebegin = 0;\n\t\twhile ((line = reader.readLine()) != null)\n\t\t{\n\t\t\tif(line.contains(\"-\"))\n\t\t\t{\n\t\t\t\tString[] lines = line.split(\"-\");\n\t\t\t\tif(Character.isDigit(lines[0].charAt((lines[0].length() - 1))))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tString[] endlines = lines[1].split(\" \");\n\t\t\t\t\t\t\tendlines[0] = endlines[0].trim();\n\t\t\t\t\t\t\tint partnum = Integer.parseInt(lines[0].substring((lines[0].length() - 3), lines[0].length()));\n\t\t\t\t\t\t\tString partend = endlines[0];\n\t\t\t\t\t\t\t//System.out.println(findLine(DATReader.findPartName(partnum)));\n\t\t\t\t\t\t\tString name = DATReader.findPartName(partnum);\n\t\t\t\t\t\t\tif(!name.equals(namebegin))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tnamebegin = name;\n\t\t\t\t\t\t\tsw = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(sw)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tsw = false;\n\t\t\t\t\t\t\tlinebegin = findLine(name);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString[] linetext = findText(linebegin, i, name);\n\t\t\t\t\t\t\tint q = 1;\n\t\t\t\t\t\t\tfor(String print : linetext)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(print != null)\n\t\t\t\t\t\t\t\t{ \n\t\t\t\t\t\t\t\tprint = print.replace(\".\", \"\");\n\t\t\t\t\t\t\t\tSystem.out.println(q + \": \" + print);\n\t\t\t\t\t\t\t\tq++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tlinebegin = i;\n\t\t\t\t\t\t\t//System.out.println(partnum + \"-\" + partend);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t}\n\t\t\ti++;\n\t }\n\t\treader.close();\n\n\t}", "public static ICC_Profile getICC_Profile(String fileName) throws IOException {\n/* 143 */ synchronized (ICC_Profile.class) {\n/* 144 */ return ICC_Profile.getInstance(fileName);\n/* */ } \n/* */ }", "public static ICC_Profile getICC_Profile(byte[] data) {\n/* 96 */ synchronized (ICC_Profile.class) {\n/* 97 */ return ICC_Profile.getInstance(data);\n/* */ } \n/* */ }", "static void adi_data_with_acc(String passed){\n\t\tint sum = hexa_to_deci(registers.get('A'));\n\t\tsum+=hexa_to_deci(passed.substring(4));\n\t\tCS = sum>255?true:false;\n\t\tregisters.put('A',decimel_to_hexa_8bit(sum));\n\t\tmodify_status(registers.get('A'));\n\t}", "public MusicSheet loadAlcFile(String alcFilePath) {\n\t\tMusicSheet sheet = null;\n\t\tMusicSlice slice = null;\n\t\t\n\t\tString headerLine = null;\n\t\tString countLine = null;\n\t\tint noteCount = -1;\n\t\tint noteLinesReadIn = 0;\n\t\tint duplicatesCaught = 0;\n\n\t\tint prevStartTime = -1;\n\t\tStringTokenizer st;\n\t\t\n\t\tint currStartTime;\n\t\tdouble compareValue;\n\t\tint noteDuration;\n\t\t\n\t\t// TODO While I removed rest instructions from legacy .alc files a while ago, and regenerated those .alc files that had rests,\n\t\t// I guess it still bugs me that someone could manually add rests back in, and that may throw off stuff like the StatsGenerator's values or how many fingers could be needed (even though rests aren't \"hit\").\n\t\t// Should we throw an error or exception if we see a rest compare value when attempting to load an .alc file?\n\t\t// Should we try to fix it here (by erasing it and decrementing the note counter in the file), or is that too invasive, since a method called >load shouldn't be >overwriting the existing file.\n\t\t// The AlcAlterer cleans up rests already, so I'd rather not duplicate any cleanup code here anyway. Erroring out and saying when the rest is, allows the user to manually decrement the counter by 1 and delete the line.\n\t\t// If there are tons of rests, the AlcAlterer would trivially clean it up programmatically.\n\t\t// The AlcAlterer relies on first doing importAlcFileWithPlaceholders() anyway, as in, it expects there could be rests for it to ignore.\n\t\t// I don't know, just some thoughts.\n\t\t\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(new File(alcFilePath)));\n\t\t\twhile (br.ready()) {\n\t\t\t\tString line = br.readLine();\n\t\t\t\t\n\t\t\t\tif (headerLine == null) {\n\t\t\t\t\t// first line is informational only\n\t\t\t\t\theaderLine = line;\n\t\t\t\t}\n\t\t\t\telse if (countLine == null) {\n\t\t\t\t\t// second line is an integrity check line - it holds the count of notes (the number of following lines) in the song\n\t\t\t\t\tcountLine = line;\n\t\t\t\t\tnoteCount = Integer.parseInt(countLine); // if this fails, we throw an exception and return a null MusicSheet. Checking for nullness is how we determine if a file loaded successfully.\n\t\t\t\t\tsheet = new MusicSheet(headerLine, noteCount);\n\t\t\t\t} else {\n\t\t\t\t\t// all lines after the first 2 contain note information.\n\t\t\t\t\t// if there are not enough tokens in a line, or bad data (such as non-numeric characters), an exception will be thrown and the load aborted.\n\t\t\t\t\tst = new StringTokenizer(line);\n\t\t\t\t\tcurrStartTime = Integer.parseInt(st.nextToken());\n\t\t\t\t\tcompareValue = Double.parseDouble(st.nextToken());\n\t\t\t\t\tnoteDuration = Integer.parseInt(st.nextToken());\n\n\t\t\t\t\tMusicNote note = new MusicNote(compareValue, noteDuration);\n\t\t\t\t\t\n\t\t\t\t\tif (slice == null) {\n\t\t\t\t\t\tslice = new MusicSlice(currStartTime);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// initializing prevStartTime if it hasn't already.\n\t\t\t\t\t// we initialize here, so the first line in an .alc file doesn't HAVE to start on a 0.\n\t\t\t\t\tif (prevStartTime == -1) {\n\t\t\t\t\t\tprevStartTime = currStartTime;\n\t\t\t\t\t}\n\n\t\t\t\t\t// if the currStartTime is greater than prevStartTime, this means we're in a new time slice.\n\t\t\t\t\t// we need to add the old slice to the music sheet object and construct a new slice to put this music note into.\n\t\t\t\t\t// otherwise, the start times are the same, so just add it to the existing slice.\n\t\t\t\t\tif (prevStartTime != currStartTime) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t// data integrity check: if the current line's start time occurs EARLIER than the previous line's, then we have bad data, most likely due to hand-editing of the file.\n\t\t\t\t\t\tif (prevStartTime > currStartTime) {\n\t\t\t\t\t\t\tSystem.out.println(\"AlcReader#loadAlcFile - error - note data is out of order. Aborting load. Confirm - prevStartTime: \" + prevStartTime + \", currStartTime: \" + currStartTime);\n\t\t\t\t\t\t\tsheet = null;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tsheet.addSlice(slice);\n\t\t\t\t\t\tslice = new MusicSlice(currStartTime);\n\t\t\t\t\t\tslice.addMusicNote(note);\n\t\t\t\t\t\tprevStartTime = currStartTime;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// if we fail to add a note (such as a duplicate), then we need to decrement the valid note count\n\t\t\t\t\t\tif (!slice.addMusicNote(note)) {\n\t\t\t\t\t\t\t--noteCount;\n\t\t\t\t\t\t\t++duplicatesCaught;\n\t\t\t\t\t\t\tsheet.setNoteCount(noteCount);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// counter for our file integrity check\n\t\t\t\t\t++noteLinesReadIn;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (sheet != null) {\n\t\t\t\tsheet.addSlice(slice); // this is necessary because the newest slice hasn't been added to the musicsheet yet, due to how the while-loop handles old/new slices.\n\t\t\t}\n\t\t\tbr.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"AlcReader#loadAlcFile - error - exception occurred while reading .alc file at path: [\" + alcFilePath + \"]. Exception: \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\tsheet = null; // just ensuring we return null on an exception, although depending on when the failure occurred, it may have still been null.\n\t\t}\n\n\t\tif (headerLine == null || countLine == null) { // if the file was incomplete (only 1 or 2 lines in length), then there isn't enough data to play a song\n\t\t\tSystem.out.println(\"AlcReader#loadAlcFile - error - .alc file did not have at least 3 lines (1 informational, 1 counter, at least 1 note). File is too small to process.\");\n\t\t\tsheet = null; // the object may not be null if the file was 2 lines long, so this ensures we return null\n\t\t} else if (noteCount != (noteLinesReadIn-duplicatesCaught)) { // if we fail the integrity check, report an error and return a null object\n\t\t\tSystem.out.println(\"AlcReader#loadAlcFile - error - .alc file failed the file integrity check. The number of notes read in does not match the expected note count.\" +\n\t\t\t\t\t\t \" Read in: \" + noteLinesReadIn + \", Expected: \" + noteCount);\n\t\t\tsheet = null;\n\t\t} else if (noteCount == 0) { // if there was a note count of 0, then it is an (intentionally?) empty alc file\n\t\t\tSystem.out.println(\"AlcReader#loadAlcFile - error - .alc file had a value of 0 in the note count line. File integrity can't be validated. File will not be processed.\");\n\t\t\tsheet = null;\n\t\t} else if (noteLinesReadIn == 0) { // if there were no notes read in, we can't play a song. Although I don't think this conditional is capable of being hit.\n\t\t\tSystem.out.println(\"AlcReader#loadAlcFile - error - .alc file contains 0 note lines. File will not be processed.\");\n\t\t\tsheet = null;\n\t\t}\n\n\t\treturn sheet;\n\t}", "public void codifRLC()\n\t{\n\t\tList<Integer> result= new ArrayList<Integer>();\n\t\tint rgb=0;\n\t\tColor color;\n\t\tint r=0;\n\t\tint ant=-1;\n\t\tint acum=0;\n\t\tfor(int i=this.inicalto;i<=this.alto;i++) {\n\t\t\tfor(int j=this.inicancho;j<=this.ancho;j++)\n\t\t\t{\n\t\t\t\trgb = this.img.getRGB(j, i);\n\t\t\t\tcolor = new Color(rgb, true);\n\t\t\t\tr = color.getRed();\n\t\t\t\t\tif(ant==-1) {\n\t\t\t\t\t\tant=r;\n\t\t\t\t\t\tacum=1;\n\t\t\t\t\t}\n\t\t\t\t\t\tif(r==ant && acum<256)\n\t\t\t\t\t\t\tacum++;\n\t\t\t\t\t\t\tif(r!=ant){\n\t\t\t\t\t\t\t\tresult.add(ant);\n\t\t\t\t\t\t\t\tresult.add(acum);\n\t\t\t\t\t\t\t\tacum=1;\n\t\t\t\t\t\t\t\tant=r;\n\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif(acum==255){\n\t\t\t\t\t\t\t\t\tresult.add(ant);\n\t\t\t\t\t\t\t\t\tresult.add(acum);\n\t\t\t\t\t\t\t\t\tacum=1;\n\t\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\tresult.add(ant);\n\t\tresult.add(acum);\n\t\t\n\t\tthis.CR=new CabeceraRLC(this.inicancho,this.inicalto,this.ancho,this.alto,img.TYPE_INT_RGB);\n\t\tthis.codResultRLC=result;\n\t\tthis.generarArchivoRLC(result);\n\t}", "public interface C0136c {\n }", "public void onGetIccidDone(AsyncResultEx ar, Integer index) {\n if (ar == null || ar.getException() != null) {\n logd(\"get iccid exception, maybe card is absent. set iccid as \\\"\\\"\");\n mChipCommon.mIccIds[index.intValue()] = BuildConfig.FLAVOR;\n return;\n }\n byte[] data = (byte[]) ar.getResult();\n String iccid = HwIccUtils.bcdIccidToString(data, 0, data.length);\n if (TextUtils.isEmpty(iccid) || 7 > iccid.length()) {\n logd(\"iccId is invalid, set it as \\\"\\\" \");\n mChipCommon.mIccIds[index.intValue()] = BuildConfig.FLAVOR;\n } else {\n mChipCommon.mIccIds[index.intValue()] = iccid.substring(0, 7);\n }\n logd(\"get iccid is \" + SubscriptionInfoEx.givePrintableIccid(mChipCommon.mIccIds[index.intValue()]) + \" on index \" + index);\n }", "public static ICC_Profile getICC_Profile(InputStream in) throws IOException {\n/* 126 */ synchronized (ICC_Profile.class) {\n/* 127 */ return ICC_Profile.getInstance(in);\n/* */ } \n/* */ }", "public interface C0385a {\n }", "void mo54416a(C20211ac acVar);", "@SuppressWarnings(\"unchecked\")\r\n private void makeIntensityProfiles() {\r\n\r\n // find the center of mass of the single label object in the sliceBuffer (abdomenImage)\r\n findAbdomenCM();\r\n int xcm = centerOfMass[0];\r\n int ycm = centerOfMass[1];\r\n \r\n // There should be only one VOI\r\n VOIVector vois = abdomenImage.getVOIs();\r\n VOI theVOI = vois.get(0);\r\n\r\n // there should be only one curve corresponding to the external abdomen boundary\r\n VOIContour curve = ((VOIContour)theVOI.getCurves().get(0));\r\n int[] xVals;\r\n int[] yVals;\r\n int[] zVals;\r\n try {\r\n xVals = new int [curve.size()];\r\n yVals = new int [curve.size()];\r\n zVals = new int [curve.size()];\r\n } catch (OutOfMemoryError error) {\r\n System.gc();\r\n MipavUtil.displayError(\"makeIntensityProfiles(): Can NOT allocate the abdomen VOI arrays\");\r\n return;\r\n }\r\n curve.exportArrays(xVals, yVals, zVals);\r\n \r\n // one intensity profile for each radial line. Each radial line is 3 degrees and\r\n // there are 360 degrees in a circle\r\n try {\r\n intensityProfiles = new ArrayList[360 /angularResolution];\r\n xProfileLocs = new ArrayList[360 / angularResolution];\r\n yProfileLocs = new ArrayList[360 / angularResolution];\r\n } catch (OutOfMemoryError error) {\r\n System.gc();\r\n MipavUtil.displayError(\"makeIntensityProfiles(): Can NOT allocate profile arrays\");\r\n return;\r\n }\r\n \r\n // load the srcImage into the slice buffer (it has the segmented abdomen image in it now)\r\n try {\r\n srcImage.exportData(0, sliceSize, sliceBuffer);\r\n } catch (IOException ex) {\r\n System.err.println(\"JCATsegmentAbdomen2D(): Error exporting data\");\r\n return;\r\n }\r\n\r\n double angleRad;\r\n int count;\r\n int contourPointIdx = 0;\r\n for (int angle = 0; angle < 360; angle += angularResolution) {\r\n count = 0;\r\n int x = xcm;\r\n int y = ycm;\r\n int yOffset = y * xDim;\r\n double scaleFactor; // reduces the number of trig operations that must be performed\r\n \r\n // allocate the ArrayLists for each radial line\r\n try {\r\n intensityProfiles[contourPointIdx] = new ArrayList<Short>();\r\n xProfileLocs[contourPointIdx] = new ArrayList<Integer>();\r\n yProfileLocs[contourPointIdx] = new ArrayList<Integer>();\r\n } catch (OutOfMemoryError error) {\r\n System.gc();\r\n MipavUtil.displayError(\"makeIntensityProfiles(): Can NOT allocate profile list: \" +contourPointIdx);\r\n return;\r\n }\r\n \r\n angleRad = Math.PI * angle / 180.0;\r\n if (angle > 315 || angle <= 45) {\r\n // increment x each step\r\n scaleFactor = Math.tan(angleRad);\r\n while (x < xVals[contourPointIdx]) {\r\n // store the intensity and location of each point along the radial line\r\n intensityProfiles[contourPointIdx].add((short)sliceBuffer[yOffset + x]);\r\n xProfileLocs[contourPointIdx].add(x);\r\n yProfileLocs[contourPointIdx].add(y);\r\n count++;\r\n \r\n // walk out in x and compute the value of y for the given radial line\r\n x++;\r\n y = ycm - (int)((x - xcm) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n \r\n } else if (angle > 45 && angle <= 135) {\r\n // decrement y each step\r\n scaleFactor = (Math.tan((Math.PI / 2.0) - angleRad));\r\n while (y > yVals[contourPointIdx]) {\r\n // store the intensity and location of each point along the radial line\r\n intensityProfiles[contourPointIdx].add((short)sliceBuffer[yOffset + x]);\r\n xProfileLocs[contourPointIdx].add(x);\r\n yProfileLocs[contourPointIdx].add(y);\r\n count++;\r\n \r\n // walk to the top of the image and compute values of x for the given radial line\r\n y--;\r\n x = xcm + (int)((ycm - y) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n \r\n } else if (angle > 135 && angle <= 225) {\r\n // decrement x each step\r\n scaleFactor = Math.tan(Math.PI - angleRad);\r\n while (x > xVals[contourPointIdx]) {\r\n // store the intensity and location of each point along the radial line\r\n intensityProfiles[contourPointIdx].add((short)sliceBuffer[yOffset + x]);\r\n xProfileLocs[contourPointIdx].add(x);\r\n yProfileLocs[contourPointIdx].add(y);\r\n count++;\r\n \r\n x--;\r\n y = ycm - (int)((xcm - x) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n\r\n } else if (angle > 225 && angle <= 315) {\r\n // increment y each step\r\n scaleFactor = Math.tan((3.0 * Math.PI / 2.0) - angleRad);\r\n while (y < yVals[contourPointIdx]) {\r\n // store the intensity and location of each point along the radial line\r\n intensityProfiles[contourPointIdx].add((short)sliceBuffer[yOffset + x]);\r\n xProfileLocs[contourPointIdx].add(x);\r\n yProfileLocs[contourPointIdx].add(y);\r\n count++;\r\n \r\n y++;\r\n x = xcm - (int)((y - ycm) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n }\r\n \r\n contourPointIdx++;\r\n } // end for (angle = 0; ...\r\n\r\n // intensityProfiles, xProfileLocs, and yProfileLocs are set, we can find the \r\n // internal boundary of the subcutaneous fat now\r\n }", "public abstract void mo90486a(C9515Ad ad);", "public interface C21597a {\n }", "void mo304a(C0366h c0366h);", "Base64Binary getCarrierAIDC();", "void mo21072c();", "public interface C32115a {\n}", "OurIFC createOurIFC();", "public static ICC_Profile getICC_Profile(int colorSpace) {\n/* 111 */ synchronized (ICC_Profile.class) {\n/* 112 */ return ICC_Profile.getInstance(colorSpace);\n/* */ } \n/* */ }", "static void cpi_with_acc(String passed){\n\t\tint val1 = hexa_to_deci(registers.get('A'));\n\t\tint val2 = hexa_to_deci(passed.substring(4));\n\t\tS = val1>=val2?false:true;\n\t\tval2 = 256-val2;\n\t\tval2%=256;\n\t\tval1+=val2;\n\t\tCS = val1>255?true:false;\n\t\tString b = Integer.toBinaryString(val1);\n\t\tint ones=0;\n\t\tfor(int i=0;i<b.length();i++)\n\t\t\tif(b.charAt(i)=='1')\n\t\t\t\tones++;\n\t\tZ = ones==0?true:false;\n\t\tP = ones%2==0?true:false;\n\t}", "private void readCNDA(SequentialReader reader) throws IOException {\r\n if (this.type.compareTo(\"CNDA\") == 0) {\r\n // From JpegMetadataReader\r\n JpegSegmentMetadataReader exifReader = new ExifReader();\r\n InputStream exifStream = new ByteArrayInputStream(reader.getBytes((int) this.size));\r\n Set<JpegSegmentType> segmentTypes = new HashSet<JpegSegmentType>();\r\n for (JpegSegmentType type : exifReader.getSegmentTypes()) {\r\n segmentTypes.add(type);\r\n }\r\n JpegSegmentData segmentData = null;\r\n try {\r\n segmentData = JpegSegmentReader.readSegments(new StreamReader(exifStream), segmentTypes);\r\n } catch (JpegProcessingException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n Metadata metadata = new Metadata();\r\n for (JpegSegmentType segmentType : exifReader.getSegmentTypes()) {\r\n exifReader.readJpegSegments(segmentData.getSegments(segmentType), metadata, segmentType);\r\n }\r\n\r\n Directory directory = metadata.getFirstDirectoryOfType(ExifIFD0Directory.class);\r\n for (Tag tag : directory.getTags()) {\r\n if (tag.getTagType() == ExifDirectoryBase.TAG_DATETIME) {\r\n dateTime = tag.getDescription();\r\n }\r\n }\r\n }\r\n\r\n }", "static void cma_with_acc(String passed){\n\t\tint val = hexa_to_deci(registers.get('A'));\n\t\tString bin = Integer.toBinaryString(val);\n\t\tfor(int i=bin.length();i<8;i++)\n\t\t\tbin = \"0\"+bin;\n\t\tval=0;\n\t\tfor(int i=7;i>=0;i--)\n\t\t\tif(bin.charAt(i)=='0')\n\t\t\t\tval+=(Math.pow(2,7-i));\n\t\tregisters.put('A',decimel_to_hexa_8bit(val));\n\t}", "void mo1931a(C2848p c2848p);", "void parse_ciff (int offset, int length)\n{\n int tboff, nrecs, c, type, len, save, wbi=-1;\n int key[] = new int[2];\n key[0] = 0x410;\n key[1] = 0x45f3;\n\n CTOJ.fseek (ifp, offset+length-4, CTOJ.SEEK_SET);\n tboff = get4() + offset;\n CTOJ.fseek (ifp, tboff, CTOJ.SEEK_SET);\n nrecs = get2();\n if (nrecs > 100) return;\n while (nrecs-- != 0) {\n type = get2();\n len = get4();\n save = CTOJ.ftell(ifp) + 4;\n CTOJ.fseek (ifp, offset+get4(), CTOJ.SEEK_SET);\n if ((((type >> 8) + 8) | 8) == 0x38)\n parse_ciff (CTOJ.ftell(ifp), len);\t/* Parse a sub-table */\n\n if (type == 0x0810)\n Uc.fread (artist, 64, 1, ifp);\n if (type == 0x080a) {\n Uc.fread (make, 64, 1, ifp);\n CTOJ.fseek (ifp, Uc.strlen(make) - 63, CTOJ.SEEK_CUR);\n Uc.fread (model, 64, 1, ifp);\n }\n if (type == 0x1810) {\n CTOJ.fseek (ifp, 12, CTOJ.SEEK_CUR);\n flip = get4();\n }\n if (type == 0x1835)\t\t\t/* Get the decoder table */\n tiff_compress = get4();\n if (type == 0x2007) {\n thumb_offset = CTOJ.ftell(ifp);\n thumb_length = len;\n }\n if (type == 0x1818) {\n get4();\n shutter = (float)Math.pow (2, -int_to_float((get4())));\n aperture = (float)Math.pow (2, int_to_float(get4())/2);\n }\n if (type == 0x102a) {\n get4();\n iso_speed = (float)Math.pow (2, (get2())/32.0 - 4) * 50;\n get2();\n aperture = (float)Math.pow (2, ((short)get2())/64.0);\n shutter = (float)Math.pow (2,-((short)get2())/32.0);\n get2();\n wbi = (get2());\n if (wbi > 17) wbi = 0;\n CTOJ.fseek (ifp, 32, CTOJ.SEEK_CUR);\n if (shutter > 1e6) shutter = (float)get2()/10.0f;\n }\n if (type == 0x102c) {\n if (get2() > 512) {\t\t/* Pro90, G1 */\n\tCTOJ.fseek (ifp, 118, CTOJ.SEEK_CUR);\n\tfor ( c=0; c<4;c++) cam_mul[c ^ 2] = get2();\n } else {\t\t\t\t/* G2, S30, S40 */\n\tCTOJ.fseek (ifp, 98, CTOJ.SEEK_CUR);\n\tfor ( c=0; c<4;c++) cam_mul[c ^ (c >> 1) ^ 1] = get2();\n }\n }\n if (type == 0x0032) {\n if (len == 768) {\t\t\t/* EOS D30 */\n\tCTOJ.fseek (ifp, 72, CTOJ.SEEK_CUR);\n\tfor ( c=0; c<4;c++) cam_mul[c ^ (c >> 1)] = 1024.0f / get2();\n\tif ( wbi==0 ) cam_mul[0] = -1;\t/* use my auto white balance */\n } else if ( cam_mul[0] == 0.0) {\n\tif (get2() == key[0]) {\t\t/* Pro1, G6, S60, S70 */\n CharPtr chaine = null;\n if (Uc.strstr(model,\"Pro1\") != null)\n\t chaine = new CharPtr(\"012346000000000000\");\n else\n chaine = new CharPtr(\"01345:000000006008\");\n c = chaine.charAt(wbi)-'0'+ 2;\n }\n\telse {\t\t\t\t/* G3, G5, S45, S50 */\n CharPtr chaine = new CharPtr(\"023457000000006000\");\n\t c = chaine.charAt(wbi)-'0';\n\t key[0] = key[1] = 0;\n\t}\n\tCTOJ.fseek (ifp, 78 + c*8, CTOJ.SEEK_CUR);\n\tfor ( c=0; c<4;c++) cam_mul[c ^ (c >> 1) ^ 1] = get2() ^ key[c & 1];\n\tif (wbi == 0) cam_mul[0] = -1;\n }\n }\n if (type == 0x10a9) {\t\t/* D60, 10D, 300D, and clones */\n if (len > 66) {\n CharPtr chaine = new CharPtr(\"0134567028\");\n wbi = chaine.charAt(wbi)-'0';\n }\n CTOJ.fseek (ifp, 2 + wbi*8, CTOJ.SEEK_CUR);\n for ( c=0; c<4;c++) cam_mul[c ^ (c >> 1)] = get2();\n }\n if (type == 0x1030 && (0x18040 >> wbi & 1) != 0)\n ciff_block_1030();\t\t/* all that don't have 0x10a9 */\n if (type == 0x1031) {\n get2();\n raw_width = (get2());\n raw_height = get2();\n }\n if (type == 0x5029) {\n focal_len = len >> 16;\n if ((len & 0xffff) == 2) focal_len /= 32;\n }\n if (type == 0x5813) flash_used = int_to_float(len);\n if (type == 0x5814) canon_ev = int_to_float(len);\n if (type == 0x5817) shot_order = len;\n if (type == 0x5834) unique_id = len;\n if (type == 0x580e) timestamp = len;\n if (type == 0x180e) timestamp = get4();\n /*\n#ifdef LOCALTIME\n if ((type | 0x4000) == 0x580e)\n timestamp = mktime (gmtime (&timestamp));\n#endif\n */\n CTOJ.fseek (ifp, save, CTOJ.SEEK_SET);\n }\n}", "private int[][][] readData(int startElement, int startLine, int endElement, int endLine) throws AreaFileException {\r\n// int[][][]myData = new int[numBands][dir[AD_NUMLINES]][dir[AD_NUMELEMS]];\r\n int numLines = endLine - startLine;\r\n int numEles = endElement - startElement;\r\n// System.out.println(\"linePrefixLength: \" + linePrefixLength);\r\n int[][][] myData = new int[numBands][numLines][numEles];\r\n \r\n if (! fileok) {\r\n throw new AreaFileException(\"Error reading AreaFile data\");\r\n }\r\n\r\n short shdata;\r\n int intdata;\r\n boolean isBrit = \r\n areaDirectory.getCalibrationType().equalsIgnoreCase(\"BRIT\"); \r\n long newPos = 0;\r\n\r\n for (int i = 0; i<numLines; i++) {\r\n newPos = datLoc + linePrefixLength + lineLength * (i + startLine) + startElement * dir[AD_DATAWIDTH];\r\n position = newPos;\r\n// System.out.println(position);\r\n try {\r\n af.seek(newPos);\r\n } catch (IOException e1) {\r\n e1.printStackTrace();\r\n }\r\n \r\n for (int k=0; k<numEles; k++) {\r\n for (int j = 0; j<numBands; j++) {\r\n try {\r\n if (dir[AD_DATAWIDTH] == 1) {\r\n myData[j][i][k] = (int)af.readByte();\r\n if (myData[j][i][k] < 0 && isBrit) {\r\n myData[j][i][k] += 256;\r\n } \r\n// position = position + 1;\r\n } else \r\n\r\n if (dir[AD_DATAWIDTH] == 2) {\r\n shdata = af.readShort();\r\n if (flipwords) {\r\n myData[j][i][k] = (int) ( ((shdata >> 8) & 0xff) | \r\n ((shdata << 8) & 0xff00) );\r\n } else {\r\n myData[j][i][k] = (int) (shdata);\r\n }\r\n// position = position + 2;\r\n } else \r\n\r\n if (dir[AD_DATAWIDTH] == 4) {\r\n intdata = af.readInt();\r\n if (flipwords) {\r\n myData[j][i][k] = ( (intdata >>> 24) & 0xff) | \r\n ( (intdata >>> 8) & 0xff00) | \r\n ( (intdata & 0xff) << 24 ) | \r\n ( (intdata & 0xff00) << 8);\r\n } else {\r\n myData[j][i][k] = intdata;\r\n }\r\n// position = position + 4;\r\n } \r\n } \r\n catch (IOException e) {\r\n myData[j][i][k] = 0;\r\n }\r\n }\r\n }\r\n }\r\n return myData;\r\n }", "public abstract void mo70709a(String str, C41018cm c41018cm);", "protected void inizializzazione2()\r\n\t\t\tthrows RestrizioniSpecException {\r\n\t\t\t// si preleva una lista che contiene tutti gli AttacDecl\r\n\t\t\t// che hanno idecl come interazione di input\r\n\t\t\tArchiAttachments archiAttachments = this.archiType.getTopologia().getAttachments();\r\n\t\t\t// list2 contiene i collegamenti in cui l'istanza che si sta considerando\r\n\t\t\t// risulta essere un'istanza di input\r\n\t\t\tList<AttacDecl> list2 = getAttacDeclsAEIInput(idecl.getName(), archiAttachments);\r\n\t\t\tattacsDeclInput = list2;\r\n\t\t\t// si prelevano i nomi degli AEIs di output\r\n\t\t\t// list3 contiene i nomi degli aei di output in cui l'aei attuale\r\n\t\t\t// risulta essere l'aei di input\r\n\t\t\tList<String> list3 = getAEIsOutputFromAttacDecls(list2);\r\n\t\t\t// si preleva una lista che contiene tutti gli AttacDecl\r\n\t\t\t// che hanno idecl come aei di output\r\n\t\t\tList<AttacDecl> list = getAttacDeclsAEIOutput(idecl.getName(), archiAttachments);\r\n\t\t\tattacsDeclOutput = list;\r\n\t\t\t// si prelevano i nomi degli AEIs di input tra i collegamenti in cui l'istanza considerata\r\n\t\t\t// risulta essere un AEI di output\r\n\t\t\tList<String> list5 = getAEIsInputFromAttacDecls(list);\r\n\t\t\tArchiElemInstances archiElemInstances = this.archiType.getTopologia().getAEIs();\r\n\t\t\t// si prelevano le dichiarazioni degli AEI di output collegati\r\n\t\t\tList<AEIdecl> list9 = getAEIsFromNames(list3, archiElemInstances);\r\n\t\t\tAEIsDeclInput = list9;\r\n\t\t\t// si prelevano le dichiarazioni degli AEI di input collegati\r\n\t\t\tList<AEIdecl> list10 = getAEIsFromNames(list5, archiElemInstances);\r\n\t\t\tAEIsDeclOutput = list10;\r\n\t\t\t// si restituiscono delle liste contenenti le equivalenze \r\n\t\t\t// corrispondeti agli ElemType di list9 e list10\r\n\t\t\tList<IEquivalenza> list7 = getEquivalenze(this.archiType, AEIsDeclInput);\r\n\t\t\tthis.equivalenzeInput = list7;\r\n\t\t\tList<IEquivalenza> list8 = getEquivalenze(this.archiType, AEIsDeclOutput);\r\n\t\t\tthis.equivalenzeOutput = list8;\r\n\t\t\t}", "protected void initFile(String id) throws FormatException, IOException {\n super.initFile(id);\n in = new RandomAccessInputStream(id);\n\n String endian = in.readString(2);\n boolean little = endian.equals(\"II\");\n in.order(little);\n\n in.seek(98);\n int seriesCount = in.readInt();\n\n in.seek(192);\n while (in.read() == 0);\n String description = in.readCString();\n addGlobalMeta(\"Description\", description);\n\n while (in.readInt() == 0);\n\n long fp = in.getFilePointer();\n if ((fp % 2) == 0) fp -= 4;\n else fp--;\n\n offsets = new long[seriesCount];\n core = new CoreMetadata[seriesCount];\n for (int i=0; i<seriesCount; i++) {\n in.seek(fp + i*256);\n core[i] = new CoreMetadata();\n core[i].littleEndian = little;\n core[i].sizeX = in.readInt();\n core[i].sizeY = in.readInt();\n int numBits = in.readInt();\n core[i].sizeC = in.readInt();\n core[i].sizeZ = in.readInt();\n core[i].sizeT = in.readInt();\n\n core[i].imageCount = core[i].sizeZ * core[i].sizeC * core[i].sizeT;\n int nBytes = numBits / 8;\n core[i].pixelType =\n FormatTools.pixelTypeFromBytes(nBytes, false, nBytes == 8);\n\n core[i].dimensionOrder = \"XYCZT\";\n core[i].rgb = false;\n\n in.skipBytes(4);\n\n long pointer = in.getFilePointer();\n String name = in.readCString();\n\n if (i == 0) {\n in.skipBytes((int) (92 - in.getFilePointer() + pointer));\n while (true) {\n int check = in.readInt();\n if (check > in.getFilePointer()) {\n offsets[i] = (long) check + LUT_SIZE;\n break;\n }\n in.skipBytes(92);\n }\n }\n else {\n offsets[i] = offsets[i - 1] + core[i - 1].sizeX * core[i - 1].sizeY *\n core[i - 1].imageCount *\n FormatTools.getBytesPerPixel(core[i - 1].pixelType);\n }\n offsets[i] += 352;\n in.seek(offsets[i]);\n while (in.getFilePointer() + 116 < in.length() && in.read() == 3 &&\n in.read() == 37)\n {\n in.skipBytes(114);\n offsets[i] = in.getFilePointer();\n }\n in.seek(in.getFilePointer() - 1);\n byte[] buf = new byte[3 * 1024 * 1024];\n int n = in.read(buf, 0, 1);\n boolean found = false;\n while (!found && in.getFilePointer() < in.length()) {\n n += in.read(buf, 1, buf.length - 1);\n for (int q=0; q<buf.length - 1; q++) {\n if ((buf[q] & 0xff) == 192 && (buf[q + 1] & 0xff) == 46) {\n offsets[i] = in.getFilePointer() - n + q;\n found = true;\n break;\n }\n }\n buf[0] = buf[buf.length - 1];\n n = 1;\n }\n if (found) offsets[i] += 16063;\n if (i == offsets.length - 1 && !compressed && i > 0) {\n offsets[i] = (int) (in.length() -\n (core[i].sizeX * core[i].sizeY * core[i].imageCount * (numBits / 8)));\n }\n }\n\n MetadataStore store = makeFilterMetadata();\n MetadataTools.populatePixels(store, this);\n MetadataTools.setDefaultCreationDate(store, id, 0);\n }", "static void ani_with_acc(String passed){\n\t\tint val1 = hexa_to_deci(registers.get('A'));\n\t\tint val2 = hexa_to_deci(passed.substring(4));\n\t\tval1 = val1&val2;\n\t\tregisters.put('A',decimel_to_hexa_8bit(val1));\n\t\tmodify_status(registers.get('A'));\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "public interface C0335c {\n }", "private static int[] internal16Readin(String name) {\n try {\n BufferedReader br = new BufferedReader(new InputStreamReader(FileUtils.getResourceInputStream(\"/luts/\" + name)));\n String strLine;\n\n int[] intArray = new int[65536];\n int counter = 0;\n while ((strLine = br.readLine()) != null) {\n\n String[] array = strLine.split(\" \");\n\n for (int i = 0; i < array.length; i++) {\n if (array[i].equals(\" \") || array[i].equals(\"\")) {\n\n } else {\n intArray[counter] = Integer.parseInt(array[i]);\n counter++;\n }\n }\n }\n br.close();\n return intArray;\n } catch (Exception e) {// Catch exception if any\n System.err.println(\"Error open internal color table \" + name);\n e.printStackTrace();\n return null;\n }\n }", "private void processAce ()\n{\n // Set the .ace input file name.\n ace_file.setFileName ( fileName );\n\n // Open the .ace input file.\n ace_file.openFile ();\n\n // Set the XML file name.\n xml_file.setFileName ( fileName + \".xml\" );\n\n // Open the XML file for writing.\n xml_file.open_XML_file ();\n\n // Write the XML file header.\n xml_file.write_XML_header ();\n\n // Process the .ace summary line.\n processSummary ();\n\n // Process the Phrap assembled contigs.\n processContigs ();\n\n // Complete the XML file.\n xml_file.write_XML_footer ();\n xml_file.close_XML ();\n\n // Close the .ace input file.\n ace_file.closeFile ();\n\n // Close the XML file.\n xml_file.closeFile ();\n}", "@Override\n public void combinedIMU(int ax, int ay, int az, int gx, int gy, int gz, int timestamp) {\n }", "C45321i mo90380a();", "public IntRAC() {\n\t\tcodebook = new ArrayList<int[]>();\n\t\tthis.threshold = 128;\n\t\tthis.nDims = -1;\n\t\tthis.totalSamples = 0;\n\t}", "public static void main(String[] args) {\n\t\t/*Tuple[] tuples = new Tuple[]{\n\t\t\tnew Tuple(\"0 0 1 0 0\", \"1 3\", ' '),\n\t\t\tnew Tuple(\"1 0 0 1 1\", \"1 2\", ' '),\n\t\t\tnew Tuple(\"0 0 0 1 1\", \"1 1\", ' '),\n\t\t\tnew Tuple(\"1 1 0 0 1\", \"2 1\", ' '),\n\t\t\tnew Tuple(\"1 1 0 0 1\", \"3 1\", ' '),\n\t\t\tnew Tuple(\"1 1 0 0 1\", \"3 2\", ' '),\n\t\t\tnew Tuple(\"0 0 0 1 0\", \"3 3\", ' '),\n\t\t\tnew Tuple(\"0 1 0 1 1\", \"2 3\", ' ')\n\t\t};\n\t\tdata = new DataSet(tuples);*/\n\t\t\n\t\t//data = Parser.parseAttributes(\"Corel5k-train.arff\", 374);\n\t\tdata = Parser.parseShortNotation(\"diabetes.txt\", 1, new NumericalItemSet(new int[]{}));\n\t\ts = data.s();\n\t\tn = data.getTuples().length;\n\t\tm = data.getTuples()[0].getClassValues().length;\n\t\t\n\t\t/*double u = 0;\n\t\tlong l = 0;\n\t\tfor(int j = 0; j < 10; j++) {\n\t\t\tdouble t = System.currentTimeMillis();\n\t\t\tfor(int i = 0; i < 10000; i++)\n\t\t\t\tu = data.getBluePrint().getOneItemSet(2, 48).ub();\n\t\t\tl += (System.currentTimeMillis() - t);\n\t\t}\n\t\tSystem.out.println(((double)l/10));*/\n\t\n\t\t\n\t\tSystem.out.println(\"Data loaded, \"+data.getTuples().length+\" tuples, \"+\n\t\t\t\tdata.getTuples()[0].getItemSet().getLength()+\" items, \"+\n\t\t\t\tdata.getTuples()[0].getClassValues().length+\" class values\");\n\t\t\t\t\n\t\tStopWatch.tic(\"Full time\");\n\t\tSystem.out.println(icc());\n\t\tStopWatch.printToc(\"Full time\");\n\t}", "@Override\n public void iCGDer(int icgAbsDer, int timestamp) {\n }", "C0058i mo68a();", "public interface C19588a {\n }", "static void perform_aci(String passed){\n\t\tint type = type_of_aci(passed);\n\t\tswitch(type){\n\t\tcase 1:\n\t\t\taci_data_with_acc(passed);\n\t\t\tbreak;\n\t\t}\n\t}", "@Test\n public void testTruncatedICCProfile() throws IOException {\n JPEGImageReader reader = createReader();\n reader.setInput(ImageIO.createImageInputStream(getClassLoaderResource(\"/jpeg/cmm-exception-invalid-icc-profile-data.jpg\")));\n\n assertEquals(1993, reader.getWidth(0));\n assertEquals(1038, reader.getHeight(0));\n\n ImageReadParam param = reader.getDefaultReadParam();\n param.setSourceRegion(new Rectangle(reader.getWidth(0), 8));\n BufferedImage image = reader.read(0, param);\n\n assertNotNull(image);\n assertEquals(1993, image.getWidth());\n assertEquals(8, image.getHeight());\n\n reader.dispose();\n }", "public void importFnaBitSequences(String filename, int start, int end) {\n\n int currentKID = -1;\n SuperString currentSeq = new SuperString();\n //String currentName = \"\";\n boolean ignore = true; //do not write empty sequence to database\n\n TimeTotals tt = new TimeTotals();\n tt.start();\n\n System.out.println(\"\\nFNA import begins \" + tt.toHMS() + \"\\n\");\n try (BufferedReader br = new BufferedReader(new FileReader(filename))) {\n\n for (String line; (line = br.readLine()) != null; ) {\n\n if (debug) {\n System.err.println(\"Single line:: \" + line);\n }\n\n // if blank line, it does not count as new sequence\n if (line.trim().length() == 0) {\n if (debug) System.err.println(\" :: blank line detected \");\n\n if (!ignore)\n if(currentKID >= start && currentSeq.length() > 0) {\n storeSequence(currentKID, currentSeq, tt);\n } else {\n sequenceLength.add(currentSeq.length());\n exceptionsArr.add(new HashMap<>());\n }\n\n else if (!ignore) {\n sequenceLength.add(currentSeq.length());\n exceptionsArr.add(new HashMap<>());\n }\n ignore = true;\n\n // if line starts with \">\", then it is start of a new reference sequence\n } else if (line.charAt(0) == '>') {\n if (debug) System.err.println(\" :: new entry detected \" + line);\n\n // save previous iteration to database\n if (!ignore && currentSeq.length() > 0) {\n storeSequence(currentKID, currentSeq, tt);\n } else if (!ignore) {\n sequenceLength.add(currentSeq.length());\n exceptionsArr.add(new HashMap<>());\n }\n // initialize next iteration\n if (indexOf(line.trim()) == -1) {\n //original.addAndTrim(new Kid(line.trim()));\n //addNewKidEntry(line);\n add(new Kid(line.trim()));\n if (getLast()==start || (getLast()== 1 && start == 1)){\n System.err.println(\"Found KID\\t\" + currentKID + \"\\tbit string import started\");\n }\n }\n\n currentKID = getKid(line.trim()); // original.indexOf(line.trim());\n if (currentKID == -1) {\n System.err.println(\"This sequence not found in database : \" + line);\n listEntries(0);\n exit(0);\n }\n //currentSeq = \"\";\n\n currentSeq = new SuperString();\n\n ignore = false;\n } else {\n currentSeq.addAndTrim(line.trim());\n }\n\n\n if (currentKID >= end){\n break;\n }\n } //end for\n\n //write last\n if (!ignore && currentKID >= start && currentSeq.length() > 0) {\n storeSequence(currentKID, currentSeq, tt);\n }\n// else if (!ignore) {\n// sequenceLength.add(currentSeq.length());\n// exceptionsArr.add(new HashMap<>());\n// }\n br.close();\n\n }catch (FileNotFoundException e1) {\n e1.printStackTrace();\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n\n }", "@Then(\"Universal Images Record should be updated and should be displayed in the listing\")\n\tpublic void ccc() throws FileNotFoundException, IOException, InterruptedException {\n\t}", "public interface C9222a {\n }", "public interface C11910c {\n}", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:58:38.928 -0500\", hash_original_method = \"65EA4CC7473CC6604A3DE8B9A82FCC11\", hash_generated_method = \"2C399FBFF5BF16C5903F56ED85D3BCE5\")\n \npublic int fetchIsimRecords(IccFileHandler iccFh, Handler h) {\n iccFh.loadEFTransparent(EF_IMPI, h.obtainMessage(\n IccRecords.EVENT_GET_ICC_RECORD_DONE, new EfIsimImpiLoaded()));\n iccFh.loadEFLinearFixedAll(EF_IMPU, h.obtainMessage(\n IccRecords.EVENT_GET_ICC_RECORD_DONE, new EfIsimImpuLoaded()));\n iccFh.loadEFTransparent(EF_DOMAIN, h.obtainMessage(\n IccRecords.EVENT_GET_ICC_RECORD_DONE, new EfIsimDomainLoaded()));\n return 3; // number of EF record load requests\n }", "public void mo3108c() {\n this.f2612h = Mode.valueOf(this.f2613i);\n int i = this.f2605a;\n if (i != -1) {\n if (i != 1) {\n if (i != 2) {\n if (i == 3) {\n this.f2606b = this.f2607c;\n return;\n } else if (i != 4) {\n if (i != 5) {\n return;\n }\n }\n }\n this.f2606b = new String(this.f2607c, Charset.forName(\"UTF-16\"));\n return;\n }\n Parcelable parcelable = this.f2608d;\n if (parcelable != null) {\n this.f2606b = parcelable;\n return;\n }\n byte[] bArr = this.f2607c;\n this.f2606b = bArr;\n this.f2605a = 3;\n this.f2609e = 0;\n this.f2610f = bArr.length;\n return;\n }\n Parcelable parcelable2 = this.f2608d;\n if (parcelable2 != null) {\n this.f2606b = parcelable2;\n return;\n }\n throw new IllegalArgumentException(\"Invalid icon\");\n }", "public interface C8843g {\n}", "protected void traceInit() {\r\n\r\n super.traceInit();\r\n\r\n // If the intensity volume is not defined, create it now by\r\n // using the map to convert RGB color values to intensity values.\r\n if (null == m_acImageI) {\r\n m_acImageI = new byte[m_acImageR.length];\r\n\r\n for (int i = 0; i < m_acImageI.length; i++) {\r\n m_acImageI[i] = (byte) (m_kMap.mapValue(\r\n (float) (m_acImageR[i] & 0x0ff),\r\n (float) (m_acImageG[i] & 0x0ff),\r\n (float) (m_acImageB[i] & 0x0ff)));\r\n }\r\n }\r\n }", "public static void setIccid(Object iccid) {\n\t\t\n\t}", "public interface C3183a {\n}", "public void mo1992a(int i, int i2, int i3, int i4) {\n this.f1963b.add(new Jca(i, i3, i2, i4));\n }", "protected void initializeInstructions() {\r\n // official instruction\r\n addInstruction(new CPU6502Instruction(\"ADC\", 0x6d, ADC, CPU6502Instruction.ABSOLUTE, 4));\r\n addInstruction(new CPU6502Instruction(\"ADC\", 0x69, ADC, CPU6502Instruction.IMMEDIATE, 2));\r\n addInstruction(new CPU6502Instruction(\"ADC\", 0x61, ADC, CPU6502Instruction.INDIRECT_X, 6));\r\n addInstruction(new CPU6502Instruction(\"ADC\", 0x71, ADC, CPU6502Instruction.INDIRECT_Y, 5, true));\r\n addInstruction(new CPU6502Instruction(\"ADC\", 0x7d, ADC, CPU6502Instruction.ABSOLUTE_X, 4, true));\r\n addInstruction(new CPU6502Instruction(\"ADC\", 0x79, ADC, CPU6502Instruction.ABSOLUTE_Y, 4, true));\r\n addInstruction(new CPU6502Instruction(\"ADC\", 0x65, ADC, CPU6502Instruction.ZERO, 3));\r\n addInstruction(new CPU6502Instruction(\"ADC\", 0x75, ADC, CPU6502Instruction.ZERO_X, 4));\r\n addInstruction(new CPU6502Instruction(\"AND\", 0x2d, AND, CPU6502Instruction.ABSOLUTE, 4));\r\n addInstruction(new CPU6502Instruction(\"AND\", 0x29, AND, CPU6502Instruction.IMMEDIATE, 2));\r\n addInstruction(new CPU6502Instruction(\"AND\", 0x21, AND, CPU6502Instruction.INDIRECT_X, 6));\r\n addInstruction(new CPU6502Instruction(\"AND\", 0x31, AND, CPU6502Instruction.INDIRECT_Y, 5, true));\r\n addInstruction(new CPU6502Instruction(\"AND\", 0x3d, AND, CPU6502Instruction.ABSOLUTE_X, 4, true));\r\n addInstruction(new CPU6502Instruction(\"AND\", 0x39, AND, CPU6502Instruction.ABSOLUTE_Y, 4, true));\r\n addInstruction(new CPU6502Instruction(\"AND\", 0x25, AND, CPU6502Instruction.ZERO, 3));\r\n addInstruction(new CPU6502Instruction(\"AND\", 0x35, AND, CPU6502Instruction.ZERO_X, 4));\r\n addInstruction(new CPU6502Instruction(\"ASL\", 0x0E, ASL, CPU6502Instruction.ABSOLUTE, 6));\r\n addInstruction(new CPU6502Instruction(\"ASL\", 0x0A, ASL, CPU6502Instruction.ACCUMULATOR, 2));\r\n addInstruction(new CPU6502Instruction(\"ASL\", 0x1E, ASL, CPU6502Instruction.ABSOLUTE_X, 7));\r\n addInstruction(new CPU6502Instruction(\"ASL\", 0x06, ASL, CPU6502Instruction.ZERO, 5));\r\n addInstruction(new CPU6502Instruction(\"ASL\", 0x16, ASL, CPU6502Instruction.ZERO_X, 6));\r\n addInstruction(new CPU6502Instruction(\"BCC\", 0x90, BCC, CPU6502Instruction.RELATIVE, 2));\r\n addInstruction(new CPU6502Instruction(\"BCS\", 0xb0, BCS, CPU6502Instruction.RELATIVE, 2));\r\n addInstruction(new CPU6502Instruction(\"BEQ\", 0xf0, BEQ, CPU6502Instruction.RELATIVE, 2));\r\n addInstruction(new CPU6502Instruction(\"BIT\", 0x2c, BIT, CPU6502Instruction.ABSOLUTE, 4));\r\n addInstruction(new CPU6502Instruction(\"BIT\", 0x24, BIT, CPU6502Instruction.ZERO, 3));\r\n addInstruction(new CPU6502Instruction(\"BMI\", 0x30, BMI, CPU6502Instruction.RELATIVE, 2));\r\n addInstruction(new CPU6502Instruction(\"BNE\", 0xd0, BNE, CPU6502Instruction.RELATIVE, 2));\r\n addInstruction(new CPU6502Instruction(\"BPL\", 0x10, BPL, CPU6502Instruction.RELATIVE, 2));\r\n addInstruction(new CPU6502Instruction(\"BRK\", 0x00, BRK, CPU6502Instruction.IMPLIED, 7));\r\n addInstruction(new CPU6502Instruction(\"BVC\", 0x50, BVC, CPU6502Instruction.RELATIVE, 2));\r\n addInstruction(new CPU6502Instruction(\"BVS\", 0x70, BVS, CPU6502Instruction.RELATIVE, 2));\r\n addInstruction(new CPU6502Instruction(\"CLC\", 0x18, CLC, CPU6502Instruction.IMPLIED, 2));\r\n addInstruction(new CPU6502Instruction(\"CLD\", 0xd8, CLD, CPU6502Instruction.IMPLIED, 2));\r\n addInstruction(new CPU6502Instruction(\"CLI\", 0x58, CLI, CPU6502Instruction.IMPLIED, 2));\r\n addInstruction(new CPU6502Instruction(\"CLV\", 0xb8, CLV, CPU6502Instruction.IMPLIED, 2));\r\n addInstruction(new CPU6502Instruction(\"CMP\", 0xcd, CMP, CPU6502Instruction.ABSOLUTE, 4));\r\n addInstruction(new CPU6502Instruction(\"CMP\", 0xc9, CMP, CPU6502Instruction.IMMEDIATE, 2));\r\n addInstruction(new CPU6502Instruction(\"CMP\", 0xc1, CMP, CPU6502Instruction.INDIRECT_X, 6));\r\n addInstruction(new CPU6502Instruction(\"CMP\", 0xd1, CMP, CPU6502Instruction.INDIRECT_Y, 5, true));\r\n addInstruction(new CPU6502Instruction(\"CMP\", 0xdd, CMP, CPU6502Instruction.ABSOLUTE_X, 4, true));\r\n addInstruction(new CPU6502Instruction(\"CMP\", 0xd9, CMP, CPU6502Instruction.ABSOLUTE_Y, 4, true));\r\n addInstruction(new CPU6502Instruction(\"CMP\", 0xc5, CMP, CPU6502Instruction.ZERO, 3));\r\n addInstruction(new CPU6502Instruction(\"CMP\", 0xd5, CMP, CPU6502Instruction.ZERO_X, 4));\r\n addInstruction(new CPU6502Instruction(\"CPX\", 0xec, CPX, CPU6502Instruction.ABSOLUTE, 4));\r\n addInstruction(new CPU6502Instruction(\"CPX\", 0xe0, CPX, CPU6502Instruction.IMMEDIATE, 2));\r\n addInstruction(new CPU6502Instruction(\"CPX\", 0xe4, CPX, CPU6502Instruction.ZERO, 3));\r\n addInstruction(new CPU6502Instruction(\"CPY\", 0xcc, CPY, CPU6502Instruction.ABSOLUTE, 4));\r\n addInstruction(new CPU6502Instruction(\"CPY\", 0xc0, CPY, CPU6502Instruction.IMMEDIATE, 2));\r\n addInstruction(new CPU6502Instruction(\"CPY\", 0xc4, CPY, CPU6502Instruction.ZERO, 3));\r\n addInstruction(new CPU6502Instruction(\"DEC\", 0xce, DEC, CPU6502Instruction.ABSOLUTE, 6));\r\n addInstruction(new CPU6502Instruction(\"DEC\", 0xde, DEC, CPU6502Instruction.ABSOLUTE_X, 7));\r\n addInstruction(new CPU6502Instruction(\"DEC\", 0xc6, DEC, CPU6502Instruction.ZERO, 5));\r\n addInstruction(new CPU6502Instruction(\"DEC\", 0xd6, DEC, CPU6502Instruction.ZERO_X, 6));\r\n addInstruction(new CPU6502Instruction(\"DEX\", 0xca, DEX, CPU6502Instruction.IMPLIED, 2));\r\n addInstruction(new CPU6502Instruction(\"DEY\", 0x88, DEY, CPU6502Instruction.IMPLIED, 2));\r\n addInstruction(new CPU6502Instruction(\"EOR\", 0x4d, EOR, CPU6502Instruction.ABSOLUTE, 4));\r\n addInstruction(new CPU6502Instruction(\"EOR\", 0x49, EOR, CPU6502Instruction.IMMEDIATE, 2));\r\n addInstruction(new CPU6502Instruction(\"EOR\", 0x41, EOR, CPU6502Instruction.INDIRECT_X, 6));\r\n addInstruction(new CPU6502Instruction(\"EOR\", 0x51, EOR, CPU6502Instruction.INDIRECT_Y, 5, true));\r\n addInstruction(new CPU6502Instruction(\"EOR\", 0x5d, EOR, CPU6502Instruction.ABSOLUTE_X, 4, true));\r\n addInstruction(new CPU6502Instruction(\"EOR\", 0x59, EOR, CPU6502Instruction.ABSOLUTE_Y, 4, true));\r\n addInstruction(new CPU6502Instruction(\"EOR\", 0x45, EOR, CPU6502Instruction.ZERO, 3));\r\n addInstruction(new CPU6502Instruction(\"EOR\", 0x55, EOR, CPU6502Instruction.ZERO_X, 4));\r\n addInstruction(new CPU6502Instruction(\"INC\", 0xee, INC, CPU6502Instruction.ABSOLUTE, 6));\r\n addInstruction(new CPU6502Instruction(\"INC\", 0xfe, INC, CPU6502Instruction.ABSOLUTE_X, 7));\r\n addInstruction(new CPU6502Instruction(\"INC\", 0xe6, INC, CPU6502Instruction.ZERO, 5));\r\n addInstruction(new CPU6502Instruction(\"INC\", 0xf6, INC, CPU6502Instruction.ZERO_X, 6));\r\n addInstruction(new CPU6502Instruction(\"INX\", 0xe8, INX, CPU6502Instruction.IMPLIED, 2));\r\n addInstruction(new CPU6502Instruction(\"INY\", 0xc8, INY, CPU6502Instruction.IMPLIED, 2));\r\n addInstruction(new CPU6502Instruction(\"JMP\", 0x4c, JMP, CPU6502Instruction.ABSOLUTE, 3));\r\n addInstruction(new CPU6502Instruction(\"JMP\", 0x6c, JMP, CPU6502Instruction.INDIRECT, 5));\r\n addInstruction(new CPU6502Instruction(\"JSR\", 0x20, JSR, CPU6502Instruction.ABSOLUTE, 6));\r\n addInstruction(new CPU6502Instruction(\"LDA\", 0xad, LDA, CPU6502Instruction.ABSOLUTE, 4));\r\n addInstruction(new CPU6502Instruction(\"LDA\", 0xa9, LDA, CPU6502Instruction.IMMEDIATE, 2));\r\n addInstruction(new CPU6502Instruction(\"LDA\", 0xa1, LDA, CPU6502Instruction.INDIRECT_X, 6));\r\n addInstruction(new CPU6502Instruction(\"LDA\", 0xb1, LDA, CPU6502Instruction.INDIRECT_Y, 5, true));\r\n addInstruction(new CPU6502Instruction(\"LDA\", 0xbd, LDA, CPU6502Instruction.ABSOLUTE_X, 4, true));\r\n addInstruction(new CPU6502Instruction(\"LDA\", 0xb9, LDA, CPU6502Instruction.ABSOLUTE_Y, 4, true));\r\n addInstruction(new CPU6502Instruction(\"LDA\", 0xa5, LDA, CPU6502Instruction.ZERO, 3));\r\n addInstruction(new CPU6502Instruction(\"LDA\", 0xb5, LDA, CPU6502Instruction.ZERO_X, 4));\r\n addInstruction(new CPU6502Instruction(\"LDX\", 0xae, LDX, CPU6502Instruction.ABSOLUTE, 4));\r\n addInstruction(new CPU6502Instruction(\"LDX\", 0xa2, LDX, CPU6502Instruction.IMMEDIATE, 2));\r\n addInstruction(new CPU6502Instruction(\"LDX\", 0xbe, LDX, CPU6502Instruction.ABSOLUTE_Y, 4, true));\r\n addInstruction(new CPU6502Instruction(\"LDX\", 0xa6, LDX, CPU6502Instruction.ZERO, 3));\r\n addInstruction(new CPU6502Instruction(\"LDX\", 0xb6, LDX, CPU6502Instruction.ZERO_Y, 4));\r\n addInstruction(new CPU6502Instruction(\"LDY\", 0xac, LDY, CPU6502Instruction.ABSOLUTE, 4));\r\n addInstruction(new CPU6502Instruction(\"LDY\", 0xa0, LDY, CPU6502Instruction.IMMEDIATE, 2));\r\n addInstruction(new CPU6502Instruction(\"LDY\", 0xbc, LDY, CPU6502Instruction.ABSOLUTE_X, 4, true));\r\n addInstruction(new CPU6502Instruction(\"LDY\", 0xa4, LDY, CPU6502Instruction.ZERO, 3));\r\n addInstruction(new CPU6502Instruction(\"LDY\", 0xb4, LDY, CPU6502Instruction.ZERO_X, 4));\r\n addInstruction(new CPU6502Instruction(\"LSR\", 0x4e, LSR, CPU6502Instruction.ABSOLUTE, 6));\r\n addInstruction(new CPU6502Instruction(\"LSR\", 0x4a, LSR, CPU6502Instruction.ACCUMULATOR, 2));\r\n addInstruction(new CPU6502Instruction(\"LSR\", 0x5e, LSR, CPU6502Instruction.ABSOLUTE_X, 7));\r\n addInstruction(new CPU6502Instruction(\"LSR\", 0x46, LSR, CPU6502Instruction.ZERO, 5));\r\n addInstruction(new CPU6502Instruction(\"LSR\", 0x56, LSR, CPU6502Instruction.ZERO_X, 6));\r\n addInstruction(new CPU6502Instruction(\"NOP\", 0xea, NOP, CPU6502Instruction.IMPLIED, 2));\r\n addInstruction(new CPU6502Instruction(\"ORA\", 0x0D, ORA, CPU6502Instruction.ABSOLUTE, 4));\r\n addInstruction(new CPU6502Instruction(\"ORA\", 0x09, ORA, CPU6502Instruction.IMMEDIATE, 2));\r\n addInstruction(new CPU6502Instruction(\"ORA\", 0x01, ORA, CPU6502Instruction.INDIRECT_X, 6));\r\n addInstruction(new CPU6502Instruction(\"ORA\", 0x11, ORA, CPU6502Instruction.INDIRECT_Y, 5, true));\r\n addInstruction(new CPU6502Instruction(\"ORA\", 0x1D, ORA, CPU6502Instruction.ABSOLUTE_X, 4, true));\r\n addInstruction(new CPU6502Instruction(\"ORA\", 0x19, ORA, CPU6502Instruction.ABSOLUTE_Y, 4, true));\r\n addInstruction(new CPU6502Instruction(\"ORA\", 0x05, ORA, CPU6502Instruction.ZERO, 3));\r\n addInstruction(new CPU6502Instruction(\"ORA\", 0x15, ORA, CPU6502Instruction.ZERO_X, 4));\r\n addInstruction(new CPU6502Instruction(\"PHA\", 0x48, PHA, CPU6502Instruction.IMPLIED, 3));\r\n addInstruction(new CPU6502Instruction(\"PHP\", 0x08, PHP, CPU6502Instruction.IMPLIED, 3));\r\n addInstruction(new CPU6502Instruction(\"PLA\", 0x68, PLA, CPU6502Instruction.IMPLIED, 4));\r\n addInstruction(new CPU6502Instruction(\"PLP\", 0x28, PLP, CPU6502Instruction.IMPLIED, 4));\r\n addInstruction(new CPU6502Instruction(\"ROL\", 0x2e, ROL, CPU6502Instruction.ABSOLUTE, 6));\r\n addInstruction(new CPU6502Instruction(\"ROL\", 0x2a, ROL, CPU6502Instruction.ACCUMULATOR, 2));\r\n addInstruction(new CPU6502Instruction(\"ROL\", 0x3e, ROL, CPU6502Instruction.ABSOLUTE_X, 7));\r\n addInstruction(new CPU6502Instruction(\"ROL\", 0x26, ROL, CPU6502Instruction.ZERO, 5));\r\n addInstruction(new CPU6502Instruction(\"ROL\", 0x36, ROL, CPU6502Instruction.ZERO_X, 6));\r\n addInstruction(new CPU6502Instruction(\"ROR\", 0x6e, ROR, CPU6502Instruction.ABSOLUTE, 6));\r\n addInstruction(new CPU6502Instruction(\"ROR\", 0x6a, ROR, CPU6502Instruction.ACCUMULATOR, 2));\r\n addInstruction(new CPU6502Instruction(\"ROR\", 0x7e, ROR, CPU6502Instruction.ABSOLUTE_X, 7));\r\n addInstruction(new CPU6502Instruction(\"ROR\", 0x66, ROR, CPU6502Instruction.ZERO, 5));\r\n addInstruction(new CPU6502Instruction(\"ROR\", 0x76, ROR, CPU6502Instruction.ZERO_X, 6));\r\n addInstruction(new CPU6502Instruction(\"RTI\", 0x40, RTI, CPU6502Instruction.IMPLIED, 6));\r\n addInstruction(new CPU6502Instruction(\"RTS\", 0x60, RTS, CPU6502Instruction.IMPLIED, 6));\r\n addInstruction(new CPU6502Instruction(\"SBC\", 0xed, SBC, CPU6502Instruction.ABSOLUTE, 4));\r\n addInstruction(new CPU6502Instruction(\"SBC\", 0xe9, SBC, CPU6502Instruction.IMMEDIATE, 2));\r\n addInstruction(new CPU6502Instruction(\"SBC\", 0xe1, SBC, CPU6502Instruction.INDIRECT_X, 6));\r\n addInstruction(new CPU6502Instruction(\"SBC\", 0xf1, SBC, CPU6502Instruction.INDIRECT_Y, 5, true));\r\n addInstruction(new CPU6502Instruction(\"SBC\", 0xfd, SBC, CPU6502Instruction.ABSOLUTE_X, 4, true));\r\n addInstruction(new CPU6502Instruction(\"SBC\", 0xf9, SBC, CPU6502Instruction.ABSOLUTE_Y, 4, true));\r\n addInstruction(new CPU6502Instruction(\"SBC\", 0xe5, SBC, CPU6502Instruction.ZERO, 3));\r\n addInstruction(new CPU6502Instruction(\"SBC\", 0xf5, SBC, CPU6502Instruction.ZERO_X, 4));\r\n addInstruction(new CPU6502Instruction(\"SEC\", 0x38, SEC, CPU6502Instruction.IMPLIED, 2));\r\n addInstruction(new CPU6502Instruction(\"SED\", 0xf8, SED, CPU6502Instruction.IMPLIED, 2));\r\n addInstruction(new CPU6502Instruction(\"SEI\", 0x78, SEI, CPU6502Instruction.IMPLIED, 2));\r\n addInstruction(new CPU6502Instruction(\"STA\", 0x8d, STA, CPU6502Instruction.ABSOLUTE, 4));\r\n addInstruction(new CPU6502Instruction(\"STA\", 0x81, STA, CPU6502Instruction.INDIRECT_X, 6));\r\n addInstruction(new CPU6502Instruction(\"STA\", 0x91, STA, CPU6502Instruction.INDIRECT_Y, 6));\r\n addInstruction(new CPU6502Instruction(\"STA\", 0x9d, STA, CPU6502Instruction.ABSOLUTE_X, 5));\r\n addInstruction(new CPU6502Instruction(\"STA\", 0x99, STA, CPU6502Instruction.ABSOLUTE_Y, 5));\r\n addInstruction(new CPU6502Instruction(\"STA\", 0x85, STA, CPU6502Instruction.ZERO, 3));\r\n addInstruction(new CPU6502Instruction(\"STA\", 0x95, STA, CPU6502Instruction.ZERO_X, 4));\r\n addInstruction(new CPU6502Instruction(\"STX\", 0x8e, STX, CPU6502Instruction.ABSOLUTE, 4));\r\n addInstruction(new CPU6502Instruction(\"STX\", 0x86, STX, CPU6502Instruction.ZERO, 3));\r\n addInstruction(new CPU6502Instruction(\"STX\", 0x96, STX, CPU6502Instruction.ZERO_Y, 4));\r\n addInstruction(new CPU6502Instruction(\"STY\", 0x8c, STY, CPU6502Instruction.ABSOLUTE, 4));\r\n addInstruction(new CPU6502Instruction(\"STY\", 0x84, STY, CPU6502Instruction.ZERO, 3));\r\n addInstruction(new CPU6502Instruction(\"STY\", 0x94, STY, CPU6502Instruction.ZERO_X, 4));\r\n addInstruction(new CPU6502Instruction(\"TAX\", 0xaa, TAX, CPU6502Instruction.IMPLIED, 2));\r\n addInstruction(new CPU6502Instruction(\"TAY\", 0xa8, TAY, CPU6502Instruction.IMPLIED, 2));\r\n addInstruction(new CPU6502Instruction(\"TSX\", 0xba, TSX, CPU6502Instruction.IMPLIED, 2));\r\n addInstruction(new CPU6502Instruction(\"TXA\", 0x8a, TXA, CPU6502Instruction.IMPLIED, 2));\r\n addInstruction(new CPU6502Instruction(\"TXS\", 0x9a, TXS, CPU6502Instruction.IMPLIED, 2));\r\n addInstruction(new CPU6502Instruction(\"TYA\", 0x98, TYA, CPU6502Instruction.IMPLIED, 2));\r\n // undocumentated instructions\r\n addInstruction(new CPU6502Instruction(\"ALR\", 0x4b, ALR, CPU6502Instruction.IMMEDIATE, 2));\r\n addInstruction(new CPU6502Instruction(\"ANC\", 0x0b, ANC, CPU6502Instruction.IMMEDIATE, 2));\r\n addInstruction(new CPU6502Instruction(this.instructions[ 0x0b], 0x2b));\r\n addInstruction(new CPU6502Instruction(\"ARR\", 0x6b, ARR, CPU6502Instruction.IMMEDIATE, 2));\r\n addInstruction(new CPU6502Instruction(\"ASO\", 0x0F, ASO, CPU6502Instruction.ABSOLUTE, 6));\r\n addInstruction(new CPU6502Instruction(\"ASO\", 0x03, ASO, CPU6502Instruction.INDIRECT_X, 8));\r\n addInstruction(new CPU6502Instruction(\"ASO\", 0x13, ASO, CPU6502Instruction.INDIRECT_Y, 8));\r\n addInstruction(new CPU6502Instruction(\"ASO\", 0x1f, ASO, CPU6502Instruction.ABSOLUTE_X, 7));\r\n addInstruction(new CPU6502Instruction(\"ASO\", 0x1b, ASO, CPU6502Instruction.ABSOLUTE_Y, 7));\r\n addInstruction(new CPU6502Instruction(\"ASO\", 0x07, ASO, CPU6502Instruction.ZERO, 5));\r\n addInstruction(new CPU6502Instruction(\"ASO\", 0x17, ASO, CPU6502Instruction.ZERO_X, 6));\r\n addInstruction(new CPU6502Instruction(\"AXS\", 0x8F, AXS, CPU6502Instruction.ABSOLUTE, 4));\r\n addInstruction(new CPU6502Instruction(\"AXS\", 0x83, AXS, CPU6502Instruction.INDIRECT_X, 6));\r\n addInstruction(new CPU6502Instruction(\"AXS\", 0x87, AXS, CPU6502Instruction.ZERO, 3));\r\n addInstruction(new CPU6502Instruction(\"AXS\", 0x97, AXS, CPU6502Instruction.ZERO_Y, 4));\r\n addInstruction(new CPU6502Instruction(\"DCM\", 0xCF, DCM, CPU6502Instruction.ABSOLUTE, 6));\r\n addInstruction(new CPU6502Instruction(\"DCM\", 0xC3, DCM, CPU6502Instruction.INDIRECT_X, 8));\r\n addInstruction(new CPU6502Instruction(\"DCM\", 0xD3, DCM, CPU6502Instruction.INDIRECT_Y, 8));\r\n addInstruction(new CPU6502Instruction(\"DCM\", 0xdf, DCM, CPU6502Instruction.ABSOLUTE_X, 7));\r\n addInstruction(new CPU6502Instruction(\"DCM\", 0xdb, DCM, CPU6502Instruction.ABSOLUTE_Y, 7));\r\n addInstruction(new CPU6502Instruction(\"DCM\", 0xC7, DCM, CPU6502Instruction.ZERO, 5));\r\n addInstruction(new CPU6502Instruction(\"DCM\", 0xD7, DCM, CPU6502Instruction.ZERO_X, 6));\r\n addInstruction(new CPU6502Instruction(\"INS\", 0xEF, INS, CPU6502Instruction.ABSOLUTE, 6));\r\n addInstruction(new CPU6502Instruction(\"INS\", 0xE3, INS, CPU6502Instruction.INDIRECT_X, 8));\r\n addInstruction(new CPU6502Instruction(\"INS\", 0xF3, INS, CPU6502Instruction.INDIRECT_Y, 8));\r\n addInstruction(new CPU6502Instruction(\"INS\", 0xff, INS, CPU6502Instruction.ABSOLUTE_X, 7));\r\n addInstruction(new CPU6502Instruction(\"INS\", 0xfb, INS, CPU6502Instruction.ABSOLUTE_Y, 7));\r\n addInstruction(new CPU6502Instruction(\"INS\", 0xE7, INS, CPU6502Instruction.ZERO, 5));\r\n addInstruction(new CPU6502Instruction(\"INS\", 0xF7, INS, CPU6502Instruction.ZERO_X, 6));\r\n addInstruction(new CPU6502Instruction(\"LAS\", 0xbb, LAS, CPU6502Instruction.ABSOLUTE_Y, 4, true));\r\n addInstruction(new CPU6502Instruction(\"LAX\", 0xAF, LAX, CPU6502Instruction.ABSOLUTE, 4));\r\n addInstruction(new CPU6502Instruction(\"LAX\", 0xA3, LAX, CPU6502Instruction.INDIRECT_X, 6));\r\n addInstruction(new CPU6502Instruction(\"LAX\", 0xB3, LAX, CPU6502Instruction.INDIRECT_Y, 5, true));\r\n addInstruction(new CPU6502Instruction(\"LAX\", 0xbf, LAX, CPU6502Instruction.ABSOLUTE_Y, 4));\r\n addInstruction(new CPU6502Instruction(\"LAX\", 0xA7, LAX, CPU6502Instruction.ZERO, 3));\r\n addInstruction(new CPU6502Instruction(\"LAX\", 0xB7, LAX, CPU6502Instruction.ZERO_Y, 4));\r\n addInstruction(new CPU6502Instruction(\"LSE\", 0x4F, LSE, CPU6502Instruction.ABSOLUTE, 6));\r\n addInstruction(new CPU6502Instruction(\"LSE\", 0x43, LSE, CPU6502Instruction.INDIRECT_X, 8));\r\n addInstruction(new CPU6502Instruction(\"LSE\", 0x53, LSE, CPU6502Instruction.INDIRECT_Y, 8));\r\n addInstruction(new CPU6502Instruction(\"LSE\", 0x5f, LSE, CPU6502Instruction.ABSOLUTE_X, 7));\r\n addInstruction(new CPU6502Instruction(\"LSE\", 0x5b, LSE, CPU6502Instruction.ABSOLUTE_Y, 7));\r\n addInstruction(new CPU6502Instruction(\"LSE\", 0x47, LSE, CPU6502Instruction.ZERO, 5));\r\n addInstruction(new CPU6502Instruction(\"LSE\", 0x57, LSE, CPU6502Instruction.ZERO_X, 6));\r\n addInstruction(new CPU6502Instruction(this.instructions[ 0xea], 0x1a));\r\n addInstruction(new CPU6502Instruction(this.instructions[ 0xea], 0x3a));\r\n addInstruction(new CPU6502Instruction(this.instructions[ 0xea], 0x5a));\r\n addInstruction(new CPU6502Instruction(this.instructions[ 0xea], 0x7a));\r\n addInstruction(new CPU6502Instruction(this.instructions[ 0xea], 0xda));\r\n addInstruction(new CPU6502Instruction(this.instructions[ 0xea], 0xfa));\r\n addInstruction(new CPU6502Instruction(\"OAL\", 0xab, OAL, CPU6502Instruction.IMMEDIATE, 2));\r\n addInstruction(new CPU6502Instruction(\"RLA\", 0x2F, RLA, CPU6502Instruction.ABSOLUTE, 6));\r\n addInstruction(new CPU6502Instruction(\"RLA\", 0x23, RLA, CPU6502Instruction.INDIRECT_X, 8));\r\n addInstruction(new CPU6502Instruction(\"RLA\", 0x33, RLA, CPU6502Instruction.INDIRECT_Y, 8));\r\n addInstruction(new CPU6502Instruction(\"RLA\", 0x3f, RLA, CPU6502Instruction.ABSOLUTE_X, 7));\r\n addInstruction(new CPU6502Instruction(\"RLA\", 0x3b, RLA, CPU6502Instruction.ABSOLUTE_Y, 7));\r\n addInstruction(new CPU6502Instruction(\"RLA\", 0x27, RLA, CPU6502Instruction.ZERO, 5));\r\n addInstruction(new CPU6502Instruction(\"RLA\", 0x37, RLA, CPU6502Instruction.ZERO_X, 6));\r\n addInstruction(new CPU6502Instruction(\"RRA\", 0x6F, RRA, CPU6502Instruction.ABSOLUTE, 6));\r\n addInstruction(new CPU6502Instruction(\"RRA\", 0x63, RRA, CPU6502Instruction.INDIRECT_X, 8));\r\n addInstruction(new CPU6502Instruction(\"RRA\", 0x73, RRA, CPU6502Instruction.INDIRECT_Y, 8));\r\n addInstruction(new CPU6502Instruction(\"RRA\", 0x7f, RRA, CPU6502Instruction.ABSOLUTE_X, 7));\r\n addInstruction(new CPU6502Instruction(\"RRA\", 0x7b, RRA, CPU6502Instruction.ABSOLUTE_Y, 7));\r\n addInstruction(new CPU6502Instruction(\"RRA\", 0x67, RRA, CPU6502Instruction.ZERO, 5));\r\n addInstruction(new CPU6502Instruction(\"RRA\", 0x77, RRA, CPU6502Instruction.ZERO_X, 6));\r\n addInstruction(new CPU6502Instruction(\"SAX\", 0xcb, SAX, CPU6502Instruction.IMMEDIATE, 2));\r\n addInstruction(new CPU6502Instruction(\"SAY\", 0x9c, SAY, CPU6502Instruction.ABSOLUTE_X, 5));\r\n addInstruction(new CPU6502Instruction(this.instructions[ 0xe9], 0xeb));\r\n addInstruction(new CPU6502Instruction(\"AXA\", 0x93, AXA, CPU6502Instruction.INDIRECT_Y, 6));\r\n addInstruction(new CPU6502Instruction(\"AXA\", 0x9f, AXA, CPU6502Instruction.ABSOLUTE_Y, 5));\r\n addInstruction(new CPU6502Instruction(\"SKB\", 0x80, SKB, CPU6502Instruction.IMMEDIATE, 3));\r\n addInstruction(new CPU6502Instruction(this.instructions[ 0x80], 0x82));\r\n addInstruction(new CPU6502Instruction(this.instructions[ 0x80], 0xc2));\r\n addInstruction(new CPU6502Instruction(this.instructions[ 0x80], 0xe2));\r\n addInstruction(new CPU6502Instruction(this.instructions[ 0x80], 0x04));\r\n addInstruction(new CPU6502Instruction(this.instructions[ 0x80], 0x14));\r\n addInstruction(new CPU6502Instruction(this.instructions[ 0x80], 0x34));\r\n addInstruction(new CPU6502Instruction(this.instructions[ 0x80], 0x44));\r\n addInstruction(new CPU6502Instruction(this.instructions[ 0x80], 0x54));\r\n addInstruction(new CPU6502Instruction(this.instructions[ 0x80], 0x64));\r\n addInstruction(new CPU6502Instruction(this.instructions[ 0x80], 0x74));\r\n addInstruction(new CPU6502Instruction(this.instructions[ 0x80], 0xd4));\r\n addInstruction(new CPU6502Instruction(this.instructions[ 0x80], 0xf4));\r\n addInstruction(new CPU6502Instruction(\"SKB\", 0x89, SKB, CPU6502Instruction.IMMEDIATE, 2));\r\n addInstruction(new CPU6502Instruction(\"SKW\", 0x0c, SKW, CPU6502Instruction.ABSOLUTE, 4));\r\n addInstruction(new CPU6502Instruction(\"SKW\", 0x1c, SKW, CPU6502Instruction.INDIRECT_X, 4, true));\r\n addInstruction(new CPU6502Instruction(this.instructions[ 0x1c], 0x3c));\r\n addInstruction(new CPU6502Instruction(this.instructions[ 0x1c], 0x5c));\r\n addInstruction(new CPU6502Instruction(this.instructions[ 0x1c], 0x7c));\r\n addInstruction(new CPU6502Instruction(this.instructions[ 0x1c], 0xdc));\r\n addInstruction(new CPU6502Instruction(this.instructions[ 0x1c], 0xfc));\r\n addInstruction(new CPU6502Instruction(\"TAS\", 0x9b, TAS, CPU6502Instruction.ABSOLUTE_Y, 5));\r\n addInstruction(new CPU6502Instruction(\"XAA\", 0x8b, XAA, CPU6502Instruction.IMMEDIATE, 2));\r\n addInstruction(new CPU6502Instruction(\"XAS\", 0x9e, XAS, CPU6502Instruction.ABSOLUTE_Y, 5));\r\n }", "public interface C0389gj extends C0388gi {\n}", "private void init() {\r\n \r\n // simple error check up front\r\n if ((srcImage.getNDims() != 2) && srcImage.getNDims() != 3) {\r\n MipavUtil.displayError(\"PlugInAlgorithmCTAbdomen.init() Error image is not 2 or 3 dimensions\");\r\n return;\r\n }\r\n \r\n // set and allocate known values\r\n xDim = srcImage.getExtents()[0];\r\n yDim = srcImage.getExtents()[1];\r\n sliceSize = xDim * yDim;\r\n\r\n // allocate the slice buffer\r\n try {\r\n sliceBuffer = new short[sliceSize];\r\n } catch (OutOfMemoryError error) {\r\n System.gc();\r\n MipavUtil.displayError(\"PlugInAlgorithmCTAbdomen.init() Out of memory when making the slice buffer\");\r\n return;\r\n }\r\n\r\n // set values that depend on the source image being a 2D or 3D image\r\n if (srcImage.getNDims() == 2) {\r\n zDim = 1;\r\n } else if (srcImage.getNDims() == 3) {\r\n zDim = srcImage.getExtents()[2];\r\n }\r\n\r\n // make the abdomenlabel image and initialize its resolutions\r\n abdomenImage = new ModelImage(ModelStorageBase.USHORT, srcImage.getExtents(), \"abdomenTissueImage\");\r\n \r\n // make the resolutions of the abdomenImage the same as the source image\r\n for (int i = 0; i < zDim; i++) {\r\n abdomenImage.getFileInfo()[i].setResolutions(srcImage.getFileInfo()[i].getResolutions());\r\n }\r\n \r\n // make the volume BitSet needed for the region grow algorithm\r\n try {\r\n volumeBitSet = new BitSet();\r\n } catch (OutOfMemoryError error) {\r\n System.gc();\r\n MipavUtil.displayError(\"PlugInAlgorithmCTAbdomen.init() Out of memory when making the volumeBitSet\");\r\n return;\r\n }\r\n \r\n // make the centerOfMass of the segmented abdomen\r\n try {\r\n centerOfMass = new short [2];\r\n } catch (OutOfMemoryError error) {\r\n System.gc();\r\n MipavUtil.displayError(\"PlugInAlgorithmCTAbdomen.init() Out of memory when making the centerOfMass array\");\r\n return;\r\n }\r\n\r\n // all data was allocated, set initialized flag to true and return\r\n initializedFlag = true;\r\n }", "C1458cs mo7613iS();", "void mo8280a(int i, int i2, C1207m c1207m);", "public interface C13719g {\n}", "public AncFile() {\n }", "@Test\n public void testCIFUrl() {\n \tString infile = \"http://scripts.iucr.org/cgi-bin/sendcif?aa2004sup1\";\n \tString outfile = \"src/test/resources/examples/cif/aa2004.cml\";\n \tString reffile = \"src/test/resources/examples/cif/aa2004.ref.cml\";\n \tString[] args = {\"-u \"+infile+\" -it \"+CIF_TYPE+\" -o \"+outfile};\n \ttry {\n \t\tConverterCli.main(args);\n \t} catch (Exception e) {\n \t\te.printStackTrace();\n \t\tAssert.fail(\"Should not throw \"+ e);\n \t}\n\t\tJumboTestUtils.assertEqualsIncludingFloat(\"CIF\", \n\t\t\t\tCMLUtil.parseQuietlyToDocument(new File(outfile)).getRootElement(), \n\t\t\t\tCMLUtil.parseQuietlyToDocument(new File(reffile)).getRootElement(), \n\t\t\t\ttrue, 0.00000001);\n }", "public interface C0333a {\n }", "InputStream mo1151a();", "public interface C24717ak {\n}", "@Test\n public void testICCDuplicateSequenceZeroBased() throws IOException {\n JPEGImageReader reader = createReader();\n reader.setInput(ImageIO.createImageInputStream(getClassLoaderResource(\"/jpeg/invalid-icc-duplicate-sequence-numbers-rgb-xerox-dc250-heavyweight-1-progressive-jfif.jpg\")));\n\n assertEquals(3874, reader.getWidth(0));\n assertEquals(5480, reader.getHeight(0));\n\n ImageReadParam param = reader.getDefaultReadParam();\n param.setSourceRegion(new Rectangle(0, 0, 3874, 16)); // Save some memory\n BufferedImage image = reader.read(0, param);\n\n assertNotNull(image);\n assertEquals(3874, image.getWidth());\n assertEquals(16, image.getHeight());\n\n reader.dispose();\n }", "protected void initFile(String id) throws FormatException, IOException {\n super.initFile(id);\n in = new RandomAccessFile(id, \"r\");\n \n // initialize an array containing tag offsets, so we can\n // use an O(1) search instead of O(n) later.\n // Also determine whether we will be reading color or grayscale\n // images\n \n //in.seek(0);\n byte[] toRead = new byte[4];\n in.read(toRead);\n long order = batoi(toRead); // byte ordering\n little = toRead[2] != 0xff || toRead[3] != 0xff;\n \n toRead = new byte[4];\n Vector v = new Vector(); // a temp vector containing offsets.\n \n // Get first offset.\n in.seek(16);\n in.read(toRead);\n int nextOffset = batoi(toRead);\n int nextOffsetTemp;\n \n boolean first = true;\n while(nextOffset != 0) {\n in.seek(nextOffset + 4);\n in.read(toRead);\n // get next tag, but still need this one\n nextOffsetTemp = batoi(toRead);\n in.read(toRead);\n if ((new String(toRead)).equals(\"PICT\")) {\n boolean ok = true;\n if (first) {\n // ignore first image if it is called \"Original Image\" (pure white)\n first = false;\n in.skipBytes(47);\n byte[] layerNameBytes = new byte[127];\n in.read(layerNameBytes);\n String layerName = new String(layerNameBytes);\n if (layerName.startsWith(\"Original Image\")) ok = false;\n }\n if (ok) v.add(new Integer(nextOffset)); // add THIS tag offset\n }\n if (nextOffset == nextOffsetTemp) break;\n nextOffset = nextOffsetTemp;\n }\n \n in.seek(((Integer) v.firstElement()).intValue());\n \n // create and populate the array of offsets from the vector\n numBlocks = v.size();\n offsets = new int[numBlocks];\n for (int i = 0; i < numBlocks; i++) {\n offsets[i] = ((Integer) v.get(i)).intValue();\n }\n \n // populate the imageTypes that the file uses\n toRead = new byte[2];\n imageType = new int[numBlocks];\n for (int i = 0; i < numBlocks; i++) {\n in.seek(offsets[i]);\n in.skipBytes(40);\n in.read(toRead);\n imageType[i] = batoi(toRead);\n }\n \n initMetadata();\n }", "private int getIccCardType(int r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.getIccCardType(int):int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.getIccCardType(int):int\");\n }", "public interface C9223b {\n }", "public interface C0939c {\n }", "public void mo210a(File file) {\n }", "private static String getAdImmd(String compon){\n\t\tcompon = compon.substring(0,compon.indexOf(\"(\"));\n\t\treturn compon;\n\t}", "public interface C43157d extends C1677a {\n}", "public interface AIK {\n ColorStateList AGZ(AnonymousClass7R3 r1);\n\n float AL0(AnonymousClass7R3 r1);\n\n float APW(AnonymousClass7R3 r1);\n\n float AQJ(AnonymousClass7R3 r1);\n\n float AQL(AnonymousClass7R3 r1);\n\n float ATV(AnonymousClass7R3 r1);\n\n void AdX();\n\n void Add(AnonymousClass7R3 r1, Context context, ColorStateList colorStateList, float f, float f2, float f3);\n\n void AxT(AnonymousClass7R3 r1);\n\n void BFN(AnonymousClass7R3 r1);\n\n void BgA(AnonymousClass7R3 r1, ColorStateList colorStateList);\n\n void BhK(AnonymousClass7R3 r1, float f);\n\n void Bin(AnonymousClass7R3 r1, float f);\n\n void Bjy(AnonymousClass7R3 r1, float f);\n}", "public interface C46409a {\n}", "public void mo1327d(ac acVar) {\n }", "void toca();", "private void m13732c(ExtractorInput extractorInput) throws IOException, InterruptedException {\n int size = this.f11090i.size();\n C2085b c2085b = null;\n long j = Format.OFFSET_SAMPLE_RELATIVE;\n for (int i = 0; i < size; i++) {\n C2102i c2102i = ((C2085b) this.f11090i.valueAt(i)).f5790b;\n if (c2102i.f5955r && c2102i.f5941d < j) {\n long j2 = c2102i.f5941d;\n c2085b = (C2085b) this.f11090i.valueAt(i);\n j = j2;\n }\n }\n if (c2085b == null) {\n this.f11100s = 3;\n return;\n }\n size = (int) (j - extractorInput.getPosition());\n if (size < 0) {\n throw new ParserException(\"Offset to encryption data was negative.\");\n }\n extractorInput.skipFully(size);\n c2085b.f5790b.m7528a(extractorInput);\n }", "public InterfazInfo importarInterfaz(InterfazInfo info) \n throws InterfacesException, MareException\n {\n String codigoInterfaz = info.getCodigoInterfaz();\n String numeroLote = info.getNumeroLote();\n Long pais = info.getPais();\n\n InterfazDef def = importarInterfazP1(codigoInterfaz, numeroLote, pais, info); \n \n return importarInterfazP2(codigoInterfaz, numeroLote, pais, def, info);\n }", "private void getCardData(APDU apdu, byte[] buffer) \r\n \t //@ requires [1/2]valid() &*& APDU(apdu, buffer) &*& array_slice(buffer, 0, buffer.length, _);\r\n \t //@ ensures [1/2]valid() &*& APDU(apdu, buffer) &*& array_slice(buffer, 0, buffer.length, _);\r\n\t{\r\n\t\t// check P1 and P2\r\n\t\tif (buffer[ISO7816.OFFSET_P1] != (byte) 0x00 || buffer[ISO7816.OFFSET_P2] != (byte) 0x00)\r\n\t\t\tISOException.throwIt(ISO7816.SW_INCORRECT_P1P2);\r\n\t\t// inform the JCRE that the applet has data to return\r\n\t\tapdu.setOutgoing();\r\n\t\t\r\n\t\t////@ open [1/2]valid();\r\n\t\t\t\t\t\t\t\t\r\n\t\tbyte[] data = identityFile.getData(); \r\n\t\t// Only the chip number is of importance: get this at tag position 2\r\n\t\tshort pos = 1;\r\n\t\t//@ open [1/2]identityFile.ElementaryFile(_, _, ?identityFileData, _, _, ?info); // todo (integrate with array_element search)\r\n\t\tshort dataLen = (short) data[pos];\r\n\t\tpos = (short) (pos + 1 + dataLen + 1);\r\n\t\t////@ close [1/2]identityFile.ElementaryFile(_, _, identityFileData, _, _, info); // auto\r\n\t\tif (dataLen <= 0 || dataLen + pos + 2 >= identityFile.getCurrentSize())\r\n\t\t\tISOException.throwIt(ISO7816.SW_DATA_INVALID);\r\n\t\t//@ open [1/2]identityFile.ElementaryFile(_, _, identityFileData, _, _, info);\r\n\t\tdataLen = (short) data[pos];\r\n\t\tpos = (short) (pos + 1);\r\n\t\t////@ close [1/2]identityFile.ElementaryFile(_, _, identityFileData, _, _, info); // auto\r\n\t\tif (dataLen < 0 || pos + dataLen >= identityFile.getCurrentSize())\r\n\t\t\tISOException.throwIt(ISO7816.SW_DATA_INVALID);\r\n\t\t//@ open [1/2]identityFile.ElementaryFile(_, _, identityFileData, _, _, info);\r\n\t\t// check Le\r\n\t\t// if (le != dataLen)\r\n\t\t// ISOException.throwIt((short)(ISO7816.SW_WRONG_LENGTH));\r\n\t\t/*VF*byte version[] = { (byte) 0xA5, (byte) 0x03, (byte) 0x01, (byte) 0x01, (byte) 0x01, (byte) 0x11, (byte) 0x00, (byte) 0x02, (byte) 0x00, (byte) 0x01, (byte) 0x01, (byte) 0x0F };*/\r\n\t\tbyte version[] = new byte[] { (byte) 0xA5, (byte) 0x03, (byte) 0x01, (byte) 0x01, (byte) 0x01, (byte) 0x11, (byte) 0x00, (byte) 0x02, (byte) 0x00, (byte) 0x01, (byte) 0x01, (byte) 0x0F };\r\n\t\tbyte chipNumber[] = new byte[(short) (dataLen + 12)];\r\n\t\tUtil.arrayCopy(data, pos, chipNumber, (short) 0, dataLen);\r\n\t\tUtil.arrayCopy(version, (short) 0, chipNumber, dataLen, (short) 12);\r\n\t\t// //Set serial number\r\n\t\t// Util.arrayCopy(tokenInfo.getData(), (short) 7, tempBuffer, (short) 0,\r\n\t\t// (short) 16);\r\n\t\t//\t\t\r\n\t\t// //Set component code: TODO\r\n\t\t//\t\t\r\n\t\t//\t\t\r\n\t\t// //Set OS number: TODO\r\n\t\t//\t\t\r\n\t\t//\t\t\r\n\t\t// //Set OS version: TODO\r\n\t\t// JCSystem.getVersion();\r\n\t\t//\t\t\r\n\t\t// //Set softmask number: TODO\r\n\t\t//\t\t\r\n\t\t// //Set softmask version: TODO\r\n\t\t//\t\t\r\n\t\t// //Set applet version: TODO : 4 bytes in file system\r\n\t\t//\t\t\r\n\t\t//\t\t\r\n\t\t// //Set Interface version: TODO\r\n\t\t//\t\t\r\n\t\t// //Set PKCS#15 version: TODO\r\n\t\t//\t\t\r\n\t\t// //Set applet life cycle\r\n\t\t// tempBuffer[(short)(le-1)] = GPSystem.getCardState();\r\n\t\t// set the actual number of outgoing data bytes\r\n\t\tapdu.setOutgoingLength((short) chipNumber.length);\r\n\t\t// send content of buffer in apdu\r\n\t\tapdu.sendBytesLong(chipNumber, (short) 0, (short) chipNumber.length);\r\n\t\t\t\t\t\t\t\t\r\n\t\t////@ close [1/2]identityFile.ElementaryFile(_, _, identityFileData, _, _, info); // auto\r\n\t\t////@ close [1/2]valid(); // auto\r\n\t}", "private static int convertLegacyAwbMode(java.lang.String r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.hardware.camera2.legacy.LegacyResultMapper.convertLegacyAwbMode(java.lang.String):int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.hardware.camera2.legacy.LegacyResultMapper.convertLegacyAwbMode(java.lang.String):int\");\n }", "private void aac() {\n /*\n r5 = this;\n r0 = r5.bgU;\n if (r0 != 0) goto L_0x0005;\n L_0x0004:\n return;\n L_0x0005:\n r0 = r5.aad();\n r1 = r5.bgU;\n r1 = r1.getRootView();\n r1 = r1.getHeight();\n r0 = r1 - r0;\n r2 = r1 / 4;\n r3 = 0;\n r4 = 1;\n if (r0 <= r2) goto L_0x0025;\n L_0x001b:\n r2 = r5.bgS;\n if (r2 != 0) goto L_0x002f;\n L_0x001f:\n r5.bgS = r4;\n co(r4);\n goto L_0x0030;\n L_0x0025:\n r2 = r5.bgS;\n if (r2 == 0) goto L_0x002f;\n L_0x0029:\n r5.bgS = r3;\n co(r3);\n goto L_0x0030;\n L_0x002f:\n r4 = 0;\n L_0x0030:\n r2 = r5.bgT;\n if (r2 == 0) goto L_0x0049;\n L_0x0034:\n if (r4 == 0) goto L_0x0049;\n L_0x0036:\n r2 = r5.bgS;\n if (r2 == 0) goto L_0x0040;\n L_0x003a:\n r2 = r5.bgV;\n r1 = r1 - r0;\n r2.height = r1;\n goto L_0x0044;\n L_0x0040:\n r0 = r5.bgV;\n r0.height = r1;\n L_0x0044:\n r0 = r5.bgU;\n r0.requestLayout();\n L_0x0049:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.iqoption.util.am.aac():void\");\n }", "public void mo9301a(int i) {\n C1133c cVar = C1133c.this;\n StringBuilder sb = new StringBuilder();\n sb.append(\"Failed to load resource from '\");\n sb.append(str);\n sb.append(\"'\");\n cVar.mo10072d(sb.toString());\n }", "void mo57278c();", "public final void readAtomicInfo(String atInfoFileName) {\n\n CSVReader csv = null;\n String[] dat = null;\n try {\n\n csv = new CSVReader(new FileReader(atInfoFileName));\n //ignore first line\n dat = csv.readNext();\n\n //iterate over csv file to get atomic data\n while ((dat = csv.readNext()) != null) {\n this.covRad.put(dat[1], Double.parseDouble(dat[2]));\n this.atomicWeight.put(dat[1], Double.parseDouble(dat[3]));\n }\n \n } catch (FileNotFoundException ex) {\n logger.error(ex);\n } catch (IOException ex) {\n logger.error(ex);\n }\n\n }", "void mo4873a(C4718l c4718l);", "public interface C0764b {\n}", "@Test\n public void testICCDuplicateSequence() throws IOException {\n JPEGImageReader reader = createReader();\n reader.setInput(ImageIO.createImageInputStream(getClassLoaderResource(\"/jpeg/invalid-icc-duplicate-sequence-numbers-rgb-internal-kodak-srgb-jfif.jpg\")));\n\n assertEquals(345, reader.getWidth(0));\n assertEquals(540, reader.getHeight(0));\n\n BufferedImage image = reader.read(0);\n\n assertNotNull(image);\n assertEquals(345, image.getWidth());\n assertEquals(540, image.getHeight());\n\n reader.dispose();\n }", "@Test\n public void test25() throws Throwable {\n CategoryPlot categoryPlot0 = new CategoryPlot();\n SystemColor systemColor0 = SystemColor.menuText;\n categoryPlot0.setRangeCrosshairPaint(systemColor0);\n short[][] shortArray0 = new short[2][0];\n short[] shortArray1 = new short[5];\n shortArray1[0] = (short)44;\n shortArray1[1] = (short)0;\n shortArray1[2] = (short)389;\n shortArray1[3] = (short)0;\n shortArray1[4] = (short)0;\n short[] shortArray2 = new short[4];\n shortArray2[0] = (short)0;\n shortArray2[1] = (short)0;\n shortArray2[2] = (short)0;\n shortArray2[3] = (short)0;\n shortArray0[1] = shortArray2;\n ShortLookupTable shortLookupTable0 = new ShortLookupTable((int) (short)0, shortArray2);\n JFreeChart jFreeChart0 = new JFreeChart(\"\", (Plot) categoryPlot0);\n RenderingHints renderingHints0 = jFreeChart0.getRenderingHints();\n LookupOp lookupOp0 = new LookupOp((LookupTable) shortLookupTable0, renderingHints0);\n ICC_Profile[] iCC_ProfileArray0 = new ICC_Profile[2];\n // Undeclared exception!\n try { \n ICC_Profile.getInstance(\"\");\n } catch(IllegalArgumentException e) {\n //\n // Invalid ICC Profile Data\n //\n assertThrownBy(\"java.awt.color.ICC_Profile\", e);\n }\n }", "static void xri_with_acc(String passed){\n\t\tint val1 = hexa_to_deci(registers.get('A'));\n\t\tint val2 = hexa_to_deci(passed.substring(4));\n\t\tval1 = val1&val2;\n\t\tregisters.put('A',decimel_to_hexa_8bit(val1));\n\t\tmodify_status(registers.get('A'));\n\t}", "public void generateCDAFiles() throws Exception {\n\n String stopwatchStart = new SimpleDateFormat(\"yyyy-MM-dd-HH.mm.ss\").format(new Date());\n\n // file/directory locations for the app\n// String labid_file = getPropValues(\"labid-file\") + ts;\n// String comb_dir = getPropValues(\"combined-xml-dir\") + ts;\n// String mal_dir = getPropValues(\"malformed-xml-dir\") + ts;\n// String cda_dir = getPropValues(\"cda-dir\") + ts;\n\n String labid_file = getPropValues(\"labid-file\");\n String haidisplay_file = getPropValues(\"haidisplay-file\");\n String comb_dir = getPropValues(\"combined-xml-dir\");\n String mal_dir = getPropValues(\"malformed-xml-dir\");\n String cda_dir = getPropValues(\"cda-dir\"); //+ \"/\" + stopwatchStart;\n\n // hai-display must be in the same directory as the final CDAs for them to be displayed properly\n File sourceHai = new File(haidisplay_file);\n File targetHai = new File(cda_dir + \"/hai-display.xsl\");\n FileUtils.copyFile(sourceHai, targetHai);\n\n // create new XML Builder\n XMLBuilder xmlBuilder = new XMLBuilder();\n\n // creates ADT + ORU XML files in src/main/resources/ directory\n xmlBuilder.process();\n\n // get list of combined XML (ADT) files\n File dir = new File(comb_dir);\n File[] files = dir.listFiles();\n\n if (files != null) {\n for (File file : files) {\n // Transform XML files using an XSL file to CDA-like files\n\n //src/main/resources/combinedXML/[id]-source.xml\n String relPath = file.getPath();\n //[id]-source.xml\n String filename = file.getName();\n //2.16.840.1.114222.4.1.646522\n String id = filename.substring(0, filename.length() - 11);\n // System.out.println(relPath);\n // System.out.println(filename);\n // System.out.println(id);\n\n\n String inputXSL = labid_file;\n String inputXML = relPath;\n String outputLabId = mal_dir + \"/\" + id + \".xml\";\n Transform transform = new Transform();\n\n /**/\n\n /**\n String inputXSL = \"src/main/resources/labid.xsl\";\n String inputXML = \"src/main/resources/combinedXML/2.16.840.1.114222.4.1.646516-source.xml\";\n String outputLabId = \"src/main/resources/malformedCDA/2.16.840.1.114222.4.1.646516.xml\";\n Transform transform = new Transform();\n\n /**/\n\n try {\n transform.transformXML(inputXSL, inputXML, outputLabId);\n } catch (Exception e) {\n System.out.println(\"well... that didn't work...\");\n e.printStackTrace();\n }\n /**/\n\n }\n }\n\n\n //TODO: clean up Silas's CDA-like file\n // get list of malformed CDA files\n File mcdaDir = new File(mal_dir);\n File[] mcdafiles = mcdaDir.listFiles();\n\n int count = 0;\n int badCount = 0;\n List<String> badList = new ArrayList<String>();\n\n if (files != null) {\n for (File file : mcdafiles) {\n\n //src/main/resources/malformedCDA/[id].xml\n String relPath = file.getPath();\n //[id].xml\n String filename = file.getName();\n //2.16.840.1.114222.4.1.646522\n String id = filename.substring(0, filename.length() - 4);\n System.out.println(relPath);\n System.out.println(filename);\n System.out.println(id);\n\n FileReader reader = null;\n String content = \"\";\n try {\n reader = new FileReader(file);\n char[] chars = new char[(int) file.length()];\n try {\n reader.read(chars);\n } catch (IOException e) {\n e.printStackTrace();\n }\n content = new String(chars);\n try {\n reader.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n // System.out.println(content);\n\n\n int cdaRootIndex = content.indexOf(\"<ClinicalDocument\");\n if (cdaRootIndex < 1) {\n System.out.println(\"no clinical document tag found in malformed CDA with id: \" + id);\n badCount++;\n badList.add(id);\n continue;\n } else {\n String clinicalDoc = content.substring(cdaRootIndex);\n\n\n //System.out.println(clinicalDoc);\n String cleanTop = replace(clinicalDoc, \"<ClinicalDocument\", \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\" +\n \"<?xml-stylesheet type=\\\"text/xsl\\\" href=\\\"hai-display.xsl\\\"?>\\n<ClinicalDocument\");\n String cleanCDA = replace(cleanTop, \"</root>\", \"\");\n //System.out.println(cleanCDA);\n String now = new SimpleDateFormat(\"yyyy.MM.dd.HH.mm.ss\").format(new Date());\n try {\n FileUtils.writeStringToFile(new File(cda_dir + \"/\" + id + \"--\" + now + \".xml\"), cleanCDA);\n System.out.println(\"wrote to \" + cda_dir + \"/\" + id + \"--\" + now + \".xml\");\n count++;\n } catch (IOException e) {\n System.out.println(\"problem writing to \" + cda_dir + \"/\" + id + \"--\" + now + \".xml\");\n e.printStackTrace();\n }\n }\n\n }\n\n System.out.println(\"# CDA Files created: \" + count);\n System.out.println(\"# bad malformed CDAs: \" + badCount);\n for(String id: badList) {\n System.out.println(\"bad id:\" + id);\n }\n }\n }", "void citire(FileReader f);", "void mo72114c();", "private static void readArff(String fileName) {\r\n\t\ttry {\r\n\t\t\tFileInputStream stream = new FileInputStream(fileName);\r\n\t\t\tInputStreamReader reader = new InputStreamReader(stream);\r\n\t\t\tBufferedReader buffer = new BufferedReader(reader);\r\n\t\t\t\r\n\t\t\tArrayList<String> tmpColumnName = new ArrayList<String>();\r\n\t\t\t\r\n\t\t\tString line;\r\n\t\t\tint userNo = 0; // sequence number of each user\r\n\t\t\tint attributeCount = 0;\r\n\t\t\t\r\n\t\t\tmaxValue = -1;\r\n\t\t\tminValue = 99999;\r\n\t\t\t\r\n\t\t\t// Read attributes:\r\n\t\t\twhile((line = buffer.readLine()) != null && !line.equals(\"TT_EOF\")) {\r\n\t\t\t\tif (line.contains(\"@ATTRIBUTE\")) {\r\n\t\t\t\t\tString name;\r\n\t\t\t\t\t\r\n\t\t\t\t\tline = line.substring(10).trim();\r\n\t\t\t\t\tif (line.charAt(0) == '\\'') {\r\n\t\t\t\t\t\tint idx = line.substring(1).indexOf('\\'');\r\n\t\t\t\t\t\tname = line.substring(1, idx+1);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tint idx = line.substring(1).indexOf(' ');\r\n\t\t\t\t\t\tname = line.substring(0, idx+1).trim();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\ttmpColumnName.add(name);\r\n\t\t\t\t\tattributeCount++;\r\n\t\t\t\t}\r\n\t\t\t\telse if (line.contains(\"@RELATION\")) {\r\n\t\t\t\t\t// do nothing\r\n\t\t\t\t}\r\n\t\t\t\telse if (line.contains(\"@DATA\")) {\r\n\t\t\t\t\t// This is the end of attribute section!\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\telse if (line.length() <= 0) {\r\n\t\t\t\t\t// do nothing\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Set item count to data structures:\r\n\t\t\titemCount = (attributeCount - 1)/2;\r\n\t\t\tcolumnName = new String[attributeCount];\r\n\t\t\ttmpColumnName.toArray(columnName);\r\n\t\t\t\r\n\t\t\tint[] itemRateCount = new int[itemCount+1];\r\n\t\t\trateMatrix = new SparseMatrix(500000, itemCount+1); // Netflix: [480189, 17770]\r\n\t\t\t\r\n\t\t\t// Read data:\r\n\t\t\twhile((line = buffer.readLine()) != null && !line.equals(\"TT_EOF\")) {\r\n\t\t\t\tif (line.length() > 0) {\r\n\t\t\t\t\tline = line.substring(1, line.length() - 1);\r\n\t\t\t\t\t\r\n\t\t\t\t\tStringTokenizer st = new StringTokenizer (line, \",\");\r\n\t\t\t\t\t\r\n\t\t\t\t\twhile (st.hasMoreTokens()) {\r\n\t\t\t\t\t\tString token = st.nextToken().trim();\r\n\t\t\t\t\t\tint i = token.indexOf(\" \");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tint movieID, rate;\r\n\t\t\t\t\t\tint index = Integer.parseInt(token.substring(0, i));\r\n\t\t\t\t\t\tString data = token.substring(i+1);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (index == 0) { // User ID\r\n\t\t\t\t\t\t\t//int userID = Integer.parseInt(data);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tuserNo++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if (data.length() == 1) { // Rate\r\n\t\t\t\t\t\t\tmovieID = index;\r\n\t\t\t\t\t\t\trate = Integer.parseInt(data);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif (rate > maxValue) {\r\n\t\t\t\t\t\t\t\tmaxValue = rate;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse if (rate < minValue) {\r\n\t\t\t\t\t\t\t\tminValue = rate;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t(itemRateCount[movieID])++;\r\n\t\t\t\t\t\t\trateMatrix.setValue(userNo, movieID, rate);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse { // Date\r\n\t\t\t\t\t\t\t// Do not use\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tuserCount = userNo;\r\n\t\t\t\r\n\t\t\t// Reset user vector length:\r\n\t\t\trateMatrix.setSize(userCount+1, itemCount+1);\r\n\t\t\tfor (int i = 1; i <= itemCount; i++) {\r\n\t\t\t\trateMatrix.getColRef(i).setLength(userCount+1);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.println (\"Data File\\t\" + dataFileName);\r\n\t\t\tSystem.out.println (\"User Count\\t\" + userCount);\r\n\t\t\tSystem.out.println (\"Item Count\\t\" + itemCount);\r\n\t\t\tSystem.out.println (\"Rating Count\\t\" + rateMatrix.itemCount());\r\n\t\t\tSystem.out.println (\"Rating Density\\t\" + String.format(\"%.2f\", ((double) rateMatrix.itemCount() / (double) userCount / (double) itemCount * 100.0)) + \"%\");\r\n\t\t\t\r\n\t\t\tstream.close();\r\n\t\t}\r\n\t\tcatch (IOException ioe) {\r\n\t\t\tSystem.out.println (\"No such file: \" + ioe);\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t}", "public interface C31889b {\n }", "private String AccelXConversion() {\n short reading = (short) (((raw[16] & 255)) + ((raw[17] & 0x03) << 8));\n\n int x[] = fixBinaryString(Integer.toBinaryString(reading));\n return myUnsignedToSigned(x) + \"\";\n\n\n }" ]
[ "0.5998688", "0.5967803", "0.59659475", "0.5712574", "0.57119703", "0.5630092", "0.54530925", "0.54494065", "0.5397264", "0.53950846", "0.5389103", "0.53638697", "0.53420955", "0.5341712", "0.5335482", "0.5312859", "0.52700746", "0.52669483", "0.5265145", "0.5264682", "0.52510434", "0.5239956", "0.5223027", "0.522073", "0.51974994", "0.5181524", "0.51715004", "0.51702964", "0.5151881", "0.5150284", "0.5145138", "0.5142589", "0.51423645", "0.5141125", "0.51400745", "0.5109715", "0.5105501", "0.509645", "0.50848204", "0.50426096", "0.50339615", "0.50322074", "0.50297964", "0.50275517", "0.5026745", "0.5025998", "0.50251454", "0.50170904", "0.5012694", "0.5008418", "0.5006157", "0.50050783", "0.5000629", "0.49942544", "0.4989267", "0.49825296", "0.49586663", "0.49452728", "0.4941127", "0.4938279", "0.49315664", "0.4929928", "0.4920748", "0.49188867", "0.49182755", "0.49160662", "0.4914304", "0.4912308", "0.49116212", "0.4910954", "0.4908982", "0.49075234", "0.4903208", "0.4901243", "0.4894529", "0.48885503", "0.4887775", "0.48794124", "0.4879338", "0.4879162", "0.48774478", "0.4875356", "0.4874682", "0.48709914", "0.48708868", "0.48593807", "0.4859153", "0.48543492", "0.48513827", "0.48493966", "0.4847828", "0.4846605", "0.48454216", "0.48432887", "0.48414397", "0.48293522", "0.48274004", "0.4818616", "0.48184866", "0.48179507", "0.48160914" ]
0.0
-1
by cliff, 8/6/2001 for updating an module with aicc type
public boolean updAiccAu(Connection con, String domain, loginProfile prof, String aicc_crs_filename, String aicc_cst_filename, String aicc_des_filename, String aicc_au_filename, String aicc_ort_filename) throws IOException, SQLException, qdbException, qdbErrMessage, cwSysMessage { //System.out.println("mod_in_eff_start_datetime:" + mod_in_eff_start_datetime); //System.out.println("mod_in_eff_end_datetime:" + mod_in_eff_end_datetime); //System.out.println("mod_max_score:" + mod_max_score); //System.out.println("res_subtype:" + res_subtype); //System.out.println("res_src_type:" + res_src_type); //System.out.println("res_src_link:" + res_src_link); // only used for calling aicc methods dbCourse dbCos = new dbCourse(); dbCos.cos_res_id = getCosId(con, mod_res_id); try { String mod_import_xml = null; Vector vtCosDescriptor = null; Vector vtCosStructure = null; Vector vtObjectiveRelation = null; Vector vtTemp = null; crsIniFile iniFileCRS = null; try { iniFileCRS = new crsIniFile(aicc_crs_filename); } catch(IOException e) { CommonLog.error("Error in loading the iniFileCRS:" + e.toString()); throw new IOException(e.toString()); } vtCosDescriptor = dbCos.buildCosDescriptorVector(aicc_des_filename); vtCosStructure = dbCos.getCosStructureVector(aicc_cst_filename); if (aicc_ort_filename != null) { vtObjectiveRelation = dbCos.getCosObjectiveVector(aicc_ort_filename); } Hashtable htBlockElements = dbCos.buildAiccBlockElements(dbCos.getMemberRelationLst(aicc_cst_filename)); Hashtable htAuModID = new Hashtable(); Hashtable htObjObjID = new Hashtable(); BufferedReader in = null; try { in = new BufferedReader(new InputStreamReader(new FileInputStream(new File(aicc_au_filename)))); } catch(Exception e) { throw new IOException(e.toString()); } String line = null; String systemID = null; String type = null; String command_line = null; String file_name = null; String max_score = null; String mastery_score = null; String max_time_allowed = null; String time_limit_action = null; String system_vendor = null; String core_vendor = null; String web_launch = null; String au_password = null; String tempStr = null; Hashtable htAuFieldOrder = null; Hashtable htAuFieldValue = null; StringTokenizer st = null; // the first line is used to determine the field order for (;;) { try { line = in.readLine(); } catch(Exception e) { throw new IOException(e.toString()); } if (line == null) { break; } else if (line.trim().length() > 0 && line.trim().equalsIgnoreCase("") == false) { htAuFieldOrder = new Hashtable(); int index = 1; Vector vtRecord = dbCos.buildTableRecord(line); String recordElement = null; for (int i=0; i<vtRecord.size(); i++) { recordElement = (String)vtRecord.elementAt(i); htAuFieldOrder.put(recordElement.toLowerCase(), new Integer(index)); index++; } break; } } //actually there should be only one AU record in the .au file for skillsoft course for (;;) { String mod_desc = null; try { line = in.readLine(); } catch(Exception e) { throw new IOException(e.toString()); } if (line == null) { break; } else if (line.trim().length() == 0 || line.trim().equalsIgnoreCase("") == true) { continue; } else { htAuFieldValue = new Hashtable(); int index = 1; Vector vtRecord = dbCos.buildTableRecord(line); String recordElement = null; for (int i=0; i<vtRecord.size(); i++) { recordElement = (String)vtRecord.elementAt(i); htAuFieldValue.put(new Integer(index), recordElement); index++; } Integer fieldIndex = null; fieldIndex = (Integer)htAuFieldOrder.get("system_id"); systemID = (String)htAuFieldValue.get(fieldIndex); fieldIndex = (Integer)htAuFieldOrder.get("type"); type = (String)htAuFieldValue.get(fieldIndex); fieldIndex = (Integer)htAuFieldOrder.get("command_line"); command_line = (String)htAuFieldValue.get(fieldIndex); fieldIndex = (Integer)htAuFieldOrder.get("file_name"); file_name = (String)htAuFieldValue.get(fieldIndex); fieldIndex = (Integer)htAuFieldOrder.get("max_score"); max_score = (String)htAuFieldValue.get(fieldIndex); fieldIndex = (Integer)htAuFieldOrder.get("mastery_score"); mastery_score = (String)htAuFieldValue.get(fieldIndex); fieldIndex = (Integer)htAuFieldOrder.get("max_time_allowed"); max_time_allowed = (String)htAuFieldValue.get(fieldIndex); fieldIndex = (Integer)htAuFieldOrder.get("time_limit_action"); time_limit_action = (String)htAuFieldValue.get(fieldIndex); fieldIndex = (Integer)htAuFieldOrder.get("system_vendor"); system_vendor = (String)htAuFieldValue.get(fieldIndex); fieldIndex = (Integer)htAuFieldOrder.get("core_vendor"); core_vendor = (String)htAuFieldValue.get(fieldIndex); fieldIndex = (Integer)htAuFieldOrder.get("web_launch"); web_launch = (String)htAuFieldValue.get(fieldIndex); fieldIndex = (Integer)htAuFieldOrder.get("au_password"); au_password = (String)htAuFieldValue.get(fieldIndex); vtTemp = null; for (int i=0; i<vtCosDescriptor.size(); i++) { vtTemp = (Vector)vtCosDescriptor.elementAt(i); if (systemID.equalsIgnoreCase((String)vtTemp.elementAt(0)) == true) { break; } else { vtTemp = null; } } mod_import_xml = "<assignable_unit system_id=\""; mod_import_xml += dbUtils.esc4XML(systemID); mod_import_xml += "\" type=\""; mod_import_xml += dbUtils.esc4XML(type); mod_import_xml += "\" command_line=\""; mod_import_xml += dbUtils.esc4XML(command_line); mod_import_xml += "\" file_name=\""; mod_import_xml += dbUtils.esc4XML(file_name); mod_import_xml += "\" max_score=\""; mod_import_xml += dbUtils.esc4XML(max_score); mod_import_xml += "\" mastery_score=\""; mod_import_xml += dbUtils.esc4XML(mastery_score); mod_import_xml += "\" max_time_allowed=\""; mod_import_xml += dbUtils.esc4XML(max_time_allowed); mod_import_xml += "\" time_limit_action=\""; mod_import_xml += dbUtils.esc4XML(time_limit_action); mod_import_xml += "\" system_vendor=\""; mod_import_xml += dbUtils.esc4XML(system_vendor); mod_import_xml += "\" core_vendor=\""; mod_import_xml += dbUtils.esc4XML(core_vendor); mod_import_xml += "\" web_launch=\""; mod_import_xml += web_launch; mod_import_xml += "\" au_password=\""; mod_import_xml += au_password; mod_import_xml += "\" />"; if (max_score.length() > 0) { mod_max_score = Float.parseFloat(max_score);; } else { } if (mastery_score.length() > 0) { mod_pass_score = Float.parseFloat(mastery_score); } else { } if (max_time_allowed.equalsIgnoreCase("") == true || max_time_allowed.length() == 0) { } else { int hr = 0; int min = 0; int sec = 0; String strTime = null; StringTokenizer stTime = new StringTokenizer(max_time_allowed,":"); strTime = stTime.nextToken(); strTime = strTime.trim(); hr = Integer.parseInt(strTime); strTime = stTime.nextToken(); strTime = strTime.trim(); min = Integer.parseInt(strTime); strTime = stTime.nextToken(); strTime = strTime.trim(); sec = Integer.parseInt(strTime); res_duration = hr*60 + min + sec/60; } res_type = "MOD"; // res_lan = "ISO-8859-1"; res_subtype = "AICC_AU"; res_src_type = "AICC_FILES"; res_src_link = file_name; // mod_in_eff_end_datetime = Timestamp.valueOf(dbUtils.MAX_TIMESTAMP); // mod_in_eff_start_datetime = Timestamp.valueOf(dbUtils.MIN_TIMESTAMP); // truncate the length of the description //if (res_desc.length() > 200) { //res_desc = res_desc.substring(0, 200); //} upd(con, prof); updAicc(con, prof, core_vendor, au_password, mod_import_xml, time_limit_action, web_launch, iniFileCRS.getValue("Course_Creator"), res_desc, iniFileCRS.getValue("Version")); htAuModID.put(systemID, new Long(mod_res_id)); } } in.close(); Vector vtElement = null; // input AICC objectives into DB for (int i=0; i<vtCosDescriptor.size(); i++) { String objSystemID = null; String objDeveloperID = null; String objTitle = null; String objDesc = null; dbObjective dbObj = null; vtElement = (Vector)vtCosDescriptor.elementAt(i); objSystemID = (String)vtElement.elementAt(0); if (objSystemID.toLowerCase().startsWith("j") == true) { objDeveloperID = (String)vtElement.elementAt(1); objTitle = (String)vtElement.elementAt(2); objDesc = (String)vtElement.elementAt(3); dbObj = new dbObjective(); dbObj.obj_type = "AICC"; dbObj.obj_desc = dbCos.trimObjDesc(dbUtils.esc4XML(objDesc)); dbObj.obj_title = objTitle; dbObj.obj_developer_id = objDeveloperID; dbObj.obj_import_xml = "<objective developer_id=\""; dbObj.obj_import_xml += objDeveloperID; dbObj.obj_import_xml += "\" />"; int obj_id = (int)dbObj.insAicc(con, prof); htObjObjID.put(objSystemID, new Integer(obj_id)); } } if (vtObjectiveRelation != null) { vtElement = null; for (int i=0; i<vtObjectiveRelation.size(); i++) { vtElement = (Vector)vtObjectiveRelation.elementAt(i); String parentSystemID = (String)vtElement.elementAt(0); Vector vtObjID = new Vector(); String childSystemID = null; for (int j=1; j<vtElement.size(); j++) { childSystemID = (String)vtElement.elementAt(j); vtObjID.addElement((Integer)htObjObjID.get(childSystemID)); } long[] intObjID = new long[vtObjID.size()]; for (int k=0; k<vtObjID.size(); k++) { intObjID[k] = ((Integer) vtObjID.elementAt(k)).longValue(); } long[] int_parent_mod_id_lst = null; if (parentSystemID.startsWith("A") == true || parentSystemID.startsWith("a") == true) { int_parent_mod_id_lst = new long[] { ((Long)htAuModID.get(parentSystemID)).longValue() }; } // collect all AU's mod_id in that AICC Block else if (parentSystemID.startsWith("B") == true || parentSystemID.startsWith("b") == true) { Vector vtBlockElements = (Vector)htBlockElements.get(parentSystemID); int_parent_mod_id_lst = new long[vtBlockElements.size()]; String tempSystemID = null; for (int m=0; m<vtBlockElements.size(); m++) { tempSystemID = (String)vtBlockElements.elementAt(m); int_parent_mod_id_lst[m] = ((Long)htAuModID.get(tempSystemID)).longValue(); } } dbResourceObjective dbResObj = new dbResourceObjective(); // remove the previous objective relations dbResObj.removeResObj(con, int_parent_mod_id_lst); // add new objective relations dbResObj.insResObj(con, int_parent_mod_id_lst, intObjID); } } // update the cos corresponding fields, or reset the fields that is previously set // during importing an AICC course which should be reset when inserting/updating an AICC AU dbCos.updAiccCos(con, prof, null, null, null, -1, false, false); return true; } catch(qdbErrMessage e) { // rollback at qdbAction //con.rollback(); throw new qdbErrMessage(e.toString()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo54416a(C20211ac acVar);", "void update(Type type);", "public interface C0136c {\n }", "public Object fix(IModule module);", "public interface C32231g {\n /* renamed from: a */\n void mo8280a(int i, int i2, C1207m c1207m);\n}", "public interface C8843g {\n}", "Datatype internalize(Datatype arg) throws CCAException;", "public interface C32115a {\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "public interface XModule extends ru.awk.spb.xonec.XOneC.XModule\r\n{\r\n}", "public void mo1327d(ac acVar) {\n }", "public interface C13719g {\n}", "public interface C3210f extends C11871b<DeletedProgramBroadcastReceiver> {\n\n /* renamed from: com.bamtechmedia.dominguez.channels.tv.f$a */\n /* compiled from: FeatureChannelModule_ProvidesWatchNextProgramBroadcastReceiver */\n public interface C3211a extends C11872a<DeletedProgramBroadcastReceiver> {\n }\n}", "@Override\r\n\tpublic void update(int cnum) {\n\r\n\t}", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C0385a {\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C1250dr extends IInterface {\n /* renamed from: a */\n void mo12504a(brw brw, C0719a aVar);\n}", "public interface C3183a {\n}", "public interface C24717ak {\n}", "void mo304a(C0366h c0366h);", "private int getIccCardType(int r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.getIccCardType(int):int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.getIccCardType(int):int\");\n }", "public void change_type(int type_){\n\t\ttype = type_;\n\t\tif(type != 0)\n\t\t\toccupe = 1;\n\t}", "public interface C21597a {\n }", "void mo21072c();", "public void mo1554b(ac acVar) {\n }", "@Override\n\tpublic void updateInfo(Integer moduleClassId, ModuleClassInfo moduleClassInfo) throws Exception {\n\n\t}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C11910c {\n}", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "@Override\n\tpublic void RacialAIUpdate(CharactherComponent cc, AIComponent aic, float delta, PositionComponent pc,\n\t\t\tVelocityComponent vc) {\n\n\t}", "ISModifyDataType createISModifyDataType();", "public interface C9222a {\n }", "public interface C46409a {\n}", "public interface C43157d extends C1677a {\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C0764b {\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C31378a {\n /* renamed from: a */\n void mo80555a(MediaChooseResult mediaChooseResult);\n}", "public interface C0378an {\n /* renamed from: a */\n void mo3504a(C0505cw cwVar, Map<String, String> map);\n}", "public interface C0025k {\n /* renamed from: a */\n long mo49a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "void mo4873a(C4718l c4718l);", "public abstract void mo53562a(C18796a c18796a);", "static int type_of_aci(String passed){\n\t\treturn 1;\n\t}", "protected void\nsetTranspTypeElt( int type) \n\n{\n coinstate.transptype = type;\n}", "public interface C22379d {\n}", "public interface C19588a {\n }", "public void c2pAddModule(IPModule module);", "public interface C27131Gp {\n void BDE(C26391Dc r1);\n}", "UpdateType updateType();", "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C39682m {\n\n /* renamed from: com.ss.android.ugc.aweme.shortvideo.edit.m$a */\n public interface C39683a {\n /* renamed from: a */\n int mo98966a(C29296g gVar);\n\n /* renamed from: b */\n int mo98967b(C29296g gVar);\n\n /* renamed from: c */\n float mo98968c(C29296g gVar);\n }\n\n /* renamed from: com.ss.android.ugc.aweme.shortvideo.edit.m$b */\n public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }\n}", "private static int convertLegacyAwbMode(java.lang.String r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.hardware.camera2.legacy.LegacyResultMapper.convertLegacyAwbMode(java.lang.String):int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.hardware.camera2.legacy.LegacyResultMapper.convertLegacyAwbMode(java.lang.String):int\");\n }", "void mo1931a(C2848p c2848p);", "public interface C1803l extends C1813t {\n /* renamed from: b */\n C1803l mo7382b(C2778au auVar);\n\n /* renamed from: f */\n List<C1700ar> mo7233f();\n\n /* renamed from: g */\n C2841w mo7234g();\n\n /* renamed from: q */\n C1800i mo7384q();\n}", "public void setOldValues_descriptionType(int param){\n \n // setting primitive attribute tracker to true\n localOldValues_descriptionTypeTracker =\n param != java.lang.Integer.MIN_VALUE;\n \n this.localOldValues_descriptionType=param;\n \n\n }", "@Override\n public void iCGAbsAc(int icgAbsAc, int timestamp) {\n }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C16740s extends IInterface {\n /* renamed from: a */\n void mo43357a(C16726e eVar) throws RemoteException;\n}", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "@Override\n\tpublic void initUpdate() {\n\t\tgetField(\"comACtype\").setUpdatable(false);\n\t\t\n\t\tGrant g = getGrant();\n\n\t\tif (g.hasResponsibility(\"COM_API\")) {\n\t\t\tList<ObjectField> fields = getFields();\n\t\t\tfor (ObjectField field : fields) {\n\t\t\t\tfield.setUpdatable(ObjectField.UPD_ALWAYS);\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public interface C0333a {\n }", "void mo1749a(C0288c cVar);", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface C0303q extends C0291e {\n /* renamed from: a */\n void mo1747a(int i);\n\n /* renamed from: a */\n void mo1749a(C0288c cVar);\n\n /* renamed from: a */\n void mo1751a(byte[] bArr);\n\n /* renamed from: b */\n void mo1753b(int i);\n\n /* renamed from: c */\n void mo1754c(int i);\n\n /* renamed from: d */\n void mo1755d(int i);\n\n /* renamed from: e */\n int mo1756e(int i);\n\n /* renamed from: g */\n int mo1760g();\n\n /* renamed from: g */\n void mo1761g(int i);\n\n /* renamed from: h */\n void mo1763h(int i);\n}", "public interface C5527c {\n /* renamed from: a */\n int mo4095a(int i);\n\n /* renamed from: b */\n C5537g mo4096b(int i);\n}", "public abstract void mo90486a(C9515Ad ad);", "void mo5289a(C5102c c5102c);", "public interface C22383h {\n}", "public interface C1656t {\n /* renamed from: a */\n void mo7350a();\n\n /* renamed from: a */\n void mo7351a(C1655s sVar);\n\n /* renamed from: a */\n void mo7352a(C1655s sVar, AdError adError);\n\n /* renamed from: b */\n void mo7353b();\n\n /* renamed from: b */\n void mo7354b(C1655s sVar);\n\n /* renamed from: c */\n void mo7355c(C1655s sVar);\n\n /* renamed from: d */\n void mo7356d(C1655s sVar);\n\n /* renamed from: e */\n void mo7357e(C1655s sVar);\n\n /* renamed from: f */\n void mo7358f(C1655s sVar);\n}", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public synchronized static void internal_updateKnownTypes() {\r\n Set<ChangeLogType> changeLogTypes = GrouperDAOFactory.getFactory().getChangeLogType().findAll();\r\n GrouperCache<MultiKey, ChangeLogType> newTypes = new GrouperCache<MultiKey, ChangeLogType>(\r\n ChangeLogTypeFinder.class.getName() + \".typeCache\", 10000, false, 60*10, 60*10, false);\r\n \r\n Map<String, ChangeLogType> newTypesById = new HashMap<String, ChangeLogType>();\r\n \r\n for (ChangeLogType changeLogType : GrouperUtil.nonNull(changeLogTypes)) {\r\n newTypes.put(new MultiKey(changeLogType.getChangeLogCategory(), changeLogType.getActionName()), changeLogType);\r\n newTypesById.put(changeLogType.getId(), changeLogType);\r\n }\r\n \r\n //add builtins if necessary\r\n internal_updateBuiltinTypesOnce(newTypes, newTypesById);\r\n \r\n types = newTypes;\r\n typesById = newTypesById;\r\n }", "private void setBasicType(Class c)\n {\n if (Boolean.class.equals(c))\n {\n type = BasicTypes.BOOLEAN;\n }\n else if (Character.class.equals(c))\n {\n type = BasicTypes.CHARACTER;\n }\n else if (Byte.class.equals(c))\n {\n type = BasicTypes.BYTE;\n }\n else if (Short.class.equals(c))\n {\n type = BasicTypes.SHORT;\n }\n else if (Integer.class.equals(c))\n {\n type = BasicTypes.INTEGER;\n }\n else if (Long.class.equals(c))\n {\n type = BasicTypes.LONG;\n }\n else if (Float.class.equals(c))\n {\n type = BasicTypes.FLOAT;\n }\n else if (Double.class.equals(c))\n {\n type = BasicTypes.DOUBLE;\n }\n else\n {\n type = BasicTypes.OTHER;\n }\n }", "void ModifyInterface(AirPollution airPollution);", "public abstract void mo70702a(C30989b c30989b);", "public interface C9223b {\n }", "public interface C3803p {\n void mo4312a(C3922o c3922o);\n}", "public interface C20779a {\n /* renamed from: a */\n C15430g mo56154a();\n\n /* renamed from: a */\n void mo56155a(float f);\n\n /* renamed from: a */\n void mo56156a(int i, int i2);\n\n /* renamed from: b */\n float mo56157b();\n\n /* renamed from: b */\n boolean mo56158b(int i, int i2);\n\n /* renamed from: c */\n int[] mo56159c();\n\n /* renamed from: d */\n int[] mo56160d();\n\n /* renamed from: e */\n void mo56161e();\n\n /* renamed from: f */\n ReactionWindowInfo mo56162f();\n\n /* renamed from: g */\n void mo56163g();\n}", "void mo8712a(C9714a c9714a);", "public interface C0389gj extends C0388gi {\n}", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "public interface C1481i {\n /* renamed from: a */\n Bitmap mo6659a(Context context, String str, C1492a aVar);\n\n /* renamed from: a */\n void mo6660a(Context context, String str, ImageView imageView, C1492a aVar);\n\n /* renamed from: a */\n void mo6661a(boolean z);\n}", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "void set(ByteModule byteModule);", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "ISModifyComponent createISModifyComponent();", "abstract void set(ByteModule byteModule);", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C0984b extends C0983a {\n}", "public interface C3660a {\n /* renamed from: a */\n void mo9777a();\n }", "public interface C1279b extends C1278a {\n}", "public interface C46870h {\n /* renamed from: a */\n long mo117970a();\n}", "@Override\n\tpublic void update(ConditionalCharacteristicSpecification acs) {\n\n\t}", "public interface C26438t {\n /* renamed from: b */\n void mo5959b(boolean z, String str, Bundle bundle);\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}" ]
[ "0.56541157", "0.56145257", "0.5570465", "0.55625147", "0.55582935", "0.5515869", "0.5494987", "0.5468901", "0.54623723", "0.5449437", "0.54144347", "0.54077166", "0.54051435", "0.5396177", "0.5385717", "0.538177", "0.53745127", "0.53547525", "0.5354564", "0.5345365", "0.5335381", "0.53347135", "0.5332347", "0.5328322", "0.53093547", "0.5308246", "0.53025174", "0.52980876", "0.52977234", "0.52968955", "0.529253", "0.52904004", "0.52866894", "0.5263338", "0.5251396", "0.52347463", "0.5226388", "0.52260697", "0.521889", "0.5217164", "0.5213985", "0.5212731", "0.52121824", "0.52015805", "0.5200163", "0.51990235", "0.51920074", "0.5191758", "0.518999", "0.5186202", "0.51810145", "0.51802665", "0.5178293", "0.51716685", "0.5171329", "0.51631564", "0.5158868", "0.51564807", "0.5155736", "0.5152813", "0.5150511", "0.51491934", "0.5148784", "0.5145723", "0.5141674", "0.5136941", "0.51267684", "0.5124529", "0.5123615", "0.5123445", "0.5121353", "0.5118447", "0.5117037", "0.51135606", "0.51120734", "0.5110486", "0.509839", "0.50966793", "0.5095355", "0.508954", "0.5088012", "0.5087966", "0.5086286", "0.5083013", "0.5072913", "0.50666803", "0.5066393", "0.5065356", "0.5062995", "0.50593203", "0.5053343", "0.5047354", "0.5046607", "0.50456417", "0.50418705", "0.50409454", "0.5040012", "0.5025832", "0.50198174", "0.5019088" ]
0.57360107
0
end of AICC specific methods
public void updBasicInfo(Connection con, loginProfile prof, boolean isChangeDate) throws qdbException, qdbErrMessage, cwSysMessage { try { res_id = mod_res_id; res_type = RES_TYPE_MOD; res_upd_user = prof.usr_id; // check User Right // checkModifyPermission(con, prof); // if (!dbResourcePermission.hasPermission(con, mod_res_id, prof, // dbResourcePermission.RIGHT_WRITE)) { // throw new qdbErrMessage(dbResourcePermission.NO_RIGHT_WRITE_MSG); // } // check timeStamp super.checkTimeStamp(con); super.updBasicInfo(con, isChangeDate); // tricky! upd instructor only when has instructor inputted if (mod_instructor_ent_id_lst != null) { dbResourcePermission.delUserRoleIsNull(con, mod_res_id); /* * if( mod_is_public && !mod_public_need_enrol ) * dbResourcePermission * .save(con,mod_res_id,prof.root_ent_id,null,true,false,true); */ for (int i = 0; i < mod_instructor_ent_id_lst.length; i++) { dbResourcePermission.save(con, mod_res_id, mod_instructor_ent_id_lst[i], null, true, true, false); } } String SQL; if (mod_in_eff_start_datetime != null && dbUtils.isMinTimestamp(mod_in_eff_start_datetime)) { mod_in_eff_start_datetime = dbUtils.getTime(con); } SQL = "update Module set mod_eff_start_datetime = ?, " + "mod_eff_end_datetime = ? " + " , mod_pass_score = ? " + " , mod_max_score = ? " + "where mod_res_id = ? "; PreparedStatement stmt = con.prepareStatement(SQL); int index = 1; stmt.setTimestamp(index++, mod_in_eff_start_datetime); stmt.setTimestamp(index++, mod_in_eff_end_datetime); stmt.setFloat(index++, mod_pass_score); stmt.setFloat(index++, mod_max_score); stmt.setLong(index++, mod_res_id); int stmtResult = stmt.executeUpdate(); stmt.close(); if (stmtResult != 1) { con.rollback(); throw new qdbException("Failed to update status."); } return; } catch (SQLException e) { throw new qdbException("SQL Error: " + e.getMessage()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void iCGAbsAc(int icgAbsAc, int timestamp) {\n }", "static void aci_data_with_acc(String passed){\n\t\tint sum = hexa_to_deci(registers.get('A'));\n\t\tsum+=(CS?1:0);\n\t\tsum+=hexa_to_deci(passed.substring(4));\n\t\tCS = sum>255?true:false;\n\t\tregisters.put('A',decimel_to_hexa_8bit(sum));\n\t\tmodify_status(registers.get('A'));\n\t}", "private static void cajas() {\n\t\t\n\t}", "public abstract int forca();", "protected void mo6255a() {\n }", "public final void mo51373a() {\n }", "public void mo4359a() {\n }", "private void aac() {\n /*\n r5 = this;\n r0 = r5.bgU;\n if (r0 != 0) goto L_0x0005;\n L_0x0004:\n return;\n L_0x0005:\n r0 = r5.aad();\n r1 = r5.bgU;\n r1 = r1.getRootView();\n r1 = r1.getHeight();\n r0 = r1 - r0;\n r2 = r1 / 4;\n r3 = 0;\n r4 = 1;\n if (r0 <= r2) goto L_0x0025;\n L_0x001b:\n r2 = r5.bgS;\n if (r2 != 0) goto L_0x002f;\n L_0x001f:\n r5.bgS = r4;\n co(r4);\n goto L_0x0030;\n L_0x0025:\n r2 = r5.bgS;\n if (r2 == 0) goto L_0x002f;\n L_0x0029:\n r5.bgS = r3;\n co(r3);\n goto L_0x0030;\n L_0x002f:\n r4 = 0;\n L_0x0030:\n r2 = r5.bgT;\n if (r2 == 0) goto L_0x0049;\n L_0x0034:\n if (r4 == 0) goto L_0x0049;\n L_0x0036:\n r2 = r5.bgS;\n if (r2 == 0) goto L_0x0040;\n L_0x003a:\n r2 = r5.bgV;\n r1 = r1 - r0;\n r2.height = r1;\n goto L_0x0044;\n L_0x0040:\n r0 = r5.bgV;\n r0.height = r1;\n L_0x0044:\n r0 = r5.bgU;\n r0.requestLayout();\n L_0x0049:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.iqoption.util.am.aac():void\");\n }", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "static void adi_data_with_acc(String passed){\n\t\tint sum = hexa_to_deci(registers.get('A'));\n\t\tsum+=hexa_to_deci(passed.substring(4));\n\t\tCS = sum>255?true:false;\n\t\tregisters.put('A',decimel_to_hexa_8bit(sum));\n\t\tmodify_status(registers.get('A'));\n\t}", "public abstract void mo53562a(C18796a c18796a);", "public abstract void mo90486a(C9515Ad ad);", "public void mo6081a() {\n }", "@Override\n\tpublic void ccc() {\n\t\t\n\t}", "public void mo9848a() {\n }", "private USI_ADRC() {}", "public final void mo75262ac() {\n super.mo75262ac();\n m110455aC();\n m110453aA();\n m110465az();\n }", "void mo21072c();", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void mo1327d(ac acVar) {\n }", "public void mo38117a() {\n }", "public void mo12628c() {\n }", "private void getAI(){\n\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "static void ani_with_acc(String passed){\n\t\tint val1 = hexa_to_deci(registers.get('A'));\n\t\tint val2 = hexa_to_deci(passed.substring(4));\n\t\tval1 = val1&val2;\n\t\tregisters.put('A',decimel_to_hexa_8bit(val1));\n\t\tmodify_status(registers.get('A'));\n\t}", "void mo54416a(C20211ac acVar);", "public interface AIK {\n ColorStateList AGZ(AnonymousClass7R3 r1);\n\n float AL0(AnonymousClass7R3 r1);\n\n float APW(AnonymousClass7R3 r1);\n\n float AQJ(AnonymousClass7R3 r1);\n\n float AQL(AnonymousClass7R3 r1);\n\n float ATV(AnonymousClass7R3 r1);\n\n void AdX();\n\n void Add(AnonymousClass7R3 r1, Context context, ColorStateList colorStateList, float f, float f2, float f3);\n\n void AxT(AnonymousClass7R3 r1);\n\n void BFN(AnonymousClass7R3 r1);\n\n void BgA(AnonymousClass7R3 r1, ColorStateList colorStateList);\n\n void BhK(AnonymousClass7R3 r1, float f);\n\n void Bin(AnonymousClass7R3 r1, float f);\n\n void Bjy(AnonymousClass7R3 r1, float f);\n}", "static void cma_with_acc(String passed){\n\t\tint val = hexa_to_deci(registers.get('A'));\n\t\tString bin = Integer.toBinaryString(val);\n\t\tfor(int i=bin.length();i<8;i++)\n\t\t\tbin = \"0\"+bin;\n\t\tval=0;\n\t\tfor(int i=7;i>=0;i--)\n\t\t\tif(bin.charAt(i)=='0')\n\t\t\t\tval+=(Math.pow(2,7-i));\n\t\tregisters.put('A',decimel_to_hexa_8bit(val));\n\t}", "@SuppressWarnings(\"unused\")\r\n private void findAbdomenVOI() {\r\n \r\n // find the center of mass of the single label object in the sliceBuffer (abdomenImage)\r\n findAbdomenCM();\r\n int xcm = centerOfMass[0];\r\n int ycm = centerOfMass[1];\r\n\r\n ArrayList<Integer> xValsAbdomenVOI = new ArrayList<Integer>();\r\n ArrayList<Integer> yValsAbdomenVOI = new ArrayList<Integer>();\r\n\r\n // angle in radians\r\n double angleRad;\r\n \r\n for (int angle = 39; angle < 45; angle += 3) {\r\n int x, y, yOffset;\r\n double scaleFactor; // reduces the number of trig operations that must be performed\r\n \r\n angleRad = Math.PI * angle / 180.0;\r\n if (angle > 315 || angle <= 45) {\r\n scaleFactor = Math.tan(angleRad);\r\n x = xDim;\r\n y = ycm;\r\n yOffset = y * xDim;\r\n while (x > xcm && sliceBuffer[yOffset + x] != abdomenTissueLabel) {\r\n x--;\r\n y = ycm - (int)((x - xcm) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n } else if (angle > 45 && angle <= 135) {\r\n scaleFactor = (Math.tan((Math.PI / 2.0) - angleRad));\r\n x = xcm;\r\n y = 0;\r\n yOffset = y * xDim;\r\n while (y < ycm && sliceBuffer[yOffset + x] != abdomenTissueLabel) {\r\n y++;\r\n x = xcm + (int)((ycm - y) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n } else if (angle > 135 && angle <= 225) {\r\n scaleFactor = Math.tan(Math.PI - angleRad);\r\n x = 0;\r\n y = ycm;\r\n yOffset = y * xDim;\r\n while (x < xcm && sliceBuffer[yOffset + x] != abdomenTissueLabel) {\r\n x++;\r\n y = ycm - (int)((xcm - x) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n } else if (angle > 225 && angle <= 315) {\r\n scaleFactor = Math.tan((3.0 * Math.PI / 2.0) - angleRad);\r\n x = xcm;\r\n y = yDim;\r\n yOffset = y * xDim;\r\n while (y < yDim && sliceBuffer[yOffset + x] == abdomenTissueLabel) {\r\n y--;\r\n x = xcm - (int)((y - ycm) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n }\r\n } // end for (angle = 0; ...\r\n \r\n int[] x1 = new int[xValsAbdomenVOI.size()];\r\n int[] y1 = new int[xValsAbdomenVOI.size()];\r\n int[] z1 = new int[xValsAbdomenVOI.size()];\r\n for(int idx = 0; idx < xValsAbdomenVOI.size(); idx++) {\r\n x1[idx] = xValsAbdomenVOI.get(idx);\r\n y1[idx] = xValsAbdomenVOI.get(idx);\r\n z1[idx] = 0;\r\n }\r\n\r\n // make the VOI's and add the points to them\r\n abdomenVOI = new VOI((short)0, \"Abdomen\");\r\n abdomenVOI.importCurve(x1, y1, z1);\r\n\r\n\r\n }", "public void acaba() \n\t\t{\n\t\t\tsigo2 = false;\n\t\t}", "static void perform_aci(String passed){\n\t\tint type = type_of_aci(passed);\n\t\tswitch(type){\n\t\tcase 1:\n\t\t\taci_data_with_acc(passed);\n\t\t\tbreak;\n\t\t}\n\t}", "public abstract C7034m mo24416a();", "public void redibujarAlgoformers() {\n\t\t\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "static void cpi_with_acc(String passed){\n\t\tint val1 = hexa_to_deci(registers.get('A'));\n\t\tint val2 = hexa_to_deci(passed.substring(4));\n\t\tS = val1>=val2?false:true;\n\t\tval2 = 256-val2;\n\t\tval2%=256;\n\t\tval1+=val2;\n\t\tCS = val1>255?true:false;\n\t\tString b = Integer.toBinaryString(val1);\n\t\tint ones=0;\n\t\tfor(int i=0;i<b.length();i++)\n\t\t\tif(b.charAt(i)=='1')\n\t\t\t\tones++;\n\t\tZ = ones==0?true:false;\n\t\tP = ones%2==0?true:false;\n\t}", "public interface C0136c {\n }", "void mo57278c();", "private final void asx() {\n /*\n r12 = this;\n r0 = r12.cFE;\n if (r0 == 0) goto L_0x0073;\n L_0x0004:\n r1 = r12.cxs;\n if (r1 == 0) goto L_0x0073;\n L_0x0008:\n r1 = r12.ayL;\n if (r1 != 0) goto L_0x000d;\n L_0x000c:\n goto L_0x0073;\n L_0x000d:\n r2 = 0;\n if (r1 == 0) goto L_0x0027;\n L_0x0010:\n r1 = r1.Km();\n if (r1 == 0) goto L_0x0027;\n L_0x0016:\n r1 = r1.aar();\n if (r1 == 0) goto L_0x0027;\n L_0x001c:\n r3 = r0.getName();\n r1 = r1.get(r3);\n r1 = (java.util.ArrayList) r1;\n goto L_0x0028;\n L_0x0027:\n r1 = r2;\n L_0x0028:\n if (r1 == 0) goto L_0x0051;\n L_0x002a:\n r1 = (java.lang.Iterable) r1;\n r1 = kotlin.collections.u.Z(r1);\n if (r1 == 0) goto L_0x0051;\n L_0x0032:\n r3 = new com.iqoption.deposit.light.perform.DepositPerformLightFragment$setPresets$items$1;\n r3.<init>(r12);\n r3 = (kotlin.jvm.a.b) r3;\n r1 = kotlin.sequences.n.b(r1, r3);\n if (r1 == 0) goto L_0x0051;\n L_0x003f:\n r3 = new com.iqoption.deposit.light.perform.DepositPerformLightFragment$setPresets$items$2;\n r3.<init>(r0);\n r3 = (kotlin.jvm.a.b) r3;\n r1 = kotlin.sequences.n.f(r1, r3);\n if (r1 == 0) goto L_0x0051;\n L_0x004c:\n r1 = kotlin.sequences.n.f(r1);\n goto L_0x0052;\n L_0x0051:\n r1 = r2;\n L_0x0052:\n r3 = r12.asr();\n if (r1 == 0) goto L_0x0059;\n L_0x0058:\n goto L_0x005d;\n L_0x0059:\n r1 = kotlin.collections.m.emptyList();\n L_0x005d:\n r4 = r12.bub;\n if (r4 == 0) goto L_0x006d;\n L_0x0061:\n r5 = 0;\n r6 = 0;\n r7 = 1;\n r8 = 0;\n r9 = 0;\n r10 = 19;\n r11 = 0;\n r2 = com.iqoption.core.util.e.a(r4, r5, r6, r7, r8, r9, r10, r11);\n L_0x006d:\n r3.c(r1, r2);\n r12.d(r0);\n L_0x0073:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.iqoption.deposit.light.perform.c.asx():void\");\n }", "public void mo1531a() {\n }", "protected void inizializzazione2()\r\n\t\t\tthrows RestrizioniSpecException {\r\n\t\t\t// si preleva una lista che contiene tutti gli AttacDecl\r\n\t\t\t// che hanno idecl come interazione di input\r\n\t\t\tArchiAttachments archiAttachments = this.archiType.getTopologia().getAttachments();\r\n\t\t\t// list2 contiene i collegamenti in cui l'istanza che si sta considerando\r\n\t\t\t// risulta essere un'istanza di input\r\n\t\t\tList<AttacDecl> list2 = getAttacDeclsAEIInput(idecl.getName(), archiAttachments);\r\n\t\t\tattacsDeclInput = list2;\r\n\t\t\t// si prelevano i nomi degli AEIs di output\r\n\t\t\t// list3 contiene i nomi degli aei di output in cui l'aei attuale\r\n\t\t\t// risulta essere l'aei di input\r\n\t\t\tList<String> list3 = getAEIsOutputFromAttacDecls(list2);\r\n\t\t\t// si preleva una lista che contiene tutti gli AttacDecl\r\n\t\t\t// che hanno idecl come aei di output\r\n\t\t\tList<AttacDecl> list = getAttacDeclsAEIOutput(idecl.getName(), archiAttachments);\r\n\t\t\tattacsDeclOutput = list;\r\n\t\t\t// si prelevano i nomi degli AEIs di input tra i collegamenti in cui l'istanza considerata\r\n\t\t\t// risulta essere un AEI di output\r\n\t\t\tList<String> list5 = getAEIsInputFromAttacDecls(list);\r\n\t\t\tArchiElemInstances archiElemInstances = this.archiType.getTopologia().getAEIs();\r\n\t\t\t// si prelevano le dichiarazioni degli AEI di output collegati\r\n\t\t\tList<AEIdecl> list9 = getAEIsFromNames(list3, archiElemInstances);\r\n\t\t\tAEIsDeclInput = list9;\r\n\t\t\t// si prelevano le dichiarazioni degli AEI di input collegati\r\n\t\t\tList<AEIdecl> list10 = getAEIsFromNames(list5, archiElemInstances);\r\n\t\t\tAEIsDeclOutput = list10;\r\n\t\t\t// si restituiscono delle liste contenenti le equivalenze \r\n\t\t\t// corrispondeti agli ElemType di list9 e list10\r\n\t\t\tList<IEquivalenza> list7 = getEquivalenze(this.archiType, AEIsDeclInput);\r\n\t\t\tthis.equivalenzeInput = list7;\r\n\t\t\tList<IEquivalenza> list8 = getEquivalenze(this.archiType, AEIsDeclOutput);\r\n\t\t\tthis.equivalenzeOutput = list8;\r\n\t\t\t}", "void mo304a(C0366h c0366h);", "gov.nih.nlm.ncbi.www.CodeBreakDocument.CodeBreak.Aa getAa();", "public com.introvd.template.sdk.model.editor.EffectInfoModel aqe() {\n /*\n r4 = this;\n java.util.List<com.introvd.template.sdk.model.editor.EffectInfoModel> r0 = r4.dcB\n int r0 = r0.size()\n if (r0 <= 0) goto L_0x0036\n java.util.List<com.introvd.template.sdk.model.editor.EffectInfoModel> r0 = r4.dcB\n int r0 = r0.size()\n int r0 = r0 + -1\n L_0x0010:\n if (r0 < 0) goto L_0x0036\n java.util.List<com.introvd.template.sdk.model.editor.EffectInfoModel> r1 = r4.dcB\n java.lang.Object r1 = r1.get(r0)\n com.introvd.template.sdk.model.editor.EffectInfoModel r1 = (com.introvd.template.sdk.model.editor.EffectInfoModel) r1\n if (r1 == 0) goto L_0x0033\n long r2 = r1.mTemplateId\n java.lang.String r2 = com.introvd.template.sdk.p391g.C8450a.m24469bn(r2)\n java.lang.String r2 = r2.toLowerCase()\n boolean r2 = com.introvd.template.editor.p266h.C6386d.m18377iL(r2)\n if (r2 != 0) goto L_0x0033\n boolean r2 = r1.isbNeedDownload()\n if (r2 != 0) goto L_0x0033\n goto L_0x0037\n L_0x0033:\n int r0 = r0 + -1\n goto L_0x0010\n L_0x0036:\n r1 = 0\n L_0x0037:\n if (r1 != 0) goto L_0x003d\n com.introvd.template.sdk.model.editor.EffectInfoModel r1 = r4.apZ()\n L_0x003d:\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.introvd.template.editor.preview.fragment.p274a.C6638d.aqe():com.introvd.template.sdk.model.editor.EffectInfoModel\");\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public abstract void mo70703a(C16180m c16180m);", "@Override\n\tpublic void anular() {\n\n\t}", "public boolean updAiccAu(Connection con, String domain, loginProfile prof, String aicc_crs_filename, String aicc_cst_filename, String aicc_des_filename, String aicc_au_filename, String aicc_ort_filename)\n throws IOException, SQLException, qdbException, qdbErrMessage, cwSysMessage {\n//System.out.println(\"mod_in_eff_start_datetime:\" + mod_in_eff_start_datetime);\n//System.out.println(\"mod_in_eff_end_datetime:\" + mod_in_eff_end_datetime);\n//System.out.println(\"mod_max_score:\" + mod_max_score);\n//System.out.println(\"res_subtype:\" + res_subtype);\n//System.out.println(\"res_src_type:\" + res_src_type);\n//System.out.println(\"res_src_link:\" + res_src_link);\n // only used for calling aicc methods\n dbCourse dbCos = new dbCourse();\n dbCos.cos_res_id = getCosId(con, mod_res_id);\n\n try {\n String mod_import_xml = null;\n\n Vector vtCosDescriptor = null;\n Vector vtCosStructure = null;\n Vector vtObjectiveRelation = null;\n\n Vector vtTemp = null;\n\n crsIniFile iniFileCRS = null;\n try {\n iniFileCRS = new crsIniFile(aicc_crs_filename);\n } catch(IOException e) {\n \tCommonLog.error(\"Error in loading the iniFileCRS:\" + e.toString());\n throw new IOException(e.toString());\n }\n\n vtCosDescriptor = dbCos.buildCosDescriptorVector(aicc_des_filename);\n vtCosStructure = dbCos.getCosStructureVector(aicc_cst_filename);\n if (aicc_ort_filename != null) {\n vtObjectiveRelation = dbCos.getCosObjectiveVector(aicc_ort_filename);\n }\n Hashtable htBlockElements = dbCos.buildAiccBlockElements(dbCos.getMemberRelationLst(aicc_cst_filename));\n\n Hashtable htAuModID = new Hashtable();\n Hashtable htObjObjID = new Hashtable();\n\n BufferedReader in = null;\n try {\n in = new BufferedReader(new InputStreamReader(new FileInputStream(new File(aicc_au_filename))));\n } catch(Exception e) {\n throw new IOException(e.toString());\n }\n String line = null;\n String systemID = null;\n String type = null;\n String command_line = null;\n String file_name = null;\n String max_score = null;\n String mastery_score = null;\n String max_time_allowed = null;\n String time_limit_action = null;\n String system_vendor = null;\n String core_vendor = null;\n String web_launch = null;\n String au_password = null;\n\n String tempStr = null;\n\n Hashtable htAuFieldOrder = null;\n Hashtable htAuFieldValue = null;\n\n StringTokenizer st = null;\n // the first line is used to determine the field order\n for (;;) {\n try {\n line = in.readLine();\n } catch(Exception e) {\n throw new IOException(e.toString());\n }\n if (line == null) {\n break;\n }\n else if (line.trim().length() > 0 && line.trim().equalsIgnoreCase(\"\") == false) {\n htAuFieldOrder = new Hashtable();\n\n int index = 1;\n\n Vector vtRecord = dbCos.buildTableRecord(line);\n String recordElement = null;\n for (int i=0; i<vtRecord.size(); i++) {\n recordElement = (String)vtRecord.elementAt(i);\n htAuFieldOrder.put(recordElement.toLowerCase(), new Integer(index));\n index++;\n }\n\n break;\n }\n }\n\n //actually there should be only one AU record in the .au file for skillsoft course\n for (;;) {\n String mod_desc = null;\n\n try {\n line = in.readLine();\n } catch(Exception e) {\n throw new IOException(e.toString());\n }\n if (line == null) {\n break;\n }\n else if (line.trim().length() == 0 || line.trim().equalsIgnoreCase(\"\") == true) {\n continue;\n }\n else {\n htAuFieldValue = new Hashtable();\n\n int index = 1;\n\n Vector vtRecord = dbCos.buildTableRecord(line);\n String recordElement = null;\n for (int i=0; i<vtRecord.size(); i++) {\n recordElement = (String)vtRecord.elementAt(i);\n htAuFieldValue.put(new Integer(index), recordElement);\n index++;\n }\n\n Integer fieldIndex = null;\n\n fieldIndex = (Integer)htAuFieldOrder.get(\"system_id\");\n systemID = (String)htAuFieldValue.get(fieldIndex);\n\n fieldIndex = (Integer)htAuFieldOrder.get(\"type\");\n type = (String)htAuFieldValue.get(fieldIndex);\n\n fieldIndex = (Integer)htAuFieldOrder.get(\"command_line\");\n command_line = (String)htAuFieldValue.get(fieldIndex);\n\n fieldIndex = (Integer)htAuFieldOrder.get(\"file_name\");\n file_name = (String)htAuFieldValue.get(fieldIndex);\n\n fieldIndex = (Integer)htAuFieldOrder.get(\"max_score\");\n max_score = (String)htAuFieldValue.get(fieldIndex);\n\n fieldIndex = (Integer)htAuFieldOrder.get(\"mastery_score\");\n mastery_score = (String)htAuFieldValue.get(fieldIndex);\n\n fieldIndex = (Integer)htAuFieldOrder.get(\"max_time_allowed\");\n max_time_allowed = (String)htAuFieldValue.get(fieldIndex);\n\n fieldIndex = (Integer)htAuFieldOrder.get(\"time_limit_action\");\n time_limit_action = (String)htAuFieldValue.get(fieldIndex);\n\n fieldIndex = (Integer)htAuFieldOrder.get(\"system_vendor\");\n system_vendor = (String)htAuFieldValue.get(fieldIndex);\n\n fieldIndex = (Integer)htAuFieldOrder.get(\"core_vendor\");\n core_vendor = (String)htAuFieldValue.get(fieldIndex);\n\n fieldIndex = (Integer)htAuFieldOrder.get(\"web_launch\");\n web_launch = (String)htAuFieldValue.get(fieldIndex);\n\n fieldIndex = (Integer)htAuFieldOrder.get(\"au_password\");\n au_password = (String)htAuFieldValue.get(fieldIndex);\n\n vtTemp = null;\n for (int i=0; i<vtCosDescriptor.size(); i++) {\n vtTemp = (Vector)vtCosDescriptor.elementAt(i);\n if (systemID.equalsIgnoreCase((String)vtTemp.elementAt(0)) == true) {\n break;\n }\n else {\n vtTemp = null;\n }\n }\n\n mod_import_xml = \"<assignable_unit system_id=\\\"\";\n mod_import_xml += dbUtils.esc4XML(systemID);\n mod_import_xml += \"\\\" type=\\\"\";\n mod_import_xml += dbUtils.esc4XML(type);\n mod_import_xml += \"\\\" command_line=\\\"\";\n mod_import_xml += dbUtils.esc4XML(command_line);\n mod_import_xml += \"\\\" file_name=\\\"\";\n mod_import_xml += dbUtils.esc4XML(file_name);\n mod_import_xml += \"\\\" max_score=\\\"\";\n mod_import_xml += dbUtils.esc4XML(max_score);\n mod_import_xml += \"\\\" mastery_score=\\\"\";\n mod_import_xml += dbUtils.esc4XML(mastery_score);\n mod_import_xml += \"\\\" max_time_allowed=\\\"\";\n mod_import_xml += dbUtils.esc4XML(max_time_allowed);\n mod_import_xml += \"\\\" time_limit_action=\\\"\";\n mod_import_xml += dbUtils.esc4XML(time_limit_action);\n mod_import_xml += \"\\\" system_vendor=\\\"\";\n mod_import_xml += dbUtils.esc4XML(system_vendor);\n mod_import_xml += \"\\\" core_vendor=\\\"\";\n mod_import_xml += dbUtils.esc4XML(core_vendor);\n mod_import_xml += \"\\\" web_launch=\\\"\";\n mod_import_xml += web_launch;\n mod_import_xml += \"\\\" au_password=\\\"\";\n mod_import_xml += au_password;\n\n mod_import_xml += \"\\\" />\";\n\n if (max_score.length() > 0) {\n mod_max_score = Float.parseFloat(max_score);;\n }\n else {\n }\n\n if (mastery_score.length() > 0) {\n mod_pass_score = Float.parseFloat(mastery_score);\n }\n else {\n }\n\n if (max_time_allowed.equalsIgnoreCase(\"\") == true || max_time_allowed.length() == 0) {\n }\n else {\n int hr = 0;\n int min = 0;\n int sec = 0;\n String strTime = null;\n StringTokenizer stTime = new StringTokenizer(max_time_allowed,\":\");\n\n strTime = stTime.nextToken();\n strTime = strTime.trim();\n hr = Integer.parseInt(strTime);\n\n strTime = stTime.nextToken();\n strTime = strTime.trim();\n min = Integer.parseInt(strTime);\n\n strTime = stTime.nextToken();\n strTime = strTime.trim();\n sec = Integer.parseInt(strTime);\n\n res_duration = hr*60 + min + sec/60;\n }\n\n res_type = \"MOD\";\n// res_lan = \"ISO-8859-1\";\n res_subtype = \"AICC_AU\";\n res_src_type = \"AICC_FILES\";\n res_src_link = file_name;\n// mod_in_eff_end_datetime = Timestamp.valueOf(dbUtils.MAX_TIMESTAMP);\n// mod_in_eff_start_datetime = Timestamp.valueOf(dbUtils.MIN_TIMESTAMP);\n\n // truncate the length of the description\n //if (res_desc.length() > 200) {\n //res_desc = res_desc.substring(0, 200);\n //}\n\n upd(con, prof);\n updAicc(con, prof, core_vendor, au_password, mod_import_xml, time_limit_action, web_launch, iniFileCRS.getValue(\"Course_Creator\"), res_desc, iniFileCRS.getValue(\"Version\"));\n\n htAuModID.put(systemID, new Long(mod_res_id));\n }\n\n }\n\n in.close();\n\n Vector vtElement = null;\n\n // input AICC objectives into DB\n for (int i=0; i<vtCosDescriptor.size(); i++) {\n String objSystemID = null;\n String objDeveloperID = null;\n String objTitle = null;\n String objDesc = null;\n dbObjective dbObj = null;\n\n vtElement = (Vector)vtCosDescriptor.elementAt(i);\n objSystemID = (String)vtElement.elementAt(0);\n if (objSystemID.toLowerCase().startsWith(\"j\") == true) {\n objDeveloperID = (String)vtElement.elementAt(1);\n objTitle = (String)vtElement.elementAt(2);\n objDesc = (String)vtElement.elementAt(3);\n\n dbObj = new dbObjective();\n dbObj.obj_type = \"AICC\";\n dbObj.obj_desc = dbCos.trimObjDesc(dbUtils.esc4XML(objDesc));\n dbObj.obj_title = objTitle;\n dbObj.obj_developer_id = objDeveloperID;\n dbObj.obj_import_xml = \"<objective developer_id=\\\"\";\n dbObj.obj_import_xml += objDeveloperID;\n dbObj.obj_import_xml += \"\\\" />\";\n int obj_id = (int)dbObj.insAicc(con, prof);\n htObjObjID.put(objSystemID, new Integer(obj_id));\n }\n }\n\n if (vtObjectiveRelation != null) {\n vtElement = null;\n for (int i=0; i<vtObjectiveRelation.size(); i++) {\n vtElement = (Vector)vtObjectiveRelation.elementAt(i);\n String parentSystemID = (String)vtElement.elementAt(0);\n\n Vector vtObjID = new Vector();\n String childSystemID = null;\n for (int j=1; j<vtElement.size(); j++) {\n childSystemID = (String)vtElement.elementAt(j);\n vtObjID.addElement((Integer)htObjObjID.get(childSystemID));\n }\n\n long[] intObjID = new long[vtObjID.size()];\n for (int k=0; k<vtObjID.size(); k++) {\n intObjID[k] = ((Integer) vtObjID.elementAt(k)).longValue();\n }\n\n long[] int_parent_mod_id_lst = null;\n if (parentSystemID.startsWith(\"A\") == true || parentSystemID.startsWith(\"a\") == true) {\n int_parent_mod_id_lst = new long[] { ((Long)htAuModID.get(parentSystemID)).longValue() };\n }\n // collect all AU's mod_id in that AICC Block\n else if (parentSystemID.startsWith(\"B\") == true || parentSystemID.startsWith(\"b\") == true) {\n Vector vtBlockElements = (Vector)htBlockElements.get(parentSystemID);\n int_parent_mod_id_lst = new long[vtBlockElements.size()];\n String tempSystemID = null;\n for (int m=0; m<vtBlockElements.size(); m++) {\n tempSystemID = (String)vtBlockElements.elementAt(m);\n int_parent_mod_id_lst[m] = ((Long)htAuModID.get(tempSystemID)).longValue();\n }\n }\n dbResourceObjective dbResObj = new dbResourceObjective();\n // remove the previous objective relations\n dbResObj.removeResObj(con, int_parent_mod_id_lst);\n // add new objective relations\n dbResObj.insResObj(con, int_parent_mod_id_lst, intObjID);\n\n }\n }\n\n // update the cos corresponding fields, or reset the fields that is previously set\n // during importing an AICC course which should be reset when inserting/updating an AICC AU\n dbCos.updAiccCos(con, prof, null, null, null, -1, false, false);\n\n return true;\n\n } catch(qdbErrMessage e) {\n // rollback at qdbAction\n //con.rollback();\n throw new qdbErrMessage(e.toString());\n }\n }", "public final void A0e() {\n /*\n r5 = this;\n X.03P r0 = r5.A0I\n android.telephony.TelephonyManager r0 = r0.A0F()\n r4 = 1\n r3 = 0\n if (r0 == 0) goto L_0x0012\n int r2 = r0.getSimState()\n r0 = 5\n r1 = 1\n if (r2 == r0) goto L_0x0013\n L_0x0012:\n r1 = 0\n L_0x0013:\n boolean r0 = X.AnonymousClass04j.A02(r5)\n if (r0 == 0) goto L_0x0020\n r0 = 2131888480(0x7f120960, float:1.9411597E38)\n r5.A0h(r0, r4)\n return\n L_0x0020:\n if (r1 != 0) goto L_0x0029\n r0 = 2131888482(0x7f120962, float:1.94116E38)\n r5.A0h(r0, r4)\n return\n L_0x0029:\n android.widget.TextView r2 = r5.A05\n X.01X r1 = r5.A01\n r0 = 2131888475(0x7f12095b, float:1.9411586E38)\n java.lang.String r0 = r1.A06(r0)\n r2.setText(r0)\n r5.A0b()\n X.3Gl r2 = new X.3Gl\n r2.<init>(r5)\n r5.A0C = r2\n X.00T r1 = r5.A0D\n java.lang.Void[] r0 = new java.lang.Void[r3]\n r1.ANC(r2, r0)\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.whatsapp.payments.ui.IndiaUpiDeviceBindActivity.A0e():void\");\n }", "public abstract void mo27385c();", "public interface C0335c {\n }", "public void mo1403c() {\n }", "public abstract void mo2150a();", "@SuppressWarnings(\"unchecked\")\r\n private void makeIntensityProfiles() {\r\n\r\n // find the center of mass of the single label object in the sliceBuffer (abdomenImage)\r\n findAbdomenCM();\r\n int xcm = centerOfMass[0];\r\n int ycm = centerOfMass[1];\r\n \r\n // There should be only one VOI\r\n VOIVector vois = abdomenImage.getVOIs();\r\n VOI theVOI = vois.get(0);\r\n\r\n // there should be only one curve corresponding to the external abdomen boundary\r\n VOIContour curve = ((VOIContour)theVOI.getCurves().get(0));\r\n int[] xVals;\r\n int[] yVals;\r\n int[] zVals;\r\n try {\r\n xVals = new int [curve.size()];\r\n yVals = new int [curve.size()];\r\n zVals = new int [curve.size()];\r\n } catch (OutOfMemoryError error) {\r\n System.gc();\r\n MipavUtil.displayError(\"makeIntensityProfiles(): Can NOT allocate the abdomen VOI arrays\");\r\n return;\r\n }\r\n curve.exportArrays(xVals, yVals, zVals);\r\n \r\n // one intensity profile for each radial line. Each radial line is 3 degrees and\r\n // there are 360 degrees in a circle\r\n try {\r\n intensityProfiles = new ArrayList[360 /angularResolution];\r\n xProfileLocs = new ArrayList[360 / angularResolution];\r\n yProfileLocs = new ArrayList[360 / angularResolution];\r\n } catch (OutOfMemoryError error) {\r\n System.gc();\r\n MipavUtil.displayError(\"makeIntensityProfiles(): Can NOT allocate profile arrays\");\r\n return;\r\n }\r\n \r\n // load the srcImage into the slice buffer (it has the segmented abdomen image in it now)\r\n try {\r\n srcImage.exportData(0, sliceSize, sliceBuffer);\r\n } catch (IOException ex) {\r\n System.err.println(\"JCATsegmentAbdomen2D(): Error exporting data\");\r\n return;\r\n }\r\n\r\n double angleRad;\r\n int count;\r\n int contourPointIdx = 0;\r\n for (int angle = 0; angle < 360; angle += angularResolution) {\r\n count = 0;\r\n int x = xcm;\r\n int y = ycm;\r\n int yOffset = y * xDim;\r\n double scaleFactor; // reduces the number of trig operations that must be performed\r\n \r\n // allocate the ArrayLists for each radial line\r\n try {\r\n intensityProfiles[contourPointIdx] = new ArrayList<Short>();\r\n xProfileLocs[contourPointIdx] = new ArrayList<Integer>();\r\n yProfileLocs[contourPointIdx] = new ArrayList<Integer>();\r\n } catch (OutOfMemoryError error) {\r\n System.gc();\r\n MipavUtil.displayError(\"makeIntensityProfiles(): Can NOT allocate profile list: \" +contourPointIdx);\r\n return;\r\n }\r\n \r\n angleRad = Math.PI * angle / 180.0;\r\n if (angle > 315 || angle <= 45) {\r\n // increment x each step\r\n scaleFactor = Math.tan(angleRad);\r\n while (x < xVals[contourPointIdx]) {\r\n // store the intensity and location of each point along the radial line\r\n intensityProfiles[contourPointIdx].add((short)sliceBuffer[yOffset + x]);\r\n xProfileLocs[contourPointIdx].add(x);\r\n yProfileLocs[contourPointIdx].add(y);\r\n count++;\r\n \r\n // walk out in x and compute the value of y for the given radial line\r\n x++;\r\n y = ycm - (int)((x - xcm) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n \r\n } else if (angle > 45 && angle <= 135) {\r\n // decrement y each step\r\n scaleFactor = (Math.tan((Math.PI / 2.0) - angleRad));\r\n while (y > yVals[contourPointIdx]) {\r\n // store the intensity and location of each point along the radial line\r\n intensityProfiles[contourPointIdx].add((short)sliceBuffer[yOffset + x]);\r\n xProfileLocs[contourPointIdx].add(x);\r\n yProfileLocs[contourPointIdx].add(y);\r\n count++;\r\n \r\n // walk to the top of the image and compute values of x for the given radial line\r\n y--;\r\n x = xcm + (int)((ycm - y) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n \r\n } else if (angle > 135 && angle <= 225) {\r\n // decrement x each step\r\n scaleFactor = Math.tan(Math.PI - angleRad);\r\n while (x > xVals[contourPointIdx]) {\r\n // store the intensity and location of each point along the radial line\r\n intensityProfiles[contourPointIdx].add((short)sliceBuffer[yOffset + x]);\r\n xProfileLocs[contourPointIdx].add(x);\r\n yProfileLocs[contourPointIdx].add(y);\r\n count++;\r\n \r\n x--;\r\n y = ycm - (int)((xcm - x) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n\r\n } else if (angle > 225 && angle <= 315) {\r\n // increment y each step\r\n scaleFactor = Math.tan((3.0 * Math.PI / 2.0) - angleRad);\r\n while (y < yVals[contourPointIdx]) {\r\n // store the intensity and location of each point along the radial line\r\n intensityProfiles[contourPointIdx].add((short)sliceBuffer[yOffset + x]);\r\n xProfileLocs[contourPointIdx].add(x);\r\n yProfileLocs[contourPointIdx].add(y);\r\n count++;\r\n \r\n y++;\r\n x = xcm - (int)((y - ycm) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n }\r\n \r\n contourPointIdx++;\r\n } // end for (angle = 0; ...\r\n\r\n // intensityProfiles, xProfileLocs, and yProfileLocs are set, we can find the \r\n // internal boundary of the subcutaneous fat now\r\n }", "public void mo12930a() {\n }", "@Override\n public void combinedIMU(int ax, int ay, int az, int gx, int gy, int gz, int timestamp) {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "void mo67924c();", "public void codifRLC()\n\t{\n\t\tList<Integer> result= new ArrayList<Integer>();\n\t\tint rgb=0;\n\t\tColor color;\n\t\tint r=0;\n\t\tint ant=-1;\n\t\tint acum=0;\n\t\tfor(int i=this.inicalto;i<=this.alto;i++) {\n\t\t\tfor(int j=this.inicancho;j<=this.ancho;j++)\n\t\t\t{\n\t\t\t\trgb = this.img.getRGB(j, i);\n\t\t\t\tcolor = new Color(rgb, true);\n\t\t\t\tr = color.getRed();\n\t\t\t\t\tif(ant==-1) {\n\t\t\t\t\t\tant=r;\n\t\t\t\t\t\tacum=1;\n\t\t\t\t\t}\n\t\t\t\t\t\tif(r==ant && acum<256)\n\t\t\t\t\t\t\tacum++;\n\t\t\t\t\t\t\tif(r!=ant){\n\t\t\t\t\t\t\t\tresult.add(ant);\n\t\t\t\t\t\t\t\tresult.add(acum);\n\t\t\t\t\t\t\t\tacum=1;\n\t\t\t\t\t\t\t\tant=r;\n\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif(acum==255){\n\t\t\t\t\t\t\t\t\tresult.add(ant);\n\t\t\t\t\t\t\t\t\tresult.add(acum);\n\t\t\t\t\t\t\t\t\tacum=1;\n\t\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\tresult.add(ant);\n\t\tresult.add(acum);\n\t\t\n\t\tthis.CR=new CabeceraRLC(this.inicancho,this.inicalto,this.ancho,this.alto,img.TYPE_INT_RGB);\n\t\tthis.codResultRLC=result;\n\t\tthis.generarArchivoRLC(result);\n\t}", "void mo80457c();", "private void courseEffects() {\n\t\t\n\t}", "public interface C21597a {\n }", "public com.yandex.metrica.impl.bc.c H() {\n /*\n r9 = this;\n r0 = 0\n android.database.Cursor r1 = r9.I() // Catch:{ Exception -> 0x0048, all -> 0x003f }\n if (r1 == 0) goto L_0x0013\n boolean r2 = r1.moveToFirst() // Catch:{ Exception -> 0x0049, all -> 0x003d }\n if (r2 == 0) goto L_0x0013\n int r2 = r1.getCount() // Catch:{ Exception -> 0x0049, all -> 0x003d }\n if (r2 != 0) goto L_0x0049\n L_0x0013:\n com.yandex.metrica.impl.ob.fo r2 = r9.m // Catch:{ Exception -> 0x0049, all -> 0x003d }\n long r3 = r9.D() // Catch:{ Exception -> 0x0049, all -> 0x003d }\n com.yandex.metrica.impl.ob.en r5 = com.yandex.metrica.impl.ob.en.BACKGROUND // Catch:{ Exception -> 0x0049, all -> 0x003d }\n android.database.Cursor r0 = r2.a((long) r3, (com.yandex.metrica.impl.ob.en) r5) // Catch:{ Exception -> 0x0049, all -> 0x003d }\n if (r0 == 0) goto L_0x0049\n boolean r2 = r0.moveToFirst() // Catch:{ Exception -> 0x0049, all -> 0x003d }\n if (r2 == 0) goto L_0x0049\n int r2 = r0.getCount() // Catch:{ Exception -> 0x0049, all -> 0x003d }\n if (r2 <= 0) goto L_0x0049\n com.yandex.metrica.impl.ob.fo r3 = r9.m // Catch:{ Exception -> 0x0049, all -> 0x003d }\n long r4 = r9.D() // Catch:{ Exception -> 0x0049, all -> 0x003d }\n com.yandex.metrica.impl.ob.en r6 = com.yandex.metrica.impl.ob.en.BACKGROUND // Catch:{ Exception -> 0x0049, all -> 0x003d }\n long r7 = java.lang.System.currentTimeMillis() // Catch:{ Exception -> 0x0049, all -> 0x003d }\n r3.a((long) r4, (com.yandex.metrica.impl.ob.en) r6, (long) r7) // Catch:{ Exception -> 0x0049, all -> 0x003d }\n goto L_0x0049\n L_0x003d:\n r2 = move-exception\n goto L_0x0041\n L_0x003f:\n r2 = move-exception\n r1 = r0\n L_0x0041:\n com.yandex.metrica.impl.bv.a((android.database.Cursor) r1)\n com.yandex.metrica.impl.bv.a((android.database.Cursor) r0)\n throw r2\n L_0x0048:\n r1 = r0\n L_0x0049:\n com.yandex.metrica.impl.bv.a((android.database.Cursor) r1)\n com.yandex.metrica.impl.bv.a((android.database.Cursor) r0)\n com.yandex.metrica.impl.bc$c r0 = super.H()\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.yandex.metrica.impl.bd.H():com.yandex.metrica.impl.bc$c\");\n }", "public int characteristics() {\n/* 1460 */ return this.characteristics;\n/* */ }", "public void mo55254a() {\n }", "public void mo68520e() {\n super.mo68520e();\n C26780aa.m87959a(this.itemView, mo75290r(), this.f77546j);\n C24942al.m81837c(mo75261ab(), this.f89221bo);\n C24958f.m81905a().mo65273b(this.f77546j).mo65266a(\"result_ad\").mo65276b(\"otherclick\").mo65283e(\"video\").mo65270a(mo75261ab());\n }", "public IntRAC() {\n\t\tcodebook = new ArrayList<int[]>();\n\t\tthis.threshold = 128;\n\t\tthis.nDims = -1;\n\t\tthis.totalSamples = 0;\n\t}", "void mo88524c();", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "static void perform_cma(String passed){\n\t\tint type = type_of_cma(passed);\n\t\tswitch(type){\n\t\tcase 1:\n\t\t\tcma_with_acc(passed);\n\t\t\tbreak;\n\t\t}\n\t}", "void mo17012c();", "public static void mmcc() {\n\t}", "@Override\n public void func_104112_b() {\n \n }", "private void init() {\r\n \r\n // simple error check up front\r\n if ((srcImage.getNDims() != 2) && srcImage.getNDims() != 3) {\r\n MipavUtil.displayError(\"PlugInAlgorithmCTAbdomen.init() Error image is not 2 or 3 dimensions\");\r\n return;\r\n }\r\n \r\n // set and allocate known values\r\n xDim = srcImage.getExtents()[0];\r\n yDim = srcImage.getExtents()[1];\r\n sliceSize = xDim * yDim;\r\n\r\n // allocate the slice buffer\r\n try {\r\n sliceBuffer = new short[sliceSize];\r\n } catch (OutOfMemoryError error) {\r\n System.gc();\r\n MipavUtil.displayError(\"PlugInAlgorithmCTAbdomen.init() Out of memory when making the slice buffer\");\r\n return;\r\n }\r\n\r\n // set values that depend on the source image being a 2D or 3D image\r\n if (srcImage.getNDims() == 2) {\r\n zDim = 1;\r\n } else if (srcImage.getNDims() == 3) {\r\n zDim = srcImage.getExtents()[2];\r\n }\r\n\r\n // make the abdomenlabel image and initialize its resolutions\r\n abdomenImage = new ModelImage(ModelStorageBase.USHORT, srcImage.getExtents(), \"abdomenTissueImage\");\r\n \r\n // make the resolutions of the abdomenImage the same as the source image\r\n for (int i = 0; i < zDim; i++) {\r\n abdomenImage.getFileInfo()[i].setResolutions(srcImage.getFileInfo()[i].getResolutions());\r\n }\r\n \r\n // make the volume BitSet needed for the region grow algorithm\r\n try {\r\n volumeBitSet = new BitSet();\r\n } catch (OutOfMemoryError error) {\r\n System.gc();\r\n MipavUtil.displayError(\"PlugInAlgorithmCTAbdomen.init() Out of memory when making the volumeBitSet\");\r\n return;\r\n }\r\n \r\n // make the centerOfMass of the segmented abdomen\r\n try {\r\n centerOfMass = new short [2];\r\n } catch (OutOfMemoryError error) {\r\n System.gc();\r\n MipavUtil.displayError(\"PlugInAlgorithmCTAbdomen.init() Out of memory when making the centerOfMass array\");\r\n return;\r\n }\r\n\r\n // all data was allocated, set initialized flag to true and return\r\n initializedFlag = true;\r\n }", "abstract String mo1748c();", "public void printAnc() {\n\tSystem.out.println(\"numOfControl: \" + numOfControl);\n\tfor (int ii = 0; ii < numOfControl; ii++ ) {\n\t paramFile[ii].printDevice();\n\t paramFile[ii].printUserParameters();\n\t paramFile[ii].printInstParameters();\n\t}\n }", "@Override\n\tpublic void coba() {\n\t\t\n\t}", "public int characteristics() {\n/* 1680 */ return this.characteristics;\n/* */ }", "public int characteristics() {\n/* 1570 */ return this.characteristics;\n/* */ }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "void mo72114c();", "public interface C0385a {\n }", "public static void CC2_1() {\n\t}", "public abstract void mo70709a(String str, C41018cm c41018cm);", "public int characteristics() {\n/* 1350 */ return this.characteristics;\n/* */ }", "public int a(IBlockAccess paramard, BlockPosition paramdt, int paramInt)\r\n/* 34: */ {\r\n/* 35: 49 */ return art.a(paramard, paramdt);\r\n/* 36: */ }", "void atterir();", "void mo27575a();", "static void ori_with_acc(String passed){\n\t\tint val1 = hexa_to_deci(registers.get('A'));\n\t\tint val2 = hexa_to_deci(passed.substring(4));\n\t\tval1 = val1|val2;\n\t\tregisters.put('A',decimel_to_hexa_8bit(val1));\n\t\tmodify_status(registers.get('A'));\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void handler() {\n int t, r;\n t = RM(ea);\n r = konami.cc & CC_C;\n r = (r | t << 1);\n CLR_NZVC();\n SET_FLAGS8(t, t, r);\n WM(ea, r);\n if (konamilog != null) {\n fprintf(konamilog, \"konami#%d rol_ix :PC:%d,PPC:%d,A:%d,B:%d,D:%d,DP:%d,U:%d,S:%d,X:%d,Y:%d,CC:%d,EA:%d\\n\", cpu_getactivecpu(), konami.pc, konami.ppc, A(), B(), konami.d, konami.dp, konami.u, konami.s, konami.x, konami.y, konami.cc, ea);\n }\n\n }", "private void m50366E() {\n }", "public void mo1554b(ac acVar) {\n }", "Datatype[] internalize(Datatype[] args) throws CCAException;" ]
[ "0.63983643", "0.6203737", "0.61282396", "0.6100712", "0.6067716", "0.5985106", "0.5966971", "0.59412", "0.59245306", "0.5923559", "0.5914703", "0.58903617", "0.58094627", "0.5761041", "0.5757465", "0.5752749", "0.57412714", "0.57354265", "0.57241225", "0.5718507", "0.57172674", "0.5713901", "0.57004446", "0.5699061", "0.56964386", "0.5680149", "0.56763357", "0.56757855", "0.5650586", "0.5619874", "0.56104535", "0.56051785", "0.5602204", "0.5597195", "0.5580859", "0.5580859", "0.5580859", "0.5580859", "0.5580859", "0.5580859", "0.5580859", "0.5577242", "0.5576155", "0.5560099", "0.55580336", "0.5554523", "0.5546763", "0.553406", "0.5533313", "0.5529402", "0.5526804", "0.5526804", "0.5520866", "0.5516884", "0.55153465", "0.55109817", "0.5498945", "0.5492158", "0.5484564", "0.5483592", "0.5468968", "0.54515564", "0.54515475", "0.5449361", "0.5448595", "0.5441702", "0.5440913", "0.5438435", "0.5428488", "0.54280216", "0.54275846", "0.5423582", "0.5417295", "0.5410228", "0.5405669", "0.5401447", "0.5400936", "0.5400202", "0.5399181", "0.5383952", "0.5381742", "0.53804284", "0.5379038", "0.53786534", "0.5372469", "0.53722334", "0.5371862", "0.53641677", "0.53614163", "0.53595644", "0.5351172", "0.53459835", "0.53457934", "0.5344089", "0.53435683", "0.53429645", "0.5341148", "0.53408235", "0.5332679", "0.5332246", "0.5322588" ]
0.0
-1
this is cloned from the original upd method. specially modified for class module of a course using common content
public void upd2(Connection con, loginProfile prof) throws qdbException, qdbErrMessage, SQLException { res_id = mod_res_id; res_type = RES_TYPE_MOD; res_upd_user = prof.usr_id; super.checkTimeStamp(con); if (res_status.equalsIgnoreCase(RES_STATUS_ON) || res_status.equalsIgnoreCase(RES_STATUS_DATE)) { // Check if the question is ordered in 1,2,3.... if (!checkQorder(con)) { //Questions are not in the correct order. throw new qdbErrMessage("MOD001"); } } //if the module is standard test or dynamic test //make sure that you can only turn the module online //if the test has question/criteria defined in it if (res_status.equalsIgnoreCase(RES_STATUS_ON)) { if (mod_type.equalsIgnoreCase(MOD_TYPE_TST)) { if (dbResourceContent.getResourceContentCount(con, mod_res_id) == 0) { res_status = RES_STATUS_OFF; } } else if (mod_type.equalsIgnoreCase(MOD_TYPE_DXT)) { if (dbModuleSpec.getModuleSpecCount(con, mod_res_id) == 0) { res_status = RES_STATUS_OFF; } } } super.updateStatus(con); // permission records have to be cleared no matter mod_instructor is specified or not dbResourcePermission.delUserRoleIsNull(con, mod_res_id); if (mod_instructor_ent_id_lst != null) { for (int i = 0; i < mod_instructor_ent_id_lst.length; i++) { dbResourcePermission.save(con, mod_res_id, mod_instructor_ent_id_lst[i], null, true, true, false); } } //Dennis, 2000-12-13, impl release control //If the new status == DATE, update the eff_start/end_datetime in Module //if(res_status.equalsIgnoreCase(RES_STATUS_DATE)) //2001-01-05, all status will have eff datetime updateEffDatetime(con); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void updateBourse(Bourse brs) {\n\t\t\n\t}", "public boolean updateCourse(Course c) {\n\t\treturn false;\n\t}", "public void updateCourse(Course curs) throws SQLException, ClassNotFoundException {\r\n Iterable<Student> allStuds = students.findAll();\r\n List<Student> toUpdate = new ArrayList<>();\r\n Course before = courses.findOne(curs.getId());\r\n\r\n for(Student stud : allStuds){\r\n if(stud.getEnrolledCourses().contains(before)){\r\n //if the student was enrolled to the course in the first place\r\n if(stud.getTotalCredits() - before.getCredits() + curs.getCredits() > 30){\r\n //new course exceeds student max credits therefore must be removed\r\n //delete student from courses enrolled students list\r\n\r\n List<Student> newStudents = curs.getStudentsEnrolled();\r\n newStudents.remove(stud);\r\n curs.setStudentsEnrolled(newStudents);\r\n\r\n //delete course from student list + decrease credits\r\n\r\n List<Course> newCourses = stud.getEnrolledCourses();\r\n newCourses.remove(before);\r\n int newCredits = stud.getTotalCredits() - before.getCredits();\r\n\r\n stud.setTotalCredits(newCredits);\r\n stud.setEnrolledCourses(newCourses);\r\n toUpdate.add(stud);\r\n\r\n //remove the data from the enrolled table\r\n removeEnrolled(curs, stud);\r\n }\r\n else{\r\n //new course does not exceed max credits\r\n //modify student credits\r\n int newCredits = stud.getTotalCredits() - before.getCredits() + curs.getCredits();\r\n stud.setTotalCredits(newCredits);\r\n toUpdate.add(stud);\r\n }\r\n courses.update(curs);\r\n\r\n }\r\n }\r\n for(Student stud2: toUpdate){\r\n students.update(stud2);\r\n }\r\n }", "@Override\r\n\tpublic void updateCourse(Course c) {\n\t\t\r\n\t\tint cid1 = c.getCid();\r\n\t\ttry\r\n\t\t{\r\n\t\tConnection connection=DBConnection.getConnection();\r\n\t\tString sqlQuery=\"update \"+TABLECourse+\" set \"+COLcname+\" = ?, \"+COLduration+\" = ?, \"+COLfees+\"=? where \"+COLcid+\" =\"+cid1;\r\n\t\t\r\n\t\tPreparedStatement pst = connection.prepareStatement(sqlQuery);\r\n\t\tpst.setString(1, c.getCname());\r\n\t\tpst.setInt(2, c.getCduration());\r\n\t\tpst.setInt(3, c.getCfees());\r\n\t\t\r\n\t\tpst.executeUpdate();\r\n\r\n\t\t\r\n\t\t\r\n\t\t} catch (SQLException e) {\r\n\t\t\t\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}", "@Override\n public void update(Course t) {\n String statement = UPDATE;\n data.makeUpdateStatement(statement,new Object[]{(Object)t.getTitle(),(Object)t.getStream(),(Object)t.getType(),\n (Object)t.getStart_date(),(Object)t.getEnd_date(),(Object)t.getId()});\n data.closeConnections(data.ps, data.conn);\n \n }", "public void updateCourse(Connection con) throws SQLException, NumberFormatException, IllegalArgumentException {\r\n //Get all the data about the course from the fields\r\n int intCID = getCID();\r\n int intSID = getSID();\r\n String strName = getName();\r\n String strTitle = getTitle();\r\n String strDepartment = getDepartment();\r\n int intCredits = getCredits();\r\n String strDescription = getDescription();\r\n String strOutcomes = getOutcomes();\r\n String strContactEmail = getContactEmail();\r\n String strContactName = getContactName();\r\n\r\n illegalDataFieldsCheck(intSID, strName, strTitle);;\r\n Queries.updateCourse(con, intCID, intSID, strName, strTitle, strDepartment, intCredits, strDescription, strOutcomes, strContactEmail, strContactName);\r\n }", "@Override\r\n\tpublic boolean updateCourse(Course course) {\n\t\treturn false;\r\n\t}", "private void updateCourses() {\n\t\tArrayList<Course> results = adCon.viewCourses();\n\n\t\tif (results == null)\n\t\t\treturn;\n\n\t\tclearTable();\n\n\t\tfor (Course c : results) {\n\t\t\taddTableData(c);\n\t\t}\n\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\tpublic void updateCourse(Course course) {\n\t\tcd.updateCourse(course);\n\t}", "@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}", "public boolean updAiccAu(Connection con, String domain, loginProfile prof, String aicc_crs_filename, String aicc_cst_filename, String aicc_des_filename, String aicc_au_filename, String aicc_ort_filename)\n throws IOException, SQLException, qdbException, qdbErrMessage, cwSysMessage {\n//System.out.println(\"mod_in_eff_start_datetime:\" + mod_in_eff_start_datetime);\n//System.out.println(\"mod_in_eff_end_datetime:\" + mod_in_eff_end_datetime);\n//System.out.println(\"mod_max_score:\" + mod_max_score);\n//System.out.println(\"res_subtype:\" + res_subtype);\n//System.out.println(\"res_src_type:\" + res_src_type);\n//System.out.println(\"res_src_link:\" + res_src_link);\n // only used for calling aicc methods\n dbCourse dbCos = new dbCourse();\n dbCos.cos_res_id = getCosId(con, mod_res_id);\n\n try {\n String mod_import_xml = null;\n\n Vector vtCosDescriptor = null;\n Vector vtCosStructure = null;\n Vector vtObjectiveRelation = null;\n\n Vector vtTemp = null;\n\n crsIniFile iniFileCRS = null;\n try {\n iniFileCRS = new crsIniFile(aicc_crs_filename);\n } catch(IOException e) {\n \tCommonLog.error(\"Error in loading the iniFileCRS:\" + e.toString());\n throw new IOException(e.toString());\n }\n\n vtCosDescriptor = dbCos.buildCosDescriptorVector(aicc_des_filename);\n vtCosStructure = dbCos.getCosStructureVector(aicc_cst_filename);\n if (aicc_ort_filename != null) {\n vtObjectiveRelation = dbCos.getCosObjectiveVector(aicc_ort_filename);\n }\n Hashtable htBlockElements = dbCos.buildAiccBlockElements(dbCos.getMemberRelationLst(aicc_cst_filename));\n\n Hashtable htAuModID = new Hashtable();\n Hashtable htObjObjID = new Hashtable();\n\n BufferedReader in = null;\n try {\n in = new BufferedReader(new InputStreamReader(new FileInputStream(new File(aicc_au_filename))));\n } catch(Exception e) {\n throw new IOException(e.toString());\n }\n String line = null;\n String systemID = null;\n String type = null;\n String command_line = null;\n String file_name = null;\n String max_score = null;\n String mastery_score = null;\n String max_time_allowed = null;\n String time_limit_action = null;\n String system_vendor = null;\n String core_vendor = null;\n String web_launch = null;\n String au_password = null;\n\n String tempStr = null;\n\n Hashtable htAuFieldOrder = null;\n Hashtable htAuFieldValue = null;\n\n StringTokenizer st = null;\n // the first line is used to determine the field order\n for (;;) {\n try {\n line = in.readLine();\n } catch(Exception e) {\n throw new IOException(e.toString());\n }\n if (line == null) {\n break;\n }\n else if (line.trim().length() > 0 && line.trim().equalsIgnoreCase(\"\") == false) {\n htAuFieldOrder = new Hashtable();\n\n int index = 1;\n\n Vector vtRecord = dbCos.buildTableRecord(line);\n String recordElement = null;\n for (int i=0; i<vtRecord.size(); i++) {\n recordElement = (String)vtRecord.elementAt(i);\n htAuFieldOrder.put(recordElement.toLowerCase(), new Integer(index));\n index++;\n }\n\n break;\n }\n }\n\n //actually there should be only one AU record in the .au file for skillsoft course\n for (;;) {\n String mod_desc = null;\n\n try {\n line = in.readLine();\n } catch(Exception e) {\n throw new IOException(e.toString());\n }\n if (line == null) {\n break;\n }\n else if (line.trim().length() == 0 || line.trim().equalsIgnoreCase(\"\") == true) {\n continue;\n }\n else {\n htAuFieldValue = new Hashtable();\n\n int index = 1;\n\n Vector vtRecord = dbCos.buildTableRecord(line);\n String recordElement = null;\n for (int i=0; i<vtRecord.size(); i++) {\n recordElement = (String)vtRecord.elementAt(i);\n htAuFieldValue.put(new Integer(index), recordElement);\n index++;\n }\n\n Integer fieldIndex = null;\n\n fieldIndex = (Integer)htAuFieldOrder.get(\"system_id\");\n systemID = (String)htAuFieldValue.get(fieldIndex);\n\n fieldIndex = (Integer)htAuFieldOrder.get(\"type\");\n type = (String)htAuFieldValue.get(fieldIndex);\n\n fieldIndex = (Integer)htAuFieldOrder.get(\"command_line\");\n command_line = (String)htAuFieldValue.get(fieldIndex);\n\n fieldIndex = (Integer)htAuFieldOrder.get(\"file_name\");\n file_name = (String)htAuFieldValue.get(fieldIndex);\n\n fieldIndex = (Integer)htAuFieldOrder.get(\"max_score\");\n max_score = (String)htAuFieldValue.get(fieldIndex);\n\n fieldIndex = (Integer)htAuFieldOrder.get(\"mastery_score\");\n mastery_score = (String)htAuFieldValue.get(fieldIndex);\n\n fieldIndex = (Integer)htAuFieldOrder.get(\"max_time_allowed\");\n max_time_allowed = (String)htAuFieldValue.get(fieldIndex);\n\n fieldIndex = (Integer)htAuFieldOrder.get(\"time_limit_action\");\n time_limit_action = (String)htAuFieldValue.get(fieldIndex);\n\n fieldIndex = (Integer)htAuFieldOrder.get(\"system_vendor\");\n system_vendor = (String)htAuFieldValue.get(fieldIndex);\n\n fieldIndex = (Integer)htAuFieldOrder.get(\"core_vendor\");\n core_vendor = (String)htAuFieldValue.get(fieldIndex);\n\n fieldIndex = (Integer)htAuFieldOrder.get(\"web_launch\");\n web_launch = (String)htAuFieldValue.get(fieldIndex);\n\n fieldIndex = (Integer)htAuFieldOrder.get(\"au_password\");\n au_password = (String)htAuFieldValue.get(fieldIndex);\n\n vtTemp = null;\n for (int i=0; i<vtCosDescriptor.size(); i++) {\n vtTemp = (Vector)vtCosDescriptor.elementAt(i);\n if (systemID.equalsIgnoreCase((String)vtTemp.elementAt(0)) == true) {\n break;\n }\n else {\n vtTemp = null;\n }\n }\n\n mod_import_xml = \"<assignable_unit system_id=\\\"\";\n mod_import_xml += dbUtils.esc4XML(systemID);\n mod_import_xml += \"\\\" type=\\\"\";\n mod_import_xml += dbUtils.esc4XML(type);\n mod_import_xml += \"\\\" command_line=\\\"\";\n mod_import_xml += dbUtils.esc4XML(command_line);\n mod_import_xml += \"\\\" file_name=\\\"\";\n mod_import_xml += dbUtils.esc4XML(file_name);\n mod_import_xml += \"\\\" max_score=\\\"\";\n mod_import_xml += dbUtils.esc4XML(max_score);\n mod_import_xml += \"\\\" mastery_score=\\\"\";\n mod_import_xml += dbUtils.esc4XML(mastery_score);\n mod_import_xml += \"\\\" max_time_allowed=\\\"\";\n mod_import_xml += dbUtils.esc4XML(max_time_allowed);\n mod_import_xml += \"\\\" time_limit_action=\\\"\";\n mod_import_xml += dbUtils.esc4XML(time_limit_action);\n mod_import_xml += \"\\\" system_vendor=\\\"\";\n mod_import_xml += dbUtils.esc4XML(system_vendor);\n mod_import_xml += \"\\\" core_vendor=\\\"\";\n mod_import_xml += dbUtils.esc4XML(core_vendor);\n mod_import_xml += \"\\\" web_launch=\\\"\";\n mod_import_xml += web_launch;\n mod_import_xml += \"\\\" au_password=\\\"\";\n mod_import_xml += au_password;\n\n mod_import_xml += \"\\\" />\";\n\n if (max_score.length() > 0) {\n mod_max_score = Float.parseFloat(max_score);;\n }\n else {\n }\n\n if (mastery_score.length() > 0) {\n mod_pass_score = Float.parseFloat(mastery_score);\n }\n else {\n }\n\n if (max_time_allowed.equalsIgnoreCase(\"\") == true || max_time_allowed.length() == 0) {\n }\n else {\n int hr = 0;\n int min = 0;\n int sec = 0;\n String strTime = null;\n StringTokenizer stTime = new StringTokenizer(max_time_allowed,\":\");\n\n strTime = stTime.nextToken();\n strTime = strTime.trim();\n hr = Integer.parseInt(strTime);\n\n strTime = stTime.nextToken();\n strTime = strTime.trim();\n min = Integer.parseInt(strTime);\n\n strTime = stTime.nextToken();\n strTime = strTime.trim();\n sec = Integer.parseInt(strTime);\n\n res_duration = hr*60 + min + sec/60;\n }\n\n res_type = \"MOD\";\n// res_lan = \"ISO-8859-1\";\n res_subtype = \"AICC_AU\";\n res_src_type = \"AICC_FILES\";\n res_src_link = file_name;\n// mod_in_eff_end_datetime = Timestamp.valueOf(dbUtils.MAX_TIMESTAMP);\n// mod_in_eff_start_datetime = Timestamp.valueOf(dbUtils.MIN_TIMESTAMP);\n\n // truncate the length of the description\n //if (res_desc.length() > 200) {\n //res_desc = res_desc.substring(0, 200);\n //}\n\n upd(con, prof);\n updAicc(con, prof, core_vendor, au_password, mod_import_xml, time_limit_action, web_launch, iniFileCRS.getValue(\"Course_Creator\"), res_desc, iniFileCRS.getValue(\"Version\"));\n\n htAuModID.put(systemID, new Long(mod_res_id));\n }\n\n }\n\n in.close();\n\n Vector vtElement = null;\n\n // input AICC objectives into DB\n for (int i=0; i<vtCosDescriptor.size(); i++) {\n String objSystemID = null;\n String objDeveloperID = null;\n String objTitle = null;\n String objDesc = null;\n dbObjective dbObj = null;\n\n vtElement = (Vector)vtCosDescriptor.elementAt(i);\n objSystemID = (String)vtElement.elementAt(0);\n if (objSystemID.toLowerCase().startsWith(\"j\") == true) {\n objDeveloperID = (String)vtElement.elementAt(1);\n objTitle = (String)vtElement.elementAt(2);\n objDesc = (String)vtElement.elementAt(3);\n\n dbObj = new dbObjective();\n dbObj.obj_type = \"AICC\";\n dbObj.obj_desc = dbCos.trimObjDesc(dbUtils.esc4XML(objDesc));\n dbObj.obj_title = objTitle;\n dbObj.obj_developer_id = objDeveloperID;\n dbObj.obj_import_xml = \"<objective developer_id=\\\"\";\n dbObj.obj_import_xml += objDeveloperID;\n dbObj.obj_import_xml += \"\\\" />\";\n int obj_id = (int)dbObj.insAicc(con, prof);\n htObjObjID.put(objSystemID, new Integer(obj_id));\n }\n }\n\n if (vtObjectiveRelation != null) {\n vtElement = null;\n for (int i=0; i<vtObjectiveRelation.size(); i++) {\n vtElement = (Vector)vtObjectiveRelation.elementAt(i);\n String parentSystemID = (String)vtElement.elementAt(0);\n\n Vector vtObjID = new Vector();\n String childSystemID = null;\n for (int j=1; j<vtElement.size(); j++) {\n childSystemID = (String)vtElement.elementAt(j);\n vtObjID.addElement((Integer)htObjObjID.get(childSystemID));\n }\n\n long[] intObjID = new long[vtObjID.size()];\n for (int k=0; k<vtObjID.size(); k++) {\n intObjID[k] = ((Integer) vtObjID.elementAt(k)).longValue();\n }\n\n long[] int_parent_mod_id_lst = null;\n if (parentSystemID.startsWith(\"A\") == true || parentSystemID.startsWith(\"a\") == true) {\n int_parent_mod_id_lst = new long[] { ((Long)htAuModID.get(parentSystemID)).longValue() };\n }\n // collect all AU's mod_id in that AICC Block\n else if (parentSystemID.startsWith(\"B\") == true || parentSystemID.startsWith(\"b\") == true) {\n Vector vtBlockElements = (Vector)htBlockElements.get(parentSystemID);\n int_parent_mod_id_lst = new long[vtBlockElements.size()];\n String tempSystemID = null;\n for (int m=0; m<vtBlockElements.size(); m++) {\n tempSystemID = (String)vtBlockElements.elementAt(m);\n int_parent_mod_id_lst[m] = ((Long)htAuModID.get(tempSystemID)).longValue();\n }\n }\n dbResourceObjective dbResObj = new dbResourceObjective();\n // remove the previous objective relations\n dbResObj.removeResObj(con, int_parent_mod_id_lst);\n // add new objective relations\n dbResObj.insResObj(con, int_parent_mod_id_lst, intObjID);\n\n }\n }\n\n // update the cos corresponding fields, or reset the fields that is previously set\n // during importing an AICC course which should be reset when inserting/updating an AICC AU\n dbCos.updAiccCos(con, prof, null, null, null, -1, false, false);\n\n return true;\n\n } catch(qdbErrMessage e) {\n // rollback at qdbAction\n //con.rollback();\n throw new qdbErrMessage(e.toString());\n }\n }", "@Override\n\tpublic void update(finalDataBean t, String[] fields) throws Exception {\n\t\t\n\t}", "public void onUpdate()\r\n {\n \tString unitID = this.getUnitID();\r\n \t// hashmap for all assignments from tuple-old/new by seqNo\r\n \tHashMap<Integer, UITeamUsers.Assignments.Assignment> allAssignments = new HashMap<Integer, UITeamUsers.Assignments.Assignment>();\r\n \t// assigned setting for each assignment by seqNo\r\n \tHashMap<Integer, Boolean> assigned = new HashMap<Integer, Boolean>();\r\n \t// map of users plus list of user related assignments\r\n \tHashMap<String, ArrayList<Integer>> userAssignment = new HashMap<String, ArrayList<Integer>>();\r\n \t// collect data from tuple-old\r\n \tUITeamUsers origTeamUsers = (UITeamUsers)this.getOriginalObject();\r\n \tBusObjectIterator<UITeamUsers.Assignments.Assignment> origAssignments = origTeamUsers.getAssignmentsObject().getAssignmentObjects();\r\n \twhile (origAssignments.hasMoreElements())\r\n \t{\r\n \t\tUITeamUsers.Assignments.Assignment origAssignment = (UITeamUsers.Assignments.Assignment)origAssignments.nextElement();\r\n \t\tint seqNo = origAssignment.getSeqNo();\r\n \t\tString orgUserDN = origAssignment.getOrgUserDN();\r\n \t\tallAssignments.put(seqNo, origAssignment);\r\n \t\t// initially, put assigned to false - from the tuple-new, we will determine if it should be put to true\r\n \t\tassigned.put(seqNo, false);\r\n \t\t// add assignment to user list\r\n \t\tArrayList<Integer> userAssignments = null;\r\n \t\tif (userAssignment.containsKey(orgUserDN))\r\n \t\t{\r\n \t\t\tuserAssignments = userAssignment.get(orgUserDN);\r\n \t\t}\r\n \t\telse\r\n \t\t{\r\n \t\t\tuserAssignments = new ArrayList<Integer>();\r\n \t\t\tuserAssignment.put(orgUserDN, userAssignments);\r\n \t\t}\r\n \t\tuserAssignments.add(seqNo);\r\n \t}\r\n \t// collect data from tuple-new\r\n \tBusObjectIterator<UITeamUsers.Assignments.Assignment> newAssignments = this.getAssignmentsObject().getAssignmentObjects();\r\n \twhile (newAssignments.hasMoreElements())\r\n \t{ \t\r\n \t\tUITeamUsers.Assignments.Assignment newAssignment = (UITeamUsers.Assignments.Assignment)newAssignments.nextElement();\r\n \t\tint seqNo = newAssignment.getSeqNo();\r\n \t\tString orgUserDN = newAssignment.getOrgUserDN();\r\n \t\tif (!allAssignments.containsKey(seqNo))\r\n \t\t{\r\n \t\tallAssignments.put(seqNo, newAssignment);\r\n \t\t// add assignment to user list\r\n \t\tArrayList<Integer> userAssignments = null;\r\n \t\tif (userAssignment.containsKey(orgUserDN))\r\n \t\t{\r\n \t\t\tuserAssignments = userAssignment.get(orgUserDN);\r\n \t\t}\r\n \t\telse\r\n \t\t{\r\n \t\t\tuserAssignments = new ArrayList<Integer>();\r\n \t\t\tuserAssignment.put(orgUserDN, userAssignments);\r\n \t\t}\r\n \t\tuserAssignments.add(seqNo);\r\n \t\t}\r\n \t\t// determine assigned\r\n \t\tassigned.put(seqNo, newAssignment.getAssigned());\r\n \t}\r\n \t// as we have all the data now, and also by user, we can see by user if\r\n \t// any teams to be assigned or unassigned\r\n \tfor (String orgUserDN : userAssignment.keySet())\r\n \t{\r\n \t\tTeams assignTeams = new Teams();\r\n \t\tTeams unassignTeams = new Teams();\r\n \t\tArrayList<Integer> userAssignments = userAssignment.get(orgUserDN);\r\n \t\tfor (int seqNo : userAssignments)\r\n \t\t{\r\n\t \t\tUITeamUsers.Assignments.Assignment assignment = allAssignments.get(seqNo);\r\n\t \t\tString assignmentID = assignment.getAssignmentID();\r\n\t \t\tif (Util.isSet(assignmentID) && !assigned.get(seqNo))\r\n\t \t\t{\r\n\t \t\t\t// existing assignment but not assigned anymore, so for removal\r\n\t \t\t\tTeam team = new Team();\r\n\t \t\t\tteam.setUnitID(unitID);\r\n\t \t\t\tRole role = new Role();\r\n\t \t\t\trole.setDN(assignment.getRoleDN());\r\n\t \t\t\tteam.setRoleObject(role);\r\n\t \t\t\tunassignTeams.addTeamObject(team);\r\n\t \t\t}\r\n\t \t\telse if (!Util.isSet(assignmentID) && assigned.get(seqNo))\r\n\t \t\t{\r\n\t \t\t\t// not existing yet; newly assigned\r\n\t \t\t\tTeam team = new Team();\r\n\t \t\t\tteam.setUnitID(unitID);\r\n\t \t\t\tRole role = new Role();\r\n\t \t\t\trole.setDN(assignment.getRoleDN());\r\n\t \t\t\tteam.setRoleObject(role);\r\n\t \t\t\tassignTeams.addTeamObject(team);\r\n\t \t\t}\r\n \t\t}\r\n \t\t// delegate\r\n \t\tTeams.maintainTeams(orgUserDN, assignTeams, unassignTeams);\r\n \t}\r\n // read back \r\n \t\tUITeamUsers actualTeamUsers = UITeamUsers.getUITeamUsers(unitID);\r\n if (actualTeamUsers != null)\r\n {\r\n \tUITeamUsers.Assignments actualAssignments = actualTeamUsers.getAssignmentsObject();\r\n \tUITeamUsers.Assignments uiAssignments = new UITeamUsers.Assignments(new BusObjectConfig(actualAssignments, BusObjectConfig.TRANSIENT_OBJECT));\r\n \tthis.setAssignmentsObject(uiAssignments);\r\n } \r\n }", "@Override\n\tpublic void updateCourse(Course c) {\n\t\tsessionFactory.getCurrentSession().update(c);\n\t\t\n\t}", "void updateCourseDetails(String courseId, String courseName, String courseFaculty);", "@Override\n public boolean adminEditClass(ShibbolethAuth.Token token, int courseID, String courseName, int courseCredits,\n int instructorID, String firstDay, String lastDay, String classBeginTime, String classEndTime,\n String weekDays, String location, String type, String prerequisite, String description, String department) {\n try {\n adminEditClass1(token, courseID, courseName, courseCredits, instructorID, firstDay, lastDay, classBeginTime,\n classEndTime, weekDays, location, type, prerequisite, description, department);\n } catch (Exception e) {\n System.out.println(e.getMessage());\n return false;\n }\n return true;\n }", "@Override\n\tpublic void updateCpteCourant(CompteCourant cpt) {\n\t\t\n\t}", "public void update(Node node, String course){\r\n String crs= course;\r\n // System.out.println(node.getbno()+ \" \" +crs);\r\n if(!courses.contains(crs) && node.getOperation() == node.operation.INSERT){\r\n this.courses.add(crs);\r\n } else if(courses.contains(crs) && node.getOperation() == node.operation.DELETE){\r\n this.courses.remove(crs);\r\n }\r\n if(this.bkup == 0){\r\n this.notifyAll(node, course);\r\n }\r\n }", "@Update({\n \"update generalcourseinformation\",\n \"set code = #{code,jdbcType=VARCHAR},\",\n \"name = #{name,jdbcType=VARCHAR},\",\n \"teacher = #{teacher,jdbcType=VARCHAR},\",\n \"credit = #{credit,jdbcType=INTEGER},\",\n \"week = #{week,jdbcType=VARCHAR},\",\n \"day_detail1 = #{day_detail1,jdbcType=VARCHAR},\",\n \"day_detail2 = #{day_detail2,jdbcType=VARCHAR},\",\n \"location = #{location,jdbcType=VARCHAR},\",\n \"remaining = #{remaining,jdbcType=INTEGER},\",\n \"total = #{total,jdbcType=INTEGER},\",\n \"extra = #{extra,jdbcType=VARCHAR},\",\n \"index = #{index,jdbcType=INTEGER}\",\n \"where courseid = #{courseid,jdbcType=VARCHAR}\"\n })\n int updateByPrimaryKey(GeneralCourse record);", "@Override\n public void updateItem(P_CK t) {\n \n }", "@Override\n public void update(String desc) {\n }", "int updateByPrimaryKey(TrainingCourse record);", "public void updBasicInfo(Connection con, loginProfile prof, boolean isChangeDate) throws qdbException, qdbErrMessage, cwSysMessage {\n\t\ttry {\n\t\t\tres_id = mod_res_id;\n\n\t\t\tres_type = RES_TYPE_MOD;\n\t\t\tres_upd_user = prof.usr_id;\n\n\t\t\t// check User Right\n\n\t\t\t// checkModifyPermission(con, prof);\n\t\t\t// if (!dbResourcePermission.hasPermission(con, mod_res_id, prof,\n\t\t\t// dbResourcePermission.RIGHT_WRITE)) {\n\t\t\t// throw new qdbErrMessage(dbResourcePermission.NO_RIGHT_WRITE_MSG);\n\t\t\t// }\n\n\t\t\t// check timeStamp\n\n\t\t\tsuper.checkTimeStamp(con);\n\n\t\t\tsuper.updBasicInfo(con, isChangeDate);\n\n\t\t\t// tricky! upd instructor only when has instructor inputted\n\t\t\tif (mod_instructor_ent_id_lst != null) {\n\t\t\t\tdbResourcePermission.delUserRoleIsNull(con, mod_res_id);\n\t\t\t\t/*\n\t\t\t\t * if( mod_is_public && !mod_public_need_enrol )\n\t\t\t\t * dbResourcePermission\n\t\t\t\t * .save(con,mod_res_id,prof.root_ent_id,null,true,false,true);\n\t\t\t\t */\n\t\t\t\tfor (int i = 0; i < mod_instructor_ent_id_lst.length; i++) {\n\t\t\t\t\tdbResourcePermission.save(con, mod_res_id,\n\t\t\t\t\t\t\tmod_instructor_ent_id_lst[i], null, true, true,\n\t\t\t\t\t\t\tfalse);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tString SQL;\n\n\t\t\tif (mod_in_eff_start_datetime != null && dbUtils.isMinTimestamp(mod_in_eff_start_datetime)) {\n\t\t\t\tmod_in_eff_start_datetime = dbUtils.getTime(con);\n\t\t\t}\n\n\t\t\tSQL = \"update Module set mod_eff_start_datetime = ?, \"\n\n\t\t\t+ \"mod_eff_end_datetime = ? \" + \" , mod_pass_score = ? \"\n\t\t\t\t\t+ \" , mod_max_score = ? \" + \"where mod_res_id = ? \";\n\t\t\tPreparedStatement stmt = con.prepareStatement(SQL);\n\t\t\tint index = 1;\n\t\t\tstmt.setTimestamp(index++, mod_in_eff_start_datetime);\n\t\t\tstmt.setTimestamp(index++, mod_in_eff_end_datetime);\n\t\t\tstmt.setFloat(index++, mod_pass_score);\n\t\t\tstmt.setFloat(index++, mod_max_score);\n\t\t\tstmt.setLong(index++, mod_res_id);\n\t\t\tint stmtResult = stmt.executeUpdate();\n\t\t\tstmt.close();\n\t\t\tif (stmtResult != 1) {\n\t\t\t\tcon.rollback();\n\t\t\t\tthrow new qdbException(\"Failed to update status.\");\n\t\t\t}\n\n\t\t\treturn;\n\n\t\t} catch (SQLException e) {\n\t\t\tthrow new qdbException(\"SQL Error: \" + e.getMessage());\n\t\t}\n\t}", "@Override\r\n\tpublic void updateData() {\n\t\t\r\n\t}", "@Override\n\tpublic void update(Object entidade) {\n\t\t\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "private void updateCourse() throws ValidatorException, FileNotFoundException {\n //Lesen wir die Daten\n Scanner sc = new Scanner(System.in);\n Teacher newTeacher;\n int newMaxNr;\n System.out.print(\"Course Id: \");\n Long id = Long.parseLong(sc.next());\n System.out.print(\"New name: \");\n String name = sc.next();\n //Wir konnen nur einen neuer Lehrer auswahlen, der bereits existiert\n while (true) {\n System.out.print(\"New teacher ID: \");\n long ID = sc.nextLong();\n newTeacher = ctrl.getTeacherRepo().findOne(ID);\n if (newTeacher == null)\n System.out.println(\"Teacher with this ID doesn't exist! Please try again!\");\n else\n break;\n }\n int nrStudentEnrolledAlready = ctrl.getCourse(id).getStudentsEnrolled().size();\n /*\n Wir konnen die maximale Anzahl von Studenten nur auf eine Zahl andern, die großer als die aktuelle Anzahl\n von eingeschreibenen Studenten ist\n */\n while (true) {\n System.out.print(\"New maximum number of students: \");\n newMaxNr = sc.nextInt();\n if (newMaxNr < nrStudentEnrolledAlready)\n System.out.println(\"There are more than \" + newMaxNr + \" students already taking this course. (\"\n + nrStudentEnrolledAlready + \") Try again!\");\n else\n break;\n }\n System.out.print(\"New number of credits: \");\n int newNrCredits = sc.nextInt();\n\n //Wir rufen die updateCourse Funktion vom dem Controller mit den gelesenen Daten auf\n if(ctrl.updateCourse(id, name, newTeacher, newMaxNr, newNrCredits))\n System.out.println(\"Course updated with success!\");\n else\n System.out.println(\"Course with this ID doesn't exist!\");\n }", "@Override\r\n\tpublic void update(Cidade obj) {\n\r\n\t}", "void update ( priorizedListObject v ) throws DAOException;", "int updateByPrimaryKey(courses record);", "protected abstract void update();", "@Override\n\tprotected void update() {\n\t\t\n\t}", "int updateByPrimaryKey(Course record);", "int updateByPrimaryKey(Course record);", "public void update(){\n\t\tif ( crm.addedNewStudent()){\n\t\t\tList<Student> students = crm.getStudents();\n\t\t\tStudent newest = students.get(students.size()-1);\n\t\t\tint ID = newest.ID();\n\t\t\tString name = newest.name();\n\t\t\tint GradYear = newest.GradYear();\n\t\t\tsv.addStudent(ID, name, GradYear);\n\t\t}\n\t}", "int updateByPrimaryKeySelective(courses record);", "@Override\n public AddCourseResult updateCoursebase(String courseid, CourseBase courseBase) {\n int i = 0;\n try {\n i = courseMapper.updateCoursebase(courseBase);\n } catch (Exception e) {\n e.printStackTrace();\n return new AddCourseResult(CourseCode.COURSE_PUBLISH_CDETAILERROR, null);\n }\n if (i == 1) {\n\n return new AddCourseResult(CommonCode.SUCCESS, courseid);\n } else {\n return new AddCourseResult(CourseCode.COURSE_PUBLISH_CDETAILERROR, null);\n }\n\n\n }", "protected abstract void update();", "protected abstract void update();", "public void updAiccLongText(Connection con, String mod_import_xml, String mod_core_vendor, String mod_desc, String mod_web_launch)\n throws qdbException\n {\n try {\n /* commented for using the new update function for clob (2002.04.22 kawai)\n // update mod_import_xml\n PreparedStatement stmt = con.prepareStatement(\n \" UPDATE Module SET mod_import_xml= \" + cwSQL.getClobNull(con)\n + \" WHERE mod_res_id = ? \");\n\n stmt.setLong(1, mod_res_id);\n stmt.executeUpdate();\n stmt.close();\n\n stmt = con.prepareStatement(\n \" SELECT mod_import_xml FROM Module \"\n + \" WHERE mod_res_id = ? FOR UPDATE \"\n ,ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_UPDATABLE );\n stmt.setLong(1, mod_res_id);\n ResultSet rs = stmt.executeQuery();\n if (rs.next())\n {\n cwSQL.setClobValue(con, rs, \"mod_import_xml\", mod_import_xml);\n rs.updateRow();\n }\n stmt.close();\n\n // update mod_core_vendor\n stmt = con.prepareStatement(\n \" UPDATE Module SET mod_core_vendor= \" + cwSQL.getClobNull(con)\n + \" WHERE mod_res_id = ? \");\n\n stmt.setLong(1, mod_res_id);\n stmt.executeUpdate();\n stmt.close();\n\n stmt = con.prepareStatement(\n \" SELECT mod_core_vendor FROM Module \"\n + \" WHERE mod_res_id = ? FOR UPDATE \"\n ,ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_UPDATABLE );\n stmt.setLong(1, mod_res_id);\n rs = stmt.executeQuery();\n if (rs.next())\n {\n cwSQL.setClobValue(con, rs, \"mod_core_vendor\", mod_core_vendor);\n rs.updateRow();\n }\n stmt.close();\n */\n //--- use new clob update method to update clob columns (2002.04.22 kawai)\n // construct the condition\n String condition = \"mod_res_id = \" + mod_res_id;\n // construct the column & value\n String[] columnName = new String[3];\n String[] columnValue = new String[3];\n columnName[0] = \"mod_import_xml\";\n columnValue[0] = mod_import_xml;\n columnName[1] = \"mod_core_vendor\";\n columnValue[1] = mod_core_vendor;\n columnName[2] = \"mod_web_launch\";\n columnValue[2] = mod_web_launch;\n cwSQL.updateClobFields(con, \"Module\", columnName, columnValue, condition);\n\n // update res desc\n if(mod_desc != null && mod_desc.length() > RES_DESC_LENGTH) {\n mod_desc = mod_desc.substring(0,RES_DESC_LENGTH);\n }\n PreparedStatement stmt = null;\n try {\n stmt = con.prepareStatement(\n \" UPDATE Resources SET res_desc = ? \"\n + \" WHERE res_id = ? \");\n\n stmt.setString(1, mod_desc);\n stmt.setLong(2, mod_res_id);\n stmt.executeUpdate();\n } finally {\n if(stmt!=null) stmt.close();\n }\n super.updateTimeStamp(con);\n } catch(SQLException e) {\n throw new qdbException(\"SQL Error: \" + e.getMessage());\n }\n }", "@Override\r\n\tpublic void update(GameContainer gc, int detla) throws SlickException\r\n\t{\n\t\t\r\n\t}", "@Override\n public boolean update(Revue objet) {\n return false;\n }", "public void update() throws SQLException {\n DatabaseConnector.updateQuery(\"UPDATE course SET \"\n + \"courseDept='\" + this.courseDept + \"', \"\n + \"courseNum='\" + this.courseNum + \"', \"\n + \"courseName='\" + this.courseName + \"', \"\n + \"info='\" + this.info + \"', \"\n + \"credit=\" + this.credit);\n }", "public void update(){}", "public void update(){}", "public void update() {\r\n\t\tCampLeaseDAO leaseDao = (CampLeaseDAO) getApplicationContext().getBean(\"leaseDaoBean\", CampLeaseDAO.class);\r\n\t\tleaseDao.update(this); // routine now uses leaseDao to get CampLease class\r\n\t}", "private void updatejob() {\n\t\tString course = edt_course.getText().toString();\n\t\tString content = edt_content.getText().toString();\n\t\tjob.setCourseName(course);\n\t\tjob.setJobContent(content);\n\t\tjob.update(new UpdateListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void done(BmobException e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif (e==null) {\n\t\t\t\t\ttoast(\"更新成功\");\n\t\t\t\t\tUpdateJobActivity.this.finish();\n\t\t\t\t} else {\n\t\t\t\t\ttoast(\"错误:\"+e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "@Override\n\t@Transactional\n\tpublic void updateSectionsByCourseFromDW(Course course) {\n\t\tString ipaSubjectCode = course.getSubjectCode();\n\t\tString ipaCourseNumber = course.getCourseNumber();\n\n\t\tList<SectionGroup> sectionGroups = this.sectionGroupService.findByCourse(course);\n\n\t\tfor (SectionGroup sectionGroup : sectionGroups) {\n\t\t\tString ipaTermCode = sectionGroup.getTermCode();\n\n\t\t\tfor (Section section : sectionGroup.getSections()) {\n\t\t\t\tString ipaSequenceNumber = section.getSequenceNumber();\n\n\t\t\t\tString uniqueKey = ipaSubjectCode + \"-\" + ipaCourseNumber + \"-\" + ipaSequenceNumber;\n\n\t\t\t\tList<DwSection> _allDwSections = this.dwRepository.getSectionsByTermCodeAndUniqueKeys(ipaTermCode, Arrays.asList(uniqueKey));\n\n\t\t\t\tDwSection dwSection = _allDwSections.stream().filter(s ->\n\t\t\t\t\t\tipaTermCode.equals(s.getTermCode())\n\t\t\t\t\t\t\t\t&& ipaSequenceNumber.equals(s.getSequenceNumber())\n\t\t\t\t\t\t\t\t&& ipaSubjectCode.equals(s.getSubjectCode())\n\t\t\t\t\t\t\t\t&& ipaCourseNumber.equals(s.getCourseNumber())\n\t\t\t\t\t\t\t\t&& (s.getCrn() != null)\n\t\t\t\t).findFirst().orElse(null);\n\n\t\t\t\tif(dwSection != null) {\n\t\t\t\t\t// Set CRN if necessary\n\t\t\t\t\tif (dwSection.getCrn().equals(section.getCrn()) == false) {\n\t\t\t\t\t\tsection.setCrn(dwSection.getCrn());\n\t\t\t\t\t\tsection = this.sectionService.save(section);\n\t\t\t\t\t}\n\n\t\t\t\t\tactivityService.syncActivityLocations(dwSection, section.getActivities());\n\t\t\t\t\tactivityService.syncActivityLocations(dwSection, sectionGroup.getActivities());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\r\n\tpublic void update() {\r\n\r\n\t}", "private void updateDB() {\n }", "int updateByPrimaryKeySelective(TrainingCourse record);", "int updateByPrimaryKeySelective(Course record);", "private void saveCourse() {\n String nameString = mNameEditText.getText().toString().trim();\n\n // Check if this is supposed to be a new pet\n // and check if all the fields in the editor are blank\n if (mCurrentCourseUri == null && TextUtils.isEmpty(nameString)) {\n // Since no fields were modified, we can return early without creating a new pet.\n // No need to create ContentValues and no need to do any ContentProvider operations.\n return;\n }\n\n // Create a ContentValues object where column names are the keys,\n // and pet attributes from the editor are the values.\n ContentValues values = new ContentValues();\n values.put(CourseEntry.COLUMN_COURSE_NAME, nameString);\n\n // Determine if this is a new or existing pet by checking if mCurrentPetUri is null or not\n if (mCurrentCourseUri == null) {\n // This is a NEW pet, so insert a new pet into the provider,\n // returning the content URI for the new pet.\n Uri newUri = getContentResolver().insert(CourseEntry.CONTENT_URI_COURSE, values);\n\n // Show a toast message depending on whether or not the insertion was successful.\n if (newUri == null) {\n // If the new content URI is null, then there was an error with insertion.\n Toast.makeText(this, getString(R.string.editor_insert_course_failed),\n Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the insertion was successful and we can display a toast.\n Toast.makeText(this, getString(R.string.editor_insert_course_successful),\n Toast.LENGTH_SHORT).show();\n }\n } else {\n\n int rowsAffected = getContentResolver().update(mCurrentCourseUri, values, null, null);\n\n // Show a toast message depending on whether or not the update was successful.\n if (rowsAffected == 0) {\n // If no rows were affected, then there was an error with the update.\n Toast.makeText(this, getString(R.string.editor_update_course_failed),\n Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the update was successful and we can display a toast.\n Toast.makeText(this, getString(R.string.editor_update_course_successful),\n Toast.LENGTH_SHORT).show();\n }\n }\n }", "public void updateData() {}", "@Override\n\t/**\n\t * 修改数据\n\t * update mwfj_jdbc.Student set paramr=? where id=?\n\t */\n\tpublic void updateStudent(Student student) {\n\t\t\n\t}", "@Override\n\tpublic Course updateExperimentSequence(int courseid, int experimentid, int seq) {\n\t\tCourse course = findById(courseid);\n\t\tif(course == null||course.getIsActive() == false)\n\t\t\treturn null;\n\t\tSet<CourseExperiment> ces= course.getCourseExperiment();\n\t\tIterator<CourseExperiment> i = ces.iterator();\n\t\twhile ( i.hasNext()) {\n\t\t\t\n\t\t\tCourseExperiment ce = i.next();\n\t\t\tif(ce.getExperiment().getId()==experimentid)\n\t\t\t\tce.setSequence(seq);\n\t\t\t\n\t\t}\n\t\treturn course;\n\t}", "@Override\n\tpublic void update() {}", "@Override\n\tpublic void update() {}", "public void updateFields(Connection con) throws SQLException, NumberFormatException {\r\n //Get the current CID selected\r\n int intCID = getCID();\r\n\r\n //If the CID != 0, load the data into the fields\r\n //Otherwise clear all the fields\r\n if (intCID != 0) {\r\n //Query for information associated with the selected CID\r\n ResultSet rs = Queries.getCourse(con, intCID);\r\n\r\n //Update all the fields with the associated data\r\n if (rs.next()) {\r\n cbSID.setSelectedItem(rs.getInt(2));;\r\n tfName.setText(rs.getString(3));\r\n tfTitle.setText(rs.getString(4));\r\n tfDepartment.setText(rs.getString(5));\r\n tfCredits.setText(rs.getString(6));\r\n taDescription.setText(rs.getString(7));\r\n taOutcomes.setText(rs.getString(8));\r\n tfContactEmail.setText(rs.getString(9));\r\n tfContactName.setText(rs.getString(10));\r\n } else {\r\n JOptionPane.showMessageDialog(JPCourse.this, \"Course Not Found\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n } else {\r\n clearFields();\r\n }\r\n }", "abstract void updateStructure();", "@Override\r\n\tpublic int updateCourseById(CourselistDto course) {\n\t\treturn courselistDao.updateCourseById(course);\r\n\t}", "public static void updateCourses(String termCode) throws Exception\r\n {\r\n if (isValidTermCode(termCode))\r\n {\r\n\r\n DatabaseHelper.open();\r\n\r\n subjects = (ArrayList<Subject>) Subject.selectAllSubjects(\"\", DatabaseHelper.getConnection());\r\n teachers = (ArrayList<Teacher>) Teacher.selectAllTeacher(\"\", DatabaseHelper.getConnection());\r\n courses = (ArrayList<Course>) Course.selectAllCourse(\"\", DatabaseHelper.getConnection());\r\n categories = (ArrayList<Category>) Category.selectAllCategory(\"\", DatabaseHelper.getConnection());\r\n\r\n if (teachers.size() > 0)\r\n {\r\n autoIncValTeach = teachers.get(teachers.size() - 1).getTeacherID();\r\n System.out.println(\"AUTO INC Teachers: \" + autoIncValTeach);\r\n }\r\n\r\n if (subjects.size() > 0)\r\n {\r\n autoIncValSub = subjects.get(subjects.size() - 1).getSubjectID();\r\n System.out.println(\"AUTO INC SUBJECTS: \" + autoIncValSub);\r\n }\r\n\r\n if (courses.size() > 0)\r\n {\r\n autoIncValCourse = courses.get(courses.size() - 1).getCourseID();\r\n }\r\n\r\n\r\n URL url = new URL(\"http://apps.hpu.edu/cis/web/index.php/search/search?term=\" + termCode);\r\n BufferedReader reader = new BufferedReader(new InputStreamReader(url.openStream()));\r\n\r\n String line;\r\n boolean concat = false;\r\n boolean read = false;\r\n\r\n\r\n String content = \"\";\r\n int count = 0;\r\n String lname = \"\", fname = \"\", abbrev = \"\";\r\n int level = 0;\r\n\r\n while ((line = reader.readLine()) != null)\r\n {\r\n\r\n if (line.contains(\"<td>\"))\r\n {\r\n concat = true;\r\n }\r\n if (line.contains(\"</td>\"))\r\n {\r\n content += line;\r\n concat = false;\r\n read = true;\r\n }\r\n if (concat)\r\n {\r\n content += line;\r\n }\r\n\r\n if (read)\r\n {\r\n String value = content.substring(content.indexOf(\">\") + 1, content.lastIndexOf(\"<\")).trim();\r\n\r\n read = false;\r\n content = \"\";\r\n count++;\r\n\r\n if (count % 5 == 2)\r\n {\r\n String[] values = value.split(\" \");\r\n abbrev = values[0].trim();\r\n level = Integer.parseInt(values[1].trim());\r\n }\r\n else if (count % 5 == 4)\r\n {\r\n String[] values = value.split(\" \");\r\n fname = values[0].trim();\r\n lname = values[1].trim();\r\n\r\n insertData(lname, fname, abbrev, level);\r\n }\r\n }\r\n }\r\n\r\n for (int s = 0; s < newsubjects.size(); s++)\r\n {\r\n DatabaseHelper.insert(Subject.getValues(newsubjects.get(s)), Subject.SubjectTable.getTable());\r\n }\r\n for (int s = 0; s < newteachers.size(); s++)\r\n {\r\n DatabaseHelper.insert(Teacher.getValues(newteachers.get(s)), Teacher.TeacherTable.getTable());\r\n }\r\n for (int s = 0; s < newcourses.size(); s++)\r\n {\r\n DatabaseHelper.insert(Course.getValues(newcourses.get(s)), Course.CourseTable.getTable());\r\n }\r\n\r\n DatabaseHelper.close();\r\n if (newsubjects.size() > 0 || newteachers.size() > 0 || newcourses.size() > 0)\r\n {\r\n JOptionPane.showMessageDialog(null, \"Term successfully imported\");\r\n }\r\n else\r\n {\r\n JOptionPane.showMessageDialog(null, \"Term courses/teachers/subjects are already in database\");\r\n }\r\n\r\n\r\n }\r\n else\r\n {\r\n JOptionPane.showMessageDialog(null, \"The term code entered is not valid! Or the web address has changed\");\r\n }\r\n }", "@Override\n public int update(J34SiscomexOrigemDi j34SiscomexOrigemDi) {\n return super.doUpdate(j34SiscomexOrigemDi);\n }", "@Override\n\tpublic void updateCpteEpargne(CompteEpargne cpt) {\n\t\t\n\t}", "@Override\n public int update(J34SiscomexMercadoriaAdi j34SiscomexMercadoriaAdi) {\n return super.doUpdate(j34SiscomexMercadoriaAdi);\n }", "@Override\n\t\tpublic void update(Metodologia metodologia,String name) {\n\t\t\t\n\t\t}", "@Override\n\tpublic void update(BatimentoCardiaco t, String[] params) {\n\t\t\n\t}", "@Override\r\n\tpublic void update() {\r\n\t}", "public int updateCourse(int idCourse, String courseName, String courseDescription, int nbHourTotal, String idTeacher, int promoId){\n Connection connection = getConnection();\n int result = 0;\n if(connection!= null){\n try{\n PreparedStatement preparedStatement = connection.prepareStatement(\"UPDATE Courses SET courseName = ?, courseDescription = ?, nbHourTotal = ?, idTeacher = ?, idPromo = ? WHERE idCourse = ?\");\n preparedStatement.setInt(6, idCourse);\n preparedStatement.setString(1, courseName);\n preparedStatement.setString(2, courseDescription);\n preparedStatement.setInt(3, nbHourTotal);\n preparedStatement.setString(4, idTeacher);\n preparedStatement.setInt(5, promoId);\n result = preparedStatement.executeUpdate();\n } catch(SQLException e){\n e.printStackTrace();\n } finally {\n closeConnection(connection);\n }\n }\n return result;\n }", "private void updateCou(HttpServletRequest request, HttpServletResponse response) {\n\t\ttry {\r\n\t\t\tString courseid = request.getParameter(\"courseid\");\r\n\t\t\tCourse cou = course.findByCode(courseid);\r\n\t\t\trequest.setAttribute(\"CourseInfo\", cou);\r\n\t\t\trequest.getRequestDispatcher(\"CourseInfo/modifyCou.jsp\").forward(request, response);\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t}\r\n\t}", "@Test\r\n public void testUpdate() {\r\n System.out.println(\"update\");\r\n Title t = new Title();\r\n t.setIsbn(\"test\");\r\n t.setTitle(\"aaaaaaaaaaaaaaaaaa\");\r\n t.setAuthor(\"kkkkkkkkkkkkkk\");\r\n t.setType(\"E\");\r\n int expResult = 1;\r\n int result = TitleDao.update(t);\r\n assertEquals(expResult, result);\r\n }", "@Override\n \tpublic void update(DbManager db)\n \t{\n \t\tDbController DbC = DbController.getInstance(this, this);\n \t\tviewedRecipe = DbC.getUserRecipe(uri);\n \t\trecipeName.setText(viewedRecipe.getTitle());\n \t\tinstructions.setText(viewedRecipe.getInstructions());\n \t\t\n \t}", "@Override\r\n\tpublic void update() {\n\t}", "@Override\r\n\tpublic void update() {\n\t}", "protected abstract void updateInfos();", "@Override\n\t/**\n\t * Actualizo un empleado.\n\t */\n\tpublic boolean update(Object c) {\n\t\treturn false;\n\t}", "boolean updateContent();", "private void updateCourse(final Course course){\n db.collection(\"Courses\").document(course.getDocid())\n .set(course)\n .addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n\n Toast.makeText(CourseActivity.this, \"Successfully updated course info\", Toast.LENGTH_SHORT).show();\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(CourseActivity.this, \"Failed to update course\", Toast.LENGTH_SHORT).show();\n }\n });\n }", "@Override\n\tpublic void update() { }", "int updateByPrimaryKey(TrainCourse record);", "@Override\r\n\tpublic void update() {\n\r\n\t}", "@Override\r\n\tpublic void update() {\n\r\n\t}", "@Override\n\tpublic void update(Unidade obj) {\n\n\t}", "private void updrec() {\n\t\tsavedata();\n\t\tcontractDetail.retrieve(stateVariable.getXwordn(), stateVariable.getXwabcd());\n\t\tnmfkpinds.setPgmInd36(! lastIO.isFound());\n\t\tnmfkpinds.setPgmInd66(isLastError());\n\t\t// BR00011 Product found on Contract_Detail and NOT ERROR(CONDET)\n\t\tif (! nmfkpinds.pgmInd36() && ! nmfkpinds.pgmInd66()) {\n\t\t\trestoredata();\n\t\t\tcontractDetail.update();\n\t\t\tnmfkpinds.setPgmInd99(isLastError());\n\t\t\tif (nmfkpinds.pgmInd99()) {\n\t\t\t\tmsgObjIdx = setMsgObj(\"Y2U0007\", \"\", msgObjIdx, messages);\n\t\t\t\tstateVariable.setZmsage(subString(errmsg, 1, 78));\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tstateVariable.setZmsage(subString(errmsg, 1, 78));\n\t\t}\n\t}", "public long addOrUpdateCourse(Course course) {\n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\tContentValues values = new ContentValues();\n\t\tvalues.put(COURSE_C_VERSIONID, course.getVersionId());\n\t\tvalues.put(COURSE_C_TITLE, course.getTitleJSONString());\n\t\tvalues.put(COURSE_C_LOCATION, course.getLocation());\n\t\tvalues.put(COURSE_C_SHORTNAME, course.getShortname());\n\t\tvalues.put(COURSE_C_LANGS, course.getLangsJSONString());\n\t\tvalues.put(COURSE_C_IMAGE, course.getImageFile());\n\t\tvalues.put(COURSE_C_GROUP, course.getCourseGroup());\n\t\tvalues.put(COURSE_C_DATE, getDate());\n\n\t\tif (!this.isInstalled(course.getShortname())) {\n\t\t\tLog.v(TAG, \"Record added\");\n\t\t\treturn db.insertOrThrow(COURSE_TABLE, null, values);\n\t\t} else if(this.toUpdate(course.getShortname(), course.getVersionId())){\n\t\t\tlong toUpdate = this.getCourseID(course.getShortname());\n\t\t\tif (toUpdate != 0) {\n\t\t\t\tdb.update(COURSE_TABLE, values, COURSE_C_ID + \"=\" + toUpdate, null);\n\t\t\t\t// remove all the old activities\n\t\t\t\tString s = ACTIVITY_C_COURSEID + \"=?\";\n\t\t\t\tString[] args = new String[] { String.valueOf(toUpdate) };\n\t\t\t\tdb.delete(ACTIVITY_TABLE, s, args);\n\t\t\t\treturn toUpdate;\n\t\t\t}\n\t\t} \n\t\t\n\t\treturn -1;\n\t\t\n\t}", "public void update(Conseiller c) {\n\t\t\r\n\t}" ]
[ "0.6670857", "0.63898695", "0.63862723", "0.63402796", "0.63386875", "0.63263345", "0.6316208", "0.6193093", "0.61481744", "0.61481744", "0.61481744", "0.6094025", "0.6070606", "0.6070606", "0.60673684", "0.6025695", "0.5958251", "0.5956738", "0.5952593", "0.5939762", "0.5924208", "0.5920904", "0.5909465", "0.59075195", "0.5901609", "0.5900572", "0.58866316", "0.58744144", "0.5867848", "0.58662754", "0.58662754", "0.58662754", "0.58662754", "0.58662754", "0.5849556", "0.584019", "0.5834018", "0.5831346", "0.58267653", "0.5823945", "0.58161175", "0.58161175", "0.5797966", "0.5796032", "0.57939994", "0.57927144", "0.57927144", "0.57824695", "0.57755584", "0.5775457", "0.57752985", "0.57718956", "0.57718956", "0.5754016", "0.57493275", "0.5745268", "0.574483", "0.574483", "0.574483", "0.574483", "0.574483", "0.574483", "0.5741092", "0.57393414", "0.572327", "0.5722941", "0.5720781", "0.56992364", "0.5696489", "0.5690998", "0.56899816", "0.56899816", "0.5687415", "0.56860244", "0.56833476", "0.5676668", "0.567596", "0.5671641", "0.5656563", "0.5654807", "0.56479037", "0.56450194", "0.5642676", "0.5642291", "0.5640461", "0.56351763", "0.562266", "0.562266", "0.5621215", "0.5620128", "0.5611456", "0.5611433", "0.56111664", "0.5599566", "0.5582764", "0.5582764", "0.55739796", "0.55736095", "0.5557256", "0.5556101" ]
0.6627955
1
The selected question is already ordered.
public boolean checkQorder(Connection con) throws qdbException, qdbErrMessage { Vector resCon = dbResourceContent.getChildAss(con,mod_res_id); dbResourceContent rcn = new dbResourceContent(); for(int i=1;i<=resCon.size();i++) { rcn = (dbResourceContent) resCon.elementAt(i-1); if (rcn.rcn_order != i) return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void eventSelectOrder() {\n\t\t\n\t}", "public boolean isOrdered() {\n return mOrdered;\n }", "@Override\n\tpublic int getOrder() {\n\t\treturn 1;\n\t}", "@objid (\"fcf73d01-d406-41e9-9490-067237966153\")\n boolean isIsOrdered();", "@Override\r\n public int getOrder() {\r\n return this.order;\r\n }", "public void setOrdered(final boolean argOrdered) {\n mOrdered = argOrdered;\n }", "@Override\n public int getOrder() {\n return 0;\n }", "@Override\r\n\tpublic int getOrder() {\n\t\treturn 0;\r\n\t}", "boolean isIsOrdered();", "public void changeSortOrder();", "void setOrder(int order){\r\n\t\t\tthis.order = order;\r\n\t\t}", "public void setOpenQuestion(int index) {\n\t\t\t// TODO Auto-generated method stub\n\t\t\tif (openQuestion != index){\n\t\t\t\topenQuestion = index;\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\topenQuestion = -1;\n\t\t\t}\n\t\t\tthis.notifyDataSetChanged();\n\t\t}", "public void menorEmQuantidade(){\n qtadePorNum.sort(new Matriz.PairValueComparator());\n }", "public int getOrder() {\n return order;\n }", "public int getOrder() {\n return order;\n }", "private void nextQuestion() {\n\n // increment current question index\n currentQuestionIndex++;\n\n // if the current question index is smaller than the size of the quiz list\n if (currentQuestionIndex < quizList.size()) {\n\n // clear the possible answers\n possibleAnswers.clear();\n\n // grab the definition of current question, assign the correct answer variable\n // and add it to the list of possible answers.\n definition = quizList.get(currentQuestionIndex)[0];\n correctAnswer = quizMap.get(definition);\n possibleAnswers.add(correctAnswer);\n\n // while there's less than 4 possible answers, get a random answer\n // and if it hasn't already been added, add it to the list.\n while (possibleAnswers.size() < 4) {\n String answer = quizList.get(new Random().nextInt(quizList.size() - 1))[1];\n if (!possibleAnswers.contains(answer)) {\n possibleAnswers.add(answer);\n }\n }\n\n // shuffle possible answers so they display in a random order\n Collections.shuffle(possibleAnswers);\n } else {\n // if the question index is out of bounds, set quiz as finished\n quizFinished = true;\n }\n }", "int getOrder(){\r\n\t\t\treturn this.order;\r\n\t\t}", "@Override\n public int getOrder() {\n return 4;\n }", "public int getOrder() {\n return mOrder;\n }", "public ArrayList<Order> getCurrentSelection(){\n\t\t return this.currentSelection;\n\t }", "public int getOrder() {\r\n\t\treturn order;\r\n\t}", "public Survey() {\n\t\tthis.questions = new TreeSet<Ordered_question>( new Comparator<Ordered_question>() {\n\t\t public int compare(Ordered_question q1, Ordered_question q2) {\n\t\t \treturn Integer.compare(q1.getOrder(), q2.getOrder());\n\t\t }\n\t\t}) ;\n\t}", "boolean isOrdered();", "boolean isOrdered();", "public int getOrder() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\t\tPrefs.getInstance(getApplication()).setPrioritySelection(position);\n\t}", "public void setOrder(int order) {\n this.order = order;\n }", "public void setOrder(int order) {\n this.order = order;\n }", "public void setOrder(Integer order) {\n this.order = order;\n }", "public void incrementOrder() {\n mOrder++;\n }", "@Override\r\n public int compareTo(QuestionInfo a) {\n \r\n if (this.grauDeEquilibrio > a.grauDeEquilibrio)\r\n return -1;\r\n \r\n else if (this.grauDeEquilibrio < a.grauDeEquilibrio)\r\n return 1;\r\n else\r\n return 0;\r\n }", "void setOrderCertain(boolean orderCertain);", "public boolean getAlwaysOrdered();", "private void putToTop()\r\n {\r\n OrderManager manager = myOrderManagerRegistry.getOrderManager(ourKey);\r\n manager.activateParticipant(ourKey);\r\n manager.moveToTop(ourKey);\r\n }", "public void setOrder(Integer order) {\n this.order = order;\n }", "public void setOrder(Integer order) {\n this.order = order;\n }", "public Integer getOrder() {\n return order;\n }", "public void saveQuestion(){\n\n\t\tint numAnswers = testGenerator.getNumAnswers(questionNo);\n\t\tString setAnswerBox = Integer.toString(numAnswers);\n\n\t\ttestGenerator.setQuestionText(questionNo, ques.getText());\n\t\ttestGenerator.setAnswerText(questionNo, 1, ans1.getText());\n\t\ttestGenerator.setAnswerText(questionNo, 2, ans2.getText());\n\n\t\ttestGenerator.setIsAnswerCorrect(questionNo, 1, answer1.isSelected());\n\t\ttestGenerator.setIsAnswerCorrect(questionNo, 2, answer2.isSelected());\n\n\t\tif((setAnswerBox.equals(\"3\")) || setAnswerBox.equals(\"4\")) {\n\t\t\ttestGenerator.setAnswerText(questionNo, 3, ans3.getText()); \t\n\t\t\ttestGenerator.setIsAnswerCorrect(questionNo, 3, answer3.isSelected());\n\t\t}\n\n\t\tif(setAnswerBox.equals(\"4\")) {\n\t\t\ttestGenerator.setAnswerText(questionNo, 4, ans4.getText()); \t\n\t\t\ttestGenerator.setIsAnswerCorrect(questionNo, 4, answer4.isSelected());\n\t\t}\n\t}", "@Override\n public void edit(Question q) {\n delete(q);\n add(q);\n }", "public void setOrder(int value) {\n this.order = value;\n }", "public Integer getOrder() {\n return order;\n }", "public Integer getOrder() {\n return order;\n }", "@Override\n\tpublic void onItemSeleted(AdapterView<?> parent, View view, int position,\n\t\t\tlong id) {\n\t\tswitch (view.getId()) {\n\t\tcase R.id.editingquestionopt:\n\t\t\topt = position;\n\t\t\tbreak;\n\n\t\tcase R.id.editingquestionnum:\n\t\t\tnum = position + 1;\n\t\t\tbreak;\n\t\t}\n\t}", "public int getOrder();", "public int getOrder() {\n\t\treturn order;\n\t}", "public void setQuestion(){\n txt_question.setText(arrayList.get(quesAttempted).getQuestion());\n txt_optionA.setText(arrayList.get(quesAttempted).getOptionA());\n txt_optionB.setText(arrayList.get(quesAttempted).getOptionB());\n txt_optionC.setText(arrayList.get(quesAttempted).getOptionC());\n txt_optionD.setText(arrayList.get(quesAttempted).getOptionD());\n txt_que_count.setText(\"Que: \"+(quesAttempted+1)+\"/\"+totalQues);\n txt_score.setText(\"Score: \"+setScore);\n }", "private void updateQuestion(){\n mchoice1.setChecked(false);\n mchoice2.setChecked(false);\n mchoice3.setChecked(false);\n mchoice4.setChecked(false);\n\n if (mQuestonNumber < mQuizLibrary.getLength()){\n //menset setiap textview dan radiobutton untuk diubah jadi pertanyaan\n sQuestion.setText(mQuizLibrary.getQuestion(mQuestonNumber));\n //mengatur opsi sesuai pada optional A\n mchoice1.setText(mQuizLibrary.getChoice(mQuestonNumber, 1)); //Pilihan Ganda ke 1\n //mengatur opsi sesuai pada optional B\n mchoice2.setText(mQuizLibrary.getChoice(mQuestonNumber, 2)); //Pilihan Ganda ke 2\n //mengatur opsi sesuai pada optional C\n mchoice3.setText(mQuizLibrary.getChoice(mQuestonNumber, 3)); //Pilihan Ganda ke 3\n //mengatur opsi sesuai pada optional D\n mchoice4.setText(mQuizLibrary.getChoice(mQuestonNumber, 4)); //Pilihan Ganda ke 4\n\n manswer = mQuizLibrary.getCorrect(mQuestonNumber);\n //untuk mengkoreksi jawaban yang ada di class QuizBank sesuai nomor urut\n mQuestonNumber++; //update pertanyaan\n }else{\n Toast.makeText(Quiz.this, \"ini pertanyaan terakhir\", Toast.LENGTH_LONG).show();\n Intent i = new Intent (Quiz.this, HighestScore.class);\n i.putExtra(\"score\", mScore); //UNTUK MENGIRIM NILAI KE activity melalui intent\n startActivity(i);\n }\n }", "private void updateQuestion() {\r\n\r\n //The code below resets the option\r\n mOption1.setVisibility(View.VISIBLE);\r\n mOption2.setVisibility(View.VISIBLE);\r\n mOption3.setVisibility(View.VISIBLE);\r\n mNext.setVisibility(View.INVISIBLE);\r\n\r\n int questionSize = 12;\r\n\r\n if (mQuestionNumber < questionSize) {\r\n\r\n mQuestionView.setText((questionsDB.getQuestion(mQuestionNumber)));\r\n mOption1.setText(questionsDB.getChoice1(mQuestionNumber));\r\n mOption2.setText(questionsDB.getChoice2(mQuestionNumber));\r\n mOption3.setText(questionsDB.getChoice3(mQuestionNumber));\r\n\r\n mAnswer = questionsDB.getCorrectAnswer(mQuestionNumber);\r\n mQuestionNumber++;\r\n timeLeftInMillis = COUNTDOWN_IN_MILLIS;\r\n startCountDown();\r\n\r\n\r\n } else {\r\n displayScore();\r\n }\r\n\r\n }", "@Override\n\tpublic void accept_order() {\n\t\t\n\t}", "public void setOrder(int order) {\n mOrder = order;\n }", "public void setOrder(Order order){\n this.order = order;\n }", "public void addToOrder() {\n OrderLine orderLine = new OrderLine(order.lineNumber++, sandwhich, sandwhich.price());\n order.add(orderLine);\n ObservableList<Extra> selected = extraSelected.getItems();\n orderPrice.clear();\n String price = new DecimalFormat(\"#.##\").format(sandwhich.price());\n orderPrice.appendText(\"$\"+price);\n extraOptions.getItems().addAll(selected);\n extraSelected.getItems().removeAll(selected);\n pickSandwhich();\n\n\n\n }", "@Override\r\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tnextOrder();\r\n\t\t\t\t\t\t}", "public void sortByQnNum() {\r\n\t\tfor (int j = 0; j < displayingList.size() - 1; j++) {\r\n\t\t\tfor (int i = 0; i < displayingList.size() - j - 1; i++) {\r\n\t\t\t\tif (displayingList.get(i).getQnNum() > displayingList.get(i + 1).getQnNum()) {\r\n\t\t\t\t\tswapPosition(displayingList, i, i + 1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public String getOrder() {\n return this.Order;\n }", "public Integer getOrder();", "private void setQuestionView()\n\t{\n txtQNumber.setText(qid + 1 + \"/\" + numberOfQuestions);\n\t\ttxtQuestion.setText(currentQ.getQUESTION());\n\t\ttxtReference.setText(currentQ.getREFERENCE());\n\t\trda.setText(currentQ.getOPTA());\n\t\trdb.setText(currentQ.getOPTB());\n\t\trdc.setText(currentQ.getOPTC());\n\t\trdd.setText(currentQ.getOPTD());\n\t\tqid++;\n\t}", "@Override\n public void OnOkButtonPressed(OrderDetail detail) {\n orderListAdpater.addOrderDetail(detail);\n orderListAdpater.setSelectedIndex(orderListAdpater.getCount() - 1);\n orderList.setSelection(orderListAdpater.getCount());\n\n// if (orderListAdpater.orderDetailList.size() == 1) {\n orderListAdpater.notifyDataSetChanged();\n// }\n onOrderUpdate();\n\n }", "@Override\n\tpublic void placeOrder() {\n\t\t\n\t}", "private void setQuestion() {\n Question.setText(gen.getQuestion() + \"\\t\\tProblem # \" + currentQuestion + \"/\" + numQuestions);\n }", "@Override\n public void pickItem(int position) {\n setProductPicked(-1, position);\n }", "public void doneOrder(){\n setId(++count);\n }", "public int getOrder() {\n \treturn ord;\n }", "@Override\n\tpublic void inorder() {\n\n\t}", "public void setOrder(Integer order) {\n\t\tthis.order = order;\n\t}", "public void setOrder(int order) {\n\t\tthis.order = order;\n\t}", "void setOrderwithdate() {\r\n\r\n\t\tOrderAbyDate oad = new OrderAbyDate();\r\n\r\n\t\tMap<Integer, Map<Integer, Integer>> data = oad.getOrderByDate();\r\n\r\n\t\tjava.util.List<Integer> ls = new ArrayList<>(data.keySet());\r\n\r\n\t\tfor (int i = 0; i < ls.size(); i++) {\r\n\r\n\t\t\tdropyear1.getItems().add(\"\" + ls.get(i));\r\n\r\n\t\t}\r\n\r\n\t\tif (ls.size() > 0) {\r\n\r\n\t\t\tdropyear1.getSelectionModel().selectedItemProperty()\r\n\t\t\t\t\t.addListener(new ChangeListener<String>() {\r\n\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void changed(\r\n\t\t\t\t\t\t\t\tObservableValue<? extends String> observable,\r\n\t\t\t\t\t\t\t\tString oldValue, String newValue) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\r\n\t\t\t\t\t\t\tsetBarchartorder(\r\n\t\t\t\t\t\t\t\t\tdata.get(Integer.parseInt(newValue)),\r\n\t\t\t\t\t\t\t\t\tnewValue);\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\r\n\t\t\tdropyear1.getSelectionModel().select(0);\r\n\r\n\t\t}\r\n\r\n\t}", "public boolean shouldPushOrderByOut() {\n return true;\n }", "private void goToSelectedQuestion(int questionindex){\n radioGroup.setEnabled(true);\n saveAnswer();\n mQuestionIndex = questionindex;\n unSelectRadioButtons();\n updateQuestion();\n\n loadRadioButtonSelection();\n\n\n }", "private void updateOrder() {\n Arrays.sort(positions);\n }", "public void setPositionOrder(Integer positionOrder) {\n this.positionOrder = positionOrder;\n }", "private void fetchNewQuestion()\r\n\t{\r\n\t\t//Gets question and answers from model\r\n\t\tString[] question = quizModel.getNewQuestion();\r\n\t\t\r\n\t\t//Allocates answers to a new ArrayList then shuffles them randomly\r\n\t\tArrayList<String> answers = new ArrayList<String>();\r\n\t\tanswers.add(question[1]);\r\n\t\tanswers.add(question[2]);\r\n\t\tanswers.add(question[3]);\r\n\t\tanswers.add(question[4]);\r\n\t\tCollections.shuffle(answers);\r\n\t\t\r\n\t\t//Allocates north label to the question\r\n\t\tnorthLabel.setText(\"<html><div style='text-align: center;'>\" + question[0] + \"</div></html>\");\r\n\t\t\r\n\t\t//Allocates each radio button to a possible answer. Based on strings, so randomly generated questions...\r\n\t\t//...which by chance repeat a correct answer in two slots, either will award the user a point.\r\n\t\toption1.setText(answers.get(0));\r\n\t\toption2.setText(answers.get(1));\r\n\t\toption3.setText(answers.get(2));\r\n\t\toption4.setText(answers.get(3));\r\n\t\toption1.setActionCommand(answers.get(0));\r\n\t\toption2.setActionCommand(answers.get(1));\r\n\t\toption3.setActionCommand(answers.get(2));\r\n\t\toption4.setActionCommand(answers.get(3));\r\n\t\toption1.setSelected(true);\r\n\t\t\r\n\t\t//Update score\r\n\t\tscoreLabel.setText(\"<html><div style='text-align: center;'>\" + \"Score = \" + quizModel.getScore() + \"</div></html>\");\r\n\t}", "default int getOrder() {\n\treturn 0;\n }", "public Boolean getOrdered() { \n\t\treturn getOrderedElement().getValue();\n\t}", "public Integer getOrder() {\n\t\treturn order;\n\t}", "@Override\n\tpublic void mousePressed(MouseEvent e)\n\t{\n\t\tif (e.getComponent() == jLTill)\n\t\t{\n\t\t\tArrayList<Order> tempOL = globalFrame.getTill().getOrders();\n\t\t\tglobalFrame.setOrder(tempOL.get(jLTill.getSelectedIndex()));\n\t\t\tglobalFrame.updateOrderItemList();\n\t\t\tglobalFrame.updateOrderList();\n\t\t}\n\t}", "public void reorderQueuedQuestions(Long playerId, List<Integer> newOrder) {\r\n\t\tPlayer player = lookupPlayer(playerId);\r\n\r\n\t\t// check for invalid ids\r\n\t\tfor (Integer id : newOrder) {\r\n\t\t\tboolean found = false;\r\n\t\t\tfor (QueuedQuestion qq : player.getQueuedQuestions()) {\r\n\t\t\t\tif (qq.getQuestion().getId()==id) {\r\n\t\t\t\t\tfound = true;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (!found) {\r\n\t\t\t\tlogger.error(\"Invalid question id in reorder. id=\"+id);\r\n\t\t\t\tthrow new TrivolousError(\"Invalid question id \" + id);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// rerank by new order and make list of not found ids to delete\r\n\t\tArrayList<QueuedQuestion> qqsToBeDeleted = new ArrayList<QueuedQuestion>(); \r\n\t\tfor (QueuedQuestion qq : player.getQueuedQuestions()) {\r\n\t\t\tboolean found = false;\r\n\t\t\tint qid = qq.getQuestion().getId();\r\n\t\t\tint rank = 1;\r\n\t\t\tfor (Integer id : newOrder) {\r\n\t\t\t\tif (qid == id) {\r\n\t\t\t\t\tfound = true;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\trank++;\r\n\t\t\t}\r\n\t\t\tif (!found) {\r\n\t\t\t\tqqsToBeDeleted.add(qq);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t// reorder based on new order\r\n\t\t\t\tqq.setRank(rank);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// delete separately to prevent concurrent mod error\r\n\t\tfor (QueuedQuestion qq : qqsToBeDeleted) {\r\n\t\t\tquestionRemove(player, qq);\r\n\t\t}\r\n\t}", "@Override\n\tpublic int getOrder() {\n\t\treturn CoreEvent.DEFAULT_ORDER - 1;\n\t}", "private Question setUpQuestion(List<Question> questionsList){\n int indexOfQuestion = random.nextInt(questionsList.size());\n questionToBeHandled = questionsList.get(indexOfQuestion);\n questionsList.remove(indexOfQuestion);\n return questionToBeHandled;\n }", "public boolean orderCanceled() {\n\t\tordered = false;\n\t\tSystem.out.println(\"Ok your \" + name + \" order has been canceled.\");\n\t\treturn ordered;\n\t}", "private void setAnswerForLastQuestion() {\n\n DbHelper dbhelper = new DbHelper(context);\n questionNo = questionNo + 1;\n QuizAnswer answer = new QuizAnswer();\n answer.setQuizId(quizId);\n answer.setQuestionId(questionId);\n int optionId = shareprefs.getInt(\"optionId\", 0);\n answer.setOptionId(optionId);\n int correctAns = shareprefs.getInt(\"correctAns\", 0);\n answer.setAnswer(correctAns);\n answer.setContentId(contentId);\n boolean flage = dbhelper.upsertQuizAnswerEntity(answer);\n if (flage) {\n shareprefs.edit().clear().commit();//clear select OptionPreferences\n Intent mIntent = new Intent(this, QuizResultActivity.class);\n mIntent.putExtra(\"quizId\", quizId);\n mIntent.putExtra(\"contentId\", contentId);\n mIntent.putExtra(\"totalQuestion\", questionList.size());\n startActivityForResult(mIntent,1);\n }\n }", "public boolean getOrderAscending()\n {\n return this.orderAscending;\n }", "private static boolean checkOrderList() {\n if (size != MainGUI.orderList.size()) {\n size = MainGUI.orderList.size();\n return true;\n }\n\n return false;\n }", "private void fixQueOrder(Connection con) throws SQLException, qdbException {\n \n if(mod_type == null || mod_type.equalsIgnoreCase(MOD_TYPE_TST)|| mod_type.equals(MOD_TYPE_SVY) || mod_type.equals(MOD_TYPE_EVN)) {\n //only standard test (TST) needs to fix que order bt its nature\n //for other module type, nothing should have been fixed\n //therefore try to fix the que order if the module tpye is unknown\n PreparedStatement stmt = null;\n try {\n //get the module's questions\n Vector vQue = dbResourceContent.getChildAss(con, mod_res_id);\n for(int i=0; i<vQue.size(); i++) {\n dbResourceContent rcn = (dbResourceContent) vQue.elementAt(i);\n if(rcn.rcn_order != i+1) {\n //if the que is in order, update it\n rcn.rcn_order = i+1;\n rcn.updOrder(con);\n }\n }\n } finally {\n if(stmt!=null) {stmt.close();}\n }\n }\n return;\n }", "public final Integer getOrder() {\n return this.order;\n }", "public boolean cakeOrdered() {\n\t\tordered = true;\n\t\tSystem.out.println(\"Your \" +name+ \" order has been placed\");\n\t\treturn ordered;\n\t}", "@Override\n public boolean isPromptAnswered() {\n return ((mSelectedIndex >= 0 && mSelectedIndex < mChoices.size()) || (mSelectedIndex >= 0 && mSelectedIndex < mChoices\n .size() + mCustomChoices.size()));\n }", "private void prevSelect() {\n\t\tif (selectionIndex - 1 < 0) {\n\t\t\tselectionIndex = selections.size() - 1;\n\t\t} else {\n\t\tselectionIndex--;\n\t\t}\n\t\tselected.setVisible(true);\n\t\tselected = selections.get(selectionIndex);\n\t\t\n\t}", "@Override\n public String getDescription() {\n return \"Ask order placement\";\n }", "private void addQuestion() {\n if (modifiable()) {\n try {\n this.questions.add(Question.fromInput(gradeable()));\n } catch (UserInputException e) {\n System.err.println(e.getMessage());\n }\n } else {\n System.err.println(\"Can not modify this by add a question.\");\n }\n }", "private void setCurrentQuestion(){\n\tfor(int i=0; i<QuestionsTree.length;i++){\n\t\tif(QuestionsTree[i][0].equals(currentRule)){\n\t\t\tcurrentQuestion = QuestionsTree[i][1];\n\t\t}\n\t}\n}", "public Integer getPositionOrder() {\n return positionOrder;\n }", "private void checkToMyOrder() {\n toolbar.setTitle(R.string.my_order);\n MyOrderFragment myOrderFragment = new MyOrderFragment();\n displaySelectedFragment(myOrderFragment);\n }", "@Override\n public final GameQuestion getActiveQuestion() {\n return this.activeQuestion;\n }", "public void setPositionChoosed(int positionChoosed) {\n this.positionChoosed = positionChoosed;\n }", "public static void hitQuiz()\n\t{\n\t\tQuestion q = Home.questionList.get((int)(Math.random()*Home.questionList.size()));\n\t\tQuizQuestion q1= new QuizQuestion(q);\n\t\tq1.setAlwaysOnTop(true);\n\t\tq1.setVisible(true);\n\t\tsuspend();\n\t}", "public void addQ (Question Q)\n {\n newQuestion = Q;\n \n enqueue();\n }", "public void setQuestions(Vector<Question> q){\n\t\t\tquestions = q;\n\t\t}", "void setOrder(Order order);", "@Override\n public void actionPerformed(ActionEvent e) {\n Question poppedQuestion = questionStack.pop();\n for (int i = 0; i < questionsList.size(); i++){\n if (questionsList.get(i).getQuestion().equals(poppedQuestion.getQuestion())){\n\n // Go through any special cases, and act accordingly\n if (poppedQuestion.getSpecialCase() == 1 || poppedQuestion.getSpecialCase() == 5){\n totalScore -= scoreStack.peek();\n scoreStack.pop();\n askingPermsPref = false;\n } else if (!scoreStack.isEmpty() && poppedQuestion.getScore() > 0){\n totalScore -= scoreStack.peek();\n scoreStack.pop();\n }\n // revalidate gui, load questions, and revalidate again\n gui.revalidate();\n loadQuestion(questionsList, gui, i);\n gui.revalidate();\n }\n }\n }", "public void setQuestion(final List<Question> question) {\n\t\tthis.question = question;\n\t}" ]
[ "0.6170231", "0.6142077", "0.60037065", "0.58778626", "0.58684576", "0.57800066", "0.57591057", "0.5719937", "0.56996185", "0.5688918", "0.56835014", "0.5676942", "0.5644723", "0.56353176", "0.56353176", "0.5635067", "0.5628094", "0.5608827", "0.5579749", "0.55789876", "0.55565864", "0.55533296", "0.5544828", "0.5544828", "0.55369246", "0.5513402", "0.55122524", "0.55122524", "0.5503913", "0.5497219", "0.5483421", "0.5477658", "0.54771626", "0.5472499", "0.54616654", "0.54616654", "0.5450865", "0.5450182", "0.54471266", "0.54419845", "0.54240954", "0.54240954", "0.54200304", "0.5409931", "0.53996533", "0.53931326", "0.53904474", "0.53822565", "0.5380934", "0.5369059", "0.5364504", "0.53644276", "0.53570473", "0.53522164", "0.5350531", "0.53476685", "0.534511", "0.5338168", "0.5335884", "0.53322625", "0.53264546", "0.5322641", "0.53147453", "0.5296065", "0.52960414", "0.5288975", "0.5288199", "0.5285079", "0.52831155", "0.52759117", "0.52744985", "0.5265433", "0.52608603", "0.5247897", "0.5243773", "0.5242236", "0.52376086", "0.5227866", "0.5221187", "0.52189064", "0.5216805", "0.52159566", "0.52150834", "0.52115583", "0.52095175", "0.5199262", "0.51880074", "0.51818293", "0.51773566", "0.51771206", "0.51747304", "0.51526254", "0.5151208", "0.5149497", "0.5148242", "0.5147255", "0.5145417", "0.5140409", "0.5139728", "0.51370305", "0.5135359" ]
0.0
-1
isShuffleMCQue: indicate if the MC question in this test needs to be shuffled
public String genTestAsXML(Connection con, loginProfile prof, dbModuleSpec dbmsp, String[] robs, float time_limit, String uploadDir, Vector resIdVec, boolean showAnswer, long tkh_id, boolean boolPreviewAssessment, boolean isShuffleMCQue) throws qdbException, qdbErrMessage, cwSysMessage, SQLException, cwException { String qList = ""; if (mod_type.equalsIgnoreCase(MOD_TYPE_STX)) res_duration = time_limit; // pass the resIdVec as reference and store all the queId in the test // return to qdbAction for access control if (mod_type.equalsIgnoreCase(MOD_TYPE_DXT) || mod_type.equalsIgnoreCase(MOD_TYPE_STX)) { qList = getDynamicQueAsXML(con, prof.usr_id, dbmsp, robs, uploadDir, resIdVec, boolPreviewAssessment, isShuffleMCQue); }else { qList = getStaticQueAsXML(con, resIdVec, isShuffleMCQue); } Timestamp curTime = dbUtils.getTime(con); int scenarioQueCount = dbResource.countScenarioQueInList(con, resIdVec); String result = "<?xml version=\"1.0\" encoding=\"" + dbUtils.ENC_UTF + "\" standalone=\"no\" ?>" + dbUtils.NEWL; result += "<quiz id=\""+ res_id + "\" language=\"" + res_lan + "\" timestamp=\"" + res_upd_date ; result += "\" start_time=\"" + curTime + "\" size=\"" + (resIdVec.size()-scenarioQueCount) + "\" total_score=\"" + (int)mod_max_score + "\">" + dbUtils.NEWL; result += "<key>" + Math.round(Math.random()*99+1) + "</key>" + dbUtils.NEWL; // author's information //result += prof.asXML() + dbUtils.NEWL; if (this.usr_ent_id==0){ this.usr_ent_id = prof.usr_ent_id; } result += getModHeader(con, prof)+ dbUtils.NEWL; result += dbModuleEvaluation.getModuleEvalAsXML(con, mod_res_id, this.usr_ent_id, tkh_id); result += dbResourcePermission.aclAsXML(con,res_id,prof); dbRegUser usr = new dbRegUser(); usr.usr_ent_id = this.usr_ent_id; usr.ent_id = this.usr_ent_id; usr.get(con); result += usr.getUserShortXML(con, false, true, false); result += qList + dbUtils.NEWL; if( showAnswer ) { dbProgressAttempt dbAtm = new dbProgressAttempt(); CommonLog.debug("getUserAttemptedResultAsXML:" + tkh_id); result += dbAtm.getUserAttemptedResultAsXML(con, mod_res_id, this.usr_ent_id, tkh_id); } result += "</quiz>"+ dbUtils.NEWL; return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean shuffleNeeded();", "public boolean getShuffle() {\n\t\treturn this.shuffle;\n\t}", "@Override\n\tpublic int getShuffleMode()\n\t{\n\t\treturn 0;\n\t}", "public String getStaticQueAsXML(Connection con, Vector resIdVec, boolean isShuffleMCQue)\n throws qdbErrMessage, qdbException, cwSysMessage, cwException\n {\n Vector qArray = dbResourceContent.getChildAss(con,mod_res_id);\n\t\tif( this.mod_logic != null && this.mod_logic.equalsIgnoreCase(dbModule.MOD_LOGIC_RND) ){\n\t\t\tqArray = cwUtils.randomVec(qArray);\n\t\t}\n\t\t\n if(qArray.size() == 0) {\n //if no question is drawn, \n //throw system message and do not launch the test player\n \tCommonLog.info(\"Empty question for Standard Test\");\n throw new qdbErrMessage(\"MOD008\");\n }\n\n String qList = \"\";\n dbQuestion dbq = new dbQuestion();\n dbResourceContent rcn = new dbResourceContent();\n long order = 1;\n int i;\n\n mod_size = qArray.size();\n\n for (i=0;i < qArray.size();i++) {\n rcn = (dbResourceContent) qArray.elementAt(i);\n dbq.que_res_id = rcn.rcn_res_id_content;\n dbq.res_id = dbq.que_res_id;\n dbq.get(con);\n order = rcn.rcn_order;\n// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n if( dbq.que_type.equalsIgnoreCase(dbResource.RES_SUBTYPE_FSC) ) {\n FixedScenarioQue fsq = new FixedScenarioQue();\n fsq.res_id = dbq.res_id;\n fsq.get(con);\n try{\n Vector v_que_id = fsq.getChildQueId(con);\n if (v_que_id.size() == 0) {\n throw new qdbErrMessage(\"MSP002\");\n }\n if( fsq.qct_allow_shuffle_ind == 1 ) {\n v_que_id = cwUtils.randomVec(v_que_id);\n }\n qList += fsq.asXMLinTest(con, order++, v_que_id, isShuffleMCQue);\n resIdVec.addAll(v_que_id);\n }catch(SQLException e){\n throw new qdbException(e.getMessage());\n }\n } else if( dbq.que_type.equalsIgnoreCase(dbResource.RES_SUBTYPE_DSC)) {\n DynamicScenarioQue dsq = new DynamicScenarioQue();\n dsq.res_id = dbq.res_id;\n dsq.get(con);\n try{\n Vector v_que_id = dsq.getChildQueId(con);\n if (v_que_id.size() == 0) {\n throw new qdbErrMessage(\"MSP002\");\n }\n qList += dsq.asXMLinTest(con, order++, v_que_id, isShuffleMCQue);\n resIdVec.addAll(v_que_id);\n }catch(SQLException e){\n throw new qdbException(e.getMessage());\n }\n } else {\n qList += dbq.asXML(con, order, isShuffleMCQue);\n }\n \n// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n resIdVec.addElement(new Long(dbq.que_res_id));\n }\n\n return qList;\n\n }", "public void setShuffle(boolean shuffle)\n {\n this.shuffle = shuffle;\n }", "@ShuffleMode\n public abstract int getShuffleMode();", "public void setShuffle() {\n\t\tthis.shuffle = !this.shuffle;\n\t}", "public boolean shuffle(String name)\n {\n CardDeck deck = this.getDeck(name);\n if(deck == null)\n {\n return false;\n }\n if(shuffler == null)\n {\n return true;\n }\n shuffler.shuffle(deck);\n return true;\n }", "public String getStaticQueAsXML_test(Connection con, Vector resIdVec,boolean isShuffleMCQue, long tkh_id, ExportController controller)\n throws SQLException,qdbException ,cwSysMessage,qdbErrMessage,qdbErrMessage\n {\n Vector qArray = dbResourceContent.getChildAss(con,mod_res_id);\n Vector qArray_id = new Vector();\n\n if (qArray.size() == 0) {\n //if no question is drawn, \n //throw system message and do not launch the test player\n \tCommonLog.info(\"Empty question for Standard Test\");\n throw new cwSysMessage(\"MOD008\");\n }\n for (int i=0;i < qArray.size();i++) {\n dbResourceContent rcn = (dbResourceContent) qArray.elementAt(i);\n qArray_id.add(new Long(rcn.rcn_res_id_content)); \n }\n \n String qList = \"\";\n\n mod_size = qArray.size();\n qList += dbQuestion.getQueAsXML_test(con, null, qArray_id, resIdVec, mod_type, isShuffleMCQue, tkh_id, mod_res_id, controller);\n\n return qList;\n \n }", "private static boolean isShuffleWorking(Deck deck,Card newCard,Card newCard2){\n\t\tdeck.shuffle();\n\t\tboolean isCorrect=true;\n\t\tif(newCard.getSuit().equals(newCard2.getSuit()) &&\n\t\t\t\tnewCard.getRank()==newCard2.getRank()){\n\t\t\t\t\tisCorrect=false;\n\t\t\t\t\treturn isCorrect;\n\t\t}\n\t\tfor(int i=0;i<53;i++){\n\t\t\tdeck.getOneCard();\n\t\t}\n\t\tif(deck.nUsed!=1){\n\t\t\tisCorrect=false;\n\t\t}\n\t\treturn isCorrect;\n\t}", "public void setChanceCardShuffle() {\n ChanceCardShuffle = true;\n }", "public void shuffle();", "public void setChestCardShuffle() {\n ChanceCardShuffle = true;\n }", "@Test\n public void testShuffleGood() {\n System.out.println(\"shuffleGood\");\n Deck deck = new Deck();\n boolean shuffled = false;\n deck.shuffle();\n //we take out one card from the deck\n Card lastCard = deck.nextCard();\n //we take out 58 more cards\n for (int i =0 ; i<57;i++)\n {\n deck.nextCard();\n }\n //we take out the last card from the deck\n Card firstCard = deck.nextCard();\n \n //if both cards = the same value they were before being shuffled, then test will fail.\n if (lastCard.getValue() != CardType.WILDCARD )\n shuffled = true;\n else if (firstCard.getValue()!=CardType.ZERO)\n shuffled = true;\n \n //if either of the cards are different, that means the deck was shuffled and the test will pass\n assertEquals(true, shuffled);\n }", "private boolean isQueen(Point pos){\r\n Cells aux = model.getValueAt(pos);\r\n return (aux == Cells.BLACK_QUEEN || aux == Cells.RED_QUEEN);\r\n }", "public void shuffle(){\n Collections.shuffle(Arrays.asList(this.deck));\n }", "public void shuffle(){\r\n int randomPos;\r\n //for each card in the deck\r\n for(int i=0; i<52; i++){\r\n randomPos = getRandomPos(i);\r\n exchangeCards(i, randomPos);\r\n }\r\n topCardIndex = 0;\r\n\t}", "private boolean moveMakeQueen(Point orig, Point dest){\r\n if(isQueen(orig)) return false;\r\n return (isBlack(orig) && dest.getFirst() == 7) || (isRed(orig) && dest.getFirst() == 0);\r\n }", "public void shuffle(){\n Collections.shuffle(this.deckOfCards);\n }", "void shuffle();", "void shuffle();", "public void shuffle()\r\n/* 18: */ {\r\n/* 19:41 */ for (int i = 0; i < this.pop.size(); i++)\r\n/* 20: */ {\r\n/* 21:43 */ Cluster c = (Cluster)this.pop.elementAt(i);\r\n/* 22:44 */ g.setClusters(c.getClusterVector());\r\n/* 23:45 */ g.shuffleClusters();\r\n/* 24:46 */ c.setClusterVector(g.getClusters());\r\n/* 25:47 */ c.setConverged(false);\r\n/* 26: */ }\r\n/* 27: */ }", "@Test\n public void testShuffle() {\n System.out.println(\"shuffle\");\n Deck instance = new Deck();\n instance.shuffle(); \n }", "public void shuffle()\r\n {\r\n Collections.shuffle(cards);\r\n top = NUMCARDS - 1;\r\n }", "public abstract void shuffled();", "@Test\n public void testShuffle() {\n System.out.println(\"shuffle\");\n // can't really test something random\n }", "public void shuffle(){\r\n Collections.shuffle(cards);\r\n }", "public void shuffle() {\n Collections.shuffle(deck);\n }", "public void shuffle() {\n Collections.shuffle(deck);\n }", "public void shuffle()\r\n\t{\r\n\t\tRandom rand = ThreadLocalRandom.current();\r\n\t\t\r\n\t\tfor (int i = topCard; i > 0; i--)\r\n\t\t{\r\n\t\t\tint index = rand.nextInt(i + 1);\r\n\t\t\tString temp = cards[index];\r\n\t\t\tcards[index] = cards[i];\r\n\t\t\tcards[i] = temp;\r\n\t\t}\r\n\t}", "public void premesaj() {\r\n Collections.shuffle(kup);\r\n }", "private void randomizePuzzle() {\n\t\t// Choose random puzzles, shuffle the options.\n\t\tthis.puzzle = BarrowsPuzzleData.PUZZLES[(int) (Math.random() * BarrowsPuzzleData.PUZZLES.length)];\n\t\tthis.shuffledOptions = shuffleIntArray(puzzle.getOptions());\n\t}", "public void randomize(){\r\n\t\tfor(int i = 0;i<this.myQuestions.size();i++){\r\n\t\t\tthis.myQuestions.get(i).randomize();\r\n\t\t}\r\n\t\tCollections.shuffle(this.myQuestions);\r\n\t}", "public void shuffle() {\n\t\t\n\t\tRandom random = new Random();\n\t\tint position;\n\t\t\n\t\tfor(int i = 0; i < 200 * dimension; i++) {\n\t\t\tposition = random.nextInt(numTiles - 1);\n\t\t\tif(isValidMove(position)) {\n\t\t\t\tmakeMove(position);\n\t\t\t}\n\t\t}\n\t\t\n\t\tnumMoves = 0;\n\t}", "@Test\n public void reshuffle() {\n for(int i=0;i<10;i++){\n Shoe s = new Shoe(i);\n\n //draw a part of the cards\n for(int j=0;j<i*30;j++){\n s.drawCard();\n }\n\n s.reshuffle();\n Assert.assertEquals(i*Deck.getNumCardsInDeck(),s.getShoe().size());//checks if amount of cards is correct\n //shuffle is allready tested\n }\n\n System.out.println(\"reshuffle() is working fine\");\n }", "public void setShuffle() {\n shuffle = true;\n // set AUTO so when the song ends - it will start the next song automatically\n action = PLAY_TRACK;\n if (shuffleIndexes != null) shuffleIndexes.clear();\n // create a new list of shuffled indexes\n shuffleIndexes = new ArrayList<>();\n for (int i = 0; i < songsNumber; i++) shuffleIndexes.add(i);\n Collections.shuffle(shuffleIndexes);\n songPosn = 0;\n playSong();\n }", "public void shuffle() {\n\t\tfor (int i = 51; i > 0; i--) {\n\t\t\tint rand = (int) (Math.random() * (i + 1));\n\t\t\tint temp = deck[i];\n\t\t\tdeck[i] = deck[rand];\n\t\t\tdeck[rand] = temp;\n\t\t}\n\t\tcurrentPosition = 0;\n\t}", "public void shuffle() {\r\n\t\tCollections.shuffle(cards);\r\n\t}", "private static boolean requiresRepartitioning(CacheType type, MatrixCharacteristics mcRdd,\n\t\t\t\t\t\t\t\t\t\t\t\t MatrixCharacteristics mcBc, int numPartitions) {\n\t\t//note: as repartitioning requires data shuffling, we try to be very conservative here\n\t\t//approach: we repartitionNonZeros, if there is a \"outer-product-like\" mm (single block common dimension),\n\t\t//the size of output partitions (assuming dense) exceeds a size of 1GB \n\n\t\tboolean isLeft = (type == CacheType.LEFT);\n\t\tboolean isOuter = isLeft ?\n\t\t\t\t(mcRdd.getRows() <= mcRdd.getRowsPerBlock()) :\n\t\t\t\t(mcRdd.getCols() <= mcRdd.getColsPerBlock());\n\t\tboolean isLargeOutput = (OptimizerUtils.estimatePartitionedSizeExactSparsity(isLeft ? mcBc.getRows() :\n\t\t\t\t\t\tmcRdd.getRows(),\n\t\t\t\tisLeft ? mcRdd.getCols() : mcBc.getCols(), isLeft ? mcBc.getRowsPerBlock() : mcRdd.getRowsPerBlock(),\n\t\t\t\tisLeft ? mcRdd.getColsPerBlock() : mcBc.getColsPerBlock(), 1.0) / numPartitions) > 1024 * 1024 * 1024;\n\t\treturn isOuter && isLargeOutput && mcRdd.dimsKnown() && mcBc.dimsKnown()\n\t\t\t\t&& numPartitions < getNumRepartitioning(type, mcRdd, mcBc);\n\t}", "@Override\n public boolean hasMoreQuestions() {\n return !(done);\n }", "@Test\n void shuffleTest() {\n CardDeck deck = new CardDeck(testCardTexts);\n int[] occurences = new int[testCardTexts.length];\n int numberOfCards = testCardTexts.length;\n int numberOfDraws = 10000;\n\n for (int i = 0; i < numberOfDraws ; i++) {\n //Shuffles deck\n deck.shuffle();\n\n //Draws upper card and gets id - increments occurence\n occurences[deck.draw().getId()]++;\n }\n\n for (int i = 0; i < testCardTexts.length; i++) {\n assertTrue(occurences[i]<(numberOfDraws/numberOfCards)+50 && occurences[i]> (numberOfDraws/numberOfCards)-50);\n }\n\n }", "public void shuffle() {\n\t\tCollections.shuffle(cards);\n\t}", "protected boolean isOrdered(PBFTServerMessage m){\n\n long nextPrePrepareSEQ = getStateLog().getNextPrePrepareSEQ();\n\n if(m != null && m.getSequenceNumber() != null){\n\n long seqn = m.getSequenceNumber();\n\n if(m instanceof PBFTPrePrepare){\n return seqn == nextPrePrepareSEQ;\n }\n }\n\n return false;\n\n }", "public void shuffleDeck() {\n\t\tCollections.shuffle(this.deck);\n\t}", "public static void queenSet() {\n\n boolean[][] boxes = new boolean[4][4];\n // System.out.println(queenPermutation2D(boxes, 4, 0, \"\"));\n System.out.println(queenCombination2D(boxes, 4, 0, \"\"));\n }", "public void shuffle() {\r\n\t\tCollections.shuffle(cards);\r\n\t\t// : Shuffle with random seed each time, then we can save the seed\r\n\t\t// Collections.shuffle(cards, new Random(10));\r\n\t}", "public void shuffle() {\n Collections.shuffle((List<Nummer>) this.albumNummers);\n }", "public void shuffleDeck() {\n\t\tCollections.shuffle(deck);\n\t}", "public void shuffle()\n\t{\n\t\tHashSet<Integer> usedRandoms = new HashSet<Integer>();\n\t\tthis.currentCard = 0;\n\t\tint i= 0;\n\t\twhile (i < deck.length)\n\t\t{\n\t\t\tint another = this.rand.nextInt(NUMBER_OF_CARDS);\n\t\t\tif(!usedRandoms.contains(another))\n\t\t\t{\n\t\t\t\tCard temp = this.deck[i];\n\t\t\t\tthis.deck[i] = this.deck[another];\n\t\t\t\tthis.deck[another] = temp;\n\t\t\t\ti++;\n\t\t\t\tusedRandoms.add(another);\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void shuffleDeck() {\n\t\tfor(int i = 0; i < 1000000; i++) {\n\t\t\tint randomStelle1 = (int) (Math.random() * 32);\n\t\t\tint randomStelle2 = (int) (Math.random() * 32);\n\t\t\tPlayingCard copy = aktuellesDeck[randomStelle1];\n\t\t\taktuellesDeck[randomStelle1] = aktuellesDeck[randomStelle2];\n\t\t\taktuellesDeck[randomStelle2] = copy;\n\t\t}\n\t}", "public void shuffle()\n\t{\n\t\tCollections.shuffle(card);\n\t}", "@Override\n public void shuffle() {\n System.out.println(\"shuffling the shoe...\");\n Collections.shuffle(this.cards);\n }", "public void shuffle()\n {\n Collections.shuffle(artefacts);\n }", "public void enableVirtualMachineShuffling() { this.shuffle_vms = true; }", "public void shuffle() {\n\t\tfor (int i = deck.length - 1; i > 0; i--) {\n\t\t\tint rand = (int) (Math.random() * (i + 1));\n\t\t\tCard temp = deck[i];\n\t\t\tdeck[i] = deck[rand];\n\t\t\tdeck[rand] = temp;\n\t\t}\n\t\tcardsUsed = 0;\n\t}", "public void shuffle(){\n\n // resetting the int counters\n nextCard = 0;\n nextDiscardedPlace = 0;\n discardPile = new PlayingCard[Constants.DECK_SIZE];\n\n PlayingCard temp = null;\n Random rand = new Random();\n\n for(int i = 0; i < MAX_SHUFFLE; i++) {\n int pos1 = rand.nextInt(Constants.DECK_SIZE);\n int pos2 = rand.nextInt(Constants.DECK_SIZE);\n\n temp = deck[pos1];\n deck[pos1] = deck[pos2];\n deck[pos2] = temp;\n }\n }", "private boolean shouldClearBoard() {\n return rnd.nextInt(3) == 2 || isMoreThanMoles(2) || (rnd.nextBoolean() && isMoreThanMoles(1));\n }", "public native int toggleShuffle();", "void shuffleDeck() {\n\t\tfor(int index = 0; index < this.getNumberOfCards(); index++) {\n\t\t\tint randomNumber = index + (int)(Math.random() * (this.getNumberOfCards() - index));\n\t\t\tCard temp = this.cardsInDeck[randomNumber];\n\t\t\tthis.cardsInDeck[randomNumber] = this.cardsInDeck[index];\n\t\t\tthis.cardsInDeck[index] = temp;\n\t\t}\n\t}", "public ArrayList<SongInfo> getShuffledSongs(boolean reshuffle);", "public void resetShuffleOrder() {\n\t\tshuffleOrder = new ArrayList<Song>();\n\t\tthis.shuffleSongIndex = -1;\n\t}", "public void shuffle(Random rng, boolean gather) {\n if (gather) {\n gather();\n }\n Collections.shuffle(getCards(), rng);\n }", "public void shuffle() {\n for (int i = size - 1; i > 0; i--) {\n swap(i, (int)(Math.random() * (i + 1)));\n }\n }", "private void updateShuffleboard()\n {\n }", "private void shufflePositions() {\r\n\r\n // Inizializzo con il progressivo delle posizioni\r\n for (int i = 0; i < shufflePositions.length; i++) {\r\n shufflePositions[i] = i;\r\n }\r\n\r\n int lastIndex ;\r\n int tempIndex = 0;\r\n int tempVal = 0;\r\n\r\n// // Tecnica 1 - Knuth (gli indici da scambiare sono scelti dall'inizio in un insieme decrescente in cardinalità)\r\n// int lastIndex = shufflePositions.length;\r\n// for (int i = 0; i < shufflePositions.length-1; i++) {\r\n// tempIndex = i+secureRandom.nextInt(lastIndex); // Randomizzo le posizioni del random buffer da cui prendo i valori casuali\r\n// tempVal=shufflePositions[tempIndex];\r\n// shufflePositions[tempIndex]=shufflePositions[i];\r\n// shufflePositions[i] = tempVal; \r\n// lastIndex--;\r\n// } \r\n \r\n //Tecnica 2 - Knuth GAB Modification (gli indici casuali sono scelti dal fondo in un insieme decrescente in cardinalità)\r\n lastIndex = shufflePositions.length-1;\r\n for (int i = 0; i < shufflePositions.length - 1; i++) {\r\n tempIndex = secureRandom.nextInt(lastIndex); // Randomizzo le posizioni del random buffer da cui prendo i valori casuali\r\n tempVal = shufflePositions[tempIndex];\r\n shufflePositions[tempIndex] = shufflePositions[lastIndex];\r\n shufflePositions[lastIndex] = tempVal;\r\n lastIndex--;\r\n }\r\n \r\n// // Tecnica 3 - Algoritmo standard delle collections\r\n// Integer[]tempArray = new Integer[MaxBufferLength];\r\n// for (int i=0;i<MaxBufferLength;i++){\r\n// tempArray[i]=i;\r\n// \r\n// }\r\n// List<Integer> tempList = Arrays.asList(tempArray);\r\n//\r\n// Collections.shuffle(tempList, secureRandom);\r\n// tempArray= (Integer[]) tempList.toArray();\r\n// for (int i=0;i<shufflePositions.length;i++){\r\n// shufflePositions[i]=tempArray[i];\r\n// }\r\n }", "@Test\n\tpublic void positiveTest() {\n\t\tint input[] ={1, 4, 5, 6, 15};\n\t\t//here 1 represent that NQueen arrangement is possible\n\t\t// We have to type cast boolean to int because JUnit Array Equals function does'nt support boolean array\n\t\tint expecteds[] = {1, 1, 1, 1, 1};\n\t\tint actuals[] = new int[input.length];\n\t\tfor(int i=0; i<input.length; i++){\n\t\t\tNQueen q = new NQueen(input[i]);\n\t\t\tactuals[i] = q.nQueen(0) ? 1 : 0;\n\t\t}\n\t\tassertArrayEquals(expecteds, actuals);\n\t}", "public void shuffle(){\n\t\tfor(int i=0;i<1000||blank!=9;i++){\r\n\t\t\tif \t\t(blank == 1) shuffleAux(2,4,0,0,2);\t\t\t\t\r\n\t\t\telse if (blank == 2) shuffleAux(1,3,5,0,3);\r\n\t\t\telse if (blank == 3) shuffleAux(2,6,0,0,2);\r\n\t\t\telse if (blank == 4) shuffleAux(1,5,7,0,3);\t\t\t\r\n\t\t\telse if (blank == 5) shuffleAux(2,4,6,8,4);\r\n\t\t\telse if (blank == 6) shuffleAux(3,5,9,0,3);\r\n\t\t\telse if (blank == 7) shuffleAux(4,8,0,0,2);\t\t\t\r\n\t\t\telse if (blank == 8) shuffleAux(5,7,9,0,3);\r\n\t\t\telse if (blank == 9) shuffleAux(6,8,0,0,2);\r\n\t\t}\r\n\t}", "public void shuffle() {\r\n for (int i = 0; i < this.numCards; i++) {\r\n int spot = (int) (Math.random() * ((this.numCards - 1) - i + 1) + i);\r\n Card temp = cards[i];\r\n cards[i] = cards[spot];\r\n cards[spot] = temp;\r\n\r\n\r\n }\r\n }", "public void shuffleCards() {\n Collections.shuffle(suspectCards);\n Collections.shuffle(weaponCards);\n Collections.shuffle(roomCards);\n\n }", "@Override\r\n public void dealerShuffleDeck(){\r\n this.dealer.shuffleDecks();\r\n }", "public boolean reproducirse() {\n r = new Random();\r\n return Float.compare(r.nextFloat(), probReproducirse) <= 0;\r\n }", "protected abstract void playShuffled();", "private void checkIfQuestionUsed(int randIdx)\n\t{\n\t\t\tfor(Integer current : questionsUsed)\n\t\t\t{\n\t\t\t\tif (current == randIdx) {\n\t\t\t\t\tquestionUsed = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tquestionUsed = false;\n\t\t\t}\n\t}", "public void shuffle() {\n\t\tCollections.shuffle(Arrays.asList(reel));\n\t}", "public void shuffle() {\n Collections.shuffle(this.plateau);\n }", "public void shuffle(int numShuffles)\n { \n Card tempCard;\n int switchOne, switchTwo;\n\n for (int i=0; i<numCards; i++){\n switchOne = rand.nextInt(numCards);\n switchTwo = rand.nextInt(numCards);\n\n tempCard = cardAry[switchOne];\n cardAry[switchOne] = cardAry[switchTwo];\n cardAry[switchTwo] = tempCard; \n }\n\n if(cardAry.length > 1 && cardAry.length <=5 && isSorted()==true)\n shuffle(2);\n }", "private void shuffle(ArrayList<Product> dataSet) {\n\t\tfor (int i = 0; i < dataSet.size(); i++) {\n\t\t\tint k = rand(0, i);\n\t\t\tProduct temp = dataSet.get(k);\n\t\t\tdataSet.set(k, dataSet.get(i));\n\t\t\tdataSet.set(i, temp);\n\t\t}\t\n\t}", "public void shuffleDeck() {\n\t\tint numberOfShuffles = (int) ( Math.random() * 4 + 1 ) ;\n\t\tCard temp;\n\t\t\n\t\tfor( int j = 0; j < numberOfShuffles; j++ ) {\n\t\t\tfor( int i = 0; i < deck.length; i++ ) {\n\t\t\t\tint randSwitchNum = (int) (Math.random() * 52);\n\t\t\t\ttemp = deck[i];\n\t\t\t\tdeck[i] = deck[randSwitchNum];\n\t\t\t\tdeck[randSwitchNum] = temp;\n\t\t\t}\n\t\t}\t\n\t}", "public void shuffle() {\n\t\tCollections.shuffle(inds);\n\t}", "public void shuffle() {\n\n\tcardsLeft = cards.length;\n\tfor (int i=cards.length-1; i>=0; --i) {\n\n\t int r = (int)(Math.random()*(i+1)); // pick a random pos <= i\n\n\t Card t = cards[i];\n\t cards[i] = cards[r];\n\t cards[r] = t;\n\n\t}\n }", "public boolean isValidShuffle(String shuffledString,\n ArrayList<String> sourceStrings) {\n\n Boolean edgeCaseResult = isValidShuffleForEdgeCases(shuffledString, sourceStrings);\n if (edgeCaseResult != null) {\n // isValidShuffleForEdgeCases() was able to determine if shuffle is valid\n return edgeCaseResult;\n }\n\n nodesSearched = new ArrayList<String>();\n\n // LinkedList implements fifo Queue, Dequeue\n // http://stackoverflow.com/questions/12179887/android-queue-vs-stack\n Queue<Node> queue = new LinkedList<Node>();\n\n addRootNodeToQueue(queue);\n\n while (!queue.isEmpty()) {\n\n Node node = queue.remove();\n //Log.d(\"breadth-first\", node.toString());\n this.nodesSearched.add(node.value);\n\n if (isLeafNode(node, sourceStrings)) {\n // node is a terminal node\n if (isASolution(node, shuffledString, sourceStrings)) {\n return true;\n } else {\n // skip to next iteration, next node in queue\n continue;\n }\n }\n\n String shuffledStringStart = shuffledString.substring(0, node.value.length());\n if (isNodeValueEqualToValue(node, shuffledStringStart)) {\n // path to this node is a valid candidate, so add sub-branches\n addChildNodeAtIndexToNodeAndQueue(sourceStrings, 0, node, queue);\n addChildNodeAtIndexToNodeAndQueue(sourceStrings, 1, node, queue);\n }\n }\n\n // didn't find a solution\n return false;\n }", "public void shuffle() {\n Collections.shuffle(this);\n }", "public void shuffle() {\n for (int i = 0; i < this.cards.length ; i++ ) {\n double x = Math.floor(Math.random() * ((double)this.cards.length - (double)0)) + (double)0;\n Card temp = this.cards[i];\n this.cards[i]= this.cards[(int)x];\n this.cards[(int)x]= temp;\n }\n }", "private void shuffleDeck()\r\n {\n cardList = new ArrayList<Card>(deck);\r\n // shuffle the deck of cards using the ArrayList\r\n Collections.shuffle(getCardList());\r\n // convert it back to a HashSet\r\n deck = new HashSet<Card>(getCardList());\r\n }", "@Override\n\tpublic boolean isRandomizable() {\n\t\treturn false;\n\t}", "void shuffle() {\r\n cards.addAll(dealtCards);\r\n dealtCards.removeAll(dealtCards);\r\n Collections.shuffle(cards);\r\n System.out.println(\"Shuffled cards\" + cards);\r\n }", "public abstract boolean isRandom();", "boolean isNeedSharding();", "public static /* synthetic */ boolean m125947g(Topic topic) {\n return topic.headerCard.superTopic.question.has_answered;\n }", "public void shuffle() {\n\t\tfor (int i = 0; i < cards.size(); i++){\n\t\t\t//exchange card i with the random card from i to cards.size() - 1\n\t\t\tint j = Randoms.randomIntInRange(i, cards.size() - 1);\n\t\t\tT c1 = cards.get(i);\n\t\t\tT c2 = cards.get(j);\n\t\t\tcards.set(i, c2);\n\t\t\tcards.set(j, c1);\n\t\t}\n\t}", "public void unsetChestCardShuffle() {\n ChanceCardShuffle = false;\n }", "public boolean isRandomPerm()\n\t{\n\t\tboolean[] bins = new boolean[arraySize];\n\t\tfor (int index = 0; index < arraySize; index++)\n\t\t{\n\t\t\tbins[index] = false;\n\t\t}\n\t\tfor (int index = 0; index < arraySize; index++)\n\t\t{\n\t\t\tif (bins[array[index] - 1])\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t} \n\t\t\tbins[array[index] - 1] = true;\n\t\t}\n\t\treturn true;\n\t}", "public void shuffleDeck() {\n for (int i = 0; i < TOTAL_NUMBER_OF_CARDS - 1; i++) {\n Random r = new Random();\n int x = r.nextInt(TOTAL_NUMBER_OF_CARDS);\n Card y = deck.get(x);\n deck.set(x, deck.get(i));\n deck.set(i, y);\n }\n }", "protected Boolean isValidShuffleForEdgeCases(String shuffledString, ArrayList<String> sourceStrings) {\n\n if (shuffledString == null) {\n if ((sourceStrings.get(0) == null) && (sourceStrings.get(1) == null)) {\n return true;\n } else {\n return false;\n }\n }\n\n if (\"\".equals(shuffledString)) {\n if ((\"\".equals(sourceStrings.get(0))) && (\"\".equals(sourceStrings.get(1)))) {\n return true;\n } else {\n return false;\n }\n }\n\n if ((shuffledString != null)\n && StringUtils.isStringNullOrEmpty(sourceStrings.get(0))\n && StringUtils.isStringNullOrEmpty(sourceStrings.get(1))) {\n return false;\n }\n\n if (StringUtils.isStringNullOrEmpty(sourceStrings.get(0))\n && shuffledString.equals(sourceStrings.get(1))) {\n return true;\n }\n\n if (StringUtils.isStringNullOrEmpty(sourceStrings.get(1))\n && shuffledString.equals(sourceStrings.get(0))) {\n return true;\n }\n return null;\n }", "private void shuffleCards(final ICard[] myCards) {\r\n ICard tmp;\r\n int rand;\r\n for (int i = ZERO; i < myCards.length; i++) {\r\n rand = rmd.nextInt(myCards.length);\r\n tmp = myCards[i];\r\n myCards[i] = myCards[rand];\r\n myCards[rand] = tmp;\r\n }\r\n }", "public Test makeTest(DataSource ds, List<Question> givenQns){\n\t\tArrayList<Question> startQns = new ArrayList<Question>();\n\t\tfor (int i = 0; i < givenQns.size(); i++){\n\t\t\tstartQns.add((Question)givenQns.get(i));\n\t\t}\n\t\tString category = startQns.get(0).getCategory();\n\t\tString difficulty = \"any\";\n\t\t\n\t\twhile(startQns.size()>5){\n\t\t\tint index = (int)(Math.random()*startQns.size());\n\t\t\tstartQns.remove(index);\n\t\t}\n\t\tTest test = this.makeTest(ds, difficulty, category, 5, startQns);\n//\t\tSystem.out.println(\"TestMakerA->test: \" + test.toString());\n\t\tint[] correct = new int[5];\n\t\tArrayList<Question[]> questions = (ArrayList<Question[]>)test.getTest();\n\n\t\tfor(int i = 0; i < 5; i++){\n\t\t\tcorrect[i] = (int)(Math.random()*4);\n\t\t\tif(questions.get(i)[correct[i]] != startQns.get(i)){\n\t\t\t\tquestions.get(i)[correct[i]] = startQns.get(i);\n\t\t\t}\n\t\t}\n\n\t\ttest.setCorrect(correct);\n\t\treturn test;\n\t}", "public void setQueDesc(String queDesc) {\n this.queDesc = queDesc;\n }", "public void unsetChanceCardShuffle() {\n ChanceCardShuffle = false;\n }", "@Override\n public void displayShuffleboard() {\n\n }", "public static void shuffle(int data[]) {\n\n }" ]
[ "0.69229364", "0.6190567", "0.5822192", "0.5798507", "0.5793511", "0.5780012", "0.5727566", "0.5724049", "0.56501937", "0.5609723", "0.5559596", "0.5553116", "0.5541164", "0.55228394", "0.5405318", "0.5337056", "0.53186554", "0.5315358", "0.5308188", "0.5263012", "0.5263012", "0.52510995", "0.5241207", "0.5240741", "0.5231721", "0.521408", "0.5189067", "0.51302147", "0.51302147", "0.5109147", "0.508547", "0.50762403", "0.5061669", "0.50429714", "0.5040688", "0.5013165", "0.5007526", "0.49922955", "0.49880853", "0.4980735", "0.49772143", "0.49646583", "0.4943711", "0.49376285", "0.49336323", "0.49264184", "0.49211112", "0.49134755", "0.4908867", "0.49051872", "0.48991168", "0.4888801", "0.48738608", "0.48601648", "0.48427707", "0.4841318", "0.4834386", "0.48224875", "0.48213175", "0.4819854", "0.48114333", "0.4802355", "0.47970048", "0.4786091", "0.47698694", "0.47679666", "0.47572446", "0.47481683", "0.47447357", "0.47437343", "0.47376", "0.4729743", "0.47296926", "0.4717321", "0.47143844", "0.4714303", "0.47134298", "0.46971384", "0.46962062", "0.46939784", "0.46767643", "0.467402", "0.4673752", "0.46721533", "0.46604106", "0.4656024", "0.4654942", "0.46534777", "0.46434304", "0.46393865", "0.46350384", "0.46257925", "0.46176195", "0.46145907", "0.4612898", "0.46127814", "0.46060604", "0.46024248", "0.45905158", "0.45862448" ]
0.5023665
35
Get the list of question from the test;
public String getStaticQueAsXML(Connection con, Vector resIdVec, boolean isShuffleMCQue) throws qdbErrMessage, qdbException, cwSysMessage, cwException { Vector qArray = dbResourceContent.getChildAss(con,mod_res_id); if( this.mod_logic != null && this.mod_logic.equalsIgnoreCase(dbModule.MOD_LOGIC_RND) ){ qArray = cwUtils.randomVec(qArray); } if(qArray.size() == 0) { //if no question is drawn, //throw system message and do not launch the test player CommonLog.info("Empty question for Standard Test"); throw new qdbErrMessage("MOD008"); } String qList = ""; dbQuestion dbq = new dbQuestion(); dbResourceContent rcn = new dbResourceContent(); long order = 1; int i; mod_size = qArray.size(); for (i=0;i < qArray.size();i++) { rcn = (dbResourceContent) qArray.elementAt(i); dbq.que_res_id = rcn.rcn_res_id_content; dbq.res_id = dbq.que_res_id; dbq.get(con); order = rcn.rcn_order; // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ if( dbq.que_type.equalsIgnoreCase(dbResource.RES_SUBTYPE_FSC) ) { FixedScenarioQue fsq = new FixedScenarioQue(); fsq.res_id = dbq.res_id; fsq.get(con); try{ Vector v_que_id = fsq.getChildQueId(con); if (v_que_id.size() == 0) { throw new qdbErrMessage("MSP002"); } if( fsq.qct_allow_shuffle_ind == 1 ) { v_que_id = cwUtils.randomVec(v_que_id); } qList += fsq.asXMLinTest(con, order++, v_que_id, isShuffleMCQue); resIdVec.addAll(v_que_id); }catch(SQLException e){ throw new qdbException(e.getMessage()); } } else if( dbq.que_type.equalsIgnoreCase(dbResource.RES_SUBTYPE_DSC)) { DynamicScenarioQue dsq = new DynamicScenarioQue(); dsq.res_id = dbq.res_id; dsq.get(con); try{ Vector v_que_id = dsq.getChildQueId(con); if (v_que_id.size() == 0) { throw new qdbErrMessage("MSP002"); } qList += dsq.asXMLinTest(con, order++, v_que_id, isShuffleMCQue); resIdVec.addAll(v_que_id); }catch(SQLException e){ throw new qdbException(e.getMessage()); } } else { qList += dbq.asXML(con, order, isShuffleMCQue); } // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ resIdVec.addElement(new Long(dbq.que_res_id)); } return qList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Question> getQuestions();", "List<Question> getQuestionsUsed();", "@Override\n\tpublic List<Questions> listQuestion(int testId) {\n\t\treturn null;\n\t}", "@Override\n\tpublic List<Questions> listQuestion(long testId1) {\n\t\treturn null;\n\t}", "public ArrayList<String> getQuestionsList() {\n\t\tArrayList<String> questionsList = new ArrayList<String>();\n\t\t\t\t\n\t\tfor (String line : contentsByLine) {\n\t\t\n\t\t\tif (line.endsWith(\"?\")) {\n\t\t\t\tquestionsList.add(line);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn questionsList;\n\t}", "public List<Question> getQuestions() {\n return questionList;\n }", "public ArrayList<String> getQuestionList(){\n if(questionList != null) {\n return questionList;\n }\n else{\n System.out.println(\"No question list defined.\");\n return null;\n }\n }", "List<Question> getQuestions(String surveyId);", "public static List<Question> getQuestions() {\n if (QUESTION == null) {\n QUESTION = new ArrayList<>();\n List<Option> options = new ArrayList<Option>();\n options.add(new Option(1, \"Radio Waves\"));\n options.add(new Option(2, \"Sound Waves\"));\n options.add(new Option(3, \"Gravity Waves\"));\n options.add(new Option(4, \"Light Waves\"));\n QUESTION.add(new Question(1, \"Which kind of waves are used to make and receive cellphone calls?\", getCategory(4), options, options.get(0)));\n\n List<Option> options2 = new ArrayList<Option>();\n options2.add(new Option(1, \"8\"));\n options2.add(new Option(2, \"6\"));\n options2.add(new Option(3, \"3\"));\n options2.add(new Option(4, \"1\"));\n QUESTION.add(new Question(2, \"How many hearts does an octopus have?\", getCategory(4), options2, options2.get(2)));\n\n List<Option> options3 = new ArrayList<Option>();\n options3.add(new Option(1, \"Newton's Law\"));\n options3.add(new Option(2, \"Hooke's law\"));\n options3.add(new Option(3, \"Darwin's Law\"));\n options3.add(new Option(4, \"Archimedes' principle\"));\n QUESTION.add(new Question(3, \"Whose law states that the force needed to extend a spring by some distance is proportional to that distance?\", getCategory(4), options3, options3.get(1)));\n\n List<Option> options4 = new ArrayList<Option>();\n options4.add(new Option(1, \"M\"));\n options4.add(new Option(2, \"$\"));\n options4.add(new Option(3, \"W\"));\n options4.add(new Option(4, \"#\"));\n QUESTION.add(new Question(4, \"What is the chemical symbol for tungsten?\", getCategory(4), options4, options4.get(2)));\n\n List<Option> options5 = new ArrayList<Option>();\n options5.add(new Option(1, \"Pulsar\"));\n options5.add(new Option(2, \"Draconis\"));\n options5.add(new Option(3, \"Aludra\"));\n options5.add(new Option(4, \"Alwaid\"));\n QUESTION.add(new Question(5, \"What is a highly magnetized, rotating neutron star that emits a beam of electromagnetic radiation?\", getCategory(4), options5, options5.get(0)));\n\n List<Option> options6 = new ArrayList<Option>();\n options6.add(new Option(1, \"2\"));\n options6.add(new Option(2, \"4\"));\n options6.add(new Option(3, \"7\"));\n options6.add(new Option(4, \"10\"));\n QUESTION.add(new Question(6, \"At what temperature is Centigrade equal to Fahrenheit?\", getCategory(4), options6, options6.get(2)));\n\n List<Option> options7 = new ArrayList<Option>();\n options7.add(new Option(1, \"Temperature\"));\n options7.add(new Option(2, \"Distance\"));\n options7.add(new Option(3, \"Light Intensity\"));\n options7.add(new Option(4, \"Noise\"));\n QUESTION.add(new Question(7, \"Kelvin is a unit to measure what?\", getCategory(4), options7, options7.get(2)));\n\n List<Option> options8 = new ArrayList<Option>();\n options8.add(new Option(1, \"Mars\"));\n options8.add(new Option(2, \"Jupiter\"));\n options8.add(new Option(3, \"Saturn\"));\n options8.add(new Option(4, \"Neptune\"));\n QUESTION.add(new Question(8, \"Triton is the largest moon of what planet?\", getCategory(4), options8, options8.get(3)));\n\n List<Option> options9 = new ArrayList<Option>();\n options9.add(new Option(1, \"Brain\"));\n options9.add(new Option(2, \"Heart\"));\n options9.add(new Option(3, \"Lungs\"));\n options9.add(new Option(4, \"Skin\"));\n QUESTION.add(new Question(9, \"What is the human body’s biggest organ?\", getCategory(4), options9, options9.get(3)));\n\n List<Option> options10 = new ArrayList<Option>();\n options10.add(new Option(1, \"Skull\"));\n options10.add(new Option(2, \"Knee Cap\"));\n options10.add(new Option(3, \"Shoulder Joint\"));\n options10.add(new Option(4, \"Backbone\"));\n QUESTION.add(new Question(10, \"What is the more common name for the patella?\", getCategory(4), options10, options10.get(1)));\n\n List<Option> options11 = new ArrayList<Option>();\n options11.add(new Option(1, \"Mother India\"));\n options11.add(new Option(2, \"The Guide\"));\n options11.add(new Option(3, \"Madhumati\"));\n options11.add(new Option(4, \"Amrapali\"));\n QUESTION.add(new Question(11, \"Which was the 1st Indian movie submitted for Oscar?\", getCategory(1), options11, options11.get(0)));\n\n List<Option> options12 = new ArrayList<Option>();\n options12.add(new Option(1, \"Gunda\"));\n options12.add(new Option(2, \"Sholey\"));\n options12.add(new Option(3, \"Satte pe Satta\"));\n options12.add(new Option(4, \"Angoor\"));\n QUESTION.add(new Question(12, \"Which film is similar to Seven Brides For Seven Brothers?\", getCategory(1), options12, options12.get(2)));\n\n List<Option> options13 = new ArrayList<Option>();\n options13.add(new Option(1, \"Rocky\"));\n options13.add(new Option(2, \"Pancham\"));\n options13.add(new Option(3, \"Chichi\"));\n options13.add(new Option(4, \"Chintu\"));\n QUESTION.add(new Question(13, \"Music Director R.D. Burman is also known as?\", getCategory(1), options13, options13.get(1)));\n\n List<Option> options14 = new ArrayList<Option>();\n options14.add(new Option(1, \"Nagarjuna\"));\n options14.add(new Option(2, \"Chiranjeevi\"));\n options14.add(new Option(3, \"Rajinikanth\"));\n options14.add(new Option(4, \"NTR\"));\n QUESTION.add(new Question(14, \"Shivaji Rao Gaikwad is the real name of which actor?\", getCategory(1), options14, options14.get(2)));\n\n List<Option> options15 = new ArrayList<Option>();\n options15.add(new Option(1, \"Geraftaar\"));\n options15.add(new Option(2, \"Hum\"));\n options15.add(new Option(3, \"Andha kanoon\"));\n options15.add(new Option(4, \"Agneepath\"));\n QUESTION.add(new Question(15, \"Name the film in which Amitabh Bachchan, Rajinikanth and Kamal Hasan worked together.\", getCategory(1), options15, options15.get(0)));\n\n List<Option> options16 = new ArrayList<Option>();\n options16.add(new Option(1, \"AR Rahman\"));\n options16.add(new Option(2, \"Bhanu Athaiya\"));\n options16.add(new Option(3, \"Gulzar\"));\n options16.add(new Option(4, \"Rasul Pookutty\"));\n QUESTION.add(new Question(16, \"First Indian to win Oscar award?\", getCategory(1), options16, options16.get(1)));\n\n List<Option> options17 = new ArrayList<Option>();\n options17.add(new Option(1, \"Jab tak hai jaan\"));\n options17.add(new Option(2, \"Rab ne bana di jodi\"));\n options17.add(new Option(3, \"Veer zara\"));\n options17.add(new Option(4, \"Ek tha tiger\"));\n QUESTION.add(new Question(17, \"Which was the last movie directed by Yash Chopra?\", getCategory(1), options17, options17.get(0)));\n\n\n List<Option> options18 = new ArrayList<Option>();\n options18.add(new Option(1, \"‘Thala’ Ajith\"));\n options18.add(new Option(2, \"Arjun Sarja\"));\n options18.add(new Option(3, \"Ashutosh Gawariker\"));\n options18.add(new Option(4, \"AK Hangal\"));\n QUESTION.add(new Question(18, \"\\\"Itna sannata kyun hai bhai?\\\" Who said this, now legendary words, in 'Sholay'?\", getCategory(1), options18, options18.get(3)));\n\n List<Option> options19 = new ArrayList<Option>();\n options19.add(new Option(1, \"Tommy\"));\n options19.add(new Option(2, \"Tuffy\"));\n options19.add(new Option(3, \"Toffy\"));\n options19.add(new Option(4, \"Timmy\"));\n QUESTION.add(new Question(19, \"What was the name of Madhuri Dixit’s dog in Hum Aapke Hain Koun?\", getCategory(1), options19, options19.get(1)));\n\n List<Option> options20 = new ArrayList<Option>();\n options20.add(new Option(1, \"Premnath\"));\n options20.add(new Option(2, \"Dilip Kumar\"));\n options20.add(new Option(3, \"Raj Kapoor\"));\n options20.add(new Option(4, \"Kishore Kumar\"));\n QUESTION.add(new Question(20, \"Beautiful actress Madhubala was married to?\", getCategory(1), options20, options20.get(3)));\n\n\n List<Option> options21 = new ArrayList<Option>();\n options21.add(new Option(1, \"Sher Khan\"));\n options21.add(new Option(2, \"Mufasa\"));\n options21.add(new Option(3, \"Simba\"));\n options21.add(new Option(4, \"Sarabi\"));\n QUESTION.add(new Question(21, \"What is the name of the young lion whose story is told in the musical 'The Lion King'?\", getCategory(2), options21, options21.get(2)));\n\n List<Option> options22 = new ArrayList<Option>();\n options22.add(new Option(1, \"Scotland\"));\n options22.add(new Option(2, \"England\"));\n options22.add(new Option(3, \"Germany\"));\n options22.add(new Option(4, \"Netherland\"));\n QUESTION.add(new Question(22, \"Which country's freedom struggle is portrayed in the Mel Gibson movie 'Braveheart'?\", getCategory(2), options22, options22.get(0)));\n\n List<Option> options23 = new ArrayList<Option>();\n options23.add(new Option(1, \"Letters to Juliet\"));\n options23.add(new Option(2, \"Saving Private Ryan\"));\n options23.add(new Option(3, \"Forest Gump\"));\n options23.add(new Option(4, \"Gone With The Wind\"));\n QUESTION.add(new Question(23, \"Which movie had this dialogue \\\"My mama always said, life was like a box of chocolates. You never know what you're gonna get.\", getCategory(2), options23, options23.get(2)));\n\n List<Option> options24 = new ArrayList<Option>();\n options24.add(new Option(1, \"Die\"));\n options24.add(new Option(2, \"Golden\"));\n options24.add(new Option(3, \"Casino\"));\n options24.add(new Option(4, \"Never\"));\n QUESTION.add(new Question(24, \"Excluding \\\"the\\\", which word appears most often in Bond movie titles?\", getCategory(2), options24, options24.get(3)));\n\n List<Option> options25 = new ArrayList<Option>();\n options25.add(new Option(1, \"Bishop\"));\n options25.add(new Option(2, \"Ash\"));\n options25.add(new Option(3, \"Call\"));\n options25.add(new Option(4, \"Carlos\"));\n QUESTION.add(new Question(25, \"Name the android in movie Alien \", getCategory(2), options25, options25.get(1)));\n\n List<Option> options26 = new ArrayList<Option>();\n options26.add(new Option(1, \"Gone with the wind\"));\n options26.add(new Option(2, \"Home footage\"));\n options26.add(new Option(3, \"With Our King and Queen Through India\"));\n options26.add(new Option(4, \"Treasure Island\"));\n QUESTION.add(new Question(26, \"Which was the first colour film to win a Best Picture Oscar?\", getCategory(2), options26, options26.get(0)));\n\n List<Option> options27 = new ArrayList<Option>();\n options27.add(new Option(1, \"Robert Redford\"));\n options27.add(new Option(2, \"Michael Douglas\"));\n options27.add(new Option(3, \"Harrison Ford\"));\n options27.add(new Option(4, \"Patrick Swayze\"));\n QUESTION.add(new Question(27, \"Who played the male lead opposite Sharon Stone in the hugely successful movie 'The Basic Instinct'?\", getCategory(2), options27, options27.get(1)));\n\n List<Option> options28 = new ArrayList<Option>();\n options28.add(new Option(1, \"10,000 BC\"));\n options28.add(new Option(2, \"Day after tomorrow\"));\n options28.add(new Option(3, \"2012\"));\n options28.add(new Option(4, \"The Noah's Ark Principle\"));\n QUESTION.add(new Question(28, \"Which Roland Emmerich movie portrays fictional cataclysmic events that were to take place in early 21st century?\", getCategory(2), options28, options28.get(2)));\n\n List<Option> options29 = new ArrayList<Option>();\n options29.add(new Option(1, \"Finding Nemo\"));\n options29.add(new Option(2, \"The Incredibles\"));\n options29.add(new Option(3, \"Monsters, Inc.\"));\n options29.add(new Option(4, \"Toy Story\"));\n QUESTION.add(new Question(29, \"What was the first movie by Pixar to receive a rating higher than G in the United States?\", getCategory(2), options29, options29.get(1)));\n\n List<Option> options30 = new ArrayList<Option>();\n options30.add(new Option(1, \"Draco\"));\n options30.add(new Option(2, \"Harry\"));\n options30.add(new Option(3, \"Hermione\"));\n options30.add(new Option(4, \"Ron\"));\n QUESTION.add(new Question(30, \"In the 'Prisoner of Azkaban', who throws rocks at Hagrid's hut so that Harry, Ron and Hermione can leave?\", getCategory(2), options30, options30.get(2)));\n\n List<Option> options31 = new ArrayList<Option>();\n options31.add(new Option(1, \"Brett Lee\"));\n options31.add(new Option(2, \"Adam Gilchrist\"));\n options31.add(new Option(3, \"Jason Gillespie\"));\n options31.add(new Option(4, \"Glenn McGrath\"));\n QUESTION.add(new Question(31, \"'Dizzy' is the nickname of what Australian player?\", getCategory(3), options31, options31.get(2)));\n\n List<Option> options32 = new ArrayList<Option>();\n options32.add(new Option(1, \"1883 between Australia and Wales\"));\n options32.add(new Option(2, \"1844 between Canada and the USA\"));\n options32.add(new Option(3, \"1869 between England and Australia\"));\n options32.add(new Option(4, \"1892 between England and India\"));\n QUESTION.add(new Question(32, \"In what year was the first international cricket match held?\", getCategory(3), options32, options32.get(1)));\n\n List<Option> options33 = new ArrayList<Option>();\n options33.add(new Option(1, \"Salim Durrani\"));\n options33.add(new Option(2, \"Farooq Engineer\"));\n options33.add(new Option(3, \"Vijay Hazare\"));\n options33.add(new Option(4, \"Mansur Ali Khan Pataudi\"));\n QUESTION.add(new Question(33, \"Which former Indian cricketer was nicknamed 'Tiger'?\", getCategory(3), options33, options33.get(3)));\n\n List<Option> options34 = new ArrayList<Option>();\n options34.add(new Option(1, \"Piyush Chawla\"));\n options34.add(new Option(2, \"Gautam Gambhir\"));\n options34.add(new Option(3, \"Irfan Pathan\"));\n options34.add(new Option(4, \"Suresh Raina\"));\n QUESTION.add(new Question(34, \"Who was named as the ICC Emerging Player of the Year 2004?\", getCategory(3), options34, options34.get(2)));\n\n List<Option> options35 = new ArrayList<Option>();\n options35.add(new Option(1, \"Subhash Gupte\"));\n options35.add(new Option(2, \"M.L.Jaisimha\"));\n options35.add(new Option(3, \"Raman Lamba\"));\n options35.add(new Option(4, \"Lala Amarnath\"));\n QUESTION.add(new Question(35, \"Which cricketer died on the field in Bangladesh while playing for Abahani Club?\", getCategory(3), options35, options35.get(2)));\n\n List<Option> options36 = new ArrayList<Option>();\n options36.add(new Option(1, \"V. Raju\"));\n options36.add(new Option(2, \"Rajesh Chauhan\"));\n options36.add(new Option(3, \"Arshad Ayub\"));\n options36.add(new Option(4, \"Narendra Hirwani\"));\n QUESTION.add(new Question(36, \"In 1987-88, which Indian spinner took 16 wickets on his Test debut?\", getCategory(3), options36, options36.get(3)));\n\n List<Option> options37 = new ArrayList<Option>();\n options37.add(new Option(1, \"Ravi Shastri\"));\n options37.add(new Option(2, \"Dilip Vengsarkar\"));\n options37.add(new Option(3, \"Sachin Tendulkar\"));\n options37.add(new Option(4, \"Sanjay Manjrekar\"));\n QUESTION.add(new Question(37, \"Which former Indian Test cricketer equalled Gary Sobers world record of six sixes in an over in a Ranji Trophy match?\", getCategory(3), options37, options37.get(0)));\n\n List<Option> options38 = new ArrayList<Option>();\n options38.add(new Option(1, \"Mohsin khan\"));\n options38.add(new Option(2, \"Wasim Akram\"));\n options38.add(new Option(3, \"Naveen Nischol\"));\n options38.add(new Option(4, \"None Of The Above\"));\n QUESTION.add(new Question(38, \"Reena Roy the Indian film actress married a cricketer?\", getCategory(3), options38, options38.get(0)));\n\n List<Option> options39 = new ArrayList<Option>();\n options39.add(new Option(1, \"London, England\"));\n options39.add(new Option(2, \"Mumbai, India\"));\n options39.add(new Option(3, \"Lahore, Pakistan\"));\n options39.add(new Option(4, \"Nairobi, Kenya\"));\n QUESTION.add(new Question(39, \"Where did Yuvraj Singh make his ODI debut?\", getCategory(3), options39, options39.get(3)));\n\n List<Option> options40 = new ArrayList<Option>();\n options40.add(new Option(1, \"Arvind De Silva\"));\n options40.add(new Option(2, \"Roshan Mahanama\"));\n options40.add(new Option(3, \"Harshan Tilakaratne\"));\n options40.add(new Option(4, \"None Of The Above\"));\n QUESTION.add(new Question(40, \"Kapil Dev's 432 (world) record breaking victim was?\", getCategory(3), options40, options40.get(2)));\n\n List<Option> options41 = new ArrayList<Option>();\n options41.add(new Option(1, \"Vatican\"));\n options41.add(new Option(2, \"Iceland\"));\n options41.add(new Option(3, \"Netherlands\"));\n options41.add(new Option(4, \"Hungary\"));\n QUESTION.add(new Question(41, \"Which country has the lowest population density of any country in Europe?\", getCategory(5), options41, options41.get(1)));\n\n List<Option> options42 = new ArrayList<Option>();\n options42.add(new Option(1, \"Cambodia\"));\n options42.add(new Option(2, \"Thailand\"));\n options42.add(new Option(3, \"Mynamar\"));\n options42.add(new Option(4, \"Bhutan\"));\n QUESTION.add(new Question(42, \"Angkor Wat, the largest religious monument in the world, is in which country?\", getCategory(5), options42, options42.get(0)));\n\n List<Option> options43 = new ArrayList<Option>();\n options43.add(new Option(1, \"Southern\"));\n options43.add(new Option(2, \"Northern and Southern\"));\n options43.add(new Option(3, \"Northern\"));\n options43.add(new Option(4, \"None of the above\"));\n QUESTION.add(new Question(43, \"Is the Tropic of Cancer in the northern or southern hemisphere?\", getCategory(5), options43, options43.get(2)));\n\n List<Option> options44 = new ArrayList<Option>();\n options44.add(new Option(1, \"Bangladesh\"));\n options44.add(new Option(2, \"Nepal\"));\n options44.add(new Option(3, \"Pakistan\"));\n options44.add(new Option(4, \"China\"));\n QUESTION.add(new Question(44, \"The Ganges flows through India and which other country?\", getCategory(5), options44, options44.get(0)));\n\n List<Option> options45 = new ArrayList<Option>();\n options45.add(new Option(1, \"Indian\"));\n options45.add(new Option(2, \"Pacific\"));\n options45.add(new Option(3, \"Arctic\"));\n options45.add(new Option(4, \"Atlantic\"));\n QUESTION.add(new Question(45, \"Which ocean lies on the east coast of the United States?\", getCategory(5), options45, options45.get(3)));\n\n List<Option> options46 = new ArrayList<Option>();\n options46.add(new Option(1, \"Prime Axis\"));\n options46.add(new Option(2, \"Lambert Line\"));\n options46.add(new Option(3, \"Prime Meridian\"));\n options46.add(new Option(4, \"Greenwich\"));\n QUESTION.add(new Question(46, \"What is the imaginary line called that connects the north and south pole?\", getCategory(5), options46, options46.get(2)));\n\n List<Option> options47 = new ArrayList<Option>();\n options47.add(new Option(1, \"Tropic of Cancer\"));\n options47.add(new Option(2, \"Tropic of Capricorn\"));\n QUESTION.add(new Question(47, \"The most northerly circle of latitude on the Earth at which the Sun may appear directly overhead at its culmination is called?\", getCategory(5), options47, options47.get(0)));\n\n List<Option> options48 = new ArrayList<Option>();\n options48.add(new Option(1, \"Nevada\"));\n options48.add(new Option(2, \"Arizona\"));\n options48.add(new Option(3, \"New Mexico\"));\n options48.add(new Option(4, \"San Fransisco\"));\n QUESTION.add(new Question(48, \"Which U.S. state is the Grand Canyon located in?\", getCategory(5), options48, options48.get(1)));\n\n List<Option> options49 = new ArrayList<Option>();\n options49.add(new Option(1, \"Indian Ocean\"));\n options49.add(new Option(2, \"Atlantic Ocean\"));\n options49.add(new Option(3, \"Pacific Ocean\"));\n options49.add(new Option(4, \"Arctic Ocean\"));\n QUESTION.add(new Question(49, \"Which is the largest body of water?\", getCategory(5), options49, options49.get(2)));\n\n List<Option> options50 = new ArrayList<Option>();\n options50.add(new Option(1, \"Maldives\"));\n options50.add(new Option(2, \"Monaco\"));\n options50.add(new Option(3, \"Tuvalu\"));\n options50.add(new Option(4, \"Vatican City\"));\n QUESTION.add(new Question(50, \"Which is the smallest country, measured by total land area?\", getCategory(5), options50, options50.get(3)));\n\n List<Option> options51 = new ArrayList<Option>();\n options51.add(new Option(1, \"1923\"));\n options51.add(new Option(2, \"1938\"));\n options51.add(new Option(3, \"1917\"));\n options51.add(new Option(4, \"1914\"));\n QUESTION.add(new Question(51, \"World War I began in which year?\", getCategory(6), options51, options51.get(3)));\n\n List<Option> options52 = new ArrayList<Option>();\n options52.add(new Option(1, \"France\"));\n options52.add(new Option(2, \"Germany\"));\n options52.add(new Option(3, \"Austria\"));\n options52.add(new Option(4, \"Hungary\"));\n QUESTION.add(new Question(52, \"Adolf Hitler was born in which country?\", getCategory(6), options52, options52.get(2)));\n\n List<Option> options53 = new ArrayList<Option>();\n options53.add(new Option(1, \"1973\"));\n options53.add(new Option(2, \"Austin\"));\n options53.add(new Option(3, \"Dallas\"));\n options53.add(new Option(4, \"1958\"));\n QUESTION.add(new Question(53, \"John F. Kennedy was assassinated in?\", getCategory(6), options53, options53.get(2)));\n\n List<Option> options54 = new ArrayList<Option>();\n options54.add(new Option(1, \"Johannes Gutenburg\"));\n options54.add(new Option(2, \"Benjamin Franklin\"));\n options54.add(new Option(3, \"Sir Isaac Newton\"));\n options54.add(new Option(4, \"Martin Luther\"));\n QUESTION.add(new Question(54, \"The first successful printing press was developed by this man.\", getCategory(6), options54, options54.get(0)));\n\n List<Option> options55 = new ArrayList<Option>();\n options55.add(new Option(1, \"The White Death\"));\n options55.add(new Option(2, \"The Black Plague\"));\n options55.add(new Option(3, \"Smallpox\"));\n options55.add(new Option(4, \"The Bubonic Plague\"));\n QUESTION.add(new Question(55, \"The disease that ravaged and killed a third of Europe's population in the 14th century is known as\", getCategory(6), options55, options55.get(3)));\n\n List<Option> options56 = new ArrayList<Option>();\n options56.add(new Option(1, \"Panipat\"));\n options56.add(new Option(2, \"Troy\"));\n options56.add(new Option(3, \"Waterloo\"));\n options56.add(new Option(4, \"Monaco\"));\n QUESTION.add(new Question(56, \"Napoleon was finally defeated at the battle known as?\", getCategory(6), options56, options56.get(2)));\n\n List<Option> options57 = new ArrayList<Option>();\n options57.add(new Option(1, \"Magellan\"));\n options57.add(new Option(2, \"Cook\"));\n options57.add(new Option(3, \"Marco\"));\n options57.add(new Option(4, \"Sir Francis Drake\"));\n QUESTION.add(new Question(57, \"Who was the first Western explorer to reach China?\", getCategory(6), options57, options57.get(2)));\n\n List<Option> options58 = new ArrayList<Option>();\n options58.add(new Option(1, \"Shah Jahan\"));\n options58.add(new Option(2, \"Chandragupta Maurya\"));\n options58.add(new Option(3, \"Humayun\"));\n options58.add(new Option(4, \"Sher Shah Suri\"));\n QUESTION.add(new Question(58, \"Who built the Grand Trunk Road?\", getCategory(6), options58, options58.get(3)));\n\n List<Option> options59 = new ArrayList<Option>();\n options59.add(new Option(1, \"Jawaharlal Nehru\"));\n options59.add(new Option(2, \"M. K. Gandhi\"));\n options59.add(new Option(3, \"Dr. Rajendra Prasad\"));\n options59.add(new Option(4, \"Dr. S. Radhakrishnan\"));\n QUESTION.add(new Question(59, \"Who was the first President of India?\", getCategory(6), options59, options59.get(2)));\n\n List<Option> options60 = new ArrayList<Option>();\n options60.add(new Option(1, \"8\"));\n options60.add(new Option(2, \"10\"));\n options60.add(new Option(3, \"5\"));\n options60.add(new Option(4, \"18\"));\n QUESTION.add(new Question(60, \"How many days did the battle of Mahabharata last?\", getCategory(6), options60, options60.get(3)));\n }\n return QUESTION;\n }", "public List<TemplateExamQuestion> getQuestions(Group group);", "public Collection<Question> getQuestions();", "public List<DataQuestion> getAllAnswer(){\n return items;\n }", "public List<MultQuestion> multChoiceQuestions(int qid);", "public List<Question> getQuestions() {\n\t\treturn this.questions;\n\t}", "@Override\n\tpublic List<String> getQuestionSpecificsAsList() {\n\t\treturn null;\n\t}", "@Test\n\tpublic void testGetAllQuestions() {\n\t\tList<QnaQuestion> questions = questionLogic.getAllQuestions(LOCATION1_ID);\n\t\tAssert.assertEquals(5, questions.size());\n\t\tAssert.assertTrue(questions.contains(tdp.question1_location1));\n\t\tAssert.assertTrue(questions.contains(tdp.question2_location1));\n\t\tAssert.assertTrue(questions.contains(tdp.question3_location1));\n\t\tAssert.assertTrue(questions.contains(tdp.question4_location1));\n\t\tAssert.assertTrue(questions.contains(tdp.question5_location1));\n\t}", "@Override\n\tpublic List<Question> getQuestions() {\n\t\treturn null;\n\t}", "public java.lang.String getTestQuestion() {\r\n return testQuestion;\r\n }", "public List<TextQuestion> TextQuestions(int aid);", "public Test(List<Question> questions) {\n\t\tthis.questions = questions;\n\t}", "List<ExamGrSubMeta> getAnswerSheetMeta();", "public List<Question> getQuestions()\n\t{\n\t\tList<Question> shallowCopy = new ArrayList<>();\n\t\tshallowCopy.addAll(allQuestions);\n\t\treturn shallowCopy;\n\t}", "public ArrayList<Question> getQuestions() {\r\n\t\treturn this.questions;\r\n\t}", "List<SurveyQuestion> getSurveyQuestionsByQuestions(List<Question> questions);", "public String[] getAnswers()\n\t{\n\t\treturn answers;\t\n\t}", "java.util.List<com.rpg.framework.database.Protocol.Quest> \n getQuestList();", "public java.util.List<java.lang.CharSequence> getAnswers() {\n return Answers;\n }", "public IAnswer[] getAnswers();", "public List<DnsQuestion> questions() {\n if (questions == null) {\n return Collections.emptyList();\n }\n return Collections.unmodifiableList(questions);\n }", "QuestionResponse getResponses(String questionId);", "List<SecurityQuestion> getCustomerQuestions(String locale)throws EOTException;", "public List<Boolean> getGivenAnswers()\n {\n return givenAnswers;\n }", "protected IQuestionCollection getQuestions() {\n\t\treturn fQuestions;\n\t}", "@Override\r\n public ArrayList<String> getAnswers() {\r\n return this.answers;\r\n }", "public List<String> getFaqElementAnswers() {\n List<String> answersList = new ArrayList<>();\n for(WebElement faqAnswer : faqElementAnswers()) {\n answersList.add(faqAnswer.getText());\n }\n return answersList;\n }", "List<QuestionPlugin> getQuestionPlugins();", "public java.util.List<java.lang.CharSequence> getAnswers() {\n return Answers;\n }", "public List queryTest() {\n\t\tList list = null;\n\t\tthis.init();\n\t\t try {\n\t\t\t list= sqlMap.queryForList(\"getAllTest\");\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 list;\n\t\t\n\t}", "List<ExamPackage> getListExercise();", "public Question[] getQuestions() {\n return this.questions.toArray(new Question[0]);\n }", "public void printQuestions()\r\n\t{\r\n\t\tfor(int i = 0; i < questions.size(); i++)\r\n\t\t{\r\n\t\t\tString q = questions.get(i).toString();\r\n\t\t\tSystem.out.println( (i+1) + \". \" + q);\r\n\t\t}\r\n\t}", "public ArrayList<String> getAnswerList(){\n if(answerList != null) {\n return answerList;\n }\n else{\n System.out.println(\"Answer list is undefined.\");\n return null;\n }\n }", "public List<Question> getData() {\n for (int i = 0; i < data.size(); i++) {\n List<Answer> answers = data.get(i).getAnswers();\n Collections.shuffle(answers);\n data.get(i).setAnswers(answers);\n }\n return data;\n }", "public QuestionElement getQuestion(){\r\n\t\treturn ques;\r\n\t}", "@Override\n\t@Transactional\n\tpublic List<Question> getQuestionsByTestId(int id) {\n\t\treturn questionDao.getQuestionsByTestId(id);\n\t}", "public List<QuestionEntity> getAllQuestions() {\n try {\n return entityManager.createNamedQuery(\"getAllQuestions\", QuestionEntity.class).getResultList();\n } catch (NoResultException nre) {\n return null;\n }\n }", "@Test\r\n\tpublic void questionTest() throws Throwable {\n\t\tString category=eUtil.getExcelData(\"smoke\", 1, 2);\r\n\t\tString subcategory=eUtil.getExcelData(\"smoke\", 1, 3);\r\n\t\tString question_title=eUtil.getExcelData(\"smoke\", 1, 4);\r\n\t\tString description=eUtil.getExcelData(\"smoke\", 1, 5);\r\n\t\tString expectedresult=eUtil.getExcelData(\"smoke\", 1, 6);\r\n\r\n\t\t//Navigate to QuestionPage\r\n\t\tQuestionsPage questionpage=new QuestionsPage(driver);\r\n\t\tquestionpage.questionPage(category, subcategory, question_title, description);\r\n\t\t\r\n\t\t//Verification\r\n\t\tString actual = questionpage.questionsLink();\r\n\t\tAssert.assertTrue(actual.contains(expectedresult));\r\n\t}", "ArrayList<Integer> getAnswers (Integer q) {\n\t\tif (results.containsKey(q)) {\n\t\t\treturn results.get(q);\n\t\t} else {\n\t\t\tSystem.out.println(\"No answers found.\");\n\t\t\treturn null;\n\t\t}\n\t}", "public List<Question> getQuestions(String user) {\n List<Question> messages = new ArrayList<Question>();\n \n Query query =\n new Query(\"Question\")\n //The setFilter line was here originally but not in the Step 3 provided code\n .setFilter(new Query.FilterPredicate(\"user\", FilterOperator.EQUAL, user))\n .addSort(\"timestamp\", SortDirection.DESCENDING);\n PreparedQuery results = datastore.prepare(query);\n \n return questionHelper(user, messages, query, results);\n }", "public Questions simulateQuestion(){\n return this._testQuestions.remove(0);\n }", "public static ArrayList<Question> init() {\r\n\t\t\r\n\t\tArrayList<Question> questionList = new ArrayList<Question>();\r\n\t\t\r\n\t\tquestionList.add(new Question(\"What's the capital of Finland?\", \"Helsinki\", \"Hilsinki\",\r\n\t\t\t\t\"Halsinki\", \"Hulsinki\"));\r\n\t\tquestionList.add(new Question(\"What does the fox say?\", \"Nobody really knows\", \"Woof\", \"Meow\", \"Tweet\"));\r\n\t\tquestionList.add(new Question(\"Which insect inspired the term 'computer bug'?\", \"Moth\", \"Roach\", \"Wasp\", \"Fly\"));\r\n\t\tquestionList.add(new Question(\"Who's the protagonist of the movie 'Die Hard'?\", \"John McClane\", \"Jake Peralta\", \"Harry Stamper\", \"Jake MacClane\"));\r\n\t\tquestionList.add(new Question(\"Which one of the following is NOT a star in the Big Dipper constellation (Otava)?\", \"Altair\", \"Megrez\", \"Alkaid\", \"Phecda\"));\r\n\t\tquestionList.add(new Question(\"Which one of the following is NOT a dragon on the TV-series 'Game of Thrones'?\", \"Nymeria\", \"Drogon\", \"Viserion\", \"Rhaegal\"));\r\n\t\tquestionList.add(new Question(\"How many James Bond films are there (Spectre being the latest)?\", \"24\", \"50\", \"30\", \"26\"));\r\n\t\tquestionList.add(new Question(\"What breed is Sauli Niinistö and Jenni Haukio's dog Lennu?\", \"Boston terrier\", \"French bulldog\", \"Chihuahua\", \"Golden retriever\"));\r\n\t\tquestionList.add(new Question(\"Who has composed the Finnish national anthem, 'Maamme'?\", \"Fredrik Pacius\", \"Jean Sibelius\", \"Robert Kajanus\", \"Armas Launis\"));\r\n\t\tquestionList.add(new Question(\"What is the largest desert in the world called?\", \"Sahara\", \"Kalahari\", \"Thar\", \"Sonoran\"));\r\n\t\tquestionList.add(new Question(\"What is the name of the horse that is often seen in the streets of Turku?\", \"Kullannuppu\", \"Hulmuharja\", \"Ilon Pilke\", \"Valo\"));\r\n\t\tquestionList.add(new Question(\"How many different known species of shark are there?\", \"Over 400\", \"Less than 100\", \"200\", \"340\"));\r\n\t\t\r\n\t\t\r\n\t\treturn questionList;\r\n\t\t\r\n\t}", "public List<Question> loadQuestions() {\r\n\t\tScanner scanner = null;\r\n\t\ttry {\r\n\t\t\t// Creating scanner that reads the questions.txt file.\r\n\t\t\tscanner = new Scanner(new File(\"javaQuestions.txt\"));\r\n\t\t\t// Loop that goes over the file and adding each line as a string element to the\r\n\t\t\t// list. The result is full list with the questions.\r\n\t\t\twhile (scanner.hasNextLine()) {\r\n\t\t\t\tQuestion q = new Question();\r\n\t\t\t\tq.setQuestion(scanner.nextLine());\r\n\t\t\t\tquestions.add(q);\r\n\t\t\t}\r\n\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t// Closing the scanner.\r\n\t\tfinally {\r\n\t\t\tscanner.close();\r\n\t\t}\r\n\t\treturn questions;\r\n\t}", "public List<Answer> getAnswers(Question question) throws Exception {\n DataBaseBroker dbb = new DataBaseBroker();\n dbb.loadDriver();\n dbb.establishConnection();\n List<Answer> answers = dbb.getAnswers(question);\n dbb.commit();\n dbb.closeConnection();\n return answers;\n }", "@Test\n public void testGetAnswersByQuestion(){\n Survey survey = createSurvey();\n Question question = createQuestion(survey);\n Answer answer = createAnswer(question);\n\n long testQuestionId = question.getId();\n List<Answer> testAnswers = answerDAO.getAnswersByQuestion(testQuestionId);\n // hiç cevap gelebiliyor mu kontrol, en az 1 cevap yukarda verdik çünkü.\n Assert.assertTrue(testAnswers != null && testAnswers.size() >= 1);\n }", "public Set<Choice> returnChoiceList(Question question) {\n return question.getChoiceList();\n }", "public ArrayList<String> generateAnswers(){\r\n ArrayList<String> ans;\r\n if(qType==0){\r\n ans = new ArrayList(Arrays.asList(\"A\",\"B\",\"C\",\"D\",\"E\"));\r\n }\r\n else{\r\n ans = new ArrayList(Arrays.asList(\"Choice 1\",\"Choice 2\"));\r\n }\r\n return ans;\r\n }", "public List<Question> getQuestionbySid(int sid);", "public java.util.List<com.rpg.framework.database.Protocol.Quest> getQuestList() {\n if (questBuilder_ == null) {\n return java.util.Collections.unmodifiableList(quest_);\n } else {\n return questBuilder_.getMessageList();\n }\n }", "@RequestMapping(value = \"/getQuestion/{test}/{question}\")\n\tpublic Questions getSingleQuestion(@PathVariable(\"test\") int testid,@PathVariable(\"question\") int question) {\n\t\tTest test = testDao.gettestStatus(testid);\n\t\tif(test!=null) {\n\t\t\t\n\t\t\tfor(Questions testQueList : test.getQuestions()) {\n\t\t\t\tif(testQueList.getQid()==question) {\n\t\t\t\t\t//System.out.println(\"test id : \"+testQueList.getTest());\n//\t\t\t\t\ttestQueList.setTest(test.getTestid());\n\t\t\t\t\treturn testQueList;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public String[] getAllAnswers() {\n\t\treturn remainingAnswers.clone();\n\t}", "@Test\n\tpublic void testGetNewQuestions() {\n\t\tList<QnaQuestion> questions = questionLogic.getNewQuestions(LOCATION1_ID);\n\t\tAssert.assertEquals(questions.size(), 2);\n\t\t\n\t\tAssert.assertTrue(questions.contains(tdp.question1_location1));\n\t\tAssert.assertTrue(questions.contains(tdp.question5_location1));\n\t}", "private List<QuestionDef> getQuestions(List<IFormElement> elements)\n\t{\n\t\t//define the return value\n\t\tArrayList<QuestionDef> questions = new ArrayList<QuestionDef>();\n\t\t//loop over elements\n\t\tif(elements == null)\n\t\t{\n\t\t\treturn questions;\n\t\t}\n\t\tfor(IFormElement element: elements)\n\t\t{\n\t\t\t//is it a question\n\t\t\tif(element instanceof QuestionDef)\n\t\t\t{\n\t\t\t\tquestions.add((QuestionDef)element);\n\t\t\t}\n\t\t\t//recurse\n\t\t\tquestions.addAll(getQuestions(element.getChildren()));\n\t\t}\n\t\t\n\t\treturn questions;\n\t}", "private ArrayList<String> getRandQuestion() \n\t{\t\n\t\tquestionUsed = true;\n\t\t\n\t\tRandom randomizer = new Random();\n\t\tint randIdx = 0;\n\t\t\n\t\tif(questionsUsed.isEmpty())\n\t\t\trandIdx = randomizer.nextInt(allQuestions.size());\n\t\telse\n\t\t{\n\t\t\twhile(questionUsed)\n\t\t\t{\n\t\t\t\trandIdx = randomizer.nextInt(allQuestions.size());\n\t\t\t\tcheckIfQuestionUsed(randIdx);\n\t\t\t}\n\t\t}\n\t\t\n\t\tquestionsUsed.add(randIdx);\n\t\t\n\t\treturn allQuestions.get(randIdx);\n\t}", "List<AnswerList> findAllAnsList();", "public List<Integer> getCorrectAnswers() {\n return correctAnswers;\n }", "@WebMethod public Vector<Question> getQuestions(Event ev);", "public static void printQuestions(ArrayList<Question> quest) {\n\t\tfor (Question question : quest) {\n\t\t\tquestion.getText();\n\t\t}\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<AssesmentQuestion> list() {\r\n\r\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\tTransaction tx = session.beginTransaction();\r\n\t\tCriteria criteria = session.createCriteria(AssesmentQuestion.class);\r\n\r\n\t\tList<AssesmentQuestion> assesmentQuestionList = null;\r\n\t\ttry {\r\n\t\t\tassesmentQuestionList = criteria.list();\r\n\t\t\t// tx.commit();\r\n\t\t} catch (HibernateException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tsession.close();\r\n\t\t}\r\n\r\n\t\treturn assesmentQuestionList;\r\n\r\n\t}", "@Test\n public void testGetQuestions() throws Exception {\n\n LinkedMultiValueMap<String, String> requestParams = new LinkedMultiValueMap<>();\n requestParams.add(\"category\", \"10\");\n requestParams.add(\"difficulty\", \"easy\");\n\n mvc.perform(get(\"/questions\").params(requestParams)).andExpect(status().isOk())\n .andExpect(jsonPath(\"$\").isArray()).andExpect(jsonPath(\"$\", hasSize(5)));\n }", "public void setQuestionList(ArrayList<String> questionList){\n this.questionList = questionList;\n }", "public List<Questions> getAllQuestionsHard() {\n List<Questions> questionList = new ArrayList<>();\n db = getReadableDatabase();\n Cursor c = db.rawQuery(\"SELECT * FROM \" + QuestionsTable.Table_name + \" WHERE _id BETWEEN 1 AND 10\", null);\n\n if (c.moveToFirst()){\n do {\n Questions question = new Questions();\n question.setQuestion(c.getString(c.getColumnIndex(QuestionsTable.Column_Question)));\n question.setOption1(c.getString(c.getColumnIndex(QuestionsTable.Column_Option1)));\n question.setOption2(c.getString(c.getColumnIndex(QuestionsTable.Column_Option2)));\n question.setOption3(c.getString(c.getColumnIndex(QuestionsTable.Column_Option3)));\n question.setOption4(c.getString(c.getColumnIndex(QuestionsTable.Column_Option4)));\n question.setAnswerNr(c.getInt(c.getColumnIndex(QuestionsTable.Column_Answer_Nr)));\n questionList.add(question);\n } while (c.moveToNext());\n }\n c.close();\n return questionList;\n }", "public JTestDefinition listOfQueries(){\n Iterable<JHttpQuery> queries = Stream.of(\"100\", \"50\", \"25\")\n .map(q -> new JHttpQuery().get().path(\"/sleep\", q))\n .collect(Collectors.toList());\n return JTestDefinition.builder(Id.of(\"queries list\"), getEndpoints())\n .withQueryProvider(queries)\n .build();\n }", "public Test() {\n\t\tquestions = new LinkedList<Question>();\n\t}", "List<FAQModel> getFAQs();", "List<Question> selectByExample(QuestionExample example);", "List<Question> selectByExample(QuestionExample example);", "List<Question> selectByExample(QuestionExample example);", "List<Question> selectByExample(QuestionExample example);", "List<Result> getResultsByQuizId(int quizId);", "public List getExamples() {\n\t\tif (examples == null) {\n\t\t\texamples = getFormattedPractices(\"/metadataFieldInfo/field/bestPractices/examples\");\n\t\t}\n\t\treturn examples;\n\t}", "public List<String> getAnswersAsList() {\n\t\tString[] data = _answer.split(Question.answerDelimiter);\n\t\tList<String> output = new ArrayList<String>();\n\t\tfor (String answer : data) {\n\t\t\toutput.add(answer);\n\t\t}\n\t\treturn output;\n\t}", "List<Question14> selectByExample(Question14Example example);", "@Override\n\tpublic List<QA> getQAList() {\n\t\treturn qaDao.getQAList();\n\t}", "@GetMapping(\"/quiz/{qid}\")\n\tpublic ResponseEntity<?> getQuestionsOfQuiz(@PathVariable(\"qid\") Long qid){\n\t\tQuiz quiz = this.quizService.getQuiz(qid);\n\t\tSet<Question> questions = quiz.getQuestions();\n\t\tList<Question> list = new ArrayList<>(questions);\n\t\tif(list.size() > Integer.parseInt(quiz.getNumberOfQuestions())) {\n\t\t\tlist = list.subList(0, Integer.parseInt(quiz.getNumberOfQuestions()));\n\t\t}\n\t\t\n\t\tlist.forEach((q)-> {\n\t\t\tq.setAnswer(\"\");\n\t\t});\n\t\t\n\t\tCollections.shuffle(list);\n\t\treturn ResponseEntity.ok(list);\n\t}", "public List<Question> listQuestion(String query) throws StorageException {\n\t\tif (query == null || query.compareTo(\"\") == 0) {\n\t\t\tquery = \"1\";\n\t\t}\n\t\tList<Question> questionList = new ArrayList<Question>();\n\t\tString sortOrder = \"_ID ASC\";\n\t\tString[] selectionArguments = null;\n\t\tQuestion question;\n\t\tCursor cursor = contentResolver.query(LocalStorageContentProvider.QUESTION_URI, null, query, selectionArguments,\n\t\t\t\tsortOrder);\n\t\ttry {\n\t\t\tif (cursor.moveToFirst()) {\n\t\t\t\tdo {\n\t\t\t\t\tquestion = new Question();\n\t\t\t\t\tquestion.set_Id(cursor.getString(cursor.getColumnIndex(\"_ID\")));\n\t\t\t\t\tquestion.setType(cursor.getString(cursor.getColumnIndex(\"TYPE\")));\n\t\t\t\t\tquestion.setTitle(cursor.getString(cursor.getColumnIndex(\"TITLE\")));\n\t\t\t\t\tquestion.setAnswer(cursor.getString(cursor.getColumnIndex(\"ANSWER\")));\n\t\t\t\t\tquestion.set_idQuestionSet(cursor.getString(cursor.getColumnIndex(\"QUESTIONSET_ID\")));\n\t\t\t\t\tquestionList.add(question);\n\t\t\t\t} while (cursor.moveToNext());\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tthrow new StorageException();\n\t\t} finally {\n\t\t\tif (cursor != null && !cursor.isClosed()) {\n\t\t\t\tcursor.close();\n\t\t\t}\n\t\t}\n\t\treturn questionList;\n\t}", "private static ArrayList<Question> extractQuestions(Context context, String level) {\n\n // Create an empty ArrayList to store the questions.\n ArrayList<Question> questionList = new ArrayList<>();\n\n try{\n //Create a JSON object to deal with question data\n JSONObject jsonObject = JsonUtils.jsonFileToJSONObject(context, EXTERNAL);\n JSONArray questionArray = jsonObject.getJSONArray(level.toLowerCase());\n\n int numberOfQuestions = questionArray.length();\n for(int i = 0; i < numberOfQuestions; i++){\n JSONObject jsonQuestion = questionArray.getJSONObject(i);\n\n questionList.add(JsonUtils.convertJsonObjectToQuestionObject(jsonQuestion));\n\n }\n\n }catch(IOException | JSONException e){\n // If an error is thrown when executing any of the above statements in the \"try\" block,\n // catch the exception here, so the app doesn't crash. Print a log message\n // with the message from the exception.\n Log.e(\"QueryUtils\", \"Problem parsing the question JSON results\", e);\n }\n\n return questionList;\n }", "public List<Questions> getAllQuestionsEasy() {\n List<Questions> questionList = new ArrayList<>();\n db = getReadableDatabase();\n Cursor c = db.rawQuery(\"SELECT * FROM \" + QuestionsTable.Table_name + \" WHERE _id BETWEEN 21 AND 30\", null);\n\n if (c.moveToFirst()){\n do {\n Questions question = new Questions();\n question.setQuestion(c.getString(c.getColumnIndex(QuestionsTable.Column_Question)));\n question.setOption1(c.getString(c.getColumnIndex(QuestionsTable.Column_Option1)));\n question.setOption2(c.getString(c.getColumnIndex(QuestionsTable.Column_Option2)));\n question.setOption3(c.getString(c.getColumnIndex(QuestionsTable.Column_Option3)));\n question.setOption4(c.getString(c.getColumnIndex(QuestionsTable.Column_Option4)));\n question.setAnswerNr(c.getInt(c.getColumnIndex(QuestionsTable.Column_Answer_Nr)));\n questionList.add(question);\n } while (c.moveToNext());\n }\n c.close();\n return questionList;\n }", "private List<String> answerType(Question currentQuestion) {\n List<String> answers = new ArrayList<String>();\n\n if (currentQuestion.getTypeOfQuestion() == QuestionTypes.ESSAY || currentQuestion.getTypeOfQuestion() == QuestionTypes.MULTI_CHOICE) {\n System.out.println(\"Single Answer :\" + singleAnswer);\n answers.add(singleAnswer);\n } else {\n System.out.println(\"Multi Answer :\" + multiAnswers);\n answers = multiAnswers;\n }\n return answers;\n }", "public List<?> getQuestions(MathConfiguration mathConfig) {\n\r\n\t\tList<Problem> g7ExponentExpression = new ArrayList<Problem>();\r\n\t\t\r\n\t\tfor (int i = 0; i <3; i++)\r\n\t\t\tg7ExponentExpression.add(getProblem1(mathConfig));\r\n\t\tfor (int i = 0; i <4; i++)\r\n\t\t\tg7ExponentExpression.add(getProblem2(mathConfig));\r\n\t\tfor (int i = 0; i <3; i++)\r\n\t\t\tg7ExponentExpression.add(getProblem3(mathConfig));\r\n\t\tfor (int i = 0; i <3; i++)\r\n\t\t\tg7ExponentExpression.add(getProblem4(mathConfig));\r\n\t\tfor (int i = 0; i <3; i++)\r\n\t\t\tg7ExponentExpression.add(getProblem5(mathConfig));\r\n\t\tfor (int i = 0; i <2; i++)\r\n\t\t\tg7ExponentExpression.add(getProblem6(mathConfig));\r\n\t\tfor (int i = 0; i <2; i++)\r\n\t\t\tg7ExponentExpression.add(getProblem7(mathConfig)); \r\n\t\tfor (int i = 0; i <5; i++)\r\n\t\t\tg7ExponentExpression.add(getProblem8(mathConfig));\r\n\t\t\r\n\r\n\t\treturn g7ExponentExpression;\r\n\t}", "@NonNull\n public String[] getPossibleAnswers() {\n return new String[]{firstAnswer, secondAnswer, thirdAnswer, fourthAnswer};\n }", "@Override\n\tpublic Questions addQuestions(long testId, Questions question) throws TestMSException {\n\t\treturn null;\n\t}", "@Test\n\tpublic void testGetPublishedQuestions() {\n\t\tList<QnaQuestion> questions = questionLogic.getPublishedQuestions(LOCATION1_ID);\n\t\tAssert.assertEquals(questions.size(), 3);\n\t\t\n\t\tAssert.assertTrue(questions.contains(tdp.question2_location1));\n\t\tAssert.assertTrue(questions.contains(tdp.question3_location1));\n\t\tAssert.assertTrue(questions.contains(tdp.question4_location1));\n\t}", "List<Question11> selectByExample(Question11Example example);", "public String getQuestion(int index){\n return questionList.get(index);\n }", "public Collection<String> getExamples() {\n/* 49 */ return EXAMPLES;\n/* */ }", "public List<Answer> getAnswersList() {\n return answersList;\n }", "public java.util.List<com.rpg.framework.database.Protocol.Quest> getQuestList() {\n return quest_;\n }", "@Test\n public void initializeBasicQuizTest() throws CakeException {\n /*\n QuestionList test = new QuestionList(QuestionType.BASIC);\n\n //check if there are the correct number of test questions\n assertEquals(test.getQuestionList().size(), MAX_QUESTIONS);\n\n // check if there are any duplicate questions\n Set<Question> set = new HashSet<>(test.getQuestionList());\n assertEquals(set.size(), test.getQuestionList().size());\n */\n }", "public int getAnsweredQuestions(int index){\n\t\treturn _answeredQuestions[index];\n\n\t}", "public List<String> loadCorrectAnswers() {\r\n\t\tScanner scanner = null;\r\n\t\ttry {\r\n\t\t\t// Creating scanner that reads the questions.txt file.\r\n\t\t\tscanner = new Scanner(new File(\"javaCorrectAnswers.txt\"));\r\n\t\t\t// Loop that goes over the file and adding each line as a string element to the\r\n\t\t\t// list. The result is full list with the questions.\r\n\t\t\twhile (scanner.hasNextLine()) {\r\n\r\n\t\t\t\tcorrectAnswers.add(scanner.nextLine());\r\n\t\t\t}\r\n\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t// Closing the scanner.\r\n\t\tfinally {\r\n\t\t\tscanner.close();\r\n\t\t}\r\n\t\treturn correctAnswers;\r\n\t}", "private void generalKnowledgeQuestions(){\n QuestionUtils.generalKnowledgeQuestions(); //all the questions now are stored int the QuestionUtils class\n }" ]
[ "0.75954926", "0.75626636", "0.73987037", "0.71751124", "0.708457", "0.7053819", "0.70393133", "0.7020083", "0.69553816", "0.6946665", "0.69462657", "0.69025123", "0.67542183", "0.6739658", "0.66725343", "0.6666002", "0.66148114", "0.6607882", "0.6582326", "0.6531514", "0.6514687", "0.651384", "0.6507229", "0.6497377", "0.6456654", "0.6450085", "0.64030653", "0.63875663", "0.6369763", "0.6358724", "0.6341462", "0.6331668", "0.6314484", "0.6313991", "0.6310845", "0.6305144", "0.6291844", "0.626745", "0.6263616", "0.62472427", "0.6225705", "0.6222611", "0.620039", "0.6182593", "0.61674076", "0.6153223", "0.6153158", "0.6132427", "0.6123466", "0.61153615", "0.6110209", "0.61095893", "0.6108559", "0.6094411", "0.6085848", "0.60775423", "0.6073836", "0.6067946", "0.6047895", "0.60333854", "0.6023279", "0.60094714", "0.6008025", "0.5995779", "0.59954005", "0.5991359", "0.59873205", "0.5979834", "0.5979022", "0.5974701", "0.5967136", "0.5946259", "0.5935464", "0.5904095", "0.59024566", "0.59024566", "0.59024566", "0.59024566", "0.5899907", "0.58977807", "0.58936495", "0.5884786", "0.588288", "0.58827984", "0.58808523", "0.5868775", "0.58639294", "0.5861674", "0.5860599", "0.5860409", "0.5853535", "0.5847084", "0.58439004", "0.58302253", "0.5829427", "0.5821932", "0.5805503", "0.5803565", "0.58034104", "0.5796388", "0.57949257" ]
0.0
-1
Dennis, 20001213, impl release control it updates the mod_eff_start/end_datetime in Module with the nonstatic class valiables mod_in_eff_start/end_datetime
public void updateEffDatetime(Connection con) throws qdbException { try { String SQL; if(mod_in_eff_start_datetime != null) if(dbUtils.isMinTimestamp(mod_in_eff_start_datetime)) mod_in_eff_start_datetime = dbUtils.getTime(con); SQL = "update Module set mod_eff_start_datetime = ?, " + "mod_eff_end_datetime = ? " + "where mod_res_id = ? "; PreparedStatement stmt = con.prepareStatement(SQL); stmt.setTimestamp(1, mod_in_eff_start_datetime); stmt.setTimestamp(2, mod_in_eff_end_datetime); stmt.setLong(3,mod_res_id); int stmtResult=stmt.executeUpdate(); stmt.close(); if ( stmtResult!=1) { con.rollback(); throw new qdbException("Failed to update status."); } } catch(SQLException e) { throw new qdbException(e.getMessage()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Model\r\n\tprotected void setModificationTime() {\r\n modificationTime = new Date();\r\n }", "@Override\n void adjustStartAndEnd(U vComponentEditedCopy, U vComponentOriginalCopy)\n {\n vComponentEditedCopy.setDateTimeStart(new DateTimeStart(getStartRecurrence()));\n vComponentEditedCopy.setEndOrDuration(getStartRecurrence(), getEndRecurrence());\n }", "public final void updateModifyDateTime() {\n \tm_modifyDate = System.currentTimeMillis();\n \tm_accessDate = m_modifyDate;\n }", "public final void updateModifyDateTime( long modTime) {\n \tm_modifyDate = modTime;\n }", "@Test\n public void modTimeTest() {\n // TODO: test modTime\n }", "public void updateModifyDateTime( long modTime) {\n\n \t// Check if the modification date/time has changed\n \t\n \tif ( getModifyDateTime() != modTime) {\n \t\t\n \t\t// Update the modification date/time\n \t\t\n \t\tsuper.updateModifyDateTime( modTime);\n \t\t\n \t\t// Queue a low priority state update\n \t\t\n \t\tqueueLowPriorityUpdate( UpdateModifyDate);\n \t}\n }", "public void updBasicInfo(Connection con, loginProfile prof, boolean isChangeDate) throws qdbException, qdbErrMessage, cwSysMessage {\n\t\ttry {\n\t\t\tres_id = mod_res_id;\n\n\t\t\tres_type = RES_TYPE_MOD;\n\t\t\tres_upd_user = prof.usr_id;\n\n\t\t\t// check User Right\n\n\t\t\t// checkModifyPermission(con, prof);\n\t\t\t// if (!dbResourcePermission.hasPermission(con, mod_res_id, prof,\n\t\t\t// dbResourcePermission.RIGHT_WRITE)) {\n\t\t\t// throw new qdbErrMessage(dbResourcePermission.NO_RIGHT_WRITE_MSG);\n\t\t\t// }\n\n\t\t\t// check timeStamp\n\n\t\t\tsuper.checkTimeStamp(con);\n\n\t\t\tsuper.updBasicInfo(con, isChangeDate);\n\n\t\t\t// tricky! upd instructor only when has instructor inputted\n\t\t\tif (mod_instructor_ent_id_lst != null) {\n\t\t\t\tdbResourcePermission.delUserRoleIsNull(con, mod_res_id);\n\t\t\t\t/*\n\t\t\t\t * if( mod_is_public && !mod_public_need_enrol )\n\t\t\t\t * dbResourcePermission\n\t\t\t\t * .save(con,mod_res_id,prof.root_ent_id,null,true,false,true);\n\t\t\t\t */\n\t\t\t\tfor (int i = 0; i < mod_instructor_ent_id_lst.length; i++) {\n\t\t\t\t\tdbResourcePermission.save(con, mod_res_id,\n\t\t\t\t\t\t\tmod_instructor_ent_id_lst[i], null, true, true,\n\t\t\t\t\t\t\tfalse);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tString SQL;\n\n\t\t\tif (mod_in_eff_start_datetime != null && dbUtils.isMinTimestamp(mod_in_eff_start_datetime)) {\n\t\t\t\tmod_in_eff_start_datetime = dbUtils.getTime(con);\n\t\t\t}\n\n\t\t\tSQL = \"update Module set mod_eff_start_datetime = ?, \"\n\n\t\t\t+ \"mod_eff_end_datetime = ? \" + \" , mod_pass_score = ? \"\n\t\t\t\t\t+ \" , mod_max_score = ? \" + \"where mod_res_id = ? \";\n\t\t\tPreparedStatement stmt = con.prepareStatement(SQL);\n\t\t\tint index = 1;\n\t\t\tstmt.setTimestamp(index++, mod_in_eff_start_datetime);\n\t\t\tstmt.setTimestamp(index++, mod_in_eff_end_datetime);\n\t\t\tstmt.setFloat(index++, mod_pass_score);\n\t\t\tstmt.setFloat(index++, mod_max_score);\n\t\t\tstmt.setLong(index++, mod_res_id);\n\t\t\tint stmtResult = stmt.executeUpdate();\n\t\t\tstmt.close();\n\t\t\tif (stmtResult != 1) {\n\t\t\t\tcon.rollback();\n\t\t\t\tthrow new qdbException(\"Failed to update status.\");\n\t\t\t}\n\n\t\t\treturn;\n\n\t\t} catch (SQLException e) {\n\t\t\tthrow new qdbException(\"SQL Error: \" + e.getMessage());\n\t\t}\n\t}", "public void setUpdateTime(Date updateTime)\n/* */ {\n/* 198 */ this.updateTime = updateTime;\n/* */ }", "public void setHC_WorkEndDate (Timestamp HC_WorkEndDate);", "public void updateModule (final double timestep);", "public void upd2(Connection con, loginProfile prof) throws qdbException, qdbErrMessage, SQLException {\n res_id = mod_res_id;\n res_type = RES_TYPE_MOD;\n res_upd_user = prof.usr_id;\n\n super.checkTimeStamp(con);\n\n if (res_status.equalsIgnoreCase(RES_STATUS_ON) || res_status.equalsIgnoreCase(RES_STATUS_DATE)) {\n // Check if the question is ordered in 1,2,3....\n if (!checkQorder(con)) {\n //Questions are not in the correct order.\n throw new qdbErrMessage(\"MOD001\");\n }\n }\n\n //if the module is standard test or dynamic test\n //make sure that you can only turn the module online\n //if the test has question/criteria defined in it\n if (res_status.equalsIgnoreCase(RES_STATUS_ON)) {\n if (mod_type.equalsIgnoreCase(MOD_TYPE_TST)) {\n if (dbResourceContent.getResourceContentCount(con, mod_res_id) == 0) {\n res_status = RES_STATUS_OFF;\n }\n } else if (mod_type.equalsIgnoreCase(MOD_TYPE_DXT)) {\n if (dbModuleSpec.getModuleSpecCount(con, mod_res_id) == 0) {\n res_status = RES_STATUS_OFF;\n }\n }\n }\n\n super.updateStatus(con);\n\n // permission records have to be cleared no matter mod_instructor is specified or not\n dbResourcePermission.delUserRoleIsNull(con, mod_res_id);\n if (mod_instructor_ent_id_lst != null) {\n for (int i = 0; i < mod_instructor_ent_id_lst.length; i++) {\n dbResourcePermission.save(con, mod_res_id, mod_instructor_ent_id_lst[i], null, true, true, false);\n }\n }\n\n //Dennis, 2000-12-13, impl release control\n //If the new status == DATE, update the eff_start/end_datetime in Module\n //if(res_status.equalsIgnoreCase(RES_STATUS_DATE))\n //2001-01-05, all status will have eff datetime\n updateEffDatetime(con);\n }", "public void setModTime(java.util.Calendar modTime) {\n this.modTime = modTime;\n }", "public void updAsmRelated(Connection con, loginProfile prof)\n throws SQLException, cwException {\n\n super.updAsmReleated(con, prof);\n\n String SQL = \" UPDATE Module \"\n + \" SET mod_eff_start_datetime = ?, mod_eff_end_datetime = ?, \"\n + \" mod_max_usr_attempt = ?, mod_pass_score = ? \"\n + \" WHERE mod_res_id = ? \";\n\n PreparedStatement stmt = con.prepareStatement(SQL);\n stmt.setTimestamp(1, mod_eff_start_datetime);\n stmt.setTimestamp(2, mod_eff_end_datetime);\n stmt.setLong(3, mod_max_usr_attempt);\n stmt.setFloat(4, mod_pass_score);\n stmt.setLong(5, mod_res_id);\n int stmtResult=stmt.executeUpdate();\n stmt.close();\n if ( stmtResult!=1)\n throw new cwException(\" Failed to Update Module, id = \" + mod_res_id);\n return;\n\n }", "public void setHC_WorkStartDate2 (Timestamp HC_WorkStartDate2);", "private DateTimeAdjusters() {\n\n }", "@Test\n public void testClassFieldModifierChange() {\n String fileBeforePath = FILE_DIR_FIX + \"0_CompilerConfiguration.java\";\n String fileAfterPath = FILE_DIR_FIX + \"1_CompilerConfiguration.java\";\n Commit testCommit = new Commit(fileBeforePath, fileAfterPath);\n\n // for this file only one change should be detected, in specific LOC\n assertEquals(Range.between(59, 59), testCommit.getChanges().get(0).getSrcNodeFineLOCs());\n assertEquals(Range.between(60, 60), testCommit.getChanges().get(0).getDstNodeFineLOCs());\n }", "public void updateTimeStamp(boolean theSameModule) {\n\t\t\t/*if(lastUseTimeStamp==0) {\n\t\t\t\twaitLoading = true;\n\t\t\t} else if(isNotUseForALongTime()) {\n\t\t\t\t//it probably is not in cache\n\t\t\t\twaitLoading = true;\n\t\t\t}*/\n\t\t\t\n\t\t\tif(!theSameModule)\n\t\t\t\tthis.lastUseTimeStamp = curTimeStamp++;\n\t\t}", "public Date getDateModifed(){return dateModified;}", "public void updateDateModified() {\n dateModified = DateTime.now();\n }", "public void setModifiedDate(Date modifiedDate);", "public void setModifiedDate(Date modifiedDate);", "public void setModifiedDate(Date modifiedDate);", "public M csseUpdateTimeStart(Object start){this.put(\"csseUpdateTimeStart\", start);return this;}", "public String getModifyEndTime() {\n return modifyEndTime;\n }", "public void setDateModified(Date dateModified);", "public long getModificationTime()\n {\n return modDate * 1000L;\n }", "public void setModifiTime(Date modifiTime) {\n this.modifiTime = modifiTime;\n }", "@NoProxy\n public void updateLastmod() {\n setLastmod(new LastModified(new DateTime(true)).getValue());\n }", "net.opengis.gml.x32.TimeInstantPropertyType addNewBegin();", "public I getChangeInfo(int startSeqNum);", "public void projectModified() { }", "public void projectModified() { }", "public Date getModificationDate() {\n return m_module.getConfiguration().getModificationDate();\n }", "private void onModuleUpdate() {\n if (mTime == -1L) {\n mTime = System.currentTimeMillis();\n }\n\n //!\n //! Render until the display is not active.\n //!\n onModuleRender(System.currentTimeMillis());\n\n //!\n //! Request to render again.\n //!\n onAnimationRequest(this::onModuleUpdate);\n }", "public Date getGmtModify() {\n return gmtModify;\n }", "public Date getResModUpdate() {\n return resModUpdate;\n }", "@Test\n public void testValidateUpdateLifeTimeWithGoodDates() {\n updates.add(mockAssetView(\"endDate\", new Timestamp(20000).toString()));\n updates.add(mockAssetView(\"startDate\", new Timestamp(25000).toString()));\n defaultRuleAssetValidator.validateUpdateAsset(editorInfo, updates, null);\n verify(assetService).addError(eq(RuleProperty.END_DATE), anyString()); \n }", "public void setTimeInNs(long r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e7 in method: android.location.GpsClock.setTimeInNs(long):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.setTimeInNs(long):void\");\n }", "public M csmiUpdateTimeStart(Object start){this.put(\"csmiUpdateTimeStart\", start);return this;}", "public void setGmtModify(Date gmtModify) {\n this.gmtModify = gmtModify;\n }", "@Override\n\tpublic Long updateStartTime() {\n\t\treturn null;\n\t}", "public Date getUpdateTime()\n/* */ {\n/* 191 */ return this.updateTime;\n/* */ }", "public String getModifyStartTime() {\n return modifyStartTime;\n }", "public static Timestamp getModEnd(Connection con, long id)\n throws qdbException {\n try {\n String SQL;\n Timestamp curTime = null;\n\n SQL = \"Select mod_eff_end_datetime \"\n + \"From Module \"\n + \"Where mod_res_id = ?\";\n\n PreparedStatement stmt = con.prepareStatement(SQL);\n stmt.setLong(1, id);\n ResultSet rs = stmt.executeQuery();\n if(rs.next() == true)\n curTime = rs.getTimestamp(1);\n else\n {\n \tstmt.close();\n throw new qdbException(\"Cannot find the Module: \" + id);\n }\n\n stmt.close();\n return curTime;\n }\n catch (SQLException e) {\n throw new qdbException(e.getMessage());\n }\n }", "public void setModifyEndTime(String modifyEndTime) {\n this.modifyEndTime = modifyEndTime;\n }", "public M csseUpdateTimeEnd(Object end){this.put(\"csseUpdateTimeEnd\", end);return this;}", "public Timestamp getHC_WorkStartDate2();", "@Override\n public void changeField (String fieldToModify, String value, Double duration) {\n\n }", "public void setClModifyTime(Date clModifyTime) {\r\n\t\tthis.clModifyTime = clModifyTime;\r\n\t}", "public void setClUpdateTime(Date clUpdateTime) {\r\n this.clUpdateTime = clUpdateTime;\r\n }", "@Override\n\tpublic Long updateStartDate() {\n\t\treturn null;\n\t}", "Date getModifyDate();", "public DateAdp Modified_latest() {return modified_latest;}", "public M csmiUpdateTimeEnd(Object end){this.put(\"csmiUpdateTimeEnd\", end);return this;}", "public final void updateAccessDateTime() {\n \tm_accessDate = System.currentTimeMillis();\n }", "public LocalDateTime getModifyTime() {\n return modifyTime;\n }", "public Date getDateModified();", "public Date getModificationTime()\n {\n return modified;\n }", "@Override\n public void setField (String fieldToModify, String value, Double duration) {\n\n }", "@Override\n\tpublic void setUpdateTime(Date updateTime) {\n\t\t\n\t}", "protected void reflectUpdateDatetimeToEntity(MemberDto dto, Member entity) {\r\n entity.setUpdateDatetime(extractUpdateDatetimeFromDto(dto));\r\n }", "public void setDealingTime(Date dealingTime)\n/* */ {\n/* 171 */ this.dealingTime = dealingTime;\n/* */ }", "public Date getModifyTime() {\r\n return modifyTime;\r\n }", "ISSeedModifications createISSeedModifications();", "long getTsUpdate();", "private AbsTime(RelTime dt) throws Time.Ex_TimeNotAvailable, IllegalArgumentException\n {\n // The value of 3506716800000000L is the BAT as at midnight on\n // 1-Jan-1970, which is the base of the time that the system\n // gives us. It has to be adjusted for leap seconds though.\n itsValue = (System.currentTimeMillis() * 1000L) + DUTC.get() * 1000000L + 3506716800000000L;\n\n // Add the specified time offset.\n itsValue = itsValue + dt.itsValue;\n }", "@Override\n\tpublic void modify() {\n\t\t\n\t}", "default void onCustomEndTimeChanged(LocalTime endTime) {}", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:56:11.288 -0500\", hash_original_method = \"01A3FB6B1C784C6B589498BF3E72AF89\", hash_generated_method = \"39FC440E592AD958D3DA1840FF8C82F1\")\n \nprivate static long normalizeTime(long theTime) {\n return theTime;\n }", "@Override\n\tpublic Date getLastAccessTime() {\n\t\treturn start;\n\t}", "Date getDateUpdated();", "public Date getModifiTime() {\n return modifiTime;\n }", "public Date getModifiedDate();", "public Date getModifiedDate();", "public Date getModifiedDate();", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public void setModifyStartTime(String modifyStartTime) {\n this.modifyStartTime = modifyStartTime;\n }", "private void onModuleUpdate() {\n //!\n //! Calculate the initial time of the frame.\n //!\n mTime = GLFW.glfwGetTime();\n\n do {\n //!\n //! Render until the display is not active.\n //!\n onModuleRender(GLFW.glfwGetTime());\n } while (mDisplay.isActive());\n }", "public M csolAddTimeStart(Object start){this.put(\"csolAddTimeStart\", start);return this;}", "XMLGregorianCalendar getModified();", "default void onCustomStartTimeChanged(LocalTime startTime) {}", "public long getModificationTime();", "net.opengis.gml.x32.TimeInstantPropertyType addNewEnd();", "public void setGmtModified(Date gmtModified) {\r\n this.gmtModified = gmtModified;\r\n }", "public Timestamp getHC_WorkEndDate();", "public void setProvisionTime(java.util.Calendar param){\n localProvisionTimeTracker = true;\n \n this.localProvisionTime=param;\n \n\n }", "public java.util.Calendar getModTime() {\n return modTime;\n }", "public ObjectFactoryModuleCalendar() {\n }", "void setModifiedDate(Date p_date)\n {\n throw new UnsupportedOperationException(\n \"This method is not supported. Use addHistory()\");\n }", "public abstract Date getChanged(int lineNumber);", "public Date getClModifyTime() {\r\n\t\treturn clModifyTime;\r\n\t}", "protected abstract void trace_pre_updates();" ]
[ "0.5689851", "0.56211156", "0.5600776", "0.55754614", "0.5555447", "0.55266666", "0.5523413", "0.5489543", "0.54526544", "0.5437665", "0.5430855", "0.5393564", "0.5390792", "0.53820324", "0.53731656", "0.53026813", "0.53011036", "0.52493113", "0.52422667", "0.524012", "0.524012", "0.524012", "0.5235751", "0.52347755", "0.5215704", "0.5210683", "0.5202566", "0.5195084", "0.5177422", "0.5150894", "0.51431525", "0.51431525", "0.5131292", "0.5122695", "0.5116008", "0.5110689", "0.50773597", "0.5073668", "0.5068215", "0.50619227", "0.5061632", "0.50570375", "0.5053091", "0.5039294", "0.5028033", "0.50222784", "0.5014316", "0.5005449", "0.49963853", "0.49895903", "0.49831575", "0.4977863", "0.49590752", "0.4958576", "0.49575603", "0.4950446", "0.49459228", "0.49441436", "0.4938547", "0.49382964", "0.49378413", "0.49350244", "0.49326167", "0.49315876", "0.49207506", "0.49135736", "0.4911686", "0.4910405", "0.49072927", "0.4906479", "0.49008167", "0.49007392", "0.48958054", "0.48958054", "0.48958054", "0.48793265", "0.48793265", "0.48793265", "0.48793265", "0.48793265", "0.48793265", "0.48793265", "0.48793265", "0.48793265", "0.487474", "0.48726273", "0.48489156", "0.48481593", "0.48467728", "0.48453748", "0.48449254", "0.48407805", "0.48397622", "0.48379454", "0.48369133", "0.48345342", "0.48334792", "0.48309207", "0.48293623", "0.48291913" ]
0.59000486
0
Dennis, 20001213, impl release control it gets the mod_eff_start_datetime from Module
public static Timestamp getModStart(Connection con, long id) throws qdbException { try { String SQL; Timestamp curTime = null; SQL = "Select mod_eff_start_datetime " + "From Module " + "Where mod_res_id = ?"; PreparedStatement stmt = con.prepareStatement(SQL); stmt.setLong(1, id); ResultSet rs = stmt.executeQuery(); if(rs.next() == true) curTime = rs.getTimestamp(1); else { stmt.close(); throw new qdbException("Cannot find the Module: " + id); } stmt.close(); return curTime; } catch (SQLException e) { throw new qdbException(e.getMessage()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Timestamp getHC_WorkStartDate2();", "String getSourceUsageDateTime();", "String getSourceUsageURLModificiationTime();", "public DTM getDateTimeStartOfAdministration() { \r\n\t\tDTM retVal = this.getTypedField(3, 0);\r\n\t\treturn retVal;\r\n }", "public String getModifyStartTime() {\n return modifyStartTime;\n }", "public java.lang.String getPymt_beg_dt() {\n\t\treturn pymt_beg_dt;\n\t}", "public abstract long getStartTimestamp();", "OffsetDateTime usageStart();", "public DTM getRxa3_DateTimeStartOfAdministration() { \r\n\t\tDTM retVal = this.getTypedField(3, 0);\r\n\t\treturn retVal;\r\n }", "public void updateEffDatetime(Connection con)\n throws qdbException\n {\n try {\n String SQL;\n\n if(mod_in_eff_start_datetime != null)\n if(dbUtils.isMinTimestamp(mod_in_eff_start_datetime))\n mod_in_eff_start_datetime = dbUtils.getTime(con);\n\n SQL = \"update Module set mod_eff_start_datetime = ?, \"\n + \"mod_eff_end_datetime = ? \"\n + \"where mod_res_id = ? \";\n PreparedStatement stmt = con.prepareStatement(SQL);\n stmt.setTimestamp(1, mod_in_eff_start_datetime);\n stmt.setTimestamp(2, mod_in_eff_end_datetime);\n stmt.setLong(3,mod_res_id);\n int stmtResult=stmt.executeUpdate();\n stmt.close();\n if ( stmtResult!=1)\n {\n con.rollback();\n throw new qdbException(\"Failed to update status.\");\n }\n }\n catch(SQLException e) {\n throw new qdbException(e.getMessage());\n }\n }", "public static Timestamp getModEnd(Connection con, long id)\n throws qdbException {\n try {\n String SQL;\n Timestamp curTime = null;\n\n SQL = \"Select mod_eff_end_datetime \"\n + \"From Module \"\n + \"Where mod_res_id = ?\";\n\n PreparedStatement stmt = con.prepareStatement(SQL);\n stmt.setLong(1, id);\n ResultSet rs = stmt.executeQuery();\n if(rs.next() == true)\n curTime = rs.getTimestamp(1);\n else\n {\n \tstmt.close();\n throw new qdbException(\"Cannot find the Module: \" + id);\n }\n\n stmt.close();\n return curTime;\n }\n catch (SQLException e) {\n throw new qdbException(e.getMessage());\n }\n }", "@Override\n\tpublic Date getLastAccessTime() {\n\t\treturn start;\n\t}", "Date getModifyDate();", "long getStartTimestamp();", "public Date getResModUpdate() {\n return resModUpdate;\n }", "public Date getSrcModifiedDate() {\r\n return (Date) getAttributeInternal(SRCMODIFIEDDATE);\r\n }", "public Date getActualStart()\r\n {\r\n return (m_actualStart);\r\n }", "public Date getGmtModify() {\n return gmtModify;\n }", "abstract Long getStartTimestamp();", "public long getModificationTime()\n {\n return modDate * 1000L;\n }", "public abstract long startTimestamp();", "public Date getEffDate() {\r\n return this.effDate;\r\n }", "public String getImportTime() {\r\n return importTime;\r\n }", "public String getBeginTime() {\n/* 28 */ return this.beginTime;\n/* */ }", "public abstract Date getStartTime();", "private Date getPreviosDayStartTime() {\n\t\treturn null;\n\t}", "long getBeginDate();", "public Date getModificationDate() {\n return m_module.getConfiguration().getModificationDate();\n }", "public Timestamp getDateStart();", "String indexBlackLabBuildTime();", "public String getModifyEndTime() {\n return modifyEndTime;\n }", "public Date getModifiTime() {\n return modifiTime;\n }", "@Override\n\tpublic int getStartTime() {\n\t\treturn 0;\n\t}", "public Timestamp getHC_WorkEndDate();", "public M csseUpdateTimeStart(Object start){this.put(\"csseUpdateTimeStart\", start);return this;}", "private long determineTimestamp(DdfMarketBase m) {\n\n\t\tlong millis = millisCST;\n\n\t\tint type = getSymbolType(m.getSymbol());\n\n\t\tif ((type > 200) && (type < 300)) {\n\t\t\t// Equity, add 1 Hour\n\t\t\tmillis += 60 * 60 * 1000;\n\t\t}\n\n\t\tif (_type == MasterType.Delayed) {\n\t\t\tmillis -= m.getDelay() * 60 * 1000;\n\t\t}\n\n\t\treturn millis;\n\t}", "com.google.type.Date getAcquireDate();", "public void setHC_WorkStartDate2 (Timestamp HC_WorkStartDate2);", "public long getStartTimestamp();", "public Date getModifiedon()\n {\n return (Date)getAttributeInternal(MODIFIEDON);\n }", "public String getTgtEffDate() {\n\t\treturn tgtEffDate;\n\t}", "Date getStartedOn();", "public Long getTimestampStart();", "public java.util.Calendar getSystemModstamp() {\r\n return systemModstamp;\r\n }", "public DateAdp Modified_latest() {return modified_latest;}", "public M csmiUpdateTimeStart(Object start){this.put(\"csmiUpdateTimeStart\", start);return this;}", "public Date getClModifyTime() {\r\n\t\treturn clModifyTime;\r\n\t}", "public Date getOriginalStart() throws ServiceLocalException {\n\t\treturn (Date) this.getPropertyBag().getObjectFromPropertyDefinition(\n\t\t\t\tAppointmentSchema.OriginalStart);\n\t}", "@Override\n\tpublic java.util.Date getModifiedDate() {\n\t\treturn _scienceApp.getModifiedDate();\n\t}", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getStartTime() {\n return (java.util.Date)__getInternalInterface().getFieldValue(STARTTIME_PROP.get());\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getStartTime() {\n return (java.util.Date)__getInternalInterface().getFieldValue(STARTTIME_PROP.get());\n }", "@Test\n public void modTimeTest() {\n // TODO: test modTime\n }", "public Date getStart() {\n return start;\n }", "public java.util.Calendar getSystemModstamp() {\n return systemModstamp;\n }", "public java.util.Calendar getSystemModstamp() {\n return systemModstamp;\n }", "public Date getDATE_MODIFIED() {\r\n return DATE_MODIFIED;\r\n }", "public Date getDATE_MODIFIED() {\r\n return DATE_MODIFIED;\r\n }", "public Date getDATE_MODIFIED() {\r\n return DATE_MODIFIED;\r\n }", "@Override\n public String getResumeDate() {\n return operate_time;\n }", "public DateTime getStartDateTime() {\r\n\t\treturn start;\r\n\t}", "LateStartType getLateStart();", "Date getRequestedAt();", "public Date getModifiedDate();", "public Date getModifiedDate();", "public Date getModifiedDate();", "public Date getDateModifed(){return dateModified;}", "protected double getStartTime() {\n\t\treturn startTime;\n\t}", "public DTM getProductServiceEffectiveDate() { \r\n\t\tDTM retVal = this.getTypedField(10, 0);\r\n\t\treturn retVal;\r\n }", "public java.util.Calendar getModTime() {\n return modTime;\n }", "public Date getdModifyDate() {\r\n return dModifyDate;\r\n }", "public Date getdModifyDate() {\r\n return dModifyDate;\r\n }", "public I getChangeInfo(int startSeqNum);", "ActualStartType getActualStart();", "public String getDate(){ return this.start_date;}", "public org.apache.xmlbeans.XmlDate xgetStartExecDate()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlDate target = null;\n target = (org.apache.xmlbeans.XmlDate)get_store().find_element_user(STARTEXECDATE$8, 0);\n return target;\n }\n }", "public Date getModifiyTime() {\n return modifiyTime;\n }", "Expression getReaction_time_parm();", "public void setModTime(java.util.Calendar modTime) {\n this.modTime = modTime;\n }", "public Date getMODIFIED_DATE() {\r\n return MODIFIED_DATE;\r\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getStartTime() {\n return (java.util.Date)__getInternalInterface().getFieldValue(STARTTIME_PROP.get());\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getStartTime() {\n return (java.util.Date)__getInternalInterface().getFieldValue(STARTTIME_PROP.get());\n }", "public abstract double calculateStartTime();", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getEffectiveDate();", "int getStartTime();", "int getStartTime();", "int getStartTime();", "@Override\n\tpublic Long updateStartDate() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Long updateStartTime() {\n\t\treturn null;\n\t}", "@Override\n\tpublic float getStartTime()\n\t{\n\t\treturn _tbeg;\n\t}", "public Date getDealingTime()\n/* */ {\n/* 159 */ return this.dealingTime;\n/* */ }", "public java.util.Date getRevocationDate() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: sun.security.x509.X509CRLEntryImpl.getRevocationDate():java.util.Date, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: sun.security.x509.X509CRLEntryImpl.getRevocationDate():java.util.Date\");\n }", "public void setPymt_beg_dt(final java.lang.String pymt_beg_dt) {\n\t\tthis.pymt_beg_dt = pymt_beg_dt;\n\t}", "@Override\n public Date getBeginTime() {\n return beginTime;\n }", "public Date getGmtModified() {\r\n return gmtModified;\r\n }", "Instant getStart();", "public Date getEapLastModifiedDate() {\n\t\treturn eapLastModifiedDate;\n\t}", "public final long getModifyDateTime() {\n \treturn m_modifyDate;\n }", "public String getBeginTime(){return beginTime;}", "public java.lang.String getExpenseStartTime () {\n\t\treturn expenseStartTime;\n\t}", "public Date getDtStart() {\r\n return dtStart;\r\n }" ]
[ "0.61228746", "0.594345", "0.5858023", "0.5789079", "0.57680094", "0.57546073", "0.56252074", "0.55843896", "0.55838555", "0.55635464", "0.5558492", "0.555585", "0.5550623", "0.553778", "0.55091375", "0.55019647", "0.5501411", "0.54733825", "0.5470348", "0.5469017", "0.5428686", "0.54192245", "0.54153377", "0.5387783", "0.5374982", "0.5372409", "0.5347196", "0.5337342", "0.5321735", "0.53042614", "0.52958155", "0.5285415", "0.5282645", "0.52661496", "0.5248509", "0.5245524", "0.52418417", "0.5235163", "0.5222904", "0.52198714", "0.5219248", "0.5213364", "0.52078336", "0.5205948", "0.5189499", "0.5188083", "0.5182228", "0.51799726", "0.51745474", "0.5171552", "0.5171552", "0.51677656", "0.51669466", "0.5166555", "0.5166555", "0.5161685", "0.5161685", "0.5161685", "0.51429796", "0.5141198", "0.51410115", "0.51395357", "0.5130874", "0.5130874", "0.5130874", "0.51247984", "0.5123099", "0.51113117", "0.51072395", "0.5103514", "0.5103514", "0.5098695", "0.50965667", "0.509601", "0.5093027", "0.50906163", "0.50889516", "0.50887984", "0.50887364", "0.5084855", "0.5084855", "0.50843734", "0.50779504", "0.50775266", "0.50775266", "0.50775266", "0.5072835", "0.50727075", "0.5071292", "0.50704145", "0.5068941", "0.5068939", "0.5062424", "0.5061373", "0.5056685", "0.505607", "0.505449", "0.5054298", "0.5052975", "0.50528115" ]
0.66256887
0
Dennis, 20001213, impl release control it gets the mod_eff_end_datetime from Module
public static Timestamp getModEnd(Connection con, long id) throws qdbException { try { String SQL; Timestamp curTime = null; SQL = "Select mod_eff_end_datetime " + "From Module " + "Where mod_res_id = ?"; PreparedStatement stmt = con.prepareStatement(SQL); stmt.setLong(1, id); ResultSet rs = stmt.executeQuery(); if(rs.next() == true) curTime = rs.getTimestamp(1); else { stmt.close(); throw new qdbException("Cannot find the Module: " + id); } stmt.close(); return curTime; } catch (SQLException e) { throw new qdbException(e.getMessage()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getModifyEndTime() {\n return modifyEndTime;\n }", "public Timestamp getHC_WorkEndDate();", "public void updateEffDatetime(Connection con)\n throws qdbException\n {\n try {\n String SQL;\n\n if(mod_in_eff_start_datetime != null)\n if(dbUtils.isMinTimestamp(mod_in_eff_start_datetime))\n mod_in_eff_start_datetime = dbUtils.getTime(con);\n\n SQL = \"update Module set mod_eff_start_datetime = ?, \"\n + \"mod_eff_end_datetime = ? \"\n + \"where mod_res_id = ? \";\n PreparedStatement stmt = con.prepareStatement(SQL);\n stmt.setTimestamp(1, mod_in_eff_start_datetime);\n stmt.setTimestamp(2, mod_in_eff_end_datetime);\n stmt.setLong(3,mod_res_id);\n int stmtResult=stmt.executeUpdate();\n stmt.close();\n if ( stmtResult!=1)\n {\n con.rollback();\n throw new qdbException(\"Failed to update status.\");\n }\n }\n catch(SQLException e) {\n throw new qdbException(e.getMessage());\n }\n }", "Date getModifyDate();", "public Date getGmtModify() {\n return gmtModify;\n }", "public Date getResModUpdate() {\n return resModUpdate;\n }", "public Date getEffDate() {\r\n return this.effDate;\r\n }", "public long getModificationTime()\n {\n return modDate * 1000L;\n }", "public abstract long getEndTimestamp();", "public DateAdp Modified_latest() {return modified_latest;}", "public Date getModifiTime() {\n return modifiTime;\n }", "public Date getModificationDate() {\n return m_module.getConfiguration().getModificationDate();\n }", "public final long getModifyDateTime() {\n \treturn m_modifyDate;\n }", "public void setModifyEndTime(String modifyEndTime) {\n this.modifyEndTime = modifyEndTime;\n }", "public static Timestamp getModStart(Connection con, long id)\n throws qdbException {\n try {\n String SQL;\n Timestamp curTime = null;\n\n SQL = \"Select mod_eff_start_datetime \"\n + \"From Module \"\n + \"Where mod_res_id = ?\";\n\n PreparedStatement stmt = con.prepareStatement(SQL);\n stmt.setLong(1, id);\n ResultSet rs = stmt.executeQuery();\n if(rs.next() == true)\n curTime = rs.getTimestamp(1);\n else\n {\n \tstmt.close();\n throw new qdbException(\"Cannot find the Module: \" + id);\n }\n\n stmt.close();\n return curTime;\n }\n catch (SQLException e) {\n throw new qdbException(e.getMessage());\n }\n }", "public DTM getDateTimeEndOfAdministration() { \r\n\t\tDTM retVal = this.getTypedField(4, 0);\r\n\t\treturn retVal;\r\n }", "public Timestamp getHC_WorkStartDate2();", "public String getEndTime() {\n/* 34 */ return this.endTime;\n/* */ }", "public Long getConditionLastEndTimeFromModule(String module, String condition) {\n Long result = null;\n if (sources.containsKey(module)) {\n ModuleConditions moduleConditions = sources.get(module);\n result = moduleConditions.getConditionLastEndTime(condition);\n }\n return result;\n }", "public Date getDateModifed(){return dateModified;}", "public Date getEapLastModifiedDate() {\n\t\treturn eapLastModifiedDate;\n\t}", "public Date getdModifyDate() {\r\n return dModifyDate;\r\n }", "public Date getdModifyDate() {\r\n return dModifyDate;\r\n }", "public void setHC_WorkEndDate (Timestamp HC_WorkEndDate);", "public abstract Date getEndTime();", "public long getLastModified()\r\n/* 283: */ {\r\n/* 284:424 */ return getFirstDate(\"Last-Modified\");\r\n/* 285: */ }", "public DTM getRxa4_DateTimeEndOfAdministration() { \r\n\t\tDTM retVal = this.getTypedField(4, 0);\r\n\t\treturn retVal;\r\n }", "public final void updateModifyDateTime( long modTime) {\n \tm_modifyDate = modTime;\n }", "public Date getModifiyTime() {\n return modifiyTime;\n }", "public Date getModifyTime() {\r\n return modifyTime;\r\n }", "public String getModifyStartTime() {\n return modifyStartTime;\n }", "public java.util.Calendar getModTime() {\n return modTime;\n }", "public Date getDATE_MODIFIED() {\r\n return DATE_MODIFIED;\r\n }", "public Date getDATE_MODIFIED() {\r\n return DATE_MODIFIED;\r\n }", "public Date getDATE_MODIFIED() {\r\n return DATE_MODIFIED;\r\n }", "OffsetDateTime usageEnd();", "String getSourceUsageURLModificiationTime();", "public Date getModifyTime() {\n return this.modifyTime;\n }", "public abstract Date getLastModified() throws AccessException;", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifytime() {\n return modifytime;\n }", "public Date getClModifyTime() {\r\n\t\treturn clModifyTime;\r\n\t}", "com.google.protobuf.Timestamp getDepositEndTime();", "public String getTgtEffDate() {\n\t\treturn tgtEffDate;\n\t}", "String getCoverageExpirationDate(Record inputRecord);", "Date getWorkfileLastChangedDate();", "public Date getModifiedDate();", "public Date getModifiedDate();", "public Date getModifiedDate();", "public Date getDealingTime()\n/* */ {\n/* 159 */ return this.dealingTime;\n/* */ }", "public Date getModifyDate() {\n return modifyDate;\n }", "public Date getModifyDate() {\n return modifyDate;\n }", "public Date getModifyDate() {\n return modifyDate;\n }", "@Test\n public void modTimeTest() {\n // TODO: test modTime\n }", "public Date getDateModified();", "public void setModTime(java.util.Calendar modTime) {\n this.modTime = modTime;\n }", "public Date getModifiedon()\n {\n return (Date)getAttributeInternal(MODIFIEDON);\n }", "public String getPrevLastmod() {\n return prevLastmod;\n }", "public Date getMODIFIED_DATE() {\r\n return MODIFIED_DATE;\r\n }", "public Date getExpEndDate() {\n\t\treturn this.expEndDate;\n\t}", "public Date getLastModifyDate() {\n return lastModifyDate;\n }", "@Override\r\n\tpublic Date getEventEndTime() {\n\t\treturn null;\r\n\t}", "public void setModifiTime(Date modifiTime) {\n this.modifiTime = modifiTime;\n }", "@Override\r\n\tpublic long getExitDateTime() {\n\t\treturn 0;\r\n\t}", "public final void updateModifyDateTime() {\n \tm_modifyDate = System.currentTimeMillis();\n \tm_accessDate = m_modifyDate;\n }", "public String getModifytime() {\n return modifytime;\n }", "public java.util.Date getModifyTime() {\r\n return modifyTime;\r\n }", "@Override\n\tpublic Date getLastAccessTime() {\n\t\treturn start;\n\t}", "@Override\n\tpublic java.util.Date getModifiedDate() {\n\t\treturn _scienceApp.getModifiedDate();\n\t}", "private AbsTime(RelTime dt) throws Time.Ex_TimeNotAvailable, IllegalArgumentException\n {\n // The value of 3506716800000000L is the BAT as at midnight on\n // 1-Jan-1970, which is the base of the time that the system\n // gives us. It has to be adjusted for leap seconds though.\n itsValue = (System.currentTimeMillis() * 1000L) + DUTC.get() * 1000000L + 3506716800000000L;\n\n // Add the specified time offset.\n itsValue = itsValue + dt.itsValue;\n }", "public Calendar getLastAppendedEndDate(ReadOnlyTask task) {\n Calendar cal = new GregorianCalendar();\n cal.setTime(task.getLastAppendedComponent().getEndDate().getDate());\n return cal;\n }", "public Date getGmtModified() {\r\n return gmtModified;\r\n }", "public Date getSrcModifiedDate() {\r\n return (Date) getAttributeInternal(SRCMODIFIEDDATE);\r\n }", "@Override\n public String getEndInfo() {\n return null;\n //return dateFormatter.stringFromDate(checkOutTime!)\n }", "public java.lang.String getPymt_beg_dt() {\n\t\treturn pymt_beg_dt;\n\t}", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getModifyTime() {\n\t\treturn modifyTime;\n\t}", "public Date getModifyTime() {\n\t\treturn modifyTime;\n\t}", "public Date getModifyTime() {\n\t\treturn modifyTime;\n\t}", "@Override\n\tpublic java.util.Date getModifiedDate() {\n\t\treturn _esfTournament.getModifiedDate();\n\t}", "public Date getModificationTime()\n {\n return modified;\n }", "public Date getUpdateTime()\n/* */ {\n/* 191 */ return this.updateTime;\n/* */ }" ]
[ "0.628713", "0.60859", "0.58912146", "0.58497685", "0.5845183", "0.58448446", "0.57636184", "0.5745768", "0.56690735", "0.56641454", "0.56449795", "0.56372005", "0.56161344", "0.56021035", "0.5598463", "0.5593262", "0.55578494", "0.55446374", "0.55374134", "0.5526914", "0.5522039", "0.55140287", "0.55140287", "0.5511908", "0.5511078", "0.55015403", "0.55003273", "0.5480972", "0.5476214", "0.5467826", "0.54660916", "0.5459743", "0.5431449", "0.5431449", "0.5431449", "0.54164106", "0.5413993", "0.54132676", "0.5411076", "0.54106134", "0.54106134", "0.54106134", "0.54106134", "0.54106134", "0.54106134", "0.54106134", "0.54106134", "0.54106134", "0.54100496", "0.5408686", "0.54038525", "0.5398105", "0.53958493", "0.53917176", "0.5391577", "0.5391577", "0.5391577", "0.539138", "0.5381982", "0.5381982", "0.5381982", "0.53803045", "0.53800905", "0.53799635", "0.5349818", "0.53438437", "0.5339575", "0.5332785", "0.5327562", "0.5324702", "0.5317308", "0.5314253", "0.5309753", "0.53094614", "0.5298291", "0.52942836", "0.5291609", "0.5276535", "0.52759707", "0.52685124", "0.5265867", "0.52656037", "0.5249744", "0.52479005", "0.52479005", "0.52479005", "0.52479005", "0.52479005", "0.52479005", "0.52479005", "0.52479005", "0.52479005", "0.52479005", "0.52479005", "0.52472275", "0.52472275", "0.52472275", "0.52442896", "0.5243115", "0.52386534" ]
0.6839229
0
Update Assessment Related Filed
public void updAsmRelated(Connection con, loginProfile prof) throws SQLException, cwException { super.updAsmReleated(con, prof); String SQL = " UPDATE Module " + " SET mod_eff_start_datetime = ?, mod_eff_end_datetime = ?, " + " mod_max_usr_attempt = ?, mod_pass_score = ? " + " WHERE mod_res_id = ? "; PreparedStatement stmt = con.prepareStatement(SQL); stmt.setTimestamp(1, mod_eff_start_datetime); stmt.setTimestamp(2, mod_eff_end_datetime); stmt.setLong(3, mod_max_usr_attempt); stmt.setFloat(4, mod_pass_score); stmt.setLong(5, mod_res_id); int stmtResult=stmt.executeUpdate(); stmt.close(); if ( stmtResult!=1) throw new cwException(" Failed to Update Module, id = " + mod_res_id); return; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void updateAssessment() {\n Converters c = new Converters();\n\n //get UI fields\n int courseId = thisCourseId;\n String title = editTextAssessmentTitle.getText().toString();\n LocalDate dueDate = c.stringToLocalDate(textViewAssessmentDueDate.getText().toString());\n String status = editTextAssessmentStatus.getText().toString();\n String note = editTextAssessmentNote.getText().toString();\n String type = editTextAssessmentType.getText().toString();\n\n if (title.trim().isEmpty() || dueDate == null || status.trim().isEmpty() || type.trim().isEmpty()) {\n Toast.makeText(this, \"Please complete all fields\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n //instantiate Assessment object\n Assessment assessment = new Assessment(courseId, title, dueDate, status, note, type);\n //since we're updating, add the assessmentId to the assessment object\n assessment.setAssessmentId(thisAssessmentId);\n\n\n //add new assessment\n addEditAssessmentViewModel.update(assessment);\n finish();\n }", "private void addOrUpdateAssessment() {\n if (thisAssessmentId < 0) {\n addNewAssessment();\n } else {\n updateAssessment();\n }\n }", "@Override\n public void update(AssessmentDTO assessmentDTO) {\n Optional<Application> applicationOptional = applicationRepository.findById(assessmentDTO.getApplicationId());\n if (applicationOptional.isPresent()) {\n Application application = applicationOptional.get();\n String pass = assessmentDTO.getPass();\n if (pass.equals(\"pass\")) {\n application.setStep(\"+\" + assessmentDTO.getStep());\n } else if (pass.equals(\"fail\")) {\n application.setStep(\"-\" + assessmentDTO.getStep());\n }\n applicationRepository.save(application);\n } else {\n throw new NotFoundException(\"Application not found\");\n }\n }", "public void update(Expence expence)\r\n/* 169: */ {\r\n/* 170:174 */ this.expenceDao.update(expence);\r\n/* 171: */ }", "@Override\n\tpublic void updateAgence(Agence a) {\n\t\t\n\t}", "int updateByPrimaryKey(PcQualificationInfo record);", "int updateByPrimaryKey(OpeningRequirement record);", "CounselorBiographyTemp update(CounselorBiographyTemp entity);", "@Override\n\tpublic Result update(CurriculumVitae entity) {\n\t\treturn null;\n\t}", "AdPartner updateAdPartner(AdPartner adPartner);", "Accessprofile update(Integer id, Accessprofile accessprofile);", "public void updateByEntity(Paciente paciente) {\n\t\n}", "void updateCourseDetails(String courseId, String courseName, String courseFaculty);", "int updateByPrimaryKey(TrainingCourse record);", "public void update(long id, String name, String discipline, String grade) {\n SQLiteDatabase db = _openHelper.getWritableDatabase();\n if (db == null) {\n return;\n }\n ContentValues row = new ContentValues();\n row.put(\"name\", name);\n row.put(\"discipline\", discipline);\n row.put(\"grade\", grade);\n db.update(\"Exams\", row, \"_id = ?\", new String[] { String.valueOf(id) } );\n db.close();\n }", "int updateByPrimaryKey(ExamRoom record);", "@Override\r\n\tpublic void update(AssesmentQuestion assesmentQuestion) {\r\n\r\n\t\tSession session = this.sessionFactory.getCurrentSession();\r\n\t\tTransaction trans = session.beginTransaction();\r\n\r\n\t\ttry {\r\n\t\t\tsession.update(assesmentQuestion);\r\n\t\t\ttrans.commit();\r\n\t\t} catch (HibernateException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "public void updateEmployeeDetails(EmployeeDetails employeeDetails);", "void update(EmployeeDetail detail) throws DBException;", "int updateByPrimaryKeySelective(PcQualificationInfo record);", "E update(E entiry);", "public void updateInsurance(Insurance insurance) throws DataAccessException;", "public void upd2(Connection con, loginProfile prof) throws qdbException, qdbErrMessage, SQLException {\n res_id = mod_res_id;\n res_type = RES_TYPE_MOD;\n res_upd_user = prof.usr_id;\n\n super.checkTimeStamp(con);\n\n if (res_status.equalsIgnoreCase(RES_STATUS_ON) || res_status.equalsIgnoreCase(RES_STATUS_DATE)) {\n // Check if the question is ordered in 1,2,3....\n if (!checkQorder(con)) {\n //Questions are not in the correct order.\n throw new qdbErrMessage(\"MOD001\");\n }\n }\n\n //if the module is standard test or dynamic test\n //make sure that you can only turn the module online\n //if the test has question/criteria defined in it\n if (res_status.equalsIgnoreCase(RES_STATUS_ON)) {\n if (mod_type.equalsIgnoreCase(MOD_TYPE_TST)) {\n if (dbResourceContent.getResourceContentCount(con, mod_res_id) == 0) {\n res_status = RES_STATUS_OFF;\n }\n } else if (mod_type.equalsIgnoreCase(MOD_TYPE_DXT)) {\n if (dbModuleSpec.getModuleSpecCount(con, mod_res_id) == 0) {\n res_status = RES_STATUS_OFF;\n }\n }\n }\n\n super.updateStatus(con);\n\n // permission records have to be cleared no matter mod_instructor is specified or not\n dbResourcePermission.delUserRoleIsNull(con, mod_res_id);\n if (mod_instructor_ent_id_lst != null) {\n for (int i = 0; i < mod_instructor_ent_id_lst.length; i++) {\n dbResourcePermission.save(con, mod_res_id, mod_instructor_ent_id_lst[i], null, true, true, false);\n }\n }\n\n //Dennis, 2000-12-13, impl release control\n //If the new status == DATE, update the eff_start/end_datetime in Module\n //if(res_status.equalsIgnoreCase(RES_STATUS_DATE))\n //2001-01-05, all status will have eff datetime\n updateEffDatetime(con);\n }", "@Override\n\tpublic void updateExam(ExamBean exam) {\n\t\t\n\t}", "@Test\r\n public void testUpdateWithSameId() throws PAException {\r\n thrown.expect(PAException.class);\r\n thrown.expectMessage(\"Redundancy error: this trial already includes the selected disease. \");\r\n Ii spIi = IiConverter.convertToStudyProtocolIi(TestSchema.studyProtocolIds.get(0));\r\n List<StudyDiseaseDTO> dtoList = bean.getByStudyProtocol(spIi);\r\n assertEquals(\"Wrong number of StudyDisease found\", 2, dtoList.size());\r\n StudyDiseaseDTO studyDiseaseDTO0 = dtoList.get(0);\r\n StudyDiseaseDTO studyDiseaseDTO1 = dtoList.get(1);\r\n studyDiseaseDTO1.setDiseaseIdentifier(studyDiseaseDTO0.getDiseaseIdentifier());\r\n bean.update(studyDiseaseDTO1);\r\n }", "private void update(SfJdDocAudit inData, RequestMeta requestMeta) {\n jdDocAuditMapper.updateByPrimaryKey(inData);\r\n \r\n jdDocAuditDetailMapper.deleteByPrimaryKey(inData.getJdDocAuditId());\r\n if(inData.getDetailLst()!=null){\r\n for(int i=0;i<inData.getDetailLst().size();i++){\r\n SfJdDocAuditDetail m=(SfJdDocAuditDetail) inData.getDetailLst().get(i);\r\n m.setJdDocAuditId(inData.getJdDocAuditId());\r\n jdDocAuditDetailMapper.insert(m);\r\n }\r\n }\r\n materialsTransferDetailMapper.deleteByPrimaryKey(inData.getJdDocAuditId());\r\n if(inData.getMaterialLst()!=null){\r\n for(int i=0;i<inData.getMaterialLst().size();i++){\r\n SfMaterialsTransferDetail md=(SfMaterialsTransferDetail) inData.getMaterialLst().get(i);\r\n md.setTransferId(inData.getJdDocAuditId());\r\n materialsTransferDetailMapper.insert(md);\r\n }\r\n }\r\n }", "int updateByPrimaryKey(IymDefAssignment record);", "public void updateAssignment(Assignment assignment) throws Exception {\n\n\t\ttry{ \n\t\t\tContentValues dataToInsert = new ContentValues(); \n\t\t\tdataToInsert.put(MySQLiteHelper.ASSIGNMENT_TITLE,assignment.getTitle());\n\t\t\tdataToInsert.put(MySQLiteHelper.ASSIGNMENT_SUBJECTS, assignment.getSubjects_id());\n\t\t\tif(assignment.getDescription()==null||assignment.getDescription().equals(\"\")){\n\t\t\t\tdataToInsert.putNull(MySQLiteHelper.ASSIGNMENT_DESCRIPTION);\n\t\t\t}else{\n\t\t\t\tdataToInsert.put(MySQLiteHelper.ASSIGNMENT_DESCRIPTION, assignment.getDescription());\n\t\t\t}\n\t\t\tdataToInsert.put(MySQLiteHelper.ASSIGNMENT_DUEDATE, assignment.getDueDate());\n\t\t\tdataToInsert.put(MySQLiteHelper.ASSIGNMENT_DUETIME, assignment.getDueTime());\n\t\t\tif(assignment.getAlarm()==null||assignment.getAlarm().equals(\"\")){\n\t\t\t\tdataToInsert.putNull(MySQLiteHelper.ASSIGNMENT_ALARM);\n\t\t\t}else{\n\t\t\t\tdataToInsert.put(MySQLiteHelper.ASSIGNMENT_ALARM, assignment.getAlarm());\n\t\t\t}\n\t\t\tString where = MySQLiteHelper.ASSIGNMENT_ID + \"=\" + assignment.getId();\n\n\t\t\tdatabase.update(MySQLiteHelper.TABLE_ASSIGNMENT, dataToInsert, where, null);\n\t\t}\n\t\tcatch (Exception e){\n\t\t\tthrow e;\n\t\t}\n\t}", "public void update(Adjustment adjustment) {\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\tsession.update(adjustment);\r\n\t\tsession.flush();\r\n\t}", "public void update(RelacionConceptoEmbalajePk pk, RelacionConceptoEmbalaje dto) throws RelacionConceptoEmbalajeDaoException;", "int updateByPrimaryKeySelective(ResumePractice record);", "@Test\r\n public void testUpdateValid() throws PAException {\r\n Ii studyDiseaseIi = IiConverter.convertToStudyDiseaseIi(TestSchema.studyDiseaseIds.get(0));\r\n StudyDiseaseDTO studyDiseaseDTO = bean.get(studyDiseaseIi);\r\n Ii diseaseIi = IiConverter.convertToIi(TestSchema.pdqDiseaseIds.get(3));\r\n studyDiseaseDTO.setDiseaseIdentifier(diseaseIi);\r\n StudyDiseaseDTO result = bean.update(studyDiseaseDTO);\r\n assertStudyDiseaseDTO(studyDiseaseDTO, result);\r\n StudyDiseaseDTO saved = bean.get(studyDiseaseIi);\r\n assertNotNull(\"No result returned\", saved);\r\n assertStudyDiseaseDTO(studyDiseaseDTO, saved);\r\n }", "public void updateAgenda(Agenda agenda){\n Session sessao = HibernateUtil.getSessionFactory().openSession();\n Transaction transaction = sessao.beginTransaction();\n sessao.update(agenda);\n transaction.commit();\n sessao.close();\n }", "public int updateById(EvaluetingListDO evaluetingList) throws DataAccessException;", "public int updateAssignment(Assignment asg) {\n\t\tquery = \"UPDATE assignments SET title = ?, release_date = ?, deadline = ?, skill_level = ?, department_id = ?, teacher_id = ? WHERE assignment_id = ?\";\n\n\t\ttry {\n\t\t\tps = DbConnection.DbConnect().prepareStatement(query);\n\t\t\tps.setString(1, asg.getAsgTitle());\n\t\t\tps.setObject(2, asg.getAsgRels().toDate());\n\t\t\tps.setObject(3, asg.getAsgDead().toDate());\n\t\t\tps.setObject(4, asg.getAsgLvl());\n\t\t\tps.setInt(5, asg.getAsgDept());\n\t\t\tps.setInt(6, asg.getAsgTech());\n\t\t\tps.setInt(7, asg.getAsgId());\n\t\t\tresult = ps.executeUpdate();\n\n\t\t} catch (SQLException ex) {\n\t\t\tprintSQLException(ex);\n\t\t\tresult = 0;\n\n\t\t} finally {\n\t\t\tif (ps != null)\n\t\t\t\ttry {\n\t\t\t\t\tps.close();\n\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "@Test\n public void update() {\n try{\n repo.save(s);\n repot.save(t);\n repon.save(n);\n Tema t2 = new Tema(1, 0, 6, \"GUI\");\n Student s2 = new Student(1,221, \"Pop Ion\",\"[email protected]\",\"prof\");\n Nota n2 = new Nota(1, 1, \"prof\", 10, \"Irelevant\");\n repo.save(s2);\n repot.save(t2);\n repon.save(n2);\n repo.update(s2);\n repot.update(t2);\n repon.update(n2);\n assert repo.findOne(1).getGrupa()==221;\n assert repot.findOne(1).getDeadline()==8;\n assert repon.findOne(\"11\").getFeedback()==\"Irelevant\";\n\n }\n catch (ValidationException e){\n }\n }", "@Override\r\n public void update(Appointment a) throws SQLException {\r\n int id = a.getAppointmentId();\r\n String statement =\r\n \"UPDATE appointments SET \" +\r\n \"Title='\" + a.getTitle() +\r\n \"', Description ='\" + a.getDescription() +\r\n \"', Location ='\" + a.getLocation() +\r\n \"', Type='\" + a.getType() +\r\n \"', Start='\" + DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\").format(a.getStartTime().withZoneSameInstant(ZoneId.of(\"Etc/UTC\"))) +\r\n \"', End= '\" + DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\").format(a.getEndTime().withZoneSameInstant(ZoneId.of(\"Etc/UTC\"))) +\r\n \"', Customer_ID =\" + a.getCustomer().getCustomerId() +\r\n \", User_ID=\" + a.getUser().getId() +\r\n \", Contact_ID=\" + a.getContact().getId() +\r\n \" WHERE Appointment_ID =\" + id + \";\";\r\n System.out.println(statement);\r\n conn.prepareStatement(statement).executeUpdate();\r\n }", "@Query(\"UPDATE wellbeing_questions SET question = :question, positive_message = :positiveMessage , negative_message = :negativeMessage WHERE wellbeing_questions.wellbeing_question_id = :id\")\n void updateQuestion(long id, String question, String positiveMessage, String negativeMessage);", "public CbmCItemFininceItem update(CbmCItemFininceItem entity);", "int updateByPrimaryKey(ResumePractice record);", "private void update() {\n ambianceModel.ambiance.uniq_id = ambianceModel._id.$oid;\n\n RestAdapter restAdapter = new RestAdapter.Builder().setLogLevel(RestAdapter.LogLevel.FULL).setEndpoint(getResources().getString(R.string.api)).build();\n final GsonBuilder builder = new GsonBuilder();\n builder.excludeFieldsWithoutExposeAnnotation();\n builder.disableHtmlEscaping();\n final Gson gson = builder.create();\n Request r = new Request(Singleton.token, ambianceModel._id.$oid, ambianceModel);\n String json = gson.toJson(r);\n Log.v(\"Ambiance activity\", json);\n\n final Lumhueapi lumhueapi = restAdapter.create(Lumhueapi.class);\n lumhueapi.updateAmbiance(r, new Callback<AmbianceApplyResponse>() {\n @Override\n public void success(AmbianceApplyResponse ambianceApplyResponse, Response response) {\n Log.v(\"Ambiance activity\", \"It worked\");\n }\n\n @Override\n public void failure(RetrofitError error) {\n String tv = error.getMessage();\n Log.v(\"Ambiance activity\", tv + \"\");\n }\n });\n }", "int updateByPrimaryKey(NeeqCompanyAccountingFirmOnline record);", "public void update(Employee e) {\n\t\t\r\n\t}", "int updateByPrimaryKeySelective(TrainingCourse record);", "@Transactional \n\tpublic void updatePharmacy(Pharmacy pharmacy) {\n\t\t\n\t\t\n\t\tpharmacyRepository1.update(pharmacy);\n\t}", "@Override\r\n\tpublic EvaluationDTO update(Integer id, EvaluationDTO e) {\n\t\treturn null;\r\n\t}", "int updateByPrimaryKey(ReEducation record);", "@GetMapping(\"/updateRequirementbyEmpId/{reqId}\")\n\t public Requirement updateFulfilled(@PathVariable int reqId)\n\t {\n\t \tRequirement res = employeeService.updateIsFulfilled(reqId);\n\t \tif(res.getReqId()==0)\n\t \t{\n\t \t\tthrow new InvalidRequirementException(\"No fulliled requirements available for reqId \"+reqId);\n\t \t}\n\t \telse\n\t \t{\n\t \t\treturn res;\n\t \t}\t\n\t }", "void updateSkill(Skill skill);", "@Override\n\tpublic void updateQA(QA qa) {\n\t\tqaDao.updateQAPost(qa);\n\t}", "private void updateEISAndEAS(){\n eas.registerPayment(paymentDTO);\n eis.updateInventory(saleDTO);\n }", "public int updateAttention(long attention, long id) throws DataAccessException;", "void update(Student entity);", "@Override\r\n public void update(Answer entity) {\n\r\n }", "@Test\n\tpublic void updateTestPaperQuestion() throws Exception {\n\t}", "public void update(EvaluationsDegreePk pk, EvaluationsDegree dto) throws EvaluationsDegreeDaoException;", "@Override\r\n\tpublic void update(Interest model, InterestEntity entity) {\n\r\n\t}", "Patient update(Patient patient);", "public void update(Employee employee){\n employeeRepository.save(employee);\n }", "int updateByPrimaryKey(ExamineApproveResult record);", "@Transactional(\"txManager\")\r\n\t@Override\r\n\tpublic void updateQnA(QnAVO qnaVO) {\n\t\tQnARepository.updateQnA(qnaVO);\r\n\t}", "@Override\n\tpublic void update(Aula a) {\n\t\tif (this.findById(a.getId())!=null) {\n\t\t\taulaRepository.save(a);\n\t\t}\n\t\telse {\n\t\t\t//TODO GESTIONAR ERROR NO EXISTE NO SE PUEDE ACTUALIZAR.. CREARIA UNO NUEVO\n\t\t}\n\t\t\n\t}", "public void updateAppoint(Appointment appointment) {\n\t\tappointmentDao.updateAppoin(appointment);\n\t}", "@Override\n public void update(Enrollment enrollment) {\n String sql = \"UPDATE Enrollment SET joinDate = ?, endDate = ? WHERE enrollmentId = ?\";\n template.update(sql, enrollment.getJoinDate(), enrollment.getEndDate(), enrollment.getEnrollmentId());\n }", "protected void edit(HttpServletRequest request, HttpServletResponse response, ContentFeedRelForm _ContentFeedRelForm, ContentFeedRel _ContentFeedRel) throws Exception{\n\r\n m_logger.debug(\"Before update \" + ContentFeedRelDS.objectToString(_ContentFeedRel));\r\n\r\n _ContentFeedRel.setContentFeedId(WebParamUtil.getLongValue(_ContentFeedRelForm.getContentFeedId()));\r\n _ContentFeedRel.setContentId(WebParamUtil.getLongValue(_ContentFeedRelForm.getContentId()));\r\n _ContentFeedRel.setTimeCreated(WebParamUtil.getDateValue(_ContentFeedRelForm.getTimeCreated()));\r\n\r\n m_actionExtent.beforeUpdate(request, response, _ContentFeedRel);\r\n m_ds.update(_ContentFeedRel);\r\n m_actionExtent.afterUpdate(request, response, _ContentFeedRel);\r\n m_logger.debug(\"After update \" + ContentFeedRelDS.objectToString(_ContentFeedRel));\r\n }", "int updateByPrimaryKeySelective(NeeqCompanyAccountingFirmOnline record);", "public void updateTraining(Training t) {\n\n //the new User's id\n Integer id = null;\n\n Session session = ConnectionFactory.getInstance().getSession();\n\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n\n //build relationship\n\n\n session.saveOrUpdate(t);\n tx.commit();\n\n id = t.getTrainingId();\n } catch (HibernateException e) {\n try {\n tx.rollback(); //error\n } catch (HibernateException he) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n }", "@Override\n\tpublic void update(EmpType entity) {\n\t\t\n\t}", "public PtJJdwcy update(PtJJdwcy entity);", "int updateByPrimaryKeySelective(ReEducation record);", "void update(Employee nurse);", "int updateByPrimaryKey(AutoAssessDetail record);", "@Override\r\n\tpublic void updateEncore(Encore encore) {\n\t\tint i = sqlSession.update(ns3+\".updateEncore\", encore);\r\n\t\tif(i>0) System.out.println(\"update encore table completed\");\r\n\t}", "@Secured({\"ROLE_ADMIN\",\"ROLE_ESTETI\"})\n @PutMapping(value =\"/{id}\")\n public ResponseEntity<Map<String, Object>> update(@RequestBody Profesional profesional, @PathVariable Long id) {\n \tProfesional ProfesionalActual=profesionalService.findOne(id);\n if(ProfesionalActual==null) {\n return new ResponseEntity<Map<String,Object>>(HttpStatus.INTERNAL_SERVER_ERROR);\n }\n try {\n \tProfesionalActual.setNombre(profesional.getNombre());\n \tProfesionalActual.setApellido(profesional.getApellido());\n \tProfesionalActual.setDescripcion(profesional.getDescripcion());\n \tProfesionalActual.setTelefono(profesional.getTelefono());\n \tProfesionalActual.setRut(profesional.getRut());\n \tprofesionalService.save(ProfesionalActual);\n }catch (Exception e) {\n\t\t\treturn new ResponseEntity<>( HttpStatus.INTERNAL_SERVER_ERROR);\n\t\t}\n return new ResponseEntity<>(HttpStatus.OK);\n\t}", "@Test(description = \"update interface with one relationship for existing interface with another interface\")\n public void updateOneRelationship4ExistingOneRelationships()\n throws Exception\n {\n final DataCollection data = new DataCollection(this);\n final RelationshipData rel1 = data.getRelationship(\"TestRel1\");\n final RelationshipData rel2 = data.getRelationship(\"TestRel2\");\n final InterfaceData inter = data.getInterface(\"TestInterface\").addRelationship(rel1);\n data.create();\n\n inter.removeRelationships()\n .addRelationship(rel2);\n this.update(inter);\n\n Assert.assertEquals(this.mql(\"print interface '\" + inter.getName() + \"' select relationship dump\"),\n rel2.getName(),\n \"check that only second relationship is defined\");\n }", "int updateByPrimaryKeySelective(PracticeClass record);", "public void update(FaqPk pk, Faq dto) throws FaqDaoException;", "public void update(Subject e) {\n\t\tsubjectdao.update(e);\n\t}", "public boolean updateAppointment(Appointment app);", "public void updateAssignmentForTurnOffAlarm(long assignmentId) throws Exception {\n\n\t\ttry{ \n\t\t\tContentValues dataToInsert = new ContentValues(); \n\n\t\t\tdataToInsert.putNull(MySQLiteHelper.ASSIGNMENT_ALARM);\n\n\t\t\tString where = MySQLiteHelper.ASSIGNMENT_ID + \"=\" + assignmentId;\n\n\t\t\tdatabase.update(MySQLiteHelper.TABLE_ASSIGNMENT, dataToInsert, where, null);\n\t\t}\n\t\tcatch (Exception e){\n\t\t\tthrow e;\n\t\t}\n\t}", "@RequestMapping(value = \"/enquirys\",\n method = RequestMethod.PUT,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Void> update(@Valid @RequestBody Enquiry enquiry) throws URISyntaxException {\n log.debug(\"REST request to update Enquiry : {}\", enquiry);\n if (enquiry.getId() == null) {\n return create(enquiry);\n }\n enquiryRepository.save(enquiry);\n return ResponseEntity.ok().build();\n }", "private void save(){\n\n this.title = mAssessmentTitle.getText().toString();\n String assessmentDueDate = dueDate != null ? dueDate.toString():\"\";\n Intent intent = new Intent();\n if (update){\n assessment.setTitle(this.title);\n assessment.setDueDate(assessmentDueDate);\n assessment.setType(mAssessmentType);\n intent.putExtra(MOD_ASSESSMENT,assessment);\n } else {\n intent.putExtra(NEW_ASSESSMENT, new Assessment(course.getId(),this.title,mAssessmentType,assessmentDueDate));\n }\n setResult(RESULT_OK,intent);\n finish();\n }", "@GetMapping(value = \"/update/{id}\")\n public String updateForm(@PathVariable(\"id\") Long id, Model model) {\n log.info(\"UPDATE itinerary by ID : {}\", id);\n \n Itinerary itinerary = itineraryService.findById(id);\n \n Set<Sector> sectors = sectorService.findAll();\n \n if (Objects.isNull(itinerary)) {\n log.info(\"Any itinerary found with ID : {}\", id);\n return \"redirect:/itineraries/\";\n }\n \n model.addAttribute(\"grades\", Grade.values());\n model.addAttribute(\"itinerary\", itinerary);\n model.addAttribute(\"sectors\", sectors);\n \n return UPDATE;\n }", "@Test(description = \"update interface with one relationship for existing interface with all relationships\")\n public void updateOneRelationship4ExistingAllRelationships()\n throws Exception\n {\n final DataCollection data = new DataCollection(this);\n final RelationshipData rel = data.getRelationship(\"TestRel\");\n final InterfaceData inter = data.getInterface(\"TestInterface\").addAllRelationships();\n data.create();\n\n inter.removeRelationships()\n .addRelationship(rel);\n this.update(inter);\n\n Assert.assertEquals(this.mql(\"print interface '\" + inter.getName() + \"' select relationship dump\"),\n rel.getName(),\n \"check that only one relationship is defined\");\n }", "int updateByPrimaryKey(PracticeClass record);", "@Override\n\tpublic void update(Object entidade) {\n\t\t\n\t}", "@Override\n\tpublic void update(Factura t) {\n\t\tfacturaRepository.save(t);\n\t\t\n\t}", "@Override\r\n\tpublic void updateWorklow(Appointment a) throws DBAccessException {\n\t\tsteps = cr.getWorkflowSteps();\r\n\t\t\r\n\t\t// TODO Anhand des Termins die Objekte aus steps aktualisieren \r\n\t\t\r\n\t\t// da es bei Updates der App passieren kann, dass der Ablaufplan sich ändert, müssen vorherige Ablaufpläne gelöscht werden\r\n\t\tdb.deleteWorkflow();\r\n\t\t\r\n\t\tfor (Step step : steps) {\r\n\t\t\tint seperator = step.getTime().indexOf(\":\");\r\n\t\t\tString s = step.getTime().substring(0, seperator-1); // -1, damit das \":\" nicht dabei ist\r\n\t\t\tint hour = Integer.parseInt(s);\r\n\t\t\ts = step.getTime().substring(seperator+1); // +1, damit das \":\" nicht dabei ist\r\n\t\t\tint min = Integer.parseInt(s);\r\n\t\t\t// dieser Konstruktor ist zwar veraltet, aber für unseren Zweck perfekt\r\n\t\t\tstep.setTimestamp(new Timestamp(a.getYear(), a.getMonth(), a.getDay()-step.getDaysBefore(), hour, min, 0, 0));\r\n\t\t}\r\n\t\t\r\n\t\tdb.saveWorkflow(steps);\r\n\t\t\r\n\t}", "@Test\n @WithMockUser(username = \"instructor1\", roles = \"INSTRUCTOR\")\n void updateTextExercise_updatingCourseId_asInstructor() throws Exception {\n final Course course = database.addCourseWithOneReleasedTextExercise();\n TextExercise existingTextExercise = textExerciseRepository.findByCourseIdWithCategories(course.getId()).get(0);\n\n // Create a new course with different id.\n Long oldCourseId = course.getId();\n Long newCourseId = oldCourseId + 1L;\n Course newCourse = databaseUtilService.createCourse(newCourseId);\n\n // Assign new course to the text exercise.\n existingTextExercise.setCourse(newCourse);\n\n // Text exercise update with the new course should fail.\n TextExercise returnedTextExercise = request.putWithResponseBody(\"/api/text-exercises\", existingTextExercise, TextExercise.class, HttpStatus.CONFLICT);\n assertThat(returnedTextExercise).isNull();\n }", "int updateByPrimaryKey(QuestionOne record);", "public void updateforwadentry(String amit, String id) {\n\t\tContentValues up=new ContentValues();\n\t \n\t up.put(Sales_Amt, amit);\n\t \n\t\tourDatabase.update(DATABASE_TABLE5, up, Sales_Id+\" = \"+id, null);\n\t\t\t\n\t\t\n\t}", "void updateQuestion(String questionId, Question question) throws SQLException;", "int updateByPrimaryKey(FinancialManagement record);", "E update(ID id, E entity, RequestContext context);", "int updateByPrimaryKey(RepStuLearning record);", "protected void edit(HttpServletRequest request, HttpServletResponse response, EcAnonymousPaymentInfoForm _EcAnonymousPaymentInfoForm, EcAnonymousPaymentInfo _EcAnonymousPaymentInfo) throws Exception{\n\r\n _EcAnonymousPaymentInfo.setAnonymousUserId(WebParamUtil.getLongValue(_EcAnonymousPaymentInfoForm.getAnonymousUserId()));\r\n _EcAnonymousPaymentInfo.setFirstName(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getFirstName()));\r\n _EcAnonymousPaymentInfo.setMiddleInitial(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getMiddleInitial()));\r\n _EcAnonymousPaymentInfo.setLastName(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getLastName()));\r\n _EcAnonymousPaymentInfo.setAddress1(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getAddress1()));\r\n _EcAnonymousPaymentInfo.setAddress2(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getAddress2()));\r\n _EcAnonymousPaymentInfo.setCity(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getCity()));\r\n _EcAnonymousPaymentInfo.setState(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getState()));\r\n _EcAnonymousPaymentInfo.setZip(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getZip()));\r\n _EcAnonymousPaymentInfo.setCountry(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getCountry()));\r\n _EcAnonymousPaymentInfo.setPaymentType(WebParamUtil.getIntValue(_EcAnonymousPaymentInfoForm.getPaymentType()));\r\n _EcAnonymousPaymentInfo.setPaymentNum(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getPaymentNum()));\r\n _EcAnonymousPaymentInfo.setPaymentExpireMonth(WebParamUtil.getIntValue(_EcAnonymousPaymentInfoForm.getPaymentExpireMonth()));\r\n _EcAnonymousPaymentInfo.setPaymentExpireYear(WebParamUtil.getIntValue(_EcAnonymousPaymentInfoForm.getPaymentExpireYear()));\r\n _EcAnonymousPaymentInfo.setPaymentExtraNum(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getPaymentExtraNum()));\r\n _EcAnonymousPaymentInfo.setTimeCreated(WebParamUtil.getDateValue(_EcAnonymousPaymentInfoForm.getTimeCreated()));\r\n\r\n m_actionExtent.beforeUpdate(request, response, _EcAnonymousPaymentInfo);\r\n m_ds.update(_EcAnonymousPaymentInfo);\r\n m_actionExtent.afterUpdate(request, response, _EcAnonymousPaymentInfo);\r\n }", "int updateByPrimaryKeySelective(IymDefAssignment record);", "protected void updateRecord() throws DAOException {\r\n\t\t// Prepara para actualizar\r\n\t\tobject.prepareToUpdate();\r\n\t\t// Actualiza objeto\r\n\t\tobjectDao.update(object);\r\n\t\t// Actualiza relaciones\r\n\t\tfor (Sedrelco relco : object.getRelcos()) {\r\n\t\t\tsedrelcoDao.update(relco);\r\n\t\t}\r\n\t}", "int updateByExample(TResearchTeach record, TResearchTeachExample example);", "public void update(LearningResultHasActivityPk pk, LearningResultHasActivity dto) throws LearningResultHasActivityDaoException;" ]
[ "0.70179576", "0.6498901", "0.6256154", "0.6077639", "0.5983937", "0.5963297", "0.59297234", "0.59287393", "0.58606154", "0.5857426", "0.5846536", "0.5811677", "0.5793962", "0.57659894", "0.57655436", "0.57626635", "0.57521474", "0.5746668", "0.57228637", "0.57078487", "0.56854534", "0.56746066", "0.56650794", "0.56636", "0.5649415", "0.5647962", "0.56419736", "0.5641882", "0.56320465", "0.5628387", "0.56282645", "0.5623622", "0.56179976", "0.56167555", "0.5613688", "0.5608245", "0.5608175", "0.5603572", "0.56031984", "0.5596768", "0.5595647", "0.5592953", "0.55881155", "0.5584398", "0.5579118", "0.55711436", "0.55598295", "0.5555353", "0.5552455", "0.55500346", "0.5549982", "0.55495274", "0.55312943", "0.55286145", "0.5503353", "0.5502593", "0.5501096", "0.5494104", "0.5488164", "0.54806507", "0.5480381", "0.5475222", "0.5473569", "0.54732203", "0.5470758", "0.54664314", "0.5466108", "0.54658175", "0.5463683", "0.5458645", "0.5456941", "0.54504085", "0.5438707", "0.5430598", "0.5424571", "0.5423587", "0.54205805", "0.5420228", "0.54141927", "0.54139113", "0.5413678", "0.5411042", "0.53823906", "0.53802294", "0.5374882", "0.53722686", "0.5370452", "0.53657794", "0.5361268", "0.5360655", "0.5356034", "0.53558326", "0.5348203", "0.53477365", "0.5347248", "0.5346318", "0.53408504", "0.5339731", "0.53358215", "0.53347564" ]
0.56686145
22
When a module is launch, save the progress tracking data for this attempt
public void saveTrackingDataAtLaunch(Connection con, loginProfile prof, long tkh_id, long cos_id) throws SQLException, cwException, cwSysMessage, qdbException, qdbErrMessage { //get the module's course id if(cos_id == 0){ cos_id = getCosId(con, mod_res_id); } //get the Tracking History id if it is not defined if (tkh_id == DbTrackingHistory.TKH_ID_UNDEFINED) { tkh_id = DbTrackingHistory.getAppTrackingIDByMod(con, mod_res_id, prof.usr_ent_id); } //save the tracking data to ModuleEvaluation, ModuleEvaluationHistory and CourseEvaluation dbModuleEvaluation mov = new dbModuleEvaluation(); mov.mov_cos_id = cos_id; mov.mov_ent_id = prof.usr_ent_id; mov.mov_tkh_id = tkh_id; mov.mov_mod_id = mod_res_id; if(attempt_add){ mov.attempt_counted = false; }else{ mov.attempt_counted = true; } mov.mod_time = 0f; //time consumed is 0 as the module is just launch mov.score_delta = 0f; //no score changes as the module is just launch mov.mov_score = "0"; //keep the score unchange as the module is just launch mov.mov_status = dbModuleEvaluation.STATUS_IN_PROGRESS; //the status is changed to in progress mov.save(con, prof); return; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void saveProgress() {\n\t\tsaveUsers();\n\t\tsaveMaterials();\n\t\tsaveBorrowings();\n\t}", "private void saveBeforeRun() {\n if ( _helper != null && _settings.getSaveBeforeRun() )\n _helper.saveBeforeRun();\n }", "public void progressTheGame() {\r\n gameProgress = GameState.values()[this.gameProgress.ordinal()+1];\r\n }", "public void progressMade();", "private void saveState() {\n SharedPreferences prefs = getPreferences(MODE_PRIVATE);\n SharedPreferences.Editor editor = prefs.edit();\n\n // Store our count..\n editor.putInt(\"count\", this._tally);\n\n // Save changes\n editor.commit();\n }", "public void step() {\n stats.record();\n updateGraph();\n }", "@Override\n\tprotected void updateOtherProgress() {\n\t\t\n\t\ttempList.clear();\n\t\titeration++;\n\t\tJMetalLogger.logger.info(iteration + \" iteration...\");\n\t\t\n//\t\ttry {\n//\t\t\tnew SolutionListOutput(getPopulation()).printObjectivesToFile(\"results/media/FUN\"+iteration+\".tsv\");\n//\t\t} catch (IOException e) {\n//\t\t\te.printStackTrace();\n//\t\t}\n\t}", "private GameProgress() {\n maxTime = 3000;\n heathMax = 1000;\n fuelMax = 4000;\n difficultyLv = 1;\n fuelGainMultiply = 0;\n healthGainMultiply = 0;\n money = 0;\n lives = 1;\n increaseSafeTime = 0;\n livesWereBought = 0;\n decreaseDamage = 0;\n time = 0;\n lv = 1;\n }", "@Override\n\tpublic void saveModule() throws Exception {\n\n\t}", "public void saveSelfInfo()\n\t{\n\t\tnew Thread(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\thelper.addSelfInfo(uid, myApp.getSelfInfoList());\n\t\t\t}\n\t\t}).start();\n\t}", "private void currentStateSaveToSharedPref() {\n sharedPreferences = getPreferences(Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(\"nameOfActiveChallenge\", nameOfCurrentChallenge);\n editor.putInt(\"key1OfActiveChallenge\", key1OfActiveChallenge);\n editor.putString(\"dateOfLastEdit\", dateOfLastEdit);\n editor.putFloat(\"goal\", goal);\n editor.putFloat(\"carry\", carry);\n editor.putInt(\"challengeDaysRunning\", challengeDaysRunning);\n editor.commit();\n }", "public void getData() {\n\t\tfileIO.importRewards();\n\t\tfileIO.getPrefs();\n\t}", "@Override\r\n\tprotected void progressFinished() {\n\t}", "private void persistData() {\n mSharedPref.storeLastScreen(SCREEN_NAME);\n }", "@Override\r\n public void onSaveInstanceState(Bundle savedInstanceState) {\n super.onSaveInstanceState(savedInstanceState);\r\n // Save the user's current game state\r\n savedInstanceState.putInt(\"STEPS\", numSteps);\r\n\r\n }", "private void updateFile() {\n try {\n this.taskStorage.save(this.taskList);\n this.aliasStorage.save(this.parser);\n } catch (IOException e) {\n System.out.println(\"Master i am unable to save the file!\");\n }\n }", "void startTracking();", "void logPrgStateExec() throws FileNotFoundException, IOException;", "private void prepareProgression(User user,\n HttpServletRequest req,\n Language lang) {\n var countedSolvedAndAll = taskService\n .countProgression(user.getUserId(), lang);\n req.getSession().setAttribute(\"currentCountedTasks\", countedSolvedAndAll);\n }", "void save() {\r\n if (actionCompleted) {\r\n forget();\r\n } else {\r\n AccountSettings.stateStored = new Bundle();\r\n save(AccountSettings.stateStored);\r\n }\r\n }", "private void saveData(){\n\t\tsynchronized(onlineAllInfoList){\n\t\t\tRecorder.save(onlineAllInfoList, onlineAllInfoListFileName);\n\t\t}\n\t\t//System.out.println(\"Saving onlineCompetitionInfoList...\");System.out.flush();\n\t\tsynchronized(onlineCompetitionInfoList){\n\t\t\tRecorder.save(onlineCompetitionInfoList, onlineCompetitionInfoListFileName);\t\t\t\n\t\t}\n\t\t//System.out.println(\"Saving competitionList...\");System.out.flush();\n\t\tsynchronized(competitionList){\n\t\t\tRecorder.save(competitionList, competitionInfoListFileName);\n\t\t}\n\t\t//System.out.println(\"Saving allAIInfoList...\");System.out.flush();\n\t\tsynchronized(allAIInfoList){\n\t\t\tRecorder.save(allAIInfoList, allInfoListFileName);\t\t\t\n\t\t}\n\t\t//System.out.println(\"Saving waitingInfoList...\");System.out.flush();\n\t\tsynchronized(waitingInfoList){\n\t\t\tRecorder.save(waitingInfoList, waitingInfoListFileName);\t\t\t\n\t\t}\n\t\t//System.out.println(\"Saving sortedAIInfoPool...\");System.out.flush();\n\t\tsynchronized(sortedAIInfoPool){\n\t\t\tRecorder.save(sortedAIInfoPool, sortedInfoListFileName);\t\t\t\n\t\t}\n\t}", "public void makeProgressFile() {\n progressData = new File(wnwData, \"progress.dat\");\n try {\n progressData.createNewFile();\n } catch (IOException e) {\n e.printStackTrace();\n }\n progressData.setWritable(true);\n }", "@Override\n public void onPause() {\n super.onPause();\n try {\n storeRetrieveData.saveToFile((ArrayList<TaskCollector>) taskCollectors);\n } catch (JSONException | IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n protected void onPause() {\n super.onPause();\n saveToFile(StartingActivity.TEMP_SAVE_FILENAME);\n boardManager.setLastTime(stopTimer());\n System.out.println(\"pause: \" + boardManager.getLastTime());\n }", "@Override\n public void progress(FileStatus status) {\n progressReporter.progress();\n }", "synchronized void saveDhtState() {\n if (dhtTracker != null) {\n saveDhtEntries(dhtTracker.getTrackerState());\n }\n }", "@Override\n public void stop() {\n\n\n try {\n _overallStats.saveStats();\n _revisionData.saveFailed();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public void save() {\n doneSave = false;\n Double max = ((Integer) chunks.size()).doubleValue();\n Double done = 0.0;\n for (String key : chunks.keySet()) {\n ChunkWrapper w = chunks.get(key);\n w.save(false, true);\n done++;\n this.percent = ((Double) (done / max)).intValue();\n }\n chunks.clear();\n doneSave = true;\n }", "public void trackActivation() {\n track(\"_activation\");\n }", "private void export(ActionEvent actionEvent) {\n if (this.totalCycles == -1) {\n var result = JOptionPane.showConfirmDialog(this, \"The run is not finished yet. Are you sure you want to proceed?\",\n \"Unfinished run\", JOptionPane.YES_NO_CANCEL_OPTION);\n\n if (result == JOptionPane.NO_OPTION) {\n return;\n }\n }\n\n // File dialog to save the history\n var fileChooser = new JFileChooser();\n fileChooser.setFileFilter(new FileFilter() {\n @Override\n public boolean accept(File file) {\n return file.getName().endsWith(\".json\");\n }\n\n @Override\n public String getDescription() {\n return \"*.json\";\n }\n });\n\n fileChooser.setAcceptAllFileFilterUsed(false);\n fileChooser.setCurrentDirectory(new File(Variables.OUTPUT_PATH));\n var resultDialog = fileChooser.showSaveDialog(this);\n\n if (resultDialog == JFileChooser.APPROVE_OPTION) {\n var file = fileChooser.getSelectedFile();\n\n if (!file.getName().endsWith(\".json\")) {\n file = new File(file.getAbsolutePath() + \".json\");\n }\n if (file.exists()) {\n var sure = JOptionPane.showConfirmDialog(this, \"File already exists. Overwrite?\",\n \"Overwrite file?\", JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE);\n\n if (sure != JOptionPane.YES_OPTION) {\n return;\n }\n }\n\n this.saveHistoryToFile(file);\n }\n }", "public void working(final String fileName) {\n Intent intent = new Intent(Constant.ACTION_IMPORTING_EXPORING);\n WorkingState workState = isExport() ? WorkingState.EXPORTING : WorkingState.IMPORTING;\n intent.putExtra(\"workingstate\", workState.ordinal());\n intent.putExtra(\"workingname\", fileName);\n mContext.sendBroadcast(intent);\n // showNotification(fileName);\n mHandler.post(new Runnable() {\n @Override\n public void run() {\n showProgressDlg(fileName);\n }\n });\n }", "private void submit() {\r\n\t\tassignTracked();\r\n\t\tBkitPoma.startLoading(constants.BkitPoma_startLoading_wating());\r\n\t\tpostSubmit();\r\n\t}", "@Override\n\tpublic void doSave(IProgressMonitor monitor) {\n\t}", "public void SaveCurrentGame(){\n if(gameStarted == false){ return; }\n recordGame.write(board, timeRuunableThread, level);\n timeRuunableThread.setDrawNumber(false);\n canLoadGame = true;\n // update infoCanvas\n CleanInfoCanvas();\n }", "@Override\n protected void onPreExecute() {\n\n myProgress = 0;\n }", "public void trackAcquisition() {\n track(\"_acquisition\");\n }", "public void trackNewSession() {\n if(isTelemetryEnabled()){\n new CreateDataTask(CreateDataTask.DataType.NEW_SESSION).execute();\n }\n }", "@Override\n\tpublic void saveData()\n\t{\n ssaMain.d1.pin = ssaMain.tmp_pin1;\n ssaMain.d1.balance = ssaMain.tmp_balance1;\n System.out.println(\"Your account has been established successfully.\");\n\t}", "@Override\n protected void onPreExecute() {\n myProgress = 0;\n }", "public OutputProgressController() {\r\n outputProgressModel = new OutputProgressModel();\r\n SessionRenderer.addCurrentSession(\"progressExample\");\r\n }", "public synchronized void informModuleStartLoading(Module module) {\n\t\tModuleStat stat = getModuleStat(module);\n\t\tstat.waitLoading = true;\n\t}", "private void saveGeneralData() {\n Settings.CRAWL_TIMEOUT = Integer.parseInt(spCrawlTimeout.getValue().toString()) * 1000;\n Settings.RETRY_POLICY = Integer.parseInt(spRetryPolicy.getValue().toString());\n Settings.RECRAWL_TIME = Integer.parseInt(spRecrawlInterval.getValue().toString()) * 3600000;\n Settings.RECRAWL_CHECK_TIME = Integer.parseInt(spRecrawlCheckTime.getValue().toString()) * 60000;\n\n Settings.saveSettings();\n }", "public void run() {\n updateSyncStats();\n\n double d = uploadCounter.calculateCurrentKBS();\n if (getController().getTransferManager().countActiveUploads() == 0)\n {\n // Hide KB/s when not active uploads\n d = 0;\n }\n if (Double.compare(d, 0) == 0) {\n uploadsLine.setNormalLabelText(Translation\n .getTranslation(\"status_tab.files_uploads\"));\n } else {\n String s = Format.formatDecimal(d);\n uploadsLine.setNormalLabelText(Translation.getTranslation(\n \"status_tab.files_uploads_active\", s));\n }\n d = downloadCounter.calculateCurrentKBS();\n if (getController().getTransferManager().countActiveDownloads() == 0)\n {\n // Hide KB/s when no active downloads\n d = 0;\n }\n if (Double.compare(d, 0) == 0) {\n downloadsLine.setNormalLabelText(Translation\n .getTranslation(\"status_tab.files_downloads\"));\n } else {\n String s = Format.formatDecimal(d);\n downloadsLine.setNormalLabelText(Translation.getTranslation(\n \"status_tab.files_downloads_active\", s));\n }\n }", "private void loadState() {\n SharedPreferences prefs = getPreferences(MODE_PRIVATE);\n this._tally = prefs.getInt(\"count\", 0);\n }", "void store() {\n UserPreferences.setLogFileCount(Integer.parseInt(logFileCount.getText()));\n if (!agencyLogoPathField.getText().isEmpty()) {\n File file = new File(agencyLogoPathField.getText());\n if (file.exists()) {\n ModuleSettings.setConfigSetting(ReportBranding.MODULE_NAME, ReportBranding.AGENCY_LOGO_PATH_PROP, agencyLogoPathField.getText());\n }\n } else {\n ModuleSettings.setConfigSetting(ReportBranding.MODULE_NAME, ReportBranding.AGENCY_LOGO_PATH_PROP, \"\");\n }\n UserPreferences.setMaxSolrVMSize((int)solrMaxHeapSpinner.getValue());\n if (memField.isEnabled()) { //if the field could of been changed we need to try and save it\n try {\n writeEtcConfFile();\n } catch (IOException ex) {\n logger.log(Level.WARNING, \"Unable to save config file to \" + PlatformUtil.getUserDirectory() + \"\\\\\" + ETC_FOLDER_NAME, ex);\n }\n }\n }", "private void saveData() {\n }", "public SavingProgressCallback()\r\n {\r\n mSavingStartedAt = new Date();\r\n }", "private void savePreferences(){\n SharedPreferences prefs = getPreferences(MODE_PRIVATE);\n SharedPreferences.Editor editor = prefs.edit();\n\n editor.putInt(\"p1Count\", pOneCounter);\n editor.putInt(\"p2Count\", pTwoCounter);\n editor.putInt(\"pAICount\", pAICounter);\n editor.putInt(\"tieCount\", tieCounter);\n\n editor.commit();\n }", "@Override\n protected void onPreExecute() {\n this.progressDialog.setMessage(\"Adding workouts...\");\n this.progressDialog.show();\n }", "public void saveStats() {\n this.saveStats(null);\n }", "@Override\n public void onQuestionPassed(Context context, @NonNull Level level, int questionIndex) {\n try {\n //Progress starts now\n context.getSharedPreferences(QueryUtils.PREFERENCES_FILE, Context.MODE_PRIVATE).edit().putBoolean(Level.PROGRESS_ERASED_KEY, false).apply();\n\n //Get a json question object from external storage\n JSONObject jsonQuestionsObject = JsonUtils.jsonFileToJSONObject(context, StorageMode.EXTERNAL);\n JSONArray jsonQuestionsArray = jsonQuestionsObject.getJSONArray(level.getName().toLowerCase());\n\n //Update question passed state.\n jsonQuestionsArray.getJSONObject(questionIndex).put(\"passed\", true);\n\n //Write persistent data.\n JsonUtils.writePersistentJSONObject(context, jsonQuestionsObject);\n\n } catch (IOException | JSONException e) {\n e.printStackTrace();}\n }", "public void run() {\n GenerationDetail detail = ga.getDetail();\n generationLabel.setText(String.valueOf(detail.getGeneration()+1));\n averageFitnessLabel.setText(String.valueOf(detail.getAverageFitness()));\n maxFitnessLabel.setText(String.valueOf(detail .getMaxFitness()));\n minFitnessLabel.setText(String.valueOf(detail.getMinFitness()));\n progressBar.setValue(100 * (detail.getGeneration())/ Integer.valueOf(times-1));\n }", "@Override\n public void progress(FileStatus status) {\n progressReporter.progress();\n }", "void startProgress();", "public abstract void setProgress (String description, int currentStep, int totalSteps);", "@Override\n\tprotected void onPause() {\n\t super.onPause();\n\t this.saveInFile();\n\t}", "public void save(XmlWriter w) throws Throwable {\n w.add(\"progress\", new String[] { \"total\", Integer.toString(_total), \"time\",\n new SimpleDateFormat(DateTime.DATE_TIME_FORMAT).format(time()) }, Integer.toString(_progress));\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tGPSLogData saved = GPSLogData.loadFile(mCarData.sel_vehicleid);\n\t\t\t\tif (saved != null) {\n\t\t\t\t\tLog.v(TAG, \"GPSLogData loaded for \" + mCarData.sel_vehicleid);\n\t\t\t\t\tlogData = saved;\n\t\t\t\t\tdataSetChanged();\n\t\t\t\t}\n\t\t\t\thideProgressOverlay();\n\t\t\t}", "public void crack_progress(Cracker cracker);", "public void storeStats() throws Exception {\n logger.info(\"[WORKER-MONITOR] - Start store stats into file. TopologyId: \" + topologyId);\n\n logger.debug(\"------------------WORKER MONITOR SNAPSHOT START------------------\");\n logger.debug(\"Current InterNode Traffic is: \" + DataManager.getInstance().getCurrentInterNodeTraffic());\n logger.debug(\"This Topology current total load is: \" + DataManager.getInstance().getTotalLoad(topologyId));\n // 2018-07-23 add for simple logs\n /*\n if (taskMonitorList.size() != 0) {\n FileUtils.writeToFile(trafficFilename, taskMonitorList.get(0).getTaskId() + \" : \" + DataManager.getInstance().getCurrentInterNodeTraffic());\n }\n */\n FileUtils.writeToFile(Constants.TRAFFIC_DATA_FILE, taskMonitorList.get(0).getTaskId() + \" : \" + DataManager.getInstance().getCurrentInterNodeTraffic());\n\n // Output the threadToTaskMap\n logger.debug(\"Threads to Tasks association is: \");\n for (long threadId : threadToTaskMap.keySet()) {\n logger.debug(\" - \" + threadId + \": \" + threadToTaskMap.get(threadId));\n }\n\n logger.debug(\"Inter-Task Traffic Stats (tuples sent per time slot): \");\n for (TaskPair pair : trafficStats.keySet()) {\n logger.debug(\" - \" + pair.getSourceTaskId() + \" -> \" + pair.getDestinationTaskId() + \": \" + getTraffic(pair) + \" tuple/s [\" + Utils.collectionToString(trafficStats.get(pair)) + \"]\");\n // invoke DataManager function to store Traffic info. 2018-05-08\n DataManager.getInstance().storeTraffic(topologyId, pair.getSourceTaskId(), pair.getDestinationTaskId(), getTraffic(pair));\n }\n\n logger.debug(\"Load stats (CPU cycles consumed per time slot): \");\n long totalCPUCyclesPerSecond = 0;\n for (long threadId : loadStats.keySet()) {\n List<Long> threadLoadInfo = loadStats.get(threadId);\n totalCPUCyclesPerSecond += threadLoadInfo.get(threadLoadInfo.size() - 1) / timeWindowLength;\n logger.debug(\" - thread \" + threadId + \": \" + getLoad(threadId) + \" cycle/s [\" + Utils.collectionToString(threadLoadInfo) + \"]\");\n\n Executor executor = threadToTaskMap.get(threadId);\n // invoke DataMananger to store load info. 2018-05-08\n DataManager.getInstance().storeCpuLoad(topologyId, executor.getBeginTask(), executor.getEndTask(), getLoad(threadId));\n\n }\n long totalCPUCyclesAvailable = CPUInfo.getInstance().getTotalSpeed();\n double usage = ((double) totalCPUCyclesPerSecond / totalCPUCyclesAvailable) * 100; // int -> double\n logger.debug(\"Total CPU cycles consumed per second: \" + totalCPUCyclesPerSecond + \", Total available: \" + totalCPUCyclesAvailable + \", Usage: \" + usage + \"%\");\n\n // add from yitian 2018-04-29\n logger.debug(\"Output the TaskMonitorList: \");\n for (TaskMonitor monitor : taskMonitorList) {\n logger.debug(\"- ProcessId: \" + monitor.getProcessId() + \" -> threadId: \" + monitor.getThreadId() + \" -> taskId: \" + monitor.getTaskId());\n }\n\n // 2018-09-27 add load usage of each host(worker node)\n /*\n Map<String, String> hostCpuUsageList = DataManager.getInstance().getCpuUsageOfHost();\n for (String hostname : hostCpuUsageList.keySet()) {\n FileUtils.writeToFile(cpuUsageFilename, hostname + \" : \" + hostCpuUsageList.get(hostname));\n }\n */\n logger.debug(\"------------------WORKER MONITOR SNAPSHOT END------------------\");\n }", "public void save() {\n savePrefs();\n }", "private void initProgress()\n {\n\n if (showProgressBar && progressBar == null)\n { // there's an issue if called from matlab of getting the progress frame\n // in matlab's event loop so we can't just create a new one here\n progressBar = new Progress();\n }\n if (progressBar != null)\n {\n progressBar.setChanName(channelName);\n progressBar.setWorkingOn(\"Initializing\");\n progressBar.setEstTime(\"Time remaining: unknown\");\n progressBar.setProgress(-1);\n progressBar.setPosition();\n }\n }", "private void updateTaskActivityLabel()\r\n {\r\n setLabelValue(\"Tile Downloads \" + myActiveQueryCounter.intValue());\r\n setProgress(myDoneQueryCounter.doubleValue() / myTotalSinceLastAllDoneCounter.doubleValue());\r\n }", "public void updateGameProgression() {\n \tif (players.size() == 0) {\n \t\tSystem.out.println(\"Game over\");\n \t\tgameOver.set(true);\n \t}\n \tif (goal.checkGoalCompleted().get()) {\n \t\tdungeonCompleted.set(true);\n \t} else {\n \t\tdungeonCompleted.set(false);\n \t}\n }", "public void recordLog(){\r\n\t\tthis.finishLog(resourceFiles.getString(\"PathHepparIITestDirectory\") + \"/\" + TEST_FILE_NAME); \r\n\t}", "public void save() {\n DataBuffer.saveDataLocally();\n\n //TODO save to db must be done properly\n DataBuffer.save(session);\n\n //TODO recording saved confirmation\n }", "public void run() {\n \t\t\tlogger.info(\"Saving settings ...\");\n \n \t\t\tif (exitSavables != null) {\n \t\t\t\tEnumeration enumeration = exitSavables.elements();\n \t\t\t\twhile (enumeration.hasMoreElements()) {\n \t\t\t\t\tSavable savable = (Savable) enumeration.nextElement();\n \t\t\t\t\ttry {\n \t\t\t\t\t\tsavable.save();\n \t\t\t\t\t} catch (StorageException se) {\n \t\t\t\t\t\tlogger.log(Level.SEVERE,\n \t\t\t\t\t\t\t\t\"Error while saving a resource inside the shutdown hook.\", se);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\tFileAccess.cleanKeypool(MainFrame.keypool);\n \n \t\t\tlogger.info(\"Bye!\");\n \t\t}", "private void startDownloadActivity() {\n checking();\n numDownloading = 0;\n updateMax = 0;\n updateProgress = 0;\n readPref();\n writePref();\n update();\n }", "public void saveData() {\n\t\t//place to save notes e.g to file\n\t}", "public void onTempPowerSaveWhitelistChanged(AppStateTracker sender) {\n updateAllJobs();\n }", "private void saveValues() {\r\n this.pl_expert.setParam(\"displayNodeDegree\", (String) this.nodeDegreeSpinner.getValue());\r\n this.pl_expert.setParam(\"displayEdges\", (String) this.displayEdgesSpinner.getValue());\r\n this.pl_expert.setParam(\"scale\", (String) this.scaleSpinner.getValue());\r\n this.pl_expert.setParam(\"minWeight\", (String) this.minweightSpinner.getValue());\r\n this.pl_expert.setParam(\"iterations\", (String) this.iterationsSpinner.getValue());\r\n this.pl_expert.setParam(\"mutationParameter\", this.mutationParameter.getSelection().getActionCommand());\r\n this.pl_expert.setParam(\"Update_param\", this.Update_param.getSelection().getActionCommand());\r\n this.pl_expert.setParam(\"vote_value\", (String) this.vote_value.getValue());\r\n this.pl_expert.setParam(\"keep_value\", (String) this.keep_value.getValue());\r\n this.pl_expert.setParam(\"mut_value\", (String) this.mut_value.getValue());\r\n this.pl_expert.setParam(\"only_sub\", new Boolean(this.only_sub.isSelected()).toString());\r\n\r\n this.is_alg_started = false;\r\n }", "@Override\n public void saveData() {\n System.out.println(\"GateWay\");\n }", "@Override\n public void onStepRunning(FlowStep flowStep) {\n //getting Hadoop running job and job client\n HadoopStepStats stats = (HadoopStepStats)flowStep.getFlowStepStats();\n JobClient jc = stats.getJobClient();\n\n // first we report the scripts progress\n int progress = (int) (((runnigJobs * 1.0) / totalNumberOfJobs) * 100);\n Map<Event.WorkflowProgressField, String> eventData = Maps.newHashMap();\n eventData.put(Event.WorkflowProgressField.workflowProgress, Integer.toString(progress));\n pushEvent(currentFlowId, new Event.WorkflowProgressEvent(eventData));\n\n //get job node\n String jobId = stats.getJobID();\n DAGNode<CascadingJob> node = dagNodeJobIdMap.get(jobId);\n if (node == null) {\n log.warn(\"Unrecognized jobId reported for succeeded job: \" + stats.getJobID());\n return;\n }\n\n //only push job progress events for a completed job once\n if (node.getJob().getMapReduceJobState() != null && !completedJobIds.contains(node.getJob().getId())) {\n pushEvent(currentFlowId, new Event.JobProgressEvent(node));\n addMapReduceJobState(node.getJob(), stats);\n\n if (node.getJob().getMapReduceJobState().isComplete()) {\n completedJobIds.add(node.getJob().getId());\n }\n }\n }", "void startReportingTask();", "private static void saveThreadLastRunTime() {\n\t\tif (mContext != null) {\n\t\t\tEditor edit = mContext.getSharedPreferences(Defines.SHARED_PREF_NAME, Context.MODE_PRIVATE).edit();\n\t\t\tedit.putLong(Defines.SHARED_PREF_THREAD_LAST_RUN_TIME, DataStore.mThreadLastRunSystemTime);\n\n\t\t\tedit.commit();\n\t\t}\n\t}", "void analysisPostponed();", "@Override\n public void onBeforeExit() {\n dumpMyData();\n }", "public void reportWorking() {\n if (isWorking == false) {\n System.out.println(\"Subsystem \" + getName() + \" is now working.\");\n SmartDashboard.putBoolean(getName()+\" status\", true);\n isWorking = true;\n }\n }", "public synchronized void informModuleEndLoading(Module module) {\n\t\tModuleStat stat = getModuleStat(module);\n\t\tstat.waitLoading = false;\n\t}", "public abstract void setProgress (int currentStep, int totalSteps);", "public void onSubmit(View view) throws FileNotFoundException{\n int stress = stress_numbers[stress_number];\n createGraph(\"stress_timestamp.csv\", System.currentTimeMillis(), stress);\n Intent intent = new Intent();\n intent.setClass(this, MainActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n intent.putExtra(\"flag\", EXIT_APPLICATION);\n startActivity(intent);\n }", "private void writePref() {\n SharedPreferences.Editor editor = sp.edit();\n long currentTime = System.currentTimeMillis();\n editor.putLong(UPDATE, currentTime);\n editor.commit();\n System.out.println(\"Time of current update: \" + getDateFromLong(currentTime));\n }", "public void run() {\r\n ouputProgressModel.setPogressStarted(true);\r\n try {\r\n for (int i = 0; i <= 100; i += 10) {\r\n // pause the thread\r\n Thread.sleep(PROCCESS_SLEEP_LENGTH);\r\n // update the percent value\r\n ouputProgressModel.setPercentComplete(i);\r\n SessionRenderer.render(\"progressExample\");\r\n }\r\n }\r\n catch (InterruptedException e) { }\r\n ouputProgressModel.setPogressStarted(false);\r\n }", "public void saveData(){\r\n file.executeAction(modelStore);\r\n }", "private void savePrefsData() {\n SharedPreferences pref = getApplicationContext().getSharedPreferences(\"myPrefs\", MODE_PRIVATE);\n SharedPreferences.Editor editor = pref.edit();\n editor.putBoolean(\"isIntroOpnend\", true);\n editor.commit();\n }", "public void saveSelf() {\n\t\tCRFileIOHelper.stringToFile(this.toString(), controller.getReportController().getCurrentFilePath() + \"parameters\");\n\t}", "private static void saveScore() {\n\t\tif (mContext != null) {\n\t\t\tEditor edit = mContext.getSharedPreferences(Defines.SHARED_PREF_NAME, Context.MODE_PRIVATE).edit();\n\t\t\tedit.putInt(Defines.SHARED_PREF_ACTIVITY_SCORE, DataStore.mActivityScore);\n\n\t\t\tfor (int x = 0; x < Defines.NUM_DAYS_SCORE_TO_SAVE; x++) {\n\t\t\t\tedit.putInt(Defines.SHARED_PREF_PREV_SCORE + x, DataStore.mPreviousActivityScores[x]);\n\t\t\t}\n\n\t\t\tif (mActivityScoreDate != null) {\n\t\t\t\tedit.putString(Defines.SHARED_PREF_SCORE_DATE, mActivityScoreDate.format2445());\n\t\t\t}\n\n\t\t\tedit.commit();\n\t\t}\n\t}", "public void saveCurrentPlayer() {\n\t\tBashCmdUtil.bashCmdNoOutput(\"touch data/current_player\");\n\t\tBashCmdUtil.bashCmdNoOutput(String.format(\"echo \\\"%s\\\" >> data/current_player\",_currentPlayer));\n\t}", "private void setUpProgressBar() {\n DatabaseHelper database = new DatabaseHelper(this);\n Cursor cursor = database.getAllDataForScavengerHunt();\n\n int totalLocationCount = 0;\n double visitedCount = 0;\n\n while (cursor.moveToNext()) {\n totalLocationCount++;\n int visited = cursor.getInt(cursor.getColumnIndex(database.COL_VISITED));\n if (visited == 1) visitedCount++;\n }\n\n int progress = (int) (visitedCount / totalLocationCount * 100);\n ProgressBar progressBar = findViewById(R.id.progress);\n TextView progressText = findViewById(R.id.progress_text);\n progressBar.setProgress(progress);\n progressText.setText(\" \" + progress + \"%\");\n }", "public void storePatchAttempts(Integer idprogvariant) {\n\t\n\t\tlog.debug(\"\\nAttempts to find patch Id \"+idprogvariant+\": \"+temporalIngCounterUntilPatch\n\t\t\t\t+\", successful \"+sum(this.ingAttemptsSuccessfulPatches)\n\t\t\t\t+\", failing \"+sum(this.ingAttemptsFailingPatches));\n\t\tthis.patch_attempts.add(temporalIngCounterUntilPatch);\n\t\tthis.temporalIngCounterUntilPatch = 0;\n\n\t}", "private void registerPrefsListener() {\n if (userSharedPreferences == null) {\n userSharedPreferences = Util.getUserSharedPreferences();\n }\n userPreferenceChangeListener = new SharedPreferences.OnSharedPreferenceChangeListener() {\n @Override\n public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {\n switch (key) {\n case HPIApp.Prefs.SHARED_KEY_TOTAL_STEPS:\n int steps = sharedPreferences.getInt(HPIApp.Prefs.SHARED_KEY_TOTAL_STEPS, 0);\n txtViewStepsCountToday.setText(String.valueOf(steps));\n break;\n case HPIApp.Prefs.SHARED_KEY_MILESTONES_TODAY:\n int milestones = sharedPreferences.getInt(HPIApp.Prefs.SHARED_KEY_MILESTONES_TODAY, 0);\n txtViewMilestonesCountToday.setText(String.valueOf(milestones));\n case HPIApp.Prefs.SHARED_KEY_RUN_SERVICE:\n boolean runService = sharedPreferences.getBoolean(HPIApp.Prefs.SHARED_KEY_RUN_SERVICE, false);\n if (runService) {\n HPIApp.getAppContext().startService(new Intent(HPIApp.getAppContext(), StepService.class));\n } else {\n HPIApp.getAppContext().stopService(new Intent(HPIApp.getAppContext(), StepService.class));\n }\n default:\n break;\n }\n }\n };\n\n userSharedPreferences.registerOnSharedPreferenceChangeListener(userPreferenceChangeListener);\n }", "@Override\n protected void onProgressUpdate(Integer... progress) {\n ProgressBar pbFileIO = (ProgressBar)findViewById(R.id.pbFileIO);\n pbFileIO.setProgress(progress[0]);\n }", "public void setInstallTracked() {\n }", "@Override\n synchronized public void onTaskCompletionResult() {\n if (DataContainer.getInstance().pullValueBoolean(DataKeys.PLAY_REFERRER_FETCHED, context) && DataContainer.getInstance().pullValueBoolean(DataKeys.GOOGLE_AAID_FETCHED, context)) {\n deviceInformationUtils.prepareInformations();\n deviceInformationUtils.debugData();\n long lastLaunch = pullValueLong(ITrackingConstants.CONF_LAST_LAUNCH_INTERNAL, context);\n trackLaunchHandler(lastLaunch);\n }\n }", "public static void saveTricksTakenData() {\r\n\t\tMain.player1TricksTaken = FrameUtils.player1TricksTaken.getSelectedItem();\r\n\t\tMain.player2TricksTaken = FrameUtils.player2TricksTaken.getSelectedItem();\r\n\t\tMain.player3TricksTaken = FrameUtils.player3TricksTaken.getSelectedItem();\r\n\t\t\r\n\t\t//Saves the tricks taken if playing with four players.\r\n\t\tif (!Main.isThreeHanded) {\r\n\t\t\tMain.player4TricksTaken = FrameUtils.player4TricksTaken.getSelectedItem();\r\n\t\t}\r\n\t}", "private void save(){\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());\n SharedPreferences.Editor editor = preferences.edit();\n Gson gson = new Gson();\n String json = gson.toJson(downloadedBooks);\n editor.putString( LISTS_DOWNLOADED, json);\n json = gson.toJson(progress);\n editor.putString( LISTS_PROGRESS, json);\n editor.apply();\n }", "@Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n p4t = (progress*50);\n parameter_04_time.setText(\"Time interval for Linear Accelerator Sensor: \"+String.valueOf(p4t)+\" (ms)\");\n prefs2.saveData(\"time_interval_04\",String.valueOf(p4t));\n\n }", "public void saveRegisters(int savedProgramCounter) {\n Process_Table[currentProcess].acc = machine.cpu.acc;\n Process_Table[currentProcess].x = machine.cpu.x;\n Process_Table[currentProcess].pc = savedProgramCounter;\n }", "private void updateProgressData(int progressBarId, Integer value) {\n\t\tmProgressPercents[progressBarId] = value;\n\t\tif (sActivity != null) {\n\t\t\tAbstractImportUpdateActivity activity = sActivity.get();\n\t\t\tif (activity != null) {\n\t\t\t\tactivity.updateProgressData(progressBarId, value);\n\t\t\t}\n\t\t}\n\t}", "protected void assignTracked() {\r\n\t\tsubmitTracked = new CTracked();\r\n\t\tsubmitTracked.setName(txtName.getText());\r\n\t\tsubmitTracked.setPassword(txtPassword.getText());\r\n\t\tsubmitTracked.setEmail(txtEmail.getText());\r\n\t\tsubmitTracked.setBirthday(dateBirthday.getValue());\r\n\t\tsubmitTracked.setTel(txtMobilePhone.getText().equals(\"\") ? null\r\n\t\t\t\t: txtMobilePhone.getText());\r\n\t\tsubmitTracked\r\n\t\t\t\t.setIntervalGps(Integer.parseInt(cbIntervalGPS.getValue()));\r\n\t\tsubmitTracked.setActive(checkActive.getValue());\r\n\t\tsubmitTracked.setEmbedded(checkEmbedded.getValue());\r\n\t\tsubmitTracked.setShowInMap(checkShowInMap.getValue());\r\n\t\tsubmitTracked.setLang(cbLanguage.getValue());\r\n\t\tsubmitTracked.setCountry(cbCountry.getValue());\r\n\t\t\r\n\t\tsubmitTracked.setSchedule(scheduleWindow.getSubmitSchedule().toBytes());\r\n\t\ttry {\r\n\t\t\tsubmitTracked.setGmt(new Integer(cbTimeZone.getValue()));\r\n\t\t} catch (Exception ex) {\r\n\t\t\tsubmitTracked.setGmt(7);\r\n\t\t}\r\n\t\tsubmitTracked.setApiKey(txtApiKey.getText());\r\n\t\tpostAssignTracked();\r\n\t}" ]
[ "0.6683518", "0.59247756", "0.5606368", "0.5600777", "0.55318135", "0.54766923", "0.53775704", "0.53225076", "0.5301705", "0.52977264", "0.52650565", "0.5254768", "0.523679", "0.52342546", "0.5223326", "0.5210193", "0.5205183", "0.51834786", "0.51736194", "0.515159", "0.5146887", "0.513881", "0.5127476", "0.51274014", "0.51098704", "0.5102078", "0.50984824", "0.50882065", "0.50824064", "0.50797105", "0.50795823", "0.5075273", "0.50708514", "0.50608414", "0.5055785", "0.5049519", "0.504892", "0.50374746", "0.50306237", "0.50290763", "0.50280005", "0.50278085", "0.5026845", "0.5026208", "0.50225437", "0.50132924", "0.5006633", "0.5000267", "0.49895817", "0.49807718", "0.4964964", "0.49646497", "0.49620482", "0.49570638", "0.49545863", "0.49477148", "0.49372762", "0.49346137", "0.49325266", "0.49313912", "0.49258715", "0.4922233", "0.4915313", "0.49151388", "0.4914111", "0.490845", "0.4905801", "0.49024022", "0.48889372", "0.48882696", "0.48868838", "0.488622", "0.48841995", "0.4882794", "0.4876467", "0.48759654", "0.48643282", "0.4858536", "0.48504788", "0.48473188", "0.4845146", "0.4842648", "0.48406973", "0.4836817", "0.48323992", "0.48292196", "0.482918", "0.48284444", "0.4826802", "0.4825168", "0.482471", "0.48234284", "0.4821664", "0.4821051", "0.481705", "0.4814041", "0.481268", "0.4808585", "0.48078334", "0.48075923" ]
0.5656164
2
Fix the questions' order. The order should be in 1,2,3,...,n,n+1 Only Standard Test (TST) needs to fix its questions' order
private void fixQueOrder(Connection con) throws SQLException, qdbException { if(mod_type == null || mod_type.equalsIgnoreCase(MOD_TYPE_TST)|| mod_type.equals(MOD_TYPE_SVY) || mod_type.equals(MOD_TYPE_EVN)) { //only standard test (TST) needs to fix que order bt its nature //for other module type, nothing should have been fixed //therefore try to fix the que order if the module tpye is unknown PreparedStatement stmt = null; try { //get the module's questions Vector vQue = dbResourceContent.getChildAss(con, mod_res_id); for(int i=0; i<vQue.size(); i++) { dbResourceContent rcn = (dbResourceContent) vQue.elementAt(i); if(rcn.rcn_order != i+1) { //if the que is in order, update it rcn.rcn_order = i+1; rcn.updOrder(con); } } } finally { if(stmt!=null) {stmt.close();} } } return; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Before\n public void runBefore() {\n q1 = new TrueFalseQuestion(8, \"You are awesome.\", true);\n q2 = new TrueFalseQuestion(16, \"Donuts are bad for you.\", true);\n q3 = new TrueFalseQuestion(1, \"You suck at programming\", true);\n qList = new QuestionsList();\n qList.addQuestion(q1);\n qList.addQuestion(q2);\n qList.addQuestion(q3);\n\n testQuiz = new DecrementMarksQuiz(qList);\n }", "public void resetQuestion() \n\t{\n\t\tthis.game = masterPanel.getGame();\n\t\t\n\t\tArrayList<String> tempQuestion = new ArrayList<String>();\n\t\ttempQuestion = getRandQuestion();\n\t\t\n\t\tquestion.setText(tempQuestion.get(0));\n\t\tanswerOne.setText(tempQuestion.get(1));\n\t\tanswerTwo.setText(tempQuestion.get(2));\n\t\tanswerThree.setText(tempQuestion.get(3));\n\t\tanswerFour.setText(tempQuestion.get(4));\n\t\tcorrectAnswer = tempQuestion.get(5);\n\t\t\n\t\tlayoutConstraints.gridy = 1;\n\t\tthis.add(answerOne, layoutConstraints);\n\t\t\n\t\tlayoutConstraints.gridy = 2;\n\t\tthis.add(answerTwo, layoutConstraints);\n\t\t\n\t\tlayoutConstraints.gridy = 3;\n\t\tthis.add(answerThree, layoutConstraints);\n\t\t\n\t\tlayoutConstraints.gridy = 4;\n\t\tthis.add(answerFour, layoutConstraints);\n\t\t\n\t\tthis.repaint();\n\t}", "private Question setUpQuestion(List<Question> questionsList){\n int indexOfQuestion = random.nextInt(questionsList.size());\n questionToBeHandled = questionsList.get(indexOfQuestion);\n questionsList.remove(indexOfQuestion);\n return questionToBeHandled;\n }", "@Override\n public void resetQuestion() {\n super.resetQuestion();\n hadSecondChance = false;\n currentTeam = null;\n originalTeam = null;\n teamHasAnswered.clear();\n //reset teamHasAnswered map so all teams get a chance to anaswer again\n for (int i = 0; i < numTeams; i++) teamHasAnswered.put(i, false);\n }", "public String checkNewQuestions() {\n\t\tint numAnswers = testGenerator.getNumAnswers(questionNo);\n\t\tString question = \"\";\n\n\t\tquestion += testGenerator.getQuestionText(questionNo);\n\t\tquestion += testGenerator.getAnswerText(questionNo, 1);\n\t\tquestion += testGenerator.getAnswerText(questionNo, 2);\n\n\t\tif(numAnswers >= 3) {\n\t\t\tquestion += testGenerator.getAnswerText(questionNo, 3);\n\t\t} \n\t\tif(numAnswers == 4) {\n\t\t\tquestion += testGenerator.getAnswerText(questionNo, 4);\n\t\t}\n\t\treturn question;\n\t}", "private static void createWrongSequenceTestSet() {\n\t\t\n\t\twrongSequenceAnswers = new ArrayList<>();\n\t\t\n\t\twrongSequenceAnswers.add(GuessRevealerConstants.READY);\n\t\twrongSequenceAnswers.add(GuessRevealerConstants.LOWER);\n\t\twrongSequenceAnswers.add(GuessRevealerConstants.HIGHER);\n\t\twrongSequenceAnswers.add(GuessRevealerConstants.LOWER);\n\t\twrongSequenceAnswers.add(GuessRevealerConstants.LOWER);\n\t\twrongSequenceAnswers.add(GuessRevealerConstants.LOWER);\n\t\twrongSequenceAnswers.add(GuessRevealerConstants.LOWER);\n\t\twrongSequenceAnswers.add(GuessRevealerConstants.LOWER);\n\t\twrongSequenceAnswers.add(GuessRevealerConstants.LOWER);\n\t\twrongSequenceAnswers.add(GuessRevealerConstants.LOWER);\n\t\twrongSequenceAnswers.add(GuessRevealerConstants.LOWER);\n\t\twrongSequenceAnswers.add(GuessRevealerConstants.LOWER);\n\t\twrongSequenceAnswers.add(GuessRevealerConstants.LOWER);\n\t\twrongSequenceAnswers.add(GuessRevealerConstants.HIGHER);\n\t\twrongSequenceAnswers.add(GuessRevealerConstants.HIGHER);\n\t\twrongSequenceAnswers.add(GuessRevealerConstants.HIGHER);\n\t\twrongSequenceAnswers.add(GuessRevealerConstants.LOWER);\n\t\twrongSequenceAnswers.add(GuessRevealerConstants.HIGHER);\n\t\twrongSequenceAnswers.add(GuessRevealerConstants.END);\n\t\t\n\t\twrongSeqCount = wrongSequenceAnswers.size();\n\t\t\n\t}", "public void fillQuestionsTable() {\n\n //Hard Questions\n Questions q1 = new Questions(\"The redshift of a distant galaxy is 0·014. According to Hubble’s law, the distance of the galaxy from Earth is? \", \" 9·66 × 10e-12 m\", \" 9·32 × 10e27 m\", \"1·83 × 10e24 m\", \"1·30 × 10e26 m \", 3);\n addQuestion(q1);\n Questions q2 = new Questions(\"A ray of monochromatic light passes from air into water. The wavelength of this light in air is 589 nm. The speed of this light in water is? \", \" 2·56 × 10e2 m/s \", \"4·52 × 10e2 m/s\", \"4·78 × 10e2 m/s\", \"1·52 × 10e2 m/s\", 2);\n addQuestion(q2);\n Questions q3 = new Questions(\"A car is moving at a speed of 2·0 m s−1. The car now accelerates at 4·0 m s−2 until it reaches a speed of 14 m s−1. The distance travelled by the car during this acceleration is\", \"1.5m\", \"18m\", \"24m\", \"25m\", 3);\n addQuestion(q3);\n Questions q4 = new Questions(\"A spacecraft is travelling at 0·10c relative to a star. \\nAn observer on the spacecraft measures the speed of light emitted by the star to be?\", \"0.90c\", \"1.00c\", \"1.01c\", \"0.99c\", 2);\n addQuestion(q4);\n Questions q5 = new Questions(\"Measurements of the expansion rate of the Universe lead to the conclusion that the rate of expansion is increasing. Present theory proposes that this is due to? \", \"Redshift\", \"Dark Matter\", \"Dark Energy\", \"Gravity\", 3);\n addQuestion(q5);\n Questions q6 = new Questions(\"A block of wood slides with a constant velocity down a slope. The slope makes an angle of 30º with the horizontal axis. The mass of the block is 2·0 kg. The magnitude of the force of friction acting on the block is?\" , \"1.0N\", \"2.0N\", \"9.0N\", \"9.8N\", 4);\n addQuestion(q6);\n Questions q7 = new Questions(\"A planet orbits a star at a distance of 3·0 × 10e9 m. The star exerts a gravitational force of 1·6 × 10e27 N on the planet. The mass of the star is 6·0 × 10e30 kg. The mass of the planet is? \", \"2.4 x 10e14 kg\", \"3.6 x 10e25 kg\", \"1.2 x 10e16 kg\", \"1.6 x 10e26 kg\", 2);\n addQuestion(q7);\n Questions q8 = new Questions(\"Radiation of frequency 9·00 × 10e15 Hz is incident on a clean metal surface. The maximum kinetic energy of a photoelectron ejected from this surface is 5·70 × 10e−18 J. The work function of the metal is?\", \"2.67 x 10e-19 J\", \"9.10 x 10e-1 J\", \"1.60 x 10e-18 J\", \"4.80 x 10e-2 J\", 1);\n addQuestion(q8);\n Questions q9 = new Questions(\"The irradiance of light from a point source is 32 W m−2 at a distance of 4·0 m from the source. The irradiance of the light at a distance of 16 m from the source is? \", \"1.0 W m-2\", \"8.0 W m-2\", \"4.0 W m-2\", \"2.0 W m-2\", 4);\n addQuestion(q9);\n Questions q10 = new Questions(\"A person stands on a weighing machine in a lift. When the lift is at rest, the reading on the weighing machine is 700 N. The lift now descends and its speed increases at a constant rate. The reading on the weighing machine...\", \"Is a constant value higher than 700N. \", \"Is a constant value lower than 700N. \", \"Continually increases from 700 N. \", \"Continually decreases from 700 N. \", 2);\n addQuestion(q10);\n\n //Medium Questions\n Questions q11 = new Questions(\"What is Newtons Second Law of Motion?\", \"F = ma\", \"m = Fa\", \"F = a/m\", \"Every action has an equal and opposite reaction\", 1);\n addQuestion(q11);\n Questions q12 = new Questions(\"In s = vt, what does s stand for?\", \"Distance\", \"Speed\", \"Sin\", \"Displacement\", 4);\n addQuestion(q12);\n Questions q13 = new Questions(\"An object reaches terminal velocity when...\", \"Forward force is greater than the frictional force.\", \"All forces acting on that object are equal.\", \"Acceleration starts decreasing.\", \"Acceleration is greater than 0\", 2);\n addQuestion(q13);\n Questions q14 = new Questions(\"An Elastic Collision is where?\", \"There is no loss of Kinetic Energy.\", \"There is a small loss in Kinetic Energy.\", \"There is an increase in Kinetic Energy.\", \"Some Kinetic Energy is transferred to another type.\", 1);\n addQuestion(q14);\n Questions q15 = new Questions(\"The speed of light is?\", \"Different for all observers.\", \"The same for all observers. \", \"The same speed regardless of the medium it is travelling through. \", \"Equal to the speed of sound.\", 2);\n addQuestion(q15);\n Questions q16 = new Questions(\"What is redshift?\", \"Light moving to us, shifting to red. \", \"A dodgy gear change. \", \"Light moving away from us shifting to longer wavelengths.\", \"Another word for dark energy. \", 3);\n addQuestion(q16);\n Questions q17 = new Questions(\"Which law allows us to estimate the age of the universe?\", \"Newtons 3rd Law \", \"The Hubble-Lemaitre Law \", \"Planck's Law \", \"Wien's Law \", 2);\n addQuestion(q17);\n Questions q18 = new Questions(\"The standard model...\", \"Models how time interacts with space. \", \"Describes how entropy works. \", \"Is the 2nd Law of Thermodynamics. \", \"Describes the fundamental particles of the universe and how they interact\", 4);\n addQuestion(q18);\n Questions q19 = new Questions(\"The photoelectric effect gives evidence for?\", \"The wave model of light. \", \"The particle model of light. \", \"The speed of light. \", \"The frequency of light. \", 2);\n addQuestion(q19);\n Questions q20 = new Questions(\"AC is a current which...\", \"Doesn't change direction. \", \"Is often called variable current. \", \"Is sneaky. \", \"Changes direction and instantaneous value with time. \", 4);\n addQuestion(q20);\n\n //Easy Questions\n Questions q21 = new Questions(\"What properties does light display?\", \"Wave\", \"Particle\", \"Both\", \"Neither\", 3);\n addQuestion(q21);\n Questions q22 = new Questions(\"In V = IR, what does V stand for?\", \"Velocity\", \"Voltage\", \"Viscosity\", \"Volume\", 2);\n addQuestion(q22);\n Questions q23 = new Questions(\"The abbreviation rms typically stands for?\", \"Round mean sandwich. \", \"Random manic speed. \", \"Root manic speed. \", \"Root mean squared. \", 4);\n addQuestion(q23);\n Questions q24 = new Questions(\"Path Difference = \", \"= (m/λ) or (m + ½)/λ where m = 0,1,2…\", \"= mλ or (m + ½) λ where m = 0,1,2…\", \"= λ / m or (λ + ½) / m where m = 0,1,2…\", \" = mλ or (m + ½) λ where m = 0.5,1.5,2.5,…\", 2);\n addQuestion(q24);\n Questions q25 = new Questions(\"How many types of quark are there?\", \"6\", \"4 \", \"8\", \"2\", 1);\n addQuestion(q25);\n Questions q26 = new Questions(\"A neutrino is a type of?\", \"Baryon\", \"Gluon\", \"Lepton\", \"Quark\", 3);\n addQuestion(q26);\n Questions q27 = new Questions(\"A moving charge produces:\", \"A weak field\", \"An electric field\", \"A strong field\", \"Another moving charge\", 2);\n addQuestion(q27);\n Questions q28 = new Questions(\"What contains nuclear fusion reactors?\", \"A magnetic field\", \"An electric field\", \"A pool of water\", \"Large amounts of padding\", 1);\n addQuestion(q28);\n Questions q29 = new Questions(\"What is the critical angle of a surface?\", \"The incident angle where the angle of refraction is 45 degrees.\", \"The incident angle where the angle of refraction is 90 degrees.\", \"The incident angle where the angle of refraction is 135 degrees.\", \"The incident angle where the angle of refraction is 180 degrees.\", 2);\n addQuestion(q29);\n Questions q30 = new Questions(\"Which is not a type of Lepton?\", \"Electron\", \"Tau\", \"Gluon\", \"Muon\", 3);\n addQuestion(q30);\n }", "@Test\n public void case5SortReversedSequence(){\n //Completely reverse sorted array\n int[] testArray = {1,2,3};\n SortDemoData data3 = new SortDemoData() ;\n data3.initializeArray(\"3 2 1\");\n assertTrue(map.get(algoUnderTest)+\" Before Sort ...First Element\",data3.myArray[2].key == testArray[0]);\n assertTrue(map.get(algoUnderTest)+\" Before Sort ...Second Element\",data3.myArray[1].key == testArray[1]);\n assertTrue(map.get(algoUnderTest)+\" Before Sort ...Third Element\",data3.myArray[0].key == testArray[2]);\n\n data3.runAlgo(algoUnderTest);\n\n if(algoUnderTest != 0)\n {\n assertTrue(map.get(algoUnderTest)+\" After Sort ...First Element\",data3.myArray[0].key == testArray[0]);\n assertTrue(map.get(algoUnderTest)+\" After Sort ...Second Element\",data3.myArray[1].key == testArray[1]);\n assertTrue(map.get(algoUnderTest)+\" After Sort ...Third Element\",data3.myArray[2].key == testArray[2]);\n }\n else {\n \t assertFalse(map.get(algoUnderTest)+\" After Sort ...First Element\",data3.myArray[0].key == testArray[0]);\n assertFalse(map.get(algoUnderTest)+\" After Sort ...Second Element\",data3.myArray[1].key == testArray[1]);\n assertFalse(map.get(algoUnderTest)+\" After Sort ...Third Element\",data3.myArray[2].key == testArray[2]);\n }\n \n }", "private void setUpQuestions(){\n if (index == questions.size()){ //if no more questions, jumps to the endGame\n endGame();\n }else {\n currentQuestion = questions.get(index);\n\n lblQuestion.setText(currentQuestion.getQuestion());\n imgPicture.setImageResource(currentQuestion.getPicture());\n btnRight.setText(currentQuestion.getOption1());\n btnLeft.setText(currentQuestion.getOption2());\n index++;\n }\n }", "@Test(priority = 2)\n public void testVerifyQuestionOne() {\n\t\tassertTrue(true);\n }", "private void settingQuestion() {\n\n int[] setWord = {0, 0, 0, 0, 0};\n int[] setPos = {0, 0, 0, 0};\n int[] setBtn = {0, 0, 0, 0};\n\n Random ans = new Random();\n int wordNum = ans.nextInt(vocabularyLesson.size());\n //answer = vocabularyLesson.get(wordNum).getMean();\n word = vocabularyLesson.get(wordNum).getWord();\n vocabularyID = vocabularyLesson.get(wordNum).getId();\n answer = word;\n\n Practice practice = pc.getPracticeById(vocabularyID);\n if (practice != null) {\n Log.d(\"idVocabulary\", practice.getSentence());\n question.setText(practice.getSentence());\n }\n\n\n // Random position contain answer\n setWord[wordNum] = 1;\n Random p = new Random();\n int pos = p.nextInt(4);\n if (pos == 0) {\n word1.setText(word);\n setBtn[0] = 1;\n }\n if (pos == 1) {\n word2.setText(word);\n setBtn[1] = 1;\n }\n if (pos == 2) {\n word3.setText(word);\n setBtn[2] = 1;\n }\n if (pos == 3) {\n word4.setText(word);\n setBtn[3] = 1;\n }\n setPos[pos] = 1;\n\n // Random 3 position contain 3 answer\n for (int i = 0; i < 3; i++) {\n Random ques = new Random();\n int num = ques.nextInt(5);\n int p1 = ques.nextInt(4);\n while (setWord[num] == 1 || setPos[p1] == 1) {\n num = ques.nextInt(5);\n p1 = ques.nextInt(4);\n }\n String wordIncorrect = vocabularyLesson.get(num).getWord();\n setWord[num] = 1;\n setPos[p1] = 1;\n if (setBtn[p1] == 0 && p1 == 0) {\n word1.setText(wordIncorrect);\n setBtn[0] = 1;\n }\n if (setBtn[p1] == 0 && p1 == 1) {\n word2.setText(wordIncorrect);\n setBtn[1] = 1;\n }\n if (setBtn[p1] == 0 && p1 == 2) {\n word3.setText(wordIncorrect);\n setBtn[2] = 1;\n }\n if (setBtn[p1] == 0 && p1 == 3) {\n word4.setText(wordIncorrect);\n setBtn[3] = 1;\n }\n }\n\n }", "public void sortByQnNum() {\r\n\t\tfor (int j = 0; j < displayingList.size() - 1; j++) {\r\n\t\t\tfor (int i = 0; i < displayingList.size() - j - 1; i++) {\r\n\t\t\t\tif (displayingList.get(i).getQnNum() > displayingList.get(i + 1).getQnNum()) {\r\n\t\t\t\t\tswapPosition(displayingList, i, i + 1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void quickSortTest(){\n\t\tTransformer soundwave = new Transformer(\"Soundwave\", 'D', new int[] {8,9,2,6,7,5,6,10});\n\t\tTransformer bluestreak = new Transformer(\"Bluestreak\", 'A', new int[] {6,6,7,9,5,2,9,7});\n\t\tTransformer hubcap = new Transformer(\"Hubcap\", 'A', new int[] {4,4,4,4,4,4,4,4});\n\t\tTransformer abominus = new Transformer(\"Abominus\", 'D', new int[] {10,1,3,10,5,10,8,4});\n\t\t\n\t\tgame.addTransformer(soundwave);\n\t\tgame.addTransformer(bluestreak);\n\t\tgame.addTransformer(hubcap);\n\t\tgame.addTransformer(abominus);\n\t\t\n\t\tgame.sortCompetitorsByRank();\n\t\tgame.printSortedRoster();\n\t}", "public Questions simulateQuestion(){\n return this._testQuestions.remove(0);\n }", "@Test\n public void initializeBasicQuizTest() throws CakeException {\n /*\n QuestionList test = new QuestionList(QuestionType.BASIC);\n\n //check if there are the correct number of test questions\n assertEquals(test.getQuestionList().size(), MAX_QUESTIONS);\n\n // check if there are any duplicate questions\n Set<Question> set = new HashSet<>(test.getQuestionList());\n assertEquals(set.size(), test.getQuestionList().size());\n */\n }", "public void randomize(){\r\n\t\tfor(int i = 0;i<this.myQuestions.size();i++){\r\n\t\t\tthis.myQuestions.get(i).randomize();\r\n\t\t}\r\n\t\tCollections.shuffle(this.myQuestions);\r\n\t}", "@Test(priority = 4)\n public void testVerifyQuestionThree() {\n\t\tassertTrue(true);\n }", "private void fillQuestionsTable() {\n Question q1 = new Question(\"Who is NOT a Master on the Jedi council?\", \"Anakin Skywalker\", \"Obi Wan Kenobi\", \"Mace Windu\", \"Yoda\", 1);\n Question q2 = new Question(\"Who was Anakin Skywalker's padawan?\", \"Kit Fisto\", \"Ashoka Tano\", \"Barris Ofee\", \"Jacen Solo\",2);\n Question q3 = new Question(\"What Separatist leader liked to make find additions to his collection?\", \"Pong Krell\", \"Count Dooku\", \"General Grevious\", \"Darth Bane\", 3);\n Question q4 = new Question(\"Choose the correct Response:\\n Hello There!\", \"General Kenobi!\", \"You are a bold one!\", \"You never should have come here!\", \"You turned her against me!\", 1);\n Question q5 = new Question(\"What ancient combat technique did Master Obi Wan Kenobi use to his advantage throughout the Clone Wars?\", \"Kendo arts\", \"The High ground\", \"Lightsaber Form VIII\", \"Force healing\", 2);\n Question q6 = new Question(\"What was the only surviving member of Domino squad?\", \"Fives\", \"Heavy\", \"Echo\", \"Jesse\", 3);\n Question q7 = new Question(\"What Jedi brutally murdered children as a part of his descent to become a Sith?\", \"Quinlan Vos\", \"Plo Koon\", \"Kit Fisto\", \"Anakin Skywalker\", 4);\n Question q8 = new Question(\"What Sith was the first to reveal himself to the Jedi after a millenia and was subsquently cut in half shortly after?\", \"Darth Plagieus\", \"Darth Maul\", \"Darth Bane\", \"Darth Cadeus\", 2);\n Question q9 = new Question(\"What 4 armed creature operates a diner on the upper levels of Coruscant?\", \"Dexter Jettster\", \"Cad Bane\", \"Aurua Sing\", \"Dorme Amidala\", 1);\n Question q10 = new Question(\"What ruler fell in love with an underage boy and subsequently married him once he became a Jedi?\", \"Aurua Sing\", \"Duttchess Satine\", \"Mara Jade\", \"Padme Amidala\", 4);\n\n // adds them to the list\n addQuestion(q1);\n addQuestion(q2);\n addQuestion(q3);\n addQuestion(q4);\n addQuestion(q5);\n addQuestion(q6);\n addQuestion(q7);\n addQuestion(q8);\n addQuestion(q9);\n addQuestion(q10);\n }", "public Survey() {\n\t\tthis.questions = new TreeSet<Ordered_question>( new Comparator<Ordered_question>() {\n\t\t public int compare(Ordered_question q1, Ordered_question q2) {\n\t\t \treturn Integer.compare(q1.getOrder(), q2.getOrder());\n\t\t }\n\t\t}) ;\n\t}", "public void addAnsweredQuestions (int index) {\n\n\t\t_answeredQuestions[index]=_answeredQuestions[index]+1;\n\t\tBashCmdUtil.bashCmdNoOutput(\"rm data/answered_questions\");\n\t\tBashCmdUtil.bashCmdNoOutput(\"touch data/answered_questions\");\n\t\tString answeredQuestions = \"\";\n\t\tfor (int i = 0;i<5;i++) {\n\t\t\tansweredQuestions = answeredQuestions + \" \" + String.valueOf(_answeredQuestions[i]);\n\t\t}\n\t\tBashCmdUtil.bashCmdNoOutput(String.format(\"echo \\\"%s\\\" >> data/answered_questions\", answeredQuestions));\n\n\n\n\t}", "private void clearQuizQuestions() {\n RadioGroup questionOneRadioGroup = (RadioGroup) findViewById(R.id.question_one_radio_group);\n questionOneRadioGroup.clearCheck();\n\n RadioGroup questionTwoRadioGroup = (RadioGroup) findViewById(R.id.question_two_radio_group);\n questionTwoRadioGroup.clearCheck();\n\n RadioGroup questionThreeRadioGroup = (RadioGroup) findViewById(R.id.question_three_radio_group);\n questionThreeRadioGroup.clearCheck();\n\n RadioGroup questionFourRadioGroup = (RadioGroup) findViewById(R.id.question_four_radio_group);\n questionFourRadioGroup.clearCheck();\n\n questionFiveCheckBoxA.setChecked(false);\n questionFiveCheckBoxB.setChecked(false);\n questionFiveCheckBoxC.setChecked(false);\n questionFiveCheckBoxD.setChecked(false);\n\n RadioGroup questionSixRadioGroup = (RadioGroup) findViewById(R.id.question_six_radio_group);\n questionSixRadioGroup.clearCheck();\n\n RadioGroup questionSevenRadioGroup = (RadioGroup) findViewById(R.id.question_seven_radio_group);\n questionSevenRadioGroup.clearCheck();\n\n RadioGroup questionEightRadioGroup = (RadioGroup) findViewById(R.id.question_eight_radio_group);\n questionEightRadioGroup.clearCheck();\n\n RadioGroup questionNineRadioGroup = (RadioGroup) findViewById(R.id.question_nine_radio_group);\n questionNineRadioGroup.clearCheck();\n\n questionTenEditText.getText().clear();\n }", "private void nextQuestion() {\n\n // increment current question index\n currentQuestionIndex++;\n\n // if the current question index is smaller than the size of the quiz list\n if (currentQuestionIndex < quizList.size()) {\n\n // clear the possible answers\n possibleAnswers.clear();\n\n // grab the definition of current question, assign the correct answer variable\n // and add it to the list of possible answers.\n definition = quizList.get(currentQuestionIndex)[0];\n correctAnswer = quizMap.get(definition);\n possibleAnswers.add(correctAnswer);\n\n // while there's less than 4 possible answers, get a random answer\n // and if it hasn't already been added, add it to the list.\n while (possibleAnswers.size() < 4) {\n String answer = quizList.get(new Random().nextInt(quizList.size() - 1))[1];\n if (!possibleAnswers.contains(answer)) {\n possibleAnswers.add(answer);\n }\n }\n\n // shuffle possible answers so they display in a random order\n Collections.shuffle(possibleAnswers);\n } else {\n // if the question index is out of bounds, set quiz as finished\n quizFinished = true;\n }\n }", "@Test\n\tpublic void testQuestion() {\n\t\tquestions.setQuestions(\"Do you have any changes?\");\n\t\tassertEquals(\"Do you have any changes?\",questions.getQuestions());\n\t}", "@Test\n\tpublic void updateTestPaperQuestion() throws Exception {\n\t}", "@Test\n\tpublic void testGetAllQuestions() {\n\t\tList<QnaQuestion> questions = questionLogic.getAllQuestions(LOCATION1_ID);\n\t\tAssert.assertEquals(5, questions.size());\n\t\tAssert.assertTrue(questions.contains(tdp.question1_location1));\n\t\tAssert.assertTrue(questions.contains(tdp.question2_location1));\n\t\tAssert.assertTrue(questions.contains(tdp.question3_location1));\n\t\tAssert.assertTrue(questions.contains(tdp.question4_location1));\n\t\tAssert.assertTrue(questions.contains(tdp.question5_location1));\n\t}", "private void setFAQs () {\n\n QuestionDataModel question1 = new QuestionDataModel(\n \"What is Psychiatry?\", \"Psychiatry deals with more extreme mental disorders such as Schizophrenia, where a chemical imbalance plays into an individual’s mental disorder. Issues coming from the “inside” to “out”\\n\");\n QuestionDataModel question2 = new QuestionDataModel(\n \"What Treatments Do Psychiatrists Use?\", \"Psychiatrists use a variety of treatments – including various forms of psychotherapy, medications, psychosocial interventions, and other treatments (such as electroconvulsive therapy or ECT), depending on the needs of each patient.\");\n QuestionDataModel question3 = new QuestionDataModel(\n \"What is the difference between psychiatrists and psychologists?\", \"A psychiatrist is a medical doctor (completed medical school and residency) with special training in psychiatry. A psychologist usually has an advanced degree, most commonly in clinical psychology, and often has extensive training in research or clinical practice.\");\n QuestionDataModel question4 = new QuestionDataModel(\n \"What is Psychology ?\", \"Psychology is the scientific study of the mind and behavior, according to the American Psychological Association. Psychology is a multifaceted discipline and includes many sub-fields of study such areas as human development, sports, health, clinical, social behavior, and cognitive processes.\");\n QuestionDataModel question5 = new QuestionDataModel(\n \"What is psychologists goal?\", \"Those with issues coming from the “outside” “in” (i.e. lost job and partner so feeling depressed) are better suited with psychologists, they offer guiding you into alternative and healthier perspectives in tackling daily life during ‘talk therapy’\");\n QuestionDataModel question6 = new QuestionDataModel(\n \"What is the difference between psychiatrists and psychologists?\", \"Psychiatrists can prescribe and psychologists cannot, they may be able to build a report and suggest medications to a psychiatrist but it is the psychiatrist that has the final say.\");\n QuestionDataModel question7 = new QuestionDataModel(\n \"What is a behavioural therapist?\", \"A behavioural therapist such as an ABA (“Applied Behavioural Analysis”) therapist or an occupational therapist focuses not on the psychological but rather the behavioural aspects of an issue. In a sense, it can be considered a “band-aid” fix, however, it has consistently shown to be an extremely effective method in turning maladaptive behaviours with adaptive behaviours.\");\n QuestionDataModel question8 = new QuestionDataModel(\n \"Why behavioral therapy?\", \"Cognitive-behavioral therapy is used to treat a wide range of issues. It's often the preferred type of psychotherapy because it can quickly help you identify and cope with specific challenges. It generally requires fewer sessions than other types of therapy and is done in a structured way.\");\n QuestionDataModel question9 = new QuestionDataModel(\n \"Is behavioral therapy beneficial?\", \"Psychiatrists can prescribe and psychologists cannot, they may be able to build a report and suggest medications to a psychiatrist but it is the psychiatrist that has the final say.\");\n QuestionDataModel question10 = new QuestionDataModel(\n \"What is alternative therapy?\", \"Complementary and alternative therapies typically take a holistic approach to your physical and mental health.\");\n QuestionDataModel question11 = new QuestionDataModel(\n \"Can they treat mental health problems?\", \"Complementary and alternative therapies can be used as a treatment for both physical and mental health problems. The particular problems that they can help will depend on the specific therapy that you are interested in, but many can help to reduce feelings of depression and anxiety. Some people also find they can help with sleep problems, relaxation, and feelings of stress.\");\n QuestionDataModel question12 = new QuestionDataModel(\n \"What else should I consider before starting therapy?\", \"Only you can decide whether a type of treatment feels right for you, But it might help you to think about: What do I want to get out of it? Could this therapy be adapted to meet my needs?\");\n\n ArrayList<QuestionDataModel> faqs1 = new ArrayList<>();\n ArrayList<QuestionDataModel> faqs2 = new ArrayList<>();\n ArrayList<QuestionDataModel> faqs3 = new ArrayList<>();\n ArrayList<QuestionDataModel> faqs4 = new ArrayList<>();\n faqs1.add(question1);\n faqs1.add(question2);\n faqs1.add(question3);\n faqs2.add(question4);\n faqs2.add(question5);\n faqs2.add(question6);\n faqs3.add(question7);\n faqs3.add(question8);\n faqs3.add(question9);\n faqs4.add(question10);\n faqs4.add(question11);\n faqs4.add(question12);\n\n\n CategoryDataModel category1 = new CategoryDataModel(R.drawable.psychaitry,\n \"Psychiatry\",\n \"Psychiatry is the medical specialty devoted to the diagnosis, prevention, and treatment of mental disorders.\",\n R.drawable.psychiatry_q);\n\n CategoryDataModel category2 = new CategoryDataModel(R.drawable.psychology,\n \"Psychology\",\n \"Psychology is the science of behavior and mind which includes the study of conscious and unconscious phenomena.\",\n R.drawable.psychology_q);\n\n CategoryDataModel category3 = new CategoryDataModel(R.drawable.behavioral_therapy,\n \"Behavioral Therapy\",\n \"Behavior therapy is a broad term referring to clinical psychotherapy that uses techniques derived from behaviorism\",\n R.drawable.behaviour_therapy_q);\n CategoryDataModel category4 = new CategoryDataModel(R.drawable.alternative_healing,\n \"Alternative Therapy\",\n \"Complementary and alternative therapies typically take a holistic approach to your physical and mental health.\",\n R.drawable.alternative_therapy_q);\n\n String FAQ1 = \"What is Psychiatry?\";\n String FAQ2 = \"What is Psychology?\";\n String FAQ3 = \"What is Behavioral Therapy?\";\n String FAQ4 = \"What is Alternative Therapy?\";\n String FAQ5 = \"Report a problem\";\n\n FAQsDataModel FAQsDataModel1 = new FAQsDataModel(FAQ1, category1,faqs1);\n FAQsDataModel FAQsDataModel2 = new FAQsDataModel(FAQ2, category2,faqs2);\n FAQsDataModel FAQsDataModel3 = new FAQsDataModel(FAQ3, category3,faqs3);\n FAQsDataModel FAQsDataModel4 = new FAQsDataModel(FAQ4, category4,faqs4);\n FAQsDataModel FAQsDataModel5 = new FAQsDataModel(FAQ5, category4,faqs4);\n\n\n\n if (mFAQs.isEmpty()) {\n\n mFAQs.add(FAQsDataModel1);\n mFAQs.add(FAQsDataModel2);\n mFAQs.add(FAQsDataModel3);\n mFAQs.add(FAQsDataModel4);\n mFAQs.add(FAQsDataModel5);\n\n\n }\n }", "public void setAnsweredQuestions() {\n\t\tFile file = new File(\"data/answered_questions\");\n\t\tif(!file.exists()) {\n\t\t\tBashCmdUtil.bashCmdNoOutput(\"touch data/answered_questions\");\n\n\t\t\tString answeredQuestions = \"\";\n\t\t\tfor (int i = 0;i<5;i++) {\n\t\t\t\tansweredQuestions = answeredQuestions + \" \" + String.valueOf(_answeredQuestions[i]);\n\t\t\t}\n\t\t\tBashCmdUtil.bashCmdNoOutput(String.format(\"echo \\\"%s\\\" >> data/answered_questions\", answeredQuestions));\n\n\t\t}\n\t\tScanner myReader;\n\t\ttry {\n\t\t\tBashCmdUtil.bashCmdNoOutput(\"touch data/answered_questions\");\n\t\t\tmyReader = new Scanner(file);\n\t\t\twhile(myReader.hasNextLine()) {\n\t\t\t\tString fileLine = myReader.nextLine();\n\t\t\t\tString[] splitFileLine = fileLine.trim().split(\" \");\n\t\t\t\tfor (int i=0; i<5; i++) {\n\t\t\t\t\t_answeredQuestions[i] = Integer.parseInt(splitFileLine[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tmyReader.close();\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}", "private void addQuestion() {\n Question q = new Question(\n \"¿Quien propuso la prueba del camino básico ?\", \"Tom McCabe\", \"Tom Robert\", \"Tom Charlie\", \"Tom McCabe\");\n this.addQuestion(q);\n\n\n Question q1 = new Question(\"¿Qué es una prueba de Caja negra y que errores desean encontrar en las categorías?\", \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\", \"esta basada en la funcionalidad de los módulos del programa\", \" determina la funcionalidad del sistema\", \" determina la funcionalidad del sistema\");\n this.addQuestion(q1);\n Question q2 = new Question(\"¿Qué es la complejidad ciclomática es una métrica de calidad software?\", \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\", \"esta basada en la funcionalidad de los módulos del programa\", \"basada en el cálculo del número\", \"basada en el cálculo del número\");\n this.addQuestion(q2);\n //preguntas del quiz II\n Question q3=new Question(\"Las pruebas de caja blanca buscan revisar los caminos, condiciones, \" +\n \"particiones de control y datos, de las funciones o módulos del sistema; \" +\n \"para lo cual el grupo de diseño de pruebas debe:\",\n \"Conformar un grupo de personas para que use el sistema nuevo\",\n \"Ejecutar sistema nuevo con los datos usados en el sistema actual\",\n \"Generar registro de datos que ejecute al menos una vez cada instrucción\",\n \"Generar registro de datos que ejecute al menos una vez cada instrucción\");\n this.addQuestion(q3);\n Question q4=new Question(\"¿Las pruebas unitarias son llamadas?\",\n \"Pruebas del camino\", \"Pruebas modulares\",\n \"Pruebas de complejidad\", \"Pruebas modulares\");\n this.addQuestion(q4);\n Question q5=new Question(\"¿Qué es una prueba de camino básico?\",\n \"Hace una cobertura de declaraciones del código\",\n \"Permite determinar si un modulo esta listo\",\n \"Técnica de pueba de caja blanca\",\n \"Técnica de pueba de caja blanca\" );\n this.addQuestion(q5);\n Question q6=new Question(\"Prueba de camino es propuesta:\", \"Tom McCabe\", \"McCall \", \"Pressman\",\n \"Tom McCabe\");\n this.addQuestion(q6);\n Question q7=new Question(\"¿Qué es complejidad ciclomatica?\",\"Grafo de flujo\",\"Programming\",\n \"Metrica\",\"Metrica\");\n this.addQuestion(q7);\n //preguntas del quiz III\n Question q8 = new Question(\n \"¿Se le llama prueba de regresión?\", \"Se tienen que hacer nuevas pruebas donde se han probado antes\",\n \"Manten informes detallados de las pruebas\", \"Selección de los usuarios que van a realizar las pruebas\",\n \"Se tienen que hacer nuevas pruebas donde se han probado antes\");\n this.addQuestion(q8);\n Question q9 = new Question(\"¿Cómo se realizan las pruebas de regresión?\",\n \"Selección de los usuarios que van a realizar las pruebas\",\n \"Se tienen que hacer nuevas pruebas donde se han probado antes\", \"A través de herramientas de automatización de pruebas\", \"A través de herramientas de automatización de pruebas\");\n this.addQuestion(q9);\n Question q10 = new Question(\"¿Cuándo ya hay falta de tiempo para ejecutar casos de prueba ya ejecutadas se dejan?\",\n \"En primer plano\", \"En segundo plano\", \"En tercer plano\", \"En segundo plano\");\n this.addQuestion(q10);\n //preguntas del quiz IV\n Question q11 = new Question(\n \"¿En qué se enfocan las pruebas funcionales?\",\n \"Enfocarse en los requisitos funcionales\", \"Enfocarse en los requisitos no funcionales\",\n \"Verificar la apropiada aceptación de datos\", \"Enfocarse en los requisitos funcionales\");\n this.addQuestion(q11);\n Question q12 = new Question(\"Las metas de estas pruebas son:\", \"Verificar la apropiada aceptación de datos\",\n \"Verificar el procesamiento\", \"Verificar la apropiada aceptación de datos, procedimiento y recuperación\",\n \"Verificar la apropiada aceptación de datos, procedimiento y recuperación\");\n this.addQuestion(q12);\n Question q13 = new Question(\"¿En qué estan basadas este tipo de pruebas?\",\n \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\",\n \"Esta basada en la funcionalidad de los módulos del programa\",\n \"Técnicas de cajas negra\", \"Técnicas de cajas negra\");\n this.addQuestion(q13);\n //preguntas del quiz V\n Question q14 = new Question(\n \"¿Cúal es el objetivo de esta técnica?\", \"Identificar errores introducidos por la combinación de programas probados unitariamente\",\n \"Decide qué acciones tomar cuando se descubren problemas\",\n \"Verificar que las interfaces entre las componentes de software funcionan correctamente\",\n \"Identificar errores introducidos por la combinación de programas probados unitariamente\");\n this.addQuestion(q14);\n Question q15 = new Question(\"¿Cúal es la descripción de la Prueba?\",\n \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\",\n \"Esta basada en la funcionalidad de los módulos del programa\",\n \"Describe cómo verificar que las interfaces entre las componentes de software funcionan correctamente\",\n \"Describe cómo verificar que las interfaces entre las componentes de software funcionan correctamente\");\n this.addQuestion(q15);\n Question q16 = new Question(\"Por cada caso de prueba ejecutado:\",\n \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\",\n \"Esta basada en la funcionalidad de los módulos del programa\",\n \"Comparar el resultado esperado con el resultado obtenido\", \"Comparar el resultado esperado con el resultado obtenido\");\n this.addQuestion(q16);\n //preguntas del quiz VI\n Question q17 = new Question(\n \"Este tipo de pruebas sirven para garantizar que la calidad del código es realmente óptima:\",\n \"Pruebas Unitarias\", \"Pruebas de Calidad de Código\",\n \"Pruebas de Regresión\", \"Pruebas de Calidad de Código\");\n this.addQuestion(q17);\n Question q18 = new Question(\"Pruebas de Calidad de código sirven para: \",\n \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\",\n \"Verificar que las especificaciones de diseño sean alcanzadas\",\n \"Garantizar la probabilidad de tener errores o bugs en la codificación\", \"Garantizar la probabilidad de tener errores o bugs en la codificación\");\n this.addQuestion(q18);\n Question q19 = new Question(\"Este análisis nos indica el porcentaje que nuestro código desarrollado ha sido probado por las pruebas unitarias\",\n \"Cobertura\", \"Focalización\", \"Regresión\", \"Cobertura\");\n this.addQuestion(q19);\n\n Question q20 = new Question( \"¿Qué significa V(G)?\",\n \"Número de Regiones\", \"Número de Aristas\", \"Número de Nodos\", \"Número de Regiones\");\n this.addQuestion(q20);\n\n Question q21 = new Question( \"¿Qué significa A?\",\n \"Número de Regiones\", \"Número de Aristas\", \"Número de Nodos\", \"Número de Aristas\");\n this.addQuestion(q21);\n\n Question q22 = new Question( \"¿Qué significa N?\",\n \"Número de Regiones\", \"Número de Aristas\", \"Número de Nodos\", \"Número de Nodos\");\n this.addQuestion(q22);\n\n Question q23 = new Question( \"¿Qué significa P?\",\n \"Número de Regiones\", \"Número de Aristas\", \"Número de Nodos Predicado\", \"Número de Nodos Predicado\");\n this.addQuestion(q23);\n Question q24 = new Question( \"De cuantás formas se puede calcular la complejidad ciclomatica V(G):\",\n \"3\", \"1\", \"2\", \"3\");\n this.addQuestion(q24);\n\n // END\n }", "@BeforeClass\n public static void setup() {\n TopQuestionsJsonStore.topQuestions.put(QUESTION_TEXT_TO_FAIL_RESOLUTION, new Question(QUESTION_TEXT_TO_FAIL_RESOLUTION, CLASS_TO_FAIL_RESOLUTION));\n TopQuestionsJsonStore.topQuestions.put(VALID_QUESTION, new Question(VALID_QUESTION, VALID_ANSWER));\n }", "@Test(priority = 3)\n public void testVerifyQuestionTwo() {\n\t\tassertTrue(true);\n }", "private void rearrangeSolution() {\r\n List<Integer> trinity = new ArrayList<Integer>();\r\n trinity.add(0); trinity.add(1); trinity.add(2);\r\n permutateDigits();\r\n for (int i = 0; i<9; i+=3) {\r\n Collections.shuffle(trinity);\r\n swapRow(trinity.get(0)+i, trinity.get(1)+i);\r\n }\r\n for (int i = 0; i<9; i+=3) {\r\n Collections.shuffle(trinity);\r\n swapCol(trinity.get(0)+i, trinity.get(1)+i);\r\n }\r\n }", "private void parseQuestions()\n\t{\n\t\tlog.info(\"Parsing questions\");\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Element> questions_list = doc.selectNodes(\"//document/questions/rows/row\");\n\t\tq_l10ns_node = doc.selectSingleNode(\"//document/question_l10ns/rows\");\n\t\tsq_node = doc.selectSingleNode(\"//document/subquestions/rows\");\n\t\tq_node = doc.selectSingleNode(\"//document/questions/rows\");\n\t\ta_node = doc.selectSingleNode(\"//document/answers/rows\");\n\n\t\tfor (Element question : questions_list) {\n\t\t\tString qid = question.element(\"qid\").getText();\n\t\t\tlog.debug(\"Working on question: \" + qid);\n\t\t\tQuestion q = new Question(qid,\n\t\t\t\t\t\t\t\t\t Integer.parseInt(question.element(\"gid\").getText()),\n\t\t\t\t\t\t\t\t\t question.element(\"type\").getText(),\n\t\t\t\t\t\t\t\t\t q_l10ns_node.selectSingleNode(\"row[qid=\" + qid + \"]/question\").getText(),\n\t\t\t\t\t\t\t\t\t question.element(\"title\").getText(),\n\t\t\t\t\t\t\t\t\t question.element(\"mandatory\").getText().equals(\"N\") ? \"No\" : \"Yes\",\n\t\t\t\t\t\t\t\t\t q_l10ns_node.selectSingleNode(\"row[qid=\" + qid + \"]/language\").getText());\n\n\t\t\t// Add a description, if there is one\n\t\t\tNode desc = q_l10ns_node.selectSingleNode(\"row[qid=\" + q.getQid() + \"]/help\");\n\t\t\tif (desc != null) {\n\t\t\t\tq.setDescription(desc.getText());\n\t\t\t}\n\n\t\t\taddCondition(q);\n\n\t\t\tswitch (q.type) {\n\t\t\t\t// Normal Text Fields\n\t\t\t\tcase \"S\":\n\t\t\t\tcase \"T\":\n\t\t\t\tcase \"U\":\n\t\t\t\t\tq.setType(\"T\");\n\t\t\t\t\tsurvey.addQuestion(q);\n\t\t\t\t\tbreak;\n\t\t\t\t// Date/Time\n\t\t\t\tcase \"D\":\n\t\t\t\t\tdate_time_qids.add(q.getQid());\n\t\t\t\t\tbreak;\n\t\t\t\t// Numeric Input\n\t\t\t\tcase \"N\":\n\t\t\t\t\tif (check_int_only(q)) {\n\t\t\t\t\t\tq.setType(\"I\");\n\t\t\t\t\t}\n\t\t\t\t\tadd_range(q);\n\t\t\t\t\tsurvey.addQuestion(q);\n\t\t\t\t\tbreak;\n\t\t\t\t// Single 5-Point Choice\n\t\t\t\tcase \"5\":\n\t\t\t\t\tq.setType(\"A\");\n\t\t\t\t\tq.setAnswers(new AnswersList(\"5pt.cl\", ClGenerator.getIntCl(5), \"string\", true));\n\t\t\t\t\tsurvey.addQuestion(q);\n\t\t\t\t\tbreak;\n\t\t\t\t// Yes/No\n\t\t\t\tcase \"Y\":\n\t\t\t\t\tq.setType(\"A\");\n\t\t\t\t\tq.setAnswers(new AnswersList(\"YN.cl\", ClGenerator.getYNCl(), \"string\", false));\n\t\t\t\t\tsurvey.addQuestion(q);\n\t\t\t\t\tbreak;\n\t\t\t\t// Gender\n\t\t\t\tcase \"G\":\n\t\t\t\t\tq.setType(\"A\");\n\t\t\t\t\tq.setAnswers(new AnswersList(\"Gender.cl\", ClGenerator.getGenderCl(), \"string\", false));\n\t\t\t\t\tsurvey.addQuestion(q);\n\t\t\t\t\tbreak;\n\t\t\t\t// List with comment\n\t\t\t\tcase \"O\":\n\t\t\t\t\taddComment(q);\n\t\t\t\t// Radio List\n\t\t\t\tcase \"L\":\n\t\t\t\t// Dropdown List\n\t\t\t\tcase \"!\":\n\t\t\t\t\tboolean oth = question.elementText(\"other\").equals(\"Y\");\n\t\t\t\t\tif(oth) {\n\t\t\t\t\t\taddOtherQuestion(q);\n\t\t\t\t\t}\n\t\t\t\t\tq.setType(\"A\");\n\t\t\t\t\tq.setAnswers(new AnswersList(q.getQid() + \".cl\", getAnswerCodesByID(q.getQid(), oth), \"string\", false));\n\t\t\t\t\tsurvey.addQuestion(q);\n\t\t\t\t\tbreak;\n\t\t\t\t// Multiple Texts\n\t\t\t\t// Input On Demand\n\t\t\t\tcase \"Q\":\n\t\t\t\t\taddSubquestions(q, \"T\");\n\t\t\t\t\tbreak;\n\t\t\t\t// Multiple Numeric Inputs\n\t\t\t\tcase \"K\":\n\t\t\t\t\tadd_range(q);\n\t\t\t\t\tif (check_int_only(q)){\n\t\t\t\t\t\taddSubquestions(q, \"I\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\taddSubquestions(q, \"N\");\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t// Dual scale array\n\t\t\t\tcase \"1\":\n\t\t\t\t\tHashMap<String, String>[] code_lists = ClGenerator.getDualScaleCls(q.getQid(), getAnswerIdsByID(q.getQid()), a_node);\n\t\t\t\t\taddSubquestionsWithCL(q, q.getQid() + \".0\", code_lists[0], \"string\", false, \"-0\");\n\t\t\t\t\taddSubquestionsWithCL(q, q.getQid() + \".1\", code_lists[1], \"string\", false, \"-1\");\n\t\t\t\t\tbreak;\n\t\t\t\t// Array by column\n\t\t\t\tcase \"H\":\n\t\t\t\t// Flexible Array\n\t\t\t\tcase \"F\":\n\t\t\t\t\taddSubquestionsWithCL(q, q.getQid().concat(\".cl\"), getAnswerCodesByID(q.getQid(), false), \"string\", false, \"\");\n\t\t\t\t\tbreak;\n\t\t\t\t// 5pt Array\n\t\t\t\tcase \"A\":\n\t\t\t\t\taddSubquestionsWithCL(q, \"5pt.cl\", ClGenerator.getIntCl(5), \"integer\", true, \"\");\n\t\t\t\t\tbreak;\n\t\t\t\t// 10pt Array\n\t\t\t\tcase \"B\":\n\t\t\t\t\taddSubquestionsWithCL(q, \"10pt.cl\", ClGenerator.getIntCl(10), \"integer\", true, \"\");\n\t\t\t\t\tbreak;\n\t\t\t\t// Increase/Same/Decrease Array\n\t\t\t\tcase \"E\":\n\t\t\t\t\taddSubquestionsWithCL(q, \"ISD.cl\", ClGenerator.getISDCL(), \"string\", false, \"\");\n\t\t\t\t\tbreak;\n\t\t\t\t// 10pt Array\n\t\t\t\tcase \"C\":\n\t\t\t\t\taddSubquestionsWithCL(q, \"YNU.cl\", ClGenerator.getYNUCL(), \"string\", false, \"\");\n\t\t\t\t\tbreak;\n\t\t\t\t// Matrix with numerical input\n\t\t\t\tcase \":\":\n\t\t\t\t\tq.setType(\"N\");\n\t\t\t\t\taddQuestionMatrix(q);\n\t\t\t\t\tbreak;\n\t\t\t\t// Matrix with text input\n\t\t\t\tcase \";\":\n\t\t\t\t\tq.setType(\"T\");\n\t\t\t\t\taddQuestionMatrix(q);\n\t\t\t\t\tbreak;\n\t\t\t\t// Multiple Choice (Normal, Bootstrap, Image select)\n\t\t\t\tcase \"M\":\n\t\t\t\t\taddSubquestionsWithCL(q, \"MC.cl\", ClGenerator.getMCCL(), \"string\", false, \"\");\n\t\t\t\t\tif (question.elementTextTrim(\"other\").equals(\"Y\")) {\n\t\t\t\t\t\tq.setQid(q.getQid().concat(\"other\"));\n\t\t\t\t\t\tq.setType(\"T\");\n\t\t\t\t\t\tsurvey.addQuestion(q);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t// MC with comments\n\t\t\t\tcase \"P\":\n\t\t\t\t\taddSubquestionsWithCL(q, \"MC.cl\", ClGenerator.getMCCL(), \"string\", false, \"\");\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tlog.error(\"Question type not supported: \" + q.type);\n\t\t\t}\n\t\t}\n\t}", "public void quiz() {\n\t\t\t\t\tcorrectans = 0;\n\t\t\t\t\tint k = 0;\n\t\t\t\t\tint j = 0;\n\t\t\t\t\tint M = 0;\n\t\t\t\t\tj = readDifficulty();\n\t\t\t\t\tM = readProblemType();\n\t\t\t\t\t//ask the student to solve 10 different problems, as determined by the problem type\n\t\t\t for(int i = 0; i < 10; i++ ) {\n\t\t\t \t//contain two numbers sampled from a uniform random distribution with bounds determined by the problem difficulty\n\t\t\t \tint x = rand.nextInt(j); \n\t\t\t\t int y = rand.nextInt(j);\n\t\t\t\t int O = askquestion(j, M,x,y);\n\t\t\t\t if(M == 4) {\n\t\t\t\t \t float floatans = readdivision();\n\t\t\t\t \tk = divisionsol(floatans, x, y);\n\t\t\t\t }\n\t\t\t\t else {\n\t\t\t int userin = readResponse();\n\t\t\t k = isnanswercorrect(O , userin);\n\t\t\t }\n\t\t\t if(k == 1) {\n\t\t\t \t correctans++;\n\t\t\t }\n\t\t\t }\n\t\t\t int L = 0;\n\t\t\t L = displayCompletionMessage(correctans);\n\t\t\t if ( L == 1) {\n\t\t\t \tquiz();\n\t\t\t }\n\t\t\t else {\n\t\t\t \treturn;\n\t\t\t }\n\t\t\t \n\t\t\t\t}", "protected void constructNewQuestion(){\n arabicWordScoreItem = wordScoreTable.whatWordToLearn();\n arabicWord = arabicWordScoreItem.word;\n correctAnswer = dictionary.get(arabicWord);\n\n for (int i=0;i<wrongAnswers.length;i++){\n int wrongAnswerId;\n String randomArabicWord;\n String wrongAnswer;\n do {\n wrongAnswerId = constructQuestionRandom.nextInt(next_word_index);\n randomArabicWord = dictionary_key_list.get(wrongAnswerId);\n wrongAnswer = dictionary.get(randomArabicWord);\n } while (wrongAnswer.equals(correctAnswer));\n wrongAnswers[i] = wrongAnswer;\n }\n }", "@Test\n void Adventure_ShouldReuseOrderOfRemovedStoryPiecesAndIncrementTheOrderOnlyIfThereAreNoSpareOrdersLeft() {\n for (int i=0; i<5; i++) {\n StoryPiece sp = new StoryPiece();\n defaultAdventure.addStoryPiece(sp);\n }\n\n // Removing StoryPieces with orders 3 and 5\n defaultAdventure.removeStoryPiece(defaultAdventure.getStoryPieces().get(2));\n defaultAdventure.removeStoryPiece(defaultAdventure.getStoryPieces().get(3));\n\n // Adventure should reuse the unassigned orders before incrementing the order\n StoryPiece spWithOrder3 = new StoryPiece();\n StoryPiece spWithOrder5 = new StoryPiece();\n\n defaultAdventure.addStoryPiece(spWithOrder3);\n defaultAdventure.addStoryPiece(spWithOrder5);\n\n // At this point all orders 1-6 should be assigned, so we expect this to have order 7\n StoryPiece newSP = new StoryPiece();\n defaultAdventure.addStoryPiece(newSP);\n\n assertEquals(3, spWithOrder3.getOrder(),\n \"Order not reused - StoryPiece should have order 3\");\n assertEquals(5, spWithOrder5.getOrder(),\n \"Order not reused, StoryPiece should have order 5\");\n assertEquals(7, newSP.getOrder(),\n \"StoryPiece should have been assigned a new incremented order 7.\");\n\n }", "public int getTestOrderHint()\r\n\t\t{\r\n\t\t\treturn 0;\t\r\n\t\t}", "@Test\r\n public void testSubtractionAsReversion() {\r\n Application.loadQuestions();\r\n assertTrue(Application.allQuestions.contains(\"21 - 7 = ?\") || Application.allQuestions.contains(\"21 - 14 = ?\"));\r\n }", "@Override\n\tpublic Questions addQuestions(long testId, Questions question) throws TestMSException {\n\t\treturn null;\n\t}", "@Test\n public void autoMarkTest(){\n Paper paper2 = new Paper();\n paper2.setId(2L);\n\n Question obj1 = new Question();\n obj1.setId(2L);\n obj1.setAnswer(\"A\");\n obj1.setQuestionType(QuestionType.SINGLE_ANSWER);\n\n Question obj2 = new Question();\n obj2.setId(3L);\n obj2.setAnswer(\"AB\");\n obj2.setQuestionType(QuestionType.MULTIPLE_ANSWER);\n\n Question sub1 = new Question();\n sub1.setId(4L);\n sub1.setQuestionType(QuestionType.SUBJECTIVE);\n\n List<PaperWithQuestions> paperWithQuestionsList = new ArrayList<>();\n paperWithQuestionsList.add(new PaperWithQuestions(paper2,obj1,1,5.0D));\n paperWithQuestionsList.add(new PaperWithQuestions(paper2,obj2,2,5.0D));\n paperWithQuestionsList.add(new PaperWithQuestions(paper2,sub1,3,10.0D));\n paper2.setQuestions(paperWithQuestionsList);\n\n //initialize paper answer\n PaperAnswer paperAnswer1 = new PaperAnswer();\n paperAnswer1.setState(PaperAnswerState.FINISHED);\n\n AnswerPrimaryKey answer1 = new AnswerPrimaryKey(paperAnswer1,obj1);\n AnswerPrimaryKey answer2 = new AnswerPrimaryKey(paperAnswer1,obj2);\n Answer wrong1 = new Answer(answer1,\"B\",0D);\n Answer right2 = new Answer(answer2,\"AB\",0D);\n\n paperAnswer1.setAnswers(List.of(wrong1,right2));\n\n PaperAnswer paperAnswer2 = new PaperAnswer();\n paperAnswer1.setState(PaperAnswerState.FINISHED);\n\n AnswerPrimaryKey answer3 = new AnswerPrimaryKey(paperAnswer2,obj1);\n AnswerPrimaryKey answer4 = new AnswerPrimaryKey(paperAnswer2,obj2);\n Answer right3 = new Answer(answer3,\"A\",0D);\n Answer right4 = new Answer(answer4,\"AB\",0D);\n\n paperAnswer2.setAnswers(List.of(right3,right4));\n\n Paper paper3 = new Paper();\n paper3.setId(3L);\n List<PaperWithQuestions> paperWithQuestionsList2 = new ArrayList<>();\n paperWithQuestionsList2.add(new PaperWithQuestions(paper3,obj1,1,5.0D));\n paperWithQuestionsList2.add(new PaperWithQuestions(paper3,obj2,2,5.0D));\n paper3.setQuestions(paperWithQuestionsList2);\n\n PaperAnswer paperAnswer3 = new PaperAnswer();\n paperAnswer3.setState(PaperAnswerState.FINISHED);\n\n AnswerPrimaryKey answer5 = new AnswerPrimaryKey(paperAnswer3,obj1);\n AnswerPrimaryKey answer6 = new AnswerPrimaryKey(paperAnswer3,obj2);\n Answer right5 = new Answer(answer5,\"A\",0D);\n Answer wrong6 = new Answer(answer6,\"BC\",0D);\n\n paperAnswer3.setAnswers(List.of(right5,wrong6));\n\n //Mockito paper\n Mockito.when(paperRepository.getOne(2L)).thenReturn(paper2);\n Mockito.when(paperRepository.getOne(3L)).thenReturn(paper3);\n\n //Mockito paper answer\n Mockito.when(paperAnswerRepository.getPaperAnswers(2L)).thenReturn(List.of(paperAnswer1,paperAnswer2));\n Mockito.when(paperAnswerRepository.getPaperAnswers(3L)).thenReturn(List.of(paperAnswer3));\n\n //invoke function\n paperAnswerService.autoMark(2L);\n paperAnswerService.autoMark(3L);\n\n // grade assert\n assertThat(wrong1.getGrade()).isEqualTo(0D);\n assertThat(right2.getGrade()).isEqualTo(5.0D);\n assertThat(right3.getGrade()).isEqualTo(5.0D);\n assertThat(right4.getGrade()).isEqualTo(5.0D);\n assertThat(right5.getGrade()).isEqualTo(5.0D);\n assertThat(wrong6.getGrade()).isEqualTo(0D);\n\n assertThat(paperAnswer1.getGrade()).isEqualTo(5.0D);\n assertThat(paperAnswer2.getGrade()).isEqualTo(10.0D);\n assertThat(paperAnswer3.getGrade()).isEqualTo(5.0D);\n\n //state assert\n assertThat(paperAnswer1.getState()).isEqualTo(PaperAnswerState.NOT_MARKED);\n assertThat(paperAnswer3.getState()).isEqualTo(PaperAnswerState.MARKED);\n }", "public void reset() {\n for (Map.Entry<String, Question> questionEntry : mQuestions.entrySet()) {\n Map<String, Option> options = questionEntry.getValue().getOptions();\n for (Map.Entry<String, Option> optionEntry : options.entrySet()) {\n optionEntry.getValue().setIsCorrect(false);\n }\n }\n }", "@Test\r\n\tpublic void questionTest() throws Throwable {\n\t\tString category=eUtil.getExcelData(\"smoke\", 1, 2);\r\n\t\tString subcategory=eUtil.getExcelData(\"smoke\", 1, 3);\r\n\t\tString question_title=eUtil.getExcelData(\"smoke\", 1, 4);\r\n\t\tString description=eUtil.getExcelData(\"smoke\", 1, 5);\r\n\t\tString expectedresult=eUtil.getExcelData(\"smoke\", 1, 6);\r\n\r\n\t\t//Navigate to QuestionPage\r\n\t\tQuestionsPage questionpage=new QuestionsPage(driver);\r\n\t\tquestionpage.questionPage(category, subcategory, question_title, description);\r\n\t\t\r\n\t\t//Verification\r\n\t\tString actual = questionpage.questionsLink();\r\n\t\tAssert.assertTrue(actual.contains(expectedresult));\r\n\t}", "public void saveQuestion(){\n\n\t\tint numAnswers = testGenerator.getNumAnswers(questionNo);\n\t\tString setAnswerBox = Integer.toString(numAnswers);\n\n\t\ttestGenerator.setQuestionText(questionNo, ques.getText());\n\t\ttestGenerator.setAnswerText(questionNo, 1, ans1.getText());\n\t\ttestGenerator.setAnswerText(questionNo, 2, ans2.getText());\n\n\t\ttestGenerator.setIsAnswerCorrect(questionNo, 1, answer1.isSelected());\n\t\ttestGenerator.setIsAnswerCorrect(questionNo, 2, answer2.isSelected());\n\n\t\tif((setAnswerBox.equals(\"3\")) || setAnswerBox.equals(\"4\")) {\n\t\t\ttestGenerator.setAnswerText(questionNo, 3, ans3.getText()); \t\n\t\t\ttestGenerator.setIsAnswerCorrect(questionNo, 3, answer3.isSelected());\n\t\t}\n\n\t\tif(setAnswerBox.equals(\"4\")) {\n\t\t\ttestGenerator.setAnswerText(questionNo, 4, ans4.getText()); \t\n\t\t\ttestGenerator.setIsAnswerCorrect(questionNo, 4, answer4.isSelected());\n\t\t}\n\t}", "private void study(String studyToolId) {\n String[][] questionsAndAnswers = studyToolManager.fetchQuestionsAndAnswers(studyToolId);\n String templateId = studyToolManager.getStudyToolTemplateId(studyToolId);\n TemplateManager.TemplateType templateType = templateManager.getTemplateType(Integer.parseInt(templateId));\n List<Object> timeInfo = templateManager.getTimeInfo(templateId);\n boolean isTimed = (Boolean) timeInfo.get(0);\n boolean isTimedPerQuestion = (Boolean) timeInfo.get(1);\n long timeLimitInMS = 1000 * (Integer) timeInfo.get(2);\n long quizStartTime = System.currentTimeMillis();\n int total_score = questionsAndAnswers.length;\n int curr_score = 0;\n Queue<String[]> questionsToRepeat = new LinkedList<>();\n AnswerChecker answerChecker = studyToolManager.getAnswerChecker(studyToolId);\n for (String[] qa : questionsAndAnswers) {\n long questionStartTime = System.currentTimeMillis();\n studyToolDisplayer.displayAQuestion(qa);\n regularPresenter.getAnswerPrompter(templateType);\n String answer = scanner.nextLine();\n boolean correctness = answerChecker.isCorrectAnswer(answer, qa[1]);\n if (templateType.equals(TemplateManager.TemplateType.FC) && !correctness) {\n // TODO: make this depend on template's configuration\n questionsToRepeat.add(qa);\n }\n long questionTimeElapsed = System.currentTimeMillis() - questionStartTime;\n if (isTimed && isTimedPerQuestion && (questionTimeElapsed >= timeLimitInMS)) {\n regularPresenter.ranOutOfTimeReporter();\n } else {\n curr_score += (correctness ? 1 : 0);\n regularPresenter.correctnessReporter(correctness);\n }\n regularPresenter.pressEnterToShowAnswer();\n scanner.nextLine();\n studyToolDisplayer.displayAnAnswer(qa);\n }\n //FC only, for repeating wrong questions until all is memorized\n while (!questionsToRepeat.isEmpty()) {\n String[] qa = questionsToRepeat.poll();\n studyToolDisplayer.displayAQuestion(qa);\n regularPresenter.getAnswerPrompter(templateType);\n String answer = scanner.nextLine();\n boolean correctness = answerChecker.isCorrectAnswer(answer, qa[1]);\n if (!correctness) {\n questionsToRepeat.add(qa);\n }\n regularPresenter.correctnessReporter(correctness);\n regularPresenter.pressEnterToShowAnswer();\n studyToolDisplayer.displayAnAnswer(qa);\n }\n long quizTimeElapsed = System.currentTimeMillis() - quizStartTime;\n if (isTimed && !isTimedPerQuestion && (quizTimeElapsed >= timeLimitInMS)){\n regularPresenter.ranOutOfTimeReporter();\n }\n else if (templateManager.isTemplateScored(templateId)) {\n String score = curr_score + \"/\" + total_score;\n regularPresenter.studySessionEndedReporter(score);\n }\n }", "public Test makeTest(DataSource ds, List<Question> givenQns){\n\t\tArrayList<Question> startQns = new ArrayList<Question>();\n\t\tfor (int i = 0; i < givenQns.size(); i++){\n\t\t\tstartQns.add((Question)givenQns.get(i));\n\t\t}\n\t\tString category = startQns.get(0).getCategory();\n\t\tString difficulty = \"any\";\n\t\t\n\t\twhile(startQns.size()>5){\n\t\t\tint index = (int)(Math.random()*startQns.size());\n\t\t\tstartQns.remove(index);\n\t\t}\n\t\tTest test = this.makeTest(ds, difficulty, category, 5, startQns);\n//\t\tSystem.out.println(\"TestMakerA->test: \" + test.toString());\n\t\tint[] correct = new int[5];\n\t\tArrayList<Question[]> questions = (ArrayList<Question[]>)test.getTest();\n\n\t\tfor(int i = 0; i < 5; i++){\n\t\t\tcorrect[i] = (int)(Math.random()*4);\n\t\t\tif(questions.get(i)[correct[i]] != startQns.get(i)){\n\t\t\t\tquestions.get(i)[correct[i]] = startQns.get(i);\n\t\t\t}\n\t\t}\n\n\t\ttest.setCorrect(correct);\n\t\treturn test;\n\t}", "public void printQuestions()\r\n\t{\r\n\t\tfor(int i = 0; i < questions.size(); i++)\r\n\t\t{\r\n\t\t\tString q = questions.get(i).toString();\r\n\t\t\tSystem.out.println( (i+1) + \". \" + q);\r\n\t\t}\r\n\t}", "public void setQuestions() {\n\t\tString question1 = str1 + _QwdQuestionFst;\n\t\tSpannableString sb1 = new SpannableString(question1);\n\t\tsb1.setSpan(new ForegroundColorSpan(Color.BLACK), str1.length() ,\n\t\t\t\tsb1.length(), Spannable.SPAN_INCLUSIVE_EXCLUSIVE);\n\t\t_FPTV_Question_1.setText(sb1);\n\n\t\tString question2 = str2 + _QwdQuestionSec;\n\t\tSpannableString sb2 = new SpannableString(question2);\n\t\tsb2.setSpan(new ForegroundColorSpan(Color.BLACK), str2.length() ,\n\t\t\t\tsb2.length(), Spannable.SPAN_INCLUSIVE_EXCLUSIVE);\n\t\t_FPTV_Question_2.setText(sb2);\n\t}", "public void resetQuestionGenerationtatistics() {\n this.questionGenerationRuntime = 0;\n }", "public void resetShuffleOrder() {\n\t\tshuffleOrder = new ArrayList<Song>();\n\t\tthis.shuffleSongIndex = -1;\n\t}", "public static void sitExam(int stuId) {\n ExamService examService = new ExamServiceImpl();\n Scanner sc = new Scanner(System.in);\n\n int testId;\n while (true) {\n System.out.print(\"Please input the test ID: \");\n try {\n String input = sc.nextLine().trim();\n if (input.length() == 6) {\n testId = Integer.parseInt(input);\n break;\n }\n } catch (NumberFormatException ignored) {\n }\n System.out.println(\"The id should be 6 digits!\");\n }\n\n List<Question> allQuestion = examService.sitExam(stuId, testId);\n LoggerUtil.addLog(\"[Student \" + stuId + \"] take exam \" + testId);\n\n for (Question q : allQuestion) {\n if (isTimeUp(testId) == true) {\n System.out.println(\"Exam ended, please wait us upload your answer...\");\n AutoJudgeService autoJudgeService = new AutoJudgeServiceImpl();\n autoJudgeService.judgeAnExam(testId);\n break;\n }\n System.out.printf(\"QNo:%d Type:%s, Complsory:%s Score:%d \\n\", q.getqNo(), q.getType(), q.getCompulsory(),\n q.getScore());\n System.out.println(\"****************************************\");\n System.out.println(q.getqDescri());\n System.out.println(\"****************************************\");\n\n String answer;\n while (true) {\n System.out.printf(\"Input your answer(in one line): \");\n answer = sc.nextLine();\n\n boolean nextQustion = false;\n while (true) {\n System.out.println(\"Next question?(Y/N)\");\n String op = sc.nextLine().trim().toUpperCase();\n if (op.equals(\"Y\"))\n nextQustion = true;\n else if (!op.equals(\"N\"))\n continue;\n break;\n }\n if (nextQustion) {\n break;\n }\n }\n examService.answerAnQuestion(q, stuId, answer);\n }\n\n while (true) {\n System.out.println(\"You have answered all question, submit now?(Y/N)\");\n String op = sc.nextLine().trim().toUpperCase();\n if (op.equals(\"Y\")) {\n AutoJudgeService autoJudgeService = new AutoJudgeServiceImpl();\n autoJudgeService.judgeAnExam(testId);\n break;\n }\n }\n }", "@Test\n\tpublic void testGetNewQuestions() {\n\t\tList<QnaQuestion> questions = questionLogic.getNewQuestions(LOCATION1_ID);\n\t\tAssert.assertEquals(questions.size(), 2);\n\t\t\n\t\tAssert.assertTrue(questions.contains(tdp.question1_location1));\n\t\tAssert.assertTrue(questions.contains(tdp.question5_location1));\n\t}", "public void resetQuiz(View view) {\n\n // Get the ID of radio group Question 2\n RadioGroup groupTwo = findViewById(R.id.radioGroupQ2);\n\n // Get the ID of radio group 6\n RadioGroup groupSix = findViewById(R.id.radioGroupQ6);\n\n // Get the ID of radio group 7\n RadioGroup groupSeven = findViewById(R.id.radioGroupQ7);\n\n\n\n // Get the ID of Question 3 checkboxes\n CheckBox question3Option1 = findViewById(R.id.question_three_option1);\n CheckBox question3Option2 = findViewById(R.id.question_three_option2);\n CheckBox question3Option3 = findViewById(R.id.question_three_option3);\n CheckBox question3Option4 = findViewById(R.id.question_three_option4);\n\n // Get the ID of Question 4 checkboxes\n CheckBox question4Option1 = findViewById(R.id.question_four_option1);\n CheckBox question4Option2 = findViewById(R.id.question_four_option2);\n CheckBox question4Option3 = findViewById(R.id.question_four_option3);\n CheckBox question4Option4 = findViewById(R.id.question_four_option4);\n\n\n // Get the ID of Question 8 checkboxes\n CheckBox question8Option1 = findViewById(R.id.question_eight_option1);\n CheckBox question8Option2 = findViewById(R.id.question_eight_option2);\n CheckBox question8Option3 = findViewById(R.id.question_eight_option3);\n CheckBox question8Option4 = findViewById(R.id.question_eight_option4);\n\n // Getting all EditTexts values for question 8 and question 10.\n EditText question1 = findViewById(R.id.question_one_field);\n EditText question5 = findViewById(R.id.question_five_field);\n EditText question9 = findViewById(R.id.question_nine_field);\n\n // Clear all radio buttons in each radio groups that has been checked.\n\n groupTwo.clearCheck();\n groupSix.clearCheck();\n groupSeven.clearCheck();\n\n\n\n //Uncheck all checkboxes that has been ticked in question 3\n question3Option1.setChecked(false);\n question3Option2.setChecked(false);\n question3Option3.setChecked(false);\n question3Option4.setChecked(false);\n\n // uncheck all checkboxes that has been ticked in question 4\n question4Option1.setChecked(false);\n question4Option2.setChecked(false);\n question4Option3.setChecked(false);\n question4Option4.setChecked(false);\n\n //Uncheck all checkboxes that has been ticked in question 8\n question8Option1.setChecked(false);\n question8Option2.setChecked(false);\n question8Option3.setChecked(false);\n question8Option4.setChecked(false);\n\n\n // Set the values in all EditText boxes to be empty.\n question1.setText(\"\");\n question5.setText(\"\");\n question9.setText(\"\");\n\n // resets the checkSubmit counter\n checkSubmit = 0;\n\n // resets the score variable to zero\n score = 0;\n displayScore(score);\n }", "private void retrainMappingsAfterAddingNewQuestions(\r\n String description,\r\n String qType ) throws Exception {\r\n\r\n String number = driver.getTimestamp();\r\n String surveyName = number + \"retaingMappingsAfterAdding\" + qType + \"Questions\";\r\n String statusOption1 = \"Sent\";\r\n String statusOption2 = \"Responded\";\r\n\r\n log.startTest( \"LeadEnable: Verify that questions retrain their mappings if you add new \"\r\n + description + \" questions without pressing Save.\" );\r\n try {\r\n // Log And Go to Survey Page\r\n loginToSend().goToSurveyPage().sfdcSurvey.createSurveyAndTypeSurveyName( surveyName )\r\n .checkLogResponseInCRM()\r\n .selectSurveyFolders( surveyType3, sfdcCampaign3 );\r\n // Editing free text question\r\n send.sfdcSurvey.sfdcQuestion.editQuestionType( \"A free text question\" )\r\n .enterQuestion( FTcontactField.LASTNAME.question )\r\n .mapFTQuestionToContactField( FTcontactField.LASTNAME.conntactFiled );\r\n send.sfdcSurvey.sfdcQuestion.addFTQAndMapItToEmail( false )\r\n .editQuestionType( FTcontactField.LASTNAME.question );\r\n\r\n log.startStep( \"Verify the Contact drop down '\" + FTcontactField.LASTNAME.question\r\n + \"' is still retain 'Last Name' value\" );\r\n log.endStep( driver.isValueSelected( \"#qTypetextSalesforceContactsField span\",\r\n FTcontactField.LASTNAME.conntactFiled ) );\r\n\r\n log.startStep( \"Verify the Lead drop down '\" + FTcontactField.LASTNAME.question\r\n + \"' is still retain 'Last Name' value\" );\r\n log.endStep( driver.isValueSelected( \"#qTypetextSalesforceLeadField span\",\r\n FTcontactField.LASTNAME.conntactFiled ) );\r\n\r\n // Edit the Default MCQ \r\n send.sfdcSurvey.sfdcQuestion.addOrUpdateMCQuestionBy( MCcontactFiled.LEADSOURCE.question,\r\n QuestionStatus.EDIT )\r\n .fillinMCQAnswers( MCcontactFiled.LEADSOURCE.option_1,\r\n MCcontactFiled.LEADSOURCE.option_2 );\r\n send.sfdcSurvey.sfdcQuestion.addMCQStatusOptions()\r\n .mapMCQuestionToContactField( MCcontactFiled.LEADSOURCE.name,\r\n MCcontactFiled.LEADSOURCE.option_1,\r\n MCcontactFiled.LEADSOURCE.option_2 );\r\n\r\n // Add new MCQ\r\n if( qType == \"dragAndDrop\" ) {\r\n send.sfdcSurvey.sfdcQuestion.dragAndDropMCquestionAndMapItToSalutation( true );\r\n } else {\r\n send.sfdcSurvey.sfdcQuestion.addMCquestionAndMapItToSalutation( true );\r\n }\r\n\r\n // Verify the default MCQ retained it's mappings\r\n send.sfdcSurvey.sfdcQuestion.editQuestionType( MCcontactFiled.LEADSOURCE.question );\r\n\r\n log.resultStep( \"Verify the Contact Field retained it's value \" + MCcontactFiled.LEADSOURCE.name );\r\n log.endStep( driver.isValueSelected( \"#qTypemcSalesforceContactsField span\",\r\n MCcontactFiled.LEADSOURCE.name ) );\r\n\r\n log.resultStep( \"Verify the Lead Field retained it's value \" + MCcontactFiled.LEADSOURCE.name );\r\n log.endStep( driver.isValueSelected( \"#qTypemcSalesforceLeadField span\",\r\n MCcontactFiled.LEADSOURCE.name ) );\r\n\r\n // Verify drop down values for status\r\n log.resultStep( \"Verify that the 1st status option is \" + statusOption1 );\r\n log.endStep( driver.isSelected( \"//ul[@id='qAnswerList']/li[1]//select[@id[starts-with(.,'answerStatus')]]\",\r\n statusOption1 ) );\r\n\r\n log.resultStep( \"Verify that the 2nd status option is \" + statusOption2 );\r\n log.endStep( driver.isSelected( \"//ul[@id='qAnswerList']/li[2]//select[@id[starts-with(.,'answerStatus')]]\",\r\n statusOption2 ) );\r\n\r\n // Verify drop down values for Contacts \r\n log.resultStep( \"Verify that the 1st contact option is \" + MCcontactFiled.LEADSOURCE.option_1 );\r\n log.endStep( driver.isSelected( \"//ul[@id='qAnswerList']/li[1]//select[@id[starts-with(.,'answerContact')]]\",\r\n MCcontactFiled.LEADSOURCE.option_1 ) );\r\n\r\n log.resultStep( \"Verify that the 2nd contact option is \" + MCcontactFiled.LEADSOURCE.option_2 );\r\n log.endStep( driver.isSelected( \"//ul[@id='qAnswerList']/li[2]//select[@id[starts-with(.,'answerContact')]]\",\r\n MCcontactFiled.LEADSOURCE.option_2 ) );\r\n // Verify drop down values for Leads\r\n log.resultStep( \"Verify that the 1st lead option is \" + MCcontactFiled.LEADSOURCE.option_1 );\r\n log.endStep( driver.isSelected( \"//ul[@id='qAnswerList']/li[1]//select[@id[starts-with(.,'answerLead')]]\",\r\n MCcontactFiled.LEADSOURCE.option_1 ) );\r\n\r\n log.resultStep( \"Verify that the 1st lead option is \" + MCcontactFiled.LEADSOURCE.option_2 );\r\n log.endStep( driver.isSelected( \"//ul[@id='qAnswerList']/li[2]//select[@id[starts-with(.,'answerLead')]]\",\r\n MCcontactFiled.LEADSOURCE.option_2 ) );\r\n\r\n log.resultStep( \"Verify that the text field of the 1st answer is\"\r\n + MCcontactFiled.LEADSOURCE.option_1 );\r\n log.endStep( driver.isTextPresent( \"//input[@id='29374']\",\r\n MCcontactFiled.LEADSOURCE.option_1,\r\n driver.timeOut ) );\r\n\r\n log.resultStep( \"Verify that the text field of the 2nd answer is\"\r\n + MCcontactFiled.LEADSOURCE.option_2 );\r\n log.endStep( driver.isTextPresent( \"//input[@id='54119']\",\r\n MCcontactFiled.LEADSOURCE.option_2,\r\n driver.timeOut ) );\r\n\r\n } catch( Exception e ) {\r\n log.endStep( false );\r\n throw e;\r\n }\r\n log.endTest();\r\n }", "public void askQuestions() {\r\n overallRoot = askQuestionsHelper(overallRoot);\r\n }", "public void setTFChoices() {\r\n Random randomGenerator = new Random();\r\n int trueFalseAnswer = randomGenerator.nextInt(2);\r\n studentAnswer.add(trueFalseAnswer);\r\n }", "@Test\n public void case4SortSameSequence(){\n //Already sorted array\n SortDemoData data2 = new SortDemoData() ;\n\n int[] testArray = {1,2,3};\n data2.initializeArray(\"1 2 3\");\n assertTrue(map.get(algoUnderTest)+\" Before Sort ...First Element\",data2.myArray[0].key == testArray[0]);\n assertTrue(map.get(algoUnderTest)+\" Before Sort ...Second Element\",data2.myArray[1].key == testArray[1]);\n assertTrue(map.get(algoUnderTest)+\" Before Sort ...Third Element\",data2.myArray[2].key == testArray[2]);\n data2.runAlgo(algoUnderTest);\n\n assertTrue(map.get(algoUnderTest)+\" After Sort ...First Element\",data2.myArray[0].key == testArray[0]);\n assertTrue(map.get(algoUnderTest)+\" After Sort ...Second Element\",data2.myArray[1].key == testArray[1]);\n assertTrue(map.get(algoUnderTest)+\" After Sort ...Third Element\",data2.myArray[2].key == testArray[2]);\n\n }", "private void setUpQuestion() {\n if (index == questions.size()) {\n endgame();\n } else {\n currentQuestion = questions.get(index);\n\n ParseQuery<ParseObject> query = ParseQuery.getQuery(\"TestObject\");\n query.getInBackground(currentQuestion.getQuestion(), new GetCallback<ParseObject>() {\n public void done(ParseObject object, ParseException e) {\n if (e == null) {\n\n String NewQuestion = object.getString(\"question\");\n lblQuestion.setText(NewQuestion);\n expectedAnswer = object.getBoolean(\"answer\");\n imgPicture.setImageResource(currentQuestion.getPicture());\n index++;\n } else {\n }\n }\n }); // this pulls values from parse\n }\n }", "public void sortByAndser() {\r\n\t\tQuestion[][] question2DArray = new Question[displayingList.size()][];\r\n\t\tfor (int i = 0; i < displayingList.size(); i++) {\r\n\t\t\tquestion2DArray[i] = new Question[1];\r\n\t\t\tquestion2DArray[i][0] = displayingList.get(i);\r\n\t\t}\r\n\r\n\t\twhile (question2DArray.length != 1) {\r\n\t\t\tquestion2DArray = (Question[][]) merge2DArray(question2DArray);\r\n\t\t}\r\n\t\tdisplayingList.removeAll(displayingList);\r\n\t\tfor (int i = 0; i < question2DArray[0].length; i++) {\r\n\t\t\tdisplayingList.add(question2DArray[0][i]);\r\n\t\t}\r\n\t}", "public void askQuestions() {\r\n finalRoot = askQuestionsInternal(finalRoot);\r\n }", "public void answerQuestion(){\n for (int i = 0; i < questionList.size(); i++){\r\n if (questionList.get(i).question.startsWith(\"How\")){\r\n howQuestions.add(new Question(questionList.get(i).id, questionList.get(i).question, questionList.get(i).answer));\r\n }\r\n }\r\n\r\n // Print All When Questions\r\n System.out.println(\"How Questions\");\r\n for (int i = 0; i < howQuestions.size(); i++){\r\n System.out.println(howQuestions.get(i).question);\r\n }\r\n\r\n //==== Question Entities ====\r\n // Split All When Question to only questions that have the entities\r\n if (!howQuestions.isEmpty()){\r\n if (!questionEntities.isEmpty()){\r\n for (int c = 0; c < questionEntities.size(); c++){\r\n for (int i = 0; i < howQuestions.size(); i++){\r\n if (howQuestions.get(i).question.contains(questionEntities.get(c))){\r\n answers.add(new Question(howQuestions.get(i).id, howQuestions.get(i).question, howQuestions.get(i).answer));\r\n }\r\n }\r\n }\r\n }\r\n else{\r\n if (!questionTags.isEmpty()){\r\n for (int c = 0; c < questionTags.size(); c++){\r\n for (int i = 0; i < howQuestions.size(); i++){\r\n if (howQuestions.get(i).question.contains(questionTags.get(c))){\r\n answers.add(new Question(howQuestions.get(i).id, howQuestions.get(i).question, howQuestions.get(i).answer));\r\n }\r\n }\r\n }\r\n }\r\n else{\r\n System.out.println(\"There no answer for your question !\");\r\n System.exit(0);\r\n }\r\n }\r\n }\r\n\r\n // Print All Entities Questions\r\n System.out.println(\"Questions of 'How' that have entities and tags :\");\r\n for (int i = 0; i < answers.size(); i++){\r\n for (int j = 1; j < answers.size(); j++){\r\n if (answers.get(i).id == answers.get(j).id){\r\n answers.remove(j);\r\n }\r\n }\r\n }\r\n \r\n for (int i = 0; i < answers.size(); i++){\r\n System.out.println(answers.get(i).question);\r\n }\r\n\r\n\r\n //==== Question Tags ====\r\n for (int i = 0; i < questionTags.size(); i++){\r\n for (int k = 0; k < answers.size(); k++){\r\n if (answers.get(k).question.contains(questionTags.get(i))){\r\n continue;\r\n }\r\n else{\r\n answers.remove(k);\r\n }\r\n }\r\n }\r\n }", "@Test\n\tpublic void testSaveQuestion() {\n\t\tAssert.assertEquals(\"qna.sms.question-posted.no-replies\", questionSmsCommand.execute(\n\t\t\t\tnew ParsedMessage(USER_UPDATE, CMD, SITE, \"new question\", 1), ShortMessageCommand.MESSAGE_TYPE_SMS,\"1234\" ));\n\t\tString id = bundleLogicStub.getLastParameters()[1].toString();\n\t\tQnaQuestion question = questionLogic.getQuestionById(Long.valueOf(id));\n\t\tAssert.assertEquals(\"new question\", question.getQuestionText());\n\t\tAssert.assertEquals(USER_UPDATE, question.getOwnerId());\n\t\tAssert.assertEquals(\"1234\", question.getOwnerMobileNr());\n\t\tAssert.assertEquals(1, questionLogic.getAllQuestions(LOCATION1_ID).size()); \n\t}", "public static void quizz(int nbOfQuestions)\n {\n \tgenerateQuizz(nbOfQuestions);\n Scanner sc = new Scanner(System.in);\n System.out.println(\"Début du quizz : \");\n for(int i = 0; i < nbOfQuestions; i++)\n {\n System.out.println(\"Question \" +(i+1) + \" : \"+nb1[i]+\" + \"+nb2[i]+ \" = ?\");\n answer[i] = sc.nextInt();\n \n if(answer[i] == nb1[i] + nb2[i])\n {\n System.out.println(\"You rock !\");\n }\n else\n {\n System.out.println(\"Too bad ! Here's the answer : \" +(nb1[i]+nb2[i]));\n }\n }\n }", "public Test(List<Question> questions) {\n\t\tthis.questions = questions;\n\t}", "@Test\n public void markTest(){\n Question question2 = new Question();\n question2.setId(2L);\n question2.setQuestionType(QuestionType.SUBJECTIVE);\n\n Question question3 = new Question();\n question3.setId(3L);\n question3.setQuestionType(QuestionType.SUBJECTIVE);\n\n Paper paper2 = new Paper();\n paper2.setId(2L);\n paper.setCourse(course);\n\n PaperWithQuestions paperWithQuestion1 = new PaperWithQuestions(paper2,question2,1,5.0D);\n PaperWithQuestions paperWithQuestion2 = new PaperWithQuestions(paper2,question3,2,5.0D);\n\n paper2.setQuestions(List.of(paperWithQuestion1,paperWithQuestion2));\n\n //initialize paper answer\n PaperAnswer paperAnswer1 = new PaperAnswer();\n PaperAnswerPrimaryKey paperAnswerPrimaryKey1 = new PaperAnswerPrimaryKey(user,paper2,1);\n paperAnswer1.setPaperAnswerPrimaryKey(paperAnswerPrimaryKey1);\n paperAnswer1.setState(PaperAnswerState.FINISHED);\n\n PaperAnswer paperAnswer2 = new PaperAnswer();\n PaperAnswerPrimaryKey paperAnswerPrimaryKey2 = new PaperAnswerPrimaryKey(user,paper2,2);\n paperAnswer2.setPaperAnswerPrimaryKey(paperAnswerPrimaryKey2);\n paperAnswer2.setState(PaperAnswerState.FINISHED);\n\n Answer answer1 = new Answer();\n AnswerPrimaryKey answerPrimaryKey1 = new AnswerPrimaryKey(paperAnswer1,question2);\n answer1.setAnswerPrimaryKey(answerPrimaryKey1);\n answer1.setAnswer(\"111\");\n Answer answer2 = new Answer();\n AnswerPrimaryKey answerPrimaryKey2 = new AnswerPrimaryKey(paperAnswer1,question3);\n answer2.setAnswerPrimaryKey(answerPrimaryKey2);\n answer2.setAnswer(\"222\");\n\n Answer answer3 = new Answer();\n AnswerPrimaryKey answerPrimaryKey3 = new AnswerPrimaryKey(paperAnswer2,question2);\n answer3.setAnswerPrimaryKey(answerPrimaryKey3);\n answer3.setAnswer(\"333\");\n Answer answer4 = new Answer();\n AnswerPrimaryKey answerPrimaryKey4 = new AnswerPrimaryKey(paperAnswer2,question3);\n answer4.setAnswerPrimaryKey(answerPrimaryKey4);\n answer4.setAnswer(\"444\");\n\n paperAnswer1.setAnswers(List.of(answer1,answer2));\n paperAnswer2.setAnswers(List.of(answer3,answer4));\n\n //initialize mark form\n\n MarkForm markForm1 = new MarkForm(\"good\",2L,5.0D);\n MarkForm markForm2 = new MarkForm(\"bad\",3L,0D);\n MarkForm markForm3 = new MarkForm(\"need to improve\",2L,2.5D);\n MarkForm markForm4 = new MarkForm(\"little problem\",3L,4.00D);\n\n //Mockito get info\n Mockito.when(userService.getUserInfo(1L)).thenReturn(user);\n Mockito.when(paperService.getPaperInfo(2L,1L)).thenReturn(paper2);\n\n Mockito.when(paperAnswerRepository.findById(paperAnswerPrimaryKey1))\n .thenReturn(Optional.of(paperAnswer1));\n Mockito.when(paperAnswerRepository.findById(paperAnswerPrimaryKey2))\n .thenReturn(Optional.of(paperAnswer2));\n\n Mockito.when(questionRepository.findById(2L)).thenReturn(Optional.of(question2));\n Mockito.when(questionRepository.findById(3L)).thenReturn(Optional.of(question3));\n\n Mockito.when(answerRepository.findById(answerPrimaryKey1)).thenReturn(Optional.of(answer1));\n Mockito.when(answerRepository.findById(answerPrimaryKey2)).thenReturn(Optional.of(answer2));\n Mockito.when(answerRepository.findById(answerPrimaryKey3)).thenReturn(Optional.of(answer3));\n Mockito.when(answerRepository.findById(answerPrimaryKey4)).thenReturn(Optional.of(answer4));\n\n Mockito.when(paperWithQuestionsRepository.getOne(new PaperWithQuestionsPrimaryKey(paper2,question2))).thenReturn(paperWithQuestion1);\n Mockito.when(paperWithQuestionsRepository.getOne(new PaperWithQuestionsPrimaryKey(paper2,question3))).thenReturn(paperWithQuestion2);\n\n Mockito.when(paperAnswerRepository.save(any(PaperAnswer.class))).thenAnswer(i -> i.getArguments()[0]);\n\n paperAnswer1 = paperAnswerService.markStudentPaper(1L,1L,2L,1,Set.of(markForm1,markForm2));\n paperAnswer2 = paperAnswerService.markStudentPaper(1L,1L,2L,2,Set.of(markForm3,markForm4));\n\n //assert grade\n assertThat(paperAnswer1.getGrade()).isEqualTo(5D);\n assertThat(paperAnswer2.getGrade()).isEqualTo(6.5D);\n\n //assert comment\n assertThat(paperAnswer1.getAnswers().get(0).getComment()).isEqualTo(\"good\");\n assertThat(paperAnswer2.getAnswers().get(1).getComment()).isEqualTo(\"little problem\");\n\n }", "@Test\n public void testFail(){\n List<StoryPart> storyParts = new ArrayList<>();\n StoryPart a = new StoryPart(LocalTime.of(0, 2), null, null, StoryEvent.HALF_TIME_A_END, StoryTitle.create(\"halftime 1 end\"),\n StoryDescription.create(\"halftime 2 end\"));\n StoryPart b = new StoryPart(LocalTime.of(0, 3), null, GameMinute.create(\"2.\"), StoryEvent.GOAL, StoryTitle.create(\"Goal 2\"),\n StoryDescription.create(\"goal 2\"));\n StoryPart c = new StoryPart(LocalTime.of(0, 1), null, GameMinute.create(\"1.\"), StoryEvent.YELLOW_CARD,\n StoryTitle.create(\"yellow card 1\"), StoryDescription.create(\"yellow card 1\"));\n storyParts.add(a);\n storyParts.add(b);\n storyParts.add(c);\n\n Collections.shuffle(storyParts);\n storyParts.sort(new StoryPartTimeLineComparator());\n List<StoryPart> sortA = new ArrayList<>(storyParts);\n Collections.shuffle(storyParts);\n storyParts.sort(new StoryPartTimeLineComparator());\n List<StoryPart> sortB = new ArrayList<>(storyParts);\n Collections.shuffle(storyParts);\n storyParts.sort(new StoryPartTimeLineComparator());\n List<StoryPart> sortC = new ArrayList<>(storyParts);\n\n assertEquals(sortA.get(0), sortB.get(0));\n assertEquals(sortA.get(0), sortC.get(0));\n\n assertEquals(sortA.get(1), sortB.get(1));\n assertEquals(sortA.get(1), sortC.get(1));\n\n assertEquals(sortA.get(2), sortB.get(2));\n assertEquals(sortA.get(2), sortC.get(2));\n\n }", "@Override\n\tpublic List<Questions> listQuestion(long testId1) {\n\t\treturn null;\n\t}", "@Override\n\tpublic Questions deleteQuestions(int testId, Questions question) throws TestMSException {\n\t\treturn null;\n\t}", "@Override\n\tpublic List<Questions> listQuestion(int testId) {\n\t\treturn null;\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_test);\n tvQuestion = findViewById(R.id.text_view_question);\n tvScore = findViewById(R.id.textView_score);\n tvQuestionCount = findViewById(R.id.textView_question_count);\n rbGroup = findViewById(R.id.radio_group);\n rbOne = findViewById(R.id.radio_option_one);\n rbTwo = findViewById(R.id.radio_option_two);\n rbThree = findViewById(R.id.radio_option_three);\n rbFour = findViewById(R.id.radio_option_four);\n buttonConfirmNext = findViewById(R.id.button_confirm_next);\n textColorDefaultRb = rbOne.getTextColors();\n DBHelper dbHelper = new DBHelper(this);\n questionList = dbHelper.getAllQuestions();\n questionCountTotal = questionList.size();\n// for changing the order of questions\n Collections.shuffle(questionList);\n// to show next question based on conditions\n showQuestion();\n// validation of answer and senting to next state\n buttonConfirmNext.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (!answered) {\n if (rbOne.isChecked() || rbTwo.isChecked() || rbThree.isChecked() || rbFour.isChecked()) {\n checkAnswer();\n } else {\n Toast.makeText(TestActivity.this, \"Please select an option\", Toast.LENGTH_SHORT).show();\n }\n } else {\n showQuestion();\n }\n }\n });\n }", "public static void resultOfPlayAllCorrect() {\n\t\tString mark=\"null\";\n\t\ttry {\n\t\t\tmark=PlayTrivia.playAllRightAnswers();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t\tif(mark==\"Sucsses\") {\n\t\t\tSystem.out.println(\"Test end page has:\" + mark + \" Test pass\");\n\t\t}else{\n\t\t\tSystem.out.println(\"Test end page - failed\");\n\t\t}\n\t}", "private void generateNewQuestion() {\n GameManager gameManager = new GameManager();\n long previousQuestionId = -1;\n try {\n previousQuestionId = mGameModel.getQuestion().getId();\n } catch (NullPointerException e) {\n previousQuestionId = -1;\n }\n mGameModel.setQuestion(gameManager.generateRandomQuestion(previousQuestionId));\n mGameModel.getGameMaster().setDidPlayerAnswer(false);\n mGameModel.getGameMaster().setPlayerAnswerCorrect(false);\n mGameModel.getGameSlave().setDidPlayerAnswer(false);\n mGameModel.getGameSlave().setPlayerAnswerCorrect(false);\n LOGD(TAG, \"New question generated\");\n }", "public void reorderQueuedQuestions(Long playerId, List<Integer> newOrder) {\r\n\t\tPlayer player = lookupPlayer(playerId);\r\n\r\n\t\t// check for invalid ids\r\n\t\tfor (Integer id : newOrder) {\r\n\t\t\tboolean found = false;\r\n\t\t\tfor (QueuedQuestion qq : player.getQueuedQuestions()) {\r\n\t\t\t\tif (qq.getQuestion().getId()==id) {\r\n\t\t\t\t\tfound = true;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (!found) {\r\n\t\t\t\tlogger.error(\"Invalid question id in reorder. id=\"+id);\r\n\t\t\t\tthrow new TrivolousError(\"Invalid question id \" + id);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// rerank by new order and make list of not found ids to delete\r\n\t\tArrayList<QueuedQuestion> qqsToBeDeleted = new ArrayList<QueuedQuestion>(); \r\n\t\tfor (QueuedQuestion qq : player.getQueuedQuestions()) {\r\n\t\t\tboolean found = false;\r\n\t\t\tint qid = qq.getQuestion().getId();\r\n\t\t\tint rank = 1;\r\n\t\t\tfor (Integer id : newOrder) {\r\n\t\t\t\tif (qid == id) {\r\n\t\t\t\t\tfound = true;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\trank++;\r\n\t\t\t}\r\n\t\t\tif (!found) {\r\n\t\t\t\tqqsToBeDeleted.add(qq);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t// reorder based on new order\r\n\t\t\t\tqq.setRank(rank);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// delete separately to prevent concurrent mod error\r\n\t\tfor (QueuedQuestion qq : qqsToBeDeleted) {\r\n\t\t\tquestionRemove(player, qq);\r\n\t\t}\r\n\t}", "private void updateQuestion(){\n mchoice1.setChecked(false);\n mchoice2.setChecked(false);\n mchoice3.setChecked(false);\n mchoice4.setChecked(false);\n\n if (mQuestonNumber < mQuizLibrary.getLength()){\n //menset setiap textview dan radiobutton untuk diubah jadi pertanyaan\n sQuestion.setText(mQuizLibrary.getQuestion(mQuestonNumber));\n //mengatur opsi sesuai pada optional A\n mchoice1.setText(mQuizLibrary.getChoice(mQuestonNumber, 1)); //Pilihan Ganda ke 1\n //mengatur opsi sesuai pada optional B\n mchoice2.setText(mQuizLibrary.getChoice(mQuestonNumber, 2)); //Pilihan Ganda ke 2\n //mengatur opsi sesuai pada optional C\n mchoice3.setText(mQuizLibrary.getChoice(mQuestonNumber, 3)); //Pilihan Ganda ke 3\n //mengatur opsi sesuai pada optional D\n mchoice4.setText(mQuizLibrary.getChoice(mQuestonNumber, 4)); //Pilihan Ganda ke 4\n\n manswer = mQuizLibrary.getCorrect(mQuestonNumber);\n //untuk mengkoreksi jawaban yang ada di class QuizBank sesuai nomor urut\n mQuestonNumber++; //update pertanyaan\n }else{\n Toast.makeText(Quiz.this, \"ini pertanyaan terakhir\", Toast.LENGTH_LONG).show();\n Intent i = new Intent (Quiz.this, HighestScore.class);\n i.putExtra(\"score\", mScore); //UNTUK MENGIRIM NILAI KE activity melalui intent\n startActivity(i);\n }\n }", "public void setQuestion(){\n\n\n triggerReport(); //Check if max questions are displayed, if yes then show report\n\n MyDatabase db = new MyDatabase(QuizCorner.this);\n Cursor words = db.getQuizQuestion();\n TextView question_text = (TextView) findViewById(R.id.question_text);\n RadioButton rb;\n resetOptions();\n disableCheck();\n enableRadioButtons();\n hideAnswer();\n words.moveToFirst();\n word = words.getString(words.getColumnIndex(\"word\"));\n correct_answer = words.getString(words.getColumnIndex(\"meaning\"));\n question_text.setText(word + \" means:\");\n for (int i = 0; i < 4; i++){\n answers[i] = words.getString(words.getColumnIndex(\"meaning\"));\n words.moveToNext();\n }\n answers = randomizeArray(answers);\n for (int i = 0; i < 4; i++){\n rb = (RadioButton) findViewById(options[i]);\n rb.setText(answers[i]);\n }\n question_displayed_count++;\n }", "public void testGame1EmulateIncorrectAnswers() {\n int[] indicators;\n MainPage mainPage = getMainPage();\n GameObjectImpl game1 = mainPage.gameOpen(1);\n game1.waitIndicatorsLoad();\n indicators = game1.getIndicators();\n int qtyTasksBeforeCycle = indicators[3];\n int tasksFailedBeforeCycle = indicators[1];\n for(int iter = 0; iter < qtyTasksBeforeCycle - 1; iter++) {\n game1.waitTaskBegin();\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n indicators = game1.getIndicators();\n int varTasksPassedBegin = indicators[0];\n int varTasksFailedBegin = indicators[1];\n int varTasksRemainBegin = indicators[2];\n int qtyTasksInLoopBegin = indicators[3];\n\n String[] partsOfTask = game1.getPartsOfTask();\n String firstNumberVar = partsOfTask[0];\n String secondNumberVar = partsOfTask[1];\n String operationVar = partsOfTask[2];\n int actualResult = game1.getResultWithKeys(firstNumberVar, secondNumberVar, operationVar);\n // press wrong button\n String strActualResult = Integer.toString(actualResult + 1);\n for (int i = 0; i < strActualResult.length(); i++) {\n String subStr = strActualResult.substring(i, i + 1);\n game1.pressButton((subStr));\n }\n //press correct button\n strActualResult = Integer.toString(actualResult);\n for (int i = 0; i < strActualResult.length(); i++) {\n String subStr = strActualResult.substring(i, i + 1);\n game1.pressButton((subStr));\n }\n indicators = game1.getIndicators();\n int varTasksPassedEnd = indicators[0];\n int varTasksFailedEnd = indicators[1];\n int varTasksRemainEnd = indicators[2];\n int qtyTasksInLoopEnd = indicators[3];\n\n assert varTasksRemainEnd == varTasksRemainBegin : \"positiveTestCorrectAnswers: tasks remain\";//\n assert varTasksFailedEnd == (varTasksFailedBegin + 1) : \"positiveTestCorrectAnswers: tasks failed\";\n assert varTasksPassedEnd == varTasksPassedBegin : \"positiveTestCorrectAnswers: tasks passed\";\n assert qtyTasksInLoopEnd == qtyTasksInLoopBegin + 1 : \"negativeTestWrongAnswers: tasks all\";\n }\n indicators = game1.getIndicators();\n int varTasksFailedAfterCycle = indicators[1];\n int qtyTasksAfterCycle = indicators[3];\n assert varTasksFailedAfterCycle - tasksFailedBeforeCycle == qtyTasksAfterCycle - qtyTasksBeforeCycle\n : \"positiveTestCorrectAnswers: tasks summ\" ;//\n game1.clickCloseGame();\n\n }", "private void updateQuestion() {\r\n\r\n //The code below resets the option\r\n mOption1.setVisibility(View.VISIBLE);\r\n mOption2.setVisibility(View.VISIBLE);\r\n mOption3.setVisibility(View.VISIBLE);\r\n mNext.setVisibility(View.INVISIBLE);\r\n\r\n int questionSize = 12;\r\n\r\n if (mQuestionNumber < questionSize) {\r\n\r\n mQuestionView.setText((questionsDB.getQuestion(mQuestionNumber)));\r\n mOption1.setText(questionsDB.getChoice1(mQuestionNumber));\r\n mOption2.setText(questionsDB.getChoice2(mQuestionNumber));\r\n mOption3.setText(questionsDB.getChoice3(mQuestionNumber));\r\n\r\n mAnswer = questionsDB.getCorrectAnswer(mQuestionNumber);\r\n mQuestionNumber++;\r\n timeLeftInMillis = COUNTDOWN_IN_MILLIS;\r\n startCountDown();\r\n\r\n\r\n } else {\r\n displayScore();\r\n }\r\n\r\n }", "public void ArrangeSuits() {\n if (mCardCount > 0) {\n \tCard card;\n \tCard orderedCards[];\n \torderedCards = new Card[mCardCount];\n \tint iValue;\n \tint iOrder[];\n \tint iCount = 0;\n \tiOrder = new int [mCardCount];\n \tint iMinValue = Card.HEARTS * 13 + Card.KING;\n \tiOrder[0] = iMinValue;\n \tfor (int i = 0; i < mCardCount; i++){\n \t\tcard = mCard[i];\n \t\tiValue = card.GetSuit()*13 + card.GetValue();\n \t\tiCount = 0;\n \t\t// See where the card value comes in the pecking order\n \t\twhile (iValue > iOrder[iCount]){\n \t\t\tiCount++;\n \t\t}\n \t\t// It goes here, so move everything else along one\n \t\tfor (int j = mCardCount-1; j > iCount; j--)\n \t\t\tiOrder[j] = iOrder[j-1];\n \t\tiOrder[iCount] = iValue;\n \t}\n \t\n \tfor (int i = 0; i < mCardCount; i++){\n \t\tfor (int j = 0; j < mCardCount; j++){\n \t\tcard = mCard[j];\n \t\tiValue = card.GetSuit()*13 + card.GetValue(); \t\t\t\n \t\t\tif (iValue == iOrder[i]){\n \t\t\t\torderedCards[i] = mCard[j];\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t}\n \tfor (int i = 0; i < mCardCount; i++){\n \t\tmCard[i] = orderedCards[i];\n \t} \t\n }\n }", "public void modifyQuestion(int index)\r\n\t{\r\n\t\tScanner in = new Scanner(System.in);\r\n\t\tboolean input = true;\r\n\t\tint choice;\r\n\t\tString info;\r\n\t\t\r\n\t\twhile (input)\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"\\nChoose which part of the question to modify:\");\r\n\t\t\t\tSystem.out.println(\"1. Question\\n2. Answer choice #1\\n3. Answer choice #2\\n4. Answer choice #3\\n\" +\r\n\t\t\t\t\t\t\"5. Answer choice #4\\n6. Correct Answer\");\r\n\t\t\t\tchoice = in.nextInt();\r\n\t\t\t\tin.nextLine();\r\n\t\t\t\t\r\n\t\t\t\tif (choice <= 0 || choice > 6)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Invalid input\");\r\n\t\t\t\t\tinput = true;\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tif ( choice == 1) // modify question\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println(\"Please enter a modified question:\");\r\n\t\t\t\t\t\tinfo = in.nextLine();\r\n\t\t\t\t\t\tquestions.get(index-1).setQuestion(info);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif ( choice == 2) // modify answer choice #1\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println(\"Please enter a modified answer choice #1:\");\r\n\t\t\t\t\t\tinfo = in.nextLine();\r\n\t\t\t\t\t\tquestions.get(index-1).setAnswer1(info);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif ( choice == 3) // modify answer choice #2\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println(\"Please enter a modified answer choice #2:\");\r\n\t\t\t\t\t\tinfo = in.nextLine();\r\n\t\t\t\t\t\tquestions.get(index-1).setAnswer2(info);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif ( choice == 4) // modify answer choice #3\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println(\"Please enter a modified answer choice #3:\");\r\n\t\t\t\t\t\tinfo = in.nextLine();\r\n\t\t\t\t\t\tquestions.get(index-1).setAnswer3(info);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif ( choice == 5) // modify answer choice #4\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println(\"Please enter a modified answer choice #4:\");\r\n\t\t\t\t\t\tinfo = in.nextLine();\r\n\t\t\t\t\t\tquestions.get(index-1).setAnswer4(info);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif ( choice == 6) // modify the correct answer \r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println(\"Please enter a modified correct answer :\");\r\n\t\t\t\t\t\tinfo = in.nextLine();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//checks input\r\n\t\t\t\t\t\twhile( !( info.equalsIgnoreCase(\"1\") || info.equalsIgnoreCase(\"2\") || info.equalsIgnoreCase(\"3\") || info.equalsIgnoreCase(\"4\") ) )\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.println(\"Invalid entry. Enter again:\");\r\n\t\t\t\t\t\t\tinfo = in.nextLine();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tquestions.get(index-1).setCorrectAnswer(info);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tinput = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch( InputMismatchException im ) \r\n\t\t\t{\r\n\t\t\t\tin.next(); //clear buffer\r\n\t\t\t\tSystem.out.println(\"Invalid Input\");\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Test\n public void shouldNotGiveQuestionIfAllQuestionsHaveBeenAnswered() {\n attributes.put(FinancialPlanningSpeechlet.GOAL_AMOUNT_KEY, 1000.0);\n attributes.put(FinancialPlanningSpeechlet.MONTHLY_CONTRIBUTION_KEY, 1000.0);\n attributes.put(FinancialPlanningSpeechlet.GOAL_PERIOD_KEY, 1000.0);\n String question = NextQuestionFactory.get(session);\n\n assertThat(question, Is.is(\"\"));\n }", "public Test(ArrayList<WrittenQuestion> questions){\r\n\t\tmyQuestions = new ArrayList<WrittenQuestion>();\r\n\t\tfor(WrittenQuestion q : questions){\r\n\t\t\tif(q instanceof Question){\r\n\t\t\t\tmyQuestions.add(new Question((Question)q));\r\n\t\t\t}else{\r\n\t\t\t\tmyQuestions.add(new WrittenQuestion(q));\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(allIDs==null){\r\n\t\t\tallIDs = new ArrayList<Integer>();\r\n\t\t\tfor (int i = 0; i<1000; i++){\r\n\t\t\t\tallIDs.add(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\tRandom r = new Random();\r\n\t\tid = allIDs.remove((int)(r.nextInt(allIDs.size())));\r\n\r\n\t}", "private void generalKnowledgeQuestions(){\n QuestionUtils.generalKnowledgeQuestions(); //all the questions now are stored int the QuestionUtils class\n }", "public String printOutQuestion()\n\t{\n\t\tRandom rand = new Random();\n\t\tString[] answers = new String[4];\n\t\tString returnString;\n\t\tanswers[0] = answer;\n\t\tanswers[1] = falseAnswers[0];\n\t\tanswers[2] = falseAnswers[1];\n\t\tanswers[3] = falseAnswers[2];\n\t\tString firstAns = \"\", secondAns = \"\", thirdAns = \"\", fourthAns = \"\";\n\t\t\n\t\twhile(firstAns == secondAns || firstAns == thirdAns || firstAns == fourthAns || secondAns == thirdAns || secondAns == fourthAns || thirdAns == fourthAns)\n\t\t{\n\t\t\tfirstAns = answers[rand.nextInt(4)];\n\t\t//\tSystem.out.println(firstAns); Used for debugging\n\t\t\tsecondAns = answers[rand.nextInt(4)];\n\t\t//\tSystem.out.println(secondAns); Used for debugging\n\t\t\tthirdAns = answers[rand.nextInt(4)];\n\t\t//\tSystem.out.println(thirdAns); Used for debugging\n\t\t\tfourthAns = answers[rand.nextInt(4)];\n\t\t//\tSystem.out.println(fourthAns); Used for debugging\n\t\t}\n\t\t\n\t\tanswerA = firstAns;\n\t\tanswerB = secondAns;\n\t\tanswerC = thirdAns;\n\t\tanswerD = fourthAns;\n\t\t//System.out.println(questionString + \"Answer A: \" + firstAns + \"Answer B: \" + secondAns + \"Answer C: \" + thirdAns + \"Answer D: \" + fourthAns); Used for debugging\n\t\treturnString = questionString + \"?\"; \n\t\tSystem.out.println(\"Actual Answer is: \" + answer);\n\t\treturn returnString;\n\t}", "public static String[] randomQuestionKS2(String op){\r\n int part1 = randomNumber();\r\n int part2 = randomNumber();\r\n \r\n ArrayList<Integer> multiQs = new ArrayList<>(Arrays.asList(2,5,10));\r\n ArrayList<Integer> divQs = new ArrayList<>(Arrays.asList(5,10));\r\n \r\n \r\n if (op.equals(\"*\")){ \r\n int pos = multiQs.get(randomMulti());\r\n \r\n part1 = pos;\r\n } else if (op.equals(\"/\")){\r\n ArrayList <Integer> divide10 = new ArrayList<>(Arrays.asList(10,20,30,40,50,60,70,80,90,100));\r\n \r\n int pos = (randomNumber()) - 1;\r\n int pos2 = (randomDivide());\r\n \r\n part1 = divide10.get(pos);\r\n part2 = divQs.get(pos2); \r\n }\r\n \r\n String str1 = Integer.toString(part1);\r\n String str2 = Integer.toString(part2);\r\n \r\n String question = str1 + \" \" + op + \" \" + str2;\r\n int ans = 0;\r\n \r\n if (op.equals(\"+\")){\r\n part1 = randomNumber50();\r\n part2 = randomNumber50();\r\n ans = part1 + part2;\r\n str1 = Integer.toString(part1);\r\n str2 = Integer.toString(part2);\r\n question = str1 + \" \" + op + \" \" + str2;\r\n }\r\n else if (op.equals(\"-\")){\r\n part1 = randomNumber100();\r\n part2 = randomNumber50();\r\n if (part1 < part2){\r\n ans = part2 - part1;\r\n str1 = Integer.toString(part1);\r\n str2 = Integer.toString(part2);\r\n question = str2 + \" \" + op + \" \" + str1;\r\n }\r\n ans = part1 - part2;\r\n str1 = Integer.toString(part1);\r\n str2 = Integer.toString(part2);\r\n question = str1 + \" \" + op + \" \" + str2;\r\n }\r\n else if (op.equals(\"*\")){\r\n ans = part1 * part2;\r\n }\r\n else if (op.equals(\"/\")){\r\n ans = part1 / part2;\r\n }\r\n \r\n String ansStr = Integer.toString(ans);\r\n \r\n String x[] = new String[2];\r\n x[0] = question;\r\n x[1] = ansStr;\r\n \r\n return x;\r\n }", "private void initQuestions() {\n questionList = Arrays.asList(getResources().getStringArray(R.array.questions));\n questionOne.setText(questionList.get(0));\n questionTwo.setText(questionList.get(1));\n questionThree.setText(questionList.get(2));\n questionFour.setText(questionList.get(3));\n questionFive.setText(questionList.get(4));\n questionSix.setText(questionList.get(5));\n\n List<String> optionsTwoList = Arrays.asList(getResources().getStringArray(R.array.qTwoOptions));\n answerTwoOptionA.setText(optionsTwoList.get(0));\n answerTwoOptionB.setText(optionsTwoList.get(1));\n answerTwoOptionC.setText(optionsTwoList.get(2));\n answerTwoOptionD.setText(optionsTwoList.get(3));\n\n List<String> optionsThreeList = Arrays.asList(getResources().getStringArray(R.array.qThreeOptions));\n answerThreeOptionA.setText(optionsThreeList.get(0));\n answerThreeOptionB.setText(optionsThreeList.get(1));\n answerThreeOptionC.setText(optionsThreeList.get(2));\n answerThreeOptionD.setText(optionsThreeList.get(3));\n\n List<String> optionsFiveList = Arrays.asList(getResources().getStringArray(R.array.qFiveOptions));\n answerFiveOptionA.setText(optionsFiveList.get(0));\n answerFiveOptionB.setText(optionsFiveList.get(1));\n answerFiveOptionC.setText(optionsFiveList.get(2));\n answerFiveOptionD.setText(optionsFiveList.get(3));\n\n List<String> optionsSixList = Arrays.asList(getResources().getStringArray(R.array.qSixOptions));\n answerSixOptionA.setText(optionsSixList.get(0));\n answerSixOptionB.setText(optionsSixList.get(1));\n answerSixOptionC.setText(optionsSixList.get(2));\n answerSixOptionD.setText(optionsSixList.get(3));\n\n }", "@Test\n public void testGetAnswersByQuestion(){\n Survey survey = createSurvey();\n Question question = createQuestion(survey);\n Answer answer = createAnswer(question);\n\n long testQuestionId = question.getId();\n List<Answer> testAnswers = answerDAO.getAnswersByQuestion(testQuestionId);\n // hiç cevap gelebiliyor mu kontrol, en az 1 cevap yukarda verdik çünkü.\n Assert.assertTrue(testAnswers != null && testAnswers.size() >= 1);\n }", "@Test(groups = { \"survey-creation\", \"all-tests\" })\r\n public void unsuccessfullyUpdatedQuestionDueToMissingMappingOfLeadAnswers() throws Exception {\r\n\r\n String number = driver.getTimestamp();\r\n String surveyName = number + \"MissingMappingOfLeadAnswers\";\r\n\r\n log.startTest( \"LeadEnable: Verify that an error message is displayed during survey creation when lead field is set and corresponding answers are not mapped\" );\r\n try {\r\n // Log And Go to Survey Page\r\n loginToSend().goToSurveyPage().sfdcSurvey.createSurveyAndTypeSurveyName( surveyName )\r\n .checkLogResponseInCRM()\r\n .selectSurveyFolders( surveyType2, sfdcCampaign2 );\r\n send.sfdcSurvey.sfdcQuestion.addOrUpdateMCQuestionBy( MCcontactFiled.STATUS.question,\r\n QuestionStatus.EDIT )\r\n .fillinMCQAnswers( MCcontactFiled.STATUS.option_1,\r\n MCcontactFiled.STATUS.option_2 )\r\n .mapQuestionToContactField( MCcontactFiled.STATUS.name,\r\n element.sfdcLeadFieldMCid )\r\n .updateQuestion();\r\n\r\n log.resultStep( \"Verify that the warning message is displayed 'Please map all marked fields'\" );\r\n log.endStep( driver.isTextPresent( \"//span[@class='validationMessage']\",\r\n \"Please map all marked fields\",\r\n driver.ajaxTimeOut ) );\r\n } catch( Exception e ) {\r\n log.endStep( false );\r\n throw e;\r\n }\r\n log.endTest();\r\n }", "@Before\n public void setUp() {\n for (int index = 0; index < testPartsIndex.length - 1; index++) {\n testPartsIndex[index] = 0;\n }\n }", "public void takeQuiz()\r\n\t{\r\n\t\tScanner in = new Scanner(System.in);\r\n\t\tRandom generator = new Random();\r\n\t\tint question;\r\n\t\tint right = 0;\r\n\t\tString answer;\r\n\t\t\r\n\t\tfor(int i=0; i<10; i++)\r\n\t\t{\r\n\t\t\tquestion = generator.nextInt(questions.size());\r\n\t\t\t\r\n\t\t\tSystem.out.println( (i+1) + \".\" + questions.get(question).toString());\r\n\t\t\tSystem.out.println(\"Answer: \");\r\n\t\t\tanswer = in.nextLine();\r\n\t\t\t\r\n\t\t\t//checks input\r\n\t\t\twhile( !( answer.equalsIgnoreCase(\"1\") || answer.equalsIgnoreCase(\"2\") || answer.equalsIgnoreCase(\"3\") || answer.equalsIgnoreCase(\"4\") ) )\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Invalid entry. Enter again:\");\r\n\t\t\t\tanswer = in.nextLine();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif( answer.equalsIgnoreCase(questions.get(question).getCorrectAnswer()))\r\n\t\t\t{\r\n\t\t\t\tright++;\r\n\t\t\t}\t\t\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"You got \" + right + \" questions right.\");\r\n\t}", "public void resetForNextItem(){\n\t currentItem = iterator.next();\n\t\twhile (currentItem.getTimesCorrect() > 3){\n\t\t\tcurrentItem = iterator.next();\n\t\t}\n\t\tfirstTextBox.setText(currentItem.getStimulus());\n\t\tanswerField1.setBackground(Color.WHITE);\n\t\tanswerField1.setText(\"\");\n\t\tanswerField2.setText(\"\");\n\t\tsecondTextBox.setText(\"\");\n\t\treadyToContinue = false;\n }", "@Test\n\tpublic void testSaveNewQuestionUnmoderated() {\n\t\tAssert.assertFalse(optionsLogic.getOptionsForLocation(LOCATION1_ID).isModerated());\n\t\texternalLogicStub.currentUserId = USER_UPDATE;\n\t\t\n\t\t\n\t\tQnaQuestion question = new QnaQuestion();\n\t\tquestion.setQuestionText(\"blah blah blah\");\n\t\tquestion.setAnonymous(false);\n\t\tquestion.setNotify(false);\n\t\ttry {\n\t\t\tquestionLogic.saveQuestion(question, LOCATION1_ID);\n\t\t} catch (Exception e) {\n\t\t\tAssert.fail(\"Should not have thrown exception\");\n\t\t}\n\n\t\tAssert.assertEquals(question.getOwnerId(), USER_UPDATE);\n\t\tAssert.assertEquals(question.getLocation(), LOCATION1_ID);\n\t\tAssert.assertEquals(question.getViews(), Integer.valueOf(0));\n\t\tAssert.assertTrue(question.isPublished());\n\t\tAssert.assertTrue(questionLogic.existsQuestion(question.getId()));\n\t}", "private void setQuestion() {\n Question.setText(gen.getQuestion() + \"\\t\\tProblem # \" + currentQuestion + \"/\" + numQuestions);\n }", "public void printQuestions() {\n\t\tif (this.questions.size() == 0) {\n\t\t\tSystem.out.println(\"Sorry. There are no questions in this quiz.\");\n\t\t} else {\n\t\t\tfor (Question q : this.questions) {\n\t\t\t\tSystem.out.println(q.getText());\n\t\t\t}\n\t\t}\n\t}", "@Test public void testMultipleConfirmed() throws IOException {\n CrosswordBoard okBoard = new CrosswordBoard(\"puzzles/multipleConfirmed.puzzle\");\n assertEquals(\" _ _ _ \\n_ _ _ \\n _ _ _ \\n _ \\n _ \\n _ \\n\", okBoard.toString());\n assertEquals(Outcome.SUCCESS, okBoard.tryWord(\"1across\", \"car\", \"p1\"));\n assertEquals(Outcome.SUCCESS, okBoard.tryWord(\"3across\", \"tax\", \"p1\"));\n assertEquals(\" c a r \\n_ _ _ \\n t a x \\n _ \\n _ \\n _ \\n\", okBoard.toString());\n assertEquals(Outcome.SUCCESS, okBoard.tryWord(\"1down\", \"bob\", \"p1\"));\n assertEquals(\" b _ _ \\n_ o _ \\n b _ _ \\n _ \\n _ \\n _ \\n\", okBoard.toString());\n\n assertEquals(Outcome.SUCCESS, okBoard.tryWord(\"1across\", \"car\", \"p1\"));\n assertEquals(\" c a r \\n_ _ _ \\n _ _ _ \\n _ \\n _ \\n _ \\n\", okBoard.toString());\n assertEquals(Outcome.SUCCESS, okBoard.tryWord(\"2across\", \"mat\", \"p1\"));\n assertEquals(Outcome.SUCCESS, okBoard.tryWord(\"3across\", \"tax\", \"p1\"));\n // same as word already there\n assertEquals(Outcome.SAME_WORD, okBoard.tryChallenge(\"1across\", \"car\", \"p2\"));\n // originally correct\n assertEquals(Outcome.FAILED, okBoard.tryChallenge(\"1across\", \"cat\", \"p2\"));\n // confirmed since was originally correct\n assertEquals(Outcome.CONFIRMED, okBoard.tryChallenge(\"1across\", \"cat\", \"p2\"));\n assertEquals(Outcome.FAILED, okBoard.tryChallenge(\"2across\", \"sat\", \"p2\"));\n assertEquals(Outcome.FAILED, okBoard.tryChallenge(\"3across\", \"tap\", \"p2\"));\n // no one has claimed the id \"1down\" yet\n assertEquals(Outcome.SUCCESS, okBoard.tryWord(\"1down\", \"cat\", \"p2\"));\n // p2 already claimed \"1down\"\n assertEquals(Outcome.WORD_OWNED, okBoard.tryWord(\"1down\", \"cat\", \"p1\"));\n // p2 was originally correct\n assertEquals(Outcome.FAILED, okBoard.tryChallenge(\"1down\", \"car\", \"p1\"));\n assertEquals(Outcome.FINISHED, okBoard.tryWord(\"4down\", \"xray\", \"p2\"));\n // finished because of the previous move\n assertEquals(Outcome.FINISHED, okBoard.tryWord(\"4down\", \"xray\", \"p2\"));\n assertEquals(2, okBoard.showScore(\"p1\"));\n assertEquals(-1, okBoard.showScore(\"p2\"));\n }", "@Test(groups = { \"survey-creation\", \"all-tests\" })\r\n public void unsuccessfullyUpdatedQuestionDueToMissingMappingOfContactAnswers() throws Exception {\r\n\r\n String number = driver.getTimestamp();\r\n String surveyName = number + \"MissingMappingOfContactAnswers\";\r\n\r\n log.startTest( \"LeadEnable: Verify that an error message is displayed during survey creation when contact field is set and corresponding answers are not mapped\" );\r\n try {\r\n // Log And Go to Survey Page\r\n loginToSend().goToSurveyPage().sfdcSurvey.createSurveyAndTypeSurveyName( surveyName )\r\n .checkLogResponseInCRM()\r\n .selectSurveyFolders( surveyType6, sfdcCampaign6 );\r\n send.sfdcSurvey.sfdcQuestion.addOrUpdateMCQuestionBy( MCcontactFiled.STATUS.question,\r\n QuestionStatus.EDIT )\r\n .fillinMCQAnswers( MCcontactFiled.STATUS.option_1,\r\n MCcontactFiled.STATUS.option_2 )\r\n .mapQuestionToContactField( MCcontactFiled.STATUS.name,\r\n element.sfdcContactFieldMCid )\r\n .updateQuestion();\r\n\r\n log.resultStep( \"Verify that the warning message is displayed 'Please map all marked fields'\" );\r\n log.endStep( driver.isTextPresent( \"//span[@class='validationMessage']\",\r\n \"Please map all marked fields\",\r\n driver.ajaxTimeOut ) );\r\n\r\n } catch( Exception e ) {\r\n log.endStep( false );\r\n throw e;\r\n }\r\n log.endTest();\r\n }", "@Test\n void studentMCQTotalAnsweredCorrectlyTest(){\n Student student = new Student(\"Lim\");\n\n int expectedResult = 8; // Input for testing\n student.setNumCorrectAns(expectedResult); // Set Total Number Question(s) Answered Correctly\n System.out.println(\"Test Case #3\");\n System.out.println(\"\\tExpected Result: \" + expectedResult); // print expected result\n int actualResult = student.getNumCorrectAns(); // Actual Result\n System.out.println(\"\\tActual Result: \" + actualResult); // Print actual result\n assertEquals(expectedResult, actualResult); // Compare the expected result (True) & Actual Result\n }", "@Test\n\tpublic void testValidateSortOrder() {\n\t\ttry {\n\t\t\tfor(String emptyValue : ParameterSets.getEmptyValues()) {\n\t\t\t\tAssert.assertNull(SurveyResponseValidators.validateSortOrder(emptyValue));\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tSurveyResponseValidators.validateSortOrder(\"Invalid value.\");\n\t\t\t\tfail(\"The survey response sort order was invalid.\");\n\t\t\t}\n\t\t\tcatch(ValidationException e) {\n\t\t\t\t// Passed.\n\t\t\t}\n\t\t\t\n\t\t\tSet<List<SortParameter>> permutations = \n\t\t\t\tgetUniqueSets(Arrays.asList(SortParameter.values()));\n\t\t\t\n\t\t\tfor(List<SortParameter> permutation : permutations) {\n\t\t\t\tint length = permutation.size();\n\t\t\t\tStringBuilder permutationStringBuilder = new StringBuilder();\n\t\t\t\t\n\t\t\t\tint count = 1;\n\t\t\t\tfor(SortParameter sortParameter : permutation) {\n\t\t\t\t\tpermutationStringBuilder.append(sortParameter.toString());\n\t\t\t\t\t\n\t\t\t\t\tif(count != length) {\n\t\t\t\t\t\tpermutationStringBuilder.append(InputKeys.LIST_ITEM_SEPARATOR);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tString permutationString = permutationStringBuilder.toString();\n\t\t\t\t\n\t\t\t\tAssert.assertEquals(permutation, SurveyResponseValidators.validateSortOrder(permutationString));\n\t\t\t}\n\t\t}\n\t\tcatch(ValidationException e) {\n\t\t\tfail(\"A validation exception was thrown: \" + e.getMessage());\n\t\t}\n\t}", "private void shuffleOrder() {\n\t\t// Simple shuffle: swap each piece with some other one\n\t\tfor (int i = 0; i < order.size(); i++) {\n\t\t\tint j = (int) (Math.random() * order.size());\n\t\t\tInteger pi = order.get(i);\n\t\t\torder.set(i, order.get(j));\n\t\t\torder.set(j, pi);\n\t\t}\n\t}", "@Test\n\tpublic void positiveTest() {\n\t\tint input[] ={1, 4, 5, 6, 15};\n\t\t//here 1 represent that NQueen arrangement is possible\n\t\t// We have to type cast boolean to int because JUnit Array Equals function does'nt support boolean array\n\t\tint expecteds[] = {1, 1, 1, 1, 1};\n\t\tint actuals[] = new int[input.length];\n\t\tfor(int i=0; i<input.length; i++){\n\t\t\tNQueen q = new NQueen(input[i]);\n\t\t\tactuals[i] = q.nQueen(0) ? 1 : 0;\n\t\t}\n\t\tassertArrayEquals(expecteds, actuals);\n\t}", "@Test\n public void testSolution() {\n assertArrayEquals(new int[]{3,2,1} , new Task().reverse3( new int[]{1, 2, 3}));\n assertArrayEquals(new int[]{5, 11, 9} , new Task().reverse3( new int[]{9, 11, 5}));\n assertArrayEquals(new int[]{7, 0, 0} , new Task().reverse3( new int[]{0, 0, 7}));\n assertArrayEquals(new int[]{2, 1, 2} , new Task().reverse3( new int[]{2, 1, 2}));\n assertArrayEquals(new int[]{1, 2, 1} , new Task().reverse3( new int[]{1, 2, 1}));\n assertArrayEquals(new int[]{2, 11, 3} , new Task().reverse3( new int[]{3, 11, 2}));\n assertArrayEquals(new int[]{7, 2, 3} , new Task().reverse3( new int[]{3, 2, 7}));\n\n }", "private void setTestData() {\n\t\tCollections.shuffle(input);\n\t\ttestData = new LinkedList<>();\n\t\tfor (int i = 0; i < TEST_DATA_SIZE; i++) {\n\t\t\ttestData.add(input.remove(0));\n\t\t}\n\t}", "public Test() {\n\t\tquestions = new LinkedList<Question>();\n\t}" ]
[ "0.60195404", "0.591039", "0.5773102", "0.57656604", "0.5756277", "0.5745079", "0.57378626", "0.5725294", "0.5677049", "0.5674712", "0.5674047", "0.56540227", "0.565108", "0.56483144", "0.564514", "0.5644392", "0.56195015", "0.5602342", "0.5587222", "0.55754125", "0.5564915", "0.5536638", "0.5534251", "0.552366", "0.5518682", "0.55127084", "0.54676753", "0.54656494", "0.5462745", "0.54593056", "0.5450072", "0.54424745", "0.5394539", "0.5386667", "0.5386005", "0.5376074", "0.53749895", "0.5364883", "0.5361875", "0.5350546", "0.5340177", "0.53383034", "0.53367704", "0.5335541", "0.5332275", "0.5312398", "0.5308893", "0.52952886", "0.5292112", "0.52866465", "0.52702856", "0.5257948", "0.52472186", "0.5241984", "0.5231857", "0.5212161", "0.5205028", "0.5202659", "0.51862824", "0.5185661", "0.51828736", "0.51765794", "0.51701474", "0.5168993", "0.51537985", "0.515019", "0.51454955", "0.5144866", "0.5139354", "0.51353776", "0.51268953", "0.5116063", "0.5112832", "0.51122916", "0.5098126", "0.50925153", "0.50917405", "0.5078995", "0.5078752", "0.5063016", "0.5062088", "0.5050838", "0.50503534", "0.50480205", "0.50464", "0.50451416", "0.5042994", "0.5025649", "0.5024072", "0.5010505", "0.5009302", "0.5008945", "0.50069654", "0.49982658", "0.49945018", "0.49942654", "0.49923944", "0.49910927", "0.499023", "0.49858662" ]
0.6370364
0
return a module is publish or not
public String getModStatus(Connection con) throws SQLException { String sql = "select res_status from resources where res_id = ? "; String res_status = null; PreparedStatement pstmt = con.prepareStatement(sql); pstmt.setLong(1, mod_res_id); ResultSet rs = pstmt.executeQuery(); if (rs.next()) { res_status = rs.getString("res_status"); } pstmt.close(); return res_status; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean supportsServeModulesWithoutPublish();", "public Short getIsPublish() {\n\t\treturn isPublish;\n\t}", "public static boolean m133284b() {\n IAVPublishService publishService = ((IAVService) ServiceManager.get().getService(IAVService.class)).publishService();\n C7573i.m23582a((Object) publishService, \"ServiceManager.get().get…ss.java).publishService()\");\n return publishService.isPublishing();\n }", "@Override\r\n\tpublic boolean isPublished() {\r\n\t\treturn super.isPublished();\r\n\t}", "public boolean usesAutoPublishing() {\n return publicationMode == PublicationMode.AUTO_PUBLISH_ON && updateFrequency != null;\n }", "public String getPublish() {\n return publish;\n }", "public String getPublish() {\n return publish;\n }", "public void setIsPublish(Short isPublish) {\n\t\tthis.isPublish = isPublish;\n\t}", "boolean hasPublisherGroupID();", "boolean hasPackageName();", "public boolean isIs_pre_hgk_published() {\n return is_pre_hgk_published;\n }", "Boolean publishRunbook();", "public boolean isPublic() {\n return shortName != null && !shortName.endsWith(\"Bundle\");\n }", "boolean isUseAllLatestPacks();", "protected static boolean canUnPublish(SlingHttpServletRequest request) throws RepositoryException {\n boolean canUnPublish = false;\n Session session = request.getResourceResolver().adaptTo(Session.class);\n UserManager userManager = AccessControlUtil.getUserManager(session);\n Iterator<Group> groupIterator = userManager.getAuthorizable(session.getUserID()).memberOf();\n while (groupIterator.hasNext()) {\n Authorizable group = groupIterator.next();\n if (group.isGroup() && PantheonConstants.PANTHEON_PUBLISHERS.equalsIgnoreCase(group.getID())) {\n canUnPublish = true;\n break;\n }\n }\n return canUnPublish;\n }", "Update withPublishRunbook(Boolean publishRunbook);", "boolean hasCreateTaskPack();", "public boolean hasModule() {\n return fieldSetFlags()[2];\n }", "boolean hasProject();", "public boolean isSetPublish_date() {\n return this.publish_date != null;\n }", "public boolean getDistributable();", "boolean CanUseMonument();", "public boolean isPackage()\n {\n ensureLoaded();\n return m_flags.isPackage();\n }", "public boolean supports (String moduleUri);", "boolean hasPackageid();", "boolean hasPackageid();", "public IStatus canAddModule(IModule module);", "public static boolean isPublic(int mod) {\n\t\treturn Modifier.isPublic(mod);\n\t}", "public void setPublish(String publish) {\n this.publish = publish;\n }", "public void setPublish(String publish) {\n this.publish = publish;\n }", "public static boolean hasModule() {\n\t\ttry {\n\t\t\tPackageManager packageManager = AppMain.getContext().getPackageManager();\n\t\t\tIntent intent = new Intent(\"android.settings.USAGE_ACCESS_SETTINGS\");\n\t\t\tList<ResolveInfo> list = packageManager.queryIntentActivities(intent,\n\t\t\t\tPackageManager.MATCH_DEFAULT_ONLY);\n\t\t\treturn list.size() > 0;\n\t\t} catch (RuntimeException e) {\n\t\t\t// 在某个三星的设备上出现过安全异常\n\t\t\t// 在某个ZTE的设备上出现过RuntimeException\n\t\t\treturn false;\n\t\t}\n\t}", "boolean hasDeployedModel();", "boolean publish() {\n pendingOps.incrementAndGet();\n State currentState = state.get();\n if (currentState == State.FROZEN || currentState == State.RELEASED) {\n pendingOps.decrementAndGet();\n return false;\n }\n return true;\n }", "public boolean isPublic() {\n\t\treturn Modifier.isPublic(modifier);\n\t}", "boolean hasBuild();", "public boolean isPublic() {\r\n\t\treturn isPublic;\r\n\t}", "public boolean hasModule(String moduleName) \r\n {\r\n return moduleStore.containsKey(moduleName) || moduleStore.containsValue(moduleName); \r\n }", "interface ExternalModuleChecker {\n\t/**\n\t * To check is external-module registered well\n\t *\n\t * @param module module to check\n\t * @return true if registered well\n\t */\n\tboolean isValidModule(ExternalModule module);\n}", "public boolean isExport() {\n return export;\n }", "public boolean hasPublisherGroupID() {\n return ((bitField0_ & 0x00001000) == 0x00001000);\n }", "public boolean isSetPackagename() {\n return this.packagename != null;\n }", "public boolean canShare();", "public boolean hasPublisherGroupID() {\n return ((bitField0_ & 0x00001000) == 0x00001000);\n }", "public boolean isPublic()\n {\n ensureLoaded();\n return m_flags.isPublic();\n }", "public boolean getIsPublic()\n {\n return isPublic;\n }", "public boolean isPublicServer() {\n return publicServer;\n }", "default Optional<Boolean> isPubliclyReleasable() {\n return Optional.empty();\n }", "public boolean isToDeploy() {\r\n\t\treturn attachUpdates>0 || catUpdates>0 || catTransUpdates>0 || prodUpdates>0 || prodTransUpdates>0 || menuUpdates>0;\r\n\t}", "protected boolean shouldPublish(AbstractBuild<?, ?> build) {\n return isFailureOrRecovery(build);\n }", "boolean isDataSourceIngestModuleFactory();", "public boolean isBuyable();", "boolean hasSubscribe();", "boolean isFileIngestModuleFactory();", "public interface Module extends Pluggable {\n\t\n\t/**\n\t * Return the module type. Module type can be a value like Mywork, Support, Cowork, etc.\n\t * @return\n\t */\n\tModuleType type();\n\t\n\t/**\n\t * Return true if the module is in subscription. \n\t * @return true if the module is in subscription\n\t */\n\tboolean isOpened();\n\t\n\t/**\n\t * Return true if the module is enabled by a company administrator.\n\t * @return true if the module is enabled by a company administrator\n\t */\n\tboolean isEnabled();\n\t\n\t/**\n\t * Return the home page uri representing an entry point of module.\n\t * @return the home page uri\n\t */\n\tString home();\n\n\t/**\n\t * Return company and user option information like whether option configuration is provided and option configuration uri if any. \n\t * @return company and user option configuration information\n\t */\n\tModuleOption option();\n\t\n\t/**\n\t * Return volume configuration information\n\t * @return\n\t */\n\tModuleComponent volume();\n\t\n\t/**\n\t * Return statistics information\n\t * @return\n\t */\n\tModuleComponent statistics();\n\t\n\t/**\n\t * Return renderer\n\t */\n\tModuleRenderer render();\n\t\n}", "public boolean getIsPublic()\n\t{\n\t\treturn isPublic;\n\t}", "boolean isPermanent();", "public boolean isDeployed(){\n return !places.isEmpty();\n }", "void publishMe();", "public String getPublishing() {\n return (String) getAttributeInternal(PUBLISHING);\n }", "boolean isShared();", "boolean hasSubscription();", "synchronized boolean hasModule(Module module)\n {\n for (int i = 0; i < m_modules.size(); i++)\n {\n if (m_modules.get(i) == module)\n {\n return true;\n }\n }\n return false;\n }", "boolean isNoExport();", "boolean hasChannel();", "boolean hasChannel();", "boolean hasExports() {\n return !exportedNamespacesToSymbols.isEmpty();\n }", "public static Boolean isStandAloneDeployment()\n\t{\n\t\tString deploymentType=Util.getProperty(Constants.PLUGIN_TYPE);\n\t\tif(Constants.PLUGIN_TYPE_STAND_ALONE.equals(deploymentType))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean isSetPublisher() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __PUBLISHER_ISSET_ID);\n }", "boolean hasPaymentUrl();", "boolean hasVersion();", "boolean hasVersion();", "public boolean isArtifactRepository() {\n \t\t\tif (artifact != null)\n \t\t\t\treturn artifact.booleanValue();\n \t\t\treturn !Boolean.TRUE.equals(metadata);\n \t\t}", "public Boolean getIsPublic() {\n\t\treturn isPublic;\n\t}", "boolean hasRemarketingAction();", "public boolean isLoaded() {\n return m_module.isLoaded();\n }", "boolean hasThirdPartyAppAnalyticsLink();", "public boolean getDevelopment();", "interface WithPublishRunbook {\n /**\n * Specifies the publishRunbook property: The auto publish of the source control. Default is true..\n *\n * @param publishRunbook The auto publish of the source control. Default is true.\n * @return the next definition stage.\n */\n Update withPublishRunbook(Boolean publishRunbook);\n }", "public boolean isSubscribed() {\n\t\treturn isSubscribed;\n\t}", "boolean getIsManaged();", "boolean hasPlayready();", "public boolean isMetadataRepository() {\n \t\t\tif (metadata != null)\n \t\t\t\treturn metadata.booleanValue();\n \t\t\treturn !Boolean.TRUE.equals(artifact);\n \t\t}", "public abstract boolean isDelivered();", "public boolean isPost();", "public boolean isPost();", "boolean hasTopic();", "void publish();", "boolean hasTopicConstant();", "public boolean isReadyForRelease() {\r\n return true;\r\n }", "boolean isSetPublicationList();", "boolean hasTopicSubscription();", "public boolean hasCreateTaskPack() {\n return packCase_ == 3;\n }", "private void updatePublishTypeForStaging(IPSPubServer server)\n {\n String pubType = server.getPublishType();\n if(PSPubServer.STAGING.equalsIgnoreCase( server.getServerType())){\n if(pubType.endsWith(\"_only\")){\n server.setPublishType(pubType.replace(\"_only\", \"\"));\n }\n }\n }", "boolean hasFeed();", "boolean hasFeed();", "WithCreate withPublishRunbook(Boolean publishRunbook);", "boolean isValidModule(ExternalModule module);", "boolean isInternal();", "boolean hasFeedItemTarget();", "boolean internal();", "public boolean isProvidesDigestion() {\n\t\treturn providesDigestion;\n\t}" ]
[ "0.7331084", "0.69701445", "0.64914733", "0.6221329", "0.61719614", "0.61396146", "0.61396146", "0.60542864", "0.6001091", "0.5999861", "0.5960731", "0.5878999", "0.5840795", "0.5690663", "0.566662", "0.5660702", "0.5659781", "0.56582546", "0.5644113", "0.5628756", "0.5610342", "0.5609288", "0.55978894", "0.55724776", "0.55544794", "0.55544794", "0.55430037", "0.5529637", "0.5487304", "0.5487304", "0.54868764", "0.54767585", "0.54576015", "0.5438227", "0.5434351", "0.54329795", "0.5425679", "0.54240847", "0.541332", "0.5410232", "0.54091364", "0.5394133", "0.53921247", "0.5391188", "0.5378829", "0.535975", "0.53544945", "0.5354109", "0.53475285", "0.534628", "0.53210914", "0.53068835", "0.5304399", "0.5297241", "0.5291023", "0.52833664", "0.5271686", "0.52676415", "0.5237835", "0.52362955", "0.52272236", "0.52079445", "0.5205545", "0.5198497", "0.5198497", "0.5192338", "0.5189031", "0.5187028", "0.5184807", "0.5168368", "0.5168368", "0.51586413", "0.5157752", "0.51549184", "0.51460826", "0.5145253", "0.5141006", "0.5133947", "0.5120419", "0.5118872", "0.5115544", "0.5113779", "0.5108001", "0.5100543", "0.5100543", "0.50965095", "0.5094129", "0.50874496", "0.5079667", "0.50747335", "0.506622", "0.5065756", "0.5062495", "0.5061758", "0.5061758", "0.50606376", "0.50557023", "0.5054791", "0.5049797", "0.50448436", "0.50424653" ]
0.0
-1
determine if the current module resides in a learning solution of type classroom that is not a class if so, start date, end date, status cannot be modified
public boolean isChangeDate(Connection con) throws SQLException { String SQL = "select itm_id from aeItem where itm_type = 'CLASSROOM' and itm_run_ind = 0 and itm_id in " + "(select cos_itm_id from course where cos_res_id in " + "(select rcn_res_id from resourcecontent where rcn_res_id_content = ?))"; boolean changeDate = true; PreparedStatement stmt = null; try { stmt = con.prepareStatement(SQL); stmt.setLong(1, mod_res_id); ResultSet rs = stmt.executeQuery(); if (rs.next()) { changeDate = false; } } finally { if (stmt != null) { stmt.close(); } } return changeDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean checkCourseLabConflict(Schedule sched)\n\t{\n\t\tSchedule workingSchedule = sched;\n\t\tCourse workingCourse;\n\t\tLab workingLab, lab813 = null, lab913 = null;\n\t\t\t\n\t\t//Traverse through all the classes in the schedule and find their labs\n\t\tfor(int i = 0; i<workingSchedule.getCourses().size();i++)\n\t\t{\n\t\t\tworkingCourse = workingSchedule.getCourses().get(i);\n\t\t\t\n\t\t\t//Traverse through all the labs\n\t\t\tfor(int j = 0; j<workingSchedule.getLabs().size();j++)\n\t\t\t{\n\t\t\t\tworkingLab = workingSchedule.getLabs().get(j);\n\t\t\t\t\n\t\t\t\tif(workingLab.getNumber() == 813)\n\t\t\t\t{\n\t\t\t\t\tlab813 = workingLab;\n\t\t\t\t}\n\t\t\t\telse if(workingLab.getNumber() == 913)\n\t\t\t\t{\n\t\t\t\t\tlab913 = workingLab;\n\t\t\t\t}\n\t\t\t\t//If the lab is in fact a lab for this course and their time slots overlap\n\t\t\t\t//then we return false.\n\t\t\t\tif(isLabOf(workingCourse, workingLab) && !timeSlotConflict(workingCourse, workingLab))\n\t\t\t\t\treturn false;\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t//I need to making workingSchedule a deep copy of s, right now it's just a pointer to s\n\t\t\t\t\t//so if i remove something, we're deleting parts of the schedule\n\t\t\t\t\t//Have to override clone, just don't feel like doing it right now.\n\t\t\t\t\t//workingSchedule.getLabs().remove(j);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Does special cpsc 813 and 913 checking\n\t\tfor(int i = 0; i<workingSchedule.getLabs().size();i++)\n\t\t{\n\t\t\tworkingLab = workingSchedule.getLabs().get(i);\n\t\t\t\n\t\t\t//A 313 lab\n\t\t\tif(workingLab.getDepartment().equals(\"CPSC\") &&\n\t\t\t\t\tworkingLab.getNumber() == 313 &&\n\t\t\t\t\tworkingLab.getSlot() != null &&\n\t\t\t\t\tlab813.getSlot() != null)\n\t\t\t{\n\t\t\t\tif(workingLab.getSlot().getDay() == lab813.getSlot().getDay() &&\n\t\t\t\t\t\tworkingLab.getSlot().getStartTime() == lab813.getSlot().getStartTime())\n\t\t\t\t{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//A 413 lab\n\t\t\telse if(workingLab.getDepartment().equals(\"CPSC\") &&\n\t\t\t\t\tworkingLab.getNumber() == 413 && \n\t\t\t\t\tworkingLab.getSlot() != null &&\n\t\t\t\t\tlab913.getSlot() != null)\n\t\t\t{\n\t\t\t\tif(workingLab.getSlot().getDay() == lab913.getSlot().getDay() &&\n\t\t\t\t\t\tworkingLab.getSlot().getStartTime() == lab913.getSlot().getStartTime())\n\t\t\t\t{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//We've now checked all the courses and labs and found no conflict, return false\n\t\treturn true;\n\t}", "private void validateClassOrLesson() {\n\t\tclassId = languageSettings.getClassId();\n\t\tlessonId = languageSettings.getLessonId();\n\t\tif (classId != -1) {\n\t\t\tloadClassName(classId);\n\t\t\tif (className == null) {\n\t\t\t\tresetLanguageSettings();\n\t\t\t\tlessonId = -1l;\n\t\t\t\tlesson = null;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tif ((!onLargeScreen) && lessonId != -1) {\n\t\t\tloadLesson(lessonId);\n\t\t\tif (lesson == null) {\n\t\t\t\t// lessons must have been deleted so reset\n\t\t\t\tresetLanguageSettings();\n\t\t\t\tlessonId = -1l;\n\t\t\t}\n\t\t}\n\t}", "protected boolean isOutOfMigrationClass(Class<?> clazz) {\n for (String pkg : outOfMigrationPackageSet) {\n if (clazz.getPackage().getName().startsWith(pkg)) {\n return true;\n }\n }\n return outOfMigrationClassSet.contains(clazz);\n }", "private boolean checkCmaxLmax(Schedule sched, int type)\n\t{\n\t\tTimeSlot workingSlot = null;\n\t\tCourse classOrLab = null;\n\t\tint counter = 0;\n\t\tint numOfTimeSlots = -1;\n\t\tint size = -1;\n\t\t\n\t\t//If we are working with a course or a lab\n\t\tif(type == 0)\n\t\t{\n\t\t\tnumOfTimeSlots = courseSlots.size();\n\t\t\tsize = sched.getCourses().size();\n\t\t}\n\t\telse if (type == 1)\n\t\t{\n\t\t\tnumOfTimeSlots = labSlots.size();\n\t\t\tsize = sched.getLabs().size();\n\t\t}\n\t\t\n\t\t//Traverse through all the available course/lab slots to the system\n\t\tfor(int i = 0;i<numOfTimeSlots;i++)\n\t\t{\n\t\t\tcounter = 0;\n\t\n\t\t\t//If we're working with labs or courses\n\t\t\tif(type == 0)\n\t\t\t\tworkingSlot = courseSlots.get(i);\n\t\t\telse if(type == 1)\n\t\t\t\tworkingSlot = labSlots.get(i);\n\t\t\t\t\t\n\t\t\t//Traverse through all the courses in the given schedule and check their time slot\n\t\t\tfor(int j = 0;j<size;j++)\n\t\t\t{\n\t\t\t\t//If we're working with course or lab\n\t\t\t\tif(type == 0)\n\t\t\t\t\tclassOrLab = sched.getCourses().get(j);\n\t\t\t\telse if(type == 1)\n\t\t\t\t\tclassOrLab = sched.getLabs().get(j);\n\t\t\t\t\n\t\t\t\tif(classOrLab.getSlot() != null)\n\t\t\t\t{\t\n\t\t\t\t\t//If they have the same day and start time, the are the same time slot\n\t\t\t\t\tif(workingSlot.getStartTime() == classOrLab.getSlot().getStartTime() &&\n\t\t\t\t\t\t\tworkingSlot.getDay() == classOrLab.getSlot().getDay() &&\n\t\t\t\t\t\t\tworkingSlot.getIsLab() == classOrLab.getSlot().getIsLab())\n\t\t\t\t\t\tcounter++;\n\t\t\t\t}\n\t\t\t}\t\n\t\t\t//For Testing\n\t\t\t//System.out.print(\"\\nMax is: \" + workingSlot.getMaxNum());\n\t\t\t//System.out.print(\"\\nCounter is at: \" + counter);\n\t\t\t\n\t\t\t//If we found more courses that course max that have this time slot, return false\n\t\t\tif(counter > workingSlot.getMaxNum())\n\t\t\t\treturn false;\n\t\t}\n\t\t//If there have been no conflicts so far\n\t\treturn true;\n\t}", "boolean moduleHasLesson(Module module, Lesson lesson);", "boolean isNewSolution();", "public boolean isRunning()\n {\n WebElement box = driver.findElement(By.cssSelector(\"#box\"));\n String lv = box.getAttribute(\"class\");\n int level = lv.charAt(2) - 48;\n\n WebElement timeElem = driver.findElement(By.cssSelector(\"#room > header > span.time\"));\n String timeStr = timeElem.getText();\n int time = stringToInt(timeStr);\n\n return level != 1 && time != 1;\n }", "protected abstract boolean approvedForClass(Course c);", "boolean hasEnclosingInstance(ClassType encl);", "@Override\n public boolean adminEditClass(ShibbolethAuth.Token token, int courseID, String courseName, int courseCredits,\n int instructorID, String firstDay, String lastDay, String classBeginTime, String classEndTime,\n String weekDays, String location, String type, String prerequisite, String description, String department) {\n try {\n adminEditClass1(token, courseID, courseName, courseCredits, instructorID, firstDay, lastDay, classBeginTime,\n classEndTime, weekDays, location, type, prerequisite, description, department);\n } catch (Exception e) {\n System.out.println(e.getMessage());\n return false;\n }\n return true;\n }", "boolean hasStartDate();", "@Override\n public boolean isApplicable(@SuppressWarnings(\"rawtypes\") Class<? extends AbstractProject> jobType) {\n return true;\n }", "boolean isNilSearchRecurrenceStart();", "public boolean hasModuleInHierarchy(RubyModule type) {\n for (RubyModule module = this; module != null; module = module.getSuperClass()) {\n if (module.getNonIncludedClass() == type) return true;\n }\n \n return false;\n }", "@Override\n\tpublic boolean isWorking(Role role, RoleBuild build) {\n\t\treturn false;\n\t}", "private boolean checkUnwanted(Schedule sched)\n\t{\n\t\tPair<Course, TimeSlot> workingPair;\n\t\tCourse workingCourse;\n\t\tTimeSlot workingSlot;\n\t\tLab workingLab;\n\t\tboolean done = false;\n\t\t\n\t\t//Courses \n\t\tfor(int i = 0;i<unwanted.size();i++)\n\t\t{\t\n\t\t\t//If the unwanted we are checking is actually a course\n\t\t\tif(unwanted.get(i).getKey().getClass() == Course.class)\n\t\t\t{\nT:\t\t\t\tfor(int j = 0; j<sched.getCourses().size();j++)\n\t\t\t\t{\n\t\t\t\t\tworkingCourse = sched.getCourses().get(j);\n\t\t\t\t\t//If we found the course \n\t\t\t\t\tif(workingCourse.equals(unwanted.get(i).getKey()) && workingCourse.getSlot() != null)\n\t\t\t\t\t{\n\t\t\t\t\t\t//And it has the same time slot as unwanted return false cause the check failsed\n\t\t\t\t\t\tworkingSlot = workingCourse.getSlot();\n\t\t\t\t\t\tif(workingSlot.getDay() == unwanted.get(i).getValue().getDay() &&\n\t\t\t\t\t\t\t\tworkingSlot.getStartTime() == unwanted.get(i).getValue().getStartTime() &&\n\t\t\t\t\t\t\t\tworkingSlot.getIsLab() == unwanted.get(i).getValue().getIsLab())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//We found the course, but it didn't have the unwanted time slot so we \n\t\t\t\t\t\t\t//break the loop that was trying to find the course\n\t\t\t\t\t\t\tbreak T;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//If the unwanted we are checking is actually a Lab\n\t\t\tif(unwanted.get(i).getKey().getClass() == Lab.class)\n\t\t\t{\n\t\t\t\tLab unwantedLab = (Lab) unwanted.get(i).getKey();\n\t\t\t\t\nF:\t\t\t\tfor(int j = 0; j<sched.getLabs().size();j++)\n\t\t\t\t{\n\t\t\t\t\tworkingLab = sched.getLabs().get(j);\n\t\t\t\t\t//If we found the Lab and the slot is not not null\n\t\t\t\t\tif(workingLab.getDepartment().equals(unwantedLab.getDepartment()) && \n\t\t\t\t\t\t\tworkingLab.getLectureNum() == unwantedLab.getLectureNum() &&\n\t\t\t\t\t\t\tworkingLab.getNumber() == unwantedLab.getNumber() &&\n\t\t\t\t\t\t\tworkingLab.getSection() == unwantedLab.getSection() &&\n\t\t\t\t\t\t\tworkingLab.getSlot() != null)\n\t\t\t\t\t{\n\t\t\t\t\t\t//And it has the same time slot as unwanted return false cause the check failsed\n\t\t\t\t\t\tworkingSlot = workingLab.getSlot();\n\t\t\t\t\t\tif(workingSlot.getDay() == unwanted.get(i).getValue().getDay() &&\n\t\t\t\t\t\t\t\tworkingSlot.getStartTime() == unwanted.get(i).getValue().getStartTime() &&\n\t\t\t\t\t\t\t\tworkingSlot.getIsLab() == unwanted.get(i).getValue().getIsLab())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//We found the course, but it didn't have the unwanted time slot so we \n\t\t\t\t\t\t\t//break the loop that was trying to find the course\n\t\t\t\t\t\t\tbreak F;\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\n\t\treturn true;\n\t}", "boolean hasStartTime();", "public boolean isDisjointTo(OWLClass cls1,\r\n OWLClass cls2,\r\n ReasonerTaskListener taskListener) throws DIGReasonerException;", "boolean hasEndDate();", "public boolean isSatisfiable(OWLClass aClass, ReasonerTaskListener taskListener) throws DIGReasonerException;", "public boolean getNewTaskStartIsProjectStart()\r\n {\r\n return (m_newTaskStartIsProjectStart);\r\n }", "boolean hasProject();", "boolean hasEnclosingInstanceImpl(ClassType encl);", "boolean hasBeginDate();", "@Override\n\tpublic boolean isStoppingConditionReached() {\n\n\t\tlong currentComputingTime = System.currentTimeMillis() - iterationStartingTime;\n\n\t\tif (Configurator.eINSTANCE.isSearchBudgetByTime()) // byTime\n\t\t\treturn super.isStoppingConditionReached() || currentComputingTime > durationThreshold;\n\t\tif (Configurator.eINSTANCE.isSearchBudgetByPrematureConvergence()) // byPrematureConvergence\n\t\t\treturn super.isStoppingConditionReached() || isStagnantState();\n\t\t// computeStagnantState\n\t\tif (Configurator.eINSTANCE.isSearchBudgetByPrematureConvergenceAndTime()) // byBoth\n\t\t\treturn super.isStoppingConditionReached() || isStagnantState() || currentComputingTime > durationThreshold;\n\t\treturn super.isStoppingConditionReached(); // classic\n\n\t}", "protected boolean isInDerivedClass() {\n\t\treturn (getClass() != Main.class);\n\t}", "public boolean checkNotCompatible(Schedule sched)\n\t{ \n\t\tint index1, index2;\n\t\tTimeSlot slot1, slot2;\n\t\t\n\t\tfor(int i = 0;i<notCompatible.size();i++)\n\t\t{\n\t\t\tindex1 = notCompatible.get(i).getKey().getIndex();\n\t\t\tindex2 = notCompatible.get(i).getValue().getIndex();\n\t\t\t\n\t\t\tif(notCompatible.get(i).getKey().getClass() == Course.class) //Course-x\n\t\t\t{\n\t\t\t\tif(notCompatible.get(i).getValue().getClass() == Course.class) //Course-Course\n\t\t\t\t{\n\t\t\t\t\tslot1 = sched.getCourses().get(index1).getSlot();\n\t\t\t\t\tslot2 = sched.getCourses().get(index2).getSlot();\n\t\t\t\t\t\n\t\t\t\t\tif(slot1 == slot2 && slot1 != null && slot2 != null)\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse //Course-Lab\n\t\t\t\t{\n\t\t\t\t\tslot1 = sched.getCourses().get(index1).getSlot();\n\t\t\t\t\tslot2 = sched.getLabs().get(index2).getSlot();\n\t\t\t\t\t\n\t\t\t\t\tif(slot1 == slot2 && slot1 != null && slot2 != null)\n\t\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse //Lab-x\n\t\t\t{\n\t\t\t\tif(notCompatible.get(i).getValue().getClass() == Course.class) //Lab-Course\n\t\t\t\t{\n\t\t\t\t\tslot1 = sched.getLabs().get(index1).getSlot();\n\t\t\t\t\tslot2 = sched.getCourses().get(index2).getSlot();\n\t\t\t\t\t\n\t\t\t\t\tif(slot1 == slot2 && slot1 != null && slot2 != null)\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse //Lab-Lab\n\t\t\t\t{\n\t\t\t\t\tslot1 = sched.getLabs().get(index1).getSlot();\n\t\t\t\t\tslot2 = sched.getLabs().get(index2).getSlot();\n\t\t\t\t\t\n\t\t\t\t\tif(slot1 == slot2 && slot1 != null && slot2 != null)\n\t\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t\t\n\t\treturn true;\n\t\t\n\t\t/*\n\t\tPair<Course, Course> workingPair;\n\t\tTimeSlot ts1, ts2;\n\t\tCourse notCompat_x, notCompat_y;\n\t\tCourse workingCourse1, workingCourse2;\n\t\tLab workingLab1, workingLab2;\n\t\t\n\t\t//Traverse through the list of not compatibles\n\t\tfor(int i = 0;i<notCompatible.size();i++)\n\t\t{\n\t\t\tnotCompat_x = notCompatible.get(i).getKey();\n\t\t\tnotCompat_y = notCompatible.get(i).getValue();\n\t\t\t\n\t\t\tif(notCompat_x.getClass() == Course.class)\n\t\t\t{\n\t\t\t\t//Find the notCompat _x in the course list\nR:\t\t\t\tfor(int j = 0;j<sched.getCourses().size();j++)\n\t\t\t\t{\n\t\t\t\t\tworkingCourse1 = sched.getCourses().get(j);\n\t\t\t\t\t\n\t\t\t\t\t//If we found it\n\t\t\t\t\tif(workingCourse1.equals(notCompat_x))\n\t\t\t\t\t{\n\t\t\t\t\t\t//Need to find the second one.\n\t\t\t\t\t\tif(notCompat_y.getClass() == Course.class) //If we're dealing with course-course\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//Looking for the second one \nE:\t\t\t\t\t\t\tfor(int k = 0; k<sched.getCourses().size();k++)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tworkingCourse2 = sched.getCourses().get(k);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//If we found the 2nd course in the course list\n\t\t\t\t\t\t\t\tif(workingCourse2.equals(notCompat_y))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tts1 = workingCourse1.getSlot();\n\t\t\t\t\t\t\t\t\tts2 = workingCourse2.getSlot();\n\t\t\t\t\t\t\t\t\t//Now we have them both\n\t\t\t\t\t\t\t\t\tif(ts1 != null && ts2 != null)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(ts1.getDay().equals(ts2.getDay()) &&\n\t\t\t\t\t\t\t\t\t\t\t\tts1.getStartTime() == ts2.getStartTime())\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\treturn false;\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}\n\t\t\t\t\t\t\t\t\tbreak E;\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\telse //Must be a lab\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//Dealing with course-lab\n\t\t\t\t\t\t\t//Looking for the second one \nE:\t\t\t\t\t\t\tfor(int k = 0; k<sched.getLabs().size();k++)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tworkingLab2 = sched.getLabs().get(k);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//If we found the 2nd course in the course list\n\t\t\t\t\t\t\t\tif(workingLab2.equals(notCompat_y))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tts1 = workingCourse1.getSlot();\n\t\t\t\t\t\t\t\t\tts2 = workingLab2.getSlot();\n\t\t\t\t\t\t\t\t\t//Now we have them both\n\t\t\t\t\t\t\t\t\tif(ts1 != null && ts2 != null)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(ts1.getDay().equals(ts2.getDay()) &&\n\t\t\t\t\t\t\t\t\t\t\t\tts1.getStartTime() == ts2.getStartTime())\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\treturn false;\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\n\t\t\t\t\t\t\t\t\t\telse if(timeSlotConflict(workingCourse1, workingLab2) ==false)\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\treturn false;\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}\n\t\t\t\t\t\t\t\t\tbreak E;\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\tbreak R;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t\telse //Dealing with a lab first\n\t\t\t{\n\t\t\t\t\n\t\t\t\t//Find the notCompat _x in the course list\nR:\t\t\t\tfor(int j = 0;j<sched.getLabs().size();j++)\n\t\t\t\t{\n\t\t\t\t\tworkingLab1 = sched.getLabs().get(j);\n\t\t\t\t\t\n\t\t\t\t\t//If we found it\n\t\t\t\t\tif(workingLab1.equals(notCompat_x))\n\t\t\t\t\t{\n\t\t\t\t\t\t//Need to find the second one.\n\t\t\t\t\t\tif(notCompat_y.getClass() == Course.class) //If we're dealing with lab-course\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//Looking for the second one \n\t\t\t\t\t\t\tfor(int k = 0; k<sched.getCourses().size();k++)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tworkingCourse2 = sched.getCourses().get(k);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//If we found the 2nd course in the course list\nE:\t\t\t\t\t\t\t\tif(workingCourse2.equals(notCompat_y))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tts1 = workingLab1.getSlot();\n\t\t\t\t\t\t\t\t\tts2 = workingCourse2.getSlot();\n\t\t\t\t\t\t\t\t\t//Now we have them both\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif(ts1 != null && ts2 != null)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(ts1.getDay().equals(ts2.getDay()) &&\n\t\t\t\t\t\t\t\t\t\t\t\tts1.getStartTime() == ts2.getStartTime())\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\treturn false;\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\tif(timeSlotConflict(workingCourse2, workingLab1) == false)\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\treturn false;\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}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tbreak E;\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\telse //Must be a lab\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//Dealing with lab-lab\n\t\t\t\t\t\t\t//Looking for the second one \n\t\t\t\t\t\t\tfor(int k = 0; k<sched.getLabs().size();k++)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tworkingLab2 = sched.getLabs().get(k);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//If we found the 2nd course in the course list\nE:\t\t\t\t\t\t\t\tif(workingLab2.equals(notCompat_y))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tts1 = workingLab1.getSlot();\n\t\t\t\t\t\t\t\t\tts2 = workingLab2.getSlot();\n\t\t\t\t\t\t\t\t\t//Now we have them both\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif(ts1 != null && ts2 != null)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(ts1.getDay().equals(ts2.getDay()) &&\n\t\t\t\t\t\t\t\t\t\t\t\tts1.getStartTime() == ts2.getStartTime())\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\treturn false;\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\tbreak E;\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\tbreak R;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\n\n\t\t}\n\t\treturn true;\n\t\t\n\t\t\t*/\n\t}", "boolean hasVotingStartTime();", "@Override\n public boolean isApplicable(Class<? extends AbstractProject> aClass) {\n return true;\n }", "boolean hasVotingEndTime();", "public boolean isClass () throws java.io.IOException, com.linar.jintegra.AutomationException;", "boolean hasDowntimeJailDuration();", "private boolean checkPartials(Schedule sched)\n\t{\n\t\tArrayList<Course> coursesToCheck = new ArrayList<Course>();\n\t\tCourse workingPartialCourse, workingCourse;\n\t\tLab workingPartialLab, workingLab;\n\t\tTimeSlot workingPartialSlot, workingSlot;\n\t\t\n\t\tfor(int i = 0;i<partials.size();i++)\n\t\t{\n\t\t\tworkingPartialCourse = partials.get(i).getKey();\n\t\t\tworkingPartialSlot = partials.get(i).getValue();\n\t\t\t\n\t\t\t\n\t\t\t//If it's a lab...do some stuff\n\t\t\tif(workingPartialCourse.getClass() == Lab.class)\n\t\t\t{\n\t\t\t\tworkingPartialLab = (Lab) workingPartialCourse;\n\t\t\t\t\n\t\t\t\t//System.out.println(\"found a lab\");\n\t\t\t\tfor(int j = 0; j<sched.getLabs().size();j++)\n\t\t\t\t{\n\t\t\t\t\tworkingLab = sched.getLabs().get(j);\n\t\t\t\t\tworkingSlot = workingLab.getSlot();\n\t\t\t\t\t\n\t\t\t\t\tif(workingSlot != null)\n\t\t\t\t\t{\n\t\t\t\t\t\t//If they are the same lab\n\t\t\t\t\t\tif(workingLab.getDepartment().equals(workingPartialLab.getDepartment()) &&\n\t\t\t\t\t\t\t\tworkingLab.getLectureNum() == workingPartialLab.getLectureNum() &&\n\t\t\t\t\t\t\t\tworkingLab.getNumber() == workingPartialLab.getNumber() &&\n\t\t\t\t\t\t\t\tworkingLab.getSection() == workingPartialLab.getSection())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(workingSlot.getIsLab() != workingPartialSlot.getIsLab() ||\n\t\t\t\t\t\t\t\t\tworkingSlot.getDay() != workingPartialSlot.getDay() ||\n\t\t\t\t\t\t\t\t\tworkingSlot.getStartTime() != workingPartialSlot.getStartTime())\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse //It's a course..\n\t\t\t{\n\t\t\t\tfor(int j = 0; j<sched.getCourses().size();j++)\n\t\t\t\t{\n\t\t\t\t\tworkingCourse = sched.getCourses().get(j);\n\t\t\t\t\tworkingSlot = workingCourse.getSlot();\n\t\t\t\t\t\n\t\t\t\t\tif(workingSlot != null)\n\t\t\t\t\t{\n\t\t\t\t\t\t//If they are the same course\n\t\t\t\t\t\tif(workingCourse.getDepartment().equals(workingPartialCourse.getDepartment()) &&\n\t\t\t\t\t\t\t\tworkingCourse.getNumber() == workingPartialCourse.getNumber() &&\n\t\t\t\t\t\t\t\tworkingCourse.getSection() == workingPartialCourse.getSection())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(workingSlot.getIsLab() != workingPartialSlot.getIsLab() ||\n\t\t\t\t\t\t\t\t\tworkingSlot.getDay() != workingPartialSlot.getDay() ||\n\t\t\t\t\t\t\t\t\tworkingSlot.getStartTime() != workingPartialSlot.getStartTime())\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "boolean hasStartingHadithNo();", "boolean hasNumberOfTasksDeterminingBuildDuration();", "public boolean checkRoomAvailabilty(String date,String startTime,String endTime ,String confID);", "boolean hasDesiredTime();", "private boolean weekendTypeUsed(WeekendType type, ShiftSchedulingProblem problem) {\r\n\t\tfor (Contract contract: problem.contracts()) {\r\n\t\t\tif (contract.getWeekendType() == type) {\r\n\t\t\t\tfor (Employee employee: problem.employees()) {\r\n\t\t\t\t\tif (employee.getContract() == contract)\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "boolean hasWork();", "@Override\n\t\tpublic boolean isValidSolution() {\n\t\t\treturn super.isValidSolution();\n\t\t}", "private boolean isStartable()\n {\n if (! isAlive() && nextStartTime <= System.currentTimeMillis())\n {\n return true;\n }\n else\n {\n return false;\n }\n }", "public static boolean inactivateStartGuide(){\n long inactivationTime = 1494536399000L;\r\n long currentTime = System.currentTimeMillis();\r\n boolean inactive = currentTime > inactivationTime;\r\n Log.i(StartPrefsHelper.class.getName(), \"Start Guide inactive: \" + inactive + \", inactivationTime: \" + new Date(inactivationTime) + \", currentTime: \" + new Date(currentTime));\r\n return inactive;\r\n }", "public boolean isApplicable(Class<? extends AbstractProject> aClass) {\n return true;\n }", "public boolean isApplicable(Class<? extends AbstractProject> aClass) {\n return true;\n }", "public boolean isApplicable(Class<? extends AbstractProject> aClass) {\n return true;\n }", "boolean hasCurrentStateTime();", "public void checkTimeRangeSettingsAccordingToTimeModelBeforeJadeStart() {\r\n\t\t\r\n\t\t// --- Get global ScheduleTimeRange --------------- \r\n\t\tScheduleTimeRange strGlobal = ScheduleTimeRangeController.getScheduleTimeRange();\r\n\t\tif (strGlobal==null) return;\r\n\t\t\r\n\t\t// --- Get Project instance -----------------------\r\n\t\tProject project = this.graphController.getProject();\r\n\t\tif (project==null) return; // (will not happen, but see 'save' call below)\r\n\t\t\r\n\t\t// --- Get date based time model ------------------\r\n\t\tTimeModel timeModel = this.graphController.getTimeModel();\r\n\t\tif (! (timeModel instanceof TimeModelDateBased)) return;\r\n\t\t\t\t\r\n\t\t// --- Get start and end time of the execution ---- \t\r\n\t\tTimeModelDateBased tmDataBased = (TimeModelDateBased) timeModel;\r\n\t\tlong startTime = tmDataBased.getTimeStart();\r\n\t\t\r\n\t\tif (strGlobal.getTimeFrom()!=startTime) {\r\n\t\t\t// --- ScheduleTimeRange needs to adjusted! --- \r\n\t\t\tlong shift = strGlobal.getTimeFrom() - startTime; \r\n\t\t\tScheduleTimeRange strGlobalNew = strGlobal.getCopy();\r\n\t\t\tstrGlobalNew.setTimeFrom(strGlobal.getTimeFrom() - shift);\r\n\t\t\tif (strGlobal.getRangeType()==RangeType.TimeRange) {\r\n\t\t\t\tstrGlobalNew.setTimeTo(strGlobal.getTimeTo() - shift);\r\n\t\t\t}\r\n\t\t\t// --- Set as new global ScheduleTimeRange ----\r\n\t\t\tScheduleTimeRangeController.setScheduleTimeRange(strGlobalNew , EVENT_CONFIGURED_IN_AWB_MAIN_WINDOW);\r\n\t\t\t\r\n\t\t\t// --- Save the project again -----------------\r\n\t\t\tproject.save();\r\n\t\t}\r\n\t\t\r\n\t}", "boolean isSetSearchRecurrenceStart();", "private boolean solutionChecker() {\n\t\t// TODO\n\t\treturn false;\n\n\t}", "public boolean isApplicable(Class<? extends AbstractProject> aClass) {\n\t\t\treturn true; // so that it will also be available for maven & other projects\n\t\t}", "boolean hasSolverTimeLimitSeconds();", "public boolean estaEnModoAvion();", "public boolean isSubsumedBy(OWLClass cls1,\r\n OWLClass cls2,\r\n ReasonerTaskListener taskListener) throws DIGReasonerException;", "boolean hasTasksDeterminingBuildDurationMs();", "public boolean areUstilWorking() {\n\t\t\n\t\treturn this.working;\n\t\t\n\t}", "boolean hasMission();", "public boolean isCurrentWorkRecordInfo() {\n\t\treturn this.startTime != null \n\t\t\t\t&& this.endTime == null;\n\t}", "private ClassInstance addCurrentClassInstance(ParseTreeNode instanceNameNode, TypeExpr instanceType, TypeClass typeClass) {\r\n\r\n ClassInstance classInstance = new ClassInstance (currentModuleTypeInfo.getModuleName(), instanceType, typeClass, null, InstanceStyle.EXPLICIT); \r\n \r\n //There cannot be duplicate C-T instances in any class imported either directly or indirectly into the module\r\n //where this C-T instance is defined. an instance is identified by the pair (C, T). There cannot be 2 instances for the\r\n //same pair (C, T) in scope in the program. For example, instance Eq a => Ord (Tree a) and instance Ord a => Ord (Tree a)\r\n //are not both allowed. \r\n // \r\n //To elaborate, an instance, such as Ord Date defined in a module cannot be defined within any module imported, either\r\n //directly or indirectly into the module. For example, if module C imports module B and module B imports module A,\r\n //and within module A, the instance Ord Date is defined, then Ord Date, cannot be defined in module C, even though\r\n //module C doesn't import module A directly. One way to think of this is that instances have universal scope. \r\n \r\n ClassInstance otherInstance = currentModuleTypeInfo.getVisibleClassInstance(classInstance.getIdentifier());\r\n if (otherInstance != null) { \r\n \r\n //an instance, such as Ord Date, can be defined only once within a module.\r\n //instances such as \"(Eq a) => Ord Maybe a\", \"Ord Maybe a\" and \"Ord a => Ord Maybe a\"\r\n //all have the same instance identifiers Ord Maybe, and are not allowed. These\r\n //are called overlapping instances. We distinguish the error messages for clarity. \r\n \r\n String declName = classInstance.getNameWithContext();\r\n String otherDeclName = otherInstance.getNameWithContext();\r\n MessageKind message; \r\n if (instanceType instanceof RecordType) {\r\n //universal record instance\r\n \r\n // The instance {classInstance.getNameWithContext()} overlaps with the record instance {otherInstance.getNameWithContext()} defined in module {otherInstance.getModuleName()}.\r\n message = new MessageKind.Error.RecordInstancesOverlap(classInstance.getNameWithContext(), otherInstance.getNameWithContext(), otherInstance.getModuleName());\r\n \r\n } else {\r\n //type constructor instances\r\n \r\n if (declName.equals(otherDeclName)) { \r\n message = new MessageKind.Error.InstanceAlreadyDefined(declName, otherInstance.getModuleName());\r\n } else {\r\n message = new MessageKind.Error.InstanceOverlapsWithInstanceInModule(declName, otherDeclName, otherInstance.getModuleName());\r\n }\r\n }\r\n \r\n compiler.logMessage(new CompilerMessage(instanceNameNode, message)); \r\n }\r\n \r\n currentModuleTypeInfo.addClassInstance(classInstance); \r\n \r\n return classInstance; \r\n }", "boolean hasParentalStatus();", "@SuppressWarnings(\"rawtypes\")\n\t\tpublic boolean isApplicable( Class<? extends AbstractProject> aClass ) {\n\t\t\treturn true;\n\t\t}", "public boolean isClass() {\n return operation == null;\n }", "@Override\n public boolean adminAddClass(ShibbolethAuth.Token token, int courseID, String courseName, int courseCredits,\n int courseCapacity, String term, int instructorID, String firstDay, String lastDay, String classBeginTime,\n String classEndTime, String weekDays, String location, String type, String prerequisite, String description,\n String department) {\n\n try {\n return adminAddClass1(token, courseID, courseName, courseCredits, courseCapacity, term, instructorID,\n firstDay, lastDay, classBeginTime, classEndTime, weekDays, location, type, prerequisite,\n description, department);\n } catch (Exception e) {\n System.out.println(e.getMessage());\n\n return false;\n\n }\n }", "protected boolean isNonJavaProject(ILaunchConfiguration configuration) throws CoreException {\n\t\tIJavaModel javaModel = JavaCore.create(ResourcesPlugin.getWorkspace().getRoot());\r\n\t\r\n\t\tboolean answer = false;\r\n\t\tString projectName = configuration.getAttribute(\r\n\t\t\t\tIJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME,\r\n\t\t\t\t(String) null);\r\n\t\tif (projectName != null && projectName.trim().length() > 0) {\r\n\t\t\tIJavaProject javaProject = javaModel.getJavaProject(projectName);\r\n\t\t\t// IJavaProject javaProject =\r\n\t\t\t// JavaRuntime.getJavaProject(configuration);\r\n\t\t\tif (javaProject != null) {\r\n\t\t\t\t// lets see if it exists\r\n\t\t\t\tif (!javaProject.exists()) {\r\n\t\t\t\t\tanswer = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn answer;\r\n\t}", "boolean hasMinExperience();", "boolean isProperClass(String str)\n {\n File f = new File(MutationSystem.MUTANT_HOME, str);\n File[] dirs = f.listFiles(new DirFileFilter());\n if ((dirs == null) || (dirs.length == 0)) \n return false;\n \n String[] names = {\"\", \"original\"};\n switch(getMutantType())\n {\n case MutationSystem.TM: names[0] = \"mutants\";\n break;\n case MutationSystem.EM: names[0] = \"exceptional_mutants\";\n break;\n }\n \n for (int i=0; i<names.length; i++)\n {\n boolean found = false;\n for (int j=0; j<dirs.length; j++)\n {\n if (dirs[j].getName().equals(names[i]))\n {\n found = true;\n break;\n }\n }\n if (!found) \n return false;\n }\n return true;\n }", "boolean isScope();", "boolean hasEndTime();", "boolean isClassMapping() {\n return !path.isEmpty() && !targetClass.isEmpty()\n && condAttr.isEmpty() && condAttrValue.isEmpty() && source.isEmpty()\n && sourceName.isEmpty() && targetProperty.isEmpty() && targetType.isEmpty();\n }", "boolean hasStart();", "public boolean isApplicable(final Class<? extends AbstractProject> aClass) {\n return true;\n }", "boolean hasScheduling();", "boolean hasScheduling();", "private int beforeNowAfter(Date lectureDate, int start, int end){\n Date now = new Date();\n if(lectureDate.getYear()<now.getYear()){\n return 0;\n }else if(lectureDate.getYear()>now.getYear()){\n return 2;\n }else{\n if(lectureDate.getMonth()<now.getMonth()){\n return 0;\n }else if(lectureDate.getMonth()>now.getMonth()){\n return 2;\n }else{\n if(lectureDate.getDate()<now.getDate()){\n return 0;\n }else if(lectureDate.getDate()>now.getDate()){\n return 2;\n }else{\n if(end==now.getHours()&&now.getMinutes()>15){ //Lectures end officially after 15min past the end hour.\n return 0;\n }else if(end<now.getHours()){\n return 0;\n }else if(start>now.getHours()){\n return 2;\n }else{\n return 1;\n }\n }\n }\n }\n }", "@Override\n\tprotected boolean isStoppingConditionReached() {\n\t\t\n\t\tboolean flag = iteration > maxIteration || \n\t\t\t\tlocalSearchTime > maxLocalSearchTime || \n\t\t\t\t!isUpdate;\n\t\tisUpdate = false ;\n\t\treturn flag ;\n\t}", "private boolean worthWaiting() {\n return !PsiDocumentManager.getInstance(myProject).hasUncommitedDocuments() && !ApplicationManager.getApplication().isWriteAccessAllowed() && !FileEditorsSplitters.isOpenedInBulk(myTextEditor.myFile);\n }", "public boolean isNonLivrer() {\n\t\treturn getStatut().equals(StatusBonPreparation.NON_LIVRER);\n\t}", "@Override\r\n\tpublic Class courseHasClass(Course course) {\n\t\treturn null;\r\n\t}", "private boolean isWorkSearch() {\n int i = 0;\n for (Thread thread : this.threadsSaerch) {\n if (thread != null && thread.isAlive()) {\n i++;\n }\n }\n return i == 0;\n }", "protected abstract boolean isMigrationNecessary();", "static boolean isGoal(TreeNode node) {\n return false; // Should be overridden\n }", "public boolean isSolution() {\n\t\t\n\t\tboolean foundSolution = false;\n\t\t\n\t\tif (inconsistencyCount == 0) {\n\t\t\tfoundSolution = true;\n\t\t\tSet<PlanGraphLiteral> lastLevelFacts = facts.get(maxLevel);\n\t\t\tPlanGraphStep endStep = steps.get(maxLevel + 1).iterator().next();\n\t\t\tfor (PlanGraphLiteral goalCondition : endStep.getParentNodes()) {\n\t\t\t\tif (!lastLevelFacts.contains(goalCondition)) {\n\t\t\t\t\tinconsistencies.get(maxLevel).add(new UnsupportedPrecondition(goalCondition, maxLevel));\n\t\t\t\t\tinconsistencyCount++;\n\t\t\t\t\tfoundSolution = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn foundSolution;\n\t}", "boolean hasVisitEndtime();", "boolean hasVisitEndtime();", "private static boolean checkIfYearContinue(Sheet sheet) {\r\n String last = sheet.getCellAt(\"A\" + sheet.getRowCount()).getTextValue(); \r\n return !last.equals(\"end\");\r\n }", "@Override\n\tpublic boolean classIsMissing() {\n\t\treturn false;\n\t}", "boolean hasVisitStarttime();", "boolean hasVisitStarttime();", "boolean contributesContent() {\n return includedInLastStep() && end >= start;\n }", "public boolean isGoalState() {\n boolean isGoal = false;\r\n if(currjug1 == goal || currjug2 == goal)\r\n isGoal = true;\r\n return isGoal;\r\n }", "public boolean tournamentNotEnded(int id) throws Exception {\n\t\tLocalDate today=LocalDate.now();\n\t\tLocalDate endDate;\n\t\tConnection con=ConnectionManager.getConnection();\n\t\tPreparedStatement pstmt = con.prepareStatement(\"select end_date from tournament where id=\"+id);\n\t\tResultSet rs = pstmt.executeQuery();\n\t\trs.next();\n\t\tendDate=rs.getDate(\"end_date\").toLocalDate();\n\t\tcon.close();\n\t\treturn (today.compareTo(endDate) <= 0); \n\t\t\n\t}", "private boolean checkEvenings(Schedule sched)\n\t{\n\t\tint tempSectionNumber; //In his example he has a course with lecture section 95\n\t\t//Traverse through all the courses and look at their time slot start time\n\t\tfor(int i = 0; i<sched.getCourses().size(); i++)\n\t\t{\n\t\t\tif(sched.getCourses().get(i).getSlot() != null)\n\t\t\t{\n\t\t\t\ttempSectionNumber = sched.getCourses().get(i).getSection();\n\t\t\t\t\n\t\t\t while (tempSectionNumber > 9) \n\t\t\t {\n\t\t\t tempSectionNumber /= 10;\n\t\t\t }\n\t\t\t \n\t\t\t\t//If a CPSC course has section number that starts in 9 and \n\t\t\t //starts before 1800 the check failed\n\t\t\t\tif((tempSectionNumber == 9) &&\n\t\t\t\t\t\t(sched.getCourses().get(i).getSlot().getStartTime() <1800) )\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//I commented this out because i don't think we need to for labs\n\t\t/*\n\t\t//Traverse through all the labs and look at their time slot start time\n\t\tfor(int i = 0; i<sched.getLabs().size(); i++)\n\t\t{\n\t\t\t//If a CPSC course has section number 9 and starts before 1800 the check failed\n\t\t\tif((sched.getLabs().get(i).getLectureNum() == 9) &&\n\t\t\t\t\t(sched.getLabs().get(i).getSlot().getStartTime() <1800) &&\n\t\t\t\t\t(sched.getCourses().get(i).getDepartment().equals(\"CSPC\")))\n\t\t\t\treturn false;\t\n\t\t}\n\t\t*/\n\t\t\n\t\t//If we made it here, there were no conflicts. Check passes\n\t\treturn true;\n\t}", "private void checkForOverlappingInstances(ParseTreeNode moduleDefnNode) {\r\n moduleDefnNode.verifyType(CALTreeParserTokenTypes.MODULE_DEFN); \r\n checkForOverlappingInstances(moduleDefnNode, currentModuleTypeInfo, new HashSet<ModuleName>(), new HashMap<ClassInstanceIdentifier, ClassInstance>()); \r\n }", "public boolean checkState(){\r\n\t\t//Check if we have enough users\r\n\t\tfor (Map.Entry<String, Role> entry : roleMap.entrySet()){\r\n\t\t\tString rid = entry.getKey();\r\n\t\t\tRole role = roleMap.get(rid);\r\n\t\t\tlog.info(\"Veryifying \" + rid);\t\t\t\r\n\t\t\tif(!roleCount.containsKey(rid)){\r\n\t\t\t\tlog.severe(\"Unsure of game state.\" + rid + \" not found in roleCount\");\r\n\t\t\t\tSystem.exit(-1);\r\n\t\t\t\r\n\t\t\t} else if(role.getMin() > roleCount.get(rid)) {\r\n\t\t\t\t\tlog.info(\"minimum number for roleID: \" + rid + \" not achived\");\r\n\t\t\t\t\treturn false;\r\n\t\t\t\r\n\t\t\t} else if(role.getMax() < roleCount.get(rid)) { //probably don't need this one but cycles are cheap\r\n\t\t\t\tlog.severe(\"OVER MAXIMUM number for roleID: \" + rid + \" not achived\");\r\n\t\t\t\tSystem.exit(-1);\r\n\t\t\t}\r\n\t\t}\r\n\t\t//if we do reach here we've reached a critical mass of players. But we still need them to load the screen\r\n\t\t\r\n\t\tif((this.getGameState() != GAMESTATE.RUNNING) ||(this.gameState !=GAMESTATE.READY_TO_START) ) {\r\n\t\t\tsetGameState(GAMESTATE.CRITICAL_MASS);\r\n\t\t\tlog.info(\"have enough players for game\");\r\n\t\t}\r\n\t\t//if the users are done loading their screen, let us know and then we can start\r\n\t\tif (!userReady.containsValue(false)){\r\n\t\t\tsetGameState(GAMESTATE.READY_TO_START);\r\n\t\t\tlog.info(\"Gamestate is running!!\");\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "boolean isSetStaEnd();", "boolean moduleHasExam(Module module, Exam exam);", "boolean isStartMethod(JflowMethod fm)\t{ return start_set.contains(fm); }", "protected boolean isFinished() {\n \t\n \tif(current_time >= goal) {\n \t\t\n \t\treturn true;\n \t}else {\n \t\t\n \t\treturn false;\n \t}\n }", "public void analyzeLifetimeClass(){\n currentClassCommitData = new ArrayList<>();\n String classPath = currentExtractMethod.getRefactoringData().getFileLoc();\n Iterable<RevCommit> commits = null;\n try {\n commits = git.log().addPath(classPath).call();\n } catch (GitAPIException e) {\n e.printStackTrace();\n }\n\n List<RevCommit> orderedList = Utils.reverseIterable(commits);\n for(int i = 0; i < orderedList.size(); i++){\n RevCommit commit = orderedList.get(i);\n Date commitDate = commit.getAuthorIdent().getWhen();\n currentClassCommitData.add(new ClassCommitData(\n commitDate,\n i==0,\n currentExtractMethod.getRefactoringData().getCommitDate().equals(commitDate)));\n }\n }", "boolean isWorkingDay() {\n return true;\n }", "public boolean createLesson() {\n\t\treturn false;\n\t}" ]
[ "0.53248626", "0.5220745", "0.5198355", "0.5185193", "0.51211655", "0.512115", "0.5108018", "0.50999886", "0.50982153", "0.50738066", "0.50305206", "0.5025917", "0.50104886", "0.5005471", "0.5000188", "0.49972853", "0.49718612", "0.49702936", "0.49614793", "0.49592277", "0.49472126", "0.49376673", "0.49259487", "0.4901068", "0.49007285", "0.48994955", "0.48745072", "0.48605683", "0.48594275", "0.4858873", "0.48539853", "0.48460606", "0.48375228", "0.4814804", "0.48073956", "0.48051545", "0.48050252", "0.48049825", "0.4796007", "0.47841805", "0.47796986", "0.47668657", "0.47611606", "0.47611606", "0.47611606", "0.47573742", "0.47513264", "0.47448224", "0.47389686", "0.47389185", "0.47242093", "0.47158757", "0.47078127", "0.47014517", "0.46940482", "0.46818632", "0.4676352", "0.46756074", "0.4673099", "0.4666916", "0.4648353", "0.46453705", "0.46444073", "0.4642576", "0.46381462", "0.46328962", "0.46321863", "0.46315673", "0.4627757", "0.4622869", "0.46221918", "0.46221918", "0.46188402", "0.46104407", "0.4608976", "0.459955", "0.4599316", "0.45967823", "0.45938623", "0.45866424", "0.45856762", "0.45833904", "0.45833904", "0.45795935", "0.45791548", "0.45783016", "0.45783016", "0.4574524", "0.4569808", "0.45697618", "0.4569547", "0.45693588", "0.4565705", "0.4563941", "0.45634416", "0.45513004", "0.45510402", "0.45430252", "0.4542653", "0.45416042" ]
0.48104385
34
Get the list of question from the test;
public String getStaticQueAsXML_test(Connection con, Vector resIdVec,boolean isShuffleMCQue, long tkh_id, ExportController controller) throws SQLException,qdbException ,cwSysMessage,qdbErrMessage,qdbErrMessage { Vector qArray = dbResourceContent.getChildAss(con,mod_res_id); Vector qArray_id = new Vector(); if (qArray.size() == 0) { //if no question is drawn, //throw system message and do not launch the test player CommonLog.info("Empty question for Standard Test"); throw new cwSysMessage("MOD008"); } for (int i=0;i < qArray.size();i++) { dbResourceContent rcn = (dbResourceContent) qArray.elementAt(i); qArray_id.add(new Long(rcn.rcn_res_id_content)); } String qList = ""; mod_size = qArray.size(); qList += dbQuestion.getQueAsXML_test(con, null, qArray_id, resIdVec, mod_type, isShuffleMCQue, tkh_id, mod_res_id, controller); return qList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Question> getQuestions();", "List<Question> getQuestionsUsed();", "@Override\n\tpublic List<Questions> listQuestion(int testId) {\n\t\treturn null;\n\t}", "@Override\n\tpublic List<Questions> listQuestion(long testId1) {\n\t\treturn null;\n\t}", "public ArrayList<String> getQuestionsList() {\n\t\tArrayList<String> questionsList = new ArrayList<String>();\n\t\t\t\t\n\t\tfor (String line : contentsByLine) {\n\t\t\n\t\t\tif (line.endsWith(\"?\")) {\n\t\t\t\tquestionsList.add(line);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn questionsList;\n\t}", "public List<Question> getQuestions() {\n return questionList;\n }", "public ArrayList<String> getQuestionList(){\n if(questionList != null) {\n return questionList;\n }\n else{\n System.out.println(\"No question list defined.\");\n return null;\n }\n }", "List<Question> getQuestions(String surveyId);", "public static List<Question> getQuestions() {\n if (QUESTION == null) {\n QUESTION = new ArrayList<>();\n List<Option> options = new ArrayList<Option>();\n options.add(new Option(1, \"Radio Waves\"));\n options.add(new Option(2, \"Sound Waves\"));\n options.add(new Option(3, \"Gravity Waves\"));\n options.add(new Option(4, \"Light Waves\"));\n QUESTION.add(new Question(1, \"Which kind of waves are used to make and receive cellphone calls?\", getCategory(4), options, options.get(0)));\n\n List<Option> options2 = new ArrayList<Option>();\n options2.add(new Option(1, \"8\"));\n options2.add(new Option(2, \"6\"));\n options2.add(new Option(3, \"3\"));\n options2.add(new Option(4, \"1\"));\n QUESTION.add(new Question(2, \"How many hearts does an octopus have?\", getCategory(4), options2, options2.get(2)));\n\n List<Option> options3 = new ArrayList<Option>();\n options3.add(new Option(1, \"Newton's Law\"));\n options3.add(new Option(2, \"Hooke's law\"));\n options3.add(new Option(3, \"Darwin's Law\"));\n options3.add(new Option(4, \"Archimedes' principle\"));\n QUESTION.add(new Question(3, \"Whose law states that the force needed to extend a spring by some distance is proportional to that distance?\", getCategory(4), options3, options3.get(1)));\n\n List<Option> options4 = new ArrayList<Option>();\n options4.add(new Option(1, \"M\"));\n options4.add(new Option(2, \"$\"));\n options4.add(new Option(3, \"W\"));\n options4.add(new Option(4, \"#\"));\n QUESTION.add(new Question(4, \"What is the chemical symbol for tungsten?\", getCategory(4), options4, options4.get(2)));\n\n List<Option> options5 = new ArrayList<Option>();\n options5.add(new Option(1, \"Pulsar\"));\n options5.add(new Option(2, \"Draconis\"));\n options5.add(new Option(3, \"Aludra\"));\n options5.add(new Option(4, \"Alwaid\"));\n QUESTION.add(new Question(5, \"What is a highly magnetized, rotating neutron star that emits a beam of electromagnetic radiation?\", getCategory(4), options5, options5.get(0)));\n\n List<Option> options6 = new ArrayList<Option>();\n options6.add(new Option(1, \"2\"));\n options6.add(new Option(2, \"4\"));\n options6.add(new Option(3, \"7\"));\n options6.add(new Option(4, \"10\"));\n QUESTION.add(new Question(6, \"At what temperature is Centigrade equal to Fahrenheit?\", getCategory(4), options6, options6.get(2)));\n\n List<Option> options7 = new ArrayList<Option>();\n options7.add(new Option(1, \"Temperature\"));\n options7.add(new Option(2, \"Distance\"));\n options7.add(new Option(3, \"Light Intensity\"));\n options7.add(new Option(4, \"Noise\"));\n QUESTION.add(new Question(7, \"Kelvin is a unit to measure what?\", getCategory(4), options7, options7.get(2)));\n\n List<Option> options8 = new ArrayList<Option>();\n options8.add(new Option(1, \"Mars\"));\n options8.add(new Option(2, \"Jupiter\"));\n options8.add(new Option(3, \"Saturn\"));\n options8.add(new Option(4, \"Neptune\"));\n QUESTION.add(new Question(8, \"Triton is the largest moon of what planet?\", getCategory(4), options8, options8.get(3)));\n\n List<Option> options9 = new ArrayList<Option>();\n options9.add(new Option(1, \"Brain\"));\n options9.add(new Option(2, \"Heart\"));\n options9.add(new Option(3, \"Lungs\"));\n options9.add(new Option(4, \"Skin\"));\n QUESTION.add(new Question(9, \"What is the human body’s biggest organ?\", getCategory(4), options9, options9.get(3)));\n\n List<Option> options10 = new ArrayList<Option>();\n options10.add(new Option(1, \"Skull\"));\n options10.add(new Option(2, \"Knee Cap\"));\n options10.add(new Option(3, \"Shoulder Joint\"));\n options10.add(new Option(4, \"Backbone\"));\n QUESTION.add(new Question(10, \"What is the more common name for the patella?\", getCategory(4), options10, options10.get(1)));\n\n List<Option> options11 = new ArrayList<Option>();\n options11.add(new Option(1, \"Mother India\"));\n options11.add(new Option(2, \"The Guide\"));\n options11.add(new Option(3, \"Madhumati\"));\n options11.add(new Option(4, \"Amrapali\"));\n QUESTION.add(new Question(11, \"Which was the 1st Indian movie submitted for Oscar?\", getCategory(1), options11, options11.get(0)));\n\n List<Option> options12 = new ArrayList<Option>();\n options12.add(new Option(1, \"Gunda\"));\n options12.add(new Option(2, \"Sholey\"));\n options12.add(new Option(3, \"Satte pe Satta\"));\n options12.add(new Option(4, \"Angoor\"));\n QUESTION.add(new Question(12, \"Which film is similar to Seven Brides For Seven Brothers?\", getCategory(1), options12, options12.get(2)));\n\n List<Option> options13 = new ArrayList<Option>();\n options13.add(new Option(1, \"Rocky\"));\n options13.add(new Option(2, \"Pancham\"));\n options13.add(new Option(3, \"Chichi\"));\n options13.add(new Option(4, \"Chintu\"));\n QUESTION.add(new Question(13, \"Music Director R.D. Burman is also known as?\", getCategory(1), options13, options13.get(1)));\n\n List<Option> options14 = new ArrayList<Option>();\n options14.add(new Option(1, \"Nagarjuna\"));\n options14.add(new Option(2, \"Chiranjeevi\"));\n options14.add(new Option(3, \"Rajinikanth\"));\n options14.add(new Option(4, \"NTR\"));\n QUESTION.add(new Question(14, \"Shivaji Rao Gaikwad is the real name of which actor?\", getCategory(1), options14, options14.get(2)));\n\n List<Option> options15 = new ArrayList<Option>();\n options15.add(new Option(1, \"Geraftaar\"));\n options15.add(new Option(2, \"Hum\"));\n options15.add(new Option(3, \"Andha kanoon\"));\n options15.add(new Option(4, \"Agneepath\"));\n QUESTION.add(new Question(15, \"Name the film in which Amitabh Bachchan, Rajinikanth and Kamal Hasan worked together.\", getCategory(1), options15, options15.get(0)));\n\n List<Option> options16 = new ArrayList<Option>();\n options16.add(new Option(1, \"AR Rahman\"));\n options16.add(new Option(2, \"Bhanu Athaiya\"));\n options16.add(new Option(3, \"Gulzar\"));\n options16.add(new Option(4, \"Rasul Pookutty\"));\n QUESTION.add(new Question(16, \"First Indian to win Oscar award?\", getCategory(1), options16, options16.get(1)));\n\n List<Option> options17 = new ArrayList<Option>();\n options17.add(new Option(1, \"Jab tak hai jaan\"));\n options17.add(new Option(2, \"Rab ne bana di jodi\"));\n options17.add(new Option(3, \"Veer zara\"));\n options17.add(new Option(4, \"Ek tha tiger\"));\n QUESTION.add(new Question(17, \"Which was the last movie directed by Yash Chopra?\", getCategory(1), options17, options17.get(0)));\n\n\n List<Option> options18 = new ArrayList<Option>();\n options18.add(new Option(1, \"‘Thala’ Ajith\"));\n options18.add(new Option(2, \"Arjun Sarja\"));\n options18.add(new Option(3, \"Ashutosh Gawariker\"));\n options18.add(new Option(4, \"AK Hangal\"));\n QUESTION.add(new Question(18, \"\\\"Itna sannata kyun hai bhai?\\\" Who said this, now legendary words, in 'Sholay'?\", getCategory(1), options18, options18.get(3)));\n\n List<Option> options19 = new ArrayList<Option>();\n options19.add(new Option(1, \"Tommy\"));\n options19.add(new Option(2, \"Tuffy\"));\n options19.add(new Option(3, \"Toffy\"));\n options19.add(new Option(4, \"Timmy\"));\n QUESTION.add(new Question(19, \"What was the name of Madhuri Dixit’s dog in Hum Aapke Hain Koun?\", getCategory(1), options19, options19.get(1)));\n\n List<Option> options20 = new ArrayList<Option>();\n options20.add(new Option(1, \"Premnath\"));\n options20.add(new Option(2, \"Dilip Kumar\"));\n options20.add(new Option(3, \"Raj Kapoor\"));\n options20.add(new Option(4, \"Kishore Kumar\"));\n QUESTION.add(new Question(20, \"Beautiful actress Madhubala was married to?\", getCategory(1), options20, options20.get(3)));\n\n\n List<Option> options21 = new ArrayList<Option>();\n options21.add(new Option(1, \"Sher Khan\"));\n options21.add(new Option(2, \"Mufasa\"));\n options21.add(new Option(3, \"Simba\"));\n options21.add(new Option(4, \"Sarabi\"));\n QUESTION.add(new Question(21, \"What is the name of the young lion whose story is told in the musical 'The Lion King'?\", getCategory(2), options21, options21.get(2)));\n\n List<Option> options22 = new ArrayList<Option>();\n options22.add(new Option(1, \"Scotland\"));\n options22.add(new Option(2, \"England\"));\n options22.add(new Option(3, \"Germany\"));\n options22.add(new Option(4, \"Netherland\"));\n QUESTION.add(new Question(22, \"Which country's freedom struggle is portrayed in the Mel Gibson movie 'Braveheart'?\", getCategory(2), options22, options22.get(0)));\n\n List<Option> options23 = new ArrayList<Option>();\n options23.add(new Option(1, \"Letters to Juliet\"));\n options23.add(new Option(2, \"Saving Private Ryan\"));\n options23.add(new Option(3, \"Forest Gump\"));\n options23.add(new Option(4, \"Gone With The Wind\"));\n QUESTION.add(new Question(23, \"Which movie had this dialogue \\\"My mama always said, life was like a box of chocolates. You never know what you're gonna get.\", getCategory(2), options23, options23.get(2)));\n\n List<Option> options24 = new ArrayList<Option>();\n options24.add(new Option(1, \"Die\"));\n options24.add(new Option(2, \"Golden\"));\n options24.add(new Option(3, \"Casino\"));\n options24.add(new Option(4, \"Never\"));\n QUESTION.add(new Question(24, \"Excluding \\\"the\\\", which word appears most often in Bond movie titles?\", getCategory(2), options24, options24.get(3)));\n\n List<Option> options25 = new ArrayList<Option>();\n options25.add(new Option(1, \"Bishop\"));\n options25.add(new Option(2, \"Ash\"));\n options25.add(new Option(3, \"Call\"));\n options25.add(new Option(4, \"Carlos\"));\n QUESTION.add(new Question(25, \"Name the android in movie Alien \", getCategory(2), options25, options25.get(1)));\n\n List<Option> options26 = new ArrayList<Option>();\n options26.add(new Option(1, \"Gone with the wind\"));\n options26.add(new Option(2, \"Home footage\"));\n options26.add(new Option(3, \"With Our King and Queen Through India\"));\n options26.add(new Option(4, \"Treasure Island\"));\n QUESTION.add(new Question(26, \"Which was the first colour film to win a Best Picture Oscar?\", getCategory(2), options26, options26.get(0)));\n\n List<Option> options27 = new ArrayList<Option>();\n options27.add(new Option(1, \"Robert Redford\"));\n options27.add(new Option(2, \"Michael Douglas\"));\n options27.add(new Option(3, \"Harrison Ford\"));\n options27.add(new Option(4, \"Patrick Swayze\"));\n QUESTION.add(new Question(27, \"Who played the male lead opposite Sharon Stone in the hugely successful movie 'The Basic Instinct'?\", getCategory(2), options27, options27.get(1)));\n\n List<Option> options28 = new ArrayList<Option>();\n options28.add(new Option(1, \"10,000 BC\"));\n options28.add(new Option(2, \"Day after tomorrow\"));\n options28.add(new Option(3, \"2012\"));\n options28.add(new Option(4, \"The Noah's Ark Principle\"));\n QUESTION.add(new Question(28, \"Which Roland Emmerich movie portrays fictional cataclysmic events that were to take place in early 21st century?\", getCategory(2), options28, options28.get(2)));\n\n List<Option> options29 = new ArrayList<Option>();\n options29.add(new Option(1, \"Finding Nemo\"));\n options29.add(new Option(2, \"The Incredibles\"));\n options29.add(new Option(3, \"Monsters, Inc.\"));\n options29.add(new Option(4, \"Toy Story\"));\n QUESTION.add(new Question(29, \"What was the first movie by Pixar to receive a rating higher than G in the United States?\", getCategory(2), options29, options29.get(1)));\n\n List<Option> options30 = new ArrayList<Option>();\n options30.add(new Option(1, \"Draco\"));\n options30.add(new Option(2, \"Harry\"));\n options30.add(new Option(3, \"Hermione\"));\n options30.add(new Option(4, \"Ron\"));\n QUESTION.add(new Question(30, \"In the 'Prisoner of Azkaban', who throws rocks at Hagrid's hut so that Harry, Ron and Hermione can leave?\", getCategory(2), options30, options30.get(2)));\n\n List<Option> options31 = new ArrayList<Option>();\n options31.add(new Option(1, \"Brett Lee\"));\n options31.add(new Option(2, \"Adam Gilchrist\"));\n options31.add(new Option(3, \"Jason Gillespie\"));\n options31.add(new Option(4, \"Glenn McGrath\"));\n QUESTION.add(new Question(31, \"'Dizzy' is the nickname of what Australian player?\", getCategory(3), options31, options31.get(2)));\n\n List<Option> options32 = new ArrayList<Option>();\n options32.add(new Option(1, \"1883 between Australia and Wales\"));\n options32.add(new Option(2, \"1844 between Canada and the USA\"));\n options32.add(new Option(3, \"1869 between England and Australia\"));\n options32.add(new Option(4, \"1892 between England and India\"));\n QUESTION.add(new Question(32, \"In what year was the first international cricket match held?\", getCategory(3), options32, options32.get(1)));\n\n List<Option> options33 = new ArrayList<Option>();\n options33.add(new Option(1, \"Salim Durrani\"));\n options33.add(new Option(2, \"Farooq Engineer\"));\n options33.add(new Option(3, \"Vijay Hazare\"));\n options33.add(new Option(4, \"Mansur Ali Khan Pataudi\"));\n QUESTION.add(new Question(33, \"Which former Indian cricketer was nicknamed 'Tiger'?\", getCategory(3), options33, options33.get(3)));\n\n List<Option> options34 = new ArrayList<Option>();\n options34.add(new Option(1, \"Piyush Chawla\"));\n options34.add(new Option(2, \"Gautam Gambhir\"));\n options34.add(new Option(3, \"Irfan Pathan\"));\n options34.add(new Option(4, \"Suresh Raina\"));\n QUESTION.add(new Question(34, \"Who was named as the ICC Emerging Player of the Year 2004?\", getCategory(3), options34, options34.get(2)));\n\n List<Option> options35 = new ArrayList<Option>();\n options35.add(new Option(1, \"Subhash Gupte\"));\n options35.add(new Option(2, \"M.L.Jaisimha\"));\n options35.add(new Option(3, \"Raman Lamba\"));\n options35.add(new Option(4, \"Lala Amarnath\"));\n QUESTION.add(new Question(35, \"Which cricketer died on the field in Bangladesh while playing for Abahani Club?\", getCategory(3), options35, options35.get(2)));\n\n List<Option> options36 = new ArrayList<Option>();\n options36.add(new Option(1, \"V. Raju\"));\n options36.add(new Option(2, \"Rajesh Chauhan\"));\n options36.add(new Option(3, \"Arshad Ayub\"));\n options36.add(new Option(4, \"Narendra Hirwani\"));\n QUESTION.add(new Question(36, \"In 1987-88, which Indian spinner took 16 wickets on his Test debut?\", getCategory(3), options36, options36.get(3)));\n\n List<Option> options37 = new ArrayList<Option>();\n options37.add(new Option(1, \"Ravi Shastri\"));\n options37.add(new Option(2, \"Dilip Vengsarkar\"));\n options37.add(new Option(3, \"Sachin Tendulkar\"));\n options37.add(new Option(4, \"Sanjay Manjrekar\"));\n QUESTION.add(new Question(37, \"Which former Indian Test cricketer equalled Gary Sobers world record of six sixes in an over in a Ranji Trophy match?\", getCategory(3), options37, options37.get(0)));\n\n List<Option> options38 = new ArrayList<Option>();\n options38.add(new Option(1, \"Mohsin khan\"));\n options38.add(new Option(2, \"Wasim Akram\"));\n options38.add(new Option(3, \"Naveen Nischol\"));\n options38.add(new Option(4, \"None Of The Above\"));\n QUESTION.add(new Question(38, \"Reena Roy the Indian film actress married a cricketer?\", getCategory(3), options38, options38.get(0)));\n\n List<Option> options39 = new ArrayList<Option>();\n options39.add(new Option(1, \"London, England\"));\n options39.add(new Option(2, \"Mumbai, India\"));\n options39.add(new Option(3, \"Lahore, Pakistan\"));\n options39.add(new Option(4, \"Nairobi, Kenya\"));\n QUESTION.add(new Question(39, \"Where did Yuvraj Singh make his ODI debut?\", getCategory(3), options39, options39.get(3)));\n\n List<Option> options40 = new ArrayList<Option>();\n options40.add(new Option(1, \"Arvind De Silva\"));\n options40.add(new Option(2, \"Roshan Mahanama\"));\n options40.add(new Option(3, \"Harshan Tilakaratne\"));\n options40.add(new Option(4, \"None Of The Above\"));\n QUESTION.add(new Question(40, \"Kapil Dev's 432 (world) record breaking victim was?\", getCategory(3), options40, options40.get(2)));\n\n List<Option> options41 = new ArrayList<Option>();\n options41.add(new Option(1, \"Vatican\"));\n options41.add(new Option(2, \"Iceland\"));\n options41.add(new Option(3, \"Netherlands\"));\n options41.add(new Option(4, \"Hungary\"));\n QUESTION.add(new Question(41, \"Which country has the lowest population density of any country in Europe?\", getCategory(5), options41, options41.get(1)));\n\n List<Option> options42 = new ArrayList<Option>();\n options42.add(new Option(1, \"Cambodia\"));\n options42.add(new Option(2, \"Thailand\"));\n options42.add(new Option(3, \"Mynamar\"));\n options42.add(new Option(4, \"Bhutan\"));\n QUESTION.add(new Question(42, \"Angkor Wat, the largest religious monument in the world, is in which country?\", getCategory(5), options42, options42.get(0)));\n\n List<Option> options43 = new ArrayList<Option>();\n options43.add(new Option(1, \"Southern\"));\n options43.add(new Option(2, \"Northern and Southern\"));\n options43.add(new Option(3, \"Northern\"));\n options43.add(new Option(4, \"None of the above\"));\n QUESTION.add(new Question(43, \"Is the Tropic of Cancer in the northern or southern hemisphere?\", getCategory(5), options43, options43.get(2)));\n\n List<Option> options44 = new ArrayList<Option>();\n options44.add(new Option(1, \"Bangladesh\"));\n options44.add(new Option(2, \"Nepal\"));\n options44.add(new Option(3, \"Pakistan\"));\n options44.add(new Option(4, \"China\"));\n QUESTION.add(new Question(44, \"The Ganges flows through India and which other country?\", getCategory(5), options44, options44.get(0)));\n\n List<Option> options45 = new ArrayList<Option>();\n options45.add(new Option(1, \"Indian\"));\n options45.add(new Option(2, \"Pacific\"));\n options45.add(new Option(3, \"Arctic\"));\n options45.add(new Option(4, \"Atlantic\"));\n QUESTION.add(new Question(45, \"Which ocean lies on the east coast of the United States?\", getCategory(5), options45, options45.get(3)));\n\n List<Option> options46 = new ArrayList<Option>();\n options46.add(new Option(1, \"Prime Axis\"));\n options46.add(new Option(2, \"Lambert Line\"));\n options46.add(new Option(3, \"Prime Meridian\"));\n options46.add(new Option(4, \"Greenwich\"));\n QUESTION.add(new Question(46, \"What is the imaginary line called that connects the north and south pole?\", getCategory(5), options46, options46.get(2)));\n\n List<Option> options47 = new ArrayList<Option>();\n options47.add(new Option(1, \"Tropic of Cancer\"));\n options47.add(new Option(2, \"Tropic of Capricorn\"));\n QUESTION.add(new Question(47, \"The most northerly circle of latitude on the Earth at which the Sun may appear directly overhead at its culmination is called?\", getCategory(5), options47, options47.get(0)));\n\n List<Option> options48 = new ArrayList<Option>();\n options48.add(new Option(1, \"Nevada\"));\n options48.add(new Option(2, \"Arizona\"));\n options48.add(new Option(3, \"New Mexico\"));\n options48.add(new Option(4, \"San Fransisco\"));\n QUESTION.add(new Question(48, \"Which U.S. state is the Grand Canyon located in?\", getCategory(5), options48, options48.get(1)));\n\n List<Option> options49 = new ArrayList<Option>();\n options49.add(new Option(1, \"Indian Ocean\"));\n options49.add(new Option(2, \"Atlantic Ocean\"));\n options49.add(new Option(3, \"Pacific Ocean\"));\n options49.add(new Option(4, \"Arctic Ocean\"));\n QUESTION.add(new Question(49, \"Which is the largest body of water?\", getCategory(5), options49, options49.get(2)));\n\n List<Option> options50 = new ArrayList<Option>();\n options50.add(new Option(1, \"Maldives\"));\n options50.add(new Option(2, \"Monaco\"));\n options50.add(new Option(3, \"Tuvalu\"));\n options50.add(new Option(4, \"Vatican City\"));\n QUESTION.add(new Question(50, \"Which is the smallest country, measured by total land area?\", getCategory(5), options50, options50.get(3)));\n\n List<Option> options51 = new ArrayList<Option>();\n options51.add(new Option(1, \"1923\"));\n options51.add(new Option(2, \"1938\"));\n options51.add(new Option(3, \"1917\"));\n options51.add(new Option(4, \"1914\"));\n QUESTION.add(new Question(51, \"World War I began in which year?\", getCategory(6), options51, options51.get(3)));\n\n List<Option> options52 = new ArrayList<Option>();\n options52.add(new Option(1, \"France\"));\n options52.add(new Option(2, \"Germany\"));\n options52.add(new Option(3, \"Austria\"));\n options52.add(new Option(4, \"Hungary\"));\n QUESTION.add(new Question(52, \"Adolf Hitler was born in which country?\", getCategory(6), options52, options52.get(2)));\n\n List<Option> options53 = new ArrayList<Option>();\n options53.add(new Option(1, \"1973\"));\n options53.add(new Option(2, \"Austin\"));\n options53.add(new Option(3, \"Dallas\"));\n options53.add(new Option(4, \"1958\"));\n QUESTION.add(new Question(53, \"John F. Kennedy was assassinated in?\", getCategory(6), options53, options53.get(2)));\n\n List<Option> options54 = new ArrayList<Option>();\n options54.add(new Option(1, \"Johannes Gutenburg\"));\n options54.add(new Option(2, \"Benjamin Franklin\"));\n options54.add(new Option(3, \"Sir Isaac Newton\"));\n options54.add(new Option(4, \"Martin Luther\"));\n QUESTION.add(new Question(54, \"The first successful printing press was developed by this man.\", getCategory(6), options54, options54.get(0)));\n\n List<Option> options55 = new ArrayList<Option>();\n options55.add(new Option(1, \"The White Death\"));\n options55.add(new Option(2, \"The Black Plague\"));\n options55.add(new Option(3, \"Smallpox\"));\n options55.add(new Option(4, \"The Bubonic Plague\"));\n QUESTION.add(new Question(55, \"The disease that ravaged and killed a third of Europe's population in the 14th century is known as\", getCategory(6), options55, options55.get(3)));\n\n List<Option> options56 = new ArrayList<Option>();\n options56.add(new Option(1, \"Panipat\"));\n options56.add(new Option(2, \"Troy\"));\n options56.add(new Option(3, \"Waterloo\"));\n options56.add(new Option(4, \"Monaco\"));\n QUESTION.add(new Question(56, \"Napoleon was finally defeated at the battle known as?\", getCategory(6), options56, options56.get(2)));\n\n List<Option> options57 = new ArrayList<Option>();\n options57.add(new Option(1, \"Magellan\"));\n options57.add(new Option(2, \"Cook\"));\n options57.add(new Option(3, \"Marco\"));\n options57.add(new Option(4, \"Sir Francis Drake\"));\n QUESTION.add(new Question(57, \"Who was the first Western explorer to reach China?\", getCategory(6), options57, options57.get(2)));\n\n List<Option> options58 = new ArrayList<Option>();\n options58.add(new Option(1, \"Shah Jahan\"));\n options58.add(new Option(2, \"Chandragupta Maurya\"));\n options58.add(new Option(3, \"Humayun\"));\n options58.add(new Option(4, \"Sher Shah Suri\"));\n QUESTION.add(new Question(58, \"Who built the Grand Trunk Road?\", getCategory(6), options58, options58.get(3)));\n\n List<Option> options59 = new ArrayList<Option>();\n options59.add(new Option(1, \"Jawaharlal Nehru\"));\n options59.add(new Option(2, \"M. K. Gandhi\"));\n options59.add(new Option(3, \"Dr. Rajendra Prasad\"));\n options59.add(new Option(4, \"Dr. S. Radhakrishnan\"));\n QUESTION.add(new Question(59, \"Who was the first President of India?\", getCategory(6), options59, options59.get(2)));\n\n List<Option> options60 = new ArrayList<Option>();\n options60.add(new Option(1, \"8\"));\n options60.add(new Option(2, \"10\"));\n options60.add(new Option(3, \"5\"));\n options60.add(new Option(4, \"18\"));\n QUESTION.add(new Question(60, \"How many days did the battle of Mahabharata last?\", getCategory(6), options60, options60.get(3)));\n }\n return QUESTION;\n }", "public List<TemplateExamQuestion> getQuestions(Group group);", "public Collection<Question> getQuestions();", "public List<DataQuestion> getAllAnswer(){\n return items;\n }", "public List<MultQuestion> multChoiceQuestions(int qid);", "public List<Question> getQuestions() {\n\t\treturn this.questions;\n\t}", "@Override\n\tpublic List<String> getQuestionSpecificsAsList() {\n\t\treturn null;\n\t}", "@Test\n\tpublic void testGetAllQuestions() {\n\t\tList<QnaQuestion> questions = questionLogic.getAllQuestions(LOCATION1_ID);\n\t\tAssert.assertEquals(5, questions.size());\n\t\tAssert.assertTrue(questions.contains(tdp.question1_location1));\n\t\tAssert.assertTrue(questions.contains(tdp.question2_location1));\n\t\tAssert.assertTrue(questions.contains(tdp.question3_location1));\n\t\tAssert.assertTrue(questions.contains(tdp.question4_location1));\n\t\tAssert.assertTrue(questions.contains(tdp.question5_location1));\n\t}", "@Override\n\tpublic List<Question> getQuestions() {\n\t\treturn null;\n\t}", "public java.lang.String getTestQuestion() {\r\n return testQuestion;\r\n }", "public List<TextQuestion> TextQuestions(int aid);", "public Test(List<Question> questions) {\n\t\tthis.questions = questions;\n\t}", "List<ExamGrSubMeta> getAnswerSheetMeta();", "public List<Question> getQuestions()\n\t{\n\t\tList<Question> shallowCopy = new ArrayList<>();\n\t\tshallowCopy.addAll(allQuestions);\n\t\treturn shallowCopy;\n\t}", "public ArrayList<Question> getQuestions() {\r\n\t\treturn this.questions;\r\n\t}", "List<SurveyQuestion> getSurveyQuestionsByQuestions(List<Question> questions);", "public String[] getAnswers()\n\t{\n\t\treturn answers;\t\n\t}", "java.util.List<com.rpg.framework.database.Protocol.Quest> \n getQuestList();", "public java.util.List<java.lang.CharSequence> getAnswers() {\n return Answers;\n }", "public IAnswer[] getAnswers();", "public List<DnsQuestion> questions() {\n if (questions == null) {\n return Collections.emptyList();\n }\n return Collections.unmodifiableList(questions);\n }", "QuestionResponse getResponses(String questionId);", "List<SecurityQuestion> getCustomerQuestions(String locale)throws EOTException;", "public List<Boolean> getGivenAnswers()\n {\n return givenAnswers;\n }", "protected IQuestionCollection getQuestions() {\n\t\treturn fQuestions;\n\t}", "@Override\r\n public ArrayList<String> getAnswers() {\r\n return this.answers;\r\n }", "public List<String> getFaqElementAnswers() {\n List<String> answersList = new ArrayList<>();\n for(WebElement faqAnswer : faqElementAnswers()) {\n answersList.add(faqAnswer.getText());\n }\n return answersList;\n }", "List<QuestionPlugin> getQuestionPlugins();", "public java.util.List<java.lang.CharSequence> getAnswers() {\n return Answers;\n }", "public List queryTest() {\n\t\tList list = null;\n\t\tthis.init();\n\t\t try {\n\t\t\t list= sqlMap.queryForList(\"getAllTest\");\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 list;\n\t\t\n\t}", "List<ExamPackage> getListExercise();", "public Question[] getQuestions() {\n return this.questions.toArray(new Question[0]);\n }", "public void printQuestions()\r\n\t{\r\n\t\tfor(int i = 0; i < questions.size(); i++)\r\n\t\t{\r\n\t\t\tString q = questions.get(i).toString();\r\n\t\t\tSystem.out.println( (i+1) + \". \" + q);\r\n\t\t}\r\n\t}", "public ArrayList<String> getAnswerList(){\n if(answerList != null) {\n return answerList;\n }\n else{\n System.out.println(\"Answer list is undefined.\");\n return null;\n }\n }", "public List<Question> getData() {\n for (int i = 0; i < data.size(); i++) {\n List<Answer> answers = data.get(i).getAnswers();\n Collections.shuffle(answers);\n data.get(i).setAnswers(answers);\n }\n return data;\n }", "public QuestionElement getQuestion(){\r\n\t\treturn ques;\r\n\t}", "@Override\n\t@Transactional\n\tpublic List<Question> getQuestionsByTestId(int id) {\n\t\treturn questionDao.getQuestionsByTestId(id);\n\t}", "public List<QuestionEntity> getAllQuestions() {\n try {\n return entityManager.createNamedQuery(\"getAllQuestions\", QuestionEntity.class).getResultList();\n } catch (NoResultException nre) {\n return null;\n }\n }", "@Test\r\n\tpublic void questionTest() throws Throwable {\n\t\tString category=eUtil.getExcelData(\"smoke\", 1, 2);\r\n\t\tString subcategory=eUtil.getExcelData(\"smoke\", 1, 3);\r\n\t\tString question_title=eUtil.getExcelData(\"smoke\", 1, 4);\r\n\t\tString description=eUtil.getExcelData(\"smoke\", 1, 5);\r\n\t\tString expectedresult=eUtil.getExcelData(\"smoke\", 1, 6);\r\n\r\n\t\t//Navigate to QuestionPage\r\n\t\tQuestionsPage questionpage=new QuestionsPage(driver);\r\n\t\tquestionpage.questionPage(category, subcategory, question_title, description);\r\n\t\t\r\n\t\t//Verification\r\n\t\tString actual = questionpage.questionsLink();\r\n\t\tAssert.assertTrue(actual.contains(expectedresult));\r\n\t}", "ArrayList<Integer> getAnswers (Integer q) {\n\t\tif (results.containsKey(q)) {\n\t\t\treturn results.get(q);\n\t\t} else {\n\t\t\tSystem.out.println(\"No answers found.\");\n\t\t\treturn null;\n\t\t}\n\t}", "public List<Question> getQuestions(String user) {\n List<Question> messages = new ArrayList<Question>();\n \n Query query =\n new Query(\"Question\")\n //The setFilter line was here originally but not in the Step 3 provided code\n .setFilter(new Query.FilterPredicate(\"user\", FilterOperator.EQUAL, user))\n .addSort(\"timestamp\", SortDirection.DESCENDING);\n PreparedQuery results = datastore.prepare(query);\n \n return questionHelper(user, messages, query, results);\n }", "public Questions simulateQuestion(){\n return this._testQuestions.remove(0);\n }", "public static ArrayList<Question> init() {\r\n\t\t\r\n\t\tArrayList<Question> questionList = new ArrayList<Question>();\r\n\t\t\r\n\t\tquestionList.add(new Question(\"What's the capital of Finland?\", \"Helsinki\", \"Hilsinki\",\r\n\t\t\t\t\"Halsinki\", \"Hulsinki\"));\r\n\t\tquestionList.add(new Question(\"What does the fox say?\", \"Nobody really knows\", \"Woof\", \"Meow\", \"Tweet\"));\r\n\t\tquestionList.add(new Question(\"Which insect inspired the term 'computer bug'?\", \"Moth\", \"Roach\", \"Wasp\", \"Fly\"));\r\n\t\tquestionList.add(new Question(\"Who's the protagonist of the movie 'Die Hard'?\", \"John McClane\", \"Jake Peralta\", \"Harry Stamper\", \"Jake MacClane\"));\r\n\t\tquestionList.add(new Question(\"Which one of the following is NOT a star in the Big Dipper constellation (Otava)?\", \"Altair\", \"Megrez\", \"Alkaid\", \"Phecda\"));\r\n\t\tquestionList.add(new Question(\"Which one of the following is NOT a dragon on the TV-series 'Game of Thrones'?\", \"Nymeria\", \"Drogon\", \"Viserion\", \"Rhaegal\"));\r\n\t\tquestionList.add(new Question(\"How many James Bond films are there (Spectre being the latest)?\", \"24\", \"50\", \"30\", \"26\"));\r\n\t\tquestionList.add(new Question(\"What breed is Sauli Niinistö and Jenni Haukio's dog Lennu?\", \"Boston terrier\", \"French bulldog\", \"Chihuahua\", \"Golden retriever\"));\r\n\t\tquestionList.add(new Question(\"Who has composed the Finnish national anthem, 'Maamme'?\", \"Fredrik Pacius\", \"Jean Sibelius\", \"Robert Kajanus\", \"Armas Launis\"));\r\n\t\tquestionList.add(new Question(\"What is the largest desert in the world called?\", \"Sahara\", \"Kalahari\", \"Thar\", \"Sonoran\"));\r\n\t\tquestionList.add(new Question(\"What is the name of the horse that is often seen in the streets of Turku?\", \"Kullannuppu\", \"Hulmuharja\", \"Ilon Pilke\", \"Valo\"));\r\n\t\tquestionList.add(new Question(\"How many different known species of shark are there?\", \"Over 400\", \"Less than 100\", \"200\", \"340\"));\r\n\t\t\r\n\t\t\r\n\t\treturn questionList;\r\n\t\t\r\n\t}", "public List<Question> loadQuestions() {\r\n\t\tScanner scanner = null;\r\n\t\ttry {\r\n\t\t\t// Creating scanner that reads the questions.txt file.\r\n\t\t\tscanner = new Scanner(new File(\"javaQuestions.txt\"));\r\n\t\t\t// Loop that goes over the file and adding each line as a string element to the\r\n\t\t\t// list. The result is full list with the questions.\r\n\t\t\twhile (scanner.hasNextLine()) {\r\n\t\t\t\tQuestion q = new Question();\r\n\t\t\t\tq.setQuestion(scanner.nextLine());\r\n\t\t\t\tquestions.add(q);\r\n\t\t\t}\r\n\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t// Closing the scanner.\r\n\t\tfinally {\r\n\t\t\tscanner.close();\r\n\t\t}\r\n\t\treturn questions;\r\n\t}", "public List<Answer> getAnswers(Question question) throws Exception {\n DataBaseBroker dbb = new DataBaseBroker();\n dbb.loadDriver();\n dbb.establishConnection();\n List<Answer> answers = dbb.getAnswers(question);\n dbb.commit();\n dbb.closeConnection();\n return answers;\n }", "@Test\n public void testGetAnswersByQuestion(){\n Survey survey = createSurvey();\n Question question = createQuestion(survey);\n Answer answer = createAnswer(question);\n\n long testQuestionId = question.getId();\n List<Answer> testAnswers = answerDAO.getAnswersByQuestion(testQuestionId);\n // hiç cevap gelebiliyor mu kontrol, en az 1 cevap yukarda verdik çünkü.\n Assert.assertTrue(testAnswers != null && testAnswers.size() >= 1);\n }", "public Set<Choice> returnChoiceList(Question question) {\n return question.getChoiceList();\n }", "public ArrayList<String> generateAnswers(){\r\n ArrayList<String> ans;\r\n if(qType==0){\r\n ans = new ArrayList(Arrays.asList(\"A\",\"B\",\"C\",\"D\",\"E\"));\r\n }\r\n else{\r\n ans = new ArrayList(Arrays.asList(\"Choice 1\",\"Choice 2\"));\r\n }\r\n return ans;\r\n }", "public List<Question> getQuestionbySid(int sid);", "public java.util.List<com.rpg.framework.database.Protocol.Quest> getQuestList() {\n if (questBuilder_ == null) {\n return java.util.Collections.unmodifiableList(quest_);\n } else {\n return questBuilder_.getMessageList();\n }\n }", "@RequestMapping(value = \"/getQuestion/{test}/{question}\")\n\tpublic Questions getSingleQuestion(@PathVariable(\"test\") int testid,@PathVariable(\"question\") int question) {\n\t\tTest test = testDao.gettestStatus(testid);\n\t\tif(test!=null) {\n\t\t\t\n\t\t\tfor(Questions testQueList : test.getQuestions()) {\n\t\t\t\tif(testQueList.getQid()==question) {\n\t\t\t\t\t//System.out.println(\"test id : \"+testQueList.getTest());\n//\t\t\t\t\ttestQueList.setTest(test.getTestid());\n\t\t\t\t\treturn testQueList;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public String[] getAllAnswers() {\n\t\treturn remainingAnswers.clone();\n\t}", "@Test\n\tpublic void testGetNewQuestions() {\n\t\tList<QnaQuestion> questions = questionLogic.getNewQuestions(LOCATION1_ID);\n\t\tAssert.assertEquals(questions.size(), 2);\n\t\t\n\t\tAssert.assertTrue(questions.contains(tdp.question1_location1));\n\t\tAssert.assertTrue(questions.contains(tdp.question5_location1));\n\t}", "private List<QuestionDef> getQuestions(List<IFormElement> elements)\n\t{\n\t\t//define the return value\n\t\tArrayList<QuestionDef> questions = new ArrayList<QuestionDef>();\n\t\t//loop over elements\n\t\tif(elements == null)\n\t\t{\n\t\t\treturn questions;\n\t\t}\n\t\tfor(IFormElement element: elements)\n\t\t{\n\t\t\t//is it a question\n\t\t\tif(element instanceof QuestionDef)\n\t\t\t{\n\t\t\t\tquestions.add((QuestionDef)element);\n\t\t\t}\n\t\t\t//recurse\n\t\t\tquestions.addAll(getQuestions(element.getChildren()));\n\t\t}\n\t\t\n\t\treturn questions;\n\t}", "private ArrayList<String> getRandQuestion() \n\t{\t\n\t\tquestionUsed = true;\n\t\t\n\t\tRandom randomizer = new Random();\n\t\tint randIdx = 0;\n\t\t\n\t\tif(questionsUsed.isEmpty())\n\t\t\trandIdx = randomizer.nextInt(allQuestions.size());\n\t\telse\n\t\t{\n\t\t\twhile(questionUsed)\n\t\t\t{\n\t\t\t\trandIdx = randomizer.nextInt(allQuestions.size());\n\t\t\t\tcheckIfQuestionUsed(randIdx);\n\t\t\t}\n\t\t}\n\t\t\n\t\tquestionsUsed.add(randIdx);\n\t\t\n\t\treturn allQuestions.get(randIdx);\n\t}", "List<AnswerList> findAllAnsList();", "public List<Integer> getCorrectAnswers() {\n return correctAnswers;\n }", "@WebMethod public Vector<Question> getQuestions(Event ev);", "public static void printQuestions(ArrayList<Question> quest) {\n\t\tfor (Question question : quest) {\n\t\t\tquestion.getText();\n\t\t}\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<AssesmentQuestion> list() {\r\n\r\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\tTransaction tx = session.beginTransaction();\r\n\t\tCriteria criteria = session.createCriteria(AssesmentQuestion.class);\r\n\r\n\t\tList<AssesmentQuestion> assesmentQuestionList = null;\r\n\t\ttry {\r\n\t\t\tassesmentQuestionList = criteria.list();\r\n\t\t\t// tx.commit();\r\n\t\t} catch (HibernateException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tsession.close();\r\n\t\t}\r\n\r\n\t\treturn assesmentQuestionList;\r\n\r\n\t}", "@Test\n public void testGetQuestions() throws Exception {\n\n LinkedMultiValueMap<String, String> requestParams = new LinkedMultiValueMap<>();\n requestParams.add(\"category\", \"10\");\n requestParams.add(\"difficulty\", \"easy\");\n\n mvc.perform(get(\"/questions\").params(requestParams)).andExpect(status().isOk())\n .andExpect(jsonPath(\"$\").isArray()).andExpect(jsonPath(\"$\", hasSize(5)));\n }", "public void setQuestionList(ArrayList<String> questionList){\n this.questionList = questionList;\n }", "public List<Questions> getAllQuestionsHard() {\n List<Questions> questionList = new ArrayList<>();\n db = getReadableDatabase();\n Cursor c = db.rawQuery(\"SELECT * FROM \" + QuestionsTable.Table_name + \" WHERE _id BETWEEN 1 AND 10\", null);\n\n if (c.moveToFirst()){\n do {\n Questions question = new Questions();\n question.setQuestion(c.getString(c.getColumnIndex(QuestionsTable.Column_Question)));\n question.setOption1(c.getString(c.getColumnIndex(QuestionsTable.Column_Option1)));\n question.setOption2(c.getString(c.getColumnIndex(QuestionsTable.Column_Option2)));\n question.setOption3(c.getString(c.getColumnIndex(QuestionsTable.Column_Option3)));\n question.setOption4(c.getString(c.getColumnIndex(QuestionsTable.Column_Option4)));\n question.setAnswerNr(c.getInt(c.getColumnIndex(QuestionsTable.Column_Answer_Nr)));\n questionList.add(question);\n } while (c.moveToNext());\n }\n c.close();\n return questionList;\n }", "public JTestDefinition listOfQueries(){\n Iterable<JHttpQuery> queries = Stream.of(\"100\", \"50\", \"25\")\n .map(q -> new JHttpQuery().get().path(\"/sleep\", q))\n .collect(Collectors.toList());\n return JTestDefinition.builder(Id.of(\"queries list\"), getEndpoints())\n .withQueryProvider(queries)\n .build();\n }", "public Test() {\n\t\tquestions = new LinkedList<Question>();\n\t}", "List<FAQModel> getFAQs();", "List<Question> selectByExample(QuestionExample example);", "List<Question> selectByExample(QuestionExample example);", "List<Question> selectByExample(QuestionExample example);", "List<Question> selectByExample(QuestionExample example);", "List<Result> getResultsByQuizId(int quizId);", "public List getExamples() {\n\t\tif (examples == null) {\n\t\t\texamples = getFormattedPractices(\"/metadataFieldInfo/field/bestPractices/examples\");\n\t\t}\n\t\treturn examples;\n\t}", "public List<String> getAnswersAsList() {\n\t\tString[] data = _answer.split(Question.answerDelimiter);\n\t\tList<String> output = new ArrayList<String>();\n\t\tfor (String answer : data) {\n\t\t\toutput.add(answer);\n\t\t}\n\t\treturn output;\n\t}", "List<Question14> selectByExample(Question14Example example);", "@Override\n\tpublic List<QA> getQAList() {\n\t\treturn qaDao.getQAList();\n\t}", "@GetMapping(\"/quiz/{qid}\")\n\tpublic ResponseEntity<?> getQuestionsOfQuiz(@PathVariable(\"qid\") Long qid){\n\t\tQuiz quiz = this.quizService.getQuiz(qid);\n\t\tSet<Question> questions = quiz.getQuestions();\n\t\tList<Question> list = new ArrayList<>(questions);\n\t\tif(list.size() > Integer.parseInt(quiz.getNumberOfQuestions())) {\n\t\t\tlist = list.subList(0, Integer.parseInt(quiz.getNumberOfQuestions()));\n\t\t}\n\t\t\n\t\tlist.forEach((q)-> {\n\t\t\tq.setAnswer(\"\");\n\t\t});\n\t\t\n\t\tCollections.shuffle(list);\n\t\treturn ResponseEntity.ok(list);\n\t}", "public List<Question> listQuestion(String query) throws StorageException {\n\t\tif (query == null || query.compareTo(\"\") == 0) {\n\t\t\tquery = \"1\";\n\t\t}\n\t\tList<Question> questionList = new ArrayList<Question>();\n\t\tString sortOrder = \"_ID ASC\";\n\t\tString[] selectionArguments = null;\n\t\tQuestion question;\n\t\tCursor cursor = contentResolver.query(LocalStorageContentProvider.QUESTION_URI, null, query, selectionArguments,\n\t\t\t\tsortOrder);\n\t\ttry {\n\t\t\tif (cursor.moveToFirst()) {\n\t\t\t\tdo {\n\t\t\t\t\tquestion = new Question();\n\t\t\t\t\tquestion.set_Id(cursor.getString(cursor.getColumnIndex(\"_ID\")));\n\t\t\t\t\tquestion.setType(cursor.getString(cursor.getColumnIndex(\"TYPE\")));\n\t\t\t\t\tquestion.setTitle(cursor.getString(cursor.getColumnIndex(\"TITLE\")));\n\t\t\t\t\tquestion.setAnswer(cursor.getString(cursor.getColumnIndex(\"ANSWER\")));\n\t\t\t\t\tquestion.set_idQuestionSet(cursor.getString(cursor.getColumnIndex(\"QUESTIONSET_ID\")));\n\t\t\t\t\tquestionList.add(question);\n\t\t\t\t} while (cursor.moveToNext());\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tthrow new StorageException();\n\t\t} finally {\n\t\t\tif (cursor != null && !cursor.isClosed()) {\n\t\t\t\tcursor.close();\n\t\t\t}\n\t\t}\n\t\treturn questionList;\n\t}", "private static ArrayList<Question> extractQuestions(Context context, String level) {\n\n // Create an empty ArrayList to store the questions.\n ArrayList<Question> questionList = new ArrayList<>();\n\n try{\n //Create a JSON object to deal with question data\n JSONObject jsonObject = JsonUtils.jsonFileToJSONObject(context, EXTERNAL);\n JSONArray questionArray = jsonObject.getJSONArray(level.toLowerCase());\n\n int numberOfQuestions = questionArray.length();\n for(int i = 0; i < numberOfQuestions; i++){\n JSONObject jsonQuestion = questionArray.getJSONObject(i);\n\n questionList.add(JsonUtils.convertJsonObjectToQuestionObject(jsonQuestion));\n\n }\n\n }catch(IOException | JSONException e){\n // If an error is thrown when executing any of the above statements in the \"try\" block,\n // catch the exception here, so the app doesn't crash. Print a log message\n // with the message from the exception.\n Log.e(\"QueryUtils\", \"Problem parsing the question JSON results\", e);\n }\n\n return questionList;\n }", "public List<Questions> getAllQuestionsEasy() {\n List<Questions> questionList = new ArrayList<>();\n db = getReadableDatabase();\n Cursor c = db.rawQuery(\"SELECT * FROM \" + QuestionsTable.Table_name + \" WHERE _id BETWEEN 21 AND 30\", null);\n\n if (c.moveToFirst()){\n do {\n Questions question = new Questions();\n question.setQuestion(c.getString(c.getColumnIndex(QuestionsTable.Column_Question)));\n question.setOption1(c.getString(c.getColumnIndex(QuestionsTable.Column_Option1)));\n question.setOption2(c.getString(c.getColumnIndex(QuestionsTable.Column_Option2)));\n question.setOption3(c.getString(c.getColumnIndex(QuestionsTable.Column_Option3)));\n question.setOption4(c.getString(c.getColumnIndex(QuestionsTable.Column_Option4)));\n question.setAnswerNr(c.getInt(c.getColumnIndex(QuestionsTable.Column_Answer_Nr)));\n questionList.add(question);\n } while (c.moveToNext());\n }\n c.close();\n return questionList;\n }", "private List<String> answerType(Question currentQuestion) {\n List<String> answers = new ArrayList<String>();\n\n if (currentQuestion.getTypeOfQuestion() == QuestionTypes.ESSAY || currentQuestion.getTypeOfQuestion() == QuestionTypes.MULTI_CHOICE) {\n System.out.println(\"Single Answer :\" + singleAnswer);\n answers.add(singleAnswer);\n } else {\n System.out.println(\"Multi Answer :\" + multiAnswers);\n answers = multiAnswers;\n }\n return answers;\n }", "public List<?> getQuestions(MathConfiguration mathConfig) {\n\r\n\t\tList<Problem> g7ExponentExpression = new ArrayList<Problem>();\r\n\t\t\r\n\t\tfor (int i = 0; i <3; i++)\r\n\t\t\tg7ExponentExpression.add(getProblem1(mathConfig));\r\n\t\tfor (int i = 0; i <4; i++)\r\n\t\t\tg7ExponentExpression.add(getProblem2(mathConfig));\r\n\t\tfor (int i = 0; i <3; i++)\r\n\t\t\tg7ExponentExpression.add(getProblem3(mathConfig));\r\n\t\tfor (int i = 0; i <3; i++)\r\n\t\t\tg7ExponentExpression.add(getProblem4(mathConfig));\r\n\t\tfor (int i = 0; i <3; i++)\r\n\t\t\tg7ExponentExpression.add(getProblem5(mathConfig));\r\n\t\tfor (int i = 0; i <2; i++)\r\n\t\t\tg7ExponentExpression.add(getProblem6(mathConfig));\r\n\t\tfor (int i = 0; i <2; i++)\r\n\t\t\tg7ExponentExpression.add(getProblem7(mathConfig)); \r\n\t\tfor (int i = 0; i <5; i++)\r\n\t\t\tg7ExponentExpression.add(getProblem8(mathConfig));\r\n\t\t\r\n\r\n\t\treturn g7ExponentExpression;\r\n\t}", "@NonNull\n public String[] getPossibleAnswers() {\n return new String[]{firstAnswer, secondAnswer, thirdAnswer, fourthAnswer};\n }", "@Override\n\tpublic Questions addQuestions(long testId, Questions question) throws TestMSException {\n\t\treturn null;\n\t}", "@Test\n\tpublic void testGetPublishedQuestions() {\n\t\tList<QnaQuestion> questions = questionLogic.getPublishedQuestions(LOCATION1_ID);\n\t\tAssert.assertEquals(questions.size(), 3);\n\t\t\n\t\tAssert.assertTrue(questions.contains(tdp.question2_location1));\n\t\tAssert.assertTrue(questions.contains(tdp.question3_location1));\n\t\tAssert.assertTrue(questions.contains(tdp.question4_location1));\n\t}", "List<Question11> selectByExample(Question11Example example);", "public String getQuestion(int index){\n return questionList.get(index);\n }", "public Collection<String> getExamples() {\n/* 49 */ return EXAMPLES;\n/* */ }", "public List<Answer> getAnswersList() {\n return answersList;\n }", "public java.util.List<com.rpg.framework.database.Protocol.Quest> getQuestList() {\n return quest_;\n }", "@Test\n public void initializeBasicQuizTest() throws CakeException {\n /*\n QuestionList test = new QuestionList(QuestionType.BASIC);\n\n //check if there are the correct number of test questions\n assertEquals(test.getQuestionList().size(), MAX_QUESTIONS);\n\n // check if there are any duplicate questions\n Set<Question> set = new HashSet<>(test.getQuestionList());\n assertEquals(set.size(), test.getQuestionList().size());\n */\n }", "public int getAnsweredQuestions(int index){\n\t\treturn _answeredQuestions[index];\n\n\t}", "public List<String> loadCorrectAnswers() {\r\n\t\tScanner scanner = null;\r\n\t\ttry {\r\n\t\t\t// Creating scanner that reads the questions.txt file.\r\n\t\t\tscanner = new Scanner(new File(\"javaCorrectAnswers.txt\"));\r\n\t\t\t// Loop that goes over the file and adding each line as a string element to the\r\n\t\t\t// list. The result is full list with the questions.\r\n\t\t\twhile (scanner.hasNextLine()) {\r\n\r\n\t\t\t\tcorrectAnswers.add(scanner.nextLine());\r\n\t\t\t}\r\n\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t// Closing the scanner.\r\n\t\tfinally {\r\n\t\t\tscanner.close();\r\n\t\t}\r\n\t\treturn correctAnswers;\r\n\t}", "private void generalKnowledgeQuestions(){\n QuestionUtils.generalKnowledgeQuestions(); //all the questions now are stored int the QuestionUtils class\n }" ]
[ "0.75954926", "0.75626636", "0.73987037", "0.71751124", "0.708457", "0.7053819", "0.70393133", "0.7020083", "0.69553816", "0.6946665", "0.69462657", "0.69025123", "0.67542183", "0.6739658", "0.66725343", "0.6666002", "0.66148114", "0.6607882", "0.6582326", "0.6531514", "0.6514687", "0.651384", "0.6507229", "0.6497377", "0.6456654", "0.6450085", "0.64030653", "0.63875663", "0.6369763", "0.6358724", "0.6341462", "0.6331668", "0.6314484", "0.6313991", "0.6310845", "0.6305144", "0.6291844", "0.626745", "0.6263616", "0.62472427", "0.6225705", "0.6222611", "0.620039", "0.6182593", "0.61674076", "0.6153223", "0.6153158", "0.6132427", "0.6123466", "0.61153615", "0.6110209", "0.61095893", "0.6108559", "0.6094411", "0.6085848", "0.60775423", "0.6073836", "0.6067946", "0.6047895", "0.60333854", "0.6023279", "0.60094714", "0.6008025", "0.5995779", "0.59954005", "0.5991359", "0.59873205", "0.5979834", "0.5979022", "0.5974701", "0.5967136", "0.5946259", "0.5935464", "0.5904095", "0.59024566", "0.59024566", "0.59024566", "0.59024566", "0.5899907", "0.58977807", "0.58936495", "0.5884786", "0.588288", "0.58827984", "0.58808523", "0.5868775", "0.58639294", "0.5861674", "0.5860599", "0.5860409", "0.5853535", "0.5847084", "0.58439004", "0.58302253", "0.5829427", "0.5821932", "0.5805503", "0.5803565", "0.58034104", "0.5796388", "0.57949257" ]
0.0
-1
Empty constructor for hibernate instantiation purposes
public Player(){}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private HibernateUtil() {\n\t}", "public RepoSQL() { // constructor implicit\r\n\t\t super();\r\n\t }", "private HibernateUtil() {\r\n }", "protected CompanyJPA() {\n\t}", "public DB() {\r\n\t\r\n\t}", "public OnibusDAO() {}", "public AbstractHibernateDAOSupport() {\n super();\n }", "public DatabaseTable() { }", "public DbUser() {\r\n\t}", "private DbQuery() {}", "public AbstractEntity() {\r\n\t}", "public ModeOfPurchaseDAOImpl() {\r\n\r\n }", "protected JpaModule() {\n }", "public DbUtils() {\r\n // do nothing\r\n }", "private Db() {\n super(Ke.getDatabase(), null);\n }", "public DaoFactory()\n\t{\n\n\t}", "public SourceDataFileJpa() {\n // n/a\n }", "public DaoConnection() {\n\t\t\n\t}", "public User() {\r\n\r\n\t}", "public User(){}", "public User(){}", "public User(){}", "public EstadosSql() {\r\n }", "public User() {\r\n\t}", "public Database()\r\n\t{\r\n\t\tinitializeDatabase();\r\n\t\t\r\n\t}", "public DbUtil() {}", "private AttendantDatabase() {}", "public Identity() {\n\n\t}", "public BlogDaoHibernateFactoryImpl() {\n\t\tsuper();\n\t}", "public UserLoginDAOImpl() {\r\n\r\n }", "public CiviliteDao() {\r\n\t\tsuper();\r\n\t}", "public User() {\n\t}", "private CommentDAO() {\n\n\t}", "public User() {}", "public User() {}", "public User() {}", "public sqlDatabase() {\n }", "public ExpertiseEntity() {\n }", "public ProfesorDAOImpl() {\n super();\n }", "protected AbstractDao()\n {\n\n }", "private HibernateController(){}", "public MySqlModelBean() {\r\n \r\n }", "public ServiceCacheDB()\n\t{\n\t\tthis(0);\n\t}", "public SchoolCourseStudentDAOImpl() {\r\n\t\tsuper();\r\n\t}", "public ArAgingDetailReportDAO () {}", "public ProductosPuntoVentaDaoImpl() {\r\n }", "public User() {\r\n }", "public User() {\r\n \r\n }", "public HLCICPUserDAO() {\n }", "public UserDAO() {\n }", "public User() {\n\n\t}", "public HProvinceFbDAOImpl() {\r\n super();\r\n }", "public User() { }", "public StockCardReportDAO () {}", "public Model() {\n this(Persistence.createEntityManagerFactory(PERSISTENCE_UNIT_NAME), new TextRepository());\n }", "public UserDAO()\n {\n \n }", "private ORMServiceFactory() { }", "public LPMapdataDaoImpl() {\r\n\t\t\r\n\t}", "public NationalityDAO() {\n //sessionFactory = HibernateUtil.getSessionFactory();\n session=HibernateUtil.openSession();\n }", "public User() {\n super();\n }", "public User() {\n super();\n }", "public Identity()\n {\n super( Fields.ARGS );\n }", "public User()\n\t{\n\t}", "public User() {\n\t\tsuper();\n\t}", "public User() {\n\t\tsuper();\n\t}", "public User() {\n\t\tsuper();\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic DaoBase() {\n\t\tentityClass = (Class<T>) ((ParameterizedType) getClass()\n\t\t\t\t.getGenericSuperclass()).getActualTypeArguments()[0];\n\t}", "private Session() {\n }", "private Session() {\n }", "public UserEntity() {\n\t\tsuper();\n\t}", "public ProductDAO() {\n }", "public Query() {\r\n }", "public StateDAOImpl() {\n super();\n }", "public VRpDyHlrforbeDAOImpl() {\r\n super();\r\n }", "private DbConnection() {\n }", "public User() {\n\tsuper();\n}", "@Inject\n\tpublic AbsenceDaoImpl() throws SQLException {\n\t\tsuper(Absence.class);\n\t}", "public MapEntity() {\n\t}", "private EntityFactory() {}", "private DBUtil() {\r\n\t}", "private Model(){}", "public TableImpl() { columns = new Column[0]; }", "public QueryBO() {\r\n }", "public PurchaseCaseDAO() {\n\t\tsuper(PurchaseCaseVO.class, \"purchaseCaseId\");\n\t}", "public ExcursionEntity() {\n\t}", "public SufficientFundsDaoOjb() {\n }", "public EntityFactoryImpl() {\n\t\tsuper();\n\t}", "protected AbstractJoSQLFilter ()\n {\n\n }", "private User() {}", "private PurchaseDAO(){\n }", "@SuppressWarnings(\"unchecked\")\r\n public GenericDAOImpl() {\r\n this.persistentClass = (Class<DomainObject>) ((ParameterizedType) getClass().getGenericSuperclass()).getActualTypeArguments()[0];\r\n }", "public CrudUserDao() {\r\n super();\r\n }", "public Model() {\n\t}", "public Model() {\n\t}", "public User() {\n }", "public User() {\n }", "public User() {\n }", "public User() {\n }", "public User() {\n }", "public User() {\n }", "public User() {\n }" ]
[ "0.7483504", "0.7406703", "0.73605835", "0.70459896", "0.6950582", "0.6940261", "0.6933635", "0.6877075", "0.68343437", "0.68217313", "0.681638", "0.68039465", "0.6763184", "0.67337966", "0.67217875", "0.6721263", "0.66964716", "0.66727734", "0.6669365", "0.6655808", "0.6655808", "0.6655808", "0.66528565", "0.6650017", "0.6646383", "0.66217333", "0.6618688", "0.6607533", "0.6597455", "0.6595159", "0.6586914", "0.6586507", "0.65759546", "0.65696627", "0.65696627", "0.65696627", "0.655298", "0.6551849", "0.6547219", "0.65455586", "0.6540644", "0.6529778", "0.6523655", "0.65215015", "0.6519801", "0.65133387", "0.6513165", "0.65048134", "0.6504468", "0.65040785", "0.65021545", "0.64983153", "0.6497635", "0.64894265", "0.6488994", "0.648837", "0.6482673", "0.64807", "0.64799464", "0.64727", "0.64727", "0.6470329", "0.6467753", "0.6465974", "0.6465974", "0.6465974", "0.6465076", "0.6464599", "0.6464599", "0.6463559", "0.6454167", "0.6449389", "0.6439137", "0.6432031", "0.6427111", "0.6426969", "0.642647", "0.64245325", "0.6423167", "0.6417868", "0.64175946", "0.64150846", "0.64131397", "0.6411529", "0.64085084", "0.6401179", "0.6398248", "0.6396324", "0.63905644", "0.6388751", "0.6386692", "0.6380401", "0.63800645", "0.63800645", "0.63685095", "0.63685095", "0.63685095", "0.63685095", "0.63685095", "0.63685095", "0.63685095" ]
0.0
-1
Method will return the player's username
public String getUsername() { return this.username; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPlayerOneUserName() {\n if (gameStatus == null) return \"\";\n if (gameStatus.getPlayerOneUserName() == null) return \"\";\n return gameStatus.getPlayerOneUserName();\n }", "String getPlayerName();", "private String getPlayerName() {\n Bundle inBundle = getIntent().getExtras();\n String name = inBundle.get(USER_NAME).toString();\n return name;\n }", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "public String getPlayerName() {\n\t\tString name = super.getPlayerName();\n\t\treturn name;\n\t}", "public String getPlayerName() {\n return nameLabel.getText().substring(0, nameLabel.getText().indexOf('\\''));\n }", "public String getLoggedPlayerName() {\r\n return ctrlDomain.getLoggedPlayerName();\r\n }", "public String getPlayerName(){\n\t\treturn playerName;\n\t}", "String getUsername();", "String getUsername();", "String getUsername();", "String getUsername();", "String getUsername();", "String getUsername();", "public String getPlayerName() {\n return this.playerName;\n }", "@Override\n public String getPlayerName()\n {\n if (currentPlayer == 0)\n {\n return playerOneName;\n }\n else\n {\n return playerTwoName;\n }\n }", "public final String getUsername() {\n\t\treturn username.trim();\n\t}", "public static String getUsername() {\n\t\treturn General.getTRiBotUsername();\n\t}", "public String getPlayername(Player player) {\n System.out.println(\"――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――\");\n System.out.println(\"Merci de d'indiquer le nom du joueur \"+player.getColor().toString(false)+\" : \");\n String name = readInput.nextLine();\n return name;\n }", "public String getPlayerName() {\n return playerName;\n }", "public String getPlayerName() {\n return playerName;\n }", "public String getUsername() {\n return username.get();\n }", "public String getName(){\r\n\t\treturn playerName;\r\n\t}", "public java.lang.String getUsername() {\n return localUsername;\n }", "@Override\n\tpublic java.lang.String getUserName() {\n\t\treturn _esfTournament.getUserName();\n\t}", "@Override\n\tpublic String getPlayerName() {\n\t\treturn playerName;\n\t}", "private String getPlayerName() {\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);\n String storedName = preferences.getString(\"playerName\",\"none\");\n return storedName;\n }", "public String getPlayerName() {\n \treturn playername;\n }", "public String getName()\r\n\t{\r\n\t\treturn this.playerName;\r\n\t}", "String getPlayer();", "public String getPlayerName() {\n\t\treturn name;\n\t}", "@Override\n\tpublic String getUsername() {\n\t\treturn user.getUserName();\n\t}", "public String getPlayerName() {\n\t\treturn playerName;\n\t}", "public String getPlayerTwoUserName() {\n if (gameStatus == null) return \"\";\n if (gameStatus.getPlayerTwoUserName() == null) return \"\";\n return gameStatus.getPlayerTwoUserName();\n }", "public String getName() {\r\n\t\treturn username;\r\n\t}", "String getName() {\n return getStringStat(playerName);\n }", "public java.lang.CharSequence getUsername() {\n return username;\n }", "public java.lang.CharSequence getUsername() {\n return username;\n }", "public String getPlayerName() {\n\n return m_playerName;\n }", "public String getName(){\n return username;\n\t}", "String getUserUsername();", "public String getPlayerName() {\n return props.getProperty(\"name\");\n }", "String getName(){\n\t\treturn playerName;\n\t}", "public String getUsername()\r\n\t{\r\n\t\treturn username;\r\n\t}", "public String getName() {\n\t\treturn this.username;\n\t}", "public final String getUsername() {\n return username;\n }", "public String getPlayerName() {\n return name; \n }", "public String get_username()\r\n\t{\r\n\t\treturn this.username;\r\n\t}", "public String getUsername()\n\t{\n\t\treturn username;\n\t}", "public String getUsername()\n\t{\n\t\treturn m_username;\n\t}", "@Override\n\tpublic String getUsername() {\n\t\treturn user.getUsername();\n\t}", "public String getUsername() {\n \t\treturn username;\n \t}", "public String getUsername() {\n Object ref = username_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n username_ = s;\n return s;\n }\n }", "public String getUsername() {\n Object ref = username_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n username_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public java.lang.String getUsername() {\n java.lang.Object ref = username_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n username_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getUsername() {\n java.lang.Object ref = username_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n username_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getUsername() {\n java.lang.Object ref = username_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n username_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getUsername() {\n java.lang.Object ref = username_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n username_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getName() {\n return (String) getObject(\"username\");\n }", "private String getPlayerName() {\n EditText name = (EditText) findViewById(R.id.name_edittext_view);\n return name.getText().toString();\n }", "@Override\n\tpublic String getUsername() {\n\t\treturn username;\n\t}", "@Override\n\tpublic String getUsername() {\n\t\treturn username;\n\t}", "public java.lang.String getUsername() {\n java.lang.Object ref = username_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n username_ = s;\n }\n return s;\n }\n }", "public java.lang.String getUsername() {\n java.lang.Object ref = username_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n username_ = s;\n }\n return s;\n }\n }", "public java.lang.String getUsername() {\n java.lang.Object ref = username_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n username_ = s;\n }\n return s;\n }\n }", "public java.lang.String getUsername() {\n java.lang.Object ref = username_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n username_ = s;\n }\n return s;\n }\n }", "public java.lang.String getUsername() {\n java.lang.Object ref = username_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n username_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getUsername() {\n java.lang.Object ref = username_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n username_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getUsername() {\n java.lang.Object ref = username_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n username_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getUsername() {\n java.lang.Object ref = username_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n username_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getPlayerName() {\n java.lang.Object ref = playerName_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n playerName_ = s;\n return s;\n }\n }", "@Override\r\n\tpublic String getUsername() {\n\t\treturn username;\r\n\t}", "public String myGetPlayerName(String name) { \n Player caddPlayer = getServer().getPlayerExact(name);\n String pName;\n if(caddPlayer == null) {\n caddPlayer = getServer().getPlayer(name);\n if(caddPlayer == null) {\n pName = name;\n } else {\n pName = caddPlayer.getName();\n }\n } else {\n pName = caddPlayer.getName();\n }\n return pName;\n }", "public java.lang.String getPlayerName() {\n java.lang.Object ref = playerName_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n playerName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "abstract public String getNameFor(Player player);", "public java.lang.String getUsername() {\n java.lang.Object ref = username_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n username_ = s;\n return s;\n }\n }", "public java.lang.String getUsername() {\n java.lang.Object ref = username_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n username_ = s;\n return s;\n }\n }", "public java.lang.String getUsername() {\n java.lang.Object ref = username_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n username_ = s;\n return s;\n }\n }", "public java.lang.String getUsername() {\n java.lang.Object ref = username_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n username_ = s;\n return s;\n }\n }", "public static String getUserDisplayName() {\r\n return getUsername();\r\n }", "@Override\n\tpublic String getUsername() {\n\t\treturn this.username;\n\t}", "public String getUsername() {\n\t\treturn this.username;\n\t}", "public String getUsername() {\r\n\t\treturn username;\r\n\t}", "public String getUsername() {\r\n\t\treturn username;\r\n\t}", "public String getUsername() {\r\n\t\treturn username;\r\n\t}", "public String getUsername() {\r\n\t\treturn username;\r\n\t}", "public String getUsername() {\r\n\t\treturn username;\r\n\t}", "public String getUsername() {\r\n return username;\r\n }", "public String getUsername() {\r\n return username;\r\n }", "public String getUsername() {\r\n return username;\r\n }", "public String getUsername() {\r\n return username;\r\n }", "public String getUsername() {\r\n return username;\r\n }", "public String getUsername() {\r\n return username;\r\n }" ]
[ "0.8146939", "0.8010249", "0.7984719", "0.7881047", "0.7881047", "0.7881047", "0.7881047", "0.7881047", "0.7881047", "0.7881047", "0.7881047", "0.7881047", "0.78468525", "0.78275204", "0.7670552", "0.75976366", "0.7576125", "0.7576125", "0.7576125", "0.7576125", "0.7576125", "0.7576125", "0.75677544", "0.7559584", "0.7540198", "0.75367266", "0.75302804", "0.7522053", "0.7522053", "0.7521021", "0.74874455", "0.7483385", "0.74830216", "0.74811673", "0.7479977", "0.747435", "0.74730897", "0.744559", "0.74421453", "0.74405205", "0.742806", "0.7425192", "0.7424914", "0.74172235", "0.74170274", "0.74094754", "0.7405021", "0.7403248", "0.7388318", "0.7384298", "0.73742694", "0.7365685", "0.7362426", "0.7356992", "0.73367286", "0.73361456", "0.731868", "0.7318476", "0.73036844", "0.72987354", "0.7297276", "0.7287042", "0.7274656", "0.7274656", "0.7274656", "0.7274535", "0.7267099", "0.7266667", "0.7264524", "0.7264524", "0.7260814", "0.7260814", "0.7260814", "0.7260814", "0.7259498", "0.7259498", "0.7259498", "0.7259498", "0.7255449", "0.72542965", "0.7251622", "0.7242988", "0.7228858", "0.7224968", "0.72236043", "0.72236043", "0.72236043", "0.7216152", "0.721494", "0.71986634", "0.7196311", "0.7196311", "0.7196311", "0.7196311", "0.7196311", "0.7188568", "0.7188568", "0.7188568", "0.7188568", "0.7188568", "0.7188568" ]
0.0
-1
Method will set the player's username
public void setUsername(String un) { this.username = un; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setUsername(String username);", "void setUserUsername(String username);", "public final void setUsername(final String value) {\n username = value;\n }", "public void setUsername(String aUsername) {\n username = aUsername;\n }", "public void setUsername(final String username){\n mUsername = username;\n }", "public void setUsername(String username)\r\n/* 16: */ {\r\n/* 17:34 */ this.username = username;\r\n/* 18: */ }", "public static void setUsername(String username)\n {\n username_ = username;\n }", "public void setUsername(java.lang.String param) {\n localUsernameTracker = true;\n\n this.localUsername = param;\n }", "public void setUsername(String username) {\n mUsernameTv.setText(username);\n }", "public void setPlayerName(String name) {\n \tplayername = name;\n }", "public final void setUsername(final String usernameNew) {\n this.username = usernameNew;\n }", "public void setPlayer(String player) {\r\n this.player = player;\r\n }", "public void setUsername(String username) {this.username = username;}", "public void setName(String username) {\n\t\tthis.playlistName = username;\n\t}", "private void setName(String nameIn){\r\n\t\tplayerName = nameIn;\r\n\t}", "public void setUsername(String username) {\n \tthis.username = username;\n }", "public void setUsername(String username) {\n SharedPreferences settings = context.getSharedPreferences(PREFS, 0);\n SharedPreferences.Editor editor = settings.edit();\n editor.putString(\"username\", username);\n editor.commit(); \t\n }", "public void setUsername(String username)\n {\n _username = username;\n }", "public void setUserName(String Strusername) {\n\t\tstepstatus = basepage.setText(Username, Strusername);\n\t\treportEvent(stepstatus, \"Able to enter username\", \"Unable to enter username\", driver, true);\n\t}", "public void setUsername(String username) {\n this.username.set(username);\n }", "protected static void setUsername(String username) {\n Program.username = username;\n }", "public void setName(String name)\r\n\t{\r\n\t\tthis.playerName = name;\r\n\t}", "public void setUsername(String u)\n\t{\n\t\tusername = u;\n\t}", "public void setUsername(java.lang.CharSequence value) {\n this.username = value;\n }", "public void setUsername(String username)\n {\n this.username = username;\n }", "public void setUsername(String username) {\r\n this.username = username;\r\n }", "public void setUsername(String username) {\r\n this.username = username;\r\n }", "public void setUsername(String username) {\n this.username = username;\r\n }", "public void setUsername( String username ) {\n this.username = username;\n }", "public void setUsername(String un)\r\n\t{\r\n\t\tusername = un;\r\n\t}", "public void setName(String username) {\n setObject(\"username\", (username != null) ? username : \"\");\n }", "public void setPlayerName(String name){\n\t\tplayerName = name;\n\t\trepaint();\n\t}", "public void setUsername(String username) {\r\n this.username = username;\r\n }", "public void setUsername(String username) {\r\n this.username = username;\r\n }", "public void setUsername(String username) {\r\n this.username = username;\r\n }", "public void setUsername(final String username) {\n this.username = username;\n }", "public void changeUsername(String username)\n {\n controllerComponents.getAccount().setUsername(username);\n currentUsernameLabel.setText(username);\n }", "public void setUsername(String username) {\n this.username = username;\n }", "public void set_username(String username)\r\n\t{\r\n\t\tthis.username = username;\r\n\t}", "public void setUsername(String name)\r\n {\r\n int index = -1;\r\n //Check if the new username is not already taken before setting the new username\r\n if(usernamesTaken.indexOf(name) == -1)\r\n {\r\n index = usernamesTaken.indexOf(this.username);\r\n usernamesTaken.set(index, name);\r\n this.username = name;\r\n }\r\n else\r\n {\r\n //Outouts a warning message\r\n System.out.println(\"WARNING: This username is already taken\");\r\n }//end if \r\n }", "public void setUsername(String TakenUsername) {\n username = TakenUsername;\n }", "@Override\n public void setUsername() {\n try {\n JCheckBox botCheckBox = (JCheckBox) logIn.getComponent(5);\n bot = botCheckBox.isSelected();\n if(bot) {\n try {\n int thinkingTime = Integer.parseInt((String) JOptionPane.showInputDialog(frame, \"Please enter the AI thinking time in seconds\", \"Thinking time\", JOptionPane.INFORMATION_MESSAGE, null, null, 0));\n client.setThinkintTime(thinkingTime);\n } catch (NumberFormatException e) {\n JOptionPane.showMessageDialog(frame, \"Set thinking time to 0\", \"Illegal input\", JOptionPane.ERROR_MESSAGE);\n client.setThinkintTime(0);\n }\n }\n username = ((JTextField) logIn.getComponent(3)).getText();\n client.setName(username);\n if(serverBrowser == null) {\n serverList();\n } else {\n frame.setContentPane(serverBrowser);\n ((JLabel)((JPanel) serverBrowser.getComponent(0)).getComponent(0)).setText(username);\n }\n } catch (IllegalNameException e) {\n JOptionPane.showMessageDialog(frame, \"Invalid name, please do not use ';' in your name.\", \"Ilegal username\", JOptionPane.ERROR_MESSAGE);\n }\n }", "public void setUserName(String username) {\n\t\tsharedPreferences = context.getSharedPreferences(\"Login\",\n\t\t\t\tcontext.MODE_PRIVATE);\n\t\tSharedPreferences.Editor editor = sharedPreferences.edit();\n\t\teditor.putString(\"USERNAME\", username);\n\t\teditor.commit();\n\t}", "public void setUsername(String username) {\n this.username = username;\n saveProperties();\n }", "public void setUsername(String username) {\n this.username = username.toLowerCase(Locale.ENGLISH);\n }", "@Override\r\n\tpublic void setOpponentName(String name) {\n\t\tmain.setOpponentUsername(name);\r\n\t}", "public com.politrons.avro.AvroPerson.Builder setUsername(java.lang.CharSequence value) {\n validate(fields()[1], value);\n this.username = value;\n fieldSetFlags()[1] = true;\n return this; \n }", "public void setUsername(String username) {\n this.username = username;\n }", "public void setUsername(String username) {\n this.username = username;\n }", "public void setUsername(String username) {\n this.username = username;\n }", "public void setUsername(String username) {\n this.username = username;\n }", "public void setUsername(String username) {\n this.username = username;\n }", "public void setUsername(String username) {\n this.username = username;\n }", "public void setUsername(String username) {\n this.username = username;\n }", "public void setUsername(String username) {\n this.username = username;\n }", "public void setUsername(String username) {\n this.username = username;\n }", "public void setUsername(String username) {\n this.username = username;\n }", "public void setUsername(String username) {\n this.username = username;\n }", "public void setUsername(String username) {\n this.username = username;\n }", "public void setUsername(String username) {\n this.username = username;\n }", "public void setUsername(String username) {\n this.username = username;\n }", "public void setUsername(String username) {\n this.username = username;\n }", "public void setUsername(String username) {\n this.username = username;\n }", "public void setUsername(String username) {\n this.username = username;\n }", "public void setUsername(String username) {\n this.username = username;\n }", "public void setUsername(String username) {\n this.username = username;\n }", "public void setName(String name)\n {\n playersName = name;\n }", "public void setCurrentPlayerName(String name)\n {\n currentPlayerName = name;\n startGame();\n }", "public void setPlayerName(String name) {\n\t\tsuper.setPlayerName(name);\n\t}", "public void setUsername(String username) {\n\tthis.username = username;\n}", "public void setUsername(String username) {\r\n\t\tthis.username = username;\r\n\t}", "public void setUsername(String username) {\r\n\t\tthis.username = username;\r\n\t}", "public void setUsername(String username) {\r\n\t\tthis.username = username;\r\n\t}", "public void setNames(){\n System.out.println();\n System.out.println(\"Welcome! Please set your username!\");\n for(int i = 0; i < players.size(); i ++){\n Player player = players.get(i);\n player.rename(\"Dealer Jack\");\n for(int j = 0; j < i; j ++){\n while(player.getName().equals(players.get(j).getName())){\n System.out.println(\"Username taken! Please enter another name!\");\n player.setName(\"player\" + (i + 1));\n player.rename(\"Dealer Jack\");\n }\n }\n }\n }", "public void setUsername(String name) {\r\n TextView username = (TextView) mView.findViewById(R.id.current_bid_username);\r\n username.setText(name);\r\n }", "public void setPlayer1Name(String name){\n player1 = name;\n }", "public void setUsername(String newUsername) throws UsernameTakenException {\n profile.setUsername(currentUser, newUsername);\n }", "public void setPlayerName(String playerName) {\n this.playerName = playerName;\n }", "public Builder setUsername(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n username_ = value;\n onChanged();\n return this;\n }", "public Builder setUsername(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n username_ = value;\n onChanged();\n return this;\n }", "public Builder setUsername(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n username_ = value;\n onChanged();\n return this;\n }", "public Builder setUsername(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n username_ = value;\n onChanged();\n return this;\n }", "void notifyPlayerJoined(String username);", "public void setWinningText(String player) {\n names.setText(player +\" WINS!!!\");\n }", "public void fillUsername(String value) {\n setFieldValue(\"username\", value);\n }", "@Override\n\tpublic void setUserName(java.lang.String userName) {\n\t\t_esfTournament.setUserName(userName);\n\t}", "public void setNames() {\n\t\tPlayer1 = \"COMPUTER\";\n\t\tPlayer2 = JOptionPane.showInputDialog(null, \"Enter your Name:\");\n\t\tnames_set = true;\n\t}", "public void setPlayerName()\r\n\t{\r\n\t\tScanner in = new Scanner(System.in);\r\n\t\tSystem.out.print(\"Enter your name: \");\r\n\t\tname = in.nextLine();\r\n\t}", "public void setUsername(String username) {\n\t\tthis.username = username;\n\t}", "public void setUsername(String username) {\n\t\tthis.username = username;\n\t}", "public void setUsername(String username) {\n\t\tthis.username = username;\n\t}", "public void setUsername(String username) {\n\t\tthis.username = username;\n\t}", "public void setUsername(String username) {\n\t\tthis.username = username;\n\t}", "public void setUsername(String username) {\n\t\tthis.username = username;\n\t}", "public void setUserName(String username){\n this.userName = username;\n }", "public void setUsername(final String aUsername) {\n try {\n username = URLEncoder.encode(aUsername, \"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n username = aUsername;\n }\n }", "static void setCurrentPlayer()\n {\n System.out.println(\"Name yourself, primary player of this humble game (or type \\\"I suck in life\\\") to quit: \");\n\n String text = input.nextLine();\n\n if (text.equalsIgnoreCase(\"I suck in life\"))\n quit();\n else\n Player.current.name = text;\n }", "void setUserName(String newName) {\r\n\t\t\tusername = newName;\r\n\t\t}", "void setName(String name) {\n setStringStat(name, playerName);\n }", "public String changeUsernameTitle() {\n return \"Changing username\";\n }" ]
[ "0.7774492", "0.7685262", "0.76346403", "0.7628098", "0.75929844", "0.75566244", "0.75485915", "0.7454499", "0.7416427", "0.74134964", "0.73937446", "0.7370194", "0.7365889", "0.73483545", "0.7333229", "0.7324313", "0.7321288", "0.7320309", "0.7306759", "0.72705066", "0.72697794", "0.7252438", "0.72495335", "0.72370416", "0.72273874", "0.7205447", "0.7205447", "0.72032785", "0.7201328", "0.71999615", "0.71905327", "0.7188565", "0.7185803", "0.7185803", "0.7185803", "0.7184418", "0.7178451", "0.71732235", "0.7172803", "0.7161356", "0.7141812", "0.711628", "0.7115648", "0.71109986", "0.7092626", "0.70915073", "0.7088624", "0.7084025", "0.7084025", "0.7084025", "0.7084025", "0.7084025", "0.7084025", "0.7084025", "0.7084025", "0.7084025", "0.7084025", "0.7084025", "0.7084025", "0.7084025", "0.7084025", "0.7084025", "0.7084025", "0.7084025", "0.7084025", "0.7084025", "0.7080481", "0.70791185", "0.70636463", "0.70563155", "0.70539844", "0.70539844", "0.70539844", "0.7052242", "0.704974", "0.700141", "0.6974719", "0.69546264", "0.69506186", "0.69506186", "0.6946184", "0.6946184", "0.69115776", "0.69026804", "0.68884754", "0.6887868", "0.6885374", "0.6885285", "0.6884037", "0.6884037", "0.6884037", "0.6884037", "0.6884037", "0.6884037", "0.6877699", "0.6866098", "0.68563044", "0.68488795", "0.6846434", "0.68155736" ]
0.70855
47
Method will get the player's password
public String getPassword() { return this.password; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "public String getPlayerPassword(String name) throws IOException, ClassNotFoundException {\r\n return ctrlDomain.getPlayerPassword(name);\r\n }", "public java.lang.String getPassword();", "public String getPassword();", "public String getPassword();", "String getUserPassword();", "Password getPsw();", "public String getPassword()\r\n/* 21: */ {\r\n/* 22:38 */ return this.password;\r\n/* 23: */ }", "private char[] getPass()\n {\n return password.getPassword();\n }", "public String getPassword(){\r\n\t\ttry {\r\n\t\t\treturn this.workerobj.getString(WorkerController.PASSWORD);\r\n\t\t} catch (JSONException e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public String getPassword() {\n return instance.getPassword();\n }", "public String getPassword() {\n return instance.getPassword();\n }", "public String getPassword() {\r\n \t\treturn properties.getProperty(KEY_PASSWORD);\r\n \t}", "public String getPassword() {\n return txtPassword().getText();\n }", "public char[] getPassword();", "public String getPassword() {return password;}", "public String get_password()\r\n\t{\r\n\t\treturn this.password;\r\n\t}", "com.google.protobuf.ByteString\n getPasswordBytes();", "com.google.protobuf.ByteString\n getPasswordBytes();", "String getPass();", "public String getPassWord() {\n\t\tsharedPreferences = context.getSharedPreferences(\"Login\",\n\t\t\t\tcontext.MODE_PRIVATE);\n\t\treturn sharedPreferences.getString(\"PASSWORD\", null);\n\t}", "@Nullable\n public String getPassword() {\n return mProto.password;\n }", "public String getPassword() {\n return (String) getObject(\"password\");\n }", "public String getPassword()\n \t{\n \t\treturn password;\n \t}", "public String getPassword()\r\n {\r\n return password;\r\n }", "public String getPassword()\r\n {\r\n return password;\r\n }", "private String getPasswordFromUser() {\n JPasswordField passField = new JPasswordField(10);\n int action = JOptionPane.showConfirmDialog(null, passField, \"Please enter your password:\", JOptionPane.OK_CANCEL_OPTION);\n\n if (action < 0) {\n System.exit(0);\n }\n\n __logger.info(\"Got password from user\");\n\n return new String(passField.getPassword());\n }", "public String getPassword() {\r\n\t\t// Get the password\r\n\t\tchar []code = password.getPassword();\r\n\t\t\r\n\t\t// Make the password string\r\n\t\tString password = \"\";\r\n\t\t\r\n\t\t// convert the char[] to string\r\n\t\tfor (char c: code){\r\n\t\t\tpassword += c;\r\n\t\t}\r\n\t\t\r\n\t\t// Return the password string\r\n\t\treturn password;\r\n\t}", "com.google.protobuf.ByteString\n getPasswordBytes();", "public String getPassword()\n {\n return _password;\n }", "public String getPassword()\n {\n return password;\n }", "public String getPassword()\n {\n return password;\n }", "String password();", "public String getPassword(){\n \treturn password;\n }", "private String getSavedPassword(){\n return new PrefManager(this).getPassword();\n }", "@Override\n\tpublic String getPassword() {\n\t\treturn user.getPassword();\n\t}", "public String getPassword(){\n return password;\n\t}", "public String getPassword()\r\n {\r\n return password;\r\n }", "@Override\n\tpublic String getPass() {\n\t\treturn password;\n\t}", "public String getPassword() {\n\treturn strPasswd;\n }", "public String getPassword()\n {\n return password;\n }", "public String getPassword()\n {\n return password;\n }", "java.lang.String getPass();", "java.lang.String getPass();", "public String getPassword() { \n return this.password; \n }", "com.google.protobuf.ByteString\n getPasswordBytes();", "com.google.protobuf.ByteString\n getPasswordBytes();", "com.google.protobuf.ByteString\n getPasswordBytes();", "com.google.protobuf.ByteString\n getPasswordBytes();", "com.google.protobuf.ByteString\n getPasswordBytes();", "com.google.protobuf.ByteString\n getPasswordBytes();", "com.google.protobuf.ByteString\n getPasswordBytes();", "public String getPassword() {\n return password;\r\n }", "public String getPassword()\n {\n return _password;\n }", "public int getPassword() {\n return password;\n }", "public int getPassword(){\n return password;\r\n }", "public String getaPassword() {\n return aPassword;\n }", "public String getPassword(){\n\t\treturn this.password;\n\t}", "public String getPassword() {\n\t\treturn String.valueOf(password.getPassword());\n\t}", "String getTemporaryPassword();", "public String getPassword() {\n\treturn password;\n}", "public String getPassword() {\n \t\treturn password;\n \t}", "public java.lang.String getPassword() {\r\n return localPassword;\r\n }", "@Override\n\tpublic String getPassword() {\n\t\treturn user.getUserPwd();\n\t}", "public java.lang.String getPassword() {\n java.lang.Object ref = password_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n password_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getPassword() {\n java.lang.Object ref = password_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n password_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getPassword() {\n java.lang.Object ref = password_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n password_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getPassword() {\n java.lang.Object ref = password_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n password_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getPassword()\n\t{\n\t\treturn m_password;\n\t}", "public java.lang.String getPassword() {\n java.lang.Object ref = password_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n password_ = s;\n }\n return s;\n }\n }", "public java.lang.String getPassword() {\n java.lang.Object ref = password_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n password_ = s;\n }\n return s;\n }\n }", "public String getPassword(){\n return mPassword;\n }", "public String getPassword(){\n return this.password;\n }", "public String getPassword(){\r\n\t\treturn password;\r\n\t}", "private String getPassword() {\n\t\tif (null == password || password.isBlank() || password.isEmpty()) {\n\t\t\tConsole cons;\n\t\t\tchar[] passwd = null;\n\t\t\tif ((cons = System.console()) != null) {\n\t\t\t\tpasswd = cons.readPassword(\"[%s]\", \"Password : \");\n\t\t\t\tpassword = Arrays.toString(passwd);\n\t\t\t} else {\n\t\t\t\tSystem.err.println(\"Console not found\");\n\t\t\t\tpassword = getProperty(\"password\");\n\t\t\t}\n\t\t}\n\t\treturn password;\n\t}", "public String getPassword() {\r\n return this.password;\r\n }", "public String getPassword()\n\t{\n\t\treturn this.password;\n\t}", "public String getPassword()\n\t{\n\t\treturn password;\n\t}", "public String getPassword() {\r\n return password;\r\n }", "public java.lang.String getPassword() {\n java.lang.Object ref = password_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n password_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getPassword() {\n java.lang.Object ref = password_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n password_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getPassword () {\r\n\t\treturn password;\r\n\t}", "public String getPassword() {\n return password;\n }", "public String getPassword() {\n return password;\n }", "public String getPassword() {\r\n return password;\r\n }" ]
[ "0.79644173", "0.79644173", "0.79644173", "0.79644173", "0.79644173", "0.79644173", "0.79644173", "0.790086", "0.790086", "0.790086", "0.790086", "0.790086", "0.790086", "0.790086", "0.790086", "0.790086", "0.7851781", "0.7848337", "0.7726758", "0.7726758", "0.7633185", "0.7572827", "0.7544994", "0.7516426", "0.7477829", "0.73904645", "0.73904645", "0.73550767", "0.7351621", "0.73481286", "0.7321227", "0.73086375", "0.7289578", "0.7289578", "0.72875214", "0.7286138", "0.72762764", "0.72744477", "0.7262956", "0.7259882", "0.725219", "0.7247579", "0.7229401", "0.7229252", "0.7226001", "0.722373", "0.722373", "0.72223234", "0.7206891", "0.7200931", "0.7197221", "0.7196341", "0.71935475", "0.7190618", "0.7188742", "0.7179498", "0.7179498", "0.7174661", "0.7174661", "0.7173092", "0.7160714", "0.7160714", "0.7160714", "0.7160714", "0.7160714", "0.7160714", "0.7160714", "0.7158589", "0.71583813", "0.71493757", "0.7147991", "0.71398795", "0.7139765", "0.712057", "0.71202266", "0.71171814", "0.71130115", "0.71107006", "0.7104935", "0.7104699", "0.7104699", "0.7104699", "0.7103022", "0.70992875", "0.7097681", "0.7097681", "0.7092163", "0.7091928", "0.7087952", "0.7085655", "0.7083926", "0.7082835", "0.70819455", "0.7080579", "0.708056", "0.708056", "0.70790404", "0.7072613", "0.7072613", "0.70709836" ]
0.71849525
55
This method will set the player's password
public void setPassword(String pw) { this.password = pw; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setPassword(String password);", "void setPassword(String password);", "void setPassword(String password);", "public void setPassword(String pass);", "public void setPassword(String password)\r\n/* 26: */ {\r\n/* 27:42 */ this.password = password;\r\n/* 28: */ }", "public void setPassword(java.lang.String newPassword);", "void setPassword(String ps) {\n this.password = ps;\n }", "@Override\n\tpublic void setEncryptedPassword(String arg0) {\n\t\t\n\t}", "public void setPassword(String pw) {\n password = pw.toCharArray();\n cleared = false;\n }", "public void setPassword(String p)\n\t{\n\t\tpassword = p;\n\t}", "public void setPassword(String password)\n {\n _password = password;\n }", "public void set_pass(String password)\n {\n pass=password;\n }", "public void setPassword(String p) {\n\t\tpassword = p;\n\t}", "public void setPw(char[] password) {\n\t\t\r\n\t}", "@Override\n\tpublic void setPassword(String password) {\n\n\t}", "public void setPassword(java.lang.String param) {\n localPasswordTracker = true;\n\n this.localPassword = param;\n }", "public void setSpPassword(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localSpPasswordTracker = true;\r\n } else {\r\n localSpPasswordTracker = false;\r\n \r\n }\r\n \r\n this.localSpPassword=param;\r\n \r\n\r\n }", "public void setPassword(String strPassword){\n\t\t driver.findElement(password99Guru).sendKeys(strPassword);\n\t}", "public void setPassword2(String password2);", "void setErrorPassword();", "public void setPassword(String strPassword){\n\t\tdriver.findElement(password99Guru).sendKeys(strPassword);\n\t}", "public void setPassword(java.lang.String param) {\r\n localPasswordTracker = param != null;\r\n\r\n this.localPassword = param;\r\n }", "public void setPassword(String text) {\n txtPassword().setText(text);\n }", "public void setPassword(String strPassword){\n \t \n \tdriver.findElement(By.cssSelector(inputPassword)).sendKeys(strPassword);\n \n \n }", "public void setPassword(String paramPasswd) {\n\tstrPasswd = paramPasswd;\n }", "void setPassword(Password newPassword, String plainPassword) throws NoUserSelectedException;", "@Override\n\tpublic void setPlainPassword(String arg0) {\n\t\t\n\t}", "public void setPassword(String password)\n {\n _password = password;\n }", "public void setPassword(String password){\n this.password = encryptPassword(password);\n checkRep();\n }", "public void setPassWord(String password) {\n\t\tsharedPreferences = context.getSharedPreferences(\"Login\",\n\t\t\t\tcontext.MODE_PRIVATE);\n\t\tSharedPreferences.Editor editor = sharedPreferences.edit();\n\t\teditor.putString(\"PASSWORD\", password);\n\t\teditor.commit();\n\t}", "private void setPassword(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n password_ = value;\n }", "private void setPassword(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n password_ = value;\n }", "public void setPassword(String password){\r\n this.password = password;\r\n }", "private void setPasswordBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n password_ = value.toStringUtf8();\n }", "private void setPasswordBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n password_ = value.toStringUtf8();\n }", "public void setPassword(int password) {\n this.password = password;\n }", "public void setPassword(final String password){\n mPassword = password;\n }", "public void setPassword(String password)\n \t{\n \t\tthis.password = password;\n \t}", "public void setPassword(String password) {\n this.password = password;\r\n }", "public void setPassword(String password) {\n this.password = password;\n saveProperties();\n }", "public void setPassword(String password)\n {\n this.password = password;\n }", "public void setPassword(String password)\n {\n this.password = password;\n }", "public void setPasswordField(final JPasswordField pwPasswordParam) {\n this.pwPassword = pwPasswordParam;\n }", "public void updatePassword(String account, String password);", "public void setPassword(String password) {\n\tthis.password = password;\n}", "public void setPassword( String password )\r\n {\r\n this.password = password;\r\n }", "public void setPassword(String password)\n {\n this.password = password;\n }", "public Builder setPassword(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n password_ = value;\n onChanged();\n return this;\n }", "public Builder setPassword(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n password_ = value;\n onChanged();\n return this;\n }", "public void setPassword(String password) {\r\n this.password = password;\r\n }", "public void setPassword(String password) {\r\n this.password = password;\r\n }", "private void setNewPassword(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n newPassword_ = value;\n }", "public void setPasswordValue(String value) {\r\n\t\ttxtPassword.setValue(value);\r\n\t}", "public void showPasswordPrompt();", "private void setNewPasswordBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n newPassword_ = value.toStringUtf8();\n }", "public void setDevicePassword(String argPassword) {\n\tdevicePassword = argPassword;\n }", "public ChangePassword() {\n initComponents();\n SQLConnect sqlcon = new SQLConnect();\n con=sqlcon.sqlCon(con);\n jPasswordField2.setEnabled(false);\n jPasswordField3.setEnabled(false);\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPasswordOutput(String text) {\n\t\tpasswordOutput.setText(text);\n\t}", "public void setPassword(String strPassword) {\r\n\t\t//driver.findElement(passWord).sendKeys(strPassword);\r\n\t\tdriver.findElement(passWord).sendKeys(strPassword);\r\n\t\t//return new LoginPage();\r\n\t}", "public void setPassword(String password) {\r\n this.password = password;\r\n }", "public void setPassword(String password) {\r\n this.password = password;\r\n }", "public void setPassword(String password) {\r\n this.password = password;\r\n }", "public void setPassword(String password) {\r\n this.password = password;\r\n }", "public void setPassword(String password) {\r\n this.password = password;\r\n }", "public void setPassword(String password) {\r\n this.password = password;\r\n }", "public void update() {\n user.setNewPassword(newPassword.getText().toString());\n user.setPassword(password.getText().toString());\n reauthenticate();\n }", "public void setTraderPassword(String traderPassword) {\n this.traderPassword = traderPassword;\n }", "@Override\n\tpublic void setPassword(String password) {\n\t\tsuper.setPassword(password);\n\t}", "@Override\n\tpublic void setPassword(String password) {\n\t\tsuper.setPassword(password);\n\t}", "@Override\n\tpublic void UpdatePw(Gamers gamer) {\n\t\tSystem.out.println(\"Lütfen yeni password'ünüzü giriniz\");\n\t\tString Newpw;\n\t\tNewpw=sc.nextLine();\n\t\tgamer.setPw(Newpw);\n\t\tdbserviceadaptors.Save(gamer);\n\t\tSystem.out.println(\"Yeni password'ünüz \"+Newpw+\" olarak güncellendi.\");\n\t\t\n\t}", "@Override\n\tpublic String getPassword() {\n\t\treturn \"ajay\";\n\t}", "public ChangePass() {\n initComponents();\n this.setTitle(\"Change Password\");\n this.setLocation(400, 300);\n }", "public void setPassword(final String password) {\n this.password = password.toCharArray();\n }", "public void set_password(String password)\r\n\t{\r\n\t\tthis.password = password;\r\n\t}", "public boolean setPassword(String password){\r\n\t\ttry {\r\n\t\t\tthis.workerobj.put(WorkerController.PASSWORD, password);\r\n\t\t\treturn true;\r\n\t\t} catch (JSONException e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "@Test\r\n public void testSetPassword() {\r\n\r\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }" ]
[ "0.74697506", "0.74697506", "0.74697506", "0.7296289", "0.7203204", "0.7150772", "0.710567", "0.70361966", "0.69358855", "0.6935509", "0.68845034", "0.6824525", "0.68228495", "0.6802919", "0.6799455", "0.6758639", "0.67533726", "0.6730922", "0.671347", "0.6709719", "0.6701554", "0.669389", "0.6628611", "0.66100657", "0.6598273", "0.65938604", "0.65907115", "0.65604365", "0.6527551", "0.6523389", "0.65143037", "0.65143037", "0.65117884", "0.6498715", "0.6498715", "0.64813304", "0.6452924", "0.6386366", "0.6377189", "0.63691294", "0.63637376", "0.63637376", "0.63577086", "0.63529474", "0.63506603", "0.6329017", "0.632656", "0.63223875", "0.63223875", "0.63217884", "0.63217884", "0.63169664", "0.6303862", "0.6298748", "0.6293061", "0.62810904", "0.6279341", "0.62789977", "0.62789977", "0.62765604", "0.62715495", "0.6265331", "0.6265331", "0.6265331", "0.6265331", "0.6265331", "0.6265331", "0.62585175", "0.62451154", "0.62420446", "0.62420446", "0.62301964", "0.6217075", "0.62157553", "0.620977", "0.62076765", "0.61803323", "0.61628294", "0.61589557", "0.61589557", "0.61589557", "0.61589557", "0.61589557", "0.61589557", "0.61589557", "0.61589557", "0.61589557", "0.61589557", "0.61589557", "0.61589557", "0.61589557", "0.61589557", "0.61589557", "0.61589557", "0.61589557", "0.61589557", "0.61589557", "0.61589557", "0.61589557", "0.61589557" ]
0.6938176
8
This method will get the player's high score
public int getHighscore() { return this.highscore; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getHighScore() {\n return getStat(highScore);\n }", "public int getHighScore() {\n return highScore;\n }", "public int getHighScore() {\n\t\treturn highscore;\n\t}", "public int getPlayerScore();", "public int currentHighscore() { \r\n \tFileReader readFile = null;\r\n \tBufferedReader reader = null;\r\n \ttry\r\n \t{\r\n \t\treadFile = new FileReader(\"src/p4_group_8_repo/scores.dat\");\r\n \t\treader = new BufferedReader(readFile);\r\n \t\treturn Integer.parseInt(reader.readLine());\r\n \t}\r\n \tcatch (Exception e)\r\n \t{\r\n \t\treturn 0;\r\n \t}\r\n \tfinally\r\n \t{\r\n \t\ttry {\r\n \t\t\tif (reader != null)\r\n\t\t\t\treader.close();\r\n\t\t\t} catch (IOException e) {\r\n\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n \t}\r\n }", "public int getScore(){\n\t\treturn playerScore;\n\t}", "@Override\n public int higherScore() {\n if (!scoresUpToDate) {\n updateScores();\n }\n return higherScore;\n }", "public int getPlayerScore(){\n\t\treturn playerScore;\n\t}", "public static int getPlayerScore()\r\n\t{\r\n\t\treturn playerScore;\r\n\t}", "public int[] getHighScore() {\n return HighScore;\n }", "public String getHighscore() {\n String str = \"\";\n\t int max = 10;\n \n ArrayList<Score> scores;\n scores = getScores();\n \n int i = 0;\n int x = scores.size();\n if (x > max) {\n x = max;\n } \n while (i < x) {\n \t str += (i + 1) + \".\\t \" + scores.get(i).getNaam() + \"\\t\\t \" + scores.get(i).getScore() + \"\\n\";\n i++;\n }\n if(x == 0) str = \"No scores for \"+SlidePuzzleGUI.getRows()+\"x\"+SlidePuzzleGUI.getCols()+ \" puzzle!\";\n return str;\n }", "Float getScore();", "public int getScore() {\n return getStat(score);\n }", "float getScore();", "float getScore();", "public int getPlayerScore(){\n return this.playerScore;\n }", "public Score getHighScore(String name){\n Score playerscore = new Score();\n ResultSet rs = null;\n String sqlS = \"\";\n \n try{\n sqlS = \"select max(HIGHSCORE) from TEAMGLEN.SCORE where NICKNAME = ?\";\n ps = connect.prepareStatement(sqlS);\n ps.setString(1, name);\n rs = ps.executeQuery();\n rs.next();\n playerscore.setHighscore(rs.getInt(0));\n }catch(Exception ex){\n ex.printStackTrace();\n }\n return playerscore;\n }", "public int getBestScore() {\n\t\tInteger score = this.hand.countValue().lower(22);\n\t\tif(score!=null) {\n\t\t\treturn score;\n\t\t}\n\t\telse {\n\t\t\treturn this.hand.countValue().higher(21);\n\t\t}\n\t}", "long getScore();", "long getScore();", "long getScore();", "long getScore();", "public int getHighScore( final int levelId )\n {\n if( highScores == null ) return 0;\n final Integer highScore = highScores.get( levelId );\n return ( highScore == null ? 0 : highScore );\n }", "int getScore();", "public HighScore getMaxScore(){\n HighScore hs;\n db = helper.getReadableDatabase();\n Cursor scoreCursor = db.query(SQLHelper.DB_TABLE_SCORES, SCORES_COLUMNS, null, null, null, null, SQLHelper.KEY_SCORE + \" DESC\", null);\n scoreCursor.moveToFirst();\n if(scoreCursor.getCount() == 0){\n hs = null;\n }\n else{\n hs = new HighScore(scoreCursor.getString(0), scoreCursor.getLong(1),\n scoreCursor.getLong(2), scoreCursor.getString(3), scoreCursor.getString(4));\n scoreCursor.moveToNext();\n if (scoreCursor != null && !scoreCursor.isClosed()) { // Close cursor\n scoreCursor.close();\n }\n }\n db.close();\n return hs; // Return max high score\n }", "private void updateHighscore() {\n if(getScore() > highscore)\n highscore = getScore();\n }", "public double getTopScore() {\n return topScore;\n }", "public int getOpponentScore(){\n return this.oppoScore;\n }", "public static int getScore()\n {\n return score;\n }", "public static int getHighScore(Context context)\n {\n SharedPreferences preferences = context.getSharedPreferences(\n context.getString(R.string.preference_key),Context.MODE_PRIVATE);\n return preferences.getInt(HIGH_SCORE_KEY,0);\n }", "public int getMaxScore() {\r\n return maxScore;\r\n\t}", "public static Player whoLostGame() {\r\n\t\tint lowest = Main.loseScoreNumb;\r\n\t\tPlayer loser = null;\r\n\t\t\r\n\t\t\r\n\t\t//Three handed play.\r\n\t\tif (Main.isThreeHanded){\r\n\t\t\tif (Utils.stringToInt(Main.player1Score) <= lowest) {\r\n\t\t\t\tlowest = Utils.stringToInt(Main.player1Score);\r\n\t\t\t\tloser = Main.playerOne;\r\n\t\t\t}\r\n\t\t\tif (Utils.stringToInt(Main.player2Score) <= lowest) {\r\n\t\t\t\tlowest = Utils.stringToInt(Main.player2Score);\r\n\t\t\t\tloser = Main.playerTwo;\r\n\t\t\t}\r\n\t\t\tif (Utils.stringToInt(Main.player3Score) <= lowest) {\r\n\t\t\t\tlowest = Utils.stringToInt(Main.player3Score);\r\n\t\t\t\tloser = Main.playerThree;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Four handed play with no teams.\r\n\t\tif (Main.isFourHandedSingle){\r\n\t\t\tif (Utils.stringToInt(Main.player1Score) <= lowest) {\r\n\t\t\t\tlowest = Utils.stringToInt(Main.player1Score);\r\n\t\t\t\tloser = Main.playerOne;\r\n\t\t\t}\r\n\t\t\tif (Utils.stringToInt(Main.player2Score) <= lowest) {\r\n\t\t\t\tlowest = Utils.stringToInt(Main.player2Score);\r\n\t\t\t\tloser = Main.playerTwo;\r\n\t\t\t}\r\n\t\t\tif (Utils.stringToInt(Main.player3Score) <= lowest) {\r\n\t\t\t\tlowest = Utils.stringToInt(Main.player3Score);\r\n\t\t\t\tloser = Main.playerThree;\r\n\t\t\t}\r\n\t\t\tif (Utils.stringToInt(Main.player4Score) <= lowest) {\r\n\t\t\t\tlowest = Utils.stringToInt(Main.player4Score);\r\n\t\t\t\tloser = Main.playerFour;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn loser;\r\n\t}", "public double getPlayerFullHP();", "public Integer getGameScore() {\n return gameScore;\n }", "public int getAwayScore();", "public int getScore()\n {\n // put your code here\n return score;\n }", "public static int getScore()\r\n\t{\r\n\t\treturn score;\r\n\t}", "int getScoreValue();", "public static int getScore(){\n return score;\n }", "public int getWorstScore()\n {\n return -1;\n }", "public static int getScore()\n\t{\n\t\treturn score;\n\t}", "public int getScore()\n {\n return currentScore;\n }", "public Double getHighestMainScore() {\n return highestMainScore;\n }", "public int getScore ()\r\n {\r\n\treturn score;\r\n }", "public abstract float getScore();", "public int getScore() {\n return currentScore;\n }", "public int getHighscoreCount() {\r\n\t\t//TODO\r\n\t\treturn -1;\r\n\t}", "public int getScore() {\r\n return score;\r\n }", "public int getScore() {\r\n return score;\r\n }", "public int getScore() {\r\n return score;\r\n }", "Float getAutoScore();", "public void calculateHighscores(){\n if((newPlayer.getScore() > (getRecord())) && (newPlayer.getScore() > getRecord2()) && (newPlayer.getScore() > getRecord3())){\n setRecord3(getRecord2());\n setRecord2(getRecord());\n setRecord(newPlayer.getScore());\n newPlayer.resetScore();\n }\n if((newPlayer.getScore() > getRecord2()) && (newPlayer.getScore() > getRecord3()) && (newPlayer.getScore() < getRecord())){\n setRecord3(getRecord2());\n setRecord2(newPlayer.getScore());\n newPlayer.resetScore();\n }\n if((newPlayer.getScore() > getRecord3()) && newPlayer.getScore() < getRecord2()){\n setRecord3(newPlayer.getScore());\n newPlayer.resetScore();\n }else{\n newPlayer.resetScore();\n\n }\n }", "int getCurHP();", "int getCurHP();", "int getCurHP();", "int getCurHP();", "int getCurHP();", "int getCurHP();", "public int getScore()\n {\n return score;\n }", "public int whoWin(){\r\n int winner = -1;\r\n \r\n int highest = 0;\r\n \r\n for(Player player : discWorld.getPlayer_HASH().values()){\r\n if(getPlayerPoints(player) > highest){\r\n highest = getPlayerPoints(player);\r\n winner = player.getID();\r\n }\r\n \r\n }\r\n \r\n return winner;\r\n }", "public int getHighScore(int i) {\n return topScores.get(i);\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getScore();", "@Override\n\tpublic int getPlayerTwoScore() {\n\t\treturn super.getPlayerTwoScore();\n\t}", "public int getScore()\r\n\t{\r\n\t\treturn score;\r\n\t}", "public int getScore()\r\n\t{\r\n\t\treturn score;\r\n\t}", "public int getHomeScore();", "@Override\n\tpublic int getPlayerOneScore() {\n\t\treturn super.getPlayerOneScore();\n\t}", "public int getScore() { return score; }", "public int getScore() {\n return score;\n }", "public int getScore() {\n return score;\n }", "@Override\n public int getScore(String username) throws RemoteException {\n Player p = getPlayer(username);\n return p != null ? p.getScore() : -1;\n }", "public int getScore(){\r\n\t\treturn score;\r\n\t}", "public int getScore(){\r\n\t\treturn score;\r\n\t}", "public int getScore() {\n return this.score;\n }", "public int getScore() {\n return score;\n }", "public int getScore(){\n\t\treturn this.score;\n\t}", "public int getScore(){\n\t\treturn this.score;\n\t}", "public int getScore() {return score;}", "public Integer getScore() {\r\n return score;\r\n }", "public String getHighscores(){\r\n\t\tString returnString = \"\";\r\n\t\tList<Score> allScores = database.getAllScores(\"hard\");\r\n\t\t\r\n\t\t//loop through top 4 entries of table as obtained in the allScores list\r\n\t\tfor(int i = allScores.size()-1, j = 3; i>=0 && j>=0; j--, i--){\r\n\t\t\treturnString += String.valueOf(allScores.get(i).score + \" | \" + allScores.get(i).time + \"\\n\");\r\n\t\t}\r\n\t\treturn returnString;\r\n\t}", "public void countHighest (int score){\r\n\t\tif (score > highest){\r\n\t\t\thighest = score;\r\n\t\t}\r\n\t}", "public int getScore () {\n return mScore;\n }", "public int getPlayerScoreFromHighscoreList(String name) {\n\t\t//if the name isn't found in the list\n\t\tif(highscore.containsKey(name))\n\t\t\treturn 0;\n\t\t\n\t\treturn highscore.get(name);\n\t}", "public int score() {\n return hand.handVal(0);\n }", "int getCurrentHP();", "public int getScore() {\r\n \treturn score;\r\n }", "public Integer getScore() {\n return score;\n }", "@Override\n public int getScore() {\n return score;\n }", "public void topScore() {\n\t\tif (playern.getExp() >= 100) {\n\t\t\tSystem.out.println(\"You become a Warrior and win the game\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "public int getScore() {\n\t\treturn (score);\n\t}", "private Score getScore(Player player) {\n Game game = Dogfight.instance.getGame(player);\n\n if (game != null) {\n Team team = game.getPlayerRegistry().getTeam(player);\n\n if (team != null) {\n return game.getScoreRegistry().getScore(team);\n }\n }\n\n return null; //No game found\n }", "public int getScore(){\n\t\treturn score;\n\t}", "public int getScore(){\n\t\treturn score;\n\t}", "public float getScore() {\n return score;\n }", "public int getScore(){\n \treturn 100;\n }", "public void setHighscore(int score)\n {\n this.highscore = score;\n }", "public int getScore()\n\t{\n\t\treturn this.score;\n\t}", "int getScore() {\n return score;\n }", "public java.lang.Integer getScore () {\r\n\t\treturn score;\r\n\t}", "public int getCurrentScore() {\n return currentScore;\n }" ]
[ "0.8548131", "0.8359256", "0.8066649", "0.78180426", "0.7637676", "0.7586899", "0.75471014", "0.74802834", "0.74596864", "0.7444893", "0.741407", "0.73798156", "0.7361888", "0.7324854", "0.7324854", "0.73238546", "0.7312683", "0.72894526", "0.7277277", "0.7277277", "0.7277277", "0.7277277", "0.7261109", "0.72344804", "0.722656", "0.72260994", "0.72084033", "0.7196322", "0.71931374", "0.71425366", "0.71353936", "0.71344125", "0.71234006", "0.7118819", "0.71135753", "0.7100496", "0.7097482", "0.70923996", "0.7092174", "0.70680076", "0.70387846", "0.70301276", "0.7029588", "0.7024437", "0.70192564", "0.6984787", "0.6972552", "0.69708884", "0.69708884", "0.69708884", "0.69702715", "0.6967899", "0.6967852", "0.6967852", "0.6967852", "0.6967852", "0.6967852", "0.6967852", "0.6962698", "0.6956094", "0.6953946", "0.69484514", "0.69447374", "0.6940671", "0.6940671", "0.6935092", "0.6925924", "0.6924726", "0.6917314", "0.6917314", "0.69131863", "0.6908495", "0.6908495", "0.68988806", "0.6896295", "0.6893643", "0.6893643", "0.6893407", "0.68908876", "0.68857515", "0.6885627", "0.6884462", "0.6878638", "0.6858085", "0.68547904", "0.6851581", "0.6851045", "0.68484765", "0.6845881", "0.6835406", "0.68331033", "0.6829639", "0.6829639", "0.68276054", "0.6821869", "0.681291", "0.68083227", "0.6806627", "0.6802564", "0.6798308" ]
0.81591785
2
This method sets the player's high score
public void setHighscore(int score) { this.highscore = score; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void updateHighscore() {\n if(getScore() > highscore)\n highscore = getScore();\n }", "private void setHighScore(int hs) {\n setStat(hs, highScore);\n }", "public void setHighScore(int newScore) {\n\t\tpreferences().putInteger(username() + HIGH_SCORE, newScore);\n\t\tsave();\n\t}", "public static void setPlayerScore(int score)\r\n\t{\r\n\t\tGame.playerScore = score;\r\n\t}", "private void updateHighScore(int newHighScore) {\n highScore = newHighScore;\n SharedPreferences preferences = getSharedPreferences(SHARED_PREFERENCES, MODE_PRIVATE);\n SharedPreferences.Editor editor = preferences.edit();\n editor.putInt(HIGHSCORE_KEY, highScore);\n editor.commit();\n\n }", "public static void newHighscore(int h){\n highscore = h;\n SharedPreferences prefs = cont.getSharedPreferences(\"PAFF_SETTINGS\", Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = prefs.edit();\n editor.putInt(\"highscore\",highscore);\n editor.commit();\n }", "void setScore(long score);", "protected void setOnePlayerHumanScore(int score){\n this.humanWinsCPU_TextField.setText(Integer.toString(score));\n }", "public void setScore(){\n\t\t//get player's score and change it to the string\n\t\tthis.scoreLabel.setSize(scoreLabel.getPreferredSize().width, \n\t\t\t\tscoreLabel.getPreferredSize().height);\n\t\tthis.scoreLabel.setText(String.valueOf(this.player.getScore()));\n\t}", "public void saveScore() {\n if (this.currentScore > this.highScore) {\n this.highScore = this.currentScore;\n SharedPreferences sharedPref = this.getPreferences(Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putInt(\"High Score\", this.highScore);\n editor.commit();\n }\n }", "protected void setScore(int s)\r\n\t{\r\n\t\tGame.score = s;\r\n\t}", "void setBestScore(double bestScore);", "public void setNewScore(String player, int score) {\n\t\t\n\t}", "public void setScore(int score) { this.score = score; }", "void setScoreValue(int scoreValue);", "public static void setHighScore(Context context,int highScore)\n {\n SharedPreferences preferences = context.getSharedPreferences(\n context.getString(R.string.preference_key),Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = preferences.edit();\n editor.putInt(HIGH_SCORE_KEY,highScore);\n editor.apply();\n }", "public void setScore(int score) {this.score = score;}", "public void setScore(int score) {\r\n\t\tif(score >=0) {\r\n\t\t\tthis.score = score;\r\n\t\t}\r\n\t\t\r\n\t}", "public void setScore(int score)\n {\n this.score = score;\n }", "public void updatePlayerScore()\n\t{\n\t\tthis.score = (int)(getBalance() - 500) - (getNumberOfLoans()*500); \n\t}", "public void setScore(int score){\n\t\tthis.score = score;\n\t}", "public void setScore(int score) {\r\n this.score = score;\r\n }", "public void setScore(int score) {\r\n this.score = score;\r\n }", "private void updateHighScore() {\n\t\tif (pacman.getCurrentCell().getContainsFood() == true) {\n\t\t\tpacman.getCurrentCell().setContainsFood(false);\n\t\t\thighScore.update(10);\n\t\t}\n\t\tif (highScore.getScore() / 2440 == actualLevel) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(500);\n\t\t\t} catch (InterruptedException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\tinitNewLevel();\n\t\t\t++actualLevel;\n\t\t}\n\t}", "public void setScore(Integer score) {\r\n this.score = score;\r\n }", "public void setScore(int score)\n\t{\n\t\tthis.score += score;\n\t}", "public void setScore(int score) {\n this.score = score;\n }", "public void setScore(int score)\n\t{\n\t\tthis.score=score;\n\t}", "public void setScore(int score) {\n this.score = score;\n }", "public void setScore(int score) {\n this.score = score;\n }", "public void setScore(int score) {\n this.score = score;\n }", "public void setScore(int score) {\n this.score = score;\n }", "public void updateHighestScoreDisplay(int score){\n this.score.setText(\"Highest Score: \"+score);\n }", "public void setScore(int s) {\n if (s > getHighScore()) {\n setHighScore(s);\n DateTimeFormatter dtf = DateTimeFormatter.ofPattern(\"yyyy/MM/dd HH:mm:ss\");\n LocalDateTime now = LocalDateTime.now();\n String timeNow = dtf.format(now);\n setHighScoreTime(timeNow);\n }\n setStat(s, score);\n }", "public void setScore(double score) {\r\n this.score = score;\r\n }", "public void setScore(Short score) {\n this.score = score;\n }", "public void setScore(Integer score) {\n this.score = score;\n }", "public void setScore (java.lang.Integer score) {\r\n\t\tthis.score = score;\r\n\t}", "public void setScore(int newScore){\n\t\tthis.score = newScore;\n\t}", "public void setScore(java.lang.Integer value);", "public synchronized void setScore(Integer score) {\n this.score += score;\n }", "public void setScore(Float score) {\n this.score = score;\n }", "public void setHomeScore(int h);", "private void setPreviousHighScores() {\n highScoreSharedPref = this.getSharedPreferences(\"MyPref\", Context.MODE_PRIVATE);\n highScore = highScoreSharedPref.getInt(\"Score\", 0);\n tvHighScore.setText(String.format(\"%d\", highScore));\n }", "public void setScore(float score) {\n this.score = score;\n }", "public void setScore(int paScore) {\n this.score = paScore;\n }", "public void updateScore()\n {\n nextPipe = pipes.get(score);\n if(CHARACTER_X > nextPipe.getPipeCapX() + 35)\n {\n score++;\n }\n if(score > highScore)\n {\n highScore = score;\n }\n }", "public void countHighest (int score){\r\n\t\tif (score > highest){\r\n\t\t\thighest = score;\r\n\t\t}\r\n\t}", "private void setPlayerScore(Player player, int newScore) {\n\t\tplayer.score = Math.max(newScore, 0);\n\t\tfor (ScoreMarker scoreMarker : playerScoreMarkers) {\n\t\t\tif (scoreMarker.getOwner() == player) {\n\t\t\t\tscoreMarker.value = String.valueOf(player.score);\n\t\t\t}\n\t\t}\n\t}", "public void updateScore(int score){ bot.updateScore(score); }", "public void setScore (int newScore)\n {\n this.score = newScore;\n }", "public void setScore(int score) {\n\t\tthis.score = score;\n\t}", "public void setScore(float value) {\n this.score = value;\n }", "void increaseScore(){\n\t\t currentScore = currentScore + 10;\n\t\t com.triviagame.Trivia_Game.finalScore = currentScore;\n\t }", "public void setScore(Double score) {\n this.score = score;\n }", "public void setScore(String score) {\n this.score = score;\n setChanged();\n notifyObservers();\n }", "public void setAwayScore(int a);", "private void setScore(String score) {\r\n this.score = score;\r\n }", "public void calculateHighscores(){\n if((newPlayer.getScore() > (getRecord())) && (newPlayer.getScore() > getRecord2()) && (newPlayer.getScore() > getRecord3())){\n setRecord3(getRecord2());\n setRecord2(getRecord());\n setRecord(newPlayer.getScore());\n newPlayer.resetScore();\n }\n if((newPlayer.getScore() > getRecord2()) && (newPlayer.getScore() > getRecord3()) && (newPlayer.getScore() < getRecord())){\n setRecord3(getRecord2());\n setRecord2(newPlayer.getScore());\n newPlayer.resetScore();\n }\n if((newPlayer.getScore() > getRecord3()) && newPlayer.getScore() < getRecord2()){\n setRecord3(newPlayer.getScore());\n newPlayer.resetScore();\n }else{\n newPlayer.resetScore();\n\n }\n }", "public void topScore() {\n\t\tif (playern.getExp() >= 100) {\n\t\t\tSystem.out.println(\"You become a Warrior and win the game\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "public void setGameScore(Integer gameScore) {\n this.gameScore = gameScore;\n }", "void setScore(int score) {\n lblScore.setText(String.valueOf(score));\n }", "@Override\r\n\tpublic final void setBestScore(final double theBestScore) {\r\n\t\tthis.bestScore = theBestScore;\r\n\t}", "public void addHighScore(String name, int score){\r\n // TODO: If the provided score is greater than the lowest high score,\r\n // TODO: then replace the lowest score with the new score and then\r\n // TODO: call the sortScores() method.\r\n \t\r\n \t\tscores[Settings.numScores-1]=score;\r\n \t\tnames[Settings.numScores-1]=name;\r\n \t\tsortScores();\r\n \t\t\r\n }", "public void setScore (java.lang.Float score) {\n\t\tthis.score = score;\n\t}", "@Override\n\tpublic void buttonPress(Button button) {\n\t\tsuper.buttonPress(button);\n\t\tif(playerOneScore > highScore) {\n\t\t\thighScore = playerOneScore;\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t}", "public int getHighScore() {\n return highScore;\n }", "public void setScore(Score score) {\n scoreProperty.set(score.packed());\n }", "@Override\n public void setScore(int score) throws IllegalStateException {\n objective.checkValid();\n this.score = score;\n objective.getScoreboard()\n .broadcast(new ScoreboardScoreMessage(entry, objective.getName(), score));\n }", "void decreaseScore(){\n\t\tcurrentScore = currentScore - 10;\n\t\tcom.triviagame.Trivia_Game.finalScore = currentScore;\n\t}", "public void setCurrentScore(int currentScore) {\n this.currentScore = currentScore;\n }", "public void updatescore() {\n scorelabel.setText(\"\" + score + \" points\");\n if (100 - score <= 10) win();\n }", "Score() {\r\n\t\tsaveload = new SaveLoad();\r\n\t\thighscoreFile = new File(saveload.fileDirectory() + File.separator + \"highscore.shipz\");\r\n\t\tsaveload.makeDirectory(highscoreFile);\r\n\t\tcomboPlayer1 = 1;\r\n\t\tcomboPlayer2 = 1;\r\n\t\tscorePlayer1 = 0;\r\n\t\tscorePlayer2 = 0;\r\n\t}", "@Override\n\tpublic int updateScore(int score) {\n\t\t\n\t\t// decrease the score by this amount:\n\t\tscore -= 50;\n\t\t\n\t\treturn score;\n\t}", "public void CheckScore(){\n \tif(killed > highScore) {\n \t\tname = JOptionPane.showInputDialog(\"You set a HighScore!\\n What is your Name?\");\n \t\thighScore = killed;\n \t}\n }", "public final void setScore(java.lang.Double score)\r\n\t{\r\n\t\tsetScore(getContext(), score);\r\n\t}", "@Override\n public void updateScore(int winner)\n {\n if (winner == 0)\n {\n playerOneScore++;\n }\n else\n {\n playerTwoScore++;\n }\n }", "void setCurrentHP(final int newHP);", "public void updateScore(int playerScore){\n\t\tscore += playerScore;\n\t\tscoreTotalLabel.setText(\"\" + score);\n\t}", "public void setActualHP(int hp) { this.actualHP = Math.max(0, hp); }", "public void setTopScore(double topScore) {\n this.topScore = topScore;\n }", "public void setBonusScore() {\r\n count = count+50;\r\n }", "public int getHighScore() {\n\t\treturn highscore;\n\t}", "@Override\n public int higherScore() {\n if (!scoresUpToDate) {\n updateScores();\n }\n return higherScore;\n }", "public void setObjectiveScore(String name, Player player, int value) {\n scoreboard.getObjective(name).getScore(player.getName()).setScore(value);\n }", "public void checkHighScore(){\n if(timeElapsed >= highMinutes){\n highMinutes = timeElapsed;\n highSeconds = timeCounter / 60;\n }\n }", "private void tooHigh() {\n if (this.hitPoints > 255) {\n System.out.println(\"You set the value too high! Setting it to 255\");\n this.hitPoints = 255;\n }\n }", "public int getHighscore()\n {\n return this.highscore;\n }", "@Override\n\tpublic void setPlayerTwoScore(int playerTwoScore) {\n\t\tsuper.setPlayerTwoScore(playerTwoScore);\n\t}", "public void setHigh(double value) {\n this.high = value;\n }", "public void setHigh(int high) {\n\t\tthis.high = high;\n\t}", "public boolean gameOver(){\n\n\t\tif (score > highScore) {\n\t\t\thighScore = score;\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "private void updateScore() {\n\t\tscoreString.updateString(Integer.toString(score));\n\t}", "int getHighScore() {\n return getStat(highScore);\n }", "public int getScore(){\n\t\treturn playerScore;\n\t}", "private void writeHighscore(int highscore) {\n EditText eTName = findViewById(R.id.eTName);\n String name = eTName.getText().toString().trim();\n String name1 = preferences.getString(KEY_NAME+\"1\",\"\");\n String name2 = preferences.getString(KEY_NAME+\"2\",\"\");\n String name3 = preferences.getString(KEY_NAME+\"3\",\"\");\n int topscore1 = preferences.getInt(KEY+\"1\",0);\n int topscore2 = preferences.getInt(KEY+\"2\",0);\n int topscore3 = preferences.getInt(KEY+\"3\",0);\n if (highscore >= topscore1) {\n preferencesEditor.putInt(KEY+\"1\",highscore);\n preferencesEditor.putString(KEY_NAME+\"1\", name);\n preferencesEditor.putInt(KEY+\"2\",topscore1);\n preferencesEditor.putString(KEY_NAME+\"2\", name1);\n preferencesEditor.putInt(KEY+\"3\",topscore2);\n preferencesEditor.putString(KEY_NAME+\"3\", name2);\n } else if (highscore >= topscore2) {\n preferencesEditor.putInt(KEY+\"1\", topscore1);\n preferencesEditor.putString(KEY_NAME+\"1\", name1);\n preferencesEditor.putInt(KEY+\"2\", highscore);\n preferencesEditor.putString(KEY_NAME+\"2\", name);\n preferencesEditor.putInt(KEY+\"3\", topscore2);\n preferencesEditor.putString(KEY_NAME+\"3\", name2);\n } else {\n preferencesEditor.putInt(KEY+\"1\", topscore1);\n preferencesEditor.putString(KEY_NAME+\"1\", name1);\n preferencesEditor.putInt(KEY+\"2\", topscore2);\n preferencesEditor.putString(KEY_NAME+\"2\", name2);\n preferencesEditor.putInt(KEY+\"3\", highscore);\n preferencesEditor.putString(KEY_NAME+\"3\", name);\n }\n preferencesEditor.commit();\n }", "public void setScore(String score) {\n\t\tthis.score = score;\n\t}", "public void checkHighScore() {\n\t\t//start only if inserting highscore is needed\n\t\tlevel.animal.gamePaused = true;\n\t\tlevel.createTimer();\n\t\tlevel.timer.start();\n\t\t\t\t\n\t\tlevel.setWord(\"hiscores\", 7, 175, 130);\n\t\t\n\t\treadFile();\n\t}", "@Override\n\tpublic void setPlayerOneScore(int playerOneScore) {\n\t\tsuper.setPlayerOneScore(playerOneScore);\n\t}", "private void setHighCard(int highCard) {\r\n this.highCard = highCard;\r\n }" ]
[ "0.8087031", "0.78944635", "0.7659432", "0.7462915", "0.7459309", "0.7455704", "0.7422969", "0.7420468", "0.737786", "0.7362517", "0.7337303", "0.732681", "0.7321722", "0.7310968", "0.72744", "0.72675955", "0.7262494", "0.7253892", "0.72070616", "0.7205358", "0.71978605", "0.71970505", "0.71970505", "0.717119", "0.7156496", "0.71538126", "0.7139655", "0.71387494", "0.71365875", "0.71365875", "0.71365875", "0.71365875", "0.7131427", "0.71246636", "0.71164185", "0.711608", "0.71112996", "0.7104049", "0.71024895", "0.7099366", "0.709657", "0.7095349", "0.70916045", "0.70912564", "0.7071971", "0.70583874", "0.70574546", "0.70420325", "0.7029946", "0.7002337", "0.6996532", "0.6994743", "0.6970536", "0.6968201", "0.69338405", "0.6885526", "0.68736184", "0.685044", "0.6842191", "0.68409365", "0.6829363", "0.6814403", "0.67949563", "0.6790504", "0.677602", "0.67673427", "0.67633843", "0.67387414", "0.67253137", "0.6718429", "0.6707662", "0.6633937", "0.6625726", "0.66126424", "0.6612227", "0.6603829", "0.6603708", "0.66032463", "0.65845215", "0.6574137", "0.65699786", "0.65682286", "0.65607977", "0.65522665", "0.6538096", "0.6536277", "0.65311515", "0.6527515", "0.6524399", "0.650468", "0.6498118", "0.64891297", "0.6487124", "0.64863724", "0.6484471", "0.64831114", "0.6475603", "0.6474928", "0.64611363", "0.64521456" ]
0.83247197
0
Start the message receiving thread
public void run(){ try{ // Get client socket. Socket client = server.getClientSocket(); // Get the inputstream from the socket BufferedReader reader = new BufferedReader(new InputStreamReader(client.getInputStream())); String line; while(true){ if(client.isClosed()){ System.out.println("The client is offline. Chat finished."); break; } else{ line= reader.readLine(); if(line.equals("bye")){ System.out.println(line); System.out.println("Chat finished."); client.close(); break; } else{ System.out.println("Client: "); System.out.println(line); } } } reader.close(); }catch(IOException e){ e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onStart() {\n\t new Thread() {\n\t @Override public void run() {\n\t receive();\n\t }\n\t }.start();\n\t }", "private void receive() {\n receive = new Thread(\"Receive\") {\n public void run() {\n while (running) {\n byte[] data = new byte[1024];\n DatagramPacket packet = new DatagramPacket(data, data.length);\n try {\n socket.receive(packet);\n } catch (IOException e) {\n e.printStackTrace();\n }\n processPacket(packet);\n }\n }\n };\n receive.start();\n }", "public void run() \n { \n String message; // String for incoming messages\n \n // listen for messages until stopped\n while ( keepListening ) \n { \n try \n { \n message = input.readLine(); // read message from client\n } // end try\n catch ( SocketTimeoutException socketTimeoutException ) \n {\n continue; // continue to next iteration to keep listening\n } // end catch\n catch ( IOException ioException ) \n {\n ioException.printStackTrace(); \n break;\n } // end catch\n\n // ensure non-null message\n if ( message != null ) \n {\n // tokenize message to retrieve user name and message body\n StringTokenizer tokenizer = new StringTokenizer( \n message, MESSAGE_SEPARATOR );\n\n // ignore messages that do not contain a user\n // name and message body\n if ( tokenizer.countTokens() == 2 ) \n {\n // send message to MessageListener\n messageListener.messageReceived( \n tokenizer.nextToken(), // user name\n tokenizer.nextToken() ); // message body\n } // end if\n else\n {\n // if disconnect message received, stop listening\n if ( message.equalsIgnoreCase(\n MESSAGE_SEPARATOR + DISCONNECT_STRING ) ) \n stopListening();\n } // end else\n } // end if\n } // end while \n \n try\n { \n input.close(); // close BufferedReader (also closes Socket)\n } // end try\n catch ( IOException ioException ) \n {\n ioException.printStackTrace(); \n } // end catch \n }", "public void run(){\n\t\t\tObjectReader readerClient = new ObjectReader(in, clientInetAddress);\r\n\t\t\treaderClient.start();\r\n\t\t\t\r\n\t\t\t// Constantly checks msgToSend for messages and sends them\r\n\t\t\twhile(true){\r\n\t\t\t\ttry{\r\n\t\t\t\t\t// Send message\r\n\t\t\t\t\tif(msgToSend.length() != 0){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tout.writeObject(new DataObject(DataObject.STRING, msgToSend.toString()));\r\n\t\t\t\t\t\tout.flush();\r\n\t\t\t\t\t\tmsgToSend.setLength(0);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tcatch(IOException ioe){\r\n\t\t\t\t\tioe.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}", "public void run()\n\t{\n\t\tSystem.out.println(\"Connection established: \" + clientSocket);\n\t\tThread messageThread; // start a new Thread on TCPReceiver to receive messages through clientSocket.\n\t\ttry \n\t\t{\n\t\t\tmessageThread = new Thread(new TCPNodeReceiver(clientSocket, messagingNode), \"tcpReceiverThread\"); // pass a copy of the MessagingNode to TCPNodeReceiver.\n\t\t\tmessageThread.start(); // start receiving messages.\t\t\t\t\t\n\t\t} \n\t\tcatch (IOException e) {\n\t\t\tSystem.err.println(\"messagingNodeThread got error: \" + e.getMessage());\n\t\t} \n\t}", "private void run() throws IOException {\n\n Socket socket = new Socket(\"localhost\", 8678);\n in = new BufferedReader(new InputStreamReader(\n socket.getInputStream()));\n\n // Process all messages from server, according to the protocol.\n\n while (true) {\n String line = in.readLine();\n if (line.startsWith(\"SUBMIT\")) {\n new MessageThread(socket).start();\n }\n else if (line.startsWith(\"NAMEACCEPTED\")) {\n System.out.println(\"Success\");;\n } else if (line.startsWith(\"MESSAGE\")) {\n System.out.println(line);\n }\n }\n }", "public void run() {\n while (true) { \n \t\ttry {\n \t\t\tString line=br.readLine();\n\t\t\t\t\t\t\th.obtainMessage(RECIEVE_MESSAGE, line).sendToTarget();\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n \n }\n }", "private void startThread() {\n\t\tif(receivethread != null && receivethread.isAlive())\n\t\t\treceivethread.interrupt();\n\n\t\t// Close datagram socket If still open\n\t\tif(udpsocket != null && udpsocket.isClosed() == false)\n\t\t\tudpsocket.close();\n\n\t\t// Open datagram socket\n\t\ttry {\n\t\t\tudpsocket = new DatagramSocket();\n\t\t\tudpsocket.setReceiveBufferSize(1024 * 1024);\n\t\t\tudpsocket.setSoTimeout(15000);\n\t\t} catch (SocketException e) {\n\t\t\tudpsocket.close();\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}\n\n\t\t// Start Receive Thread\n\t\treceivethread = new ReceiveThread(this.udpsocket, callback);\n\t\treceivethread.start();\n\t}", "@Override\n public void run() {\n Message message;\n while(true){\n logger.debug(\"SMS Reader Thread is waiting for incoming messages\");\n message = messageQueue.getInputSMS().poll() ;\n logger.debug(\"SMS message has been received from \"+ message.getFromWhom());\n view.receivedMessages.append(message.getFromWhom().toString() +\" :\");\n view.receivedMessages.append(message.getData() + \"\\n\");\n view.setPreferredSize(new Dimension(view.getSize().height+10, view.getSize().width));\n view.jScrollPaneReceivedMessages.getVerticalScrollBar().setValue(view.jScrollPaneReceivedMessages.getVerticalScrollBar().getMaximum());\n view.revalidate();\n }\n }", "@Override\n public void run() {\n\n while(true) {\n String incomingMessage = getSocketController().receive();\n getMessages().lock();\n System.out.println(incomingMessage);\n getMessages().addElement(incomingMessage);\n getMessages().unlock();\n try {\n Thread.sleep(10);\n }catch(InterruptedException e) {\n throw new RuntimeException(e);\n }\n }\n }", "public void run() {\n\t\twhile (!isFinished) {\n\t\t\tString msg;\n\t\t\ttry {\n\t\t\t\tmsg = messages.take();\n\t\t\t\tSystem.out.println(serverId + \" says: \" + msg);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void run() {\n\t\t\twhile (running || !messages_to_send.isEmpty()) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tsend();\r\n\t\t\t\t\tread();\r\n\t\t\t\t\tThread.sleep(100);\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tbluetooth_show_message(\"Error! Sending or Reading failed. Reason: \" + e);\r\n\t\t\t\t\tcancel();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tsocket.close();\r\n\t\t\t} catch(IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}", "public void run(){\n //wait for clients to connect to the server and start a new thread,\n //then continue waiting.\n while(true) {\n //create the packet to accept a message\n byte[] buf = new byte[bufSize];\n DatagramPacket packet = new DatagramPacket(buf, buf.length);\n try {\n //receive a message from the client\n datagramSocket.receive(packet);\n } catch (IOException e) {\n System.err.println(\"Error receiving datagram packet\");\n } catch (Exception e){\n serverGUI.displayText(\"Error: There is an issue with your connection. Please restart the program.\");\n }\n //Start a new thread for this client\n ServerThread servant = new ServerThread(mainServer, packet, serverGUI);\n servant.start();\n }\n }", "@Override\n\tpublic void run() {\n\t\t\n\t\twhile(connected) {\n\t\t\tif(GameActivity.getInstance() == null)\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\ttry {\n\t\t\t\t// Read first 4 bytes (int, messageType) from stream\n\t\t\t\t//in.read(bytes, 0, 4);\n\t\t\t\tint messageType = in.readInt();\n\t\t\t\t//intByteBuffer.clear(); // Clear buffer so we can read from it again\n\t\t\t\t\n\t\t\t\t// Receive appropriate message based on received messageType\n\t\t\t if(messageType == Message.CHARACTERS.value()) {\n\t\t\t\t\treceiveCharacters();\n\t\t\t\t} else if(messageType == Message.ID.value()) {\n\t\t\t\t\treceiveId();\n\t\t\t\t} else {\n\t\t\t\t\tSystem.err.println(\"Received message with unknown id: \" + messageType);\n\t\t\t\t}\n\t\t\t \n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(\"Connection to server lost\");\n\t\t\t\te.printStackTrace();\n\t\t\t\tclose();\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "public void start(){\n\t\tdo{\n\t\t\tMessage<T> msg= input.read();\n\t\t\tif (!msg.getQuit() && !msg.getFail() ){\n\t\t\t\tconsume(msg.getContent());\n\t\t\t}\n\t\t\tif (msg.getQuit()){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}while(true);\n\t\t\n\t}", "final public void run() {\n connectionEstablished();\n\n // The message from the server\n int msg;\n\n // Loop waiting for data\n\n try {\n // messageTimer.schedule(new TimerTask() {\n // @Override\n // public void run() {\n // try {\n // sendFromMessageQueue();\n // } catch (IOException e) {}\n // }\n // }, 0, 100);\n while (!readyToStop) {\n // Get data from Server and send it to the handler\n // The thread waits indefinitely at the following\n // statement until something is received from the server\n\n try { // added in version 2.31\n\n // String cur = input.readLine();\n // handleBig5String(cur + \"\\n\");\n readByte();\n\n } catch (RuntimeException ex) { // thrown by handleMessageFromServer\n\n connectionException(ex);\n }\n }\n } catch (Exception exception) {\n if (!readyToStop) {\n try {\n closeAll();\n } catch (Exception ex) {\n }\n\n clientReader = null;\n connectionException(exception);\n }\n } finally {\n\n clientReader = null;\n connectionClosed(); // moved here in version 2.31\n }\n }", "private synchronized void openConnection() {\n\t\tsendData = new Thread(){\n\t\t\tpublic void run(){\n\t\t\t\tsynchronized(msgs){\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tmsgs.wait(1000);\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}\n\t\t\t\twhile(true){\n\t\t\t\t\tsynchronized(msgs){\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tif(msgs.size() > 0){\n\t\t\t\t\t\t\t\tout = new PrintWriter(new PrintWriter(s.getOutputStream()));\n\t\t\t\t\t\t\t\tString temp = msgs.get(0);\n\t\t\t\t\t\t\t\tout.println(temp);\n\t\t\t\t\t\t\t\tout.flush();\n\t\t\t\t\t\t\t\tSystem.out.println(temp);\n\t\t\t\t\t\t\t\tmsgs.remove(0);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}catch(IOException e){\n\t\t\t\t\t\t\te.printStackTrace();\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\treceiveData = new Thread(){\n\t\t\tpublic void run(){\n\t\t\t\tString received;\n\t\t\t\tdo{\n\t\t\t\t\ttry {\n\t\t\t\t\t\tin = new BufferedReader(new InputStreamReader(s.getInputStream()));\n\t\t\t\t\t\treceived = in.readLine();\n\t\t\t\t\t\tparseMessageReceived(received);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}while(true);\n\t\t\t}\n\t\t};\n\t\tsendData.setDaemon(true);\n\t\treceiveData.setDaemon(true);\n\t\tsendData.start();\n\t\treceiveData.start();\n\t\tnew Thread()\n\t\t{\n\t\t\tpublic void run(){\n\t\t\t\twhile(true){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsendData.join();\n\t\t\t\t\t\treceiveData.join();\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}\n\t\t\t}\n\t\t}.start();\n\t}", "@Override\n public void run() { \n \n String received; \n while (true) { \n try { \n\n // receive the messages from clients\n received = dis.readUTF();\n ChatServer.writeOnThreads(received);\n\n } catch (IOException e) {\n try { \n this.dis.close(); \n this.dos.close(); \n\n } catch(IOException e1) { \n e1.printStackTrace(); \n } \n } \n } \n }", "public void start() {\n this.messenger.start();\n }", "@Override\n public void run() {\n while (connected) {\n Message message = getMessage();\n if (!connected)\n break;\n Executors.newCachedThreadPool().execute(() -> {\n try {\n message.handle(messageHandler);\n } catch (IOException e) {\n e.printStackTrace();\n }\n });\n }\n }", "@Override\n\tpublic void run() {\n\t\tsuper.run();\n\t\twhile (keepListening) {\n\t\t\tbyte[] buffer = new byte[SocketMessengerConstants.MESSAGE_SIZE];\n\t\t\tDatagramPacket packet = new DatagramPacket(buffer, SocketMessengerConstants.MESSAGE_SIZE);\n\t\t\ttry {\n\t\t\t\tmulticastSocket.receive(packet);\n\t\t\t} catch (InterruptedIOException e) {\n\t\t\t\tcontinue;\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO: handle exception\n\t\t\t\te.printStackTrace();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString message = new String(packet.getData());\n\t\t\tSystem.out.println(\"Receiving a message: \" + message);\n\t\t\tmessage = message.trim();\n\t\t\tStringTokenizer tokenizer = new StringTokenizer(message, SocketMessengerConstants.MESSAGE_SEPARATOR);\n\t\t\tif (tokenizer.countTokens() == 2)\n\t\t\t\tmessageListener.messageReceived(tokenizer.nextToken(), tokenizer.nextToken());\n\t\t}\n\t\ttry {\n\t\t\tmulticastSocket.leaveGroup(multicastGroup);\n\t\t\tmulticastSocket.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void run()\r\n {\r\n System.out.println(\"I am here\");\r\n while (_keepGoing && datagramSocket!=null)\r\n {\r\n DatagramPacket packet = null;\r\n try { packet = getMessage(); }\r\n catch (Exception e) { /* ignore */ }\r\n if (packet == null) continue;\r\n\r\n String message = new String( packet.getData(), 0, packet.getLength(), UTF_16BE);\r\n System.out.println(\"Message :\"+message);\r\n InetAddress senderAddress = packet.getAddress();\r\n int senderPort = packet.getPort();\r\n\r\n if (_processor!=null)\r\n _processor.process(message, senderAddress, senderPort);\r\n }\r\n }", "@Override\n\tpublic void run() {\n\t\tsuper.run();\n\n\t\twhile (onWork) {\n\n\t\t\tswitch (state) {\n\t\t\tcase connect:\n\t\t\t\tconnect();\n\t\t\t\tbreak;\n\t\t\tcase running:\n\t\t\t\treceiveMsg();\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t}", "@Override\n public void run() {\n P.print(\"Receive thread starts up.\");\n try {\n ObjectInputStream ois = new ObjectInputStream(socket.getInputStream());\n while (P.choke_thread_running) { //read input forever.\n try{\n Object o = ois.readObject(); //blocking.\n if (o instanceof Handshake) { // this is a Handshake.\n Handshake hs = (Handshake)o;\n P.print(\"Received handshake from \"+hs.pid);\n }\n else if(o instanceof Message){ //this is a Message.\n Message M = (Message) o;\n if(M.type==0){\n P.print(\"Received choke from \"+t.getName());\n }\n else if(M.type==1){\n P.print(\"Received unchoke from \"+t.getName());\n }\n else if(M.type==2){\n P.print(\"Received interested from \"+t.getName());\n }\n else if(M.type ==3){\n P.print(\"Received not_interested from \"+t.getName()); \n }\n else if(M.type==4){\n P.print(\"Received have from \"+t.getName());\n }\n else if(M.type==5){\n P.print(\"Received bitfield from \"+t.getName());\n }\n else if(M.type==6){\n P.print(\"Received request from \"+t.getName());\n }\n else if(M.type==7){\n P.print(\"Received piece from \"+t.getName());\n }\n else{\n P.print(\"Error: undefined message type: \"+M.type);\n }\n }\n else {\n System.out.println(\"Class not found.\");\n }\n }\n catch(ClassNotFoundException ex){\n ex.printStackTrace();\n }\n }\n ois.close();\n socket.close();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\tInputStream inputStream = mSocket.getInputStream();\n\t\t\tint leng;\n\t\t\tbyte[] buffer = new byte[1024];\n\t\t\tByteArrayBuffer[] data = {new ByteArrayBuffer(1024 * 32)};\n\t\t\twhile((leng = inputStream.read(buffer)) != -1 && mConected)\n\t\t\t{\n\t\t\t\tif(mConected)\n\t\t\t\t{\n\t\t\t\t\tdata[0].append(buffer, data[0].length(), leng);\n\t\t\t\t\tprocessMessage(data);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tLog.e(TAG, \"Cannot set InputStream\\nNetwork error\");\n\t\t\tevent.connectionLost();\n\t\t} catch (ProtocolException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tevent.connectionLost();\n\t\t}\n\t}", "@Override\n\tpublic void run() {\n\t\twhile (true) {\n\t\t\t//让改线程可以接受到客户端的信息;\n\t\t\ttry {\n//\t\t\t\tThread.sleep(2000);\n\t\t\tObjectInputStream ois=new ObjectInputStream(s.getInputStream());\n\t\t\tMessage message=(Message) ois.readObject();\n\t\t\tSystem.out.println(message.getSender()+\"给\"+message.getGetter()+\"说\"+message.getCon());\n\t\t\t//这里进行转发;\n\t\t\t/*\n\t\t\t * 转发时出现错误;???????????已解决;\n\t\t\t */\n\t\t\t//取得接收人的通讯线程;\n\t\t\tServerConnectClient scClient=ManageQQClientTh.getClientThread(message.getGetter());\n\t\t\tObjectOutputStream oos=new ObjectOutputStream(scClient.s.getOutputStream());\n\t\t\t\toos.writeObject(message);\n\t\t\n\t\t\t\t} catch (IOException | ClassNotFoundException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}", "private void Thread() {\n\n Thread thread = new Thread ( new Runnable() {\n \n @Override\n public void run() {\n \n String mensagem = \"\";\n\n try {\n \n InputStreamReader isr = new InputStreamReader(socket.getInputStream());\n BufferedReader br = new BufferedReader(isr);\n\n while ((mensagem = br.readLine()) != null) {\n\n enviarMensagem(mensagem);\n }\n } catch ( Exception e ) {\n e.printStackTrace();\n }\n }\n });\n //para iniciar a thread\n thread.start();\n }", "public void run() {\n try {\n String receivedMessage = \"\";\n \t\twhile (!receivedMessage.startsWith(this.PSEUDO+\" left.\")) {\n \n byte[] buf = new byte[256];\n DatagramPacket packet = new DatagramPacket(buf, buf.length);\n \n clientSocket.receive(packet);\n receivedMessage = new String(packet.getData(), packet.getOffset(), packet.getLength());\n\n conversation.append(receivedMessage + \"\\n\");\n\n \t\t}\n \t\tSystem.exit(0);\n\n \t} catch (Exception e) {\n \tSystem.err.println(\"Error in ReceptionClientThread:\" + e); \n }\n }", "@Override\n\t\tpublic void run() {\n\t\t\twhile (true) {\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(1000);// 线程暂停2秒,单位毫秒\n\t\t\t\t\tMessage message = new Message();\n\t\t\t\t\tmessage.arg1 = 1;\n\t\t\t\t\thandler.sendMessage(message);// 发送消息\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public void run() {\n\t\tString line = null;\n\t\tMessage message;\n\t\tBufferQueueElement<Message> messageList = new BufferQueueElement<Message>();\n\t\tlong t1 = System.nanoTime();\n\t long t2 = 0;\n\t\ttry {\n\t\t\twhile ((line = messageIO.readMessage()) != null) {\n\t\t\t\tt2 = System.nanoTime();\n\t\t\t\t/* Ok, we can close the stream. But process the last message list. */\n\t\t\t\tif (CLOSE_STREAM.equals(line)) {\n\t\t\t\t\tmessageList.setStreamClosed(true);\n\t\t\t\t\tqueue.put(messageList);\n\t\t\t\t\tbreak;\n\t\t\t\t} else if((t2 - t1) < ONE_SECOND) {\n\t\t\t\t\tmessage = new Message(line);\n\t\t\t\t\tmessageList.setMessageElement(message);\n\t\t\t\t} else {\n\t\t\t\t\tqueue.put(messageList);\n\t\t\t\t\tmessageList = new BufferQueueElement<Message>();\n\t\t\t\t\tt1 = System.nanoTime();\n\t\t\t\t\tmessage = new Message(line);\n\t\t\t\t\tmessageList.setMessageElement(message);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t} catch (InterruptedException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "public void processStart(){\n initWorkerQueue();\n DataBean serverArgs = new DataBean();\n serverArgs.setValue(\"mode\",\"server\");\n serverArgs.setValue(\"messagekey\",\"72999\");\n serverArgs.setValue(\"user\",\"auth\");\n serverArgs.setValue(\"messagechannel\",\"/esb/system\");\n messageClient = new MessageClient(this,serverArgs);\n Helper.writeLog(1,\"starting message server\");\n messageClient.addHandler(this);\n \n }", "@Override\r\n\tpublic void run() {\n\t\ttry {\r\n\t\t\twhile (true) {\r\n\t\t\t\tString TransferLine = is.readUTF();\r\n\t\t\t\tSystem.out.println(\"Recv: \" + TransferLine);\r\n\t\t\t\tSimpleAttributeSet recv = new SimpleAttributeSet();\r\n\t\t\t\tStyleConstants.setForeground(recv, Color.RED);\r\n\t\t\t\tGUIObject.addText(\"Recv: \" + TransferLine, recv);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\r\n\t\t}\r\n\t}", "@Override\n public void run() {\n try {\n boolean busy = true;\n while (busy) {\n AbstractBasicMessage msg = readMsg();\n if (msg != null) {\n busy = msg.operate(this.persistor, this.pushServer);\n }\n }\n } catch (IOException e) {\n // Treat an IOException as a termination of the message\n // exchange, and let this message-processing thread die.\n\n // CODE VON DOZENTEN...\n } catch (OperationNotSupportedException ex) {\n System.out.println(\"Error while reading incoming message\");\n ex.printStackTrace();\n }\n }", "@Override\n\tpublic void run() {\n\t\tSystem.out.println(\"Waiting for input\");\n\t\t// Handle reading data until we exit\n\t\tByteBuffer buf = ByteBuffer.allocate(2048);\n\t\twhile (!stopper && socketChannel.isOpen()) {\n\t\t\tSystem.out.println(\"Reading the socket\");\n\t\t\ttry {\n\t\t\t\t// No input from the user in 60 seconds results in kicking them\n\t\t\t\t// out\n\t\t\t\tint bytesRead = socketChannel.read(buf).get(60, TimeUnit.SECONDS);\n\t\t\t\t// ByteBuffer dst = ByteBuffer.allocate(bytesRead);\n\t\t\t\t// engine.unwrap(buf, dst);\n\t\t\t\tSystem.out.println(\"Got data of size: \" + bytesRead);\n\t\t\t\t// convert to proto\n\t\t\t\tcommonUIElements.MessageProtos.Message msg = commonUIElements.MessageProtos.Message\n\t\t\t\t\t\t.parseFrom(Arrays.copyOf(buf.array(), bytesRead));\n\t\t\t\tSystem.out.println(\"RXed: \" + msg.toString());\n\t\t\t\tif (!msg.getName().equals(name)) {\n\t\t\t\t\tname = msg.getName();\n\t\t\t\t}\n\t\t\t\t// add data to the message queue\n\t\t\t\tif (SignatureSystem.verifySignature(msg.getSignature(), msg.getMessage(), msg.getName(), trustStore)) {\n\t\t\t\t\tmessages.put(\n\t\t\t\t\t\t\tnew Message(msg.getSender(), msg.getMessage(), msg.getSignature(), msg.getClearance()));\n\t\t\t\t} else {\n\t\t\t\t\tMessage error = new Message(msg.getSender(), \"Error: signture is invalid\", msg.getSignature(),\n\t\t\t\t\t\t\tmsg.getClearance());\n\t\t\t\t\terror.error = true;\n\t\t\t\t\tmessages.put(error);\n\t\t\t\t}\n\t\t\t\t// clear the buffer for the next message\n\t\t\t\tbuf.clear();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tSystem.err.println(\"Failed to add message to the queue: \" + e.getMessage());\n\t\t\t\tMessage error = new Message(this.name, \"Disconnected\", \"\", 1);\n\t\t\t\terror.error = true;\n\t\t\t\ttry {\n\t\t\t\t\tmessages.put(error);\n\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\tSystem.err.println(\"Thread has an error, can't inform server of this transgression\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t} catch (TimeoutException e) {\n\t\t\t\tSystem.err.println(\"Timeout hit, waiting again\");\n\t\t\t\tMessage error = new Message(this.name, \"Client: \" + this.name + \" has timed out\", \"\", 1);\n\t\t\t\terror.kill = true;\n\t\t\t\ttry {\n\t\t\t\t\tmessages.put(error);\n\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\tSystem.err.println(\"Thread has an error, can't inform server of this transgression\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t} catch (ExecutionException e) {\n\t\t\t\tSystem.err.println(\"Execution error, breaking out of loop\");\n\t\t\t\tbreak;\n\t\t\t} catch (InvalidProtocolBufferException e) {\n\t\t\t\tSystem.err.println(\"Invalid protobuf received: \" + e.getMessage());\n\t\t\t\t// } catch(SSLException e) {\n\t\t\t\t// System.err.println(\"SSL Failed: \" + e.getMessage());\n\t\t\t}\n\t\t}\n\t\ttry {\n\t\t\tsocketChannel.close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Failed to close socket while exiting\");\n\t\t}\n\t\tSystem.out.println(\"Exiting thread...\");\n\t}", "@Override\n\tpublic void run(){\n\t\twhile(keepGoing){\n\t\t\ttry {\n\t\t\t\tString data = input.readUTF();\n\t\t\t\tStringTokenizer st = new StringTokenizer(data);\n\t\t\t\tString cmd = st.nextToken();\n\t\t\t\tswitch(cmd){\n\t\t\t\t\n\t\t\t\t\t/**\n\t\t\t\t\t * Receive a File Sharing request\n\t\t\t\t\t */\n\t\t\t\t\tcase \"cmd_receiverequest_file\": // format: ([cmd_receiverequest_file] [from] [filename] [size]) \n\t\t\t\t\t\tgetReceiveFileRequest(st);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tJOptionPane.showMessageDialog(main, \"Unknown Command '\"+ cmd +\"' in MainThread\", \"Unknown\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tJOptionPane.showMessageDialog(main, e.getMessage(), \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\tkeepGoing = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(\"MainThread was closed.!\");\n\t}", "@Override\n\t\tpublic void run() {\n\t\t\twhile (true) {\n\t\t\t\t\n\t\t\t\t// allocate buffer\n\t\t\t\tbyte[] buffer = new byte[RX_BUFFER_SIZE];\n\t\t\t\t\n\t\t\t\t// initialize new datagram\n\t\t\t\tDatagramPacket datagram = new DatagramPacket(buffer, buffer.length);\n\t\t\t\t\n\t\t\t\t// receive datagram\n\t\t\t\ttry {\n\t\t\t\t\tsocket.receive(datagram);\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\tcontinue;\n\t\t\t\t}\n\t\t\t\n\t\t\t\tdatagramReceived(datagram);\n\t\t\t}\n\t\t}", "public void run() {\n byte[] buffer = new byte[256];\n int bytes;\n\n // Keep looping to listen for received messages\n while (true) {\n try {\n bytes = mmInStream.read(buffer); //read bytes from input buffer\n String readMessage = new String(buffer, 0, bytes);\n // Send the obtained bytes to the UI Activity via handler\n bluetoothIn.obtainMessage(handlerState, bytes, -1, readMessage).sendToTarget();\n } catch (IOException e) {\n break;\n }\n }\n }", "public void run()\r\n\t\t{\n\t\t\ttheVMKClient.sendMessageToServer(m);\r\n\t\t}", "@Override\n\t\tpublic void run()\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\twhile (keepListening)\n\t\t\t\t{\n\t\t\t\t\tString rcvStr = is.readLine();\n\t\t\t\t\t\n\t\t\t\t\t//We must make sure that this packet has been sent here correctly.\n\t\t\t\t\tif (rcvStr != null)\n\t\t\t\t\t{\n\t\t\t\t\t\t//TO-DO parse message here and notify controller\n\t\t\t\t\t\t//just transmit it to controller.\n\t\t\t\t\t\tSystem.out.println(\"receive reply : \" + rcvStr);\n\t\t\t\t\t\tmyController.parseResponse(rcvStr);\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t//The receive String is null means that this connection is broken.\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"at ControlChannel listenRunnable : receive null response\");\n\t\t\t\t\t\tkeepListening = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (IOException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "public void run() {\n\t\tThread t = Thread.currentThread();\n\t\twhile (!t.isInterrupted()) {\n\t\t\ttry {\n\t\t\t\t//boolean status = process();\n\t\t\t\tMessage message = receive();\n\t\t\t\tif (t.isInterrupted())\n\t\t\t\t\treturn;\n\t\t\t\t//if (!status)\n\t\t\t\t//\treturn;\n\t\t\t\tif (socket == null)\n\t\t\t\t\treturn;\n\t\t\t\tThread.yield();\n\t\t\t} catch (Exception e) {\n\t\t\t\t//_monitor.log(e);\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void startReceiving() {\n\t\tHandlerThread handlerThread = new HandlerThread(\n\t\t\t\t\"DataExportationReceiverThread\");\n\t\thandlerThread.start();\n\t\tcallerContext.registerReceiver(this, new IntentFilter(\n\t\t\t\tDataExportationService.BROADCAST_ACTION), null, new Handler(\n\t\t\t\thandlerThread.getLooper()));\n\t}", "private void start() {\n windowForCommunication.append(\"Awaiting client connection...\" + \"\\n\");\n\n //check if client is connected, if yes, add the following text to the chat window, then enable communication\n if (clientSocket.isConnected()) {\n windowForCommunication.append(\"Connection is established. Type 'stopconnection' to stop connection\" + \"\\n\");\n textField.setEditable(true);\n }\n\n //Begin communication, end if \"stopconnection\" is typed by Server/Client. If it is, call closeStreams method.\n try {\n String userInput;\n\n while((userInput = input.readLine()) != null) {\n if(userInput.contains(\"stopconnection\")){\n closeStreams();\n break;\n }\n\n displayMessage(userInput + \"\\n\");\n\n }\n }\n catch(IOException e) {\n e.printStackTrace();\n }\n }", "public void start() {\n try {\n Socket socket = new Socket(conf.getServerIp(), conf.getServerPort());\n\n java.io.InputStream is = socket.getInputStream();\n BufferedReader reader = new BufferedReader(new java.io.InputStreamReader(is));\n\n readerThread = new MessageReader(reader);\n new Thread(readerThread).start();\n\n java.io.OutputStream os = socket.getOutputStream();\n PrintWriter writer = new PrintWriter(os);\n writerThread = new MessageWriter(writer);\n new Thread(writerThread).start();\n\n while (serverMessages.empty()) {\n //Do nothing\n }\n\n ServerMessage serverMessage = serverMessages.pop();\n if (!serverMessage.getMessageType().equals(ServerMessage.MessageType.HELO)) {\n System.out.println(\"Expecting a HELO message but received: \" + serverMessage.toString());\n } else {\n System.out.println(\"Please fill in your username: \");\n Scanner scanner = new Scanner(System.in);\n String username = scanner.nextLine();\n\n\n ClientMessage heloMessage = new ClientMessage(ClientMessage.MessageType.HELO, username);\n clientMessages.push(heloMessage);\n\n while (serverMessages.empty()) {\n }\n\n\n isConnected = validateServerMessage(heloMessage, serverMessages.pop());\n if (!isConnected) {\n System.out.println(\"Error logging into server\");\n } else {\n System.out.println(\"Successfully connected to server.\");\n System.out.println(\"(Type '/quit' to close connection and stop application.)\");\n System.out.println(\"Type a broadcast message: \");\n nonblockReader = new NonblockingBufferedReader(new BufferedReader(new java.io.InputStreamReader(System.in)));\n\n\n while (isConnected) {\n String line = nonblockReader.readLine();\n if (line != null) {\n ClientMessage clientMessage;\n if (line.equals(\"/quit\")) {\n clientMessage = new ClientMessage(ClientMessage.MessageType.QUIT, username + \" left the server\");\n isConnected = false;\n\n Thread.sleep(500L);\n } else if (line.startsWith(\"/msg\") && line.split(\" \").length > 1) {\n //Split the message first\n String[] splittedline = line.split(\" \");\n String senderUsername = splittedline[1].toLowerCase();\n\n if (!senderUsername.equalsIgnoreCase(username)) {\n line = line.replace(\"/msg \" + splittedline[1] + \" \", \"\");\n\n //Check if we have an encryptionsession with the user or not\n if (encryptionSessionHashMap.containsKey(senderUsername)) {\n //We have an encryptionsession, so we can just send the message\n String encryptedLine = encryptionSessionHashMap.get(senderUsername).encryptMessage(line);\n clientMessage = new ClientMessage(ClientMessage.MessageType.ENCR, senderUsername + \" \" + encryptedLine);\n System.out.println(\"(You -> \" + senderUsername + \"): \" + line);\n } else {\n //We don't have an encryptionsession yet, so we create one\n EncryptionSession encryptionSession = new EncryptionSession();\n encryptionSessionHashMap.put(senderUsername, encryptionSession);\n clientMessage = new ClientMessage(ClientMessage.MessageType.KEYS, senderUsername + \" \" + encryptionSession.getPublicKey());\n savedMessage.put(senderUsername, line);\n }\n } else {\n System.out.println(\"You cannot send a message to yourself\");\n clientMessage = null;\n }\n } else if (line.startsWith(\"/file\") && line.split(\" \").length == 3) {\n //Split the message first\n String[] splitLine = line.split(\" \");\n String senderUsername = splitLine[1].toLowerCase();\n\n if (!senderUsername.equalsIgnoreCase(username)) {\n String fileBase64String = new FileTransfer(splitLine[2], senderUsername).sendFile();\n clientMessage = new ClientMessage(ClientMessage.MessageType.FILE, fileBase64String);\n System.out.println(\"You have send \" + splitLine[2] + \" to \" + senderUsername);\n } else {\n System.out.println(\"You cannot send a file to yourself\");\n clientMessage = null;\n }\n\n } else {\n clientMessage = new ClientMessage(ClientMessage.MessageType.BCST, line);\n System.out.println(line);\n }\n\n if (clientMessage != null) {\n clientMessages.push(clientMessage);\n }\n }\n if (!serverMessages.empty()) {\n ServerMessage received = serverMessages.pop();\n\n\n if (received.getMessageType().equals(ServerMessage.MessageType.BCST)) {\n System.out.println(received.getPayload());\n }\n\n //Check if we received an encrypted message\n else if (received.getMessageType().equals(ServerMessage.MessageType.ENCR)) {\n //Split the message first\n String[] splitMessage = received.getPayload().split(\" \");\n String sender = splitMessage[0].toLowerCase();\n String encryptedMessage = splitMessage[1];\n\n //If we have a session with this user, we can decrypt the message\n if (encryptionSessionHashMap.containsKey(sender)) {\n System.out.println(\"(\" + sender + \" -> You): \" + encryptionSessionHashMap.get(sender).decryptMessage(encryptedMessage));\n }\n }\n\n //If this is the first time, we have to share keys\n else if (received.getMessageType().equals(ServerMessage.MessageType.KEYS)) {\n //Split the message first\n String[] splitMessage = received.getPayload().split(\" \");\n String sender = splitMessage[0].toLowerCase();\n String encryptedKey = splitMessage[1];\n\n //Check if we send the first message or not\n if (encryptionSessionHashMap.containsKey(sender)) {\n encryptionSessionHashMap.get(sender).decryptKey(encryptedKey);\n\n //After saving the aes key, we have to resend our first message\n String msg = savedMessage.get(sender);\n if (msg != null) {\n String encryptedLine = encryptionSessionHashMap.get(sender).encryptMessage(msg);\n ClientMessage responseMessage = new ClientMessage(ClientMessage.MessageType.ENCR, sender + \" \" + encryptedLine);\n clientMessages.push(responseMessage);\n System.out.println(\"(You -> \" + sender + \"): \" + msg);\n savedMessage.remove(sender);\n }\n }\n\n //We send our aes key when we didn't send the message first\n else {\n EncryptionSession encryptionSession = new EncryptionSession();\n encryptionSessionHashMap.put(sender, encryptionSession);\n String aesKey = encryptionSession.encryptKey(encryptedKey);\n\n ClientMessage responseMessage = new ClientMessage(ClientMessage.MessageType.KEYS, sender + \" \" + aesKey);\n clientMessages.push(responseMessage);\n }\n }\n\n //Check if the message is a file\n else if (received.getMessageType().equals(ServerMessage.MessageType.FILE)) {\n String[] splitMessage = received.getPayload().split(\" \");\n String sender = splitMessage[0].toLowerCase();\n String base64String = splitMessage[2];\n\n new FileTransfer(base64String, splitMessage[0], true).readFile();\n System.out.println(\"You have received \" + splitMessage[1] + \" from \" + sender);\n }\n }\n }\n }\n\n disconnect();\n System.out.println(\"Client disconnected!\");\n }\n } catch (IOException e) {\n System.out.println(\"Ouch! Could not connect to server!\");\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public static void start() {\n enableIncomingMessages(true);\n }", "public void run() {\n\t\t\tSystem.err.println(\"inside run\");\n//\t\t byte[] tmp=new byte[1024];\n\t\t\t\n//\t\t\ttry {\n//\t\t\t\twhile(in.available()>0){\n//\t\t\t int i=in.read(tmp, 0, 1024);\n//\t\t\t System.out.print(new String(tmp, 0, i));\n//\t\t\t }\n//\t\t\t} catch (IOException e1) {\n//\t\t\t\t// TODO Auto-generated catch block\n//\t\t\t\te1.printStackTrace();\n//\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n//\t\t\ttry {\n//\t\t\t\treceive = read.readLine();\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\tSystem.err.println(receive);\n\t\t\tif (receive != null) {\n\t\t\t\t// message.setText(receive);\n\t\t\t\tSystem.err.println(receive);\n\t\t\t\tMessages m = new Messages();\n\t\t\t\tint msgType = m.AnalyseMgetChargetCharsg(receive);\n\t\t\t\tswitch (msgType) {\n\t\t\t\tcase 0:\n\t\t\t\t\treturn;\n\t\t\t\tcase 1:\n\t\t\t\tcase 2:\n\t\t\t\t\tSharedPreferences preferences = getSharedPreferences(\n\t\t\t\t\t\t\t\"FANCY\", 0);\n\t\t\t\t\tEditor editor = preferences.edit();\n\t\t\t\t\teditor.putInt(\"current_state\", m.Getrun());\n\t\t\t\t\teditor.commit();\n\t\t\t\t\tif (m.Getrun() == 0)\n\t\t\t\t\t\tisRunning = false;\n\t\t\t\t\telse\n\t\t\t\t\t\tisRunning = true;\n\t\t\t\t\tupdateControl();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tint settingId = m.Getid();\n\t\t\t\t\tdouble temperature = m.Gettem();\n\t\t\t\t\tint totalRunTime = m.Gettime();\n\t\t\t\t\tint fanSpeed = m.Getfan();\n\t\t\t\t\tsetState(m.Getrun(), settingId, temperature, totalRunTime,\n\t\t\t\t\t\t\tfanSpeed);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\ttemperature = m.Getcurtem();\n\t\t\t\t\tint currentRunTime = m.Getcurtime();\n\t\t\t\t\tint exist = m.Getexist();\n\t\t\t\t\tstatusUpdate(temperature, currentRunTime,\n\t\t\t\t\t\t\t(exist == 0) ? false : true);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tPattern p = Pattern.compile(\"\\\\s(\\\\d+\\\\.*\\\\d*)\\\\s\");\n\t\t\t\tMatcher matcher = p.matcher(receive);\n\t\t\t\tString result = null;\n\t\t\t\tif (matcher.find()) {\n\t\t\t\t\tresult = matcher.group(1);\n\t\t\t\t\tSystem.out.println(result);\n\t\t\t\t}\n\t\t\t\tif (result != null) {\n\t\t\t\t\ttimeSeries.add(new Date(), Double.valueOf(result));\n\t\t\t\t\tview.repaint();\n\t\t\t\t}\n\t\t\t}\n\n\t\t}", "public void run() {\n\n // Attempt to connect and exit the thread if it failed\n try {\n connect();\n sendToReadHandler(\"CONNECTED\");\n } catch (Exception e) {\n Log.e(TAG, \"Failed to connect!\", e);\n sendToReadHandler(\"CONNECTION FAILED\");\n disconnect();\n return;\n }\n\n // Loop continuously, reading data, until thread.interrupt() is called\n while (!this.isInterrupted()) {\n\n // Make sure things haven't gone wrong\n if ((inStream == null) || (outStream == null)) {\n Log.e(TAG, \"Lost bluetooth connection!\");\n break;\n }\n\n // Read data and add it to the buffer\n String s = read();\n if (s.length() > 0)\n rx_buffer += s;\n\n // Look for complete messages\n parseMessages();\n }\n\n // If thread is interrupted, close connections\n disconnect();\n sendToReadHandler(\"DISCONNECTED\");\n }", "@Override\n\tprotected void start() {\n\t\tif (Cfg.DEBUG) {\n\t\t\tCheck.log(TAG + \" (actualStart)\");\n\t\t}\n\t\treadChatMessages();\n\t}", "public void start() {\n\t\t\n\t\ttry {\n\t\t\tmainSocket = new DatagramSocket(PORT_NUMBER);\n\t\t}\n\t\tcatch(SocketException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\t\n\t\t//Lambda expression to shorten the run method\n\t\tThread serverThread = new Thread( () -> {\n\t\t\tlisten();\n\t\t});\n\t\t\n\t\tserverThread.start();\n\t}", "public void run() {\n\t\ttry {\n\t\t\tout = new PrintWriter(client.getOutputStream(), true);\n\t\t\tin = new BufferedReader(new InputStreamReader(client.getInputStream()));\n\t\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\t\ts.getMessage(this, inputLine);\n\t\t\t\tSystem.out.println(inputLine);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Couldn't get I/O for the connection to host\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\t}", "public void run(){\n\t\t\n\t\twhile(true){\n\t\t\ttry {\n\t\t\t\tSocket s = listener.accept();\n\t\t\t\tnew ServerConnection(chatServ, s).start();\n\t\t\t\t\n\t\t\t} catch (IOException e) {\n\t\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn; // stop listening\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void run()\n {\n while (true) {\n if (isReadyToStop && (buffer.poll() == null)) {\n System.out.println(\"Thread stop\");\n producerClient.close();\n return;\n }\n try {\n Message msg = buffer.poll(config.getBufferPollTimeout());\n if (msg == null) {\n // ignore it\n continue;\n }\n System.out.println(\"Sent out: [\" + msg + \"]\");\n if (msg.getTopic().isPresent()) {\n String topic = msg.getTopic().get();\n Optional<Function<String, Integer>> function = funcMapBuffer.get(topic);\n function.ifPresent(stringLongFunction -> {\n int fiberId = stringLongFunction.apply(msg.getKey());\n msg.setFiberId(fiberId);\n producerClient.send(topic, fiberId, msg);\n });\n // else ignore this message\n }\n // else ignore this message\n }\n catch (InterruptedException ignored) {\n // if poll nothing, enter next loop\n }\n }\n }", "@Override\n public void run() {\n //System.out.println(\"TCPReceiver is running\");\n logger.debug(\"TCPReceiver is running\");\n //receivePackage(DataHandler.inQueue);\n while (true){\n try {\n socket = serverSocket.accept();\n multiReceivePackage(this.inQueue);\n } catch (Exception e) {\n //System.out.println(\"[\" + Thread.currentThread().getName() + \"] Receiver 线程内出错。\");\n logger.error(\"[\" + Thread.currentThread().getName() + \"] Receiver 线程内出错。\");\n e.printStackTrace();\n }\n }\n\n\n }", "@Override\n public void run() {\n try {\n socket = new Socket(\"192.168.0.165\", 2000);\n out = new PrintWriter(socket.getOutputStream());\n in = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n ReadThread readThread = new ReadThread();\n readThread.start();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n boolean done = false;\n\n while (!done) {\n if (message != null) {\n try {\n out.print(message);\n out.flush();\n message = null;\n } catch (Exception e) {\n e.printStackTrace();\n try {\n socket.close();\n in.close();\n out.close();\n done = true;\n } catch (IOException d) {\n e.printStackTrace();\n }\n }\n }\n }\n disconnect();\n }", "@Override\n public void run() {\n try {\n boolean autoFlush = true;\n fromClient = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));\n toClient = new PrintWriter(clientSocket.getOutputStream(), autoFlush);\n } catch (IOException ioe) {\n throw new UncheckedIOException(ioe);\n }\n for (String entry : communicationWhenStarting) {\n sendMsg(entry);\n }\n while (connected) {\n try {\n Message msg = new Message(fromClient.readLine());\n updateClientAction(msg);\n } catch (IOException ioe) {\n disconnectClient();\n throw new MessageException(ioe);\n }\n }\n }", "public void run() {\n\n\t\tinitListen(new OnReceivedListener() {\n\t\t\t@Override\n\t\t\tpublic void onReceived() throws Exception {\n\n\t\t\t\tmSocket.receive(new DatagramPacket(mQuickBuffer, mQuickBuffer.length));\n\t\t\t\tPacket packet = (Packet) deserialization(mQuickBuffer);\n\t\t\t\tif (packet.isAck()) {\n\t\t\t\t\tSR.updateBufferSlotTimerSender(packet.getSeq(), BufferSlotTimer.ACKED);\n\t\t\t\t\tSR.output.append(\"(S) - Acknowledgment for Packet \" + packet.getSeq() + \" has been Received \\n\");\n\t\t\t\t\tSR.updateBaseSnd();\n\t\t\t\t\tSR.getBufferSlotTimerSender(packet.getSeq()).stopTimerTimeout();\n\t\t\t\t\tSR.output.append(\"(S) - Timer for Packet \" + packet.getSeq() + \" has been stopped \\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "@Override\r\n\tpublic void run() {\r\n\t\t\r\n\t\tLog.d(TAG, \"begin ConnectedThread job\");\r\n\t\t\r\n\t\t// Receive buffer\r\n\t\tbyte[] buffer = new byte[256];\r\n\t\t// Amount of bytes read from InputStream\r\n\t\tint length = 0;\r\n\t\t\r\n\t\twhile(running){\r\n\t\t\t\r\n\t\t\ttry{\r\n\t\t\t\t\r\n\t\t\t\t// Read available bytes from InputStream\r\n\t\t\t\tlength = oInStream.read(buffer);\r\n\t\t\t\t\t\t\r\n\t\t\t\t// Report the obtained bytes to the ConnectedListener\r\n\t\t\t\tif(oListener != null){\r\n\t\t\t\t\toListener.onReceive(buffer, length);\r\n\t\t\t\t}\r\n\t\t\t}catch(IOException e){\r\n\t\t\t\t\r\n\t\t\t\tLog.e(TAG, \"disconnected\", e);\r\n\t\t\t\t\r\n\t\t\t\t// Stop job\r\n\t\t\t\trunning = false;\r\n\t\t\t\t\r\n\t\t\t\t// Report this connection lose to the ConnectedListener \r\n\t\t\t\tif(oListener != null){\r\n\t\t\t\t\toListener.onDisconnect();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\tsuper.run();\r\n\t\tString str;\r\n\t\ttry {\r\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(\r\n\t\t\t\t\tsocket.getInputStream()));\r\n\r\n\t\t\twhile ((str = reader.readLine()) != null) {\r\n\t\t\t\tString[] msg = str.split(\",\");\r\n\t\t\t\tSystem.out.println(\"The message contents:\" + str);\r\n\t\t\t\twordDisp.setText(msg[0]);\r\n\t\t\t\tSystem.out.println(\"Message[0]\" + msg[0]);\r\n\t\t\t\tmessage.setText(msg[1].toUpperCase());\r\n\t\t\t\tSystem.out.println(\"Message[1]\" + msg[1]);\r\n\t\t\t\tattempts.setText(\"REMAINING: \" + msg[2]);\r\n\t\t\t\tSystem.out.println(\"Message[2]\" + msg[2]);\r\n\t\t\t\tscore.setText(\"SCORE: \" + msg[3]);\r\n\t\t\t\tSystem.out.println(\"Message[3]\" + msg[3]);\r\n\t\t\t}\r\n\t\t\tsocket.close();\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 void run() {\n\t\t// System.out.println(\"ReplyLogListener running\");\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tchimeraRead();\n\t\t\t} catch (IOException e) {\n\t\t\t\tlogger.info(\"UCSF Chimera has exited: \"+e.getMessage());\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "public void onStart() {\n\t\tnew Thread() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tinitConnection();\n\t\t\t\treceive();\n\t\t\t}\n\t\t}.start();\n\t}", "void start(Channel channel, Object msg);", "public void run() {\n readFromClient();\n }", "@Override\n public void run() {\n try {\n //create a socket using sever name or IP and port\n socket = new Socket(serverName, serverPort);\n // set up stream\n start();\n //if everything is good, enable controls on GUI\n send.setEnabled(true); // setup buttons\n tf.setEnabled(true);\n connect.setEnabled(false);\n //catch execeptions if any\n } catch (UnknownHostException uhe) {\n display(\"Host unknown: \" + uhe.getMessage()); // Alert not the right host/ IP\n } catch (IOException ioe) {\n display(\"Unexpected exception: \" + ioe.getMessage());\n }\n //keep listening to incoming messages\n while (true) { // the infinite loop\n try {\n while (!bufferInput.ready()) { // when steam ready to read\n }\n String output = bufferInput.readLine(); // Received the data from socket\n while (output != null) \n {append(output + \"\\n\");\n output = bufferInput.readLine();} } \n catch (IOException ioe) {ioe.getMessage();}\t\n \t\t\t}\t\t }", "public void ListenThread() \n {\n Thread t = new Thread(new IncomingReader(writer, reader));\n t.start();\n \n }", "@Override\r\n public void run() {\r\n byte[] buffer = new byte[1024];\r\n int bytes;\r\n int times = 0;\r\n\r\n while (!mStopped) {\r\n try {\r\n if (times == 0) {\r\n try {\r\n \t// Sometimes lag occurs. Therefore, from time to time\r\n \t// we just ignore a large chunk of data from input stream\r\n \t// in order to synchronize the communication.\r\n mInputStream.skip(1024000);\r\n } catch (Exception e) {}\r\n times = LAG_CUT_TIMEOUT;\r\n }\r\n times--;\r\n\r\n // Read from socket and send to the handler\r\n bytes = mInputStream.read(buffer);\r\n mReceiveHandler.receiveData(buffer, bytes);\r\n\r\n } catch (IOException ioe) {\r\n Log.e(Common.TAG, \"Error receiving from the socket: \" + ioe.getMessage());\r\n mPeer.communicationErrorOccured();\r\n break;\r\n }\r\n }\r\n }", "@Override\n public void run() {\n android.os.Process.setThreadPriority(android.os.Process.THREAD_PRIORITY_BACKGROUND);\n try {\n try {\n selector = Selector.open();\n channel = SocketChannel.open();\n channel.configureBlocking(false);\n channel.register(selector, SelectionKey.OP_CONNECT);\n channel.connect(new InetSocketAddress(HOSTNAME, PORT));\n\n } catch (IOException e) {\n new IOException(\"Connection failed. Hostname : \" + HOSTNAME + \", port : \" + PORT, e).printStackTrace();\n }\n\n while (!Thread.interrupted()) {\n selector.select();\n Iterator<SelectionKey> keys = selector.selectedKeys().iterator();\n\n while (keys.hasNext()) {\n SelectionKey key = keys.next();\n keys.remove();\n\n if (!key.isValid()) {\n continue;\n }\n if (key.isConnectable()) {\n connect(key);\n }\n if (key.isReadable()) {\n String str = read(key);\n /*if(!str.equals(score)) {\n String nonStrange = str.replaceAll(\"\\\\p{Cntrl}\", \"\"); // gets rid of special character (diamond question mark)\n score = Integer.valueOf(nonStrange);\n Score();\n }*/\n Log.d(\"Received a message\", str);\n }\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n close();\n }\n }", "public void run(){\n\tSystem.out.println(\"ServerListenerThread started!\");\n\t\t\t\twhile (parent.isWorking)\n\t\t\t\t{\n\n\t\t\t\t\tint t=0;\n\t\t\t\t\tString user = null,message=null;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tt =Integer.parseInt(parent.inputStream.readLine());\n\t\t\t\t\t\tuser=parent.inputStream.readLine();\n\t\t\t\t\t\tmessage=parent.inputStream.readLine();\n\t\t\t\t\t\tif(t==MessageType.WILL)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSystem.out.println(\">\"+user+\" wants to play!\");\n\t\t\t\t\t\t\tparent.parent.addWaiter(parent,user);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(t==MessageType.PRIVATE || t==MessageType.MOVE)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSystem.out.println(\"Inside message from: \"+user);\n\t\t\t\t\t\t\tparent.parent.sendPlayed(t,user,message);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tparent.parent.sendMessage(t, user, message);\n\t\t\t\t\t\t\tif(!parent.socket.isConnected())break;\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\n\t\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t//System.out.println(\"Recevied a message from: \"+user+\": \"+message);\n\n\t\t\t\t}\n\t\t\t//END\n\t\t\tsynchronized(this)\n\t\t\t{\n\t\t\t\ttry {\n\t\t\t\t\tparent.inputStream.close();\n\t\t\t\t\tparent.outputStream.close();\n\t\t \tparent.socket.close();\n\t\t \tSystem.out.println(\"ServerListenerThread closed!\");\n\t\t }\n\t\t catch (IOException e) {\n\t\t e.printStackTrace();\n\t\t }\n\t\t\t}\n}", "public void run() {\n\t\t\tPrintWriter out = null;\n\t\t\ttry {\n\n\t\t\t\t/*\n\t\t\t\t * byte[] buf = new byte[2048]; DatagramPacket packet = new\n\t\t\t\t * DatagramPacket(buf, buf.length);\n\t\t\t\t * System.out.print(\"Server: Receiving\\n\");\n\t\t\t\t * incomingUDP.receive(packet);\n\t\t\t\t * \n\t\t\t\t * System.out.print(\"Receiving successful packet with :\" +\n\t\t\t\t * packet.getLength() + \"kb\");\n\t\t\t\t */\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\n\t\t\t\tout = new PrintWriter(new OutputStreamWriter(\n\t\t\t\t\t\tincoming.getOutputStream()));\n\n\t\t\t\t// inform the server of this new client\n\t\t\t\tServerNMS.this.addClient(out);\n\n\t\t\t\tout.print(\"Welcome to AndyChat! \");\n\t\t\t\tout.println(\"Enter BYE to exit.\");\n\t\t\t\tout.flush();\n\n\t\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(\n\t\t\t\t\t\tincoming.getInputStream()));\n\t\t\t\tfor (;;) {\n\t\t\t\t\tString msg = in.readLine();\n\t\t\t\t\tif (msg == null) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (msg.trim().equals(\"BYE\"))\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tSystem.out.println(\"Received: \" + msg\n\t\t\t\t\t\t\t\t+ \"With size is: \" + msg.getBytes().length\n\t\t\t\t\t\t\t\t+ \"bytes\");\n\t\t\t\t\t\t// broadcast the receive message\n\t\t\t\t\t\tServerNMS.this.broadcast(msg);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tincoming.close();\n\n\t\t\t\tServerNMS.this.removeClient(out);\n\t\t\t} catch (Exception e) {\n\t\t\t\tif (out != null) {\n\t\t\t\t\tServerNMS.this.removeClient(out);\n\t\t\t\t}\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "private void ccListenerStarter(){\n\t\t\t\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\t//spin off new ccListener\n\t\t\t\t\n\t\t\t\tThread listenerThread = new Thread(\n\t\t\t\t\t\tnew ClientCommunicatorListener(\n\t\t\t\t\t\t\t\tccSocket.getInputStream(), db, this));\n\t\t\t\t\n\t\t\t\tlistenerThread.start();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t} catch (IOException e) {\n\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}", "public void run()\r\n {\r\n \tsynchronized(Ipoki.this)\r\n \t{\r\n \t\t_messageToSend = _messageEdit.getText();\r\n \t}\r\n MessageScreen.this.close();\r\n }", "@Override\n public void run() {\n if (_running) {\n return;\n }\n _running = true;\n\n byte[] buf = new byte[8192];\n DatagramPacket dp = new DatagramPacket(buf, buf.length);\n\n //to enable stopping of receive\n try {\n _listenSocket.setSoTimeout(1000);\n } catch (SocketException ex) {\n ex.printStackTrace();\n// Logger.getLogger(NetworkNode.class.getName()).log(Level.SEVERE, \"Error in starting network node\", ex);\n }\n\n while (_running) {\n try {\n //System.out.println(_listenSocket.getLocalSocketAddress() + \"->\" + _listenSocket.getRemoteSocketAddress());\n _listenSocket.receive(dp);\n handlePacket(dp);\n } catch (SocketTimeoutException e) {\n // listen timeout. do nothing.\n } catch (Exception ex) {\n ex.printStackTrace();\n// Logger.getLogger(NetworkNode.class.getName()).log(Level.SEVERE, \"Error in receiving packet in network node\", ex);\n }\n }\n System.out.println(\"Listen thread finished!\");\n _runningThread = null;\n }", "public void run() {\r\n\t\ttry {\r\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\r\n\t\t\twhile (!isInterrupted()) {\r\n\t\t\t\tString message = in.readLine();\r\n\t\t\t\tmOut.println(message);\r\n\t\t\t\tmOut.flush();\r\n\t\t\t}\r\n\t\t} catch (IOException ioe) {\r\n\t\t\t// Communication is broken\r\n\t\t}\r\n\t}", "@Override\r\n\t\tpublic void run() {\n\t\t\twhile (socket != null && !socket.isClosed()) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tbInputStream.read(rbyte);\r\n\t\t\t\t\t\tMessage msg = new Message();\r\n\t\t\t\t\t\tmsg.what = 1;\r\n\t\t\t\t\t\tmsg.obj = rbyte;\r\n\t\t\t\t\t\treHandler.sendMessage(msg);\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\t\t\t\t}\r\n\t\t}", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\twhile (true) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tinput = new DataInputStream(socket.getInputStream());\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttry {\n\n\t\t\t\t\t\t\twhile (input != null) {\n\t\t\t\t\t\t\t\tsynchronized (this) {\n\t\t\t\t\t\t\t\t\tdecode(input.readUTF());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\tSystem.exit(1);\n\t\t\t\t\t\t\te.printStackTrace();\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}", "public void toThread() {\n\t\t// TODO Auto-generated method stub\n\t\tnew Thread(this).start();\n\t\tclient.start();\n\t}", "@Override\n\tpublic void run() {\n try {\n while (true) {\n Socket socket = listener.accept();\n try {\n \t\n\t\t\t\t\tDataInputStream in = new DataInputStream(\n\t\t\t\t\t\t\tsocket.getInputStream());\n\t\t\t\t\tBufferedReader d = new BufferedReader(\n\t\t\t\t\t\t\tnew InputStreamReader(in));\n\n\t\t\t\t\tString msg = d.readLine();\n\t\t\t\t\t\n third.notifyAllClients(msg);\n \n d.close();\n in.close();\n } finally {\n socket.close();\n }\n }\n } catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n finally {\n try {\n\t\t\t\tlistener.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n }\n\t}", "@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\tServerSocket servClient = new ServerSocket(9090);\n\t\t\tSocket client;\n\t\t\tString id, msg;\n\t\t\tPackageToSend packageReceived;\n\t\t\twhile(true) {\n\t\t\t\tclient = servClient.accept();\n\t\t\t\tObjectInputStream inStream = \n\t\t\t\t\t\tnew ObjectInputStream(\n\t\t\t\t\t\t\t\tclient.getInputStream());\n\t\t\t\tpackageReceived = (PackageToSend) inStream.readObject();\n\t\t\t\tid = packageReceived.getId();\n\t\t\t\tmsg = packageReceived.getMsg();\n\t\t\t\tthis.textArea.append(id + \": \" + msg + \"\\n\");\n\t\t\t\tinStream.close();\n\t\t\t\tclient.close();\n\t\t\t}\n\t\t} catch (IOException | ClassNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "public void start() throws SocketException {\n serverSocket = new DatagramSocket(port);\n serverThread = new Thread(new Runnable() {\n public void run() {\n\n\n\n try{\n while(true) {\n byte[] receiveBuffer = new byte[BUFFER_SIZE];\n\n DatagramPacket receivePacket = new DatagramPacket(receiveBuffer,BUFFER_SIZE);\n serverSocket.receive(receivePacket);\n\n if(drop()) continue;\n\n String receiveString = new String(receivePacket.getData());\n receiveString = trim(receiveString);\n\n\n UUID uuid = Message.getUUIDFromMessageString(receiveString);\n int timestamp = Message.getTimestampFromMessageString(receiveString);\n int type = Message.getTypeFromMessageString(receiveString);\n int port = Message.getPortFromMessageString(receiveString);\n MachineInfo.MachineState state = Message.getStateFromMessageString(receiveString);\n\n\n \n\n SocketAddress sa = receivePacket.getSocketAddress();\n String[] address = sa.toString().split(\":\");\n if(address[0].startsWith(\"/\")) {\n address[0] = address[0].substring(1);\n }\n\n MachineInfo machineInfo = new MachineInfo(address[0], port);\n machineInfo.setUUID(uuid).setTimestamp(timestamp).setState(state);\n\n EventMessage em = null;\n \n if(type == 0 ) { // join message\n if(DistributedMachine.isContactServer()) {\n machineInfo.setStateConnected();\n em = new EventMessage(EventMessage.EventType.Join);\n em.setMachineInfo(machineInfo);\n }\n logger.info(\"Received a join message\");\n } else if(type == 1) { //leave message\n em = new EventMessage(EventMessage.EventType.Leave);\n em.setMachineInfo(machineInfo);\n logger.info(\"Received a leave message\");\n } else if(type == 2) { //sync message\n em = new EventMessage(EventMessage.EventType.Sync);\n em.setMemberList(Message.getMemberListfromMessageString(receiveString));\n em.setMachineInfo(machineInfo);\n logger.info(\"Received a sync message\");\n } else if(type == 3) { //ping message\n em = new EventMessage(EventMessage.EventType.Ping);\n em.setMachineInfo(machineInfo);\n logger.info(\"Received a ping\");\n } else if(type == 4) { //receive pingack\n em = new EventMessage(EventMessage.EventType.Ping_ACK);\n em.setMachineInfo(machineInfo);\n logger.info(\"Received a pingack\");\n }\n \n else if (type == -1){\n logger.error(\"Receive an unknown type message\");\n }\n\n if(em != null) {\n eventMessageQueue.add(em);\n }\n\n\n logger.info(\"Receive \" + receiveString);\n// System.out.println();\n// System.out.println(receiveString);\n// System.out.print(\">\");\n }\n } catch(Exception ex) {\n logger.info(ex.toString());\n }\n }\n });\n\n serverThread.start();\n }", "@Override\r\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tRecieveSocketOfClient(SocketForClient);\r\n\t\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\t\t// TODO: handle exception\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}", "@Override\n\t\tpublic void run() {\n\t\t\tif (mmDatagramSocket == null)\n\t\t\t\treturn;\n\t\t\t\n\t\t\tif (D) Log.d(TAG, \"UdpConnectionThread is running...\");\n\t\t\tconnected(); // call connected when running\n\t\t\t\n\t\t\tbyte[] buffer = new byte[UDP_PACKET_BUFFER_SIZE];\n\t\t\tDatagramPacket packet;\n\t\t\twhile (true) {\n\t\t\t\tpacket = new DatagramPacket(buffer, buffer.length);\n\t\t\t\ttry {\n\t\t\t\t\tmmDatagramSocket.receive(packet);\n\t\t\t\t\t// get ip address from packet\n\t\t\t\t\trecipientIpAddress = packet.getAddress().getHostAddress();\n\t\t\t\t\tif (D) Log.i(TAG, \"UDP packet received from \" + recipientIpAddress);\n\t\t\t\t\t\n\t\t\t\t\t// copy data from buffer\n\t\t\t\t\tbyte[] data = new byte[packet.getLength()];\n\t\t\t\t\tSystem.arraycopy(packet.getData(), 0, data, 0, data.length);\n\t\t\t\t\tparseMessage(data, data.length);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tconnectionTerminated();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public void startRunning(){\n\t\ttry{\n\t\t\tserver = new ServerSocket(6789, 100);\n\t\t\t//int Port Number int 100 connections max (backlog / queue link)\n\t\t\twhile(true){\n\t\t\t\ttry{\n\t\t\t\t\twaitForConnection();\n\t\t\t\t\tsetupStreams();\n\t\t\t\t\twhileChatting();\n\t\t\t\t\t//connect and have conversation\n\t\t\t\t}catch(EOFException eofe){\n\t\t\t\t\tshowMessage(\"\\n Punk Ass Bitch.\");\n\t\t\t\t}finally{\n\t\t\t\t\tcloseChat();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}catch(IOException ioe){\n\t\t\tioe.printStackTrace();\n\t\t\t\n\t\t}\n\t}", "public void run()\n\t{\n\t\t// while we have this stream\n\t\twhile(m_keyboardStream != null)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// only if someone is requesting us to read do we do so...\n\t\t\t\tif (m_keyboardReadRequest)\n\t\t\t\t{\n\t\t\t\t\t// block on keyboard input and put it onto the end of the queue\n\t\t\t\t\tString s = m_keyboardStream.readLine();\n\t\t\t\t\tm_keyboardInput.add(s);\n\n\t\t\t\t\t// fullfilled request, now notify blocking thread.\n\t\t\t\t\tm_keyboardReadRequest = false;\n\t\t\t\t\tsynchronized(this) { notifyAll(); }\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\ttry { Thread.sleep(50); } catch(InterruptedException ie) {}\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n//\t\t\t\tio.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void run()\n\t\t{\twhile(true)\n\t\t\t{\tString s = ChatServer.message.get();\n\t\t\t\tsynchronized(ChatServer.sessions)\n\t\t\t\t{\tfor(int i = 0; i < ChatServer.size; ++i)\n\t\t\t\t\t\tif(ChatServer.sessions[i] != null)\n\t\t\t\t\t\t\tChatServer.sessions[i].println(s);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "@Override\r\n\tpublic void run() {\n\t\ttry {\r\n\t\t\t\r\n\t\t\twhile(true) {\r\n\t\t\t\tInputStreamReader isr = new InputStreamReader(socket.getInputStream(),\"UTF-8\");\r\n\t\t\t\tBufferedReader br = new BufferedReader(isr);\r\n\t\t\tString buffer =br.readLine();\r\n\t\t\tString meg=\"\";\r\n\t\t\tint cnt=1;\r\n\t\t\t\r\n\t\t\tif(buffer == EXIT) {\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\twhile((buffer=br.readLine()) !=null) {\r\n\t\t\t\t\tif(buffer.equals(\"STOP\")) {}\r\n\t\t\t\t\tmeg = meg+ buffer;\r\n\t\t\t\t\tcnt++;\r\n\t\t\t\t\t}\r\n\t\t\t\tf.setText(meg);\r\n\t\t\t\tf.refresh();\r\n\t\t\t}\r\n\t\t\tisr.close();\r\n\t\t\tbr.close();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch (UnsupportedEncodingException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "void sendStartMessage();", "void sendStartMessage();", "@Override\n public void run() {\n if (this.clientInterfaceTCP.getConnected())\n this.clientInterfaceTCP.sendString(this.messageToSend);\n }", "public void run() {\n\t\ttry {\n\t\t\tObjectInputStream in = new ObjectInputStream(socket.getInputStream());\n\t\t\treceivedPacket = (Packet) in.readObject();\n this.handleReceivedPacket(receivedPacket);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (ClassNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "@Override\n public void run() {\n Message message = new Message();\n message.what=1;\n handler.sendMessage(message);\n }", "@Override\n public void run() {\n Message message = mHandler.obtainMessage(1);\n mHandler.sendMessage(message);\n }", "@Override\n public void run() {\n message.synchronizedInstance();\n }", "@Override\n\tpublic void run() {\n\t\twhile (!stopThread) {\n\t\t\ttry {\n\t\t\t\t//String outputMessage = mmInStream.available() + \" bytes available\";\n\t\t\t\t//Log.i(TAG, outputMessage);\n\t\t\t\t// Read from the InputStream\n\t\t\t\twhile (mmInStream.available() > 0) {\n\n\t\t\t\t\tsynchronized (buffer) {\n\t\t\t\t\t\tif (bufferLast == buffer.length) {\n\t\t\t\t\t\t\tbyte temp[] = new byte[bufferLast << 1];\n\t\t\t\t\t\t\tSystem.arraycopy(buffer, 0, temp, 0, bufferLast);\n\t\t\t\t\t\t\tbuffer = temp;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbuffer[bufferLast++] = (byte) mmInStream.read();\n\t\t\t\t\t}\n\t\t\t\t\tbtSerialEvent();\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\tLog.e(TAG, e.getMessage());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "@Override\n\t\t\t\tpublic void run() {\n\n\t\t\t\t\ttry{\n\t\t\t\t\t\tLog.d(\"Lavish\",\"Receive Thread running\");\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\trecSocket= new ServerSocket(5570);\n\t\t\t\t\t\t\n\t\t\t\t\twhile(runningFlag==1){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tclient_speak=recSocket.accept();\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 // connect to the server\n\t\t\t\t\t//final DataOutputStream rdos=new DataOutputStream(recSocket.getOutputStream());\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t rdis=new DataInputStream(client_speak.getInputStream());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tqueue=rdis.readUTF();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tLog.e(\"I Got\",\"Data:\"+queue);\n\t\t\t\t\t//Toast.makeText(gh.getApplicationContext(), \"Read kar liya\", Toast.LENGTH_LONG).show();\n\n\t\t\t\t\trunOnUiThread(new Runnable() {\n\t\t\t\t\t\t@SuppressWarnings(\"deprecation\")\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif((queue.equals(\"start_speaking\")))\n\t\t\t\t\t\t\t{\t\t\n\t\t\t\t\t\t\t\t\tispeak=1;\t\n\t\t\t\t\t\t\t\t\t\tLog.e(\"Inside got \",\"Data:\"+queue);\n\t\t\t\t\t\t\t\t\t\tqueuePos.setVisibility(View.GONE);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tstartsp.setVisibility(View.VISIBLE);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t/////// Notification starts//////////\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tif(isbackground==1)//&&AudioMainActivity.mainback==0){\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tNotificationManager NM=(NotificationManager)getSystemService(Context.NOTIFICATION_SERVICE);\n\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t\tNotification notify=new Notification(R.drawable.mic_logo_small,\"Classroom Interaction\",System.currentTimeMillis());\n\t\t\t\t\t\t\t\t\t\t\tnotify.flags |= Notification.FLAG_AUTO_CANCEL;\n\t\t\t\t\t\t\t\t\t\t\tIntent nmintent=new Intent(getApplicationContext(),DummyActivity.class);\n\t\t\t\t\t\t\t\t\t\t\t//nmintent.setAction(Intent.ACTION_MAIN);\n\t\t\t\t\t\t\t\t\t\t\t//nmintent.addCategory(Intent.CATEGORY_LAUNCHER);\n\t\t\t\t\t\t\t\t\t\t\tnmintent.setFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);\n\t\t\t\t\t\t\t\t\t\t PendingIntent pending=PendingIntent.getActivity(getApplicationContext(),0, nmintent,0);\n\t\t\t\t\t\t\t\t\t\t notify.setLatestEventInfo(getApplicationContext(),\"Permission Granted\",\"Click to start speaking...\",pending);\n\t\t\t\t\t\t\t\t\t\t NM.notify(0, notify);\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\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t//////////Notification ends///////\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\telse if(queue.equals(\"kick_you\"))\n\t\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\t\tispeak=0;\n\t\t\t\t\t\t\t\tLog.e(\"inside if\", \"inside if block\");\n\t\t\t\t\t\t\t\trunningFlag=0;\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\trecSocket.close();\n\t\t\t\t\t\t\t\t\tLog.e(\"closing\", \"socket closed\");\n\t\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\te.printStackTrace();\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\t\t\n\t\t\t\t\t\t\t\t\tLog.e(\"Inside got \",\"Data:\"+queue);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif(as!=null)\n\t\t\t \t\t\t\t\t\t{as.onWithdrawPress();\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\t\n\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\tfinal Dialog dialog = new Dialog(context);\n\t\t\t\t\t\t\t\t\tdialog.setContentView(R.layout.kickdialog);\n\t\t\t\t\t\t\t\t\tdialog.setTitle(\"OOOPS...\");\n\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t// set the custom dialog components - text, image and button\n\t\t\t\t\t\t\t\t\tTextView text = (TextView) dialog.findViewById(R.id.kicktext);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tButton dialogButton = (Button) dialog.findViewById(R.id.kickok);\n\t\t\t\t\t\t\t\t\t// if button is clicked, close the custom dialog\n\t\t\t\t\t\t\t\t\tdialogButton.setOnClickListener(new OnClickListener() {\n\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t\t\t\t\tfinish();\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 \n\t\t\t\t\t\t\t\t\tdialog.show();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tLog.e(\"inside else\", \"inside else block\");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\tLog.e(\"Inside got \",\"Data:\"+queue);\n\t\t\t\t\t\t\t\t\tqueuePos.setText(\"Your position is \"+queue);\n\t\t\t\t\t\t\t\t\tstartsp.setVisibility(View.GONE);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\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\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\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tcatch(Exception e)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(e.toString());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tfinally\n\t\t\t\t\t{\n\t\t\t\t\t\tLog.e(\"INSIDE FINALLY\",\"HURRAYYYY\");\n\t\t\t\t\t\t//finish();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}", "public void run() {\n // Check if the specified connector is null\n //\n if(this.connector == null) {\n System.out.println(\"[ERROR] connector is null aborting\");\n return;\n }\n\n //\n // Keep reading messages\n //\n while (true) {\n AeMessage inMsg = connector.read();\n if(inMsg == null) {\n System.out.println(\"[ERROR] Received an invalid message\");\n connector.reconnect();\n try {\n Thread.sleep(10000);\n }\n catch(Exception e) {\n }\n }\n else {\n //\n // Reject messages over two minutes old\n //\n if(inMsg.checkMessageOlderThan(120) == 1) {\n System.out.println(\"[INFO] Message has expired: \" + inMsg.toString());\n }\n else if(inMsg.getMessageType().equals(\"22\")) {\n System.out.println(\"[INFO] Received message:\" + inMsg.toString());\n if(messageStore.reportMessage(inMsg)) {\n System.out.println(\"[INFO] Successfully added message to the store\");\n }\n else {\n System.out.println(\"[ERROR] Failed to add message to the store\");\n }\n }\n }\n }\n }", "@Override\n\tpublic void run() {\n\t\tsuper.run();\n\t\twhile(isrun&&handler!=null){\n\t\t\ttry {\n\t\t\t\tMessage msg=handler.obtainMessage(timeupdate, new Date());\n\t\t\t\thandler.sendMessage(msg);\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tbyte[] receive = new byte[1];\n\n\t\t\t\t\tDatagramSocket stopSocket = new DatagramSocket(35000);\n\t\t\t\t\tDatagramPacket stopPacket = new DatagramPacket(receive,\n\t\t\t\t\t\t\treceive.length);\n\t\t\t\t\twhile (true) {\n\t\t\t\t\t\tstopSocket.receive(stopPacket);\n\t\t\t\t\t\ttalkingName.setText(\"\");\n\t\t\t\t\t\tif (iname != -1) {\n\t\t\t\t\t\t\tb[iname].setBackground(Color.BLUE);\n\t\t\t\t\t\t\tstatus = false;\n\t\t\t\t\t\t\tstatusPanel.repaint();\n\t\t\t\t\t\t\tre();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t} catch (SocketException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\twhile (true) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\treMsg = withClient.getInputStream();\r\n\t\t\t\t\t\tbyte[] reBuffer = new byte[500];\r\n\t\t\t\t\t\treMsg.read(reBuffer);\r\n\t\t\t\t\t\tString msg = new String(reBuffer);\r\n\t\t\t\t\t\tmsg = msg.trim();\r\n\t\t\t\t\t\tif (msg.indexOf(\"/bye\") == 0) {\r\n\t\t\t\t\t\t\tendCat();\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tAnalysis.ckMsg(mySin, msg);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\tendCat();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t}", "public void init() {\r\n\t\ttry {\r\n\t\t\tmessages = new ConcurrentLinkedDeque<>();\r\n\t\t\tout = sock.getOutputStream();\r\n\t\t\tin = sock.getInputStream();\t\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tstartMessageThread();\r\n\t}", "private void startInThread() {\n final Client fthis = this;\n if (in != null && in.isAlive()) in.interrupt();\n in = new Thread(() -> {\n while (true) {\n if (client.isClosed()) break;\n try {\n InputStream inFromServer = client.getInputStream();\n if (inFromServer.available() > 0) {\n String l = (char) inFromServer.read() + \"\";\n while (!l.endsWith(\"\\r\")) {\n l += (char) inFromServer.read() + \"\";\n }\n l = l.replace(\"\\r\", \"\");\n runPacketEvent(new ClientPacketEvent(fthis, PacketType.CLIENT_RECEIVE, l));\n }\n } catch (Exception e) {\n e.printStackTrace();\n break;\n }\n }\n });\n in.start();\n }", "@Override\n public void run() {\n\n startPingTimer();\n String read = \"\";\n\n try {\n while ((read = in.readLine()) != null){\n\n //System.out.println(\"[CLIENT] Received: \" + read);\n messageHandler(read);\n\n }\n closeConnection();\n\n }catch (IOException e){\n\n System.out.println(\"[CLIENT] \" + e.getMessage());\n System.out.println(\"[CLIENT] Connection closed.\");\n\n }\n\n }", "public void run() {\n\t\ttry {\n\t\t\tinternalSocket = new Socket(\"localhost\", getPort());\n\t\t\tin = new ObjectInputStream(socket.getInputStream());\n\n\t\t\tinternalOut = new ObjectOutputStream(\n\t\t\t\t\tinternalSocket.getOutputStream());\n\t\t} catch (IOException e1) {\n\t\t\tconsoleOut(MESSAGE_ERROR_EXEC);\n\t\t\treturn;\n\t\t}\n\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tString message = in.readUTF();\n\n\t\t\t\t// take message and redirect this message to\n\t\t\t\t// second console\n\t\t\t\tsendMessage(message);\n\n\t\t\t\tif (message.equalsIgnoreCase(\"bye\")) {\n\t\t\t\t\tclose();\n\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t} catch (Exception efEx) {\n\t\t\t\tconsoleOut(MESSAGE_ERROR_EXEC);\n\t\t\t\ttry {\n\t\t\t\t\tclose();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tconsoleOut(MESSAGE_ERROR_EXEC);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "public void run() {\r\n\t\tSystem.out.println(\"Welcome \" + this.name);\r\n\r\n\t\ttry {\r\n\t\t\tPrintWriter out_stream = new PrintWriter(this.client.getOutputStream());\r\n\t\t\tInputStream in_stream = this.client.getInputStream();\r\n\t\t\tScanner in = new Scanner(in_stream);\r\n\r\n\t\t\twhile(!this.client.isClosed()) {\r\n\t\t\t\tif (in_stream.available() > 0 && in.hasNextLine()) {\r\n\t\t\t\t\tif(board.getpt().equals(\"B\")){\r\n\t\t\t\t\t\t//board.incBlackScore();\r\n\t\t\t\t\t\tboard.resetpt();\r\n\t\t\t\t\t} else if (board.getpt().equals(\"W\")){\r\n\t\t\t\t\t\t//board.incWhiteScore();\r\n\t\t\t\t\t\tboard.resetpt();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tString line = in.nextLine();\r\n\t\t\t\t\t\tint index = line.indexOf(\" \");\r\n\t\t\t\t\t\tint x = Integer.parseInt(line.substring(0, index));\r\n\t\t\t\t\t\tint y = Integer.parseInt(line.substring(index + 1));\r\n\t\t\t\t\t\tboard.newmove(x , y);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (!this.messages.isEmpty()) {\r\n\t\t\t\t\tString next = null;\r\n\t\t\t\t\tsynchronized(this.messages) {\r\n\t\t\t\t\t\tnext = (String) this.messages.pop();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tout_stream.println(next);\r\n\t\t\t\t\tout_stream.flush();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (IOException var8) {\r\n\t\t\tvar8.printStackTrace();\r\n\t\t}\r\n\t}" ]
[ "0.7462802", "0.7175917", "0.7153672", "0.708345", "0.7018747", "0.6986291", "0.6967367", "0.696143", "0.69524926", "0.6937341", "0.68699455", "0.68499964", "0.6848412", "0.6834038", "0.6832755", "0.68228674", "0.68134534", "0.67993975", "0.6797674", "0.67858374", "0.67616487", "0.6755236", "0.6754257", "0.6739922", "0.6734565", "0.67212343", "0.6710488", "0.67064846", "0.6705207", "0.67039126", "0.66973144", "0.66792727", "0.6669968", "0.66687554", "0.6667971", "0.66630393", "0.66591245", "0.66438353", "0.6632277", "0.66091573", "0.6595675", "0.65926", "0.6590824", "0.65902555", "0.6586982", "0.656508", "0.6564408", "0.65536726", "0.6552932", "0.65348727", "0.6532815", "0.6514621", "0.65122694", "0.65028816", "0.6498056", "0.64954036", "0.64940023", "0.6479482", "0.6477707", "0.6473174", "0.64534026", "0.6451792", "0.64428544", "0.64406407", "0.6420997", "0.64168197", "0.6394001", "0.63917613", "0.637909", "0.6378182", "0.63707334", "0.63622165", "0.6349479", "0.63460594", "0.63439554", "0.63437843", "0.6340409", "0.6338814", "0.6336659", "0.6322471", "0.6319756", "0.6318702", "0.63171977", "0.6313487", "0.6313487", "0.6309472", "0.62904465", "0.6289071", "0.6287763", "0.62795645", "0.62654495", "0.6263597", "0.6261156", "0.62603074", "0.6259313", "0.6256401", "0.6256326", "0.6254346", "0.6248805", "0.62463534", "0.62446404" ]
0.0
-1
/ Prints tree vertically which actually looks like tree 8 6 7 5 3 2 1
void printTree(Node root, int space) { if(root == null) return; printTree(root.right, space + 5); for(int i=0; i<space; i++) System.out.print(" "); System.out.print(root.data); System.out.println(); printTree(root.left, space + 5); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void tree()\n\t{\n\t\tIterable<Position<FileElement>> toPrint = fileSystem.PreOrder();\n\t\tfor (Position<FileElement> p : toPrint)\n\t\t{\n\t\t\tint depth = fileSystem.getDepth(p);\n\t\t\tfor (int i = 0; i < depth; i++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println(p.getValue());\n\t\t}\n\t}", "public static String printTree()\n {\n \tString tree = \"\";\n ArrayList<String> letters = converter.toArrayList();\n for(int i = 0; i < letters.size(); i++)\n {\n tree += letters.get(i);\n if(i + 1 < letters.size())\n \t tree += \" \";\n }\n \n return tree;\n }", "public static String printTree()\r\n {\r\n String result = \"\";\r\n for (String s: tree.toArrayList())\r\n result = result + \" \" + s;\r\n return result;\r\n }", "public String printTree() {\n printSideways();\n return \"\";\n }", "public void printTree() {\n Object[] nodeArray = this.toArray();\n for (int i = 0; i < nodeArray.length; i++) {\n System.out.println(nodeArray[i]);\n }\n }", "public void displayTree()\r\n {\r\n Stack globalStack = new Stack();\r\n globalStack.push(root);\r\n int nBlanks = 32;\r\n boolean isRowEmpty = false;\r\n System.out.println(\r\n \"......................................................\");\r\n while(isRowEmpty==false)\r\n {\r\n Stack localStack = new Stack();\r\n isRowEmpty = true;\r\n\r\n for(int j=0; j<nBlanks; j++)\r\n System.out.print(' ');\r\n\r\n while(globalStack.isEmpty()==false)\r\n {\r\n Node temp = (Node)globalStack.pop();\r\n if(temp != null)\r\n {\r\n if((temp.getStoredChar()) != '\\u0000'){\r\n System.out.print(\"{\"+temp.getStoredChar() + \",\" + temp.getFrequency()+\"}\");\r\n \r\n }\r\n else{\r\n System.out.print(\"{_,\"+ temp.getFrequency()+\"}\");\r\n \r\n }\r\n localStack.push(temp.getLeftChild());\r\n localStack.push(temp.getRightChild());\r\n\r\n if(temp.getLeftChild() != null ||\r\n temp.getRightChild() != null)\r\n isRowEmpty = false;\r\n }\r\n else\r\n {\r\n System.out.print(\"-\");\r\n localStack.push(null);\r\n localStack.push(null);\r\n }\r\n for(int j=0; j<nBlanks*2-2; j++)\r\n System.out.print(' ');\r\n } // end while globalStack not empty\r\n System.out.println();\r\n nBlanks /= 2;\r\n while(localStack.isEmpty()==false)\r\n globalStack.push( localStack.pop() );\r\n } // end while isRowEmpty is false\r\n System.out.println(\r\n \"......................................................\");\r\n System.out.println(\"\");\r\n }", "public void prettyPrintTree() {\r\n\t\tSystem.out.print(\"prettyPrintTree starting\");\r\n\t\tfor (int i = 0; i <= this.getTreeDepth(); i++) {\r\n\t\t\tprettyPrintTree(root, 0, i);\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}", "private ArrayList<T> printBSTree(Node<T> u) {\n\n\t\tArrayList<T> breadth = constructTree(u); // very wasteful\n\t\tconstructBSTree(u); // very wasteful\n\t\tSystem.out.println(breadth);\n\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"CAUTION: horizontal positions are correct only relative to each other\");\n\n\t\tfor (int i = 1; i < pT.size(); i++) {\n\t\t\tSystem.out.printf(\"d = %3d: \", i - 1);\n\t\t\tint theSize = pT.get(i).size();\n\t\t\tint baseWidth = 90;\n\t\t\tString thePadding = CommonSuite.stringRepeat(\" \",\n\t\t\t\t\t(int) ((baseWidth - 3 * theSize) / (theSize + 1)));\n\t\t\tfor (int j = 0; j < theSize; j++)\n\t\t\t\tSystem.out.printf(\"%s%3s\", thePadding, pT.get(i).get(j));\n\t\t\tSystem.out.println();\n\t\t}\n\t\treturn breadth;\n\t}", "public void printLevelOrder(Node tree){\n\t\tint h = height(tree);\n\t\tSystem.out.println(\"The height is \"+ h);\n\t\tfor(int i=1;i<=h;i++){\n\t\t\tprintGivenLevel(tree, i);\n\t\t}\n\t}", "void printLevelOrder() {\n TreeNode2 nextLevelRoot = this;\n while (nextLevelRoot != null) {\n TreeNode2 current = nextLevelRoot;\n nextLevelRoot = null;\n while (current != null) {\n System.out.print(current.val + \" \");\n if (nextLevelRoot == null) {\n if (current.left != null)\n nextLevelRoot = current.left;\n else if (current.right != null)\n nextLevelRoot = current.right;\n }\n current = current.next;\n }\n System.out.println();\n }\n }", "public void printBSTree(Node<T> u) {\n\t\tpT = new ArrayList<ArrayList<String>>();\n\n\t\tint n = 0;\n\t\tconstructBSTPTree(u, n);\n\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"NOTE: positions are only correct for (a) depth or (b) horizontal position,\");\n\t\tSystem.out.println(\" but not both at the same time.\");\n\t\tSystem.out.println();\n\n\t\tfor (int i = 1; i < pT.size(); i++) {\n\t\t\tSystem.out.printf(\"d %3d: \", i-1);\n\t\t\tint theSize = pT.get(i).size();\n\t\t\tint baseWidth = 90;\n\t\t\tString thePadding = CommonSuite.stringRepeat(\" \",\n\t\t\t\t\t(int) ((baseWidth - 3 * theSize) / (theSize + 1)));\n\t\t\tfor (int j = 0; j < theSize; j++)\n\t\t\t\tSystem.out.printf(\"%s%3s\", thePadding, pT.get(i).get(j));\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "private static List<Integer> printTree(Tree tree, List values){\n int height = heightOfTree(tree);\n\n for(int i=1;i<=height;i++) {\n System.out.println(\"\");\n printTreeInLevel(tree, i, values);\n }\n return values;\n}", "public void printTree() {\r\n printTree(overallRoot, 0);\r\n }", "public void printTree() {\n printTreeHelper(root);\n }", "public static String printTree(Tree t) {\n\tStringWriter sw = new StringWriter();\n\tPrintWriter pw = new PrintWriter(sw);\n\tTreePrint tp = new TreePrint(\"penn\", \"markHeadNodes\", tlp);\n\ttp.printTree(t, pw);\n\treturn sw.toString();\n }", "void printLevelOrder() {\n\t\tint h = height(root);\n\t\tint i;\n\t\tfor (i = h; i >= 1; i--)\n\t\t\tprintGivenLevel(root, i);\n\t}", "public void printTree(Node n) {\r\n\t\tif( !n.isNil ) {\r\n\t\t\tSystem.out.print(\"Key: \" + n.key + \" c: \" + n.color + \" p: \" + n.p + \" v: \"+ n.val + \" mv: \" + n.maxval + \"\\t\\tleft.key: \" + n.left.key + \"\\t\\tright.key: \" + n.right.key + \"\\n\");\r\n\t\t\tprintTree(n.left);\r\n\t\t\tprintTree(n.right);\r\n\t\t}\r\n\t}", "@Override\n public void printTree() {\n System.out.println(\"node with char: \" + this.getChar() + \" and key: \" + this.getKey());\n int i = 0;\n for(IABTNode node : this.sons) {\n if(!node.isNull()) {\n System.out.print(\"Son \" + i + \" :\");\n node.printTree();\n }\n i++;\n }\n }", "void printLevel()\r\n\t {\r\n\t int h = height(root);\r\n\t int i;\r\n\t for (i=1; i<=h+1; i++)\r\n\t printGivenLevel(root, i);\r\n\t }", "public void printLevelOrder() {\r\n\t\tif (isEmpty()) {\r\n\t\t\tSystem.out.println(\"Empty Tree\");\r\n\t\t} else {\r\n\t\t\tQueueLi<BinaryNode<AnyType>> q = new QueueLi<>();\r\n\t\t\tBinaryNode<AnyType> currentNode;\r\n\t\t\tq.enqueue(root);\r\n\t\t\twhile (!q.isEmpty()) {\r\n\t\t\t\tcurrentNode = q.dequeue();\r\n\t\t\t\tif (currentNode.left != null) {\r\n\t\t\t\t\tq.enqueue(currentNode.left);\r\n\t\t\t\t} // if\r\n\t\t\t\tif (currentNode.right != null) {\r\n\t\t\t\t\tq.enqueue(currentNode.right);\r\n\t\t\t\t} // if\r\n\t\t\t\tSystem.out.print(currentNode.element + \" \");\r\n\t\t\t} // while\r\n\t\t} // else\r\n\t}", "public void printTree(){ \n System.out.format(\"The suffix tree for S = %s is: %n\",this.text); \n this.print(0, this.root); \n }", "public void printTree() {\n\t\tSystem.out.println(printHelp(root));\r\n\t\t\r\n\t}", "@Test\n public void visualiseTree()\n {\n System.out.println(avlTree.toString());\n }", "private void printTreeLevel(AvlNode<E> node){\n if(node == null){\n System.out.print(\"\");\n return;\n }\n Queue<AvlNode<E>> queue = new Queue<AvlNode<E>>();\n queue.enqueue(node);\n while(!queue.isEmpty()){\n AvlNode<E> currentNode = queue.dequeue();\n\n System.out.print(currentNode.value);\n System.out.print(\" \");\n\n if(currentNode.left != null)\n queue.enqueue(currentNode.left);\n if(currentNode.right != null)\n queue.enqueue(currentNode.right);\n }\n }", "private void showTree(EarleyParser.Node root,int level, String previous) {\n\t\tSystem.out.print(level);\n\t\tfor(int i = 0; i <= level; i++)\n\t\t\tSystem.out.print(\" \");\n\t\tSystem.out.println(root.text);\n\t\tString cur = root.text;\n\t\twhile(graph.containsVertex(cur)) {\n\t\t\tcur = cur + \" \";\n\t\t}\n\n\t\tgraph.addVertex(cur);\n\t\tif(previous != null) {\n\t\t\tgraph.addEdge(edgeid++, previous, cur);\n\t\t}\n\t\tfor(EarleyParser.Node sibling : root.siblings) {\n\t\t\tshowTree(sibling, level+1, cur);\n\t\t}\n\t}", "protected void printTree(){\n if (this.leftNode != null){\n leftNode.printTree();\n }\n System.out.println(value);\n\n if (this.rightNode != null){\n rightNode.printTree();\n }\n }", "String printtree(Nod n, int increment) {\n\t\tString s = \" \";\n\t\tString inc = \" \";\n\t\tfor (int i = 0; i < increment; i++) {\n\t\t\tinc += \" \";\n\t\t}\n\t\ts = inc + n.cuvant + \" \" + n.pozitii.toString();\n\t\tfor (Nod fru : n.frunze) {\n\t\t\tif (fru.cuvant.equals(\"%\") != true)\n\t\t\t\ts += \"\\n\" + fru.printtree(fru, increment + indent);\n\t\t}\n\t\treturn s;\n\t}", "public void printTrees(List<T> trees, int lineWidth) {\n List<List<TreeLine>> allTreeLines = new ArrayList<>();\n int[] treeWidths = new int[trees.size()];\n int[] minLeftOffsets = new int[trees.size()];\n int[] maxRightOffsets = new int[trees.size()];\n for (int i = 0; i < trees.size(); i++) {\n T treeNode = trees.get(i);\n List<TreeLine> treeLines = buildTreeLines(treeNode);\n allTreeLines.add(treeLines);\n minLeftOffsets[i] = minLeftOffset(treeLines);\n maxRightOffsets[i] = maxRightOffset(treeLines);\n treeWidths[i] = maxRightOffsets[i] - minLeftOffsets[i] + 1;\n }\n\n int nextTreeIndex = 0;\n while (nextTreeIndex < trees.size()) {\n // print a row of trees starting at nextTreeIndex\n\n // first figure range of trees we can print for next row\n int sumOfWidths = treeWidths[nextTreeIndex];\n int endTreeIndex = nextTreeIndex + 1;\n while (endTreeIndex < trees.size() && sumOfWidths + colGap + treeWidths[endTreeIndex] < lineWidth) {\n sumOfWidths += (colGap + treeWidths[endTreeIndex]);\n endTreeIndex++;\n }\n endTreeIndex--;\n\n // find max number of lines for tallest tree\n int maxLines = allTreeLines.stream().mapToInt(List::size).max().orElse(0);\n\n // print trees line by line\n for (int i = 0; i < maxLines; i++) {\n for (int j = nextTreeIndex; j <= endTreeIndex; j++) {\n List<TreeLine> treeLines = allTreeLines.get(j);\n if (i >= treeLines.size()) {\n System.out.print(spaces(treeWidths[j]));\n } else {\n int leftSpaces = -(minLeftOffsets[j] - treeLines.get(i).leftOffset);\n int rightSpaces = maxRightOffsets[j] - treeLines.get(i).rightOffset;\n System.out.print(spaces(leftSpaces) + treeLines.get(i).line + spaces(rightSpaces));\n }\n if (j < endTreeIndex) System.out.print(spaces(colGap));\n }\n System.out.println();\n }\n\n for (int i = 0; i < rowGap; i++) {\n System.out.println();\n }\n\n nextTreeIndex = endTreeIndex + 1;\n }\n }", "public static void display(Node root){\r\n String str = \"[\"+root.data+\"] -> \";\r\n for(Node child : root.children){\r\n str += child.data + \", \";\r\n }\r\n System.out.println(str + \" . \");\r\n \r\n for(int i=0; i<root.children.size(); i++){\r\n Node child = root.children.get(i);\r\n display(child);\r\n }\r\n }", "public static void printTree(Node head) {\r\n System.out.println(\"Binary Tree:\");\r\n printInOrder(head, 0, \"H\", 17);\r\n System.out.println();\r\n }", "public void display() {\n ITree.Node root = this.createNode(0);\n TreePrinter.printNode(root);\n }", "void printZigZagTraversal() {\n\n\t\t// if null then return\n\t\tif (rootNode == null) {\n\t\t\treturn;\n\t\t}\n\n\t\t// declare two stacks\n\t\tStack<ZNode> currentLevel = new Stack<>();\n\t\tStack<ZNode> nextLevel = new Stack<>();\n\n\t\t// push the root\n\t\tcurrentLevel.push(rootNode);\n\t\tboolean leftToRight = true;\n\n\t\t// check if stack is empty\n\t\twhile (!currentLevel.isEmpty()) {\n\n\t\t\t// pop out of stack\n\t\t\tZNode node = currentLevel.pop();\n\n\t\t\t// print the data in it\n\t\t\tSystem.out.print(node.data + \" \");\n\n\t\t\t// store data according to current\n\t\t\t// order.\n\t\t\tif (leftToRight) {\n\t\t\t\tif (node.leftChild != null) {\n\t\t\t\t\tnextLevel.push(node.leftChild);\n\t\t\t\t}\n\n\t\t\t\tif (node.rightChild != null) {\n\t\t\t\t\tnextLevel.push(node.rightChild);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (node.rightChild != null) {\n\t\t\t\t\tnextLevel.push(node.rightChild);\n\t\t\t\t}\n\n\t\t\t\tif (node.leftChild != null) {\n\t\t\t\t\tnextLevel.push(node.leftChild);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (currentLevel.isEmpty()) {\n\t\t\t\tleftToRight = !leftToRight;\n\t\t\t\tStack<ZNode> temp = currentLevel;\n\t\t\t\tcurrentLevel = nextLevel;\n\t\t\t\tnextLevel = temp;\n\t\t\t}\n\t\t}\n\t}", "@Override\n public String toString() { // display subtree in order traversal\n String output = \"[\";\n LinkedList<Node<T>> q = new LinkedList<>();\n q.add(this);\n while(!q.isEmpty()) {\n Node<T> next = q.removeFirst();\n if(next.leftChild != null) q.add(next.leftChild);\n if(next.rightChild != null) q.add(next.rightChild);\n output += next.data.toString();\n if(!q.isEmpty()) output += \", \";\n }\n return output + \"]\";\n }", "public void printTree() {\r\n\t\tif (isEmpty())\r\n\t\t\tSystem.out.println(\"Empty tree\");\r\n\t\telse\r\n\t\t\tprintTree(root);\r\n\t}", "static void printTree(AbstractNode root) throws IOException {\n if (root == null) {\n return;\n }\n System.out.println(root.toString());\n if(root.getTypeNode() == 0) {\n ConscellNode nextNode = (ConscellNode)root;\n printTree(nextNode.getFirst());\n printTree(nextNode.getNext());\n }\n }", "public static void main(String[] args) {\n offer_60_Print test = new offer_60_Print();\n TreeNode t = test.new TreeNode(1);\n t.left = test.new TreeNode(2);\n t.right = test.new TreeNode(3);\n t.left.left = test.new TreeNode(4);\n t.left.left.right = test.new TreeNode(9);\n t.left.left.right.left = test.new TreeNode(10);\n t.left.left.right.right = test.new TreeNode(11);\n t.left.right = test.new TreeNode(5);\n t.right.left = test.new TreeNode(6);\n t.right.right = test.new TreeNode(7);\n test.Print(t);\n }", "public void printTopView() {\r\n\t\tfinal ArrayList<Integer> nodeDataList = new ArrayList<>();\r\n\r\n\t\tgetLeftChildren(rootNode.left, nodeDataList);\r\n\t\tnodeDataList.add(rootNode.data);\r\n\t\tgetRightChildren(rootNode.right, nodeDataList);\r\n\r\n\t\tSystem.out.println(\"Printing Top View\");\r\n\r\n\t\tnodeDataList.forEach(nodeData -> {\r\n\t\t\tSystem.out.print(nodeData + \" \");\r\n\t\t});\r\n\t}", "public void printTree() {\r\n\t if (expressionRoot == null) {\r\n\t return;\r\n\t }\r\n if (expressionRoot.right != null) {\r\n printTree(expressionRoot.right, true, \"\");\r\n }\r\n System.out.println(expressionRoot.data);\r\n if (expressionRoot.left != null) {\r\n printTree(expressionRoot.left, false, \"\");\r\n }\r\n }", "private void printTree(AvlNode<E> node){\n if(node != null){\n printTree(node.left);\n System.out.print(node.value);\n System.out.print(\" \");\n printTree(node.right);\n }\n }", "@Override\r\npublic void Display(int depth) {\n\tSystem.out.println(\"-\"+depth);\r\n children.forEach(com->com.Display(depth+2));\r\n }", "private void printTree(TreeNode root, boolean isRight, String indent){\r\n if (root.right != null) {\r\n printTree(root.right, true, indent + (isRight ? \" \" : \" | \"));\r\n }\r\n System.out.print(indent);\r\n if (isRight) {\r\n System.out.print(\" /\");\r\n } else {\r\n System.out.print(\" \\\\\");\r\n }\r\n System.out.print(\"----- \");\r\n System.out.println(root.data);\r\n if (root.left != null) {\r\n printTree(root.left, false, indent + (isRight ? \" | \" : \" \"));\r\n }\r\n }", "void printLevelOrder(Node root)\n {\n int h = height(root);\n int i;\n for (i=1; i<=h; i++)\n printGivenLevel(root, i);\n }", "private void printTree(OutputStreamWriter out, boolean isRight, String indent) throws IOException {\n\t if (right != null) {\n\t right.printTree(out, true, indent + (isRight ? \" \" : \" | \"));\n\t }\n\t out.write(indent);\n\t if (isRight) {\n\t out.write(\" /\");\n\t } else {\n\t out.write(\" \\\\\");\n\t }\n\t out.write(\"----- \");\n\t printNodeValue(out);\n\t if (left != null) {\n\t left.printTree(out, false, indent + (isRight ? \" | \" : \" \"));\n\t }\n\t }", "@Override\r\n public String toString() {\r\n Queue<List<Node>> queue = new LinkedList<List<Node>>();\r\n queue.add(Arrays.asList(root));\r\n StringBuilder sb = new StringBuilder();\r\n while (!queue.isEmpty()) {\r\n Queue<List<Node>> nextQueue = new LinkedList<List<Node>>();\r\n while (!queue.isEmpty()) {\r\n List<Node> nodes = queue.remove();\r\n sb.append('{');\r\n Iterator<Node> it = nodes.iterator();\r\n while (it.hasNext()) {\r\n Node node = it.next();\r\n sb.append(node.toString());\r\n if (it.hasNext())\r\n sb.append(\", \");\r\n if (node instanceof BPTree.InternalNode)\r\n nextQueue.add(((InternalNode) node).children);\r\n }\r\n sb.append('}');\r\n if (!queue.isEmpty())\r\n sb.append(\", \");\r\n else {\r\n sb.append('\\n');\r\n }\r\n }\r\n queue = nextQueue;\r\n }\r\n return sb.toString();\r\n }", "private void showTree(Node root) {\r\n int currentDepth = 0;\r\n int leftBorder = sourceCodeDistance;\r\n int nrOfNodesInTree = countNodes(root);\r\n HashMap<String, Node> nMap = new HashMap<String, Node>();\r\n nMap = fillNodeMap(root, nMap);\r\n\r\n Queue<Node> queue = new LinkedList<Node>();\r\n queue.add(root);\r\n while (!queue.isEmpty()) {\r\n Node node = queue.poll();\r\n if (currentDepth != node.getDepth()) {\r\n leftBorder = calculateLeftBorder(true, node, nrOfNodesInTree, nMap);\r\n currentDepth++;\r\n }\r\n int x;\r\n int y = (nodeSize + leafPositionY) * node.getDepth();\r\n\r\n if (node.isLeaf()) {\r\n x = leftBorder;\r\n } else {\r\n int totalWidth = (nodeSize + leafPositionX) * node.getLeafCount()\r\n - leafPositionX;\r\n\r\n x = (totalWidth / 2) + leftBorder - (nodeSize / 2);\r\n }\r\n drawNodes(x, y, node);\r\n\r\n if (node.isLeaf()) {\r\n leftBorder += calculateLeftBorder(false, node, nrOfNodesInTree, nMap);\r\n } else {\r\n leftBorder += (nodeSize + leafPositionX) * node.getLeafCount();\r\n }\r\n queue.addAll(node.getChildren());\r\n }\r\n }", "private void printTree( BinaryNode<AnyType> t )\r\n\t{\r\n\t\tif( t != null )\r\n\t\t{\t\t\t\r\n\t\t\tprintTree( t.left );\r\n\t\t\tSystem.out.print( t.element+\" \");\r\n\t\t\tprintTree( t.right );\r\n\t\t}\r\n\t}", "void printLevelOrder() \n { \n int h = height(this); \n int i; \n for (i=1; i<=h; i++) \n printGivenLevel(this, i); \n }", "public void print() {\n\t\tSystem.out.println(\"DECISION TREE\");\n\t\tString indent = \" \";\n\t\tprint(root, indent, \"\");\n\t}", "public void print() {\n System.out.println();\n for (int level = 0; level < 4; level++) {\n System.out.print(\" Z = \" + level + \" \");\n }\n System.out.println();\n for (int row = 3; row >= 0; row--) {\n for (int level = 0; level < 4; level++) {\n for (int column = 0; column < 4; column++) {\n System.out.print(get(column, row, level));\n System.out.print(\" \");\n }\n System.out.print(\" \");\n }\n System.out.println();\n }\n System.out.println();\n }", "public void print_root(){\r\n\t\tfor(int id = 0; id < label.length; id++){\r\n\t\t\tSystem.out.printf(\"\"%d \"\", find(id));\r\n\t\t}\r\n\t\tSystem.out.printf(\"\"\\n\"\");\r\n\t}", "public String toString(){\n String str = \"\";\n for(int i = level; i>0; i--){\n str+=\"\\t\";\n }\n str += getClass().toString();\n if(noOfChildren != 0){\n str+=\" containing\\n\";\n for (int i = 0; i<this.noOfChildren; i++)\n str += getChild(i).toString();\n }\n else{\n str+=\"\\n\";\n }\n return str;\n }", "public void printTree( )\r\n\t{\r\n\t\tif( isEmpty( ) )\r\n\t\t\tSystem.out.println( \"Empty tree\" );\r\n\t\telse\r\n\t\t\tprintTree( root );\r\n\t}", "public void print(){\n if (isLeaf){\n for(int i =0; i<n;i++)\n System.out.print(key[i]+\" \");\n System.out.println();\n }\n else{\n for(int i =0; i<n;i++){\n c[i].print();\n System.out.print(key[i]+\" \");\n }\n c[n].print();\n }\n }", "public void printNode(){\r\n // make an appropriately lengthed array of formatting\r\n // to separate rows/space coordinates\r\n String[] separators = new String[puzzleSize + 2];\r\n separators[0] = \"\\n((\";\r\n for (int i=0; i<puzzleSize; i++)\r\n separators[i+1] = \") (\";\r\n separators[puzzleSize+1] = \"))\";\r\n // print the rows\r\n for (int i = 0; i<puzzleSize; i++){\r\n System.out.print(separators[i]);\r\n for (int j = 0; j<puzzleSize; j++){\r\n System.out.print(this.state[i][j]);\r\n if (j<puzzleSize-1)\r\n System.out.print(\" \");\r\n }\r\n }\r\n // print the space's coordinates\r\n int x = (int)this.space.getX();\r\n int y = (int)this.space.getY();\r\n System.out.print(separators[puzzleSize] + x + \" \" + y + separators[puzzleSize+1]);\r\n }", "private static void printTreeInLevel(Tree tree, int level, List<Integer> values){\n if(tree == null)\n return;\n\n if(level == 1){\n System.out.print(tree.data+\" \");\n values.add(tree.data);\n }\n\n else{\n printTreeInLevel(tree.left, level-1,values);\n printTreeInLevel(tree.right, level-1,values);\n }\n}", "private void printTree(IntTreeNode root, int level) {\r\n if (root != null) {\r\n printTree(root.right, level + 1);\r\n for (int i = 0; i < level; i++) {\r\n System.out.print(\" \");\r\n }\r\n System.out.println(root.data);\r\n printTree(root.left, level + 1);\r\n }\r\n }", "public void levelOrderTraversal(TreeNode root){\n int height = height(root);\n for(int i = 0; i <=height; i++){\n System.out.println();\n printNodesInLevel(root,i);\n }\n }", "static void postorderPrint(TreeNode node) {\n if (node == null)\n return;\n\n Iterator iter = node.getChildren().iterator();\n while (iter.hasNext()) {\n postorderPrint((TreeNode) iter.next());\n }\n System.out.print(\" \" + node.data);\n }", "public String makeTree() {\r\n // Create a stack to store the files/directories in the tree\r\n Stack<DirectoryTreeNode> itemStack = new Stack<>();\r\n // Initialize a string variable to store the tree diagram\r\n String tree = \"\";\r\n // Push the root directory into the stack\r\n itemStack.push(this.rootDir);\r\n\r\n // Loop through the items in the Stack until all the items have been\r\n // traversed (this is similar to the pre-order traversal of the tree)\r\n while (!itemStack.isEmpty()) {\r\n // Get the item on the top of the stack and store it in current\r\n DirectoryTreeNode current = (DirectoryTreeNode) itemStack.pop();\r\n // Get the number of tabs required in the output for this item\r\n int numTabs = this.getNumberOfAncestors((E) current);\r\n // Get the string of tabs needed to put before current's name\r\n String tabs = this.getNumberOfTabs(numTabs);\r\n // Add the required number of tabs, the current item's of name and a\r\n // newline\r\n tree += tabs + current.getName() + \"\\n\";\r\n\r\n // Check if current is a Directory (in which case it may have\r\n // sub directories and files)\r\n if (current instanceof Directory) {\r\n // Get the list of files and directories of current directory\r\n ArrayList<DirectoryTreeNode> contents =\r\n ((Directory) current).getContents();\r\n // Loop through the contents of current and add them to the stack\r\n for (int i = contents.size() - 1; i >= 0; i--) {\r\n itemStack.add(contents.get(i));\r\n }\r\n }\r\n }\r\n // Return the generated tree diagram\r\n return tree;\r\n }", "public AvlTree<E> printTree(){\n printTree(root);\n return this;\n }", "private void printSideways(IntTreeNode root, int level) {\n if (root != null) {\n printSideways(root.right, level + 1);\n for (int i = 0; i < level; i++) {\n System.out.print(\" \");\n } \n }\n }", "private void printTree(Tree parse) {\n \t\tparse.pennPrint();\n \t}", "public void printTree(){\n if(root!=null) // มี node ใน tree\n {\n super.printTree(root); // ปริ้นโดยส่ง node root ไป static fn\n }\n else\n {\n System.out.println(\"Empty tree!!!\");\n }\n }", "public void levelOrderPrint() {\n\t\tlevelOrderPrint(root);\n\t}", "private void printTree(BinaryNode<AnyType> t) {\r\n\t\tif (t != null) {\r\n\t\t\tprintTree(t.left);\r\n\t\t\tSystem.out.println(t.element);\r\n\t\t\tprintTree(t.right);\r\n\t\t}\r\n\t}", "static void printAllInterpretations(int[] arr) {\n\n // Step 1: Create Tree\n Node root = createTree(0, \"\", arr);\n\n // Step 2: Print Leaf nodes\n printleaf(root);\n\n System.out.println(); // Print new line\n }", "void Print() {\r\n\r\n AVLTreeNode node = root;\r\n\r\n printInorder(node);\r\n\r\n }", "public void printTree(T root) {\n List<TreeLine> treeLines = buildTreeLines(root);\n printTreeLines(treeLines);\n if(flush) outStream.flush();\n }", "public static void display(TreeNode t, int level)\n {\n if(t == null)\n return;\n\n display(t.getRight(), level + 1); //recurse right\n\n for(int k = 0; k < level; k++)\n System.out.print(\"\\t\");\n System.out.println(t.getValue());\n\n display(t.getLeft(), level + 1); //recurse left\n }", "static void preorderPrint(TreeNode node) {\n if (node == null)\n return;\n\n System.out.print(\" \" + node.data);\n Iterator iter = node.getChildren().iterator();\n while (iter.hasNext()) {\n preorderPrint((TreeNode) iter.next());\n }\n }", "private void printInOrder(TreeNode N) {\n\t\tSystem.out.print(\"(\");\n\t\tif (N!=null) {\n\t\t\tprintInOrder(N.getLeftChild());\n\t\t\tSystem.out.print(N.getIsUsed());\n\t\t\tprintInOrder(N.getRightChild());\n\n\t\t}\n\t\tSystem.out.print(\")\");\n\t}", "private String recursiveDescription(int withTabCount) {\n String indent = \"\";\n for (int i = 0; i < withTabCount; i++) {\n indent += \"\\t\";\n }\n\n String result = indent + toString() + \"\\n\";\n if (hasChildren) {\n for (QuadtreeNode node : children) {\n result += node.recursiveDescription(withTabCount + 1);\n }\n }\n\n return result;\n }", "public void printSideways() {\n if (overallRoot == null) {\n System.out.println(\"empty tree\");\n } else {\n printSideways(overallRoot, 0);\n }\n }", "void printNode() {\n\t\tint j;\n\t\tSystem.out.print(\"[\");\n\t\tfor (j = 0; j <= lastindex; j++) {\n\n\t\t\tif (j == 0)\n\t\t\t\tSystem.out.print (\" * \");\n\t\t\telse\n\t\t\t\tSystem.out.print(keys[j] + \" * \");\n\n\t\t\tif (j == lastindex)\n\t\t\t\tSystem.out.print (\"]\");\n\t\t}\n\t}", "private void printTree(File directory, int level, Environment env) {\n\t\tfor (int i = 0; i < level; i++) {\n\t\t\tenv.write(\" \"); // shift output\n\t\t}\n\n\t\tif (directory.isDirectory()) {\n\t\t\tenv.writeln(\"[\" + directory.getName() + \"]\");\n\t\t\t\n\t\t\t\n\t\t\tFile[] children = directory.listFiles();\n\t\t\t\n\t\t\tif(children != null) {\n\t\t\t\tfor (File file : children) {\n\t\t\t\t\tprintTree(file, level + 1, env);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tenv.writeln(directory.getName()); // print file name\n\t\t}\n\t}", "public void printNodes(){\n for(int i =0; i<n;i++)\n System.out.print(key[i]+\" \");\n System.out.println(isLeaf);\n if (!isLeaf){\n for(int i =0; i<=n;i++){\n c[i].printNodes();\n }\n }\n }", "public Git.Tree displayTree(String h) {\n return displayTree(h, \"root\", null); \n }", "private void _printPreorder(IntTreeNode root) {\n if (root != null) {\n System.out.print(\" \" + root.data);\n _printPreorder(root.left);\n _printPreorder(root.right);\n }\n }", "public void printRightView(){\n \n if(root == null)\n return;\n\n // Take a queue and enqueue root and null\n // every level ending is signified by null\n // since there is just one node at root we enqueue root as well as null\n // take a bool value printed = false\n Queue<Node<T>> queue = new LinkedList<>();\n queue.add(root);\n queue.add(null);\n Node<T> lastVal = null;\n\n while(queue.size() != 0){\n Node<T> node = queue.remove();\n if(node != null){\n\n // keep track of last node and dont print it\n lastVal = node;\n\n // Enqueue left and right child if they exist\n if(node.left != null)\n queue.add(node.left);\n if(node.right != null)\n queue.add(node.right);\n }else{\n // print last node\n System.out.println(lastVal.data + \" ,\");\n if(queue.size() == 0)\n break;\n queue.add(null);\n }\n }\n }", "public String printBFSTree(){\n if(root==null)return \"\";\n String binstr=\"\";\n String valuestr=\"\";\n String codestr=\"\";\n LinkedList<HCNode> list=new LinkedList<HCNode>();\n root.code=\"\";\n list.add(root);\n HCNode node;\n while(list.size()>0){\n node=list.getFirst();\n if(node.left==null && node.right==null){\n binstr=binstr+\"0\";\n valuestr=valuestr+((byte)node.str.charAt(0))+\"\\n\";\n codestr=codestr+node.code;\n }else{\n binstr=binstr+\"1\";\n }\n if(node.left!=null){node.left.code=node.left.parent.code+\"0\";list.addLast(node.left);}\n if(node.right!=null){node.right.code=node.right.parent.code+\"1\";list.addLast(node.right);}\n list.removeFirst();\n }\n String res=binstr+\"\\n\"+valuestr+codestr+\"\\n\";\n System.out.println(binstr);\n System.out.print(valuestr);\n System.out.println(codestr);\n return res;\n }", "public String print(int option)\r\n\t{\r\n\t\t// The binary tree hasn't been created yet so no Nodes exist\r\n\t\tif(isEmpty())\r\n\t\t{\r\n\t\t\treturn \"The binary tree is empty!\";\r\n\t\t}\r\n\t\t\r\n\t\t// Create the temporary String array to write the name of the Nodes in\r\n\t\t// and set the array counter to 0 for the proper insertion\r\n\t\tString[] temp = new String[getCounter()]; // getCounter() returns the number of Nodes currently in the Tree\r\n\t\tsetArrayCounter(0);\r\n\t\t\r\n\t\t// Option is passed into the method to determine which traversing order to use\r\n\t\tswitch(option)\r\n\t\t{\r\n\t\t\tcase 0:\r\n\t\t\t\tinorder(temp, getRoot());\r\n\t\t\t\tbreak;\r\n\t\t\tcase 1:\r\n\t\t\t\tpreorder(temp, getRoot());\r\n\t\t\t\tbreak;\r\n\t\t\tcase 2:\r\n\t\t\t\tpostorder(temp,getRoot());\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\t// Create the empty String that will be storing the names of each Node\r\n\t\t// minor adjustment so a newline isn't inserted at the end of the last String\r\n\t\tString content = new String();\r\n\t\tfor(int i = 0; i < temp.length; i++)\r\n\t\t{\r\n\t\t\tif(i == temp.length - 1)\r\n\t\t\t{\r\n\t\t\t\tcontent += temp[i];\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tcontent += temp[i] + \"\\n\";\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn content;\r\n\t}", "private void spiralOrder(Node root) \n { \n \n \tLinkedList<Node> ls = new LinkedList<Node>(); \n \n // Push root \n ls.addLast(root); \n \n // Direction 0 shows print right to left \n // and for Direction 1 left to right \n int dir = 0; \n while (ls.size() > 0) \n { \n int size = ls.size(); \n while (size-->0) \n { \n // One whole level \n // will be print in this loop \n \n if (dir == 0) \n { \n Node temp = ls.peekLast(); \n ls.pollLast(); \n if (temp.right != null) \n ls.addFirst(temp.right); \n if (temp.left != null) \n ls.addFirst(temp.left); \n System.out.print(temp.value + \" \"); \n } \n else \n { \n Node temp = ls.peekFirst(); \n ls.pollFirst(); \n if (temp.left != null) \n ls.addLast(temp.left); \n if (temp.right != null) \n ls.addLast(temp.right); \n System.out.print(temp.value + \" \"); \n } \n } \n System.out.println(); \n \n // Direction change \n dir = 1 - dir; \n } \n }", "private static void printTree(HuffmanNode tree, String direction, FileWriter newVersion) throws IOException {\n\t\tif(tree.inChar != null) {\n\t\t\tnewVersion.write(tree.inChar + \": \" + direction + \" | \" + tree.frequency + System.getProperty(\"line.separator\"));\n\t\t\tresults[resultIndex][0] = tree.inChar;\n\t\t\tresults[resultIndex][1] = direction;\n\t\t\tresults[resultIndex][2] = tree.frequency;\n\t\t\tresultIndex++;\n\t\t}\n\t\telse {\n\t\t\tprintTree(tree.right, direction + \"1\", newVersion);\n\t\t\tprintTree(tree.left, direction + \"0\", newVersion);\n\t\t}\n\t}", "public String toString(){\n //return myString(root);\n printInOrder(root);\n return \"\";\n }", "private String print(BSTNode<T> node, int level) {\r\n\t\tString ret = \"\";\r\n\t\tif(node!= null) {\r\n\t\t\tfor(int i = 0; i< level; i++) {\r\n\t\t\t\tret += \"\\t\";\r\n\t\t\t}\r\n\t\t\tret+= node.data;\r\n\t\t\tret +=\"\\n\";\r\n\t\t\tret += print(node.left, level +1);\r\n\t\t\tret += print(node.right, level+1);\r\n\t\t}\r\n\t\treturn ret;\r\n\t}", "@Test\n public void whenAddNineNodesOnDifferentLevelsThenResultNineNodesFromBottomToTop() {\n tree.addChild(nodeOne, \"1\");\n tree.addChild(new TreeNode(), \"1\");\n tree.addChild(new TreeNode(), \"1\");\n nodeOne.addChild(nodeTwo, \"2\");\n nodeOne.addChild(new TreeNode(), \"2\");\n nodeOne.addChild(new TreeNode(), \"2\");\n nodeTwo.addChild(nodeThree, \"3\");\n nodeTwo.addChild(new TreeNode(), \"3\");\n nodeTwo.addChild(new TreeNode(), \"3\");\n assertThat(tree.getChildren().toString(), is(\"[3, 3, 3, 2, 2, 2, 1, 1, 1]\"));\n }", "private void _printPreorder(IntTreeNode root) {\r\n if (root != null) {\r\n System.out.print(\" \" + root.data);\r\n _printPreorder(root.left);\r\n _printPreorder(root.right);\r\n }\r\n }", "private void displayOutput() {\n\t\tlevel = 2;\n\t\t// Level 1 by default\n\t\ttreeBWLevel1.setIcon(new ImageIcon(ClassLoader.getSystemResource(\"image/treeBW.png\")));\n\t\tJLabel text = new JLabel(firstState.getName());\n\t\ttext.setFont(new Font(\"Serif\", Font.BOLD, 16));\n\t\ttext.setForeground(Color.white);\n\t\ttreeBWLevel1.add(text);\n\n\t\tfirstBlock.setTreeLabel(treeBWLevel1);\n\n\t\tline = new Line2D.Double(550, 975, 100, 200);\n\n\t\t// Since , NFA's are practically never ending, we have kept our\n\t\t// implementation upto 4 levels.\n\t\twhile (level != 5) {\n\t\t\tint parentTreeNo = 0;\n\t\t\tfor (StateBlockTreeNo block : previousBlock) {\n\t\t\t\tint currentLevelCounter = 0;\n\t\t\t\tint temp;\n\t\t\t\tHashMap<StateBlock, ArrayList<TransitionBlock>> list = block.getStateBlock().getStateTransitionList();\n\t\t\t\tfor (Map.Entry<StateBlock, ArrayList<TransitionBlock>> entry : list.entrySet()) {\n\t\t\t\t\tStateBlock key = entry.getKey();\n\t\t\t\t\tArrayList<TransitionBlock> value = entry.getValue();\n\t\t\t\t\tfor (TransitionBlock transitionBlock : value) {\n\n\t\t\t\t\t\tString stateName = \"\" + key.getName().toString();\n\t\t\t\t\t\tJLabel stateNo = new JLabel(stateName);\n\t\t\t\t\t\tstateNo.setFont(new Font(\"Serif\", Font.BOLD, 16));\n\t\t\t\t\t\tstateNo.setForeground(Color.white);\n\t\t\t\t\t\t++currentLevelCounter;\n\t\t\t\t\t\tStateBlockTreeNo stateBlockTreeNo = new StateBlockTreeNo();\n\t\t\t\t\t\tstateBlockTreeNo.setStateBlock(key);\n\t\t\t\t\t\tstateBlockTreeNo.setTreeNo(((block.getTreeNo() - 1) * 3) + currentLevelCounter);\n\t\t\t\t\t\tstateBlockTreeNo.setTreeLabel(labelList.get(new Integer(Integer.toString(level) + Integer.toString(stateBlockTreeNo.getTreeNo()))));\n\t\t\t\t\t\tstateBlockTreeNo.setForestPosition(new Integer(Integer.toString(level) + Integer.toString(stateBlockTreeNo.getTreeNo())));\n\n\t\t\t\t\t\tblock.getTreeConnectionList().put(stateBlockTreeNo, transitionBlock.getName());\n\n\t\t\t\t\t\tint x = labelList.get(new Integer(Integer.toString(level) + Integer.toString(stateBlockTreeNo.getTreeNo()))).getX();\n\t\t\t\t\t\tint y = labelList.get(new Integer(Integer.toString(level) + Integer.toString(stateBlockTreeNo.getTreeNo()))).getY();\n\t\t\t\t\t\tJLabel transitionLabel = new JLabel();\n\t\t\t\t\t\tlabelList.get(new Integer(Integer.toString(level) + Integer.toString(stateBlockTreeNo.getTreeNo()))).setLayout(new FlowLayout(FlowLayout.CENTER));\n\t\t\t\t\t\tlabelList.get(new Integer(Integer.toString(level) + Integer.toString(stateBlockTreeNo.getTreeNo()))).add(stateNo);\n\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t * if (level == 4) { transitionLabel.setBounds(x, y +\n\t\t\t\t\t\t * 40, 30, 30); transitionLabel.setIcon(new\n\t\t\t\t\t\t * ImageIcon(\"image/appleLevel4.png\"))); //\n\t\t\t\t\t\t * labelList.get(new Integer(Integer.toString(level) //\n\t\t\t\t\t\t * + //\n\t\t\t\t\t\t * Integer.toString(stateBlockTreeNo.getTreeNo()))).\n\t\t\t\t\t\t * setIcon(new // ImageIcon(\"image/treeLevel4.png\")));\n\t\t\t\t\t\t * transitionValue.setFont(new Font(\"Serif\", Font.BOLD,\n\t\t\t\t\t\t * 10)); fl.setVgap(10); } else {\n\t\t\t\t\t\t * transitionLabel.setBounds(x + 55, y, 40, 40);\n\t\t\t\t\t\t * transitionLabel.setIcon(new\n\t\t\t\t\t\t * ImageIcon(\"image/apple.png\")));\n\t\t\t\t\t\t * transitionValue.setFont(new Font(\"Serif\", Font.BOLD,\n\t\t\t\t\t\t * 16)); // labelList.get(new\n\t\t\t\t\t\t * Integer(Integer.toString(level) // + //\n\t\t\t\t\t\t * Integer.toString\n\t\t\t\t\t\t * (stateBlockTreeNo.getTreeNo()))).setIcon(new //\n\t\t\t\t\t\t * ImageIcon(\"image/tree.png\"))); fl.setVgap(15); }\n\t\t\t\t\t\t */\n\n\t\t\t\t\t\tJLabel transitionValue = new JLabel();\n\t\t\t\t\t\ttransitionValue = appleLabels.get(Integer.parseInt(block.getTreeLabel().getName() + stateBlockTreeNo.getTreeLabel().getName()));\n\n\t\t\t\t\t\tSystem.out.println(Integer.parseInt(block.getTreeLabel().getName() + stateBlockTreeNo.getTreeLabel().getName()));\n\t\t\t\t\t\tString transitionText = transitionBlock.getName();\n\t\t\t\t\t\ttransitionValue.setFont(new Font(\"Serif\", Font.BOLD, 20));\n\t\t\t\t\t\ttransitionValue.setForeground(Color.WHITE);\n\t\t\t\t\t\ttransitionValue.setText(transitionText);\n\t\t\t\t\t\ttransitionValue.setHorizontalTextPosition(JLabel.CENTER);\n\t\t\t\t\t\ttransitionValue.setVerticalTextPosition(JLabel.CENTER);\n\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t * JLabel transitionValue = new JLabel(transitionText);\n\t\t\t\t\t\t * transitionValue.setForeground(Color.white);\n\t\t\t\t\t\t * FlowLayout fl = new FlowLayout(FlowLayout.CENTER);\n\t\t\t\t\t\t * transitionLabel =\n\t\t\t\t\t\t * appleLabels.get(Integer.parseInt(block\n\t\t\t\t\t\t * .getTreeLabel().getName() +\n\t\t\t\t\t\t * stateBlockTreeNo.getTreeLabel().getName()));\n\t\t\t\t\t\t * transitionValue.setFont(new Font(\"Serif\", Font.BOLD,\n\t\t\t\t\t\t * 16)); transitionLabel.setLayout(fl);\n\t\t\t\t\t\t * transitionLabel.add(transitionValue);\n\t\t\t\t\t\t */\n\n\t\t\t\t\t\tactionPanel.add(transitionValue);\n\n\t\t\t\t\t\tcurrentBlock.add(stateBlockTreeNo);\n\t\t\t\t\t}\n\t\t\t\t\ttemp = currentLevelCounter / 3;\n\t\t\t\t\tcurrentLevelCounter = currentLevelCounter * (temp + 1);\n\t\t\t\t}\n\t\t\t\tparentTreeNo++;\n\t\t\t}\n\t\t\tlevel++;\n\t\t\tpreviousBlock = (ArrayList<StateBlockTreeNo>) currentBlock.clone();\n\t\t\tcurrentBlock.clear();\n\n\t\t}\n\n\t}", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n // int m = sc.nextInt();\n int n = sc.nextInt();\n Tree[] tree = new Tree[n];\n for (int i = 0; i < n; i++) {\n tree[i] = new Tree(i + 1, sc.nextInt());\n }\n // System.out.println(Arrays.toString(tree));\n\n // Arrays.sort(tree,(a,b)->b.num-a.num);\n StringBuilder sb = new StringBuilder();\n int first = 0;\n\n boolean shibai = false;\n\n while (first < n) {\n while (first < n && tree[first].num == 0) {\n first++;\n }\n int idx = first + 1;\n out:\n while (idx < n) {\n while (idx < n && tree[idx].num == 0) {\n idx++;\n\n }\n while (idx < n && first < n && tree[idx].num > 0 && tree[first].num > 0) {\n\n sb.append(tree[first].type)\n .append(\" \")\n .append(tree[idx].type)\n .append(\" \");\n tree[idx].num--;\n tree[first].num--;\n if (tree[first].num == 0) {\n first++;\n break out;\n }\n }\n }\n// System.out.println(Arrays.toString(tree));\n// System.out.println(idx);\n if (idx > n - 1) {\n if (tree[first].num == 0) break;\n if (tree[first].num == 1) {\n sb.append(tree[first].type);\n break;\n } else {\n System.out.println(\"-\");\n shibai = true;\n break;\n }\n }\n }\n\n// while (true){\n// if(tree[0].num==1){\n// sb.append(tree[0].type);\n// break;\n// }\n// if(tree[1].num==0){\n// System.out.println(\"-\");\n// shibai=true;\n// break;\n// }\n// while (tree[1].num>0){\n// sb.append(tree[0].type).append(\" \").append(tree[1].type).append(\" \");\n// tree[0].num--;\n// tree[1].num--;\n// }\n// //System.out.println(sb.toString());\n// // System.out.println(Arrays.toString(tree));\n// // Arrays.sort(tree,(a,b)->b.num-a.num);\n//\n// }\n if (!shibai) {\n System.out.println(sb.toString());\n }\n\n\n }", "void makeTree()\n \t{\n \t\t\t \n \t\tobj.insert(5,\"spandu\");\n \tobj.insert(4,\"anshu\");\n \tobj.insert(3,\"anu\");\n \tobj.insert(6,\"himani\");\n \t\t\n \t}", "public static void printTree(Node root) {\r\n if (root == null)\r\n return;\r\n printTree(root.left);\r\n System.out.print(Integer.toString(root.value) + \" \");\r\n printTree(root.right);\r\n }", "public void printOut() {\n\t\tif(root.left != null) {\n\t\t\tprintOut(root.left);\n\t\t}\n\t\t\n\t\tSystem.out.println(root.element);\n\t\t\n\t\tif(root.right != null) {\n\t\t\tprintOut(root.right);\n\t\t}\n\t}", "public static void levelOrderLinewise3(Node node){\r\n Queue<Node> mainq = new ArrayDeque<>();\r\n \r\n //Adding root in mainq\r\n mainq.add(node);\r\n \r\n while(mainq.size()>0){\r\n \r\n //Size of queue is obtained and then we iterate it for size times, this will ensure for printing for same level\r\n int sz = mainq.size();\r\n \r\n while(sz > 0){\r\n //1. get + remove\r\n Node rem = mainq.remove();\r\n \r\n //2. Print \r\n System.out.print(rem.data + \" \");\r\n \r\n //3. Add children of node to mainq\r\n for(Node child : rem.children){\r\n mainq.add(child);\r\n }\r\n sz--;\r\n } \r\n //Above level completed so print \"Enter\"\r\n System.out.println();\r\n }\r\n }", "public void printLaptops(){\n\t\tSystem.out.println(\"Root is: \"+vertices.get(root));\n\t\tSystem.out.println(\"Edges: \");\n\t\tfor(int i=0;i<parent.length;i++){\n\t\t\tif(parent[i] != -1){\n\t\t\t\tSystem.out.print(\"(\"+vertices.get(parent[i])+\", \"+\n\t\t\tvertices.get(i)+\") \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t\t}", "public void display() {\n\t\ttree.resize(30,50);\n\t\tfor(int i = 650; i > 0; i -= 100) {\t\n\t\t\tt.image(tree,25,i);\n\t\t}\n\t\tfor(int i = 650; i > 0; i -= 100) {\t\n\t\t\tt.image(tree, 575, i);\n\t\t}\n\t}", "public void dumpTree() {\n\t\tsendMessage(\"/g_dumpTree\", new Object[] { 0, 0 });\n\t}", "public void printLeftView(){\n if(root == null)\n return;\n\n // Take a queue and enqueue root and null\n // every level ending is signified by null\n // since there is just one node at root we enqueue root as well as null\n // take a bool value printed = false\n Queue<Node<T>> queue = new LinkedList<>();\n queue.add(root);\n queue.add(null);\n boolean printed = false;\n\n while(queue.size() != 0){\n Node<T> node = queue.remove();\n if(node != null){\n // if the first node is not printed print it and flip the bool value\n if(! printed){\n System.out.println(node.data);\n printed = true;\n }\n\n // add left and right child if they exist\n if(node.left != null)\n queue.add(node.left);\n if(node.right != null)\n queue.add(node.right);\n }else{\n // flip the printed bool value\n // break if the queue is empty else enqueue a null\n printed = false;\n if(queue.size() == 0)\n break;\n queue.add(null);\n }\n }\n }", "public void printTree(TernaryTreeNode root) {\n if (root==null) return;\n printTree(root.left);\n System.out.print(root.data+ \" \");\n printTree(root.right);\n }", "private void printPreorder(IntTreeNode root) {\n if (root != null) {\n System.out.print(\" \" + root.data);\n printPreorder(root.left);\n printPreorder(root.right);\n }\n }", "@Override\n public String print() {\n ArrayList<K> inorderTraverse = inOrdorTraverseBST();\n \n System.out.print(\"In ascending order: \");\n for (int i=0; i<inorderTraverse.size(); i++) {\n System.out.print(inorderTraverse.get(i)+\" \");\n }\n System.out.println(\"\");\n return \"\";\n }" ]
[ "0.80735874", "0.78545153", "0.7737432", "0.7668888", "0.74528605", "0.7301149", "0.7238714", "0.7237574", "0.7188458", "0.7149469", "0.71437687", "0.7070825", "0.7056026", "0.70089406", "0.6991576", "0.69913894", "0.69481945", "0.6925405", "0.692531", "0.69127554", "0.6904109", "0.68515664", "0.680972", "0.6804621", "0.6797989", "0.6792933", "0.6782745", "0.6778392", "0.6774818", "0.67707413", "0.6762873", "0.674936", "0.6699115", "0.6698405", "0.66874754", "0.66555685", "0.6648125", "0.6629404", "0.66248524", "0.66201216", "0.6597877", "0.6596982", "0.65937704", "0.65899736", "0.6569656", "0.65684366", "0.65571165", "0.6553413", "0.6532964", "0.6510288", "0.6479671", "0.64652073", "0.64637685", "0.64545745", "0.64514565", "0.6449508", "0.6444209", "0.64422756", "0.64391065", "0.64384276", "0.6438305", "0.64338946", "0.64279014", "0.6427753", "0.64247", "0.64236367", "0.6417697", "0.64166325", "0.64078075", "0.63936186", "0.6390808", "0.63802165", "0.6370687", "0.6369215", "0.63629496", "0.63406235", "0.63396144", "0.6326147", "0.6320643", "0.6317206", "0.6313616", "0.63128066", "0.6310951", "0.6289333", "0.62785846", "0.6275387", "0.6273623", "0.6272085", "0.62681127", "0.6259558", "0.62583935", "0.62577575", "0.62568206", "0.6253805", "0.62493056", "0.6248242", "0.6247713", "0.6246824", "0.6239644", "0.623491" ]
0.67429984
32
root, root.left, root.right using recursion
void preOrderPrint(Node root, boolean recursion) { if(root == null) return; System.out.print(root.data + " "); preOrderPrint(root.left, true); preOrderPrint(root.right, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void test(){\r\n\t\tTreeNode root = new TreeNode(1); \r\n TreeNode r2 = new TreeNode(2); \r\n TreeNode r3 = new TreeNode(3); \r\n TreeNode r4 = new TreeNode(4); \r\n TreeNode r5 = new TreeNode(5); \r\n TreeNode r6 = new TreeNode(6); \r\n root.left = r2; \r\n root.right = r3; \r\n r2.left = r4; \r\n r2.right = r5; \r\n r3.right = r6;\r\n System.out.println(getNodeNumRec(root));\r\n System.out.println(getNodeNum(root));\r\n System.out.println(getDepthRec(root));\r\n System.out.println(getDepth(root));\r\n System.out.println(\"前序遍历\");\r\n preorderTraversalRec(root);\r\n System.out.println(\"\");\r\n preorderTraversal(root);\r\n System.out.println(\"\");\r\n System.out.println(\"中序遍历\");\r\n inorderTraversalRec(root);\r\n System.out.println(\"\");\r\n inorderTraversal(root);\r\n System.out.println(\"\");\r\n System.out.println(\"后序遍历\");\r\n postorderTraversalRec(root);\r\n System.out.println(\"\");\r\n postorderTraversal(root);\r\n System.out.println(\"分层遍历\");\r\n levelTraversal(root);\r\n System.out.println(\"\");\r\n levelTraversalRec(root);\r\n\t}", "public static void main(String[] args) {\n BinayTree root = new BinayTree();\n root.data = 8;\n root.left = new BinayTree();\n root.left.data = 6;\n root.left.left = new BinayTree();\n root.left.left.data = 5;\n root.left.right = new BinayTree();\n root.left.right.data = 7;\n root.right = new BinayTree();\n root.right.data = 10;\n root.right.left = new BinayTree();\n root.right.left.data = 9;\n root.right.right = new BinayTree();\n root.right.right.data = 11;\n printTree(root);\n System.out.println();\n mirror(root);\n printTree(root);\n // 1\n // /\n // 3\n // /\n // 5\n // /\n // 7\n // /\n // 9\n BinayTree root2 = new BinayTree();\n root2.data = 1;\n root2.left = new BinayTree();\n root2.left.data = 3;\n root2.left.left = new BinayTree();\n root2.left.left.data = 5;\n root2.left.left.left = new BinayTree();\n root2.left.left.left.data = 7;\n root2.left.left.left.left = new BinayTree();\n root2.left.left.left.left.data = 9;\n System.out.println(\"\\n\");\n printTree(root2);\n System.out.println();\n mirror(root2);\n printTree(root2);\n\n // 0\n // \\\n // 2\n // \\\n // 4\n // \\\n // 6\n // \\\n // 8\n BinayTree root3 = new BinayTree();\n root3.data = 0;\n root3.right = new BinayTree();\n root3.right.data = 2;\n root3.right.right = new BinayTree();\n root3.right.right.data = 4;\n root3.right.right.right = new BinayTree();\n root3.right.right.right.data = 6;\n root3.right.right.right.right = new BinayTree();\n root3.right.right.right.right.data = 8;\n System.out.println(\"\\n\");\n printTree(root3);\n System.out.println();\n mirror(root3);\n printTree(root3);\n\n\n }", "public TreeNode getLeft(){ return leftChild;}", "public static void main(String[] args) {\n Node root = newNode(1);\n\n root.left = newNode(2);\n root.right = newNode(3);\n\n root.left.left = newNode(4);\n root.left.right = newNode(5);\n\n root.left.left.left = newNode(8);\n root.left.left.right = newNode(9);\n\n root.left.right. left = newNode(10);\n root.left.right. right = newNode(11);\n\n root.right.left = newNode(6);\n root.right.right = newNode(7);\n root.right.left .left = newNode(12);\n root.right.left .right = newNode(13);\n root.right.right. left = newNode(14);\n root.right.right. right = newNode(15);\n System.out.println(findNode(root, 5, 6, 15));\n }", "public static TreeNode getTree() {\n\t\tTreeNode a = new TreeNode(\"a\", 314);\n\t\tTreeNode b = new TreeNode(\"b\", 6);\n\t\tTreeNode c = new TreeNode(\"c\", 271);\n\t\tTreeNode d = new TreeNode(\"d\", 28);\n\t\tTreeNode e = new TreeNode(\"e\", 0);\n\t\tTreeNode f = new TreeNode(\"f\", 561);\n\t\tTreeNode g = new TreeNode(\"g\", 3);\n\t\tTreeNode h = new TreeNode(\"h\", 17);\n\t\tTreeNode i = new TreeNode(\"i\", 6);\n\t\tTreeNode j = new TreeNode(\"j\", 2);\n\t\tTreeNode k = new TreeNode(\"k\", 1);\n\t\tTreeNode l = new TreeNode(\"l\", 401);\n\t\tTreeNode m = new TreeNode(\"m\", 641);\n\t\tTreeNode n = new TreeNode(\"n\", 257);\n\t\tTreeNode o = new TreeNode(\"o\", 271);\n\t\tTreeNode p = new TreeNode(\"p\", 28);\n\t\t\n\t\ta.left = b; b.parent = a;\n\t\tb.left = c; c.parent = b;\n\t\tc.left = d;\t d.parent = c;\n\t\tc.right = e; e.parent = c;\n\t\tb.right = f; f.parent = b;\n\t\tf.right = g; g.parent = f;\n\t\tg.left = h; h.parent = g;\n\t\ta.right = i; i.parent = a;\n\t\ti.left = j; j.parent = i;\n\t\ti.right = o; o.parent = i;\n\t\tj.right = k; k.parent = j;\n\t\to.right = p; p.parent = o;\n\t\tk.right = n; n.parent = k;\n\t\tk.left = l; l.parent = k;\n\t\tl.right = m; m.parent = l;\n\t\t\n\t\td.childrenCount = 0;\n\t\te.childrenCount = 0;\n\t\tc.childrenCount = 2;\n\t\tb.childrenCount = 6;\n\t\tf.childrenCount = 2;\n\t\tg.childrenCount = 1;\n\t\th.childrenCount = 0;\n\t\tl.childrenCount = 1;\n\t\tm.childrenCount = 0;\n\t\tn.childrenCount = 0;\n\t\tk.childrenCount = 3;\n\t\tj.childrenCount = 4;\n\t\to.childrenCount = 1;\n\t\tp.childrenCount = 0;\n\t\ti.childrenCount = 7;\n\t\ta.childrenCount = 15;\n\t\t\n\t\treturn a;\n\t}", "public TreeNode helper(int in_left, int in_right)\n {\n if (in_left == in_right) return null;\n\n // pick up pre_idx element as a root\n int root_val = preorder[pre_idx];\n TreeNode root = new TreeNode(root_val);\n\n // root splits inorder list\n // into left and right subtrees\n int index = idx_map.get(root_val);\n\n // recursion\n pre_idx++;\n // build left subtree\n root.left = helper(in_left, index);\n // build right subtree\n root.right = helper(index + 1, in_right);\n return root;\n }", "public TreeNode encode(Node root) {\n if (root == null) return null;\n TreeNode node = new TreeNode(root.val);\n List<Node> children = root.children;\n TreeNode tmp = node;\n if (!children.isEmpty()) {\n for (int i = 0; i < children.size(); i++) {\n if (i == 0) {\n node.left = encode(children.get(0));\n tmp = node.left;\n } else {\n tmp.right = encode(children.get(i));\n tmp = tmp.right;\n }\n }\n }\n return node;\n }", "public TreeNode getRight(){ return rightChild;}", "public static void main(String[] args) {\n // TODO Auto-generated method stub\n int[] nums = {3, 2, 1, 6, 0, 5};\n TreeNode root = solution2(nums);\n System.out.println(root.val);\n System.out.println(root.left.val);\n System.out.println(root.left.right.val);\n System.out.println(root.left.right.right.val);\n System.out.println(root.right.val);\n System.out.println(root.right.left.val);\n System.out.println(root.right.right);\n }", "public void root(Node n) {}", "public static TreeNode buildTree() {\n\t\t\n\t\tTreeNode root = new TreeNode(1);\n\t\t\n\t\tTreeNode left = new TreeNode(2);\n\t\tleft.left = new TreeNode(4);\n\t\tleft.right = new TreeNode(5);\n\t\tleft.right.right = new TreeNode(8);\n\t\t\n\t\tTreeNode right = new TreeNode(3);\n\t\tright.left = new TreeNode(6);\n\t\tright.right = new TreeNode(7);\n\t\tright.right.left = new TreeNode(9);\n\t\t\n\t\troot.left = left;\n\t\troot.right = right;\n\t\t\n\t\treturn root;\n\t}", "private void helper(TreeNode root) {\n if (root == null) {\n return;\n }\n\n helper(root.left);\n ans.add(root.val);\n helper(root.right);\n }", "public void printRightView(){\n \n if(root == null)\n return;\n\n // Take a queue and enqueue root and null\n // every level ending is signified by null\n // since there is just one node at root we enqueue root as well as null\n // take a bool value printed = false\n Queue<Node<T>> queue = new LinkedList<>();\n queue.add(root);\n queue.add(null);\n Node<T> lastVal = null;\n\n while(queue.size() != 0){\n Node<T> node = queue.remove();\n if(node != null){\n\n // keep track of last node and dont print it\n lastVal = node;\n\n // Enqueue left and right child if they exist\n if(node.left != null)\n queue.add(node.left);\n if(node.right != null)\n queue.add(node.right);\n }else{\n // print last node\n System.out.println(lastVal.data + \" ,\");\n if(queue.size() == 0)\n break;\n queue.add(null);\n }\n }\n }", "public void traverseLevelOrder() {\n\t\tif (root == null) {\n\t\t\treturn;\n\t\t}\n\n\t\tLinkedList<Node> ls = new LinkedList<>();\n\t\tls.add(root);\n\t\twhile (!ls.isEmpty()) {\n\t\t\tNode node = ls.remove();\n\t\t\tSystem.out.print(\" \" + node.value);\n\t\t\tif (node.left != null) {\n\t\t\t\tls.add(node.left);\n\t\t\t}\n\t\t\tif (node.right != null) {\n\t\t\t\tls.add(node.right);\n\t\t\t}\n\t\t}\n\t}", "public static TreeNode generateBinaryTree2() {\n // Nodes\n TreeNode root = new TreeNode(12);\n TreeNode rootLeft = new TreeNode(4);\n TreeNode rootLeftLeft = new TreeNode(3);\n TreeNode rootLeftLeftLeft = new TreeNode(1);\n TreeNode rootLeftLeftLeftLeft = new TreeNode(20);\n TreeNode rootRight = new TreeNode(5);\n // Edges\n root.left = rootLeft;\n rootLeft.left = rootLeftLeft;\n rootLeftLeft.left = rootLeftLeftLeft;\n rootLeftLeftLeft.left = rootLeftLeftLeftLeft;\n root.right = rootRight;\n\n // Return root\n return root;\n }", "void inorder(Node root) {\n\t\tboolean leftdone = false;\n\n\t\t// Start traversal from root\n\t\twhile (root != null) {\n\t\t\t// If left child is not traversed, find the\n\t\t\t// leftmost child\n\t\t\tif (!leftdone) {\n\t\t\t\twhile (root.left != null) {\n\t\t\t\t\troot = root.left;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Print root's data\n\t\t\tSystem.out.print(root.data + \" \");\n\n\t\t\t// Mark left as done\n\t\t\tleftdone = true;\n\n\t\t\t// If right child exists\n\t\t\tif (root.right != null) {\n\t\t\t\tleftdone = false;\n\t\t\t\troot = root.right;\n\t\t\t}\n\n\t\t\t// If right child doesn't exist, move to parent\n\t\t\telse if (root.parent != null) {\n\t\t\t\t// If this node is right child of its parent,\n\t\t\t\t// visit parent's parent first\n\t\t\t\twhile (root.parent != null && root == root.parent.right)\n\t\t\t\t\troot = root.parent;\n\n\t\t\t\tif (root.parent == null)\n\t\t\t\t\tbreak;\n\t\t\t\troot = root.parent;\n\t\t\t} else\n\t\t\t\tbreak;\n\t\t}\n\t}", "public static TreeNode generateBinaryTree1() {\n // Nodes\n TreeNode root = new TreeNode(5);\n TreeNode rootLeft = new TreeNode(2);\n TreeNode rootRight = new TreeNode(4);\n TreeNode rootLeftLeft = new TreeNode(20);\n TreeNode rootLeftRight = new TreeNode(1);\n // Edges\n root.left = rootLeft;\n root.right = rootRight;\n rootLeft.left = rootLeftLeft;\n rootLeft.right = rootLeftRight;\n\n // Return root\n return root;\n }", "private static void doMirrorTreeRecursive(Node root) {\n Queue<Node> lvlQueue = new LinkedList<>();\n lvlQueue.add(root);\n while (!lvlQueue.isEmpty()) {\n Node poppedNode = lvlQueue.poll();\n if (poppedNode.left != null){\n lvlQueue.add(poppedNode.left);\n }\n if (poppedNode.right != null){\n lvlQueue.add(poppedNode.right);\n }\n Node temp = poppedNode.left;\n poppedNode.left = poppedNode.right;\n poppedNode.right = temp;\n }\n }", "static TreeNode mirror_tree(TreeNode root) {\n\t\t\n\t\tTreeNode temp ;\n\t\t\n\t\tif(root != null) {\n\t\t\t\n\t\t\tmirror_tree(root.left);\n\t\t\tmirror_tree(root.right);\n\t\t\t\n\t\t\ttemp = root.left;\n\t\t\troot.left = root.right;\n\t\t\troot.right = temp;\n\t\t}\n\t\t\n\t\treturn root;\n\t}", "public void leftViewBinaryTree(TreeNode root) {\n if (root == null) {\n return;\n }\n int count = 0;\n Queue<TreeNode> queue = new LinkedList<>();\n queue.add(root);\n count++;\n while (!queue.isEmpty()) {\n root = queue.poll();\n count--;\n if (count == queue.size()) {\n System.out.println(root.val);\n }\n if (root.left != null) {\n queue.add(root.left);\n count++;\n }\n if (root.right != null) {\n queue.add(root.right);\n count++;\n }\n }\n\n }", "public BST_Recursive() {\n\t\tthis.root = null;\n\t\tnumOfElements = 0; \n\t}", "public static void inOrder(TreeNode root) \r\n { \r\n if (root != null) { \r\n inOrder(root.left); \r\n System.out.print(root.val + \" \"); \r\n inOrder(root.right); \r\n } else {\r\n //System.out.print(null + \" \"); \r\n }\r\n }", "public static void inOrder(TreeNode root) \r\n { \r\n if (root != null) { \r\n inOrder(root.left); \r\n System.out.print(root.val + \" \"); \r\n inOrder(root.right); \r\n } else {\r\n //System.out.print(null + \" \"); \r\n }\r\n }", "TreeNode<T> getLeft();", "public static void main(String[] args) {\n Node root = new Node(1);\n\n Node left = new Node(2);\n left.left = new Node(4);\n left.right = new Node(3);\n\n Node right = new Node(5);\n right.left = new Node(6);\n right.right = new Node(7);\n\n root.left = left;\n root.right = right;\n\n Traversal traversal = new Traversal();\n traversal.preOrder(root);\n System.out.println();\n traversal.postOrder(root);\n System.out.println();\n traversal.inOrder(root);\n System.out.println();\n traversal.levelOrder(root);\n //System.out.println(checkBST(root));\n }", "public void rightViewBinaryTree(TreeNode root) {\n if (root == null) {\n return;\n }\n int count = 0;\n Queue<TreeNode> queue = new LinkedList<>();\n queue.add(root);\n count++;\n while (!queue.isEmpty()) {\n root = queue.poll();\n count--;\n if (count == 0) {\n System.out.println(root.val);\n }\n if (root.left != null) {\n queue.add(root.left);\n count++;\n }\n if (root.right != null) {\n queue.add(root.right);\n count++;\n }\n }\n }", "public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}", "public void printLeftView(){\n if(root == null)\n return;\n\n // Take a queue and enqueue root and null\n // every level ending is signified by null\n // since there is just one node at root we enqueue root as well as null\n // take a bool value printed = false\n Queue<Node<T>> queue = new LinkedList<>();\n queue.add(root);\n queue.add(null);\n boolean printed = false;\n\n while(queue.size() != 0){\n Node<T> node = queue.remove();\n if(node != null){\n // if the first node is not printed print it and flip the bool value\n if(! printed){\n System.out.println(node.data);\n printed = true;\n }\n\n // add left and right child if they exist\n if(node.left != null)\n queue.add(node.left);\n if(node.right != null)\n queue.add(node.right);\n }else{\n // flip the printed bool value\n // break if the queue is empty else enqueue a null\n printed = false;\n if(queue.size() == 0)\n break;\n queue.add(null);\n }\n }\n }", "public TreeNode convertBST(TreeNode root){\n\t\t\n\t\tif( root == null){\n\t\t\treturn null;\n\t\t}\n\t\t\n//\t\tint l = root.val;\n\t\tTreeNode right = convertBST(root.right);\n\t\t\n//\t\troot.val = root.val + right.val;\n\t\tsum = sum + root.val;\n\t\troot.val = sum;\n//\t\tSystem.out.println(root.val);\n\n\t\tTreeNode left = convertBST(root.left);\n\t\t\n//\t\troot.val = root.val + left.val;\n\t\t\n//\t\tif(right == null)\n//\t\t\tright.val = 0;\n//\t\tif(left == null)\n//\t\t\tleft.val = 0;\n\t\t\n//\t\troot.val = root.val + right.val + left.val;\n//\t\troot.val = root.val + right.val;\n\t\t\n//\t\tsum = sum + root.val;\n//\t\troot.val = sum;\n\t\t\n\t\t\n//\t\tSystem.out.println(root.val);\n\t\t\n\t\t\n\t\treturn root;\n\t\t\n\t\t\n\t\t\n//\t\tif(root!=null){\n//\t\t\tconvertBST(root.right);\n//\t\t\tsum = sum + root.val;\n//\t\t\troot.val = sum;\n//\t\t\tconvertBST(root.left);\n//\t\t}\n//\t\treturn root;\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n TreeNode node = new TreeNode();\n node.value = 1;\n node.left = new TreeNode();\n node.left.value = 2;\n node.right = new TreeNode();\n node.right.value = 3;\n node.left.left = new TreeNode();\n node.left.left.value = 4;\n node.left.right = new TreeNode();\n node.left.right.value = 5;\n node.right.left = new TreeNode();\n node.right.left.value = 6;\n node.right.right = new TreeNode();\n node.right.right.value = 7;\n// System.out.println(mirro(node).value);\n// System.out.println(mirro(node).left.value);\n// System.out.println(Arrays.toString(LevelPrintTree.levelPrint(mirro(node))));\n\n recur(node);\n\n }", "public TreeNode upSideDownBinary_Stack(TreeNode root){\n if (root == null){\n return root;\n }\n \n Deque<TreeNode> stack = new LinkedList<TreeNode>();\n \n while(root != null){\n stack.offerLast(root);\n root = root.left;\n }\n \n TreeNode newRoot = stack.pollLast();\n TreeNode cur = newRoot;\n \n while(!stack.isEmpty()){\n TreeNode oriParent = stack.pollLast();\n cur.left = oriParent.right;\n cur.right = oriParent;\n \n oriParent.left = null;\n oriParent.right = null;\n cur = oriParent;\n }\n \n return newRoot;\n }", "private static Node buildTreeHelper(int[] preorder, int[] preorderIndex, int left, int right, Map<Integer, Integer> inorderMap) {\n\n if (left > right) { return null; }\n int rootVal = preorder[preorderIndex[0]++];\n Node root = new Node(rootVal);\n\n root.left = buildTreeHelper(preorder, preorderIndex, left, inorderMap.get(rootVal) - 1, inorderMap);\n root.right = buildTreeHelper(preorder, preorderIndex, inorderMap.get(rootVal) + 1, right, inorderMap);\n return root;\n }", "private static BinaryTree mirror(BinaryTree root) {\n\t\tif(root == null) return null;\r\n\t\tif(root.left!=null || root.right!= null){\r\n\t\t\tBinaryTree temp;\r\n\t\t\tmirror(root.left);\r\n\t\t\tmirror(root.right);\r\n\t\t\tBinaryTree left = root.left;\r\n\t\t\tBinaryTree right = root.right;\r\n\t\t\ttemp = left;\r\n\t\t\troot.left = right;\r\n\t\t\troot.right = temp;\r\n\t\t}\r\n\t\treturn root;\r\n\t}", "public BinaryTree leftTree()\n { return left;}", "public TreeNode encode(Node root) {\n if (root == null) {\n return null;\n }\n TreeNode head = new TreeNode(root.val);\n head.left = en(root.children);\n return head;\n }", "private static TreeNode getNode() {\n TreeNode treeNode = new TreeNode(1);\n TreeNode left = new TreeNode(2);\n TreeNode right = new TreeNode(3);\n treeNode.left = left;\n treeNode.right = right;\n\n left.left = new TreeNode(4);\n right.left = new TreeNode(5);\n right.right = new TreeNode(6);\n return treeNode;\n }", "private Result buildTree(ListNode head, int len ){\n Result result = new Result(null, head);\n if (head == null)\n return result;\n if (len <= 0)\n return result;\n TreeNode left, right;\n // travel left \n Result l = buildTree(head, len / 2);\n // create root \n result.root = new TreeNode(l.tail.val);\n result.root.left = l.root;\n // travel right \n Result r = buildTree(l.tail.next, len - len / 2 - 1);\n result.root.right = r.root;\n result.tail = r.tail;\n return result;\n }", "public static TreeNode generateBinaryTree3() {\n // Nodes\n TreeNode root = new TreeNode(1);\n TreeNode rootLeft = new TreeNode(2);\n TreeNode rootLeftLeft = new TreeNode(3);\n TreeNode rootLeftLeftLeft = new TreeNode(4);\n TreeNode rootRight = new TreeNode(5);\n TreeNode rootRightRight = new TreeNode(6);\n TreeNode rootRightRightRight = new TreeNode(7);\n // Edges\n root.left = rootLeft;\n rootLeft.left = rootLeftLeft;\n rootLeftLeft.left = rootLeftLeftLeft;\n root.right = rootRight;\n rootRight.right = rootRightRight;\n rootRightRight.right = rootRightRightRight;\n\n // Return root\n return root;\n }", "public BinaryTree rightTree()\n {return right;}", "public void treeOrder ()\n {\n treeOrder (root, 0);\n }", "public static TreeNode getMockWithSuccessorTreeRoot() {\n TreeNode<Integer> root = new TreeNode<>(4);\n TreeNode<Integer> node1 = new TreeNode<>(2);\n TreeNode<Integer> node2 = new TreeNode<>(8);\n TreeNode<Integer> node3 = new TreeNode<>(1);\n TreeNode<Integer> node4 = new TreeNode<>(3);\n TreeNode<Integer> node5 = new TreeNode<>(7);\n TreeNode<Integer> node6 = new TreeNode<>(9);\n\n root.left = node1;\n root.right = node2;\n node1.parent = root;\n node2.parent = root;\n\n node1.left = node3;\n node1.right = node4;\n node3.parent = node1;\n node4.parent = node1;\n\n node2.left = node5;\n node2.right = node6;\n node5.parent = node2;\n node6.parent = node2;\n\n return root;\n }", "public static void main(String[] args) {\n TreeNode node1 = new TreeNode(4);\n TreeNode node2 = new TreeNode(1);\n TreeNode node3 = new TreeNode(12);\n TreeNode node4 = new TreeNode(3);\n TreeNode node5 = new TreeNode(2);\n TreeNode node6 = new TreeNode(5);\n TreeNode node7 = new TreeNode(3);\n\n node1.left = node2;\n node1.right = node3;\n node2.left = node4;\n node2.right = node5;\n node3.left = node6;\n node3.right = node7;\n\n\n /*\n * 1\n * 3 2\n */\n TreeNode node11 = new TreeNode(1);\n TreeNode node21 = new TreeNode(3);\n TreeNode node31 = new TreeNode(2);\n\n node11.left = node21;\n node11.right = node31;\n\n /*\n * 1\n * 3 3\n */\n TreeNode node12 = new TreeNode(1);\n TreeNode node22 = new TreeNode(3);\n TreeNode node32 = new TreeNode(3);\n\n node12.left = node22;\n node12.right = node32;\n\n System.out.println(isRoot2SubTreeOfRoot1(node1, node11));\n System.out.println(isRoot2SubTreeOfRoot1(node1, node12));\n }", "void inOrder(TreeNode node) \n { \n if (node == null) \n return; \n \n inOrder(node.left); \n System.out.print(node.val + \" \"); \n \n inOrder(node.right); \n }", "public static TreeNode buildTree02() {\n\t\t\n\t\tTreeNode root = new TreeNode(5);\n\t\t/*\n\t\troot.left = new TreeNode(4);\n\t\troot.left.left = new TreeNode(11);\n\t\troot.left.left.left = new TreeNode(7);\n\t\troot.left.left.right = new TreeNode(2);\n\t\t\n\t\troot.right = new TreeNode(8);\n\t\troot.right.left = new TreeNode(13);\n\t\troot.right.right = new TreeNode(4);\n\t\troot.right.right.left = new TreeNode(5);\n\t\troot.right.right.right = new TreeNode(1);\n\t\t*/\n\t\treturn root;\n\t}", "public BinarySearchTree(KeyedItem root) {\r\n\t\tthis.root = root;\r\n\t\tleftChild = null;\r\n\t\trightChild = null;\r\n\t\t\r\n\t}", "public void printTree(Node root) {\n\t\tif (root.left == null && root.right == null) {\r\n\t\t\tSystem.out.print(root.val + \" \");\r\n\t\t} else if (root.left == null) {\r\n\t\t\tSystem.out.print(root.val + \" \");\r\n\t\t\tprintTree(root.right);\r\n\t\t} else if (root.right == null) {\r\n\t\t\tprintTree(root.left);\r\n\t\t\tSystem.out.print(root.val + \" \");\r\n\t\t} else {\r\n\t\t\tprintTree(root.left);\r\n\t\t\tSystem.out.print(root.val + \" \");\r\n\t\t\tprintTree(root.right);\r\n\t\t}\r\n\r\n\t}", "public TreeNode convertBST(TreeNode root) {\n \tif (root==null) return null;\n \tif(root.right!=null){\n root.right = convertBST(root.right);\t\n\t}\n int org = root.val;\n \troot.val += sum;\n \t sum += org;\n \tif(root.left!=null){\n \t\troot.left = convertBST(root.left);\t\n \t}\n \treturn root;\n }", "public void leftBoundary(TreeNode root) {\n if (root.left == null && root.right == null) return; // ignore leaf\n result.add(root.val);\n if (root.left != null) leftBoundary(root.left);\n else leftBoundary(root.right);\n }", "public void inorder()\r\n {\r\n inorder(root);\r\n }", "private void initTree(E data, TernaryTree<E> leftTree, TernaryTree<E> middleTree, TernaryTree<E> rightTree) {\n /**\n * We have to create a new node here for the case where one of the input trees\n * is this. If we simply set node = new TernaryNode..., and one of the input\n * trees is this, then we lose all of the subchildren of one of the input trees!\n **/\n TernaryNode<E> newRoot = new TernaryNode<>(data);\n\n // if it's empty, then why add it?\n if (leftTree != null && !leftTree.isEmpty()) {\n newRoot.setLeftChild(leftTree.root);\n }\n\n if (middleTree != null && !middleTree.isEmpty()) {\n // if the middle tree is the same as the left tree, then we should create\n // a copy\n if (middleTree == leftTree) {\n newRoot.setMiddleChild(leftTree.root.copy());\n } else {\n newRoot.setMiddleChild(middleTree.root);\n }\n }\n\n if (rightTree != null && !rightTree.isEmpty()) {\n // same idea here, except that we need to check the left and the middle\n if (rightTree == leftTree) {\n newRoot.setRightChild(leftTree.root.copy());\n } else if (rightTree == middleTree) {\n newRoot.setRightChild(middleTree.root.copy());\n } else {\n newRoot.setRightChild(rightTree.root);\n }\n }\n\n // okay, now we can set this tree's root to the newRoot\n root = newRoot;\n\n /**\n * For the next three if-statements, we only clear the tree if the input tree is\n * not the same as this, otherwise we'd be clearing this!\n */\n if (leftTree != null && leftTree != this) {\n leftTree.clear();\n }\n\n if (middleTree != null && middleTree != this) {\n middleTree.clear();\n }\n\n if (rightTree != null && rightTree != this) {\n rightTree.clear();\n }\n }", "public void depthFirstSearch(){\n\t\tStack<TreeNode<T>> nodeStack = new Stack<TreeNode<T>>();\n\n\t\tif(root!=null){\n\t\t\tnodeStack.push(root);\n\t\t\tSystem.out.println(root.data);\n\t\t\tTreeNode<T> topNode = root;\n\t\t\twhile(!nodeStack.isEmpty()){\n\t\t\t\tif(topNode.left!=null){\n\t\t\t\t\tnodeStack.push(topNode.left);\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(topNode.data);\n\t\t\t\t\ttopNode = topNode.left;\n\t\t\t\t} else if(topNode.right!=null){\n\t\t\t\t\tnodeStack.push(topNode.right);\n\t\t\t\t\tSystem.out.println(topNode.data);\n\t\t\t\t\ttopNode = topNode.right;\n\t\t\t\t} else{\n\t\t\t\t\ttry{\n\t\t\t\t\t\tnodeStack.pop();\n\t\t\t\t\t}catch(Exception ex){\n\t\t\t\t\t\tex.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "TreeNode<T> getRight();", "public void reverseLevelOrderTraversel(TreeNode root)\r\n\t{\r\n\t\tif(root == null)\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tQueue<TreeNode> que = new LinkedList<>();\r\n\t\tStack<TreeNode> stack = new Stack<TreeNode>();\r\n\t\t\r\n\t\tque.add(root);\r\n\t\twhile(que.size()>0)\r\n\t\t{\r\n\t\t\tTreeNode element=que.remove();\r\n\t\t\tif(element.right!=null)\r\n\t\t\t{\r\n\t\t\t\tque.add(element.right);\r\n\t\t\t}\r\n\t\t\tif(element.left!=null)\r\n\t\t\t{\r\n\t\t\t\tque.add(element.left);\r\n\t\t\t}\r\n\t\t\tstack.push(element);\r\n\t\t}\r\n\t\twhile(stack.size()>0)\r\n\t\t{\r\n\t\t\tSystem.out.print(stack.pop().data+\" \");\r\n\t\t}\r\n\t\t\t\r\n\t}", "private void doubleRotationLR(BinaryNode node) {\n BinaryNode temp = max(node.left);\n if (node == root) {\n root = temp;\n if (temp.parent.right == temp) { //temp could have a child on the left\n temp.parent.right = temp.left;\n if (temp.left != null) temp.left.parent = temp.parent;\n }\n else {\n temp.parent.left = temp.left;\n if (temp.left != null) temp.left.parent = temp.parent;\n }\n root.parent = null;\n root.right = node;\n root.left = node.left;\n if(node.left != null) node.left.parent = root;\n node.parent = root;\n node.left = null;\n } else {\n if (node.parent.right == node) {\n node.parent.right = temp;\n } else {\n node.parent.left = temp;\n }\n temp.parent = node.parent;\n temp.left = node.left;\n if(node.left != null) node.left.parent = temp;\n temp.right = node;\n node.parent = temp;\n node.left = null;\n }\n }", "public void encodeTree(){\n StringBuilder builder = new StringBuilder();\n encodeTreeHelper(root,builder);\n }", "public TreeNode encode(Node root) {\n\t\t\tif (root == null) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tTreeNode head = new TreeNode(root.val);\n\t\t\thead.left = en(root.children);\n\t\t\treturn head;\n\t\t}", "public void rightBoundary(TreeNode root) {\n if (root.right == null && root.left == null) return; // ignore leaf\n if (root.right != null) rightBoundary(root.right);\n else rightBoundary(root.left);\n result.add(root.val); // add after child visit(reverse)\n }", "private TreeNode cBST(int begin,int end){\n\n if(begin >= end){ return null;}\n\n int index = (begin + end)/2;\n\n //Left-Visit\n TreeNode l = cBST(begin,index);\n\n //Middle-Visit\n TreeNode root = new TreeNode(cur.val);\n root.left = l;\n cur = cur.next;\n\n //Right-Visit\n TreeNode r = cBST(index+1,end);\n\n //Post-Process and return values\n root.right = r;\n return root;\n }", "private static void test2() {\n BinaryTreeNode node1 = new BinaryTreeNode(1);\n BinaryTreeNode node2 = new BinaryTreeNode(2);\n BinaryTreeNode node3 = new BinaryTreeNode(3);\n BinaryTreeNode node4 = new BinaryTreeNode(4);\n BinaryTreeNode node5 = new BinaryTreeNode(5);\n BinaryTreeNode node6 = new BinaryTreeNode(6);\n BinaryTreeNode node7 = new BinaryTreeNode(7);\n node1.left = node2;\n node1.right = node3;\n node2.left = node4;\n node2.right = node5;\n node5.left = node7;\n node3.right = node6;\n test(\"Test2\", node1, true);\n }", "public static void main(String[] args) {\n// TreeNode node1 = new TreeNode(0);\n// TreeNode node2l = new TreeNode(3);\n// TreeNode node2r = new TreeNode(5);\n//// TreeNode node3l = new TreeNode(2);\n// TreeNode node3r = new TreeNode(2);\n//// TreeNode node4l = new TreeNode(4);\n// TreeNode node4r = new TreeNode(1);\n//\n// node1.left = node2l;\n// node1.right = node2r;\n//// node2l.left = node3l;\n// node2l.right = node3r;\n// node3r.right = node4r;\n//\n\n int[] nums = {3, 2, 1, 6, 0, 5};\n\n }", "public void inOrderTree(TernaryTreeNode root)\n {\n if(root==null) return;\n \n \n inOrderTree(root.left);\n inOrderTree(root.middle);\n inOrderTree(root.right);\n System.out.print(root.data+\" \");\n \n }", "private static TreeNode<Character> buildTree () {\n // build left half\n TreeNode<Character> s = new TreeNode<Character>('S', \n new TreeNode<Character>('H'),\n new TreeNode<Character>('V'));\n\n TreeNode<Character> u = new TreeNode<Character>('U', \n new TreeNode<Character>('F'),\n null);\n \n TreeNode<Character> i = new TreeNode<Character>('I', s, u);\n\n TreeNode<Character> r = new TreeNode<Character>('R', \n new TreeNode<Character>('L'), \n null);\n\n TreeNode<Character> w = new TreeNode<Character>('W', \n new TreeNode<Character>('P'),\n new TreeNode<Character>('J'));\n\n TreeNode<Character> a = new TreeNode<Character>('A', r, w);\n\n TreeNode<Character> e = new TreeNode<Character>('E', i, a);\n\n // build right half\n TreeNode<Character> d = new TreeNode<Character>('D', \n new TreeNode<Character>('B'),\n new TreeNode<Character>('X'));\n\n TreeNode<Character> k = new TreeNode<Character>('K', \n new TreeNode<Character>('C'),\n new TreeNode<Character>('Y'));\n\n TreeNode<Character> n = new TreeNode<Character>('N', d, k);\n\n\n TreeNode<Character> g = new TreeNode<Character>('G', \n new TreeNode<Character>('Z'),\n new TreeNode<Character>('Q'));\n\n TreeNode<Character> o = new TreeNode<Character>('O');\n\n TreeNode<Character> m = new TreeNode<Character>('M', g, o);\n\n TreeNode<Character> t = new TreeNode<Character>('T', n, m);\n\n // build the root\n TreeNode<Character> root = new TreeNode<Character>(null, e, t);\n return root;\n }", "static void inOrderWithoutRecursion(Node root) {\n if (root == null) {\n return;\n }\n Stack<Node> stack = new Stack<>();\n Node curr = root;\n while (curr != null || !stack.isEmpty()) {\n while (curr != null) {\n stack.push(curr);\n curr = curr.left;\n }\n curr = stack.pop();\n System.out.print(curr.data + \" \");\n curr = curr.right;\n }\n\n }", "void inorder(Node root){\n if(root!=null){\n // checking if the tree is not empty\n inorder(root.left);\n System.out.print(root.data+\" \");\n inorder(root.right);\n }\n\n }", "public static TreeNode buildTree01() {\n\t\t\n\t\tTreeNode root = new TreeNode(5);\n\t\t\n\t\troot.left = new TreeNode(4);\n\t\troot.left.left = new TreeNode(11);\n\t\troot.left.left.left = new TreeNode(7);\n\t\troot.left.left.right = new TreeNode(2);\n\t\t\n\t\troot.right = new TreeNode(8);\n\t\troot.right.left = new TreeNode(13);\n\t\troot.right.right = new TreeNode(4);\n\t\troot.right.right.right = new TreeNode(1);\n\t\t\n\t\treturn root;\n\t}", "private void process(TreeNode root){\n while(root!=null){\n dq.push(root);\n root= root.left;\n }\n }", "private TreeNode flat(TreeNode cur) {\n if (cur == null) {\n return null;\n }\n TreeNode right = cur.right;\n TreeNode left = cur.left;\n if (left == null && right == null) {\n return cur;\n }\n cur.left = null;\n\n TreeNode rightLast = flat(right);\n TreeNode leftLast = flat(left);\n if (left != null) {\n leftLast.right = right;\n cur.right = left;\n }\n return rightLast == null ? leftLast : rightLast;\n }", "public BinarySearchTree(Object root){\r\n\t\tthis.root = (KeyedItem)root;\r\n\t\tleftChild = null;\r\n\t\trightChild = null;\r\n\t}", "public static void main(String[] args){\n\t\tTreeNode node1 = new TreeNode(1);\n\t\tTreeNode node2 = new TreeNode(2);\n\t\tTreeNode node3 = new TreeNode(3);\n\t\tTreeNode node4 = new TreeNode(4);\n\t\tTreeNode node5 = new TreeNode(5);\n\t\tTreeNode node6 = new TreeNode(6);\n\t\tTreeNode node7 = new TreeNode(7);\n\t\tnode4.left = node2;\n\t\tnode4.right = node6;\n\t\tnode2.left = node1;\n\t\tnode2.right = node3;\n\t\tnode6.left = node5;\n\t\tnode6.right = node7;\n\t\t/*\n\t\t * 4\n\t\t * /\n\t\t * 5\n\t\t * \\\n\t\t * 6\n\t\t */\n\t\t/*node4.left = node5;\n\t\tnode5.right = node6;*/\n\t\t\n\t\ttreeTraversal2 tt = new treeTraversal2();\n\t\tSystem.out.print(\"Inorder Rcur: \");tt.inorderTraverse(node4);//1234567\n\t\tSystem.out.println();\t\t\n\t\tSystem.out.print(\"Inorder Iter: \");tt.stackInorder(node4);//1234567\n\t\tSystem.out.println();\n\t\tSystem.out.print(\"Preorder Rcur: \");tt.preorderTraverse(node4);//4213657\n\t\tSystem.out.println();\n\t\tSystem.out.print(\"Preorder Iter: \"); tt.stackPreorder(node4);//4213657\n\t\tSystem.out.println();\n\t\tSystem.out.print(\"Postorder Rcur: \");tt.postorderTraverse(node4);//1325764\n\t\tSystem.out.println();\t\t \n\t\tSystem.out.print(\"Postorder Iter: \");tt.stackPostorder(node4);//1325764\n\t\t//System.out.println();\n\t\t//System.out.print(\"Postorder Iter: \");tt.twoStackPostorder(node4);//1325764\n\t\tSystem.out.println();\n\t\tSystem.out.print(\"Level Iter: \");tt.levelTraverse(node4);//4261357\n\t}", "private static void test1() {\n BinaryTreeNode node1 = new BinaryTreeNode(8);\n BinaryTreeNode node2 = new BinaryTreeNode(6);\n BinaryTreeNode node3 = new BinaryTreeNode(10);\n BinaryTreeNode node4 = new BinaryTreeNode(5);\n BinaryTreeNode node5 = new BinaryTreeNode(7);\n BinaryTreeNode node6 = new BinaryTreeNode(9);\n BinaryTreeNode node7 = new BinaryTreeNode(11);\n node1.left = node2;\n node1.right = node3;\n node2.left = node4;\n node2.right = node5;\n node3.left = node6;\n node3.right = node7;\n test(\"Test1\", node1, true);\n }", "public void postorder()\r\n {\r\n postorder(root);\r\n }", "public void inOrderRecursive(TreeNode root){\n if(root == null) return;\n inOrderRecursive(root.left);\n System.out.print(root.data + \" \");\n inOrderRecursive(root.right);\n }", "public void createBinaryTree()\r\n\t{\n\t\t\r\n\t\tNode node = new Node(1);\r\n\t\tnode.left = new Node(2);\r\n\t\tnode.right = new Node(3);\r\n\t\tnode.left.left = new Node(4);\r\n\t\tnode.left.right = new Node(5);\r\n\t\tnode.left.right.right = new Node(10);\r\n\t\tnode.left.left.left = new Node(8);\r\n\t\tnode.left.left.left.right = new Node(15);\r\n\t\tnode.left.left.left.right.left = new Node(17);\r\n\t\tnode.left.left.left.right.left.left = new Node(18);\r\n\t\tnode.left.left.left.right.right = new Node(16);\r\n\t\tnode.left.left.right = new Node(9);\r\n\t\tnode.right.left = new Node(6);\r\n\t\tnode.right.left.left = new Node(13);\r\n\t\tnode.right.left.left.left = new Node(14);\r\n\t\tnode.right.right = new Node(7);\r\n\t\tnode.right.right.right = new Node(11);\r\n\t\tnode.right.right.right.right = new Node(12);\r\n\t\troot = node;\r\n\t\t\r\n\t}", "private static Node getTree()\r\n {\r\n Node node1 = new Node( 1 );\r\n Node node2 = new Node( 2 );\r\n Node node3 = new Node( 3 );\r\n Node node4 = new Node( 4 );\r\n Node node5 = new Node( 5 );\r\n Node node6 = new Node( 6 );\r\n Node node7 = new Node( 7 );\r\n\r\n node1.left = node2;\r\n node1.right = node3;\r\n\r\n node2.left = node4;\r\n node2.right = node5;\r\n\r\n node3.left = node6;\r\n node3.right = node7;\r\n return node1;\r\n }", "public void inorderRec(Node root)\n {\n //If condition to check root is not null .\n if(root!= null) {\n inorderRec(root.left);\n System.out.print(root.key + \" \");\n inorderRec(root.right);\n }\n }", "public static void printNodes(Node root)\n\t{\n\t\t// return is tree is empty\n\t\tif (root == null) {\n\t\t\treturn;\n\t\t}\n\n\t\t// print root node\n\t\tSystem.out.print(root.key + \" \");\n\n\t\t// create a two empty queues and enqueue root's left and\n\t\t// right child respectively\n\t\tQueue<Node> first = new ArrayDeque<Node>();\n\t\tfirst.add(root.left);\n\n\t\tQueue<Node> second = new ArrayDeque<Node>();\n\t\tsecond.add(root.right);\n\n\t\t// run till queue is empty\n\t\twhile (!first.isEmpty())\n\t\t{\n\t\t\t// calculate number of nodes in current level\n\t\t\tint n = first.size();\n\n\t\t\t// process every node of current level\n\t\t\twhile (n-- > 0)\n\t\t\t{\n\t\t\t\t// pop front node from first queue and print it\n\t\t\t\tNode x = first.poll();\n\n\t\t\t\tSystem.out.print(x.key + \" \");\n\n\t\t\t\t// push left and right child of x to first queue\n\t\t\t\tif (x.left != null) {\n\t\t\t\t\tfirst.add(x.left);\n\t\t\t\t}\n\n\t\t\t\tif (x.right != null) {\n\t\t\t\t\tfirst.add(x.right);\n\t\t\t\t}\n\n\t\t\t\t// pop front node from second queue and print it\n\t\t\t\tNode y = second.poll();\n\n\t\t\t\tSystem.out.print(y.key + \" \");\n\n\t\t\t\t// push right and left child of y to second queue\n\t\t\t\tif (y.right != null) {\n\t\t\t\t\tsecond.add(y.right);\n\t\t\t\t}\n\n\t\t\t\tif (y.left != null) {\n\t\t\t\t\tsecond.add(y.left);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "protected void printTree(){\n if (this.leftNode != null){\n leftNode.printTree();\n }\n System.out.println(value);\n\n if (this.rightNode != null){\n rightNode.printTree();\n }\n }", "public static void main(String[] args) {\n\n TreeNode node1 = new TreeNode(1);\n TreeNode node2 = new TreeNode(2);\n TreeNode node3 = new TreeNode(3);\n TreeNode node4 = new TreeNode(4);\n TreeNode node5 = new TreeNode(5);\n TreeNode node6 = new TreeNode(6);\n TreeNode node7 = new TreeNode(7);\n TreeNode node8 = new TreeNode(8);\n node1.right=node3;\n node1.left=node2;\n node2.left=node4;\n node3.right=node5;\n node4.right=node6;\n node6.left=node7;\n node6.right=node8;\n traversalRecursion(node1);\n System.out.println();\n nonRecurInTraverse(node1);\n }", "public static <E extends Comparable> int deep(TreeNode<E> root) {\r\n \r\n Queue<TreeNode<E>> queue = new LinkedList<>();\r\n \r\n int deep = 0;\r\n \r\n queue.add(root);\r\n TreeNode<E> startNewLine = root;\r\n \r\n while(!queue.isEmpty()) {\r\n TreeNode<E> currentNode = queue.poll();\r\n if(currentNode == startNewLine) {\r\n startNewLine = null;\r\n deep ++;\r\n }\r\n if(currentNode.getLeft() != null) queue.add(currentNode.getLeft());\r\n if(startNewLine == null) {\r\n startNewLine = currentNode.getLeft();\r\n }\r\n if(currentNode.getRight()!= null) queue.add(currentNode.getRight());\r\n if(startNewLine == null) {\r\n startNewLine = currentNode.getRight();\r\n }\r\n }\r\n \r\n \r\n return deep;\r\n }", "private <X extends Jgxx> X buildTree(X root) {\n\t\tList<X> list = this.extendedModelProvider.find(EXTEND_MODEL_XTGL_ZHGL_JGXX_CODE, Jgxx.class, SELECT_PRE_SQL + \" WHERE J.LFT BETWEEN ? AND ? AND J.DELETED = 0 ORDER BY J.LFT\",\n\t\t\t\troot.getLft(), root.getRgt());\n\t\tStack<X> rightStack = new Stack<X>();\n\t\tfor (X node : list) {\n\t\t\tif (!rightStack.isEmpty()) {\n\t\t\t\twhile (rightStack.lastElement().getRgt() < node.getRgt()) {\n\t\t\t\t\trightStack.pop();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!rightStack.isEmpty()) {\n\t\t\t\trightStack.lastElement().addChild(node);\n\t\t\t}\n\t\t\trightStack.push(node);\n\t\t}\n\t\treturn rightStack.firstElement();\n\t}", "public TreeNode buildTree(int[] inorder, int[] postorder) {\n if(inorder.length == 0){\n return null;\n }\n TreeNode result = getRoot(inorder,postorder,0,inorder.length - 1,inorder.length-1);\n return result;\n }", "private int pushDownRoot() {\n\t\treturn pushDown(0);// TODO: A one-line function that calls pushDown()\n\t}", "public ArrayList<TreeNode> flatternTree(TreeNode root){\n ArrayList<TreeNode> queue = new ArrayList<TreeNode>();\n ArrayList<TreeNode> returnList = new ArrayList<TreeNode>();\n // if empty tree\n if (root == null){\n return null;\n }\n // else\n queue.add(root);\n while(!queue.isEmpty()){\n TreeNode obj = queue.get(0);\n returnList.add(obj);\n if (obj.left != null){\n queue.add(obj.left);\n }\n if (obj.right != null){\n queue.add(obj.right);\n }\n queue.remove(0);\n }\n return returnList;\n }", "void\nprintBoundaryLeft(Node node) \n\n{ \n\nif\n(node != \nnull\n) { \n\nif\n(node.left != \nnull\n) { \n\n\n// to ensure top down order, print the node \n\n// before calling itself for left subtree \n\nSystem.out.print(node.data + \n\" \"\n); \n\nprintBoundaryLeft(node.left); \n\n} \n\nelse\nif\n(node.right != \nnull\n) { \n\nSystem.out.print(node.data + \n\" \"\n); \n\nprintBoundaryLeft(node.right); \n\n} \n\n\n// do nothing if it is a leaf node, this way we avoid \n\n// duplicates in output \n\n} \n\n}", "public void inOrden(Leaf root){\n if(root != null){\n inOrden(root.left);\n root.print();\n inOrden(root.right);\n }\n }", "public void recoverTree(TreeNode root) {\n if (root == null) {\n return;\n }\n\n prev = null;\n first = null;\n second = null;\n\n inorderTraversal(root);\n\n if (first != null && second != null) {\n int temp = first.val;\n first.val = second.val;\n second.val = temp;\n }\n\n }", "void setLeft(TreeNode<T> left);", "public static TreeNode getBasicTree(){\n TreeNode one = new TreeNode(1);\n TreeNode two = new TreeNode(2);\n TreeNode three = new TreeNode(3);\n TreeNode four = new TreeNode(4);\n TreeNode five = new TreeNode(5);\n TreeNode six = new TreeNode(6);\n TreeNode seven = new TreeNode(7);\n\n one.left = two;\n one.right = three;\n two.left = four;\n two.right = five;\n four.left = six;\n four.right = seven;\n\n return one;\n }", "private RBNode<T> getRoot(){\n return root.getLeft();\n }", "public BinarySearchTree(KeyedItem rootItem, BinarySearchTree leftTree, BinarySearchTree rightTree) {\r\n\t\troot = rootItem;\r\n\t\tleftChild = leftTree;\r\n\t\trightChild = rightTree;\r\n\t}", "private void serialize(TreeNode root, StringBuilder sb) {\r\n\r\n // **** end / base condition ****\r\n if (root == null)\r\n return;\r\n\r\n // **** append node to string builder ****\r\n sb.append(root.val + \" \");\r\n\r\n // **** traverse left subtree ****\r\n serialize(root.left, sb);\r\n\r\n // **** traverse right subtree ****\r\n serialize(root.right, sb);\r\n }", "@Override\n\tpublic BTree<T> left() \n\t{\n\t\t\n\t\treturn root.left;\n\t}", "@Test\n public void test(){\n BinarySearchTree tree = new BinarySearchTree(new Node(35));\n\n tree.addNode(4);\n tree.addNode(15);\n tree.addNode(3);\n tree.addNode(1);\n tree.addNode(20);\n tree.addNode(8);\n tree.addNode(50);\n tree.addNode(40);\n tree.addNode(30);\n tree.addNode(80);\n tree.addNode(70);\n\n tree.addNode(90);\n\n tree.deleteNode(50);\n System.out.println(\"=====中序遍历 递归法=====\");\n TreeUtil.traverseInOrder(tree.getRoot());\n\n System.out.println(\"\");\n System.out.println(\"=====中序遍历 迭代法=====\");\n TreeUtil.traverseInOrderByIteration(tree.getRoot());\n\n System.out.println(\"\");\n System.out.println(\"=====前序遍历=====\");\n TreeUtil.traversePreOrder(tree.getRoot());\n\n System.out.println(\"\");\n System.out.println(\"=====中序遍历 迭代法=====\");\n TreeUtil.traversePreOrderByIteration(tree.getRoot());\n\n System.out.println(\"\");\n System.out.println(\"=====后序遍历=====\");\n TreeUtil.traversePostOrder(tree.getRoot());\n\n System.out.println(\"\");\n System.out.println(\"=====后序遍历 迭代法=====\");\n TreeUtil.traversePostOrderByIteration(tree.getRoot());\n\n System.out.println(\"\");\n System.out.println(\"=====层次遍历=====\");\n TreeUtil.traverseLevelOrder(tree.getRoot());\n\n int height = TreeUtil.getChildDepth(tree.getRoot());\n System.out.println(\"\");\n System.out.println(\"树高:\"+height);\n }", "public void preorder()\r\n {\r\n preorder(root);\r\n }", "Node leftRotate(Node x) { \n Node y = x.right; \n Node T2 = y.left; \n \n // Perform rotation \n y.left = x; \n x.right = T2; \n \n // Update heights \n x.height = maxInt(heightBST(x.left), heightBST(x.right)) + 1; \n y.height = maxInt(heightBST(y.left), heightBST(y.right)) + 1; \n \n // Return new root \n return y; \n }", "ArrayList<Integer> leftView(Node root)\n {\n \n ArrayList<Integer> ans=new ArrayList<>();\n if(root==null) return ans;\n ans.add(root.data);\n Queue<Node> queue=new LinkedList<>();\n queue.add(root);\n queue.add(null);\n while(!queue.isEmpty()){\n Node curr=queue.poll();\n if(curr==null){\n if(queue.isEmpty()) break;\n ans.add(queue.peek().data);\n queue.add(null);\n }\n else{\n if(curr.left!=null) queue.add(curr.left);\n if(curr.right!=null) queue.add(curr.right);\n }\n }\n return ans;\n }", "public TreeNodeRandom cloneLeftRight(TreeNodeRandom root){\r\n\t\tif(root==null)\r\n\t\t\treturn null;\r\n\t\t//TreeNodeRandom clone = new TreeNodeRandom(root.val);\r\n\t\tTreeNodeRandom left = root.left;\r\n\t\troot.left = new TreeNodeRandom(root.val);\r\n\t\troot.left.left=left;\r\n\t\troot.left.left=left;\r\n\t\tif(left!=null)\r\n\t\t\tleft.left=cloneLeftRight(left);\r\n\t\troot.left.right = cloneLeftRight(root.right);\r\n\t\treturn root.left;\r\n\t}", "private void buildRoot() {\n this.root = new GPRootTreeNode(this.tree);\n }", "public static TreeNode buildTreeNode07() {\n\t\t\n\t\tTreeNode root = new TreeNode(1);\n\t\troot.left = new TreeNode(2);\n\t\troot.left.left = new TreeNode(4);\n\t\troot.left.right = new TreeNode(5);\n\t\troot.left.left.left = new TreeNode(8);\n\t\troot.left.left.right = new TreeNode(9);\n\t\troot.left.right.left = new TreeNode(10);\n\t\troot.left.right.right = new TreeNode(11);\n\t\t\n\t\troot.right = new TreeNode(3);\n\t\troot.right.left = new TreeNode(6);\n\t\troot.right.right = new TreeNode(7);\n\t\troot.right.left.left = new TreeNode(12);\n\t\troot.right.left.right = new TreeNode(13);\n\t\troot.right.right.left = new TreeNode(14);\n\t\troot.right.right.right = new TreeNode(15);\n\t\t\n\t\treturn root;\n\t}", "public static void main(String[] args) {\n TreeNode root = new TreeNode(3);\n root.left = new TreeNode(4);\n root.right = new TreeNode(5);\n root.left.left = new TreeNode(1);\n root.left.right = new TreeNode(2);\n boolean result = isSubtree(root, root.left);\n System.out.println(result);\n }", "@Override\n\tpublic BTree<T> right() \n\t{\n\t\treturn root.right;\n\t}" ]
[ "0.69227713", "0.677775", "0.666454", "0.66385806", "0.659727", "0.6576448", "0.6528542", "0.64919955", "0.6491828", "0.64719754", "0.6466278", "0.6454098", "0.6426687", "0.642475", "0.6413696", "0.6410385", "0.6397663", "0.63893783", "0.6389049", "0.6379102", "0.6366889", "0.63643414", "0.63643414", "0.6359336", "0.6353791", "0.6341415", "0.6335264", "0.63339204", "0.6310643", "0.6304901", "0.63030976", "0.62888235", "0.62832284", "0.6279125", "0.62460434", "0.623779", "0.6229927", "0.6223531", "0.62212", "0.62189674", "0.62175405", "0.6216816", "0.62165266", "0.62137735", "0.62114394", "0.62105197", "0.6208027", "0.62042755", "0.61910856", "0.6186266", "0.6177585", "0.6171636", "0.61702883", "0.61684823", "0.6167153", "0.615956", "0.6145549", "0.61438215", "0.6141153", "0.6136729", "0.6136663", "0.61359453", "0.61190325", "0.61138505", "0.61073786", "0.61013895", "0.6098779", "0.60850567", "0.60817707", "0.6074587", "0.6069996", "0.6056908", "0.60557234", "0.6052816", "0.604973", "0.604657", "0.60461646", "0.6041064", "0.60368794", "0.60313773", "0.6030053", "0.6024092", "0.6023125", "0.60190505", "0.60159844", "0.601249", "0.6009145", "0.600084", "0.6000374", "0.59972453", "0.5992289", "0.5991293", "0.59874344", "0.5979391", "0.5977181", "0.596602", "0.59658295", "0.59627587", "0.59607303", "0.596013", "0.5949604" ]
0.0
-1
Creates new form Alunos
public Alunos() { initComponents(); ButtonGroup bg = new ButtonGroup(); //Agora basta vc adicionar os seus RadioButtons ao objeto desta classe. bg.add(rdNome); bg.add(rdID); bg.add(rdNomeEditar); bg.add(rdIdEditar); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Command\n\tpublic void nuevoAnalista(){\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\n\n\t\t//parametros.put(\"recordMode\", \"NEW\");\n\t\tllamarFormulario(\"formularioAnalistas.zul\", null);\n\t}", "FORM createFORM();", "public static void create(Formulario form){\n daoFormulario.create(form);\n }", "public void createAd(/*Should be a form*/){\n Ad ad = new Ad();\n User owner = this.user;\n Vehicle vehicle = this.vehicle;\n String \n// //ADICIONAR\n ad.setOwner();\n ad.setVehicle();\n ad.setDescription();\n ad.setPics();\n ad.setMain_pic();\n }", "public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }", "public String nuevo() {\n\n\t\tLOG.info(\"Submitado formulario, accion nuevo\");\n\t\tString view = \"/alumno/form\";\n\n\t\t// las validaciones son correctas, por lo cual los datos del formulario estan en\n\t\t// el atributo alumno\n\n\t\t// TODO simular index de la bbdd\n\t\tint id = this.alumnos.size();\n\t\tthis.alumno.setId(id);\n\n\t\tLOG.debug(\"alumno: \" + this.alumno);\n\n\t\t// TODO comprobar edad y fecha\n\n\t\talumnos.add(alumno);\n\t\tview = VIEW_LISTADO;\n\t\tmockAlumno();\n\n\t\t// mensaje flash\n\t\tFacesContext facesContext = FacesContext.getCurrentInstance();\n\t\tExternalContext externalContext = facesContext.getExternalContext();\n\t\texternalContext.getFlash().put(\"alertTipo\", \"success\");\n\t\texternalContext.getFlash().put(\"alertMensaje\", \"Alumno \" + this.alumno.getNombre() + \" creado con exito\");\n\n\t\treturn view + \"?faces-redirect=true\";\n\t}", "@GetMapping(value = \"/create\") // https://localhost:8080/etiquetasTipoDisenio/create\n\tpublic String create(Model model) {\n\t\tetiquetasTipoDisenio etiquetasTipoDisenio = new etiquetasTipoDisenio();\n\t\tmodel.addAttribute(\"title\", \"Registro de una nuev entrega\");\n\t\tmodel.addAttribute(\"etiquetasTipoDisenio\", etiquetasTipoDisenio); // similar al ViewBag\n\t\treturn \"etiquetasTipoDisenio/form\"; // la ubicacion de la vista\n\t}", "public creacionempresa() {\n initComponents();\n mostrardatos();\n }", "public SalidaCajaForm() {\n\t\tinicializarComponentes();\n }", "@Override\n public boolean createApprisialForm(ApprisialFormBean apprisial) {\n apprisial.setGendate(C_Util_Date.generateDate());\n return in_apprisialformdao.createApprisialForm(apprisial);\n }", "public String newBoleta() {\n\t\tresetForm();\n\t\treturn \"/boleta/insert.xhtml\";\n\t}", "public FormInserir() {\n initComponents();\n }", "public void CrearNew(ActionEvent e) {\n List<Pensum> R = ejbFacade.existePensumID(super.getSelected().getIdpensum());\n if(R.isEmpty()){\n super.saveNew(e);\n }else{\n new Auxiliares().setMsj(3,\"PENSUM ID YA EXISTE\");\n }\n }", "public void createAgendamento() {\n\n if (tbagendamento.getTmdataagendamento().after(TimeControl.getDateIni())) {\n if (agendamentoLogic.createTbagendamento(tbagendamento)) {\n AbstractFacesContextUtils.redirectPage(PagesUrl.URL_AGENDAMENTO_LIST);\n AbstractFacesContextUtils.addMessageInfo(\"Agendamento cadastrado com sucesso.\");\n } else {\n AbstractFacesContextUtils.addMessageWarn(\"Falhar ao realizado cadastro do agendamento.\");\n }\n } else {\n AbstractFacesContextUtils.addMessageWarn(\"verifique se a data de agendamento esta correta.\");\n }\n }", "@GetMapping(\"/createRegistro\")\n\tpublic String crearValidacion(Model model) {\n\t\tList<Barrio> localidades = barrioService.obtenerBarrios();\n\t\tmodel.addAttribute(\"localidades\",localidades);\n\t\tmodel.addAttribute(\"persona\",persona);\n\t\tmodel.addAttribute(\"validacion\",validacion);\n\t\tmodel.addAttribute(\"registro\",registro);\n\t\tmodel.addAttribute(\"barrio\",barrio);\n\t\treturn \"RegistroForm\";\n\t}", "@_esCocinero\n public Result crearPaso() {\n Form<Paso> frm = frmFactory.form(Paso.class).bindFromRequest();\n\n // Comprobación de errores\n if (frm.hasErrors()) {\n return status(409, frm.errorsAsJson());\n }\n\n Paso nuevoPaso = frm.get();\n\n // Comprobar autor\n String key = request().getQueryString(\"apikey\");\n if (!SeguridadFunctions.esAutorReceta(nuevoPaso.p_receta.getId(), key))\n return Results.badRequest();\n\n // Checkeamos y guardamos\n if (nuevoPaso.checkAndCreate()) {\n Cachefunctions.vaciarCacheListas(\"pasos\", Paso.numPasos(), cache);\n Cachefunctions.vaciarCacheListas(\"recetas\", Receta.numRecetas(), cache);\n return Results.created();\n } else {\n return Results.badRequest();\n }\n\n }", "private void nuevaLiga() {\r\n\t\tif(Gestion.isModificado()){\r\n\t\t\tint opcion = JOptionPane.showOptionDialog(null, \"¿Desea guardar los cambios?\", \"Nueva Liga\", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null,null, null);\r\n\t\t\tswitch(opcion){\r\n\t\t\tcase JOptionPane.YES_OPTION:\r\n\t\t\t\tguardar();\r\n\t\t\t\tbreak;\r\n\t\t\tcase JOptionPane.NO_OPTION:\r\n\t\t\t\tGestion.reset();\r\n\t\t\t\tbreak;\r\n\t\t\tcase JOptionPane.CANCEL_OPTION:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t\tGestion.reset();\r\n\t\tfrmLigaDeFtbol.setTitle(\"Liga de Fútbol\");\r\n\t}", "public Form_soal() {\n initComponents();\n tampil_soal();\n }", "public void crear(Tarea t) {\n t.saveIt();\n }", "@GetMapping(\"/addPharmacist\")\n public String pharmacistForm(Model model) {\n model.addAttribute(\"pharmacist\", new Pharmacist());\n return \"addPharmacist\";\n }", "private void azzeraInsertForm() {\n\t\tviewInserimento.getCmbbxTipologia().setSelectedIndex(-1);\n\t\tviewInserimento.getTxtFieldDataI().setText(\"\");\n\t\tviewInserimento.getTxtFieldValore().setText(\"\");\n\t\tviewInserimento.getTxtFieldDataI().setBackground(Color.white);\n\t\tviewInserimento.getTxtFieldValore().setBackground(Color.white);\n\t}", "public void clickCreate() {\n\t\tbtnCreate.click();\n\t}", "Compuesta createCompuesta();", "@RequestMapping(method = RequestMethod.POST, value = {\"\",\"/\"})\r\n\tpublic ResponseEntity<FormularioDTO> add(@RequestBody @Valid Formulario formulario) throws AuthenticationException {\r\n\t\tformulario.setInstituicao(new Instituicao(authService.getDados().getInstituicaoId()));\r\n\t\treturn new ResponseEntity<>(formularioService.create(formulario), HttpStatus.CREATED);\r\n\t}", "@GetMapping(\"/producto/nuevo\")\n\tpublic String nuevoProductoForm(Model model) {\n\t\tmodel.addAttribute(\"producto\", new Producto());\n\t\treturn \"app/producto/form\";\n\t}", "@RequestMapping(value = \"/create\", method = RequestMethod.POST)\n public ModelAndView create(@RequestParam(\"horasalida\") Date horasalida,@RequestParam(\"horallegada\") Date horallegada,@RequestParam(\"aeropuerto_idaeropuerto\") Long aeropuerto_idaeropuerto,\n \t\t@RequestParam(\"aeropuerto_idaeropuerto2\") Long aeropuerto_idaeropuerto2,@RequestParam(\"avion_idavion\") Long avion_idavion) {\n Vuelo post=new Vuelo();\n post.setHorallegada(horallegada);\n post.setHorasalida(horasalida);\n\t\t\n post.setAeropuerto_idaeropuerto(aeropuerto_idaeropuerto);\n post.setAeropuerto_idaeropuerto2(aeropuerto_idaeropuerto2);\n post.setAvion_idavion(avion_idavion);\n repository.save(post);\n return new ModelAndView(\"redirect:/vuelos\");\n }", "public frmAfiliado() {\n initComponents();\n \n }", "public GestaoFormando() {\n \n initComponents();\n listarEquipamentos();\n listarmapainscritos();\n }", "@Override\n\tpublic void createForm(ERForm form) {\n\t\t\tString sql = \"insert into project1.reimbursementInfo (userName, fullName, thedate, eventstartdate, thelocation, description, thecost, gradingformat, passingpercentage, eventtype, filename,status,reason) values (?,?,?,?,?,?,?,?,?,?,?,?,?);\";\n\t\t\ttry {PreparedStatement stmt = conn.prepareCall(sql);\n\t\t\t//RID should auto increment, so this isnt necessary\n\t\t\t\n\t\t\tstmt.setString(1, form.getUserName());\n\t\t\tstmt.setString(2, form.getFullName());\n\t\t\tstmt.setDate(3, Date.valueOf(form.getTheDate()));\n\t\t\tstmt.setDate(4, Date.valueOf(form.getEventStartDate()));\n\t\t\tstmt.setString(5, form.getTheLocation());\n\t\t\tstmt.setString(6, form.getDescription());\n\t\t\tstmt.setDouble(7, form.getTheCost());\n\t\t\tstmt.setString(8, form.getGradingFormat());\n\t\t\tstmt.setString(9, form.getPassingPercentage());\n\t\t\tstmt.setString(10, form.getEventType());\n\t\t\tstmt.setString(11, form.getFileName());\n\t\t\tstmt.setString(12, \"pending\");\n\t\t\tstmt.setString(13, \"\");\n\t\t\tstmt.executeUpdate();\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}", "public void crear() {\n con = new Conexion();\n con.setInsertar(\"insert into lenguajes_programacion (nombre, fecha_creacion, estado) values ('\"+this.getNombre()+\"', '\"+this.getFecha_creacion()+\"', 'activo')\");\n }", "@RequestMapping(\"/book/new\")\n public String newBook(Model model){\n model.addAttribute(\"book\", new Book ());\n return \"bookform\";\n }", "public frm_tutor_subida_prueba() {\n }", "public String actionCreateNew() {\r\n \t\tsetBook(new Book());\r\n \t\treturn \"new\";\r\n \t}", "@RequestMapping(params = \"new\", method = RequestMethod.GET)\n\t@PreAuthorize(\"hasRole('ADMIN')\")\n\tpublic String createProductForm(Model model) { \t\n \t\n\t\t//Security information\n\t\tmodel.addAttribute(\"admin\",security.isAdmin()); \n\t\tmodel.addAttribute(\"loggedUser\", security.getLoggedInUser());\n\t\t\n\t model.addAttribute(\"product\", new Product());\n\t return \"products/newProduct\";\n\t}", "public static Result postAddPaper() {\n Form<PaperFormData> formData = Form.form(PaperFormData.class).bindFromRequest();\n Paper info1 = new Paper(formData.get().title, formData.get().authors, formData.get().pages,\n formData.get().channel);\n info1.save();\n return redirect(routes.PaperController.listProject());\n }", "public void crearPersonaje(ActionEvent event) {\r\n\r\n\t\tthis.personaje.setAspecto(url);\r\n\r\n\t\tDatabaseOperaciones.guardarPersonaje(stats, personaje);\r\n\r\n\t\tvisualizaPersonajes();\r\n\t}", "@GetMapping(\"/add\")\n public String showSocioForm(Model model, Persona persona) {\n List<Cargo> cargos = cargoService.getCargos();\n model.addAttribute(\"cargos\", cargos);\n return \"/backoffice/socioForm\";\n }", "public static AssessmentCreationForm openFillCreationForm(Assessment assm) {\n openCreationSearchForm(Roles.STAFF, WingsTopMenu.WingsStaffMenuItem.P_ASSESSMENTS, Popup.Create);\n\n Logger.getInstance().info(\"Fill out the required fields with valid data\");\n AssessmentCreationForm creationForm = new AssessmentCreationForm();\n creationForm.fillAssessmentInformation(new User(Roles.STAFF), assm);\n\n return new AssessmentCreationForm();\n }", "@Override\r\n\t\tpublic void onClick(ClickEvent event) {\n\t\t\tRootPanel.get(\"details\").clear();\r\n\t\t\tuf = new UserForm(AktuellerAnwender.getAnwender());\r\n\t\t\tRootPanel.get(\"details\").add(uf);\r\n\t\t}", "public tambahtoko() {\n initComponents();\n tampilkan();\n form_awal();\n }", "@RequestMapping(value = \"/absensi/tambah/submit\", method = RequestMethod.POST)\n public String tambahSubmit (@NotNull Authentication auth, Model model, @ModelAttribute(\"newAbsen\") AbsenModel newAbsen)\n {\n UserWeb penggunaLogin = (UserWeb)auth.getPrincipal();\n if (penggunaLogin.getUsername().equalsIgnoreCase(null)) {\n return \"redirect:/login\";\n }\n else if (penggunaDAO.selectPenggunaByUsername(penggunaLogin.getUsername())==null) {\n return \"redirect:/logout\";\n }\n else if (!penggunaLogin.getRole().contains(\"ROLE_EMPLOYEE\")) {\n return \"redirect:/\";\n }\n //end of check\n\n int id_employee = absenDAO.selectIdByUsername(penggunaLogin.getUsername());\n newAbsen.setId_employee(id_employee);\n if(absenDAO.cekAbsen(newAbsen) == null){\n absenDAO.addAbsen(newAbsen);\n return \"redirect:/absen/kelola?success=menambah\";\n } else {\n model.addAttribute(\"message\", \"Absensi pada tanggal \" +newAbsen.getTanggal_absen() + \" gagal dibuat\");\n return \"redirect:/absen/kelola?gagal=menambah\";\n }\n\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 }", "@GetMapping(\"/restaurante/new\")\n\tpublic String newRestaurante(Model model) {\n\t\tmodel.addAttribute(\"restaurante\", new Restaurante());\n\t\tControllerHelper.setEditMode(model, false);\n\t\tControllerHelper.addCategoriasToRequest(categoriaRestauranteRepository, model);\n\t\t\n\t\treturn \"restaurante-cadastro\";\n\t\t\n\t}", "protected void nuevo(){\n wp = new frmEspacioTrabajo();\n System.runFinalization();\n inicializar();\n }", "public void crearAbonar(){\n \t\n getContentPane().setLayout(new BorderLayout());\n \n p1 = new JPanel();\n\t\tp2 = new JPanel();\n \n\t\t// Not used anymore\n\t\t//String[] a={\"Regresar\",\"Continuar\"},c={\"Cuenta\",\"Monto\"};\n \n\t\t// Layout : # row, # columns\n\t\tp1.setLayout(new GridLayout(1,2));\n \n\t\t// Create the JTextField : Cuenta\n\t\t// And add it to the panel\n tf = new JTextField(\"Cuenta\");\n textos.add(tf);\n tf.setPreferredSize(new Dimension(10,100));\n p1.add(tf);\n\n\t\t// Create the JTextField : Monto\n\t\t// And add it to the panel\n tf = new JTextField(\"Monto\");\n textos.add(tf);\n tf.setPreferredSize(new Dimension(10,100));\n p1.add(tf);\n \n // Add the panel to the Frame layout\n add(p1, BorderLayout.NORTH);\n \n // Create the button Regresar\n buttonRegresar = new JButton(\"Regresar\");\n botones.add(buttonRegresar);\n\n // Create the button Continuar\n buttonContinuar = new JButton(\"Continuar\");\n botones.add(buttonContinuar);\n \n // Layout : 1 row, 2 columns\n p2.setLayout(new GridLayout(1,2));\n \n // Add the buttons to the layout\n for(JButton x:botones){\n x.setPreferredSize(new Dimension(110,110));\n p2.add(x);\n }\n \n // Add the panel to the Frame layout\n add(p2, BorderLayout.SOUTH);\n }", "public CreateAccount() {\n initComponents();\n selectionall();\n }", "@GetMapping(\"/showFormForAdd\")\n public String showFormForAdd(Model theModel) {\n Categories theCategories = new Categories();\n theModel.addAttribute(\"categories\", theCategories);\n //theModel.addAttribute(\"update\", false);\n return \"loaisanpham-form\"; }", "@RequestMapping(value=\"/formpaciente\")\r\n\tpublic String crearPaciente(Map<String, Object> model) {\t\t\r\n\t\t\r\n\t\tPaciente paciente = new Paciente();\r\n\t\tmodel.put(\"paciente\", paciente);\r\n\t\tmodel.put(\"obrasociales\",obraSocialService.findAll());\r\n\t\t//model.put(\"obrasPlanesForm\", new ObrasPlanesForm());\r\n\t\t//model.put(\"planes\", planService.findAll());\r\n\t\tmodel.put(\"titulo\", \"Formulario de Alta de Paciente\");\r\n\t\t\r\n\t\treturn \"formpaciente\";\r\n\t}", "@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}", "private void createBtnActionPerformed(java.awt.event.ActionEvent evt) {\n\n staff.setName(regName.getText());\n staff.setID(regID.getText());\n staff.setPassword(regPwd.getText());\n staff.setPosition(regPos.getSelectedItem().toString());\n staff.setGender(regGender.getSelectedItem().toString());\n staff.setEmail(regEmail.getText());\n staff.setPhoneNo(regPhone.getText());\n staff.addStaff();\n if (staff.getPosition().equals(\"Vet\")) {\n Vet vet = new Vet();\n vet.setExpertise(regExp.getSelectedItem().toString());\n vet.setExpertise_2(regExp2.getSelectedItem().toString());\n vet.addExpertise(staff.getID());\n }\n JOptionPane.showMessageDialog(null, \"User added to database\");\n updateJTable();\n }", "public String crea() {\n c.setId(0);\n clienteDAO.crea(c); \n //Post-Redirect-Get\n return \"visualiza?faces-redirect=true&id=\"+c.getId();\n }", "@GetMapping(\"/directorForm\")\n public String addDirectors(Model model) {\n\n model.addAttribute(\"newDirector\", new Director());\n return \"directorForm\";\n }", "@Override\n\tpublic void onFormCreate(AbstractForm arg0, DataMsgBus arg1) {\n\t}", "public Result addNewRoomType() {\n\n DynamicForm dynamicform = Form.form().bindFromRequest();\n if (dynamicform.get(\"AdminAddRoom\") != null) {\n\n return ok(views.html.AddRoomType.render());\n }\n\n\n return ok(\"Something went wrong\");\n }", "public Result createRoom() {\n\n DynamicForm dynamicForm = Form.form().bindFromRequest();\n String roomType = dynamicForm.get(\"roomType\");\n Double price = Double.parseDouble(dynamicForm.get(\"price\"));\n int bedCount = Integer.parseInt(dynamicForm.get(\"beds\"));\n String wifi = dynamicForm.get(\"wifi\");\n String smoking = dynamicForm.get(\"smoking\");\n\n RoomType roomTypeObj = new RoomType(roomType, price, bedCount, wifi, smoking);\n\n if (dynamicForm.get(\"AddRoomType\") != null) {\n\n Ebean.save(roomTypeObj);\n String message = \"New Room type is created Successfully\";\n\n return ok(views.html.RoomTypeUpdateSuccess.render(message));\n } else{\n\n String message = \"Failed to create a new Room type\";\n\n return ok(views.html.RoomTypeUpdateSuccess.render(message));\n\n }\n\n\n\n }", "@PostMapping( value = \"/new\", params = \"auto\" )\n public String createEventFormAutoPopulate( @ModelAttribute CreateEventForm createEventForm )\n {\n // provide default values to make user submission easier\n createEventForm.setSummary( \"A new event....\" );\n createEventForm.setDescription( \"This was autopopulated to save time creating a valid event.\" );\n createEventForm.setWhen( new Date() );\n\n // make the attendee not the current user\n CalendarUser currentUser = userContext.getCurrentUser();\n int attendeeId = currentUser.getId() == 0 ? 1 : 0;\n CalendarUser attendee = calendarService.getUser( attendeeId );\n createEventForm.setAttendeeEmail( attendee.getEmail() );\n\n return \"events/create\";\n }", "@Override\n\tpublic void create(CreateCoinForm form) throws Exception {\n\t}", "public frmPrincipal() {\n initComponents(); \n inicializar();\n \n }", "@Override\n\tpublic Oglas createNewOglas(NewOglasForm oglasForm) {\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\n\t\tOglas oglas = new Oglas();\n\t\tSystem.out.println(oglas.getId());\n\t\toglas.setNaziv(oglasForm.getNaziv());\n\t\toglas.setOpis(oglasForm.getOpis());\n\t\ttry {\n\t\t\toglas.setDatum(formatter.parse(oglasForm.getDatum()));\n\t\t\tSystem.out.println(oglas.getDatum());\n System.out.println(formatter.format(oglas.getDatum()));\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn repository.save(oglas);\n\t}", "@FXML\n\tpublic void createProduct(ActionEvent event) {\n\t\tif (!txtProductName.getText().equals(\"\") && !txtProductPrice.getText().equals(\"\")\n\t\t\t\t&& ComboSize.getValue() != null && ComboType.getValue() != null && selectedIngredients.size() != 0) {\n\n\t\t\tProduct objProduct = new Product(txtProductName.getText(), ComboSize.getValue(), txtProductPrice.getText(),\n\t\t\t\t\tComboType.getValue(), selectedIngredients);\n\n\t\t\ttry {\n\t\t\t\trestaurant.addProduct(objProduct, empleadoUsername);\n\n\t\t\t\ttxtProductName.setText(null);\n\t\t\t\ttxtProductPrice.setText(null);\n\t\t\t\tComboSize.setValue(null);\n\t\t\t\tComboType.setValue(null);\n\t\t\t\tChoiceIngredients.setValue(null);\n\t\t\t\tselectedIngredients.clear();\n\t\t\t\tproductOptions.clear();\n\t\t\t\tproductOptions.addAll(restaurant.getStringReferencedIdsProducts());\n\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"Todos los campos deben de ser llenados\");\n\t\t\tdialog.setTitle(\"Error al guardar los datos\");\n\t\t\tdialog.show();\n\t\t}\n\n\t}", "public abstract Anuncio creaAnuncioTematico();", "@FXML\r\n private void crearSolicitud() {\r\n try {\r\n //Carga la vista de crear solicitud rma\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(Principal.class.getResource(\"/vista/CrearSolicitud.fxml\"));\r\n BorderPane vistaCrear = (BorderPane) loader.load();\r\n\r\n //Crea un dialogo para mostrar la vista\r\n Stage dialogo = new Stage();\r\n dialogo.setTitle(\"Solicitud RMA\");\r\n dialogo.initModality(Modality.WINDOW_MODAL);\r\n dialogo.initOwner(primerStage);\r\n Scene escena = new Scene(vistaCrear);\r\n dialogo.setScene(escena);\r\n\r\n //Annadir controlador y datos\r\n ControladorCrearSolicitud controlador = loader.getController();\r\n controlador.setDialog(dialogo, primerStage);\r\n\r\n //Carga el numero de Referencia\r\n int numReferencia = DAORma.crearReferencia();\r\n\r\n //Modifica el dialogo para que no se pueda cambiar el tamaño y lo muestra\r\n dialogo.setResizable(false);\r\n dialogo.showAndWait();\r\n\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public CreateTremaDbDialogForm(AnActionEvent event) {\n this.event = event;\n this.windowTitle = \"New Trema XML database file\";\n init();\n }", "@RequestMapping(value={\"/projects/add\"}, method= RequestMethod.GET)\r\n\tpublic String createProjectForm(Model model) {\r\n\t\tUser loggedUser= sessionData.getLoggedUser();\r\n\t\tmodel.addAttribute(\"loggedUser\", loggedUser);\r\n\t\tmodel.addAttribute(\"projectForm\", new Project());\r\n\t\treturn \"addProject\";\r\n\t}", "public void addNewAnimalAction() {\n\t\tAnimalModel newAnimalModel = new AnimalModel(\"\", \"\");\n\n\t\teditAnimalDetail(newAnimalModel, AnimalDetailPanel.NEW_ANIMAL);\n\t}", "@FXML\n\tpublic void buttonCreateProductType(ActionEvent event) {\n\t\tString empty = \"\";\n\t\tString name = txtProductTypeName.getText();\n\t\tif (!name.equals(empty)) {\n\t\t\tProductType obj = new ProductType(txtProductTypeName.getText());\n\t\t\ttry {\n\t\t\t\tboolean found = restaurant.addProductType(obj, empleadoUsername); // Se añade a la lista de tipos de\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// producto DEL RESTAURANTE\n\t\t\t\tif (found == false) {\n\t\t\t\t\ttypeOptions.add(name);// Se añade a la lista de tipos de producto para ser mostrada en los combobox\n\t\t\t\t}\n\t\t\t\ttxtProductTypeName.setText(\"\");\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"El tipo de producto a crear debe tener un nombre \");\n\t\t\tdialog.setTitle(\"Error, Campo sin datos\");\n\t\t\tdialog.show();\n\n\t\t}\n\t}", "public FormFuncionario(FormMenu telaPai) {\n initComponents();\n this.telaPai = telaPai;\n\n txtNome.setText(\"Nome\");\n lblNome.setVisible(false);\n txtSobrenome.setText(\"Sobrenome\");\n lblSobrenome.setVisible(false);\n campoMensagem.setVisible(false);\n lblMensagem.setVisible(false);\n\n }", "@GetMapping(\"/create\")\n public ModelAndView create(@ModelAttribute(\"form\") final CardCreateForm form) {\n return getCreateForm(form);\n }", "public String formCreated()\r\n {\r\n return formError(\"201 Created\",\"Object was created\");\r\n }", "public Team create(TeamDTO teamForm);", "com.soa.SolicitarServicioDocument.SolicitarServicio addNewSolicitarServicio();", "public Form(){\n\t\ttypeOfLicenseApp = new TypeOfLicencsApplication();\n\t\toccupationalTrainingList = new ArrayList<OccupationalTraining>();\n\t\taffiadavit = new Affidavit();\n\t\tapplicationForReciprocity = new ApplicationForReciprocity();\n\t\teducationBackground = new EducationBackground();\n\t\toccupationalLicenses = new OccupationalLicenses();\n\t\tofficeUseOnlyInfo = new OfficeUseOnlyInfo();\n\t}", "@Override\r\n\tprotected void agregarObjeto() {\r\n\t\t// opcion 1 es agregar nuevo justificativo\r\n\t\tthis.setTitle(\"PROCESOS - PERMISOS INDIVIDUALES (AGREGANDO)\");\r\n\t\tthis.opcion = 1;\r\n\t\tactivarFormulario();\r\n\t\tlimpiarTabla();\r\n\t\tthis.panelBotones.habilitar();\r\n\t}", "public static Result newProduct() {\n Form<models.Product> productForm = form(models.Product.class).bindFromRequest();\n if(productForm.hasErrors()) {\n return badRequest(\"Tag name cannot be 'tag'.\");\n }\n models.Product product = productForm.get();\n product.save();\n return ok(product.toString());\n }", "public CrearPedidos() {\n initComponents();\n }", "public CrearProductos() {\n initComponents();\n }", "public void onNew() {\t\t\n\t\tdesignWidget.addNewForm();\n\t}", "Documento createDocumento();", "public FormUtama() {\n initComponents();\n }", "public void crearAutomovil(){\r\n automovil = new Vehiculo();\r\n automovil.setMarca(\"BMW\");\r\n automovil.setModelo(2010);\r\n automovil.setPlaca(\"TWS435\");\r\n }", "public String createQuiz() {\n quiz = quizEJB.createQuiz(quiz);\n quizList = quizEJB.listQuiz();\n FacesContext.getCurrentInstance().addMessage(\"successForm:successInput\", new FacesMessage(FacesMessage.SEVERITY_INFO, \"Success\", \"New record added successfully\"));\n return \"quiz-list.xhtml\";\n }", "private void paginaAddAluno(JPanel quadroAddAluno){\n\t\t\tJLabel lblAdcionandoUmAluno = new JLabel(\"ADICIONANDO UM ALUNO\");\n\t\t\tlblAdcionandoUmAluno.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 26));\n\t\t\tlblAdcionandoUmAluno.setBounds(215, 135, 334, 32);\n\t\t\tquadroAddAluno.add(lblAdcionandoUmAluno);\n\t\t\t\n\t\t\tJLabel lblParaAdiconarUm = new JLabel(\"PARA ADICONAR UM ALUNO AO SISTEMA, BASTA COLOCAR O NOME, SOBRENOME DO NOVO ALUNO\");\n\t\t\tlblParaAdiconarUm.setBounds(73, 226, 648, 16);\n\t\t\tquadroAddAluno.add(lblParaAdiconarUm);\n\t\t\t\n\t\t\tJLabel lblNome = new JLabel(\"NOME:\");\n\t\t\tlblNome.setBounds(138, 341, 61, 16);\n\t\t\tquadroAddAluno.add(lblNome);\n\t\t\t\n\t\t\taddNome = new JFormattedTextField();\n\t\t\taddNome.setBounds(187, 336, 477, 26);\n\t\t\tquadroAddAluno.add(addNome);\n\t\t\taddNome.setColumns(10);\n\t\t\t\n\t\t\tJLabel lblSobrenome = new JLabel(\"SOBRENOME:\");\n\t\t\tlblSobrenome.setBounds(138, 434, 81, 16);\n\t\t\tquadroAddAluno.add(lblSobrenome);\n\t\t\t\n\t\t\taddSobrenome = new JFormattedTextField();\n\t\t\taddSobrenome.setBounds(231, 429, 433, 26);\n\t\t\tquadroAddAluno.add(addSobrenome);\n\t\t\taddSobrenome.setColumns(10);\n\t\t\t\n\t\t\tJButton btnNewButton = new JButton(\"ADICIONAR\");\n\t\t\tbtnNewButton.setBounds(336, 619, 117, 29);\n\t\t\tquadroAddAluno.add(btnNewButton);\n\t\t\t\n\t\t\tJLabel lblAoClicarEm = new JLabel(\"AO CLICAR EM ADICIONAR, UMA MENSAGEM SERÁ EXIBIDA INFORMANDO SE O ALUNO FOI ADIOCIONADO COM SUCESSO\");\n\t\t\tlblAoClicarEm.setBounds(20, 531, 763, 32);\n\t\t\tquadroAddAluno.add(lblAoClicarEm);\n\t\t}", "@Override\n\tpublic Pane generateForm() {\n\t\treturn painelPrincipal;\n\t}", "private void creatingElements() {\n\t\ttf1 = new JTextField(20);\n\t\ttf2 = new JTextField(20);\n\t\ttf3 = new JTextField(20);\n\t\tJButton btn = new JButton(\"Add\");\n\t\tbtn.addActionListener(control);\n\t\tbtn.setActionCommand(\"add\");\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tpanel.add(tf1);\n\t\tpanel.add(tf2);\n\t\tpanel.add(btn);\n\t\tpanel.add(tf3);\n\t\t\n\t\tthis.add(panel);\n\t\t\n\t\tthis.validate();\n\t\tthis.repaint();\t\t\n\t\t\n\t}", "protected void creaPagine() {\n Pagina pag;\n Pannello pan;\n\n try { // prova ad eseguire il codice\n\n /* crea la pagina e aggiunge campi e pannelli */\n pag = this.addPagina(\"generale\");\n\n pan = PannelloFactory.orizzontale(this);\n pan.add(Cam.data);\n pan.add(Cam.importo.get());\n pan.add(Cam.note.get());\n pag.add(pan);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "static public ApplicationFormItem createNew(int id, String shortname, boolean required, ApplicationFormItemType type,\n\t\t\t\t\t\t\t\t\t\t\t\tString federationAttribute, String perunSourceAttribute, String perunDestinationAttribute, String regex,\n\t\t\t\t\t\t\t\t\t\t\t\tList<Application.ApplicationType> applicationTypes, Integer ordnum, boolean forDelete)\t{\n\t\tApplicationFormItem afi = new JSONObject().getJavaScriptObject().cast();\n\t\tafi.setId(id);\n\t\tafi.setShortname(shortname);\n\t\tafi.setRequired(required);\n\t\tafi.setType(type);\n\t\tafi.setFederationAttribute(federationAttribute);\n\t\tafi.setPerunSourceAttribute(perunSourceAttribute);\n\t\tafi.setPerunDestinationAttribute(perunDestinationAttribute);\n\t\tafi.setRegex(regex);\n\t\tafi.setApplicationTypes(applicationTypes);\n\t\tafi.setOrdnum(ordnum);\n\t\tafi.setForDelete(forDelete);\n\t\treturn afi;}", "public CrearQuedadaVista() {\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 }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tvista.FormInsertarUsuario formInsertarUser = new FormInsertarUsuario();\r\n\t\t\t\tformInsertarUser.main();\r\n\t\t\t}", "@GetMapping(\"/cliente/new\")\n\tpublic String newCliente(Model model) {\n\t\tmodel.addAttribute(\"cliente\", new Cliente());\n\t\tControllerHelper.setEditMode(model, false);\n\t\t\n\t\t\n\t\treturn \"cadastro-cliente\";\n\t\t\n\t}", "public formPrincipal() {\n initComponents();\n }", "@Override\n public void buttonClick(ClickEvent event) {\n \n \ttry {\n\t\t\t\t\tUI.getCurrent().getNavigator().addView(_nombreSeccion + \"Adm/\" + _titulo.getCaption(), new AdministradorClase(new Lista_Mensaje_V_Administrador(it.getIdTema())));\n\t\t\t\t} catch (PersistentException 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\tUI.getCurrent().getNavigator().navigateTo(_nombreSeccion+ \"Adm/\" + _titulo.getCaption());\n \t\n \t\n }", "public VentanaPrincipal() {\n initComponents();\n editar = false;\n }", "@GetMapping(\"/add\")\n\tpublic String showFormForAdd(Model model) {\n\t\tMemo memo = new Memo();\n\t\t\n\t\t// load categories for select options\n\t\tMap<String, String> mapCategories = generateMapCategories();\n\t\t\n\t\t// add to the model\n\t\tmodel.addAttribute(\"memo\", memo);\n\t\tmodel.addAttribute(\"categories\", mapCategories);\n\t\t\n\t\treturn \"add\";\n\t}", "public TorneoForm() {\n initComponents();\n }", "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}", "public FormCadastroAutomovel() {\n initComponents();\n }", "@RequestMapping(value = { \"/new\"}, method = RequestMethod.GET)\n\tpublic String newEntity(ModelMap model) {\n\t\tENTITY entity = createEntity();\n\n\t\tmodel.addAttribute(\"entity\", entity);\n\t\tmodel.addAttribute(\"edit\", false);\n\t\tmodel.addAttribute(\"loggedinuser\", getPrincipal());\n\t\treturn viewBaseLocation + \"/form\";\n\t}", "private void addInstituicao() {\n\n if (txtNome.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"Campo Nome Invalido\");\n txtNome.grabFocus();\n return;\n } else if (txtNatureza.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"Campo Natureza Invalido\");\n txtNatureza.grabFocus();\n return;\n }\n if ((instituicao == null) || (instituicaoController == null)) {\n instituicao = new Instituicao();\n instituicaoController = new InstituicaoController();\n }\n instituicao.setNome(txtNome.getText());\n instituicao.setNatureza_administrativa(txtNatureza.getText());\n if (instituicaoController.insereInstituicao(instituicao)) {\n limpaCampos();\n JOptionPane.showMessageDialog(null, \"Instituicao Cadastrada com Sucesso\");\n }\n }", "void validateActivoCreate(Activo activo);", "Paper addNewPaper(PaperForm form, Long courseId)throws Exception;" ]
[ "0.69779015", "0.6765107", "0.6609289", "0.65468925", "0.6441766", "0.6333465", "0.6313686", "0.6270863", "0.6239766", "0.62085015", "0.6083027", "0.60665804", "0.60583246", "0.60341215", "0.60079306", "0.59718066", "0.592495", "0.59197885", "0.58933717", "0.5893247", "0.58731437", "0.58514035", "0.58396435", "0.5839127", "0.58299357", "0.5828387", "0.58047056", "0.5791872", "0.5771735", "0.5769099", "0.57672316", "0.5763715", "0.5762619", "0.57492673", "0.5743983", "0.57423586", "0.57401127", "0.5728714", "0.5725703", "0.5705907", "0.5705875", "0.5693916", "0.56869614", "0.5680497", "0.56772166", "0.56550884", "0.565217", "0.5647399", "0.5637325", "0.563267", "0.5622387", "0.5620061", "0.5610572", "0.56050295", "0.56019855", "0.5584741", "0.55771565", "0.5573127", "0.5571744", "0.55689245", "0.55661285", "0.5556541", "0.5554912", "0.5549519", "0.5545757", "0.5532875", "0.5532803", "0.5519607", "0.55173326", "0.55135655", "0.55122316", "0.5511201", "0.55103946", "0.5509796", "0.5504332", "0.5499591", "0.5494912", "0.5493348", "0.548948", "0.54852045", "0.54779065", "0.54753447", "0.54732174", "0.54695636", "0.5466885", "0.5460282", "0.5456893", "0.5453628", "0.5450605", "0.54471344", "0.54431933", "0.54411304", "0.544074", "0.54380375", "0.54377675", "0.54365534", "0.54354537", "0.5422815", "0.5422011", "0.54218096", "0.54185694" ]
0.0
-1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jMenuItem1 = new javax.swing.JMenuItem(); menuBar1 = new java.awt.MenuBar(); menu1 = new java.awt.Menu(); menu2 = new java.awt.Menu(); jRadioButtonMenuItem1 = new javax.swing.JRadioButtonMenuItem(); jCheckBoxMenuItem1 = new javax.swing.JCheckBoxMenuItem(); jMenu1 = new javax.swing.JMenu(); jFrame1 = new javax.swing.JFrame(); jocPaneGroup1 = new com.xzq.osc.JocPaneGroup(); jFrame2 = new javax.swing.JFrame(); buttonGroup1 = new javax.swing.ButtonGroup(); jFrame3 = new javax.swing.JFrame(); buttonGroup2 = new javax.swing.ButtonGroup(); buttonGroup3 = new javax.swing.ButtonGroup(); buttonGroup4 = new javax.swing.ButtonGroup(); buttonGroup5 = new javax.swing.ButtonGroup(); buttonGroup6 = new javax.swing.ButtonGroup(); buttonGroup7 = new javax.swing.ButtonGroup(); buttonGroup9 = new javax.swing.ButtonGroup(); buttonGroup8 = new javax.swing.ButtonGroup(); jFrame4 = new javax.swing.JFrame(); jPanel2 = new javax.swing.JPanel(); jTabbedPane2 = new javax.swing.JTabbedPane(); jPanel5 = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jLabel6 = new javax.swing.JLabel(); jLabel7 = new javax.swing.JLabel(); jLabel8 = new javax.swing.JLabel(); jLabel9 = new javax.swing.JLabel(); txtNome = new javax.swing.JTextField(); txtIdade = new javax.swing.JTextField(); txtEndereco = new javax.swing.JTextField(); txtEmail = new javax.swing.JTextField(); txtNomePai = new javax.swing.JTextField(); txtNomeMae = new javax.swing.JTextField(); cbUF = new javax.swing.JComboBox(); cbCidade = new javax.swing.JComboBox(); jlHora = new javax.swing.JPanel(); btnAlunos2 = new javax.swing.JButton(); btnSalvar2 = new javax.swing.JButton(); tbnExcluir2 = new javax.swing.JButton(); btnPesquisar2 = new javax.swing.JButton(); btnSair2 = new javax.swing.JButton(); jLabel26 = new javax.swing.JLabel(); jButton2 = new javax.swing.JButton(); JlHora = new javax.swing.JLabel(); jlData = new javax.swing.JLabel(); txtTelefone = new javax.swing.JFormattedTextField(); jPanel7 = new javax.swing.JPanel(); jScrollPane3 = new javax.swing.JScrollPane(); tblExcuir = new javax.swing.JTable(); jPanel4 = new javax.swing.JPanel(); jLabel12 = new javax.swing.JLabel(); txtExcluir = new javax.swing.JTextField(); jLabel10 = new javax.swing.JLabel(); txtNomeAlunoExcluir = new javax.swing.JTextField(); jPanel11 = new javax.swing.JPanel(); btnAlunos1 = new javax.swing.JButton(); btnSalvar1 = new javax.swing.JButton(); tbnExcluir1 = new javax.swing.JButton(); btnPesquisar1 = new javax.swing.JButton(); btnSair1 = new javax.swing.JButton(); jPanel15 = new javax.swing.JPanel(); jPanel16 = new javax.swing.JPanel(); jLabel24 = new javax.swing.JLabel(); txtPesquisaExcluir = new javax.swing.JTextField(); btnEditarAluno1 = new javax.swing.JButton(); jPanel6 = new javax.swing.JPanel(); jScrollPane2 = new javax.swing.JScrollPane(); tbEditar = new javax.swing.JTable(); jLabel13 = new javax.swing.JLabel(); txtIdEditar = new javax.swing.JTextField(); jLabel14 = new javax.swing.JLabel(); txtNomeEditar = new javax.swing.JTextField(); txtEnderecoEditar = new javax.swing.JTextField(); jLabel15 = new javax.swing.JLabel(); jLabel16 = new javax.swing.JLabel(); txtEmailEditar = new javax.swing.JTextField(); jLabel17 = new javax.swing.JLabel(); txtPaiEditar = new javax.swing.JTextField(); txtMaeEditar = new javax.swing.JTextField(); jLabel18 = new javax.swing.JLabel(); cbUfEditar = new javax.swing.JComboBox(); jLabel19 = new javax.swing.JLabel(); jLabel20 = new javax.swing.JLabel(); cbCidadeEditar = new javax.swing.JComboBox(); jLabel21 = new javax.swing.JLabel(); txtTelefoneEditar = new javax.swing.JTextField(); jLabel22 = new javax.swing.JLabel(); txtIdadeEditar = new javax.swing.JTextField(); jPanel13 = new javax.swing.JPanel(); btnAlunos3 = new javax.swing.JButton(); btnSalvar3 = new javax.swing.JButton(); tbnExcluir3 = new javax.swing.JButton(); btnPesquisar3 = new javax.swing.JButton(); btnSair3 = new javax.swing.JButton(); jButton1 = new javax.swing.JButton(); jPanel14 = new javax.swing.JPanel(); jpEditar = new javax.swing.JPanel(); rdNomeEditar = new javax.swing.JRadioButton(); rdIdEditar = new javax.swing.JRadioButton(); jLabel23 = new javax.swing.JLabel(); txtbuscaEditar = new javax.swing.JTextField(); btnEditarAluno = new javax.swing.JButton(); jPanel8 = new javax.swing.JPanel(); jScrollPane1 = new javax.swing.JScrollPane(); tblAlunos = new javax.swing.JTable(); jPanel10 = new javax.swing.JPanel(); jPanel3 = new javax.swing.JPanel(); rdNome = new javax.swing.JRadioButton(); rdID = new javax.swing.JRadioButton(); jLabel11 = new javax.swing.JLabel(); txtVbusca = new javax.swing.JTextField(); btnPesquisaAluno = new javax.swing.JButton(); jPanel1 = new javax.swing.JPanel(); btnAlunos = new javax.swing.JButton(); btnSalvar = new javax.swing.JButton(); tbnExcluir = new javax.swing.JButton(); btnPesquisar = new javax.swing.JButton(); btnSair = new javax.swing.JButton(); jPanel9 = new javax.swing.JPanel(); jPanel12 = new javax.swing.JPanel(); jLabel25 = new javax.swing.JLabel(); jLabel27 = new javax.swing.JLabel(); jLabel30 = new javax.swing.JLabel(); jLabel31 = new javax.swing.JLabel(); jPanel17 = new javax.swing.JPanel(); jLabel28 = new javax.swing.JLabel(); jLabel29 = new javax.swing.JLabel(); jMenuBar1 = new javax.swing.JMenuBar(); jMenuItem1.setText("jMenuItem1"); menu1.setLabel("File"); menuBar1.add(menu1); menu2.setLabel("Edit"); menuBar1.add(menu2); jRadioButtonMenuItem1.setSelected(true); jRadioButtonMenuItem1.setText("jRadioButtonMenuItem1"); jCheckBoxMenuItem1.setSelected(true); jCheckBoxMenuItem1.setText("jCheckBoxMenuItem1"); jMenu1.setText("jMenu1"); javax.swing.GroupLayout jFrame1Layout = new javax.swing.GroupLayout(jFrame1.getContentPane()); jFrame1.getContentPane().setLayout(jFrame1Layout); jFrame1Layout.setHorizontalGroup( jFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 400, Short.MAX_VALUE) ); jFrame1Layout.setVerticalGroup( jFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 300, Short.MAX_VALUE) ); javax.swing.GroupLayout jFrame2Layout = new javax.swing.GroupLayout(jFrame2.getContentPane()); jFrame2.getContentPane().setLayout(jFrame2Layout); jFrame2Layout.setHorizontalGroup( jFrame2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 400, Short.MAX_VALUE) ); jFrame2Layout.setVerticalGroup( jFrame2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 300, Short.MAX_VALUE) ); javax.swing.GroupLayout jFrame3Layout = new javax.swing.GroupLayout(jFrame3.getContentPane()); jFrame3.getContentPane().setLayout(jFrame3Layout); jFrame3Layout.setHorizontalGroup( jFrame3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 400, Short.MAX_VALUE) ); jFrame3Layout.setVerticalGroup( jFrame3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 300, Short.MAX_VALUE) ); javax.swing.GroupLayout jFrame4Layout = new javax.swing.GroupLayout(jFrame4.getContentPane()); jFrame4.getContentPane().setLayout(jFrame4Layout); jFrame4Layout.setHorizontalGroup( jFrame4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 400, Short.MAX_VALUE) ); jFrame4Layout.setVerticalGroup( jFrame4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 300, Short.MAX_VALUE) ); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setTitle("Alunos"); setResizable(false); addWindowListener(new java.awt.event.WindowAdapter() { public void windowOpened(java.awt.event.WindowEvent evt) { formWindowOpened(evt); } }); jTabbedPane2.setPreferredSize(new java.awt.Dimension(960, 634)); jPanel5.addComponentListener(new java.awt.event.ComponentAdapter() { public void componentShown(java.awt.event.ComponentEvent evt) { jPanel5ComponentShown(evt); } }); jLabel1.setText("Nome:"); jLabel2.setText("Idade:"); jLabel3.setText("Endereço:"); jLabel4.setText("Telefone"); jLabel5.setText("Email:"); jLabel6.setText("Cidade:"); jLabel7.setText("Nome do Pai:"); jLabel8.setText("Nome da Mãe:"); jLabel9.setText("UF:"); txtEmail.addFocusListener(new java.awt.event.FocusAdapter() { public void focusLost(java.awt.event.FocusEvent evt) { txtEmailFocusLost(evt); } }); cbUF.setInheritsPopupMenu(true); cbUF.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cbUFActionPerformed(evt); } }); cbCidade.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { cbCidadeItemStateChanged(evt); } }); btnAlunos2.setText("Inserir"); btnAlunos2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnAlunos2ActionPerformed(evt); } }); btnSalvar2.setText("salva"); btnSalvar2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnSalvar2ActionPerformed(evt); } }); tbnExcluir2.setText("excluir"); tbnExcluir2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { tbnExcluir2ActionPerformed(evt); } }); btnPesquisar2.setText("pesquisar"); btnSair2.setText("sair"); btnSair2.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { btnSair2MouseClicked(evt); } }); jButton2.setText("Limpa Campor"); jButton2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton2ActionPerformed(evt); } }); javax.swing.GroupLayout jlHoraLayout = new javax.swing.GroupLayout(jlHora); jlHora.setLayout(jlHoraLayout); jlHoraLayout.setHorizontalGroup( jlHoraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jlHoraLayout.createSequentialGroup() .addGap(702, 702, 702) .addComponent(jLabel26, javax.swing.GroupLayout.PREFERRED_SIZE, 99, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(20, Short.MAX_VALUE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jlHoraLayout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnAlunos2, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnSalvar2) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(tbnExcluir2) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnPesquisar2) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButton2) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnSair2) .addGap(98, 98, 98)) ); jlHoraLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {btnAlunos2, btnPesquisar2, btnSair2, btnSalvar2, jButton2, tbnExcluir2}); jlHoraLayout.setVerticalGroup( jlHoraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jlHoraLayout.createSequentialGroup() .addContainerGap() .addComponent(jLabel26) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jlHoraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(btnAlunos2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jlHoraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(btnSalvar2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(tbnExcluir2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnPesquisar2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnSair2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jButton2))) .addContainerGap(22, Short.MAX_VALUE)) ); jlHoraLayout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {btnAlunos2, btnPesquisar2, btnSair2, btnSalvar2, jButton2, tbnExcluir2}); try { txtTelefone.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter("(##)#####-####"))); } catch (java.text.ParseException ex) { ex.printStackTrace(); } javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5); jPanel5.setLayout(jPanel5Layout); jPanel5Layout.setHorizontalGroup( jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel5Layout.createSequentialGroup() .addContainerGap() .addComponent(jlHora, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(jPanel5Layout.createSequentialGroup() .addGap(34, 34, 34) .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jLabel3) .addComponent(txtEndereco) .addComponent(txtEmail) .addComponent(txtNomePai, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel1) .addComponent(txtNome, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 250, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(jLabel5) .addComponent(jLabel7)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addGroup(jPanel5Layout.createSequentialGroup() .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel9) .addComponent(cbUF, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(cbCidade, javax.swing.GroupLayout.PREFERRED_SIZE, 172, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel6))) .addComponent(txtIdade, javax.swing.GroupLayout.PREFERRED_SIZE, 251, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(txtNomeMae, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 251, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(jLabel2) .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel4) .addComponent(txtTelefone, javax.swing.GroupLayout.PREFERRED_SIZE, 163, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(68, 68, 68)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jlData, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(JlHora, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(35, 35, 35)) ); jPanel5Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {txtEmail, txtEndereco, txtNome, txtNomePai}); jPanel5Layout.setVerticalGroup( jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel5Layout.createSequentialGroup() .addGap(69, 69, 69) .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(jPanel5Layout.createSequentialGroup() .addComponent(jLabel1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(txtNome, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel3) .addGap(5, 5, 5) .addComponent(txtEndereco, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jLabel5) .addGap(6, 6, 6) .addComponent(txtEmail, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jLabel7) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(txtNomePai, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel5Layout.createSequentialGroup() .addComponent(jLabel2) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(txtIdade, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel4) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(txtTelefone, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup() .addComponent(jLabel9) .addGap(11, 11, 11) .addComponent(cbUF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup() .addComponent(jLabel6) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(cbCidade, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jLabel8) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(txtNomeMae, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(95, 95, 95) .addComponent(jlHora, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 132, Short.MAX_VALUE) .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(JlHora, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jlData, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap()) ); jPanel5Layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {cbCidade, cbUF, txtEmail, txtEndereco, txtIdade, txtNome, txtNomeMae, txtNomePai, txtTelefone}); jTabbedPane2.addTab("Adicionar Aluno", jPanel5); jPanel7.addComponentListener(new java.awt.event.ComponentAdapter() { public void componentShown(java.awt.event.ComponentEvent evt) { jPanel7ComponentShown(evt); } }); tblExcuir.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" } )); tblExcuir.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { tblExcuirMouseClicked(evt); } }); tblExcuir.addComponentListener(new java.awt.event.ComponentAdapter() { public void componentShown(java.awt.event.ComponentEvent evt) { tblExcuirComponentShown(evt); } }); jScrollPane3.setViewportView(tblExcuir); jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder("Excluir Aluno")); jLabel12.setText("Código do Aluno"); jLabel10.setText("Nome do Aluno"); javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4); jPanel4.setLayout(jPanel4Layout); jPanel4Layout.setHorizontalGroup( jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup() .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel12) .addComponent(txtExcluir, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(51, 51, 51) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel10) .addComponent(txtNomeAlunoExcluir, javax.swing.GroupLayout.PREFERRED_SIZE, 281, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(0, 0, Short.MAX_VALUE)) ); jPanel4Layout.setVerticalGroup( jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup() .addGap(25, 25, 25) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel12) .addComponent(jLabel10)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(txtExcluir, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(txtNomeAlunoExcluir, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(48, Short.MAX_VALUE)) ); btnAlunos1.setText("Inserir"); btnAlunos1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnAlunos1ActionPerformed(evt); } }); btnSalvar1.setText("salva"); btnSalvar1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnSalvar1ActionPerformed(evt); } }); tbnExcluir1.setText("excluir"); tbnExcluir1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { tbnExcluir1ActionPerformed(evt); } }); btnPesquisar1.setText("pesquisar"); btnSair1.setText("sair"); btnSair1.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { btnSair1MouseClicked(evt); } }); javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11); jPanel11.setLayout(jPanel11Layout); jPanel11Layout.setHorizontalGroup( jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel11Layout.createSequentialGroup() .addGap(194, 194, 194) .addComponent(btnAlunos1, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnSalvar1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(tbnExcluir1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnPesquisar1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnSair1) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jPanel11Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {btnAlunos1, btnPesquisar1, btnSair1, btnSalvar1, tbnExcluir1}); jPanel11Layout.setVerticalGroup( jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel11Layout.createSequentialGroup() .addGap(23, 23, 23) .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(btnAlunos1, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(btnSalvar1) .addComponent(tbnExcluir1) .addComponent(btnPesquisar1) .addComponent(btnSair1))) .addContainerGap(24, Short.MAX_VALUE)) ); jPanel11Layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {btnAlunos1, btnPesquisar1, btnSair1, btnSalvar1, tbnExcluir1}); jPanel16.setBorder(javax.swing.BorderFactory.createTitledBorder("Pesquisar por Nome")); jLabel24.setText("Digite o Nome:"); btnEditarAluno1.setText("Pesquisar"); btnEditarAluno1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnEditarAluno1ActionPerformed(evt); } }); javax.swing.GroupLayout jPanel16Layout = new javax.swing.GroupLayout(jPanel16); jPanel16.setLayout(jPanel16Layout); jPanel16Layout.setHorizontalGroup( jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel16Layout.createSequentialGroup() .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel16Layout.createSequentialGroup() .addComponent(txtPesquisaExcluir, javax.swing.GroupLayout.PREFERRED_SIZE, 325, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnEditarAluno1)) .addComponent(jLabel24)) .addGap(0, 346, Short.MAX_VALUE)) ); jPanel16Layout.setVerticalGroup( jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel16Layout.createSequentialGroup() .addGap(25, 25, 25) .addComponent(jLabel24) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(txtPesquisaExcluir, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(btnEditarAluno1)) .addContainerGap(32, Short.MAX_VALUE)) ); javax.swing.GroupLayout jPanel15Layout = new javax.swing.GroupLayout(jPanel15); jPanel15.setLayout(jPanel15Layout); jPanel15Layout.setHorizontalGroup( jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel15Layout.createSequentialGroup() .addComponent(jPanel16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, Short.MAX_VALUE)) ); jPanel15Layout.setVerticalGroup( jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel15Layout.createSequentialGroup() .addGap(0, 0, Short.MAX_VALUE) .addComponent(jPanel16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) ); javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7); jPanel7.setLayout(jPanel7Layout); jPanel7Layout.setHorizontalGroup( jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel7Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane3) .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel11, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel7Layout.createSequentialGroup() .addComponent(jPanel15, javax.swing.GroupLayout.PREFERRED_SIZE, 590, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 221, Short.MAX_VALUE))) .addContainerGap()) ); jPanel7Layout.setVerticalGroup( jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel7Layout.createSequentialGroup() .addContainerGap(18, Short.MAX_VALUE) .addComponent(jPanel15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(27, 27, 27) .addComponent(jPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(65, 65, 65)) ); jTabbedPane2.addTab("Excluir Aluno", jPanel7); jPanel6.addComponentListener(new java.awt.event.ComponentAdapter() { public void componentHidden(java.awt.event.ComponentEvent evt) { jPanel6ComponentHidden(evt); } public void componentShown(java.awt.event.ComponentEvent evt) { jPanel6ComponentShown(evt); } }); tbEditar.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" } )); tbEditar.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { tbEditarMouseClicked(evt); } }); tbEditar.addComponentListener(new java.awt.event.ComponentAdapter() { public void componentShown(java.awt.event.ComponentEvent evt) { tbEditarComponentShown(evt); } }); jScrollPane2.setViewportView(tbEditar); jLabel13.setText("Código"); txtIdEditar.setEditable(false); jLabel14.setText("Nome:"); jLabel15.setText("Endereço:"); jLabel16.setText("Email:"); jLabel17.setText("Nome do Pai:"); jLabel18.setText("Nome da Mãe:"); cbUfEditar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cbUfEditarActionPerformed(evt); } }); jLabel19.setText("UF:"); jLabel20.setText("Cidade:"); cbCidadeEditar.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { cbCidadeEditarItemStateChanged(evt); } }); jLabel21.setText("Telefone"); jLabel22.setText("Idade:"); btnAlunos3.setText("Inserir"); btnAlunos3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnAlunos3ActionPerformed(evt); } }); btnSalvar3.setText("salva"); btnSalvar3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnSalvar3ActionPerformed(evt); } }); tbnExcluir3.setText("excluir"); tbnExcluir3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { tbnExcluir3ActionPerformed(evt); } }); btnPesquisar3.setText("pesquisar"); btnSair3.setText("sair"); btnSair3.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { btnSair3MouseClicked(evt); } }); jButton1.setText("Limpa Campos"); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); javax.swing.GroupLayout jPanel13Layout = new javax.swing.GroupLayout(jPanel13); jPanel13.setLayout(jPanel13Layout); jPanel13Layout.setHorizontalGroup( jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel13Layout.createSequentialGroup() .addGap(141, 141, 141) .addComponent(btnAlunos3, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnSalvar3) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(tbnExcluir3) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnPesquisar3) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButton1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnSair3) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jPanel13Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {btnAlunos3, btnPesquisar3, btnSair3, btnSalvar3, tbnExcluir3}); jPanel13Layout.setVerticalGroup( jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel13Layout.createSequentialGroup() .addGap(19, 19, 19) .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(btnAlunos3, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(btnSalvar3) .addComponent(tbnExcluir3) .addComponent(btnPesquisar3) .addComponent(btnSair3) .addComponent(jButton1))) .addContainerGap(46, Short.MAX_VALUE)) ); jPanel13Layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {btnAlunos3, btnPesquisar3, btnSair3, btnSalvar3, tbnExcluir3}); jPanel14.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Pesquisar aluno", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, null, new java.awt.Color(0, 0, 0))); jpEditar.setBorder(javax.swing.BorderFactory.createTitledBorder("Tipo de Pesquisa")); rdNomeEditar.setText("Por Nome"); rdNomeEditar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { rdNomeEditarActionPerformed(evt); } }); rdIdEditar.setText("Por Código"); javax.swing.GroupLayout jpEditarLayout = new javax.swing.GroupLayout(jpEditar); jpEditar.setLayout(jpEditarLayout); jpEditarLayout.setHorizontalGroup( jpEditarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jpEditarLayout.createSequentialGroup() .addContainerGap() .addGroup(jpEditarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(rdNomeEditar) .addComponent(rdIdEditar)) .addContainerGap(17, Short.MAX_VALUE)) ); jpEditarLayout.setVerticalGroup( jpEditarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jpEditarLayout.createSequentialGroup() .addContainerGap() .addComponent(rdNomeEditar) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(rdIdEditar) .addContainerGap()) ); jLabel23.setText("Digite o Valor Para Pesquisa"); btnEditarAluno.setText("Pesquisar"); btnEditarAluno.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnEditarAlunoActionPerformed(evt); } }); javax.swing.GroupLayout jPanel14Layout = new javax.swing.GroupLayout(jPanel14); jPanel14.setLayout(jPanel14Layout); jPanel14Layout.setHorizontalGroup( jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel14Layout.createSequentialGroup() .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel14Layout.createSequentialGroup() .addComponent(txtbuscaEditar, javax.swing.GroupLayout.PREFERRED_SIZE, 325, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnEditarAluno)) .addComponent(jLabel23)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jpEditar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(66, 66, 66)) ); jPanel14Layout.setVerticalGroup( jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel14Layout.createSequentialGroup() .addGap(22, 22, 22) .addComponent(jLabel23) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(txtbuscaEditar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(btnEditarAluno)) .addContainerGap(16, Short.MAX_VALUE)) .addComponent(jpEditar, javax.swing.GroupLayout.PREFERRED_SIZE, 81, Short.MAX_VALUE) ); javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6); jPanel6.setLayout(jPanel6Layout); jPanel6Layout.setHorizontalGroup( jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel6Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel6Layout.createSequentialGroup() .addGap(26, 26, 26) .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jLabel15) .addComponent(txtEnderecoEditar) .addComponent(txtEmailEditar) .addComponent(txtPaiEditar, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(txtIdEditar, javax.swing.GroupLayout.PREFERRED_SIZE, 49, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel14) .addComponent(txtNomeEditar, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 250, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(jLabel16) .addComponent(jLabel17)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 259, Short.MAX_VALUE) .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addGroup(jPanel6Layout.createSequentialGroup() .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel19) .addComponent(cbUfEditar, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(cbCidadeEditar, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel20))) .addComponent(txtIdadeEditar, javax.swing.GroupLayout.PREFERRED_SIZE, 251, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(txtMaeEditar, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 251, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(jLabel22) .addComponent(jLabel21) .addComponent(jLabel18, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(txtTelefoneEditar, javax.swing.GroupLayout.PREFERRED_SIZE, 168, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(35, 35, 35)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup() .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jPanel13, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jScrollPane2)) .addContainerGap()))) .addGroup(jPanel6Layout.createSequentialGroup() .addComponent(jPanel14, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); jPanel6Layout.setVerticalGroup( jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup() .addComponent(jPanel14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel13) .addGap(2, 2, 2) .addComponent(txtIdEditar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(jPanel6Layout.createSequentialGroup() .addComponent(jLabel14) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(txtNomeEditar, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, 0) .addComponent(jLabel15) .addGap(5, 5, 5) .addComponent(txtEnderecoEditar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jLabel16) .addGap(6, 6, 6) .addComponent(txtEmailEditar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jLabel17) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(txtPaiEditar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel6Layout.createSequentialGroup() .addComponent(jLabel22) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(txtIdadeEditar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(jPanel6Layout.createSequentialGroup() .addComponent(txtTelefoneEditar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel20) .addGap(11, 11, 11) .addComponent(cbCidadeEditar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel6Layout.createSequentialGroup() .addComponent(jLabel21) .addGap(31, 31, 31) .addComponent(jLabel19) .addGap(11, 11, 11) .addComponent(cbUfEditar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jLabel18) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(txtMaeEditar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(35, 35, 35)) ); jTabbedPane2.addTab("Editar Aluno", jPanel6); jPanel8.addComponentListener(new java.awt.event.ComponentAdapter() { public void componentShown(java.awt.event.ComponentEvent evt) { jPanel8ComponentShown(evt); } public void componentHidden(java.awt.event.ComponentEvent evt) { jPanel8ComponentHidden(evt); } }); tblAlunos.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" } )); tblAlunos.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { tblAlunosMouseClicked(evt); } }); tblAlunos.addComponentListener(new java.awt.event.ComponentAdapter() { public void componentShown(java.awt.event.ComponentEvent evt) { tblAlunosComponentShown(evt); } }); jScrollPane1.setViewportView(tblAlunos); jPanel10.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Pesquisar aluno", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, null, new java.awt.Color(0, 0, 0))); jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder("Tipo de Pesquisa")); rdNome.setText("Por Nome"); rdNome.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { rdNomeActionPerformed(evt); } }); rdID.setText("Por Código"); javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3); jPanel3.setLayout(jPanel3Layout); jPanel3Layout.setHorizontalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(rdNome) .addComponent(rdID)) .addContainerGap(17, Short.MAX_VALUE)) ); jPanel3Layout.setVerticalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addContainerGap() .addComponent(rdNome) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(rdID) .addContainerGap()) ); jLabel11.setText("Digite o Valor Para Pesquisa"); btnPesquisaAluno.setText("Pesquisar"); btnPesquisaAluno.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnPesquisaAlunoActionPerformed(evt); } }); javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10); jPanel10.setLayout(jPanel10Layout); jPanel10Layout.setHorizontalGroup( jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel10Layout.createSequentialGroup() .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel10Layout.createSequentialGroup() .addComponent(txtVbusca, javax.swing.GroupLayout.PREFERRED_SIZE, 325, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnPesquisaAluno)) .addComponent(jLabel11)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 138, Short.MAX_VALUE) .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(139, 139, 139)) ); jPanel10Layout.setVerticalGroup( jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel10Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel10Layout.createSequentialGroup() .addGap(22, 22, 22) .addComponent(jLabel11) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(txtVbusca, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(btnPesquisaAluno))) .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, 81, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jPanel10Layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {btnPesquisaAluno, txtVbusca}); btnAlunos.setText("Inserir"); btnAlunos.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnAlunosActionPerformed(evt); } }); btnSalvar.setText("salva"); btnSalvar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnSalvarActionPerformed(evt); } }); tbnExcluir.setText("excluir"); tbnExcluir.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { tbnExcluirActionPerformed(evt); } }); btnPesquisar.setText("pesquisar"); btnPesquisar.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { btnPesquisarMouseClicked(evt); } }); btnPesquisar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnPesquisarActionPerformed(evt); } }); btnSair.setText("sair"); btnSair.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { btnSairMouseClicked(evt); } }); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnAlunos, javax.swing.GroupLayout.PREFERRED_SIZE, 71, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(btnSalvar) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(tbnExcluir) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnPesquisar) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnSair) .addGap(185, 185, 185)) ); jPanel1Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {btnAlunos, btnPesquisar, btnSair, btnSalvar, tbnExcluir}); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addContainerGap(29, Short.MAX_VALUE) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(btnAlunos, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(btnSalvar) .addComponent(tbnExcluir) .addComponent(btnPesquisar) .addComponent(btnSair))) .addGap(22, 22, 22)) ); jPanel1Layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {btnAlunos, btnPesquisar, btnSair, btnSalvar, tbnExcluir}); javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8); jPanel8.setLayout(jPanel8Layout); jPanel8Layout.setHorizontalGroup( jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel8Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel10, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jScrollPane1) .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap()) ); jPanel8Layout.setVerticalGroup( jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel8Layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(119, 119, 119) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 214, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(56, Short.MAX_VALUE)) ); jTabbedPane2.addTab("Pesquisar Aluno", jPanel8); jPanel12.setBorder(javax.swing.BorderFactory.createTitledBorder("Sistema Desenvolvido por:")); jLabel25.setText("Kleudy Silva"); jLabel27.setText("Graduado"); jLabel30.setText("Sistema de Informação"); jLabel31.setText("Uniban"); javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12); jPanel12.setLayout(jPanel12Layout); jPanel12Layout.setHorizontalGroup( jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel12Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel25) .addComponent(jLabel27) .addComponent(jLabel30) .addComponent(jLabel31)) .addGap(0, 0, Short.MAX_VALUE)) ); jPanel12Layout.setVerticalGroup( jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel12Layout.createSequentialGroup() .addContainerGap() .addComponent(jLabel25) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jLabel27) .addGap(18, 18, 18) .addComponent(jLabel30) .addGap(28, 28, 28) .addComponent(jLabel31) .addContainerGap(352, Short.MAX_VALUE)) ); jLabel29.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/1536558_880989708579033_7593529292838740735_n.jpg"))); // NOI18N javax.swing.GroupLayout jPanel17Layout = new javax.swing.GroupLayout(jPanel17); jPanel17.setLayout(jPanel17Layout); jPanel17Layout.setHorizontalGroup( jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel17Layout.createSequentialGroup() .addComponent(jLabel29, javax.swing.GroupLayout.PREFERRED_SIZE, 596, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel28, javax.swing.GroupLayout.PREFERRED_SIZE, 540, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, Short.MAX_VALUE)) ); jPanel17Layout.setVerticalGroup( jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel28, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel29, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE) ); javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9); jPanel9.setLayout(jPanel9Layout); jPanel9Layout.setHorizontalGroup( jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel9Layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jPanel17, javax.swing.GroupLayout.PREFERRED_SIZE, 597, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(82, Short.MAX_VALUE)) ); jPanel9Layout.setVerticalGroup( jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel9Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jPanel12, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel17, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap(96, Short.MAX_VALUE)) ); jTabbedPane2.addTab("Sobre", jPanel9); javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addContainerGap() .addComponent(jTabbedPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 836, Short.MAX_VALUE) .addContainerGap()) ); jPanel2Layout.setVerticalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addComponent(jTabbedPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 634, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 27, Short.MAX_VALUE)) ); setJMenuBar(jMenuBar1); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, 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() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(31, 31, 31)) ); 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 Magasin() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "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 kunde() {\n initComponents();\n }", "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 MusteriEkle() {\n initComponents();\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 FormHorarioSSE() {\n initComponents();\n }", "public frmacceso() {\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 }", "@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 MiFrame2() {\n initComponents();\n }", "public IssueBookForm() {\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 POS1() {\n initComponents();\n }", "public CreateAccount_GUI() {\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 CovidGUI(){\n initComponents();\n }" ]
[ "0.73197734", "0.72908777", "0.72908777", "0.72908777", "0.72870827", "0.7248368", "0.7213462", "0.7208004", "0.7195763", "0.7189973", "0.7184436", "0.7159332", "0.71478266", "0.709268", "0.7080727", "0.7057287", "0.6986775", "0.6977119", "0.69554067", "0.69548035", "0.6945748", "0.69436246", "0.6936225", "0.69309264", "0.6927764", "0.6925464", "0.69240505", "0.6911828", "0.69114214", "0.6893614", "0.68917346", "0.6891525", "0.6891501", "0.6889125", "0.68829834", "0.6882533", "0.68808794", "0.687905", "0.687687", "0.68740726", "0.68708014", "0.68595254", "0.68561274", "0.68560076", "0.6854643", "0.6854604", "0.6853724", "0.685311", "0.685311", "0.6844816", "0.6836794", "0.6835743", "0.68294543", "0.6828841", "0.682637", "0.68245006", "0.6823792", "0.68175477", "0.6817179", "0.6811031", "0.68096155", "0.6809008", "0.68087083", "0.68081945", "0.6801884", "0.6795609", "0.6793828", "0.67930275", "0.67915165", "0.6789997", "0.6788734", "0.6788487", "0.67816335", "0.67663425", "0.6765744", "0.67648494", "0.6757314", "0.6755897", "0.67526966", "0.6750367", "0.67429197", "0.67399955", "0.6736908", "0.6736084", "0.6734342", "0.6726562", "0.67264515", "0.67205596", "0.6716381", "0.67154187", "0.67150515", "0.6709329", "0.6708348", "0.67050624", "0.67021835", "0.6700595", "0.6699073", "0.6698866", "0.66942847", "0.6690904", "0.66897583" ]
0.0
-1
recebe dados dos estados do banco de dados. prepara a sql
public void carrega_estado() throws SQLException{ String sql = "SELECT * FROM tb_estados"; PreparedStatement preparador = Conexao.conectar().prepareStatement(sql); ResultSet rs = preparador.executeQuery(); //passando valores do banco para o objeto result; try{ while(rs.next()){ String list = rs.getString("uf"); //resgatando estado //popula combo_estadof com as informações colhidas cbUF.addItem(list); } } catch (Exception e){ JOptionPane.showMessageDialog(null, "Impossivel carregar Estados!", "ERROR - ", JOptionPane.ERROR_MESSAGE); } Conexao.desConectar(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Tablero consultarTablero();", "void LlenarModelo(){\n datos.addColumn(\"ID\");\n datos.addColumn(\"Descripcion\");\n datos.addColumn(\"Cantidad\");\n String []ingresar=new String[4];\n try {\n Connection con = Conexion.getConection();\n Statement estado = con.createStatement();\n //ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago where codigo>=\" + SIGEPSA.IDOtrosPagosMin + \";\");\n //ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago ;\");\n ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago where codigo<9 or codigo>10 and activo = 1;\");\n while(resultado.next()){\n ingresar[0]=String.valueOf((String)resultado.getObject(\"CODIGO\").toString());\n ingresar[1]=String.valueOf((String)resultado.getObject(\"DESCRIPCION\").toString());\n ingresar[2]=String.valueOf((String)resultado.getObject(\"CANTIDAD\").toString());\n datos.addRow(ingresar);\n }\n }catch (Exception ex) {\n \n }\n }", "public void refresh() {\n String sql = \"\";\n sql += \"select m.id\"\n + \", m.data\"\n + \", CAST(CONCAT(dep.nome, ' [', dep.id, ']') AS CHAR(50)) as deposito\"\n + \", cau.descrizione as causale\"\n + \", m.articolo\"\n + \", if (cau.segno = -1 , -m.quantita, m.quantita) as quantita\"\n + \", m.note\"\n + \", cast(concat(IF(m.da_tipo_fattura = 7, 'Scontr.', \"\n + \" IF(m.da_tabella = 'test_fatt', 'Fatt. Vend.', \"\n + \" IF(m.da_tabella = 'test_ddt', 'DDT Vend.',\"\n + \" IF(m.da_tabella = 'test_fatt_acquisto', 'Fatt. Acq.',\"\n + \" IF(m.da_tabella = 'test_ddt_acquisto', 'DDT Acq.', m.da_tabella)))))\"\n + \" , da_serie, ' ', da_numero, '/', da_anno, ' - [ID ', da_id, ']') as CHAR)as origine\"\n // + \", m.da_tabella\"\n // + \", m.da_anno\"\n // + \", m.da_serie\"\n // + \", m.da_numero\"\n // + \", m.da_id\"\n + \", m.matricola\"\n + \", m.lotto\"\n + \", a.codice_fornitore, a.codice_a_barre from movimenti_magazzino m left join articoli a on m.articolo = a.codice\"\n + \" left join tipi_causali_magazzino cau on m.causale = cau.codice\"\n + \" left join depositi dep ON m.deposito = dep.id\";\n sql += \" where 1 = 1\";\n System.out.println(\"articolo_selezionato_filtro_ref = \" + articolo_selezionato_filtro_ref);\n System.out.println(\"articolo_selezionato_filtro_ref get = \" + articolo_selezionato_filtro_ref.get());\n if (articolo_selezionato_filtro_ref.get() != null && StringUtils.isNotBlank(articolo_selezionato_filtro_ref.get().codice)) {\n sql += \" and m.articolo like '\" + Db.aa(articolo_selezionato_filtro_ref.get().codice) + \"'\";\n }\n if (filtro_barre.getText().length() > 0) {\n sql += \" and a.codice_a_barre like '%\" + Db.aa(filtro_barre.getText()) + \"%'\";\n }\n if (filtro_lotto.getText().length() > 0) {\n sql += \" and m.lotto like '%\" + Db.aa(filtro_lotto.getText()) + \"%'\";\n }\n if (filtro_matricola.getText().length() > 0) {\n sql += \" and m.matricola like '%\" + Db.aa(filtro_matricola.getText()) + \"%'\";\n }\n if (filtro_fornitore.getText().length() > 0) {\n sql += \" and a.codice_fornitore like '%\" + Db.aa(filtro_fornitore.getText()) + \"%'\";\n }\n if (filtro_deposito.getSelectedIndex() >= 0) {\n sql += \" and m.deposito = \" + cu.s(filtro_deposito.getSelectedKey());\n }\n sql += \" order by m.data desc, id desc\";\n System.out.println(\"sql movimenti: \" + sql);\n griglia.dbOpen(Db.getConn(), sql, Db.INSTANCE, true);\n griglia.dbSelezionaRiga();\n }", "public void consutaBD(String Campo, String txtSQL) {\n String consultaBD = \"SELECT * FROM `cronograma_actividades` WHERE \" + Campo + \" LIKE '\" + txtSQL + \"_%'\";\n //JOptionPane.showMessageDialog(null, consultaBD);\n javax.swing.JTable Tabla = this.Tabla_addActividad;\n // Enviamos los parametros para la consulta de la tabla\n // conexion consulta de la base de datos y el nombre de la tabla\n String cabesera[] = {\"Código\", \"Asunto\", \"Actividad\",\"hora\",\"Fecha\",\"Estado\"};\n cone1.GetTabla_Sincabeseras_sql_bd(cn, consultaBD, Tabla, cabesera);\n\n }", "private void llenarListado1() {\r\n\t\tString sql1 = Sentencia1()\r\n\t\t\t\t+ \" where lower(cab.descripcion) = 'concurso' \" + \"and (\"\r\n\t\t\t\t+ \"\t\tdet.id_estado_det = (\" + \"\t\t\t\tselect est.id_estado_det \"\r\n\t\t\t\t+ \"\t\t\t\tfrom planificacion.estado_det est \"\r\n\t\t\t\t+ \"\t\t\t\twhere lower(est.descripcion)='libre'\" + \"\t\t) \"\r\n\t\t\t\t+ \"\t\tor det.id_estado_det is null\" + \"\t) \"\r\n\t\t\t\t+ \" and uo_cab.id_configuracion_uo = \"\r\n\t\t\t\t+ configuracionUoCab.getIdConfiguracionUo()\r\n\t\t\t\t+ \" AND det.activo=true\";\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO SIMPLIFICADO Se despliegan los puestos\r\n\t\t * PERMANENTES o CONTRATADOS, con estado = LIBRE o NULO Los puestos\r\n\t\t * deben ser de nivel 1\r\n\t\t */\r\n\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n\t\t\t\t.equalsIgnoreCase(CONCURSO_SIMPLIFICADO)) {\r\n\t\t\tsql1 += \" and cpt.nivel=1 and cpt.activo=true and (det.permanente is true or det.contratado is true) \";\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO INTERNO DE OPOSICION INSTITUCIONAL Se\r\n\t\t * despliegan los puestos PERMANENTE, con estado = LIBRE o NULO\r\n\t\t */\r\n\r\n\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n\t\t\t\t.equalsIgnoreCase(CONCURSO_INTERNO_OPOSICION)) {\r\n\t\t\tsql1 += \" and det.permanente is true \";\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO INTERNO DE OPOSICION INTER INSTITUCIONAL\r\n\t\t * Se despliegan los puestos PERMANENTE, con estado = LIBRE o NULO\r\n\t\t */\r\n\r\n\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n\t\t\t\t.equalsIgnoreCase(CONCURSO_INTERNO_INTERINSTITUCIONAL)) {\r\n\t\t\tsql1 += \" and det.permanente is true \";\r\n\t\t}\r\n\t\tString sql2 = Sentencia2()\r\n\t\t\t\t+ \" where lower(estado_det.descripcion) = 'en reserva' \"\r\n\t\t\t\t+ \"and uo_cab.id_configuracion_uo = \"\r\n\t\t\t\t+ configuracionUoCab.getIdConfiguracionUo()\r\n\t\t\t\t+ \" and concurso.id_concurso = \" + concurso.getIdConcurso()\r\n\t\t\t\t+ \" and puesto_det.activo=true\";\r\n\r\n\t\tcargarLista(sql1, sql2);\r\n\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 void introducirPagosALojamientoHotelFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo){\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);\n try {\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT ALOJAMIENTO.Id,ALOJAMIENTO.Id_Reservacion,RESERVACION.Fecha_Entrada, RESERVACION.Fecha_Salida,RESERVACION.Precio FROM RESERVACION JOIN ALOJAMIENTO WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND RESERVACION.Fecha_Entrada>=? AND RESERVACION.Fecha_Entrada<=? AND RESERVACION.Check_In=1;\");\n declaracion.setDate(1,fechaInicialSql);\n declaracion.setDate(2,fechaFinalSQL);// pago de alojamiento en rango fchas\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {\n Object objeto[] = new Object[6];// pago de alojamiento en rango fchas\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);\n objeto[2] = resultado.getDate(3);\n objeto[3] = resultado.getDate(4);// pago de alojamiento en rango fchas\n objeto[4] = resultado.getInt(5);\n String fechaInicialProbar=objeto[2].toString();\n String fechaFinalProbar=objeto[3].toString();// pago de alojamiento en rango fchas\n String precioProbar = objeto[4].toString();// pago de alojamiento en rango fchas\n int total=habitacion.hacerTotalAlojamiento(fechaInicialProbar, fechaFinalProbar, precioProbar);\n objeto[5]= total;\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "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 }", "public void buscarEstudiante(String codEstudiante){\n estudianteModificar=new Estudiante();\n estudianteGradoModificar=new EstudianteGrado();\n StringBuilder query=new StringBuilder();\n query.append(\"select e.idestudiante,e.nombre,e.apellido,e.ci,e.cod_est,e.idgrado,e.idcurso,g.grado,c.nombre_curso \" );\n query.append(\" from estudiante e \");\n query.append(\" inner join grado g on e.idgrado=g.idgrado \");\n query.append(\" inner join cursos c on e.idcurso=c.idcurso \");\n query.append(\" where idestudiante=? \");\n try {\n PreparedStatement pst=connection.prepareStatement(query.toString());\n pst.setInt(1, Integer.parseInt(codEstudiante));\n ResultSet resultado=pst.executeQuery();\n //utilizamos una condicion porque la busqueda nos devuelve 1 registro\n if(resultado.next()){\n //cargando la informacion a nuestro objeto categoriaModificarde tipo categoria\n estudianteModificar.setCodEstudiante(resultado.getInt(1));\n estudianteModificar.setNomEstudiante(resultado.getString(2));\n estudianteModificar.setApEstudiante(resultado.getString(3));\n estudianteModificar.setCiEstudiante(resultado.getInt(4));\n estudianteModificar.setCodigoEstudiante(resultado.getString(5));\n estudianteModificar.setIdgradoEstudiante(resultado.getInt(6));\n estudianteModificar.setIdCursoEstudiante(resultado.getInt(7));\n estudianteGradoModificar.setNomGrado(resultado.getString(8));\n estudianteGradoModificar.setNomCurso(resultado.getString(9));\n }\n } catch (SQLException e) {\n System.out.println(\"Error de conexion\");\n e.printStackTrace();\n }\n }", "public void introducirPagosALojamientoClienteFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo,String dpiCliente){\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);// pago de alojamiento en rango fchas\n try {\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT ALOJAMIENTO.Id,ALOJAMIENTO.Id_Reservacion,RESERVACION.Fecha_Entrada, RESERVACION.Fecha_Salida,RESERVACION.Precio FROM RESERVACION JOIN ALOJAMIENTO WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND RESERVACION.Fecha_Entrada>=? AND RESERVACION.Fecha_Entrada<=? AND RESERVACION.Dpi_Cliente=? AND RESERVACION.Check_In=1;\");\n declaracion.setDate(1,fechaInicialSql);\n declaracion.setDate(2,fechaFinalSQL);// pago de alojamiento en rango fchas\n declaracion.setString(3, dpiCliente);\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {\n Object objeto[] = new Object[6];\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);\n objeto[2] = resultado.getDate(3);// pago de alojamiento en rango fchas\n objeto[3] = resultado.getDate(4);\n objeto[4] = resultado.getInt(5);\n String fechaInicialProbar=objeto[2].toString();\n String fechaFinalProbar=objeto[3].toString();// pago de alojamiento en rango fchas\n String precioProbar = objeto[4].toString();\n int total=habitacion.hacerTotalAlojamiento(fechaInicialProbar, fechaFinalProbar, precioProbar);\n objeto[5]= total;\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "public void EjecutarConsulta() {\n try {\n Consultar(\"select * from \"+table);\n this.resultSet = preparedStatement.executeQuery();\n } catch (Exception e) {\n// MessageEmergent(\"Fail EjecutarConsulta(): \"+e.getMessage());\n }\n }", "public CalMetasDTO cargarRegistro(int codigoCiclo, int codigoPlan, int codigoMeta) {\n/* */ try {\n/* 416 */ String s = \"select m.*,\";\n/* 417 */ s = s + \"tm.descripcion as nombreTipoMedicion,\";\n/* 418 */ s = s + \"est.descripcion as nombreEstado,\";\n/* 419 */ s = s + \"Um.Descripcion as nombre_unidad_medida\";\n/* 420 */ s = s + \" from cal_plan_metas m,sis_multivalores tm,sis_multivalores est,Sis_Multivalores Um\";\n/* 421 */ s = s + \" where \";\n/* 422 */ s = s + \" m.tipo_medicion =tm.valor\";\n/* 423 */ s = s + \" and tm.tabla='CAL_TIPO_MEDICION'\";\n/* 424 */ s = s + \" and m.estado =est.valor\";\n/* 425 */ s = s + \" and est.tabla='CAL_ESTADO_META'\";\n/* 426 */ s = s + \" and m.Unidad_Medida = Um.Valor\";\n/* 427 */ s = s + \" and Um.Tabla = 'CAL_UNIDAD_MEDIDA_META'\";\n/* 428 */ s = s + \" and m.codigo_ciclo=\" + codigoCiclo;\n/* 429 */ s = s + \" and m.codigo_plan=\" + codigoPlan;\n/* 430 */ s = s + \" and m.codigo_meta=\" + codigoMeta;\n/* 431 */ boolean rtaDB = this.dat.parseSql(s);\n/* 432 */ if (!rtaDB) {\n/* 433 */ return null;\n/* */ }\n/* */ \n/* 436 */ this.rs = this.dat.getResultSet();\n/* 437 */ if (this.rs.next()) {\n/* 438 */ return leerRegistro();\n/* */ }\n/* */ }\n/* 441 */ catch (Exception e) {\n/* 442 */ e.printStackTrace();\n/* 443 */ Utilidades.writeError(\"CalPlanMetasFactory:cargarCalMetas \", e);\n/* */ } \n/* 445 */ return null;\n/* */ }", "private boolean crearRecurso(int codigoCiclo, int codigoPlan, int codigoMeta, int codigoRecurso, String estado, String usuarioInsercion) {\n/* */ try {\n/* 513 */ String s = \"select estado from cal_plan_recursos_meta r where r.codigo_ciclo=\" + codigoCiclo + \" and r.codigo_plan=\" + codigoPlan + \" and r.codigo_meta=\" + codigoMeta + \" and r.codigo_recurso=\" + codigoRecurso;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 520 */ this.dat.parseSql(s);\n/* 521 */ this.rs = this.dat.getResultSet();\n/* 522 */ if (this.rs.next()) {\n/* 523 */ s = \"update cal_plan_recursos_meta set \";\n/* 524 */ s = s + \" estado='\" + estado + \"',\";\n/* 525 */ s = s + \" fecha_modificacion=\" + Utilidades.getFechaBD() + \",\";\n/* 526 */ s = s + \" usuario_modificacion='\" + usuarioInsercion + \"'\";\n/* 527 */ s = s + \" where \";\n/* 528 */ s = s + \" codigo_ciclo=\" + codigoCiclo;\n/* 529 */ s = s + \" and codigo_plan=\" + codigoPlan;\n/* 530 */ s = s + \" and codigo_meta=\" + codigoMeta;\n/* 531 */ s = s + \" and codigo_recurso=\" + codigoRecurso;\n/* */ } else {\n/* */ \n/* 534 */ s = \"insert into cal_plan_recursos_meta (codigo_ciclo,codigo_plan,codigo_meta,codigo_recurso,estado,fecha_insercion,usuario_insercion) values (\" + codigoCiclo + \",\" + \"\" + codigoPlan + \",\" + \"\" + codigoMeta + \",\" + \"\" + codigoRecurso + \",\" + \"'\" + estado + \"',\" + Utilidades.getFechaBD() + \",\" + \"'\" + usuarioInsercion + \"'\" + \")\";\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 552 */ return this.dat.executeUpdate(s);\n/* */ \n/* */ }\n/* 555 */ catch (Exception e) {\n/* 556 */ e.printStackTrace();\n/* 557 */ Utilidades.writeError(\"CalMetasDAO:crearRegistro\", e);\n/* */ \n/* 559 */ return false;\n/* */ } \n/* */ }", "private void mbushetabelen() {\n try {\n Statement stmt = LidhjaMeDb.hapelidhjen();\n //CallableStatement stmt = conn.prepareCall(\"{call procedura1(?)}\");\n //stmt.setInt(1, 1);\n //ResultSet rs=stmt.executeQuery();\n String sql = \"SELECT kerkesat.kompania AS 'Kompania', llojet_lejes.lloji_lejes AS 'Lloji i Lejes'\"\n + \" ,kerkesat.adresa AS 'Adresa', kerkesat.tel AS 'Tel',kerkesat.data_pranimit AS 'Data e Pranimit'\"\n + \" ,kerkesat.nr_protokollit AS 'Numri i Protokollit', aktivitetet.aktiviteti AS 'Aktiviteti'\"\n + \" ,komunat.komuna AS 'Komuna', kerkesat.taksa AS 'Taksa', kerkesat.statusi_lendes AS 'Statusi i Lendes'\"\n + \" ,kerkesat.data_leshimit AS 'Data e Leshimit'\"\n + \" ,pergjigjjet_komisionit.pergjigjja AS 'Pergjigjja e Komisionit' FROM kerkesat \"\n + \" JOIN llojet_lejes ON kerkesat.idlloji = llojet_lejes.idlloji \"\n + \" JOIN aktivitetet ON kerkesat.idaktiviteti = aktivitetet.idaktiviteti \"\n + \" JOIN pergjigjjet_komisionit ON kerkesat.idpergjigjja = pergjigjjet_komisionit.idpergjigjja \"\n + \" JOIN komunat ON kerkesat.idkomuna=komunat.idkomuna \"\n + \"WHERE kompania LIKE '%\" + txtkompania.getText() + \"%' \"\n + \"AND aktiviteti like '%\" + (String) kmbaktiviteti.getSelectedItem() + \"%' \"\n + \"AND komuna like '%\" + (String) kmbkomunat.getSelectedItem() + \"%' \"\n + \"AND pergjigjja like '%\" + (String) kmbpergjigjja.getSelectedItem() + \"%' \"\n + \"AND data_pranimit >= '\" + new java.sql.Date(jdataprej.getDate().getTime()) + \"' AND data_pranimit <= '\" + new java.sql.Date(jdataderi.getDate().getTime()) + \"' \";\n System.out.println(sql);\n ResultSet rs = stmt.executeQuery(sql);\n tblkerkesat.setModel(DBUtils.resultSetToTableModel(rs));\n//boolean Zgjedhur=false;jTable1.addColumn(Zgjedhur);\n LidhjaMeDb.mbyllelidhjen();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "public void PrepararBaseDatos() { \r\n try{ \r\n conexion=DriverManager.getConnection(\"jdbc:ucanaccess://\"+this.NOMBRE_BASE_DE_DATOS,this.USUARIO_BASE_DE_DATOS,this.CLAVE_BASE_DE_DATOS);\r\n \r\n } \r\n catch (Exception e) { \r\n JOptionPane.showMessageDialog(null,\"Error al realizar la conexion \"+e);\r\n } \r\n try { \r\n sentencia=conexion.createStatement( \r\n ResultSet.TYPE_SCROLL_INSENSITIVE, \r\n ResultSet.CONCUR_READ_ONLY); \r\n \r\n System.out.println(\"Se ha establecido la conexión correctamente\");\r\n } \r\n catch (Exception e) { \r\n JOptionPane.showMessageDialog(null,\"Error al crear el objeto sentencia \"+e);\r\n } \r\n }", "private void procurarData() {\n if (jDateIni.getDate() != null && jDateFim.getDate() != null) {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n String data = sdf.format(jDateIni.getDate());\n String data2 = sdf.format(jDateFim.getDate());\n carregaTable(id, data, data2);\n JBreg.setEnabled(false);\n }\n }", "QuartoConsumo[] busca(Object dadoBusca, String coluna) throws SQLException;", "public DanielPatricio() throws SQLException {\n initComponents();\n //limpiar();\n recargarDropDownCarros();\n recargarTextArea();\n recargarDataTable();\n \n \n }", "public static String todosLosEmpleados_baja(){\n String query=\"SELECT empleado.idEmpleado, persona.nombre, persona.apePaterno, persona.apeMaterno, empleado.codigo, empleado.fechaIngreso,persona.codigoPostal,persona.domicilio,\" +\n\"empleado.puesto, empleado.salario from persona inner join empleado on persona.idPersona=empleado.idPersona where activo=0;\";\n return query;\n }", "public FlujoDetalleDTO cargarRegistro(int codigoFlujo, int secuencia) {\n/* */ try {\n/* 201 */ String s = \"select t.codigo_flujo,t.secuencia,t.servicio_inicio,r1.descripcion as nombre_servicio_inicio,t.accion,t.codigo_estado,r3.descripcion as nombre_codigo_estado,t.servicio_destino,r4.descripcion as nombre_servicio_destino,t.nombre_procedimiento,t.correo_destino,t.enviar_solicitud,t.ind_mismo_proveedor,t.ind_mismo_cliente,t.estado,t.caracteristica,t.valor_caracteristica,t.caracteristica_correo,m5.descripcion as nombre_estado,c.DESCRIPCION nombre_caracteristica,cv.DESCRIPCION descripcion_valor,t.metodo_seleccion_proveedor,t.ind_correo_clientes,t.enviar_hermana,t.enviar_si_hermana_cerrada,t.ind_cliente_inicial,t.usuario_insercion,t.fecha_insercion,t.usuario_modificacion,t.fecha_modificacion from wkf_detalle t left join SERVICIOS r1 on (r1.CODIGO=t.servicio_inicio) left join ESTADOS r3 on (r3.codigo=t.codigo_estado) left join SERVICIOS r4 on (r4.CODIGO=t.servicio_destino) left join sis_multivalores m5 on (m5.tabla='ESTADO_REGISTRO' and m5.valor=t.estado) LEFT JOIN CARACTERISTICAS c ON (t.Caracteristica = c.CODIGO) LEFT JOIN CARACTERISTICAS_VALOR cv ON (t.CARACTERISTICA=cv.CARACTERISTICA AND t.VALOR_CARACTERISTICA = cv.VALOR) where t.codigo_flujo=\" + codigoFlujo + \" and t.secuencia=\" + secuencia + \"\";\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 243 */ boolean rtaDB = this.dat.parseSql(s);\n/* 244 */ if (!rtaDB) {\n/* 245 */ return null;\n/* */ }\n/* 247 */ this.rs = this.dat.getResultSet();\n/* 248 */ if (this.rs.next()) {\n/* 249 */ return leerRegistro();\n/* */ }\n/* */ }\n/* 252 */ catch (Exception e) {\n/* 253 */ e.printStackTrace();\n/* 254 */ Utilidades.writeError(\"FlujoDetalleDAO:cargarFlujoDetalle\", e);\n/* */ } \n/* 256 */ return null;\n/* */ }", "private void cargarDeDB() {\n Query query = session.createQuery(\"SELECT p FROM Paquete p WHERE p.reparto is NULL\");\n data = FXCollections.observableArrayList();\n\n List<Paquete> paquetes = query.list();\n for (Paquete paquete : paquetes) {\n data.add(paquete);\n }\n\n cargarTablaConPaquetes();\n }", "public static Statement reiniciarBD( Connection con ) {\n\t\ttry {\n\t\t\tStatement statement = con.createStatement();\n\t\t\tstatement.setQueryTimeout(30); // poner timeout 30 msg\n\t\t\tstatement.executeUpdate(\"drop table if exists items\");\n\t\t\tlog( Level.INFO, \"Reiniciada base de datos\", null );\n\t\t\treturn usarCrearTablasBD( con );\n\t\t} catch (SQLException e) {\n\t\t\tlog( Level.SEVERE, \"Error en reinicio de base de datos\", e );\n\t\t\tlastError = e;\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "@Transactional\n public void llenarTabla(ResultSet rs){\n if (rs==null) {\n System.out.println(\"el rs vino vacio\");\n }\n try {\n while (rs.next()) {\n //para cada fila de la consulta creo un pedido\n PedidoMaterial pedido = new PedidoMaterial();\n System.out.println(\"empezamos\");\n pedido.setId(rs.getInt(1));\n pedido.setNumeroPedido(rs.getInt(2));\n pedido.setNotaDeVenta(rs.getInt(3));\n pedido.setDescripProyecto(rs.getString(4));\n pedido.setCliente(rs.getString(5));\n pedido.setCantidadPedida(rs.getLong(6));\n pedido.setCantidadModificada(rs.getLong(7));\n Calendar fecha = Calendar.getInstance();\n fecha.setTime(rs.getDate(8));\n pedido.setUltimaActualizacionDespiece(fecha);\n pedido.setArticulo(rs.getString(9));\n pedido.setAriCod(rs.getString(10));\n pedido.setArea(rs.getString(11));\n pedido.setUnidadOrg(rs.getInt(12));\n pedido.setTarea(rs.getString(13));\n pedido.setCantidadAPD(rs.getLong(14));\n if (rs.getDate(15) != null) {\n fecha.setTime(rs.getDate(15));\n pedido.setFechaAsignacion(fecha); \n }\n pedido.setCantidadFinalP(rs.getLong(16));\n pedido.setCantidadRealU(rs.getLong(17));\n pedido.setTareaCod(rs.getInt(18));\n fecha.setTime(rs.getDate(19));\n pedido.setFechaUti(fecha);\n fecha.setTime(rs.getDate(20));\n pedido.setFechaFinUtili(fecha);\n \n guardarPedido(pedido);\n \n \n }\n } catch (SQLException ex) {\n \n System.out.println(ex.toString());\n }\n }", "public void actualizarFiltrarEstadoRequisicion(Requisicion req) throws Exception{\n String carnet = req.getCarnetEmpleado();\n\n java.util.Date utilDate = req.getFechaNueva();\n java.sql.Date fechaConvertida = new java.sql.Date(utilDate.getTime()); \n\n List<Requisicion> requisicion = new ArrayList<>();\n \n Connection miConexion = null;\n Statement miStatement = null;\n ResultSet miResultset = null; \n\n \n //Establecer la conexion\n miConexion = origenDatos.getConexion();\n \n \n //Verificar si existe empleado\n String sqlEmpleado = \"Select CARNETEMPLEADO FROM EMPLEADO WHERE CARNETEMPLEADO = '\"+carnet+\"'\";\n miStatement = miConexion.createStatement();\n miResultset = miStatement.executeQuery(sqlEmpleado);\n \n if(miResultset.next()){\n \n String empleado = carnet;\n \n \n String sqlDepto = \"select d.NOMBREDEPARTAMENTO from departamento d \" + \n \"inner join catalagopuesto c on d.codigodepartamento = c.codigodepartamento \" + \n \"inner join empleado e on c.codigopuesto = e.codigopuesto where e.carnetempleado ='\"+carnet+\"'\";\n \n miStatement = miConexion.createStatement();\n \n //Ejecutar SQL\n miResultset = miStatement.executeQuery(sqlDepto);\n //Crear sentencia SQL y Statement\n miResultset.next();\n String nomdepto = miResultset.getString(\"NOMBREDEPARTAMENTO\");\n \n String miSQl = \"select r.NUMREQ, r.FECPEDIDOREQ, r.FECENTREGAREQ, r.AUTORIZADO, e.CARNETEMPLEADO, e.NOMBREEMPLEADO, e.APELLIDOEMPLEADO, d.NOMBREDEPARTAMENTO \" + \n \"from requisicion r inner join empleado e on r.carnetempleado =e.carnetempleado \" + \n \"inner join catalagopuesto c on e.codigopuesto =c.codigopuesto \" + \n \"inner join departamento d on c.codigodepartamento = d.codigodepartamento \" + \n \"where r.AUTORIZADO = 1 and d.NOMBREDEPARTAMENTO='\"+nomdepto+\"' and r.FECPEDIDOREQ >=TO_DATE('\"+fechaConvertida+\"', 'YYYY/MM/DD HH:MI:SS') order by r.FECPEDIDOREQ\";\n \n miStatement = miConexion.createStatement();\n \n //Ejecutar SQL\n miResultset = miStatement.executeQuery(miSQl);\n \n while(miResultset.next()){\n int numReq = miResultset.getInt(\"NUMREQ\");\n Date fechaPedido = miResultset.getDate(\"FECPEDIDOREQ\");\n Date fechaEntrega = miResultset.getDate(\"FECENTREGAREQ\"); \n String carnetEmpleado = miResultset.getString(\"CARNETEMPLEADO\");\n String nombreEmpleado = miResultset.getString(\"NOMBREEMPLEADO\"); \n String apellidoEmpleado = miResultset.getString(\"APELLIDOEMPLEADO\");\n String nombreDepartamento = miResultset.getString(\"NOMBREDEPARTAMENTO\"); \n\n //*************************ACTUALIZAR**************************\n Connection miConexion1 = null;\n PreparedStatement miStatement1 = null;\n \n //Obtener la conexion\n \n miConexion1 = origenDatos.getConexion();\n \n //Crear sentencia sql que inserte la requisicion a la base\n String misql = \"UPDATE requisicion SET autorizado = ? WHERE numreq = ?\";\n \n miStatement1 = miConexion1.prepareStatement(misql);\n \n //Establecer los parametros para insertar la requisicion \n if(\"aceptado\".equals(req.getEstadoAut())) {\n miStatement1.setInt(1, 0);\n }else{\n miStatement1.setInt(1, 1);\n } \n\n miStatement1.setInt(2, numReq);//se obtendra dentro del while\n \n //Ejecutar la instruccion sql\n miStatement1.execute(); \n //Requisicion temporal = new Requisicion(numReq, fechaPedido, fechaEntrega, carnetEmpleado, nombreEmpleado, apellidoEmpleado, nombreDepartamento);\n //requisicion.add(temporal);\n }\n \n }\n //return requisicion; \n }", "public void ejecutarCodigoSQLdatos(String nombrebuscado)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tFileReader codigoarchivo = new FileReader ( \"./images/BD/Codigo SQL crebas datos.sql\" );\r\n\t\t\tBufferedReader reader = new BufferedReader (codigoarchivo);\r\n\t\t\tString codigo = reader.readLine();\r\n\t\t\twhile(codigo!= null)\r\n\t\t\t{\r\n\t\t\t\tif(!codigo.equalsIgnoreCase(\"\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tConector conectord = new Conector(nombrebuscado);\r\n\t\t\t\t\tconectord.iniciarConexionBaseDatos();\r\n\t\t\t\t\tCrearBD.ejecutarCodigoSQL(codigo, conectord);\r\n\t\t\t\t\tconectord.terminarConexionBaseDatos();\r\n\t\t\t\t}\r\n\t\t\t\tcodigo = reader.readLine();\r\n\t\t\t}\r\n\t\t\tJOptionPane.showMessageDialog(this,\"Se Instalo la Base de Datos Correctamente.\",\"Instalar Base de Datos\", JOptionPane.INFORMATION_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/informacion.PNG\"));\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tConector conectorg = new Conector(nombrebuscado);\r\n\t\t\t\tconectorg.iniciarConexionBaseDatos();\r\n\t\t\t\tCrearBD.ejecutarCodigoSQL(\"DROP DATABASE \"+nombrebuscado, conectorg);\r\n\t\t\t\tconectorg.terminarConexionBaseDatos();\r\n\t\t\t\tJOptionPane.showMessageDialog(this,\"No se encontro el archivo Codigo SQL crebas datos.sql\",\"Error\", JOptionPane.ERROR_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/error.PNG\"));\r\n\t\t\t}\r\n\t\t\tcatch (Exception ex)\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}", "public void introducirConsumosHotelFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo) {\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);\n try {// mira los consumo de unas fechas\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT * FROM CONSUMO_RESTAURANTE WHERE Fecha_Consumo>=? AND Fecha_Consumo<=?\");\n declaracion.setDate(1,fechaInicialSql);\n declaracion.setDate(2,fechaFinalSQL);\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {// mira los consumo de unas fechas\n Object objeto[] = new Object[7];\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);// mira los consumo de unas fechas\n objeto[2] = resultado.getString(3);\n objeto[3] = resultado.getInt(4);\n objeto[4] = resultado.getInt(5);\n objeto[5] = resultado.getDate(6);// mira los consumo de unas fechas\n int total = (Integer)objeto[3]*(Integer)objeto[4];\n objeto[6]= total;\n modelo.addRow(objeto);// mira los consumo de unas fechas\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "public void novoDebito(Debitos debitos, String conCodigo, Contas contaComSaldo) throws SQLException {\r\n String sqls = \"select * from contas where concodigo = \" + conCodigo + \" \";\r\n\r\n PreparedStatement psc = null;\r\n ResultSet rsc = null;\r\n try {\r\n psc = connection.prepareStatement(sqls);\r\n rsc = psc.executeQuery();\r\n while (rsc.next()) {\r\n contaComSaldo.setConCodigo(rsc.getInt(\"concodigo\"));\r\n contaComSaldo.setConDescricao(rsc.getString(\"condescricao\"));\r\n contaComSaldo.setTipoCodigo(rsc.getInt(\"tipocodigo\"));\r\n contaComSaldo.setConSaldo(rsc.getDouble(\"consaldo\"));\r\n }\r\n\r\n } catch (Exception e) {\r\n Logger.getLogger(ContaDAO.class.getName()).log(Level.SEVERE, null, e);\r\n\r\n }\r\n\r\n String sqlUltimoCredito = \"select * from creditos order by crecodigo desc limit 1\";\r\n\r\n PreparedStatement pscUltimoCredito = null;\r\n ResultSet rscUltimoCredito = null;\r\n\r\n Creditos creditos = new Creditos();\r\n\r\n try {\r\n\r\n pscUltimoCredito = connection.prepareStatement(sqlUltimoCredito);\r\n rscUltimoCredito = pscUltimoCredito.executeQuery();\r\n while (rscUltimoCredito.next()) {\r\n\r\n creditos.setCreCodigo(rscUltimoCredito.getInt(\"crecodigo\"));\r\n creditos.setCreData(rscUltimoCredito.getDate(\"credata\"));\r\n creditos.setConCodigo(rscUltimoCredito.getInt(\"concodigo\"));\r\n creditos.setCreValor(rscUltimoCredito.getInt(\"crevalor\"));\r\n creditos.setCreHistorico(rscUltimoCredito.getString(\"crehistorico\"));\r\n creditos.setConSaldo(rscUltimoCredito.getDouble(\"consaldo\"));\r\n }\r\n\r\n } catch (Exception e) {\r\n Logger.getLogger(DebitoDAO.class.getName()).log(Level.SEVERE, null, e);\r\n\r\n }\r\n\r\n String sql = \"insert into debitos (debdata,concodigo,debvalor,debhistorico,consaldo,creditoid) values (?,?,?,?,?,?)\";\r\n PreparedStatement ps = null;\r\n try {\r\n ps = connection.prepareStatement(sql);\r\n ps.setDate(1, new java.sql.Date(debitos.getDebData().getTime()));\r\n ps.setInt(2, debitos.getConCodigo());\r\n ps.setDouble(3, debitos.getDebValor() * -1);\r\n ps.setString(4, debitos.getDebHistorico());\r\n ps.setDouble(5, contaComSaldo.getConSaldo());\r\n ps.setInt(6, creditos.getCreCodigo());\r\n\r\n ps.execute();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(CreditoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n connection.close();\r\n ps.close();\r\n }\r\n }", "private PreparedStatement prepareClientesRebarba(Connection conn, String data, String promocao) \n\t\tthrows ParseException, SQLException\n\t{\n\t\tPreparedStatement result = null;\t\t\n\t\tSimpleDateFormat conversorData = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\tDate dataExecucao = conversorData.parse(data);\t\t\n\t\t\n\t\t//Parametro 1: Promocao (Parametro do metodo)\n\t\t//Parametro 2: Ano e mes da execucao\n\t\tSimpleDateFormat conversorDatMes = new SimpleDateFormat(\"yyMM\");\n\t\tString datMes = conversorDatMes.format(mesAnterior(dataExecucao));\n\t\t//Parametros 3, 5 e 7: Primeiro dia do mes da execucao\n\t\tDate dataInicioMesExecucao = getPrimeiroDiaMes(dataExecucao);\n\t\t//Parametro 4: Tipo de transacao da promocao PulaPula\n\t\tString tipoTransacao = TIPO_TRANSACAO_PULA_PULA;\n\t\t//Parametro 5: Primeiro dia do mes posterior ao da execucao\n\t\tDate dataInicioProxMes = getPrimeiroDiaMes(proximoMes(dataExecucao));\n\t\t//Parametro 8: Ultimo dia do mes da execucao\n\t\tDate dataFimMesExecucao = getUltimoDiaMes(dataExecucao);\n\n\t\tString sqlClientes = getQuerySelecaoClientesRebarba();\n\t\tresult = conn.prepareStatement(sqlClientes);\t\t\n\t\tresult.setString(1, promocao);\n\t\tresult.setString(2, datMes);\n\t\tresult.setDate (3, new java.sql.Date(dataInicioMesExecucao.getTime()));\n\t\tresult.setString(4, tipoTransacao);\n\t\tresult.setDate (5, new java.sql.Date(dataInicioMesExecucao.getTime()));\n\t\tresult.setDate (6, new java.sql.Date(dataInicioProxMes.getTime()));\n\t\tresult.setDate (7, new java.sql.Date(dataInicioMesExecucao.getTime()));\n\t\tresult.setDate (8, new java.sql.Date(dataFimMesExecucao.getTime()));\n\t\t\n\t\treturn result;\n\t}", "private boolean crearResponsable(int codigoCiclo, int codigoPlan, int codigoMeta, int codigoResponsable, String estado, String usuarioInsercion) {\n/* */ try {\n/* 578 */ String s = \"select estado from cal_plan_responsables_meta r where r.codigo_ciclo=\" + codigoCiclo + \" and r.codigo_plan=\" + codigoPlan + \" and r.codigo_meta=\" + codigoMeta + \" and r.codigo_responsable=\" + codigoResponsable;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 585 */ this.dat.parseSql(s);\n/* 586 */ this.rs = this.dat.getResultSet();\n/* 587 */ if (this.rs.next()) {\n/* 588 */ s = \"update cal_plan_responsables_meta set estado='\" + estado + \"',\" + \" fecha_modificacion=\" + Utilidades.getFechaBD() + \",\" + \" usuario_modificacion='\" + usuarioInsercion + \"'\" + \" where codigo_ciclo=\" + codigoCiclo + \" and codigo_plan=\" + codigoPlan + \" and codigo_meta=\" + codigoMeta + \" and codigo_responsable=\" + codigoResponsable;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ }\n/* */ else {\n/* */ \n/* */ \n/* */ \n/* */ \n/* 599 */ s = \"insert into cal_plan_responsables_meta (codigo_ciclo,codigo_plan,codigo_meta,codigo_responsable,estado,fecha_insercion,usuario_insercion) values (\" + codigoCiclo + \",\" + \"\" + codigoPlan + \",\" + \"\" + codigoMeta + \",\" + \"\" + codigoResponsable + \",\" + \"'\" + estado + \"',\" + \"\" + Utilidades.getFechaBD() + \",\" + \"'\" + usuarioInsercion + \"'\" + \")\";\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 617 */ return this.dat.executeUpdate(s);\n/* */ \n/* */ }\n/* 620 */ catch (Exception e) {\n/* 621 */ e.printStackTrace();\n/* 622 */ Utilidades.writeError(\"CalResponsablesMetaFactory:crearRegistro\", e);\n/* */ \n/* 624 */ return false;\n/* */ } \n/* */ }", "private void saveData() {\n try {\n String query;\n query = \"INSERT INTO limit_hd (kode_limit, grup, produk, masa_limit, jumlah_limit, status, pesan_gagal, tgl_mulai_event, tgl_akhir_event, date_create, date_update) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)\";\n Connection conn = (Connection) DatabaseConnection.getConnection(dbName2);\n PreparedStatement pst = conn.prepareStatement(query);\n getMaxKodeLimit();\n maxKodeLimit += 1;\n grupColumn = cmbGrup.getSelectedItem().toString();\n produkColumn = cmbProduk.getSelectedItem().toString();\n masaLimitColumn = cmbTransactionPeriod.getSelectedItem().toString();\n jumlahLimitColumn = Integer.parseInt(txtTransactionLimit.getText());\n errorMessageColumn = txaErrorMessage.getText();\n startDate = dtpStartDateEvent.getText();\n endDate = dtpEndDateEvent.getText();\n isStatusColumn = true;\n\n SimpleDateFormat dateFormatter = new SimpleDateFormat(\"dd-MMM-yyyy\");\n\n Date sqlDate1 = (Date) dateFormatter.parse(startDate);\n Date sqlDate2 = (Date) dateFormatter.parse(endDate);\n\n java.sql.Date startEventDate = new java.sql.Date(sqlDate1.getTime());\n java.sql.Date endEventDate = new java.sql.Date(sqlDate2.getTime());\n\n pst.setInt(1, maxKodeLimit);\n pst.setString(2, grupColumn);\n pst.setString(3, produkColumn);\n pst.setString(4, masaLimitColumn);\n pst.setInt(5, jumlahLimitColumn);\n pst.setBoolean(6, isStatusColumn);\n pst.setString(7, errorMessageColumn);\n pst.setDate(8, startEventDate);\n pst.setDate(9, endEventDate);\n pst.setDate(10, java.sql.Date.valueOf(java.time.LocalDate.now()));\n pst.setDate(11, java.sql.Date.valueOf(java.time.LocalDate.now()));\n pst.executeUpdate();\n showLimitHeader();\n defaultSetVariable();\n JOptionPane.showMessageDialog(null, \"Data telah berhasil di simpan\");\n } catch (HeadlessException | SQLException e) {\n JOptionPane.showMessageDialog(this, e.getMessage());\n } catch (Exception ex) {\n Logger.getLogger(LimitAddOn.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void Consultar(String query) {\n try {\n conectionSql();\n preparedStatement = conection.prepareStatement(query);\n } catch (Exception e) {\n// MessageEmergent(\"Fail Consultar(): \"+e.getMessage());\n }\n }", "public void introducirConsumosClienteFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo,String dpiCliente) {\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);\n try {// mira los consumo de unas fechas\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT CONSUMO_RESTAURANTE.Id_Consumo,CONSUMO_RESTAURANTE.Id_Alojamiento,CONSUMO_RESTAURANTE.Nombre_Comida,CONSUMO_RESTAURANTE.Precio_Comida,CONSUMO_RESTAURANTE.Cantidad,CONSUMO_RESTAURANTE.Fecha_Consumo FROM CONSUMO_RESTAURANTE JOIN ALOJAMIENTO JOIN RESERVACION WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND ALOJAMIENTO.Id=CONSUMO_RESTAURANTE.Id_Alojamiento AND RESERVACION.Dpi_Cliente=? AND Fecha_Consumo>=? AND Fecha_Consumo<=?\");\n declaracion.setString(1, dpiCliente);\n declaracion.setDate(2,fechaInicialSql);\n declaracion.setDate(3,fechaFinalSQL);\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {// mira los consumo de unas fechas\n Object objeto[] = new Object[7];\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);\n objeto[2] = resultado.getString(3);\n objeto[3] = resultado.getInt(4);// mira los consumo de unas fechas\n objeto[4] = resultado.getInt(5);\n objeto[5] = resultado.getDate(6);\n int total = (Integer)objeto[3]*(Integer)objeto[4];\n objeto[6]= total;// mira los consumo de unas fechas\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "private void TampilData(){\n try{ //\n String sql = \"SELECT * FROM buku\"; // memanggil dari php dengan tabel buku\n stt = con.createStatement(); // membuat statement baru dengan mengkonekan ke database\n rss = stt.executeQuery(sql); \n while (rss.next()){ \n Object[] o = new Object [3]; // membuat array 3 dimensi dengan nama object\n \n o[0] = rss.getString(\"judul\"); // yang pertama dengan ketentuan judul\n o[1] = rss.getString(\"penulis\"); // yang kedua dengan ketentuan penulis\n o[2] = rss.getInt(\"harga\"); // yang ketiga dengan ketentuan harga\n model.addRow(o); // memasukkan baris dengan mengkonekan di tabel model\n } \n }catch(SQLException e){ // memanipulasi kesalahan\n System.out.println(\"ini error\"); // menampilkan pesan ini error\n }\n }", "@SuppressWarnings(\"unchecked\")\r\n\tprivate void cargarLista(String sql1, String sql2) {\r\n\t\tlistaPlantaCargoDet = new ArrayList<PlantaCargoDet>();\r\n\t\tlistaPuestosReservados = new ArrayList<ConcursoPuestoDet>();\r\n\t\tlistaPlantaCargoDto = new ArrayList<PlantaCargoDetDTO>();\r\n\t\tlistaPlantaCargoDet = em.createNativeQuery(sql1, PlantaCargoDet.class)\r\n\t\t\t\t.getResultList();\r\n\t\tlistaPuestosReservados = em.createNativeQuery(sql2,\r\n\t\t\t\tConcursoPuestoDet.class).getResultList();\r\n\t\tif (listaPuestosReservados.size() > 0) {\r\n\t\t\tcantReservados = listaPuestosReservados.size();\r\n\t\t\tfor (ConcursoPuestoDet r : listaPuestosReservados) {\r\n\t\t\t\tPlantaCargoDetDTO dto = new PlantaCargoDetDTO();\r\n\t\t\t\tLong id = r.getPlantaCargoDet().getIdPlantaCargoDet();\r\n\t\t\t\tdto.setPlantaCargoDet(r.getPlantaCargoDet());\r\n\t\t\t\tdto.setReservar(true);\r\n\t\t\t\tlistaPlantaCargoDto.add(dto);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tcantReservados = 0;\r\n\t\t}\r\n\r\n\t\tif (listaPlantaCargoDet.size() > 0) {\r\n\t\t\tfor (PlantaCargoDet p : listaPlantaCargoDet) {\r\n\t\t\t\tBoolean esta = false;\r\n\t\t\t\tfor (ConcursoPuestoDet r : listaPuestosReservados) {\r\n\t\t\t\t\tif (r.getPlantaCargoDet().equals(p))\r\n\t\t\t\t\t\testa = true;\r\n\t\t\t\t}\r\n\t\t\t\tif (!esta) {\r\n\r\n\t\t\t\t\tPlantaCargoDetDTO dto = new PlantaCargoDetDTO();\r\n\t\t\t\t\tdto.setPlantaCargoDet(p);\r\n\t\t\t\t\tdto.setReservar(false);\r\n\t\t\t\t\tlistaPlantaCargoDto.add(dto);\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void consultarDatos() throws SQLException {\n String instruccion = \"SELECT * FROM juegos.juegos\";\n try {\n comando = conexion.createStatement();\n resultados = comando.executeQuery(instruccion);\n } catch (SQLException e) {\n e.printStackTrace();\n throw e;\n }\n }", "public void introducirConsumosHabitacion(TablaModelo modelo,String idHabitacion) {\n int idHabitacionInt = Integer.parseInt(idHabitacion);\n try {// mira los consumo de unas fechas\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT CONSUMO_RESTAURANTE.Id_Consumo,CONSUMO_RESTAURANTE.Id_Alojamiento,CONSUMO_RESTAURANTE.Nombre_Comida,CONSUMO_RESTAURANTE.Precio_Comida,CONSUMO_RESTAURANTE.Cantidad,CONSUMO_RESTAURANTE.Fecha_Consumo FROM CONSUMO_RESTAURANTE JOIN ALOJAMIENTO JOIN RESERVACION WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND ALOJAMIENTO.Id=CONSUMO_RESTAURANTE.Id_Alojamiento AND RESERVACION.Id_Habitacion=?\");\n declaracion.setInt(1, idHabitacionInt);// mira los consumo de unas fechas\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {\n Object objeto[] = new Object[7];// mira los consumo de unas fechas\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);// mira los consumo de unas fechas\n objeto[2] = resultado.getString(3);\n objeto[3] = resultado.getInt(4);\n objeto[4] = resultado.getInt(5);// mira los consumo de unas fechas\n objeto[5] = resultado.getDate(6);\n int total = (Integer)objeto[3]*(Integer)objeto[4];\n objeto[6]= total;// mira los consumo de unas fechas\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "private void cargaInfoEmpleado(){\r\n Connection conn = null;\r\n Conexion conex = null;\r\n try{\r\n if(!Config.estaCargada){\r\n Config.cargaConfig();\r\n }\r\n conex = new Conexion();\r\n conex.creaConexion(Config.host, Config.user, Config.pass, Config.port, Config.name, Config.driv, Config.surl);\r\n conn = conex.getConexion();\r\n if(conn != null){\r\n ArrayList<Object> paramsIn = new ArrayList();\r\n paramsIn.add(txtLogin);\r\n QryRespDTO resp = new Consulta().ejecutaSelectSP(conn, IQryUsuarios.NOM_FN_OBTIENE_INFO_USUARIOWEB, paramsIn);\r\n System.out.println(\"resp: \" + resp.getRes() + \"-\" + resp.getMsg());\r\n if(resp.getRes() == 1){\r\n ArrayList<ColumnaDTO> listaColumnas = resp.getColumnas();\r\n for(HashMap<String, CampoDTO> fila : resp.getDatosTabla()){\r\n usuario = new UsuarioDTO();\r\n \r\n for(ColumnaDTO col: listaColumnas){\r\n switch(col.getIdTipo()){\r\n case java.sql.Types.INTEGER:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Integer.parseInt(fila.get(col.getEtiqueta()).getValor().toString().replaceAll(\",\", \"\").replaceAll(\"$\", \"\").replaceAll(\" \", \"\")));\r\n break;\r\n \r\n case java.sql.Types.DOUBLE:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Double.parseDouble(fila.get(col.getEtiqueta()).getValor().toString()));\r\n break;\r\n \r\n case java.sql.Types.FLOAT:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Float.parseFloat(fila.get(col.getEtiqueta()).getValor().toString()));\r\n break;\r\n \r\n case java.sql.Types.DECIMAL:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Float.parseFloat(fila.get(col.getEtiqueta()).getValor().toString()));\r\n break;\r\n \r\n case java.sql.Types.VARCHAR:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"\":fila.get(col.getEtiqueta()).getValor().toString());\r\n break;\r\n \r\n case java.sql.Types.NUMERIC:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Float.parseFloat(fila.get(col.getEtiqueta()).getValor().toString()));\r\n break;\r\n \r\n default:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"\":fila.get(col.getEtiqueta()).getValor().toString());\r\n break;\r\n } \r\n }\r\n }\r\n sesionMap.put(\"UsuarioDTO\", usuario);\r\n }else{\r\n context.getExternalContext().getApplicationMap().clear();\r\n context.getExternalContext().redirect(\"index.xhtml\");\r\n }\r\n }\r\n }catch(Exception ex){\r\n System.out.println(\"Excepcion en la cargaInfoEmpleado: \" + ex);\r\n }finally{\r\n try{\r\n conn.close();\r\n }catch(Exception ex){\r\n \r\n }\r\n }\r\n }", "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 }", "public void buscaxcodigo() {\r\n try {\r\n modelo.setCodigobarras(vista.jTbcodigobarras.getText());//C.P.M mandamos el codigo de barras ingresado\r\n rs = modelo.Buscarxcodigobarras();//C.P.M mandamos a consultar ese codigo de barras\r\n DefaultTableModel buscar = new DefaultTableModel() {//C.P.M instanciamos el modelo de la tabla\r\n @Override\r\n public boolean isCellEditable(int rowIndex, int vColIndex) {\r\n return false;\r\n }\r\n };\r\n vista.jTbuscar.setModel(buscar);//C.P.M le mandamos el modelo a la tabla\r\n modelo.estructuraProductos(buscar);//C.P.M obtenemos la estructura de la tabla \"Encabezados\"\r\n ResultSetMetaData rsMd = rs.getMetaData();//C.P.M obtenemos los metadatos de la consulta\r\n int cantidadColumnas = rsMd.getColumnCount();//C.P.M obtenemos las columnas de la consulta\r\n\r\n while (rs.next()) {//C.P.M recorremos el resultado\r\n Object[] fila = new Object[cantidadColumnas];//C.P.M creamos un vector con el tamano de las columnas de el resultado\r\n for (int i = 0; i < cantidadColumnas; i++) {//C.P.M recorremos el arreglo\r\n fila[i] = rs.getObject(i + 1);//C.P.M y vamos insertando el resultado\r\n }\r\n buscar.addRow(fila);//C.P.M le mandamos el arreglo como renglon nuevo\r\n }\r\n\r\n } catch (SQLException ex) {\r\n JOptionPane.showMessageDialog(null, \"Ocurrio un error al buscar por codigo de barras\");\r\n }\r\n }", "public ArrayList<clsPago> consultaDataPagosCuotaInicial(int codigoCli)\n { \n ArrayList<clsPago> data = new ArrayList<clsPago>(); \n try{\n bd.conectarBaseDeDatos();\n sql = \" SELECT a.id_pagos_recibo idPago, a.id_usuario, b.name name_usuario, \"\n + \" a.referencia referencia, \"\n + \" a.fecha_pago fecha_pago, a.estado, \"\n + \" a.valor valor_pago, a.id_caja_operacion, e.name_completo nombre_cliente, \"\n + \" a.fecha_pago fecha_registro\"\n + \" FROM ck_pagos_recibo AS a\"\n + \" JOIN ck_usuario AS b ON a.id_usuario = b.id_usuario\"\n + \" JOIN ck_cliente AS e ON a.codigo = e.codigo\"\n + \" WHERE a.estado = 'A'\"\n + \" AND a.cuota_inicial = 'S'\"\n + \" AND a.estado_asignado = 'N'\"\n + \" AND a.codigo = \" + codigoCli; \n \n System.out.println(sql);\n bd.resultado = bd.sentencia.executeQuery(sql);\n \n if(bd.resultado.next())\n { \n do \n { \n clsPago oListaTemporal = new clsPago();\n \n oListaTemporal.setReferencia(bd.resultado.getString(\"referencia\"));\n oListaTemporal.setFechaPago(bd.resultado.getString(\"fecha_pago\"));\n oListaTemporal.setNombreUsuario(bd.resultado.getString(\"name_usuario\"));\n oListaTemporal.setNombreCliente(bd.resultado.getString(\"nombre_cliente\"));\n oListaTemporal.setValor(bd.resultado.getDouble(\"valor_pago\"));\n oListaTemporal.setFechaRegistro(bd.resultado.getString(\"fecha_registro\"));\n oListaTemporal.setIdPago(bd.resultado.getInt(\"idPago\"));\n data.add(oListaTemporal);\n }\n while(bd.resultado.next()); \n //return data;\n }\n else\n { \n data = null;\n } \n }\n catch(Exception ex)\n {\n System.out.print(ex);\n data = null;\n } \n bd.desconectarBaseDeDatos();\n return data;\n }", "public List<Produto> consultarProdutos(int consulta, String valor) {\r\n ConexaoBDJavaDB conexaoBD = new ConexaoBDJavaDB(\"routeexpress\");\r\n Connection conn = null;\r\n Statement stmt = null;\r\n ResultSet rs = null;\r\n List<Produto> produtos = new ArrayList<>();\r\n try {\r\n conn = conexaoBD.obterConexao();\r\n stmt = conn.createStatement();\r\n //Se a consulta for igual a zero(0) uma lista de todos os produtos \"cervejas\" e recuperada\r\n if (consulta == 0) {\r\n rs = stmt.executeQuery(consultas[consulta]);\r\n //Se a consulta for igual a tres(3) uma lista de todos os produtos \"cervejas\" e recuperada a parti do preco\r\n } else {\r\n rs = stmt.executeQuery(consultas[consulta] + \"'\" + valor + \"'\");\r\n }\r\n Produto produto;\r\n while (rs.next()) {\r\n produto = new Produto();\r\n produto.setIdCervejaria(rs.getInt(\"ID_CERVEJARIA\"));\r\n produto.setCervejaria(rs.getString(\"CERVEJARIA\"));\r\n produto.setPais(rs.getString(\"PAIS\"));\r\n produto.setIdCerveja(rs.getInt(\"ID_CERVEJA\"));\r\n produto.setIdFkCervajaria(rs.getInt(\"FK_CERVEJARIA\"));\r\n produto.setRotulo(rs.getString(\"ROTULO\"));\r\n produto.setPreco(rs.getString(\"PRECO\"));\r\n produto.setVolume(rs.getString(\"VOLUME\"));\r\n produto.setTeor(rs.getString(\"TEOR\"));\r\n produto.setCor(rs.getString(\"COR\"));\r\n produto.setTemperatura(rs.getString(\"TEMPERATURA\"));\r\n produto.setFamiliaEEstilo(rs.getString(\"FAMILIA_E_ESTILO\"));\r\n produto.setDescricao(rs.getString(\"DESCRICAO\"));\r\n produto.setSabor(rs.getString(\"SABOR\"));\r\n produto.setImagem1(rs.getString(\"IMAGEM_1\"));\r\n produto.setImagem2(rs.getString(\"IMAGEM_2\"));\r\n produto.setImagem3(rs.getString(\"IMAGEM_3\"));\r\n produtos.add(produto);\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (ClassNotFoundException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n if (conn != null) {\r\n try {\r\n conn.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (stmt != null) {\r\n try {\r\n stmt.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (rs != null) {\r\n try {\r\n rs.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }\r\n return produtos;\r\n }", "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 void makeSql() {\n\t\tfor(int i=0; i<arr_sql.length; i++) {\n\t\t\tarr_sql[i] = new StringBuffer();\n\t\t}\n\t\t\n\t\t/*\n\t\t * 공통코드 쿼리\n\t\t * 대리점구분 : CU006\n\t\t * 직판구분 : CU012\n\t\t * 지역 : SY006\n\t\t * 계약상태 : CU013\n\t\t * 사용유무 : SY011\n\t\t * 보증보험회사 : CU010\n\t\t * 하위대리점여부 : CU011\n\t\t */\n\t\tarr_sql[0].append (\"SELECT\t\t\t\t\t\t\t\t\t\t\\n\")\n\t\t\t\t .append (\"\t' ' head, ' ' detail, '전체' detail_nm \\n\")\n\t\t\t\t .append (\"FROM DUAL \\n\")\n\t\t\t\t .append (\"UNION ALL \\n\")\n\t\t\t\t .append (\"SELECT \\n\")\n\t\t\t\t .append (\"\tB.head, B.detail, B.detail_nm \\n\")\n\t\t\t\t .append (\"FROM \\n\")\n\t\t\t\t .append (\"\tSALES.TSY011 A, \\n\")\n\t\t\t\t .append (\"\tSALES.TSY010 B \\n\")\n\t\t\t\t .append (\"WHERE 1=1 \\n\")\n\t\t\t\t .append (\" AND A.head = B.head \\n\")\n\t\t\t\t .append (\" AND B.head = ? \\n\")\n\t\t\t\t .append (\" AND LENGTH (rtrim(B.detail)) > 0 \\n\");\n\t\t\n\t\t/*\n\t\t * 대리점 조회\n\t\t */\n\t\tarr_sql[1].append(\"SELECT T1.client_sid\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 매출처SID \t*/\n\t \t\t .append(\"\t\t ,T1.vend_cd \t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\\n\")\t/* [회계]거래처 코드 \t*/\n\t \t\t .append(\"\t\t ,T1.client_cd \t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\\n\")\t/* 매출처 코드 \t*/\n\t \t\t .append(\"\t\t ,T1.client_nm \t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\\n\")\t/* 매출처 명 \t*/\n\t \t\t .append(\"\t\t ,T1.client_gu \t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\\n\")\t/* 매출처구분 :CU005 \t*/\n\t \t\t \n\t \t\t .append(\"\t\t ,T1.agen_gu \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 대리점구분 :CU006 \t*/\n\t \t\t .append(\"\t\t ,T1.dir_yn \t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\\n\")\t/* 직판여부 :CU012 \t*/\n\t \t\t .append(\"\t\t ,T1.area_cd \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 지역코드 :SY006 \t*/\n\t \t\t .append(\"\t\t ,T1.sal_dam_sid \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 영업담당자코드[TSY410] */\n\t \t\t .append(\"\t\t ,T1.client_dam_nm \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 매출처담당자 \t*/\n\t \t\t \n\t \t\t .append(\"\t\t ,T1.tel_no \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 전화번호 \t*/\n\t \t\t .append(\"\t\t ,T1.mobile_no \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 휴대전화 \t*/\n\t \t\t .append(\"\t\t ,T1.fax_no \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* FAX번호 \t*/\n\t \t\t .append(\"\t\t ,T1.e_mail \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 이메일 \t*/\n\t \t\t .append(\"\t\t ,T1.zip_cd \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 우편번호[TSY110] */\n\t \t\t \n\t \t\t .append(\"\t\t ,T1.address1 \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 주소1 \t*/\n\t \t\t .append(\"\t\t ,T1.address2 \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 주소2 \t*/\n\t \t\t .append(\"\t\t ,T1.commi_rate \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 수수료율 \t*/\n\t \t\t .append(\"\t\t ,T1.cunt_status \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 계약상태 :CU013 \t*/\n\t \t\t .append(\"\t\t ,T1.bancod \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 은행코드 [BANKCODE] */\n\t \t\t \n\t \t\t .append(\"\t\t ,T1.bank_acc_no \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 은행계좌번호 \t*/\n\t \t\t .append(\"\t\t ,T1.bank_acct_nm \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 예금주 \t*/\n\t \t\t .append(\"\t\t ,T1.use_yn \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 사용여부 :SY011 \t*/ \n\t \t\t .append(\"\t\t ,T1.client_url\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 홈페이지 URL\t\t\t\t*/\n\t \t\t .append(\"\t\t ,T2.sal_dam_nm \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 영업담당자명 \t*/\n\t \t\t .append(\"\t\t ,T3.vend_nm \t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\\n\")\t/* 거래처명 \t*/\n\t \t\t \n\t \t\t .append(\"\t\t ,T4.bannam \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 은행명 \t*/\n\t \t\t .append(\"\t\t ,SALES.FN_DETAIL_NM ( 'CU006',T1.agen_gu) AS agen_gu_name \t\t\t\t\t\\n\")\t/* 대리점구분명 \t\t\t\t*/ \n\t \t\t .append(\"\t\t ,SALES.FN_DETAIL_NM ( 'CU012',T1.dir_yn) AS dir_yn_name \t\t\t\t\t\\n\")\t/* 직판여부명 \t\t\t\t*/ \n\t \t\t .append(\"\t\t ,SALES.FN_DETAIL_NM ( 'SY006',T1.area_cd) AS area_nm\t\t\t\t\t\t\t\\n\")\t/* 지역명 \t\t\t\t*/\n\t \t\t .append(\"\t\t ,SALES.FN_DETAIL_NM ( 'CU013',T1.cunt_status) AS cunt_status_name \t\t\t\\n\")\t/* 계약상태명 \t\t\t\t*/\n\n\t \t\t .append(\"\t\t ,SALES.FN_DETAIL_NM ( 'SY011',T1.use_yn) AS use_yn_name \t\t\t\\n\")\t/* 사용여부명 \t\t\t \t*/\n\n\t \t\t .append(\"FROM SALES.TCU030 T1 LEFT OUTER JOIN SALES.TSY410 T2 ON T1.SAL_DAM_SID = T2.SAL_DAM_SID \\n\")\n\t \t\t .append(\"\t\t LEFT OUTER JOIN ACCOUNT.GCZM_VENDER T3 ON T1.VEND_CD = T3.VEND_CD \t\t\t\t\t\\n\")\n\t \t\t .append(\"\t\t LEFT OUTER JOIN ACCOUNT.BANKCODE T4 ON T1.BANCOD = T4.BANCOD \t\t\t\t\t\\n\")\n\t \t\t .append(\"WHERE 1 = 1 \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\n\t \t\t .append(\"\t\t AND T1.client_GU = '1' \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\");\n\t\t/*\n\t\t * 계약정보 조회\n\t\t */\n\t\tarr_sql[2].append(\"SELECT T1.client_sid\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 매출처SID \t*/\n\t\t\t\t .append(\"\t\t ,T1.cont_date\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\") \t/* 계약일자 \t*/\n\t\t\t\t .append(\"\t\t ,T1.expire_date\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 만기일자 \t*/\n\t\t\t\t .append(\"\t\t ,TO_NUMBER(T1.insur_amt) AS insur_amt\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 보험료 \t*/\n\t\t\t\t .append(\"\t\t ,T1.insur_comp_cd\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 보증보험회사:CU010 \t*/\n\t\t\t\t .append(\"\t\t ,SALES.FN_DETAIL_NM ('CU010',T1.insur_comp_cd) AS insur_comp_cd_name\t\t\\n\") \t/* 보증보험회사명 \t\t*/ \n\t\t\t\t .append(\"FROM SALES.TCU031 T1 \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\n\t\t\t\t .append(\"WHERE 1=1\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\");\n\t\t \n\t\n\t\t/*\n\t\t * 지점정보 조회\n\t\t */\n\t\tarr_sql[3].append(\"SELECT T1.client_sid\t\t\t\t\t\t\t\t\t\t\t\t\\n\") \t/* 매출처SID \t\t*/\n\t\t\t\t .append(\"\t\t ,T1.branch_cd\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 지점코드 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,T1.branch_nm \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\") \t/* 지점명 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,T1.area_cd\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\") \t/* 지역코드:SY006 \t\t*/\n\t\t\t\t .append(\"\t\t ,T1.client_down_yn \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 하위대리점여부:CU011 \t*/\n\t\t\t\t .append(\"\t\t ,T1.empno \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 담당자 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,T1.tel_no \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 전화번호 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,T1.mobile_no \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 휴대폰 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,T1.fax_no \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 팩스번호 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,T1.branch_url \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 지점홈페이지 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,SALES.FN_DETAIL_NM ( 'SY006', T1.area_cd) AS area_nm\t\t\t\t\t\t\t\\n\") \t/* 지역명:SY006 \t\t*/\n\t\t\t\t .append(\"\t\t ,SALES.FN_DETAIL_NM ( 'CU011',T1.client_down_yn) AS client_down_yn_name \t\\n\")\t/* 하위대리점여부명 \t\t*/\n\t\t\t\t .append(\"FROM SALES.TCU032 T1\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\");\n\t\t\n\t\t\n\t\t/*\n\t\t * 대리점 등록\n\t\t */\n\n\t\tarr_sql[4].append(\"INSERT INTO SALES.TCU030 (\")\n\t\t\t\t .append(\"\t\t\t\t client_sid \\n\")\t\n\t\t\t\t .append(\"\t\t\t\t,vend_cd \\n\")\t/* [회계]거래처 코드 \t*/\n\t\t\t\t .append(\"\t\t\t\t,client_cd \\n\")\t/* 매출처 코드 \t*/\n\t\t\t\t .append(\"\t\t\t\t,client_nm \\n\")\t/* 매출처 명 \t*/\n\t\t\t\t .append(\"\t\t\t\t,client_gu \\n\")\t/* 매출처구분 :CU005 \t*/\n\t\t\t\t .append(\"\t\t\t\t,agen_gu \\n\")\t/* 대리점구분 :CU006 \t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t\t\t,dir_yn \\n\")\t/* 직판여부 :CU012 \t*/\n\t\t\t\t .append(\"\t\t\t\t,area_cd \\n\")\t/* 지역코드 :SY006 \t*/\n\t\t\t\t .append(\"\t\t\t\t,sal_dam_sid \\n\")\t/* 영업담당자코드[TSY410] \t*/\n\t\t\t\t .append(\"\t\t\t\t,client_dam_nm \\n\")\t/* 매출처담당자 \t*/\n\t\t\t\t .append(\"\t\t\t\t,tel_no \\n\")\t/* 전화번호 \t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t\t\t,mobile_no \\n\")\t/* 핸드폰 \t*/\n\t\t\t\t .append(\"\t\t\t\t,fax_no \\n\")\t/* FAX번호 \t*/\n\t\t\t\t .append(\"\t\t\t\t,e_mail \\n\")\t/* 이메일 \t*/\n\t\t\t\t .append(\"\t\t\t\t,zip_cd \\n\")\t/* 소재지우편번호[TSY110] */\n\t\t\t\t .append(\"\t\t\t\t,address1 \\n\")\t/* 소재지주소1 \t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t\t\t,address2 \\n\")\t/* 소재지주소2 \t*/\n\t\t\t\t .append(\"\t\t\t\t,commi_rate \t\\n\") \t/* 수수료율 \t*/\n\t\t\t\t .append(\"\t\t\t\t,cunt_status \\n\")\t/* 계약상태 :CU013 \t*/\n\t\t\t\t .append(\"\t\t\t\t,bancod\t\t\t\\n\") \t/* 은행코드 \t\t\t\t\t*/\n\t\t\t\t .append(\"\t\t\t\t,bank_acc_no \\n\")\t/* 은행계좌번호[BANKCODE] \t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t\t\t,bank_acct_nm\t\\n\")\t/* 예금주 \t\t\t\t\t*/\n\t\t\t\t .append(\"\t\t\t\t,use_yn\t\t\t\\n\")\t/* 사용여부 \t\t\t\t\t*/\n\t\t\t\t\n\t\t\t\t .append(\"\t\t \t\t,u_date \t\\n\") \t/* 최종수정일자 \t*/\n\t \t\t .append(\"\t\t \t\t,u_empno \t\\n\")\t/* 최종수정자사번 \t*/\n\t \t\t .append(\"\t\t \t\t,u_ip \\n\")\t/* 최종수정IP */\t\t\t\n\t \t\t .append(\"\t\t\t\t,client_url\t\t\\n\")\t/* 홈페이지 */\n\t\t\t\t .append(\"\t\t\t)\t\t\t\t\t\\n\")\n\t\t\t\t \n\t\t\t\t .append(\"VALUES\t\t\t\t\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t(\t \t\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t\tSALES.SWS_TCU030_ID.NEXTVAL,?,?,?,?,?,\t\t\\n\")\t\n\t\t\t\t .append(\"\t\t\t\t?,?,?,?,?,\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t\t?,?,?,?,?,\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t\t?,?,?,?,?,\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t\t?,?,SYSTIMESTAMP,?,?,?\t\\n\")\n\t\t\t\t .append(\"\t\t\t)\");\n\t\t\n\t\n\t\t\n\t\t/*\n\t\t * 계약정보 등록\n\t\t */\n\t\tarr_sql[5].append(\"INSERT INTO SALES.TCU031 ( \t\\n\")\n\t\t\t\t .append(\" \t client_SID\t\t\t\\n\")\t/* 매출처SID \t*/\n\t\t\t\t .append(\"\t\t ,cont_date\t\t\t\t\\n\") \t/* 계약일자 \t*/\n\t\t\t\t .append(\"\t\t ,expire_date\t\t\t\\n\")\t/* 만기일자 \t*/\n\t\t\t\t .append(\"\t\t ,insur_amt\t\t\t\t\\n\")\t/* 보험료 \t*/\n\t\t\t\t .append(\"\t\t ,insur_comp_cd\t\t\t\\n\")\t/* 보증보험회사:CU010 \t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t ,u_date\t\t\t\t\\n\")\t/* 최종수정일자 \t*/\n\t\t\t\t .append(\"\t\t ,u_empno \t\t\t\t\\n\") \t/* 최종수정자사번 \t*/\n\t\t\t\t .append(\"\t\t ,u_ip\t\t\t\t\t\\n\")\t/* 최종수정IP \t*/\n\t\t\t\t .append(\"\t\t)\t\t\t\t\t\t\\n\")\n\t\t\t\t \n\t\t\t\t .append(\"VALUES\t\t\t\t\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t(\t \t\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t\t?,?,?,?,?,\t\t\\n\")\t\n\t\t\t\t .append(\"\t\t\t\tSYSTIMESTAMP,?,?\t\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t)\");\n\t\t\t\t\t\n\t\t/*\n\t\t * 지점정보 등록\n\t\t */\n\t\t\n\t\tarr_sql[6].append(\"INSERT INTO SALES.TCU032 ( \t\\n\")\n\t\t\t\t .append(\"\t\t client_SID\t\t\t\\n\") \t/* 매출처SID \t\t*/\n\t\t\t\t .append(\"\t\t ,branch_cd\t\t\t\t\\n\")\t/* 지점코드 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,branch_nm \t\t\t\\n\") \t/* 지점명 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,area_cd\t\t\t\t\\n\") \t/* 지역코드:SY006 \t\t*/\n\t\t\t\t .append(\"\t\t ,client_down_yn \t\t\\n\")\t/* 하위대리점여부:CU011 \t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t ,empno \t\t\t\t\\n\")\t/* 담당자 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,tel_no \t\t\t\t\\n\")\t/* 전화번호 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,mobile_no \t\t\t\\n\")\t/* 휴대폰 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,fax_no \t\t\t\t\\n\")\t/* 팩스번호 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,branch_url \t\t\t\\n\")\t/* 지점홈페이지 \t\t\t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t ,u_date \t\t\t\t\\n\")\t/* 최종수정일자 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,u_empno \t\t\t\t\\n\")\t/* 최종수정자사번 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,u_ip \t\t\t\t\\n\")\t/* 최종수정IP \t\t*/\n\t\t\t\t .append(\"\t)\t\t\t\t\t\t\\n\")\n\t\t\t\t .append(\"VALUES\t\t\t\t\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t(\t \t\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t\t?,?,?,?,?,\t\t\\n\")\t\n\t\t\t\t .append(\"\t\t\t\t?,?,?,?,?,\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t\tSYSTIMESTAMP,?,?\t\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t)\");\n\t\t\n\t\t/*\n\t\t * 대리점 수정\n\t\t */\n\n\t\tarr_sql[7].append(\"UPDATE SALES.TCU030 SET \t\t\t\t\t\t\\n\")\n\t\t\t\t .append(\"\t\t vend_cd\t\t= ? \t\t\t\t\\n\")\t/* [회계]거래처 코드 \t*/\n\t\t\t\t .append(\"\t\t,client_nm\t\t= ? \t\t\t\t\\n\")\t/* 매출처 명 \t*/\n\t\t\t\t .append(\"\t\t,agen_gu\t\t= ? \t\t\t\t \t\\n\")\t/* 대리점구분 :CU006 \t*/\n\t\t\t\t .append(\"\t\t,dir_yn\t\t\t= ? \t\t\t\t\\n\")\t/* 직판여부 :CU012 \t*/\n\t\t\t\t .append(\"\t\t,area_cd \t= ? \t\t\t\t\t\\n\")\t/* 지역코드 :SY006 \t*/\n\n\t\t\t\t .append(\"\t\t,sal_dam_sid\t= ? \t\t\t\t\t\\n\")\t/* 영업담당자코드[TSY410] */\n\t\t\t\t .append(\"\t\t,client_dam_nm\t= ? \t\t\t\t\t\\n\")\t/* 매출처담당자 \t*/\n\t\t\t\t .append(\"\t\t,tel_no = ?\t\t\t\t\t\t\\n\")\t/* 전화번호 \t*/\n\t\t\t\t .append(\"\t\t,mobile_no = ?\t\t\t\t\t\t\\n\")\t/* 핸드폰 \t*/\n\t\t\t\t .append(\"\t\t,fax_no = ?\t\t\t\t\t\t\\n\")\t/* FAX번호 \t*/\n\n\t\t\t\t .append(\"\t\t,e_mail = ?\t\t\t\t\t\t\\n\")\t/* 이메일 \t*/\n\t\t\t\t .append(\"\t\t,zip_cd = ?\t\t\t\t\t\t\\n\")\t/* 소재지우편번호[TSY110] \t*/\n\t\t\t\t .append(\"\t\t,address1 = ?\t\t\t\t\t\t\\n\")\t/* 소재지주소1 \t*/\n\t\t\t\t .append(\"\t\t,address2 = ?\t\t\t\t\t\t\\n\")\t/* 소재지주소2 \t*/\n\t\t\t\t .append(\"\t\t,commi_rate \t= ?\t\t\t\t\t\t\\n\") \t/* 수수료율 \t*/\n\n\t\t\t\t .append(\"\t\t,cunt_status = ?\t\t\t\t\t\t\\n\")\t/* 계약상태 :CU013 \t*/\n\t\t\t\t .append(\"\t\t,bancod\t\t\t= ?\t\t\t\t\t\t\\n\") \t/* 은행코드\t \t\t\t\t*/\n\t\t\t\t .append(\"\t\t,bank_acc_no = ?\t\t\t\t\t\t\\n\")\t/* 은행계좌번호[BANKCODE]\t\t*/\n\t\t\t\t .append(\"\t\t,bank_acct_nm\t= ?\t\t\t\t\t\t\\n\")\t/* 예금주 \t\t\t\t\t*/\n\t\t\t\t .append(\"\t\t,use_yn\t\t\t= ?\t\t\t\t\t\t\\n\")\t/* 사용여부 \t\t\t\t\t*/\n\n\t\t\t\t .append(\"\t\t,u_date \t= SYSTIMESTAMP\t\t\\n\") \t/* 최종수정일자 \t*/\n\t \t\t .append(\"\t\t,u_empno \t= ?\t\t\t\t\t\t\\n\")\t/* 최종수정자사번 \t*/\n\t \t\t .append(\"\t\t,u_ip = ?\t\t\t\t\t\t\\n\")\t/* 최종수정IP */\n\t \t\t .append(\"\t,client_url = ?\t\t\t\t\t\t\\n\")\t/* 홈페이지 */\n\t\t\t\t .append (\"WHERE client_sid \t= ? \t\t\t\t\\n\");\n\t\t\t\t \n\t\t/*\n\t\t * 계약정보 수정\n\t\t */\n\t\tarr_sql[8].append(\"UPDATE SALES.TCU031 SET\t\t\t\t\t\t\\n\")\n\t\t\t\t .append(\"\t\t cont_date\t\t\t= ?\t\t\t\t\t\\n\") \t/* 계약일자 \t*/\n\t\t\t\t .append(\"\t\t ,expire_date\t\t= ?\t\t\t\t\t\\n\")\t/* 만기일자 \t*/\n\t\t\t\t .append(\"\t\t ,insur_amt\t\t\t= ?\t\t\t\t\t\\n\")\t/* 보험료 \t*/\n\t\t\t\t .append(\"\t\t ,insur_comp_cd\t\t= ?\t\t\t\t\t\\n\")\t/* 보증보험회사:CU010 \t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t ,u_date\t\t\t= SYSTIMESTAMP\t\\n\")\t/* 최종수정일자 \t*/\n\t\t\t\t .append(\"\t\t ,u_empno \t\t\t= ?\t\t\t\t\t\\n\") \t/* 최종수정자사번 \t*/\n\t\t\t\t .append(\"\t\t ,u_ip\t\t\t\t= ?\t\t\t\t\t\\n\")\t/* 최종수정IP \t*/\n\t\t\t\t .append (\"WHERE client_sid \t\t= ? AND cont_date = ? \\n\");\n\t\t\t\t\n\t\t\t\t \n\t\t\t\t\t\n\t\t/*\n\t\t * 지점정보 수정\n\t\t */\n\t\t\n\t\tarr_sql[9].append(\"UPDATE SALES.TCU032 SET \t\t\t\t\t\t\t\\n\")\n\t\t\t\t .append(\"\t\t branch_nm \t\t= ?\t\t\t\t\t\t\\n\") \t/* 지점명 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,area_cd\t\t\t= ?\t\t\t\t\t\t\\n\") \t/* 지역코드:SY006 \t\t*/\n\t\t\t\t .append(\"\t\t ,client_down_yn \t= ?\t\t\t\t\t\t\\n\")\t/* 하위대리점여부:CU011 \t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t ,empno \t\t\t= ?\t\t\t\t\t\t\\n\")\t/* 담당자 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,tel_no \t\t\t= ?\t\t\t\t\t\t\\n\")\t/* 전화번호 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,mobile_no \t\t= ?\t\t\t\t\t\t\\n\")\t/* 휴대폰 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,fax_no \t\t\t= ?\t\t\t\t\t\t\\n\")\t/* 팩스번호 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,branch_url \t\t= ?\t\t\t\t\t\t\\n\")\t/* 지점홈페이지 \t\t\t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t ,u_date \t\t\t= SYSTIMESTAMP\t\t\t\t\t\t\\n\")\t/* 최종수정일자 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,u_empno \t\t\t= ?\t\t\\n\")\t/* 최종수정자사번 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,u_ip \t\t\t= ?\t\t\t\t\t\t\\n\")\t/* 최종수정IP \t\t*/\n\t\t\t\t .append (\"WHERE client_sid = ? AND branch_cd \t= ?\t\t\\n\");\n\t\t\n\t\t arr_sql[10].append(\"DELETE FROM SALES.TCU030 WHERE client_sid = ?\");\t\n\t\t arr_sql[11].append(\"DELETE FROM SALES.TCU031 WHERE client_sid = ? AND cont_date = ?\");\n\t\t arr_sql[12].append(\"DELETE FROM SALES.TCU032 WHERE client_sid = ? AND branch_cd = ?\");\n\t\t \n\t\t \n\t\t /*\n\t\t * Client SID 얻어오기\n\t\t */\n\t\t\t\n\t\t\tarr_sql[13].append(\"SELECT client_sid FROM SALES.TCU030 WHERE client_cd = ?\\n\");\n\t\t\t\n\t\t/*\n\t\t * 수수료율 조회\n\t\t */\n\t\t\tarr_sql[14].append(\"SELECT\t\t\t\t\t\t\t\t\\n\")\n\t\t\t\t\t\t.append(\" T1.CLIENT_SID AS CLIENT_SID\t\\n\") /* 매출처SID */\n\t\t\t\t\t\t.append(\" ,T1.FR_DATE AS FR_DATE \t\\n\") /* 시작일자 */\n\t\t\t\t\t\t.append(\" ,T1.TO_DATE AS TO_DATE \t\\n\") /* 종료일자 */\n\t\t\t\t\t\t.append(\" ,T1.WEEKEND_YN AS WEEKEND_YN \t\\n\") /* 주말여부 */\n\t\t\t\t\t\t.append(\" ,T1.COMMI_RATE AS COMMI_RATE\t\\n\") /* 수수료율 */\n\t\t\t\t\t\t.append(\"FROM SALES.TCU033 T1 \t\\n\")\n\t\t\t\t\t\t.append(\"WHERE 1=1 \t\t\t\t\t\t\t\\n\");\n\t\t\t\t\t\t\n\t\t/*\n\t\t * 수수료율 등록\n\t\t */\n\t\t\t\n\t\t\tarr_sql[15].append(\"INSERT INTO SALES.TCU033 ( \t\\n\")\n\t\t\t\t\t\t .append(\" \t CLIENT_SID\t\t\t\\n\")\t/* 매출처SID \t*/\n\t\t\t\t\t\t .append(\"\t\t ,FR_DATE\t\t\t\t\\n\") \t/* 시작일자 \t*/\n\t\t\t\t\t\t .append(\"\t\t ,TO_DATE\t\t\t\\n\")\t/* 종료일자 \t*/\n\t\t\t\t\t\t .append(\"\t\t ,COMMI_RATE\t\t\t\t\\n\")\t/* 수수료율 \t*/\n\t\t\t\t\t\t .append(\"\t\t ,WEEKEND_YN\t\t\t\\n\")\t/* 주말여부 \t*/\n\t\t\t\t\t\t .append(\"\t\t ,I_DATE\t\t\t\t\\n\")\t/* 최종입력일자 \t*/\n\t\t\t\t\t\t .append(\"\t\t ,I_EMPNO \t\t\t\t\\n\") \t/* 최종입력자사번 \t*/\n\t\t\t\t\t\t .append(\"\t\t ,I_IP\t\t\t\t\t\\n\")\t/* 최종입력IP \t*/\t\t\t\t\t\t \n\t\t\t\t\t\t .append(\"\t\t ,u_date\t\t\t\t\\n\")\t/* 최종수정일자 \t*/\n\t\t\t\t\t\t .append(\"\t\t ,u_empno \t\t\t\t\\n\") \t/* 최종수정자사번 \t*/\n\t\t\t\t\t\t .append(\"\t\t ,u_ip\t\t\t\t\t\\n\")\t/* 최종수정IP \t*/\n\t\t\t\t\t\t .append(\"\t\t)\t\t\t\t\t\t\\n\")\n\t\t\t\t\t\t \n\t\t\t\t\t\t .append(\"VALUES\t\t\t\t\t\t\\n\")\n\t\t\t\t\t\t .append(\"\t\t\t(\t \t\t\t\\n\")\n\t\t\t\t\t\t .append(\"\t\t\t\t?,?,?,?, ?,\t\t\\n\")\t\n\t\t\t\t\t\t .append(\"\t\t\t\tSYSTIMESTAMP,?,?, SYSTIMESTAMP,?,?\t\\n\")\n\t\t\t\t\t\t .append(\"\t\t\t)\");\n\t\t/*\n\t\t * 수수료율 수정\n\t\t */\n\t\t\tarr_sql[16].append(\"UPDATE SALES.TCU033 SET\t\t\t\t\t\t\\n\") \n\t\t\t\t\t .append(\"\t\t TO_DATE\t\t\t= ?\t\t\t\t\t\\n\")\t/* 종료일자 \t*/\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t .append(\"\t\t ,COMMI_RATE\t\t= ?\t\t\t\t\t\\n\")\t/* 수수료율 \t*/\n\t\t\t\t\t .append(\"\t\t ,WEEKEND_YN\t\t= ?\t\t\t\t\t\\n\")\t/* 주말여부 \t*/\n\t\t\t\t\t \n\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t .append(\"\t\t ,u_date\t\t\t= SYSTIMESTAMP\t\\n\")\t/* 최종수정일자 \t*/\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t .append(\"\t\t ,u_empno \t\t\t= ?\t\t\t\t\t\\n\") \t/* 최종수정자사번 \t*/\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t .append(\"\t\t ,u_ip\t\t\t\t= ?\t\t\t\t\t\\n\")\t/* 최종수정IP \t*/\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t .append (\"WHERE client_sid \t\t= ? AND FR_DATE = ? AND WEEKEND_YN=? \\n\"); \n\t\t/*\n\t\t * 수수료율 삭제\n\t\t */\n\t\tarr_sql[17].append(\"DELETE FROM SALES.TCU033 WHERE client_sid = ? AND fr_date = ? AND WEEKEND_YN=? \");\t \n\t\t\t \n\n\t}", "private StringBuilder getSqlSelectContadorDocProrroga() {\n StringBuilder query = new StringBuilder();\n\n query.append(\" \");\n query.append(\" SELECT \\n\");\n query.append(\" PRO.ID_PRORROGA_ORDEN, \\n\");\n query.append(\" PRO.ID_ORDEN, \\n\");\n query.append(\" PRO.FECHA_CARGA, \\n\");\n query.append(\" PRO.RUTA_ACUSE,\\n\");\n query.append(\" PRO.CADENA_CONTRIBUYENTE, \\n\");\n query.append(\" PRO.FIRMA_CONTRIBUYENTE, \\n\");\n query.append(\" PRO.APROBADA, \\n\");\n query.append(\" PRO.ID_ASOCIADO_CARGA, \\n\");\n query.append(\" PRO.ID_AUDITOR, \\n\");\n query.append(\" PRO.ID_FIRMANTE, \\n\");\n query.append(\" PRO.RUTA_RESOLUCION, \\n\");\n query.append(\" PRO.CADENA_FIRMANTE, \\n\");\n query.append(\" PRO.FIRMA_FIRMANTE,\\n\");\n query.append(\" PRO.FECHA_FIRMA, \\n\");\n query.append(\" PRO.ID_ESTATUS, \\n\");\n query.append(\" PRO.FOLIO_NYV, \\n\");\n query.append(\" PRO.FECHA_NOTIF_NYV, \\n\");\n query.append(\" PRO.FECHA_NOTIF_CONT, \\n\");\n query.append(\" PRO.FECHA_SURTE_EFECTOS, \\n\");\n query.append(\" PRO.ID_NYV, \\n\");\n query.append(\" (SELECT COUNT(0) FROM \");\n query.append(FecetDocProrrogaOrdenDaoImpl.getTableName());\n query.append(\" DOCPRO WHERE PRO.ID_PRORROGA_ORDEN = DOCPRO.ID_PRORROGA_ORDEN) TOTAL_DOC_PRORROGA, \\n\");\n query.append(\" ASOCIADO.ID_ASOCIADO, \\n\");\n query.append(\" ASOCIADO.RFC_CONTRIBUYENTE, \\n\");\n query.append(\" ASOCIADO.RFC, \\n\");\n query.append(\" ASOCIADO.ID_ORDEN, \\n\");\n query.append(\" ASOCIADO.ID_TIPO_ASOCIADO, \\n\");\n query.append(\" ASOCIADO.NOMBRE, \\n\");\n query.append(\" ASOCIADO.CORREO, \\n\");\n query.append(\" ASOCIADO.TIPO_ASOCIADO, \\n\");\n query.append(\" ASOCIADO.FECHA_BAJA, \\n\");\n query.append(\" ASOCIADO.FECHA_ULTIMA_MOD, \\n\");\n query.append(\" ASOCIADO.FECHA_ULTIMA_MOD_IDC, \\n\");\n query.append(\" ASOCIADO.MEDIO_CONTACTO, \\n\");\n query.append(\" ASOCIADO.ESTATUS, \\n\");\n query.append(\" ESTATUS.ID_ESTATUS, \\n\");\n query.append(\" ESTATUS.DESCRIPCION, \\n\");\n query.append(\" ESTATUS.MODULO, \\n\");\n query.append(\" ESTATUS.ID_MODULO \\n\");\n\n query.append(\"FROM \");\n query.append(getTableName());\n query.append(\" PRO \\n\");\n query.append(\" INNER JOIN FECEC_ESTATUS ESTATUS \\n\");\n query.append(\" ON PRO.ID_ESTATUS = ESTATUS.ID_ESTATUS \\n\");\n query.append(\" LEFT JOIN FECET_ASOCIADO ASOCIADO \\n\");\n query.append(\" ON PRO.ID_ASOCIADO_CARGA = ASOCIADO.ID_ASOCIADO \\n\");\n return query;\n }", "public void reback(){\n \n try{ \n cnx = DriverManager.getConnection(url, user,pass);\n String sql = \"SELECT DISTINCT (t1.codigo_producto),(t1.categoria),(t1.producto), t1.unidades FROM tabla_aux t1 INNER JOIN (SELECT producto, MAX(Unidades) as unidades FROM tabla_aux GROUP BY producto) t2 ON t1.producto = t2.producto AND t1.unidades = t2.unidades ORDER BY t1.producto DESC\";\n Statement st = cnx.prepareStatement(sql);\n ResultSet res = st.executeQuery(sql);\n \n while (res.next()){\n ID = res.getString(1); \n MK = res.getString(2); \n MD = res.getString(3); \n UD = res.getInt(4);\n Class.forName(\"com.mysql.jdbc.Driver\"); \n conI = DriverManager.getConnection(url, user,pass);\n String query = \"update producto set Unidades = ? where codigo_producto = ? && categoria = ? && producto = ?\";\n PreparedStatement preparedStmt = conI.prepareStatement(query);\n preparedStmt.setInt (1, UD);\n preparedStmt.setString (2, ID);\n preparedStmt.setString (3, MK);\n preparedStmt.setString (4, MD);\n preparedStmt.executeUpdate();\n }\n Connection conex = DriverManager.getConnection(url, user, pass);\n String Qury = \"TRUNCATE tabla_aux\";\n Statement sts = conex.createStatement();\n sts.executeUpdate(Qury);\n }\n catch(SQLException ex){JOptionPane.showMessageDialog(this,ex);} catch (ClassNotFoundException ex) {\n Logger.getLogger(hacer_ventas.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "private void llenarListadoPromocionSalarial() {\n\t\tString sql1 = \"select det.* from seleccion.promocion_salarial det \"\r\n\t\t\t\t+ \"join planificacion.estado_cab cab on cab.id_estado_cab = det.id_estado_cab \"\r\n\t\t\t\t+ \"join planificacion.configuracion_uo_cab uo_cab \"\r\n\t\t\t\t+ \"on uo_cab.id_configuracion_uo = det.id_configuracion_uo_cab\"\r\n\t\t\t\t+ \" left join seleccion.promocion_concurso_agr agr \"\r\n\t\t\t\t+ \"on agr.id_promocion_salarial = det.id_promocion_salarial\"\r\n\t\t\t\t\r\n\t\t\t\t+ \" where lower(cab.descripcion) = 'concurso' \" + \"and (\"\r\n\t\t\t\t+ \"\t\tagr.id_estado_det = (\" + \"\t\t\t\tselect est.id_estado_det \"\r\n\t\t\t\t+ \"\t\t\t\tfrom planificacion.estado_det est \"\r\n\t\t\t\t+ \"\t\t\t\twhere lower(est.descripcion)='libre'\" + \"\t\t) \"\r\n\t\t\t\t+ \"\t\tor agr.id_estado_det is null\" + \"\t) \"\r\n\t\t\t\t+ \" and uo_cab.id_configuracion_uo = \"\r\n\t\t\t\t+ configuracionUoCab.getIdConfiguracionUo()\r\n\t\t\t\t+ \" AND det.activo=true\";\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO SIMPLIFICADO Se despliegan los puestos\r\n\t\t * PERMANENTES o CONTRATADOS, con estado = LIBRE o NULO Los puestos\r\n\t\t * deben ser de nivel 1\r\n\t\t */\r\n//\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n//\t\t\t\t.equalsIgnoreCase(CONCURSO_SIMPLIFICADO)) {\r\n//\t\t\tsql1 += \" and cpt.nivel=1 and cpt.activo=true and (det.permanente is true or det.contratado is true) \";\r\n//\t\t}\r\n\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO INTERNO DE OPOSICION INSTITUCIONAL Se\r\n\t\t * despliegan los puestos PERMANENTE, con estado = LIBRE o NULO\r\n\t\t */\r\n\r\n//\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n//\t\t\t\t.equalsIgnoreCase(CONCURSO_INTERNO_OPOSICION)) {\r\n//\t\t\tsql1 += \" and det.permanente is true \";\r\n//\t\t}\r\n\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO INTERNO DE OPOSICION INTER INSTITUCIONAL\r\n\t\t * Se despliegan los puestos PERMANENTE, con estado = LIBRE o NULO\r\n\t\t */\r\n\r\n//\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n//\t\t\t\t.equalsIgnoreCase(CONCURSO_INTERNO_INTERINSTITUCIONAL)) {\r\n//\t\t\tsql1 += \" and det.permanente is true \";\r\n//\t\t}\r\n\t\t\r\n\t\tString sql2 = \"select puesto_det.* \"\r\n\t\t\t\t+ \"from seleccion.promocion_concurso_agr puesto_det \"\r\n\t\t\t\t+ \"join planificacion.estado_det estado_det \"\r\n\t\t\t\t+ \"on estado_det.id_estado_det = puesto_det.id_estado_det \"\r\n\t\t\t\t+ \"join seleccion.promocion_salarial det \"\r\n\t\t\t\t+ \"on det.id_promocion_salarial = puesto_det.id_promocion_salarial \"\r\n\t\t\t\t+ \"join planificacion.configuracion_uo_cab uo_cab \"\r\n\t\t\t\t+ \"on uo_cab.id_configuracion_uo = det.id_configuracion_uo_cab \"\r\n\t\t\t//\t+ \"join seleccion.concurso concurso \"\r\n\t\t\t//\t+ \"on concurso.id_concurso = puesto_det.id_concurso \"\r\n\t\t\t\t\r\n\t\t\t\t+ \" where lower(estado_det.descripcion) = 'en reserva' \"\r\n\t\t\t\t+ \"and uo_cab.id_configuracion_uo = \"\r\n\t\t\t\t+ configuracionUoCab.getIdConfiguracionUo()\r\n\t\t\t//\t+ \" and concurso.id_concurso = \" + concurso.getIdConcurso()\r\n\t\t\t\t+ \" and puesto_det.activo=true\";\r\n\r\n\t\tcargarListaPromocionSalarial(sql1, sql2);\r\n\t}", "public static String todosLosEmpleados(){\n String query=\"SELECT empleado.idEmpleado, persona.nombre, persona.apePaterno, persona.apeMaterno, empleado.codigo, empleado.fechaIngreso,persona.codigoPostal,persona.domicilio,\" +\n\"empleado.puesto, empleado.salario from persona inner join empleado on persona.idPersona=empleado.idPersona where activo=1;\";\n return query;\n }", "public void buscaTodasOSs() {\n try {\n ServicoDAO sDAO = new ServicoDAO(); // instancia a classe ProdutoDB()\n ArrayList<OS> cl = sDAO.consultaTodasOs(); // coloca o método dentro da variável\n\n DefaultTableModel modeloTabela = (DefaultTableModel) jTable1.getModel();\n // coloca a tabela em uma variável do tipo DefaultTableModel, que permite a modelagem dos dados da tabela\n\n for (int i = modeloTabela.getRowCount() - 1; i >= 0; i--) {\n modeloTabela.removeRow(i);\n // loop que limpa a tabela antes de ser atualizada\n }\n\n for (int i = 0; i < cl.size(); i++) {\n // loop que pega os dados e insere na tabela\n Object[] dados = new Object[7]; // instancia os objetos. Cada objeto representa um atributo \n dados[0] = cl.get(i).getNumero_OS();\n dados[3] = cl.get(i).getStatus_OS();\n dados[4] = cl.get(i).getDefeito_OS();\n dados[5] = cl.get(i).getDataAbertura_OS();\n dados[6] = cl.get(i).getDataFechamento_OS();\n\n // pega os dados salvos do banco de dados (que estão nas variáveis) e os coloca nos objetos definidos\n modeloTabela.addRow(dados); // insere uma linha nova a cada item novo encontrado na tabela do BD\n }\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(null, \"Falha na operação.\\nErro: \" + ex.getMessage());\n } catch (Exception ex) {\n Logger.getLogger(FrmPesquisar.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void simpanDataBuku(){\n String sql = (\"INSERT INTO buku (judulBuku, pengarang, penerbit, tahun, stok)\" \n + \"VALUES ('\"+getJudulBuku()+\"', '\"+getPengarang()+\"', '\"+getPenerbit()+\"'\"\n + \", '\"+getTahun()+\"', '\"+getStok()+\"')\");\n \n try {\n //inisialisasi preparedstatmen\n PreparedStatement eksekusi = koneksi. getKoneksi().prepareStatement(sql);\n eksekusi.execute();\n \n //pemberitahuan jika data berhasil di simpan\n JOptionPane.showMessageDialog(null,\"Data Berhasil Disimpan\");\n } catch (SQLException ex) {\n //Logger.getLogger(modelPelanggan.class.getName()).log(Level.SEVERE, null, ex);\n JOptionPane.showMessageDialog(null, \"Data Gagal Disimpan \\n\"+ex);\n }\n }", "public DatoGeneralMinimo getEntityDatoGeneralMinimoGenerico(Connexion connexion,QueryWhereSelectParameters queryWhereSelectParameters,ArrayList<Classe> classes) throws SQLException,Exception { //Banco\r\n\t\tDatoGeneralMinimo datoGeneralMinimo= new DatoGeneralMinimo();\r\n\t\t\r\n\t\tBanco entity = new Banco();\r\n\t\t\t\t\r\n try {\t\t\t\r\n\t\t\tString sQuery=\"\";\r\n \t String sQuerySelect=\"\";\r\n\t\t\t\r\n\t\t\tStatement statement = connexion.getConnection().createStatement();\t\t\t\r\n\t\t\t\r\n\t\t\tif(!queryWhereSelectParameters.getSelectQuery().equals(\"\")) {\r\n\t\t\t\tsQuerySelect=queryWhereSelectParameters.getSelectQuery();\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tif(!this.isForForeingKeyData) {\r\n\t\t\t\t\tsQuerySelect=BancoDataAccess.QUERYSELECTNATIVE;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsQuerySelect=BancoDataAccess.QUERYSELECTNATIVEFORFOREINGKEY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n \t sQuery=DataAccessHelper.buildSqlGeneralGetEntitiesJDBC(entity,BancoDataAccess.TABLENAME+\".\",queryWhereSelectParameters,sQuerySelect);\r\n\t\t\t\r\n\t\t\tif(Constantes2.ISDEVELOPING_SQL) {\r\n \tFunciones2.mostrarMensajeDeveloping(sQuery);\r\n }\r\n\t\t\t\r\n \t \tResultSet resultSet = statement.executeQuery(sQuery);//Tesoreria.Banco.isActive=1\r\n \t \r\n\t\t\t//ResultSetMetaData metadata = resultSet.getMetaData();\r\n \t \t\r\n \t \t//int iTotalCountColumn = metadata.getColumnCount();\r\n\t\t\t\t\r\n\t\t\t//if(queryWhereSelectParameters.getIsGetGeneralObjects()) {\r\n\t\t\t\tif(resultSet.next()) {\t\t\t\t\r\n\t\t\t\t\tfor(Classe classe:classes) {\r\n\t\t\t\t\t\tDataAccessHelperBase.setFieldDynamic(datoGeneralMinimo,classe,resultSet);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t/*\r\n\t\t\t\t\tint iIndexColumn = 1;\r\n\t\t\t\t \r\n\t\t\t\t\twhile(iIndexColumn <= iTotalCountColumn) {\r\n\t\t\t\t\t\t//arrayListObject.add(resultSet.getObject(iIndexColumn++));\r\n\t\t\t\t }\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t*/\r\n\t\t\t\t} else {\r\n\t\t\t\t\tentity =null;\r\n\t\t\t\t}\r\n\t\t\t//}\r\n\t\t\t\r\n\t\t\tif(entity!=null) {\r\n\t\t\t\t//this.setIsNewIsChangedFalseBanco(entity);\r\n\t\t\t}\r\n\t\t\t\r\n \t statement.close(); \r\n\t\t\r\n\t\t} \r\n\t\tcatch(Exception e) {\r\n\t\t\tthrow e;\r\n \t}\r\n\t\t\r\n \t//return entity;\t\r\n\t\t\r\n\t\treturn datoGeneralMinimo;\r\n }", "private void actualizarVentanaOperadores() throws SQLException {\n Sistema.getControladorVentanaOperadores().actualizarTablaOperadores(\"SELECT * FROM operador WHERE activo=TRUE ORDER BY id ASC;\");\n }", "public void execute() throws SQLException {\n\t\ttry {\n\t\t\tselect.setUsername(\"INTRANET\");\n\t\t\tselect.setPassword(\"INTRANET\");\n\t\t\tselect.execute();\n\t\t}\n\n\t\t// Liberar recursos del objeto select.\n\t\tfinally {\n\t\t\tselect.close();\n\t\t}\n\t}", "private void buscar() {\n try { \n conexion = DriverManager.getConnection(\"jdbc:mysql://localhost/sistema_gmg\", \"root\", \"1405\");\n\n st = conexion.createStatement();\n \n rs = st.executeQuery(\"select * from ciclos where ciclo like '%\" + this.jtf_buscar.getText() + \"%'\");\n\n jtf_id_ciclo.setText(null);\n jtf_ciclo.setText(null);\n jtf_finicio.setText(null);\n jtf_ftermino.setText(null);\n \n jt_ciclos.setModel(DbUtils.resultSetToTableModel(rs));\n \n jb_cancelar.setEnabled(true); \n rs = st.executeQuery(\"select *from ciclos\");\n } catch (SQLException ex) {\n Logger.getLogger(JF_Alumnos.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public static void insertFournisseur(Fournisseur unFournisseur ) {\n Bdd uneBdd = new Bdd(\"localhost\", \"paruline \", \"root\", \"\");\n\n String checkVille = \"CALL checkExistsCity('\" + unFournisseur.getVille() + \"','\" + unFournisseur.getCp() + \"');\";\n try {\n uneBdd.seConnecter();\n Statement unStat = uneBdd.getMaConnection().createStatement();\n\n ResultSet unRes = unStat.executeQuery(checkVille);\n\n int nb = unRes.getInt(\"nb\");\n\n if (nb == 0) {\n String ajoutVille = \"CALL InsertCity('\" + unFournisseur.getVille() + \"', '\" + unFournisseur.getCp() + \"');\";\n\n try {\n Statement unStatAjout = uneBdd.getMaConnection().createStatement();\n\n unStatAjout.executeQuery(ajoutVille);\n unStatAjout.close();\n }\n catch (SQLException e) {\n System.out.println(\"Erreur : \" + ajoutVille);\n }\n }\n\n String id = \"CALL GetCity('\" + unFournisseur.getVille() + \"', '\" + unFournisseur.getCp() + \"')\";\n\n try {\n Statement unStatId = uneBdd.getMaConnection().createStatement();\n\n ResultSet unResId = unStatId.executeQuery(id);\n\n int id_city = unResId.getInt(\"id_city\");\n\n\n\n String insertFournisseur = \"INSERT INTO fournisseur(id_city, name_f, adresse_f, phoneFour) VALUES (\" + id_city + \", '\" + unFournisseur.getNom() + \"', \" +\n \"'\" + unFournisseur.getAdresse() + \"', '\" + unFournisseur.getTelephone() + \"')\";\n\n try {\n Statement unStatFourn = uneBdd.getMaConnection().createStatement();\n unStatFourn.executeQuery(insertFournisseur);\n\n unStatFourn.close();\n }\n catch (SQLException e) {\n System.out.println(\"Erreur : \" + insertFournisseur);\n }\n\n unResId.close();\n unStatId.close();\n }\n catch (SQLException e) {\n System.out.println(\"Erreur : \" + id);\n }\n\n unRes.close();\n unStat.close();\n uneBdd.seDeConnecter();\n } catch (SQLException exp) {\n System.out.println(\"Erreur : \" + checkVille);\n }\n }", "public CadastroDeEmpresa() {\n initComponents();\n preencherTabela(\"select * from empresa order by id\");\n }", "public void preencherTabelaResultado() {\n\t\tArrayList<Cliente> lista = Fachada.getInstance().pesquisarCliente(txtNome.getText());\n\t\tDefaultTableModel modelo = (DefaultTableModel) tabelaResultado.getModel();\n\t\tObject[] linha = new Object[4];\n\t\tmodelo.setRowCount(0);\n\n\t\tfor (Cliente c : lista) {\n\t\t\tlinha[0] = c.getIdCliente();\n\t\t\tlinha[1] = c.getNome();\n\t\t\tlinha[2] = c.getTelefone().toString();\n\t\t\tif (c.isAptoAEmprestimos())\n\t\t\t\tlinha[3] = \"Apto\";\n\t\t\telse\n\t\t\t\tlinha[3] = \"A devolver\";\n\t\t\tmodelo.addRow(linha);\n\n\t\t}\n\n\t}", "public static void main(String[] args) {\n Connection connection = null;\r\n\r\n try{\r\n // establezco la connecion con la base de datos jdbc en el puerto 3306 con usuario y contrasenia root\r\n connection = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/jdbc\",\"root\",\"root\");\r\n // pongo auto commit en false esto hace que no se comite cada cueri y que se cada vez que lance\r\n // el comando commit se ejecuta el bloque query\r\n connection.setAutoCommit(false);\r\n\r\n // hago la sentencia preparada\r\n PreparedStatement preparedStatement = connection.prepareStatement(\"INSERT INTO estudiante (dni, nombre, apellido) VALUES (?, ?, ?);\");\r\n // modifico los \"?\" de la sentencia preparada con mis datos\r\n preparedStatement.setInt(1,40640217);\r\n preparedStatement.setString(2,\"Santiago\");\r\n preparedStatement.setString(3,\"Lampropulos\");\r\n\r\n // ejecuto la consulta preparada\r\n preparedStatement.executeUpdate();\r\n\r\n //traigo los datos de la tabla estudiante\r\n ResultSet resultSet = preparedStatement.executeQuery(\"SELECT * FROM estudiante\");\r\n\r\n // realizo el commit para que se guarden los cambios\r\n connection.commit();\r\n\r\n //muestro toda la tabla\r\n while(resultSet.next()){\r\n System.out.println(resultSet.getString(2)+\"\\t\"+resultSet.getString(\"nombre\")+\"\\t\"+resultSet.getString(\"apellido\"));\r\n }\r\n\r\n }catch (SQLException exceptionConnection){\r\n System.out.println(exceptionConnection);\r\n try{\r\n // si se creo la base de datos revierte el commit que se hizo\r\n if(connection!=null){\r\n connection.rollback();\r\n }\r\n }catch (SQLException exceptionCarth){\r\n //atrapo excepciones\r\n System.out.println(exceptionCarth);\r\n }\r\n\r\n\r\n }finally {\r\n // el bloque finally se ejecute sin inportar si viene de un catch o del try\r\n try{\r\n //si se crea una coneccion con base de datos la cierro\r\n if(connection!= null){\r\n connection.close();\r\n }\r\n }catch (SQLException eFinally){\r\n //atrapo excepciones\r\n System.out.println(eFinally);\r\n }\r\n }\r\n\r\n }", "public void guardarBloqueSeleccionado(){\n\t\tif(bloqueSeleccionadoEditar.getIdbloques() == 0){\n\t\t\tbloquesFacade.create(bloqueSeleccionadoEditar);\n\t\t}else{\n\t\t\tbloquesFacade.edit(bloqueSeleccionadoEditar);\n\t\t}\n\t\tdataListBloques = bloquesFacade.findByLike(\"SELECT B FROM Bloques B ORDER BY B.nombre\");\n\t}", "public void alteraDadosMySQL() throws SQLException, IOException {\n byte[] logo = null;\n byte[] brasao = null;\n if (imagemRedimensionada != null) {\n ByteArrayOutputStream bytesImg = new ByteArrayOutputStream();\n ImageIO.write((BufferedImage) imagemRedimensionada, extensao, bytesImg);\n bytesImg.flush();\n logo = bytesImg.toByteArray();\n bytesImg.close();\n }\n\n if (imagemRedimensionada2 != null) {\n ByteArrayOutputStream bytesImg2 = new ByteArrayOutputStream();\n ImageIO.write((BufferedImage) imagemRedimensionada2, extensao2, bytesImg2);\n bytesImg2.flush();\n brasao = bytesImg2.toByteArray();\n bytesImg2.close();\n }\n\n if (dados.equals(prova.getText())) {\n if (dados2.equals(individualUnico.getText())) {\n // System.out.println(\"1\");\n PreparedStatement p = conexao.prepareStatement(\"UPDATE dados SET titulo='\" + titulo.getText() + \"'\"\n + \", tipo='\" + dados + \"'\"\n + \", modalidade='\" + dados2 + \"'\"\n + \", escola='\" + dados3 + \"'\"\n + \", matricula='\" + matricula.getText() + \"'\"\n + \", dataProva=?\"\n + \", dataRecebimento=?\"\n + \", dataEntrega=?\"\n + \" WHERE titulo='\" + aux + \"'\"\n );\n p.clearParameters();\n p.setDate(1, new java.sql.Date(dataProva.getDate().getTime()));\n p.setDate(2, null);\n p.setDate(3, null);\n p.executeUpdate();\n } else {\n if (dados2.equals(individualTurma.getText()) || dados2.equals(grupo.getText())) {\n System.out.println(\"OK\");\n // System.out.println(\"2\");\n PreparedStatement p = conexao.prepareStatement(\"UPDATE dados SET titulo='\" + titulo.getText() + \"'\"\n + \", tipo='\" + dados + \"'\"\n + \", modalidade='\" + dados2 + \"'\"\n + \", escola='\" + dados3 + \"'\"\n + \", matricula=?\"\n + \", dataProva=?\"\n + \", dataRecebimento=?\"\n + \", dataEntrega=?\"\n + \" WHERE titulo='\" + aux + \"'\"\n );\n p.clearParameters();\n p.setString(1, null);\n p.setDate(2, new java.sql.Date(dataProva.getDate().getTime()));\n p.setDate(3, null);\n p.setDate(4, null);\n p.executeUpdate();\n }\n }\n } else {\n if (dados.equals(trabalho.getText())) {\n if (dados2.equals(individualUnico.getText())) {\n\n PreparedStatement p = conexao.prepareStatement(\"UPDATE dados SET titulo='\" + titulo.getText() + \"'\"\n + \", tipo='\" + dados + \"'\"\n + \", modalidade='\" + dados2 + \"'\"\n + \", escola='\" + dados3 + \"'\"\n + \", matricula='\" + matricula.getText() + \"'\"\n + \", dataProva=?\"\n + \", dataRecebimento=?\"\n + \", dataEntrega=?\"\n + \" WHERE titulo='\" + aux + \"'\"\n );\n p.clearParameters();\n\n p.setDate(1, null);\n p.setDate(2, new java.sql.Date(dataRecebimento.getDate().getTime()));\n p.setDate(3, new java.sql.Date(dataEntrega.getDate().getTime()));\n p.executeUpdate();\n } else {\n if (dados2.equals(individualTurma.getText()) || dados2.equals(grupo.getText())) {\n // System.out.println(\"4\");\n PreparedStatement p = conexao.prepareStatement(\"UPDATE dados SET titulo='\" + titulo.getText() + \"'\"\n + \", tipo='\" + dados + \"'\"\n + \", modalidade='\" + dados2 + \"'\"\n + \", escola='\" + dados3 + \"'\"\n + \", matricula=?\"\n + \", dataProva=?\"\n + \", dataRecebimento=?\"\n + \", dataEntrega=?\"\n + \" WHERE titulo='\" + aux + \"'\"\n );\n p.clearParameters();\n p.setString(1, null);\n p.setDate(2, null);\n p.setDate(3, new java.sql.Date(dataRecebimento.getDate().getTime()));\n p.setDate(4, new java.sql.Date(dataEntrega.getDate().getTime()));\n p.executeUpdate();\n }\n }\n }\n }\n if (envio[0]) {\n if (envio[1]) {\n System.out.println(envio[1]);\n PreparedStatement s = conexao.prepareStatement(\"UPDATE dados SET logotipo= ? , brasao= ?, nomeLogotipo=?, nomeBrasao=? WHERE titulo='\" + titulo.getText() + \"'\");//conexao.createStatement();\n s.clearParameters();\n s.setBytes(1, logo);\n s.setBytes(2, brasao);\n s.setString(3, arquivo.getName());\n s.setString(4, arquivo2.getName());\n s.executeUpdate();\n } else {\n PreparedStatement s = conexao.prepareStatement(\"UPDATE dados SET logotipo= ?, brasao=? , nomeLogotipo=?, nomeBrasao=? WHERE titulo='\" + titulo.getText() + \"'\");\n s.clearParameters();\n s.setBytes(1, logo);\n s.setBytes(2, null);\n s.setString(3, arquivo.getName());\n s.setString(4, null);\n s.executeUpdate();\n }\n }\n if (dados3.equals(privada.getText())) {\n PreparedStatement s = conexao.prepareStatement(\"UPDATE dados SET brasao=?, nomeBrasao=? WHERE titulo='\" + dadosTitulo + \"'\");\n s.setBytes(1, null);\n s.setString(2, null);\n s.executeUpdate();\n }\n dispose();\n framePrincipal.setVisible(true);\n }", "public void firstTest() throws SQLException, ServicesException{\n Connection conn=getConnection();\n Statement stmt=conn.createStatement();\n Services servicios = Services.getInstance(\"h2-applicationconfig.properties\");\n PrestamoUsuario prestamo =null;\n try {\n //Insercion en BD\n stmt.execute(\"INSERT INTO ROLES(rol) values ('estudiante')\");\n stmt.execute(\"INSERT INTO USUARIOS (id,nombre,correo,contrasena) VALUES (124,'PEDRO PEREZ','[email protected]','1test1')\");\n stmt.execute(\"INSERT INTO ROLES_USUARIOS(USUARIOS_id,ROLES_rol) values (124,'estudiante')\");\n stmt.execute(\"INSERT INTO MODELOS (nombre,clase,vidaUtil,valor,seguro,foto) values ('modelo1','abcd',100,200000,true,null)\"); \n stmt.execute(\"INSERT INTO EQUIPOS (serial,nombre,placa,marca,descripcion,estado,subestados,proveedor,Modelos_nombre) VALUES (123,'Multimetro',456,'falsa','Equipo funcional y de buena calidad','activo','almacen','Leonardo Herrera','modelo1')\");\n stmt.execute(\"INSERT INTO PRESTAMOS (USUARIOS_id,EQUIPOS_serial,fechaExpedicion,fechaVencimiento,tipoPrestamo) VALUES (124,123,'2015-01-01 00:00:00',null,'prestamo diario')\");\n conn.commit();\n conn.close(); \n } catch (SQLException ex) {\n Logger.getLogger(DevolucionTest.class.getName()).log(Level.SEVERE, null, ex);\n conn.rollback();\n conn.close();\n }\n Set<PrestamoUsuario> prestamos = servicios.loadPrestamos();\n for (PrestamoUsuario p:prestamos){\n \n }\n }", "public void prepareStatements() throws SQLException {\n\t\tpstmt_updateTicket = connection.prepareStatement(\r\n\t\t \"UPDATE ticket \" +\r\n \"SET kunde = ? \" +\r\n \"WHERE tid IN (\" +\r\n \"SELECT tid FROM ticket WHERE kunde IS NULL AND auffuehrung = ? LIMIT ?)\" +\r\n \"RETURNING preis\");\r\n\t}", "public void insereDadosMySQL(String tabela, String colunas, boolean matricula, boolean data, boolean brasao2) throws IOException {\n status = true;\n ByteArrayOutputStream bytesImg = new ByteArrayOutputStream();\n ImageIO.write((BufferedImage) imagemRedimensionada, extensao, bytesImg);\n bytesImg.flush();\n byte[] logo = bytesImg.toByteArray();\n bytesImg.close();\n /**\n * Transforma a imagem do logotipo e brasao em um array de bytes para enviar ao banco de dados\n */\n byte[] brasao = null;\n if (brasao2) {\n ByteArrayOutputStream bytesImg2 = new ByteArrayOutputStream();\n ImageIO.write((BufferedImage) imagemRedimensionada2, extensao2, bytesImg2);\n bytesImg2.flush();\n brasao = bytesImg2.toByteArray();\n bytesImg2.close();\n }\n\n String[] aux = colunas.split(\",\");\n String values = \"?\";\n for (int i = 0; i < aux.length - 1; i++) {\n values += \",?\";\n }\n try {\n PreparedStatement p = conexao.prepareStatement(\"INSERT INTO \" + tabela + \"(\" + colunas + \") VALUES (\" + values + \")\");\n // System.out.println(\"INSERT INTO \" + tabela + \"(\" + colunas + \") VALUES (\" + values + \")\");\n p.setString(1, dadosTitulo);\n p.setString(2, dados);\n p.setString(3, dados2);\n p.setString(4, dados3);\n if (matricula) {\n p.setString(5, this.matricula.getText());\n if (data) {\n p.setDate(6, new java.sql.Date(dataProva.getDate().getTime()));\n p.setString(7, arquivo.getName());\n p.setBytes(8, logo);\n if (brasao2) {\n p.setString(9, arquivo2.getName());\n p.setBytes(10, brasao);\n }\n } else {\n p.setDate(6, new java.sql.Date(dataRecebimento.getDate().getTime()));\n p.setDate(7, new java.sql.Date(dataEntrega.getDate().getTime()));\n p.setString(8, arquivo.getName());\n p.setBytes(9, logo);\n if (brasao2) {\n p.setString(10, arquivo2.getName());\n p.setBytes(11, brasao);\n }\n }\n } else {\n if (data) {\n p.setDate(5, new java.sql.Date(dataProva.getDate().getTime()));\n p.setString(6, arquivo.getName());\n p.setBytes(7, logo);\n if (brasao2) {\n p.setString(8, arquivo2.getName());\n p.setBytes(9, brasao);\n }\n } else {\n p.setDate(5, new java.sql.Date(dataRecebimento.getDate().getTime()));\n p.setDate(6, new java.sql.Date(dataEntrega.getDate().getTime()));\n p.setString(7, arquivo.getName());\n p.setBytes(8, logo);\n if (brasao != null) {\n p.setString(9, arquivo2.getName());\n p.setBytes(10, brasao);\n }\n }\n }\n p.executeUpdate();\n } catch (SQLException ex) {\n System.out.println(ex.getMessage());\n // System.out.println(\"catch 2\");\n }\n }", "public void buscarxdescrip() {\r\n try {\r\n modelo.setDescripcion(vista.jTbdescripcion.getText());//C.P.M le enviamos al modelo la descripcion y consultamos\r\n rs = modelo.Buscarxdescrip();//C.P.M cachamos el resultado de la consulta\r\n\r\n DefaultTableModel buscar = new DefaultTableModel() {//C.P.M creamos el modelo de la tabla\r\n @Override\r\n public boolean isCellEditable(int rowIndex, int vColIndex) {\r\n return false;\r\n }\r\n };\r\n vista.jTbuscar.setModel(buscar);//C.P.M le mandamos el modelo a la tabla\r\n modelo.estructuraProductos(buscar);//C.P.M obtenemos la estructura de la tabla \"encabezados\"\r\n ResultSetMetaData rsMd = rs.getMetaData();//C.P.M obtenemos los metadatos de la consulta\r\n int cantidadColumnas = rsMd.getColumnCount();//C.P.M obtenemos la cantidad de columnas de la consulta\r\n while (rs.next()) {//C.P.M recorremos el resultado\r\n Object[] fila = new Object[cantidadColumnas];//C.P.M creamos un arreglo con una dimencion igual a la cantidad de columnas\r\n for (int i = 0; i < cantidadColumnas; i++) { //C.P.M lo recorremos \r\n fila[i] = rs.getObject(i + 1); //C.P.M vamos insertando los resultados dentor del arreglo\r\n }\r\n buscar.addRow(fila);//C.P.M y lo agregamos como una nueva fila a la tabla\r\n }\r\n\r\n } catch (SQLException ex) {\r\n JOptionPane.showMessageDialog(null, \"Ocurrio un error al buscar producto por descripcion\");\r\n }\r\n }", "public java.sql.ResultSet CitasActivasSoloMedico(String CodigoMedico){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"SELECT phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo,su.usu_codigo,SUBSTRING(phm.horas, 7, 3) AS jornada FROM pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes,seg_datos_personales sdp,seg_usuario su WHERE pmd.codigo = \"+CodigoMedico+\" AND phm.codMedico_fk = pmd.codigo AND pmd.codEspe_fk = pes.codigo AND phm.estado='0' AND sdp.numeroDocumento = pmd.numeroDocumento AND su.dat_codigo_fk = sdp.dat_codigo AND phm.fechas >= CURDATE() ORDER BY phm.fechas,jornada,phm.horas LIMIT 100 \");\r\n \t//System.out.println(\"SELECT ahm.codigo,ahm.horas,ahm.fechas,ahm.NombrePaciente,aes.nombre_especialidad,amd.nombre,amd.apellidos,ahm.estado,aes.codigo,amd.codigo,su.usu_codigo,SUBSTRING(ahm.horas, 7, 3) AS jornada FROM agm_horariomedico ahm,agm_medico amd,agm_especialidad aes,seg_datos_personales sdp,seg_usuario su WHERE amd.codigo = \"+CodigoMedico+\" AND ahm.codMedico_fk = amd.codigo AND amd.codEspe_fk = aes.codigo AND ahm.estado='0' AND sdp.numeroDocumento = amd.numeroDocumento AND su.dat_codigo_fk = sdp.dat_codigo AND ahm.fechas >= CURDATE() ORDER BY ahm.fechas,jornada,ahm.horas LIMIT 100 \");\r\n \t\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultapormedicofecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "public java.sql.ResultSet consultapormedicofecha2(String CodigoMedico,String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"SELECT phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo,su.usu_codigo,SUBSTRING(phm.horas,7,3) AS jornada FROM pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes,seg_datos_personales sdp,seg_usuario su WHERE pmd.codigo=\"+CodigoMedico+\" AND phm.fechas='\"+fecha+\"' AND phm.codMedico_fk = pmd.codigo AND pmd.codEspe_fk = pes.codigo AND sdp.numeroDocumento=pmd.numeroDocumento AND su.dat_codigo_fk=sdp.dat_codigo AND phm.fechas >= CURDATE() ORDER BY jornada,phm.horas \");\r\n \tSystem.out.println(\"SELECT phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo,su.usu_codigo,SUBSTRING(phm.horas,7,3) AS jornada FROM pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes,seg_datos_personales sdp,seg_usuario su WHERE pmd.codigo=\"+CodigoMedico+\" AND phm.fechas='\"+fecha+\"' AND phm.codMedico_fk = pmd.codigo AND pmd.codEspe_fk = pes.codigo AND sdp.numeroDocumento=pmd.numeroDocumento AND su.dat_codigo_fk=sdp.dat_codigo AND phm.fechas >= CURDATE() ORDER BY jornada,phm.horas \");\r\n \t\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultapormedicofecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "public List<ReporteRetencionesResumido> getRetencionSRIResumido(int mes, int anio, int idOrganizacion)\r\n/* 27: */ {\r\n/* 28: 58 */ String sql = \"SELECT new ReporteRetencionesResumido(f.fechaEmisionRetencion,f.fechaRegistro,f.fechaEmision, CONCAT(f.establecimiento,'-',f.puntoEmision,'-',f.numero),\\tf.identificacionProveedor,c.descripcion,CASE WHEN c.tipoConceptoRetencion = :tipoConceptoFUENTE then (SUM(COALESCE(dfp.baseImponibleRetencion, 0)+COALESCE(dfp.baseImponibleTarifaCero, 0) +COALESCE(dfp.baseImponibleDiferenteCero, 0)+COALESCE(dfp.baseImponibleNoObjetoIva, 0))) else COALESCE(dfp.baseImponibleRetencion, 0) end,dfp.porcentajeRetencion,dfp.valorRetencion,\\tc.codigo,CASE WHEN c.tipoConceptoRetencion = :tipoConceptoIVA then 'IVA' WHEN c.tipoConceptoRetencion = :tipoConceptoFUENTE then 'FUENTE' WHEN c.tipoConceptoRetencion = :tipoConceptoISD then 'ISD' else '' end,f.numeroRetencion) FROM DetalleFacturaProveedorSRI dfp INNER JOIN dfp.facturaProveedorSRI f INNER JOIN dfp.conceptoRetencionSRI c WHERE MONTH(f.fechaRegistro) =:mes\\tAND YEAR(f.fechaRegistro) =:anio AND f.estado!=:estadoAnulado AND f.indicadorSaldoInicial!=true AND f.idOrganizacion = :idOrganizacion\\tGROUP BY c.codigo,f.numero,f.puntoEmision,\\tf.establecimiento, f.identificacionProveedor,\\tc.descripcion,dfp.baseImponibleRetencion,dfp.porcentajeRetencion,dfp.valorRetencion,f.fechaEmisionRetencion,f.fechaRegistro,f.fechaEmision,f.numeroRetencion, c.tipoConceptoRetencion ORDER BY c.tipoConceptoRetencion, c.codigo \";\r\n/* 29: */ \r\n/* 30: */ \r\n/* 31: */ \r\n/* 32: */ \r\n/* 33: */ \r\n/* 34: */ \r\n/* 35: */ \r\n/* 36: */ \r\n/* 37: */ \r\n/* 38: */ \r\n/* 39: */ \r\n/* 40: */ \r\n/* 41: */ \r\n/* 42: */ \r\n/* 43: */ \r\n/* 44: */ \r\n/* 45: 75 */ Query query = this.em.createQuery(sql);\r\n/* 46: 76 */ query.setParameter(\"mes\", Integer.valueOf(mes));\r\n/* 47: 77 */ query.setParameter(\"anio\", Integer.valueOf(anio));\r\n/* 48: 78 */ query.setParameter(\"estadoAnulado\", Estado.ANULADO);\r\n/* 49: 79 */ query.setParameter(\"idOrganizacion\", Integer.valueOf(idOrganizacion));\r\n/* 50: 80 */ query.setParameter(\"tipoConceptoIVA\", TipoConceptoRetencion.IVA);\r\n/* 51: 81 */ query.setParameter(\"tipoConceptoFUENTE\", TipoConceptoRetencion.FUENTE);\r\n/* 52: 82 */ query.setParameter(\"tipoConceptoISD\", TipoConceptoRetencion.ISD);\r\n/* 53: 83 */ List<ReporteRetencionesResumido> lista = query.getResultList();\r\n/* 54: */ \r\n/* 55: 85 */ return lista;\r\n/* 56: */ }", "private void refreshData() {\n try {\n setDataSource(statement.executeQuery(\"select * from \" + sourceTableName));\n } catch (SQLException e) {\n System.err.println(\"Can't execute statement\");\n e.printStackTrace();\n }\n }", "public EstadosSql() {\r\n }", "public RespuestaBD modificarRegistro(int codigoFlujo, int secuencia, int servicioInicio, int accion, int codigoEstado, int servicioDestino, String nombreProcedimiento, String correoDestino, String enviar, String mismoProveedor, String mismomismoCliente, String estado, int caracteristica, int caracteristicaValor, int caracteristicaCorreo, String metodoSeleccionProveedor, String indCorreoCliente, String indHermana, String indHermanaCerrada, String indfuncionario, String usuarioModificacion) {\n/* 437 */ RespuestaBD rta = new RespuestaBD();\n/* */ \n/* */ try {\n/* 440 */ String s = \"update wkf_detalle set servicio_inicio=\" + servicioInicio + \",\" + \" accion=\" + accion + \",\" + \" codigo_estado=\" + codigoEstado + \",\" + \" servicio_destino=\" + ((servicioDestino == 0) ? \"null\" : Integer.valueOf(servicioDestino)) + \",\" + \" nombre_procedimiento='\" + nombreProcedimiento + \"',\" + \" correo_destino='\" + correoDestino + \"',\" + \" enviar_solicitud='\" + enviar + \"',\" + \" ind_mismo_proveedor='\" + mismoProveedor + \"',\" + \" ind_mismo_cliente='\" + mismomismoCliente + \"',\" + \" estado='\" + estado + \"',\" + \" caracteristica=\" + ((caracteristica == 0) ? \"null\" : (\"\" + caracteristica)) + \",\" + \" valor_caracteristica=\" + ((caracteristicaValor == 0) ? \"null\" : (\"\" + caracteristicaValor)) + \",\" + \" caracteristica_correo=\" + ((caracteristicaCorreo == 0) ? \"null\" : (\"\" + caracteristicaCorreo)) + \",\" + \" metodo_seleccion_proveedor=\" + ((metodoSeleccionProveedor.length() == 0) ? \"null\" : (\"'\" + metodoSeleccionProveedor + \"'\")) + \",\" + \" ind_correo_clientes=\" + ((indCorreoCliente.length() == 0) ? \"null\" : (\"'\" + indCorreoCliente + \"'\")) + \",\" + \" enviar_hermana=\" + ((indHermana.length() == 0) ? \"null\" : (\"'\" + indHermana + \"'\")) + \",\" + \" enviar_si_hermana_cerrada=\" + ((indHermanaCerrada.length() == 0) ? \"null\" : (\"'\" + indHermanaCerrada + \"'\")) + \",\" + \" ind_cliente_inicial=\" + ((indfuncionario.length() == 0) ? \"null\" : (\"'\" + indfuncionario + \"'\")) + \",\" + \" usuario_modificacion='\" + usuarioModificacion + \"',\" + \" fecha_modificacion=\" + Utilidades.getFechaBD() + \"\" + \" where\" + \" codigo_flujo=\" + codigoFlujo + \" and secuencia=\" + secuencia + \"\";\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 465 */ rta = this.dat.executeUpdate2(s);\n/* */ }\n/* 467 */ catch (Exception e) {\n/* 468 */ e.printStackTrace();\n/* 469 */ Utilidades.writeError(\"FlujoDetalleDAO:modificarRegistro \", e);\n/* 470 */ rta.setMensaje(e.getMessage());\n/* */ } \n/* 472 */ return rta;\n/* */ }", "private boolean insertarTablaRelacionadas(java.sql.Connection conn,int intCodEmp, int intCodLoc,int intCodTipDoc,int intCodDoc,int intCodCot){\r\n java.sql.Statement stmLoc;\r\n java.sql.ResultSet rstLocFacVen,rstLocIng; \r\n boolean blnRes = true;\r\n try{\r\n if(conn!=null){\r\n stmLoc = conn.createStatement();\r\n arlDatFacVen = new ArrayList();\r\n arlDatIngGen = new ArrayList();\r\n \r\n strSql=\"\";\r\n strSql+=\" SELECT a2.co_emp, a2.co_loc, a2.co_tipDoc, a2.co_doc,a3.co_reg, a3.co_itm, ABS(a3.nd_can) as nd_can \\n\";\r\n strSql+=\" FROM( \\n\";\r\n strSql+=\" SELECT co_empRelCabMovInv, co_locRelCabMovInv, co_tipDocRelCabMovInv, co_docRelCabMovInv \\n\";\r\n strSql+=\" FROM tbm_cabSegMovInv \\n\";\r\n strSql+=\" WHERE co_empRelCabMovInv=\"+intCodEmp+\" AND co_locRelCabMovInv=\"+intCodLoc+\" AND \\n\";\r\n strSql+=\" co_tipDocRelCabMovInv=\"+intCodTipDoc+\" AND co_docRelCabMovInv=\"+intCodDoc+\" \\n\";\r\n strSql+=\" ) as a1 \\n\";\r\n strSql+=\" INNER JOIN tbm_cabMovInv as a2 ON (a1.co_empRelCabMovInv=a2.co_emp AND a1.co_locRelCabMovInv=a2.co_loc AND \\n\";\r\n strSql+=\" a1.co_tipDocRelCabMovInv=a2.co_tipDoc AND a1.co_docRelCabMovInv=a2.co_doc ) \\n\";\r\n strSql+=\" INNER JOIN tbm_detMovInv as a3 ON (a2.co_emp=a3.co_emp AND a2.co_loc=a3.co_loc AND a2.co_tipDoc=a3.co_tipDoc AND a2.co_doc=a3.co_doc) \\n\";\r\n System.out.println(\"insertarTablaRelacionadas... \"+strSql);\r\n rstLocFacVen = stmLoc.executeQuery(strSql);\r\n while(rstLocFacVen.next()){\r\n arlRegFacVen = new ArrayList();\r\n arlRegFacVen.add(INT_ARL_COD_EMP_REL, rstLocFacVen.getInt(\"co_emp\"));\r\n arlRegFacVen.add(INT_ARL_COD_LOC_REL, rstLocFacVen.getInt(\"co_loc\"));\r\n arlRegFacVen.add(INT_ARL_COD_TIP_DOC_REL, rstLocFacVen.getInt(\"co_tipDoc\"));\r\n arlRegFacVen.add(INT_ARL_COD_DOC_REL, rstLocFacVen.getInt(\"co_doc\"));\r\n arlRegFacVen.add(INT_ARL_COD_REG_REL_AUX, rstLocFacVen.getInt(\"co_reg\"));\r\n arlRegFacVen.add(INT_ARL_COD_ITM_REL, rstLocFacVen.getInt(\"co_itm\"));\r\n arlRegFacVen.add(INT_ARL_CAN_REL, rstLocFacVen.getDouble(\"nd_can\"));\r\n arlRegFacVen.add(INT_ARL_COD_CAN_UTI, 0.00);\r\n arlDatFacVen.add(arlRegFacVen); \r\n }\r\n rstLocFacVen.close();\r\n rstLocFacVen=null;\r\n\r\n strSql=\"\";\r\n strSql+=\" SELECT a1.co_empRelCabMovInv, a1.co_locRelCabMovInv, a1.co_tipDocRelCabMovInv, \\n\";\r\n strSql+=\" a1.co_docRelCabMovInv,a3.co_reg as co_regRel, a3.co_itm, a3.nd_can \\n\";\r\n strSql+=\" FROM tbm_cabSegMovInv as a1 \\n\";\r\n strSql+=\" INNER JOIN tbm_cabMovInv as a2 ON (a1.co_empRelCabMovInv=a2.co_emp AND a1.co_locRelCabMovInv=a2.co_loc AND \\n\";\r\n strSql+=\" a1.co_tipDocRelCabMovInv=a2.co_tipDoc AND a1.co_docRelCabMovInv=a2.co_doc) \\n\";\r\n strSql+=\" INNER JOIN tbm_detMovInv as a3 ON (a2.co_emp=a3.co_emp AND a2.co_loc=a3.co_loc AND a2.co_tipDoc=a3.co_tipDoc AND a2.co_doc=a3.co_doc) \\n\";\r\n strSql+=\" RIGHT JOIN tbr_detMovInv as a5 ON (a2.co_emp=a5.co_empRel AND a2.co_loc=a5.co_locRel AND a2.co_tipDoc=a5.co_tipDocRel AND a2.co_doc=a5.co_docRel) \\n\";\r\n strSql+=\" WHERE a1.co_seg=(select co_seg from tbm_cabSegMovInv \\n\";\r\n strSql+=\" where co_empRelCabCotVen=\"+intCodEmp+\" and co_locRelCabCotVen=\"+intCodLoc+\" \\n\";\r\n strSql+=\" and co_cotRelCabCotVen=\"+intCodCot+\" GROUP BY co_seg ) and a3.nd_can > 0 \\n \";\r\n strSql+=\" GROUP BY a1.co_empRelCabMovInv, a1.co_locRelCabMovInv, a1.co_tipDocRelCabMovInv, \";\r\n strSql+=\" a1.co_docRelCabMovInv,a3.co_reg , a2.co_cli, a3.co_itm, a3.nd_can \";\r\n strSql+=\" ORDER BY a3.nd_can DESC \";\r\n System.out.println(\"insertarTablaRelacionadas 2 ... \"+strSql);\r\n rstLocIng = stmLoc.executeQuery(strSql);\r\n while(rstLocIng.next()){\r\n arlRegIngGen = new ArrayList();\r\n arlRegIngGen.add(INT_ARL_COD_EMP_REL, rstLocIng.getInt(\"co_empRelCabMovInv\"));\r\n arlRegIngGen.add(INT_ARL_COD_LOC_REL, rstLocIng.getInt(\"co_locRelCabMovInv\"));\r\n arlRegIngGen.add(INT_ARL_COD_TIP_DOC_REL, rstLocIng.getInt(\"co_tipDocRelCabMovInv\"));\r\n arlRegIngGen.add(INT_ARL_COD_DOC_REL, rstLocIng.getInt(\"co_docRelCabMovInv\"));\r\n arlRegIngGen.add(INT_ARL_COD_REG_REL_AUX, rstLocIng.getInt(\"co_regRel\"));\r\n arlRegIngGen.add(INT_ARL_COD_ITM_REL, rstLocIng.getInt(\"co_itm\"));\r\n arlRegIngGen.add(INT_ARL_CAN_REL, rstLocIng.getDouble(\"nd_can\"));\r\n arlRegIngGen.add(INT_ARL_COD_CAN_UTI, 0.00);\r\n arlDatIngGen.add(arlRegIngGen); \r\n }\r\n rstLocIng.close();\r\n rstLocIng=null;\r\n \r\n String strIng=\"\";\r\n for(int i=0;i<arlDatFacVen.size();i++){\r\n for(int b=0;b<arlDatIngGen.size();b++){\r\n if(objUti.getIntValueAt(arlDatFacVen, i, INT_ARL_COD_ITM_REL)==objUti.getIntValueAt(arlDatIngGen, b, INT_ARL_COD_ITM_REL)){\r\n if(objUti.getDoubleValueAt(arlDatIngGen, b, INT_ARL_CAN_REL)>objUti.getDoubleValueAt(arlDatIngGen, b, INT_ARL_COD_CAN_UTI)){\r\n strSql=\"\";\r\n strSql+=\" INSERT INTO tbr_detMovInv(co_emp,co_loc,co_tipdoc,co_doc,co_reg,st_reg, \\n\";\r\n strSql+=\" co_emprel,co_locrel,co_tipdocrel,co_docrel,co_regrel) \\n\";\r\n strSql+=\" VALUES (\"+objUti.getIntValueAt(arlDatFacVen, i, INT_ARL_COD_EMP_REL)+\",\";\r\n strSql+=\" \"+objUti.getIntValueAt(arlDatFacVen, i, INT_ARL_COD_LOC_REL)+\",\" ;\r\n strSql+=\" \"+objUti.getIntValueAt(arlDatFacVen, i, INT_ARL_COD_TIP_DOC_REL)+\",\";\r\n strSql+=\" \"+objUti.getIntValueAt(arlDatFacVen, i, INT_ARL_COD_DOC_REL)+\",\";\r\n strSql+=\" \"+objUti.getIntValueAt(arlDatFacVen, i, INT_ARL_COD_REG_REL_AUX)+\",'A', \\n\";\r\n strSql+=\" \"+objUti.getIntValueAt(arlDatIngGen, b, INT_ARL_COD_EMP_REL)+\",\";\r\n strSql+=\" \"+objUti.getIntValueAt(arlDatIngGen, b, INT_ARL_COD_LOC_REL)+\",\";\r\n strSql+=\" \"+objUti.getIntValueAt(arlDatIngGen, b, INT_ARL_COD_TIP_DOC_REL)+\",\"; \r\n strSql+=\" \"+objUti.getIntValueAt(arlDatIngGen, b, INT_ARL_COD_DOC_REL)+\",\";\r\n strSql+=\" \"+objUti.getIntValueAt(arlDatIngGen, b, INT_ARL_COD_REG_REL_AUX)+\");\";\r\n strIng+=strSql;\r\n if(objUti.getDoubleValueAt(arlDatFacVen, i, INT_ARL_CAN_REL)<=objUti.getDoubleValueAt(arlDatIngGen, b, INT_ARL_CAN_REL)){\r\n // FACTURA 5 INGRESO 10 // le sumo lo de la factura\r\n objUti.setDoubleValueAt(arlDatIngGen, b, INT_ARL_COD_CAN_UTI, (objUti.getDoubleValueAt(arlDatIngGen, b, INT_ARL_COD_CAN_UTI)+objUti.getDoubleValueAt(arlDatFacVen, i, INT_ARL_CAN_REL)));\r\n }\r\n else{\r\n //factura 10 ing 4// le sumo el ingreso\r\n objUti.setDoubleValueAt(arlDatIngGen, b, INT_ARL_COD_CAN_UTI, (objUti.getDoubleValueAt(arlDatIngGen, b, INT_ARL_COD_CAN_UTI)+objUti.getDoubleValueAt(arlDatIngGen, b, INT_ARL_CAN_REL)));\r\n }\r\n }\r\n }\r\n }\r\n }\r\n System.out.println(\"insertarTablaRelacionadas: \\n\" + strIng);\r\n stmLoc.executeUpdate(strIng);\r\n \r\n stmLoc.close();\r\n stmLoc=null;\r\n }\r\n }\r\n catch (SQLException Evt) {\r\n blnRes = false;\r\n System.err.println(\"ERROR \" + Evt.toString());\r\n objUti.mostrarMsgErr_F1(jifCnt, Evt);\r\n } \r\n catch (Exception Evt) {\r\n blnRes = false;\r\n System.err.println(\"ERROR \" + Evt.toString());\r\n objUti.mostrarMsgErr_F1(jifCnt, Evt);\r\n }\r\n return blnRes;\r\n }", "public String validarResponsableYaAsignado (DTOResponsable dtoe) throws MareException { \n UtilidadesLog.info(\"DAOZON.validarResponsableYaAsignado(DTOResponsable dtoe): Entrada\");\n StringBuffer consulta = new StringBuffer();\n Vector parametros = new Vector();\n RecordSet rs = new RecordSet();\n \n String asignado = null;\n String unidadAdministrativa = null;\n Long marca = null;\n Long canal = null;\n Long pais = null;\n\n //Recuperamos el pais, marca y canal de la Unidad Administrativa \n BelcorpService bs = UtilidadesEJB.getBelcorpService();\n\n /*if (dtoe.getIndUA().intValue() == 1) { \n consulta.append(\" SELECT pais_oid_pais PAIS, marc_oid_marc MARCA, cana_oid_cana canal \");\n consulta.append(\" FROM zon_sub_geren_venta \");\n consulta.append(\" WHERE oid_subg_vent = ? \");\n unidadAdministrativa = \"Subgerencia\";\n }*/\n if (dtoe.getIndUA().intValue() == 2){\n consulta.append(\" SELECT pais_oid_pais PAIS, marc_oid_marc MARCA, cana_oid_cana canal \");\n consulta.append(\" FROM zon_regio \");\n consulta.append(\" WHERE oid_regi = ? \");\n unidadAdministrativa = \"Region\";\n }\n if (dtoe.getIndUA().intValue() == 3){\n consulta.append(\" SELECT pais_oid_pais PAIS, marc_oid_marc MARCA, cana_oid_cana canal \");\n consulta.append(\" FROM zon_zona \");\n consulta.append(\" WHERE oid_zona = ? \");\n unidadAdministrativa = \"Zona\";\n }\n /*if (dtoe.getIndUA().intValue() == 4){\n consulta.append(\" SELECT zon.pais_oid_pais PAIS, zon.marc_oid_marc MARCA, zon.cana_oid_cana canal \");\n consulta.append(\" FROM zon_zona zon, zon_secci sec \");\n consulta.append(\" WHERE sec.zzon_oid_zona = zon.oid_zona \"); \n consulta.append(\" AND sec.oid_secc = ? \");\n unidadAdministrativa = \"Seccion\"; \n }*/\n parametros.add(dtoe.getOidUA());\n \n try {\n rs = bs.dbService.executePreparedQuery(consulta.toString(), parametros);\n UtilidadesLog.debug(\"rs: \" + rs);\n } catch (Exception e) {\n codigoError = CodigosError.ERROR_DE_ACCESO_A_BASE_DE_DATOS;\n throw new MareException(e, UtilidadesError.armarCodigoError(codigoError));\n }\n\n if (rs.esVacio()) {\n UtilidadesLog.debug(\"****DAOZON.validarResponsableYaAsignado: No existe Unidad Administrativa \");\t\t\t\t\n String sCodigoError = CodigosError.ERROR_DE_PETICION_DE_DATOS_NO_EXISTENTE;\n throw new MareException(new Exception(), UtilidadesError.armarCodigoError(sCodigoError));\n } else {\n pais = new Long(((BigDecimal)rs.getValueAt(0,\"PAIS\")).longValue());\n marca = new Long(((BigDecimal)rs.getValueAt(0,\"MARCA\")).longValue());\n canal = new Long(((BigDecimal)rs.getValueAt(0,\"CANAL\")).longValue());\n }\n\n //Buscamos si el cliente es responsable en otra unidad administrativa\n //para el pais, marca y canal de la unidad administrativa a asignar\n parametros = new Vector(); \n consulta = new StringBuffer();\n /*consulta.append(\" SELECT 'SubGerencia: ' || zon_sub_geren_venta.des_subg_vent DESCUNIDADADMIN \");\n consulta.append(\" FROM zon_sub_geren_venta, mae_clien \");\n consulta.append(\" WHERE mae_clien.oid_clie = zon_sub_geren_venta.clie_oid_clie \"); \n consulta.append(\" AND mae_clien.oid_clie = ? \");\n parametros.add(dtoe.getOidResponsable());\n consulta.append(\" AND zon_sub_geren_venta.pais_oid_pais = ? \");\n parametros.add(pais);\n consulta.append(\" AND zon_sub_geren_venta.marc_oid_marc = ? \");\n parametros.add(marca);\n consulta.append(\" AND zon_sub_geren_venta.cana_oid_cana = ? \");\n parametros.add(canal);\n consulta.append(\" AND zon_sub_geren_venta.ind_borr = 0 \");\n\n consulta.append(\" UNION \");*/\n \n consulta.append(\" SELECT 'Region: ' || zon_regio.des_regi DESCUNIDADADMIN \");\n consulta.append(\" FROM mae_clien, zon_sub_geren_venta, zon_regio \");\n consulta.append(\" WHERE mae_clien.oid_clie = zon_regio.clie_oid_clie \");\n consulta.append(\" AND mae_clien.oid_clie = ? \");\n parametros.add(dtoe.getOidResponsable());\n consulta.append(\" AND zon_regio.zsgv_oid_subg_vent = zon_sub_geren_venta.oid_subg_vent \");\n consulta.append(\" AND zon_sub_geren_venta.pais_oid_pais = ? \");\n parametros.add(pais);\n consulta.append(\" AND zon_sub_geren_venta.marc_oid_marc = ? \");\n parametros.add(marca);\n consulta.append(\" AND zon_sub_geren_venta.cana_oid_cana = ? \");\n parametros.add(canal);\n consulta.append(\" AND zon_sub_geren_venta.ind_borr = 0 \");\n consulta.append(\" AND zon_regio.ind_borr = 0 \");\n \n consulta.append(\" UNION \");\n \n consulta.append(\" SELECT 'Zona: ' || zon_zona.des_zona DESCUNIDADADMIN \");\n consulta.append(\" FROM zon_sub_geren_venta, zon_regio, zon_zona, mae_clien \");\n consulta.append(\" WHERE zon_zona.clie_oid_clie = mae_clien.oid_clie \");\n consulta.append(\" AND mae_clien.oid_clie = ? \");\n parametros.add(dtoe.getOidResponsable());\n consulta.append(\" AND zon_sub_geren_venta.pais_oid_pais = ? \");\n parametros.add(pais);\n consulta.append(\" AND zon_sub_geren_venta.marc_oid_marc = ? \");\n parametros.add(marca);\n consulta.append(\" AND zon_sub_geren_venta.cana_oid_cana = ? \");\n parametros.add(canal);\n consulta.append(\" AND zon_regio.zsgv_oid_subg_vent = zon_sub_geren_venta.oid_subg_vent \");\n consulta.append(\" AND zon_zona.zorg_oid_regi = zon_regio.oid_regi \");\n consulta.append(\" AND zon_zona.ind_borr = 0 \");\n consulta.append(\" AND zon_sub_geren_venta.ind_borr = 0 \");\n consulta.append(\" AND zon_regio.ind_borr = 0 \");\n \n /*consulta.append(\" UNION \");\n \n consulta.append(\" SELECT 'Seccion: ' || zon_secci.des_secci DESCUNIDADADMIN \");\n consulta.append(\" FROM zon_sub_geren_venta, zon_regio, \");\n consulta.append(\" zon_zona, zon_secci, mae_clien \");\n consulta.append(\" WHERE zon_secci.clie_oid_clie = mae_clien.oid_clie \");\n consulta.append(\" AND mae_clien.oid_clie = ? \");\n parametros.add(dtoe.getOidResponsable());\n consulta.append(\" AND zon_sub_geren_venta.pais_oid_pais = ? \");\n parametros.add(pais);\n consulta.append(\" AND zon_sub_geren_venta.marc_oid_marc = ? \");\n parametros.add(marca);\n consulta.append(\" AND zon_sub_geren_venta.cana_oid_cana = ? \");\n parametros.add(canal);\n consulta.append(\" AND zon_regio.zsgv_oid_subg_vent = zon_sub_geren_venta.oid_subg_vent \");\n consulta.append(\" AND zon_zona.zorg_oid_regi = zon_regio.oid_regi \");\n consulta.append(\" AND zon_secci.zzon_oid_zona = zon_zona.oid_zona \"); \n consulta.append(\" AND zon_secci.ind_borr = 0 \");\n consulta.append(\" AND zon_zona.ind_borr = 0 \");\n consulta.append(\" AND zon_sub_geren_venta.ind_borr = 0 \");\n consulta.append(\" AND zon_regio.ind_borr = 0 \");*/\n\n try {\n rs = bs.dbService.executePreparedQuery(consulta.toString(), parametros);\n UtilidadesLog.debug(\"rs: \" + rs);\n } catch (Exception e) {\n codigoError = CodigosError.ERROR_DE_ACCESO_A_BASE_DE_DATOS;\n throw new MareException(e, UtilidadesError.armarCodigoError(codigoError));\n }\n\n if (rs.esVacio()) {\n UtilidadesLog.debug(\"****DAOZON.validarResponsableYaAsignado: No hay datos \");\t\t\t\t\n }\n else {\n UtilidadesLog.debug(\"****DAOZON.validarResponsableYaAsignado: se encontro al menos un cliente \");\t\t\t\t\n asignado = rs.getValueAt(0,\"DESCUNIDADADMIN\").toString();\n }\n \n UtilidadesLog.info(\"DAOZON.validarResponsableYaAsignado(DTOResponsable dtoe): Salida\"); \n \n return asignado;\n }", "public List<Object[]> getRetencionesAnuladas(int mes, int anio, int idOrganizacion, Sucursal sucursalFP, Sucursal sucursalRetencion, PuntoDeVenta puntoVentaRetencion, String orden, TipoComprobanteSRI tipoComprobante)\r\n/* 125: */ {\r\n/* 126:175 */ StringBuilder sql = new StringBuilder();\r\n/* 127: */ \r\n/* 128:177 */ sql.append(\" SELECT a.fechaEmisionDocumento, f.fechaRegistro, f.fechaEmision, CONCAT(f.establecimiento,'-',f.puntoEmision,'-',f.numero), f.identificacionProveedor, \");\r\n/* 129: */ \r\n/* 130:179 */ sql.append(\" \\t'', f.montoIva*0, f.montoIva*0, f.montoIva*0, '', '', \");\r\n/* 131: */ \r\n/* 132:181 */ sql.append(\" \\tCONCAT(a.establecimiento,'-',a.puntoEmision,'-',a.numeroDesde), f.montoIva*0, f.montoIva*0, f.montoIva*0, f.nombreProveedor, \");\r\n/* 133: */ \r\n/* 134:183 */ sql.append(\"\\tf.montoIva*0, f.montoIva*0, '', a.autorizacion, f.fechaRegistro, f.autorizacion, '', 'ANULADO', f.idFacturaProveedorSRI,'' \");\r\n/* 135:184 */ sql.append(\" FROM AnuladoSRI a, FacturaProveedorSRI f \");\r\n/* 136:185 */ sql.append(\" WHERE a.documentoRelacionado = f.idFacturaProveedorSRI \");\r\n/* 137:186 */ sql.append(\" AND a.tipoComprobanteSRI = :tipoComprobante \");\r\n/* 138:187 */ sql.append(\" AND a.anio = :anio AND a.mes = :mes \");\r\n/* 139:188 */ sql.append(\" AND a.idOrganizacion = :idOrganizacion \");\r\n/* 140:189 */ if (sucursalFP != null) {\r\n/* 141:190 */ sql.append(\" AND f.idSucursal = :idSucursal \");\r\n/* 142: */ }\r\n/* 143:192 */ if (sucursalRetencion != null) {\r\n/* 144:193 */ sql.append(\" AND a.establecimiento = :sucursalRetencion \");\r\n/* 145: */ }\r\n/* 146:195 */ if (puntoVentaRetencion != null) {\r\n/* 147:196 */ sql.append(\" AND a.puntoEmision = :puntoVentaRetencion \");\r\n/* 148: */ }\r\n/* 149:198 */ Query query = this.em.createQuery(sql.toString());\r\n/* 150:199 */ query.setParameter(\"mes\", Integer.valueOf(mes));\r\n/* 151:200 */ query.setParameter(\"anio\", Integer.valueOf(anio));\r\n/* 152:201 */ query.setParameter(\"idOrganizacion\", Integer.valueOf(idOrganizacion));\r\n/* 153:202 */ query.setParameter(\"tipoComprobante\", tipoComprobante);\r\n/* 154:203 */ if (sucursalFP != null) {\r\n/* 155:204 */ query.setParameter(\"idSucursal\", Integer.valueOf(sucursalFP.getId()));\r\n/* 156: */ }\r\n/* 157:206 */ if (sucursalRetencion != null) {\r\n/* 158:207 */ query.setParameter(\"sucursalRetencion\", sucursalRetencion.getCodigo());\r\n/* 159: */ }\r\n/* 160:209 */ if (puntoVentaRetencion != null) {\r\n/* 161:210 */ query.setParameter(\"puntoVentaRetencion\", puntoVentaRetencion.getCodigo());\r\n/* 162: */ }\r\n/* 163:213 */ return query.getResultList();\r\n/* 164: */ }", "public Produto consultarProduto(Produto produto) {\r\n ConexaoBDJavaDB conexaoBD = new ConexaoBDJavaDB(\"routeexpress\");\r\n Connection conn = null;\r\n PreparedStatement stmt = null;\r\n ResultSet rs = null;\r\n Produto cerveja = null;\r\n String sql = \"SELECT TBL_CERVEJARIA.ID_CERVEJARIA, TBL_CERVEJARIA.CERVEJARIA, TBL_CERVEJARIA.PAIS, \"\r\n + \"TBL_CERVEJA.ID_CERVEJA, TBL_CERVEJA.ID_CERVEJARIA AS \\\"FK_CERVEJARIA\\\", \"\r\n + \"TBL_CERVEJA.ROTULO, TBL_CERVEJA.PRECO, TBL_CERVEJA.VOLUME, TBL_CERVEJA.TEOR, TBL_CERVEJA.COR, TBL_CERVEJA.TEMPERATURA, \"\r\n + \"TBL_CERVEJA.FAMILIA_E_ESTILO, TBL_CERVEJA.DESCRICAO, TBL_CERVEJA.SABOR, TBL_CERVEJA.IMAGEM_1, TBL_CERVEJA.IMAGEM_2, TBL_CERVEJA.IMAGEM_3 \"\r\n + \"FROM TBL_CERVEJARIA \"\r\n + \"INNER JOIN TBL_CERVEJA \"\r\n + \"ON TBL_CERVEJARIA.ID_CERVEJARIA = TBL_CERVEJA.ID_CERVEJARIA \"\r\n + \"WHERE ID_CERVEJA = ?\";\r\n try {\r\n conn = conexaoBD.obterConexao();\r\n stmt = conn.prepareStatement(sql);\r\n stmt.setInt(1, produto.getIdCerveja());\r\n rs = stmt.executeQuery();\r\n if (rs.next()) {\r\n cerveja = new Produto();\r\n cerveja.setIdCervejaria(rs.getInt(\"ID_CERVEJARIA\"));\r\n cerveja.setCervejaria(rs.getString(\"CERVEJARIA\"));\r\n cerveja.setPais(rs.getString(\"PAIS\"));\r\n cerveja.setIdCerveja(rs.getInt(\"ID_CERVEJA\"));\r\n cerveja.setIdFkCervajaria(rs.getInt(\"FK_CERVEJARIA\"));\r\n cerveja.setRotulo(rs.getString(\"ROTULO\"));\r\n cerveja.setPreco(rs.getString(\"PRECO\"));\r\n cerveja.setVolume(rs.getString(\"VOLUME\"));\r\n cerveja.setTeor(rs.getString(\"TEOR\"));\r\n cerveja.setCor(rs.getString(\"COR\"));\r\n cerveja.setTemperatura(rs.getString(\"TEMPERATURA\"));\r\n cerveja.setFamiliaEEstilo(rs.getString(\"FAMILIA_E_ESTILO\"));\r\n cerveja.setDescricao(rs.getString(\"DESCRICAO\"));\r\n cerveja.setSabor(rs.getString(\"SABOR\"));\r\n cerveja.setImagem1(rs.getString(\"IMAGEM_1\"));\r\n cerveja.setImagem2(rs.getString(\"IMAGEM_2\"));\r\n cerveja.setImagem3(rs.getString(\"IMAGEM_3\"));\r\n } else {\r\n return cerveja;\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (ClassNotFoundException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n if (conn != null) {\r\n try {\r\n conn.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (stmt != null) {\r\n try {\r\n stmt.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (rs != null) {\r\n try {\r\n rs.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }\r\n return cerveja;\r\n }", "@SuppressWarnings(\"unchecked\")\n public void consultarCoactivosXLS() throws CirculemosNegocioException {\n\n // consulta la tabla temporal de los 6000 coactivos\n StringBuilder sql = new StringBuilder();\n\n sql.append(\"select [TIPO DOC], [NUMERO DE IDENTIFICACIÓN], [valor multas], [titulo valor], proceso \");\n sql.append(\"from coactivos_xls \");\n sql.append(\"where id_tramite is null and numero_axis is null AND archivo is not null \");\n sql.append(\"AND [titulo valor] IN ('2186721','2187250','2187580','2186845')\");\n\n Query query = em.createNativeQuery(sql.toString());\n\n List<Object[]> listaResultados = Utilidades.safeList(query.getResultList());\n\n Date fechaCoactivo = UtilFecha.buildCalendar().getTime();\n CoactivoDTO coactivoDTOs;\n TipoIdentificacionPersonaDTO tipoIdentificacion;\n List<ObligacionCoactivoDTO> obligacionesCoactivoDTO;\n PersonaDTO personaDTO;\n ProcesoDTO proceso;\n // persiste los resultados en coactivoDTO\n for (Object[] coactivo : listaResultados) {\n coactivoDTOs = new CoactivoDTO();\n // persiste el tipo de indetificacion en TipoIdentificacionPersonaDTO\n personaDTO = new PersonaDTO();\n proceso = new ProcesoDTO();\n tipoIdentificacion = new TipoIdentificacionPersonaDTO();\n obligacionesCoactivoDTO = new ArrayList<>();\n\n tipoIdentificacion.setCodigo((String) coactivo[0]);\n personaDTO.setTipoIdentificacion(tipoIdentificacion);\n coactivoDTOs.setPersona(personaDTO);\n coactivoDTOs.getPersona().setNumeroIdentificacion((String) coactivo[1]);\n\n proceso.setFechaInicio(fechaCoactivo);\n coactivoDTOs.setProceso(proceso);\n coactivoDTOs.setValorTotalObligaciones(BigDecimal\n .valueOf(Double.valueOf(coactivo[2].toString().replaceAll(\"\\\\.\", \"\").replaceAll(\",\", \".\"))));\n coactivoDTOs.setValorTotalCostasProcesales(\n coactivoDTOs.getValorTotalObligaciones().multiply(BigDecimal.valueOf(0.05)));\n coactivoDTOs.getProceso().setObservacion(\"COACTIVO\");\n String[] numeroFactura = coactivo[3].toString().split(\",\");\n // separa los numeros de factura cuando viene mas de uno.\n for (String nFactura : numeroFactura) {\n // consulta por numero de factura el el saldo a capital por cada factura\n sql = new StringBuilder();\n sql.append(\"select nombre, saldo_capital, saldo_interes \");\n sql.append(\"from cartera_coactivos_xls \");\n sql.append(\"where nombre = :nFactura\");\n\n Query quer = em.createNativeQuery(sql.toString());\n\n quer.setParameter(\"nFactura\", nFactura);\n\n List<Object[]> result = Utilidades.safeList(quer.getResultList());\n // persiste las obligaciones consultadas y las inserta en ObligacionCoactivoDTO\n ObligacionCoactivoDTO obligaciones;\n for (Object[] obligacion : result) {\n obligaciones = new ObligacionCoactivoDTO();\n obligaciones.setNumeroObligacion((String) obligacion[0]);\n obligaciones.setValorObligacion(BigDecimal.valueOf(\n Double.valueOf(obligacion[1].toString().replaceAll(\"\\\\.\", \"\").replaceAll(\",\", \".\"))));\n obligaciones.setValorInteresMoratorios(BigDecimal.valueOf(\n Double.valueOf(obligacion[2].toString().replaceAll(\"\\\\.\", \"\").replaceAll(\",\", \".\"))));\n // Adiciona las obligaciones a una lista\n obligacionesCoactivoDTO.add(obligaciones);\n }\n\n }\n coactivoDTOs.setObligacionCoactivos(obligacionesCoactivoDTO);\n try {\n iLCoactivo.registrarCoactivoAxis(coactivoDTOs, coactivo[4].toString());\n } catch (Exception e) {\n logger.error(\"Error al registrar coactivo 6000 :\", e);\n }\n }\n }", "private void executeQuery() {\n }", "@Override\n\tpublic void prepare() throws Exception {\n\t\tsuper.prepare();\n\t\t//setto il titolo:\n\t\tthis.model.setTitolo(\"Quote ordinativo\");\n\t\t\n }", "public List<ReporteComprasVentasRetenciones> getReporteCompras(int mes, int anio, int idOrganizacion)\r\n/* 167: */ {\r\n/* 168:227 */ StringBuffer sql = new StringBuffer();\r\n/* 169: */ \r\n/* 170:229 */ sql.append(\" SELECT new ReporteComprasVentasRetenciones(tc.codigo, tc.nombre, COUNT(tc.codigo), \");\r\n/* 171:230 */ sql.append(\" (CASE WHEN tc.codigo = '04' THEN -SUM(fps.baseImponibleTarifaCero) ELSE SUM(fps.baseImponibleTarifaCero) END), \");\r\n/* 172:231 */ sql.append(\" (CASE WHEN tc.codigo = '04' THEN -SUM(fps.baseImponibleDiferenteCero) ELSE SUM(fps.baseImponibleDiferenteCero) END), \");\r\n/* 173:232 */ sql.append(\" (CASE WHEN tc.codigo = '04' THEN -SUM(fps.baseImponibleNoObjetoIva) ELSE SUM(fps.baseImponibleNoObjetoIva) END), \");\r\n/* 174:233 */ sql.append(\" (CASE WHEN tc.codigo = '04' THEN -SUM(fps.montoIva) ELSE SUM(fps.montoIva) END), 'Compras',ct.codigo,ct.nombre) \");\r\n/* 175:234 */ sql.append(\" FROM FacturaProveedorSRI fps \");\r\n/* 176:235 */ sql.append(\" LEFT OUTER JOIN fps.tipoComprobanteSRI tc \");\r\n/* 177:236 */ sql.append(\" LEFT OUTER JOIN fps.creditoTributarioSRI ct\");\r\n/* 178:237 */ sql.append(\" WHERE MONTH(fps.fechaRegistro) =:mes \");\r\n/* 179:238 */ sql.append(\" AND YEAR(fps.fechaRegistro) =:anio \");\r\n/* 180:239 */ sql.append(\" AND fps.estado!=:estadoAnulado \");\r\n/* 181:240 */ sql.append(\" AND fps.indicadorSaldoInicial!=true \");\r\n/* 182:241 */ sql.append(\" AND fps.idOrganizacion = :idOrganizacion \");\r\n/* 183:242 */ sql.append(\" GROUP BY tc.codigo, tc.nombre,ct.codigo,ct.nombre\");\r\n/* 184:243 */ sql.append(\" ORDER BY tc.codigo, tc.nombre \");\r\n/* 185: */ \r\n/* 186:245 */ Query query = this.em.createQuery(sql.toString());\r\n/* 187:246 */ query.setParameter(\"mes\", Integer.valueOf(mes));\r\n/* 188:247 */ query.setParameter(\"anio\", Integer.valueOf(anio));\r\n/* 189:248 */ query.setParameter(\"estadoAnulado\", Estado.ANULADO);\r\n/* 190:249 */ query.setParameter(\"idOrganizacion\", Integer.valueOf(idOrganizacion));\r\n/* 191: */ \r\n/* 192:251 */ return query.getResultList();\r\n/* 193: */ }", "private void tampil() {\n int row=tabmode.getRowCount();\n for (int i=0;i<row;i++){\n tabmode.removeRow(0);\n }\n try {\n Connection koneksi=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/medica\",\"root\",\"\");\n ResultSet rs=koneksi.createStatement().executeQuery(\"select rawat_inap_bayi.no, pasien_bayi.tgl_lahir, rawat_inap_bayi.tgl_masuk, rawat_inap_bayi.tgl_pulang, rawat_inap_bayi.lama, kamar.nm_kamar, penyakit.nama_penyakit, dokter.nm_dokter, tindakan.nama_tindakan, rawat_inap_bayi.suhu_tubuh, rawat_inap_bayi.resusitas, rawat_inap_bayi.hasil, rawat_inap_bayi.keterangan, rawat_inap_bayi.apgar \"+\n \" from rawat_inap_bayi inner join pasien_bayi on rawat_inap_bayi.no_rm_bayi=pasien_bayi.no_rm_bayi inner join kamar on rawat_inap_bayi.kd_kamar=kamar.kd_kamar inner join penyakit on rawat_inap_bayi.kd_icd = penyakit.kd_icd inner join dokter on rawat_inap_bayi.kd_dokter = dokter.kd_dokter inner join tindakan on rawat_inap_bayi.kode_tindakan = tindakan.kode_tindakan \");\n while(rs.next()){\n String[] data={rs.getString(1),rs.getString(2),rs.getString(3),rs.getString(4),rs.getString(5),rs.getString(6),rs.getString(7),rs.getString(8),rs.getString(9),rs.getString(10),rs.getString(11),rs.getString(12),rs.getString(13),rs.getString(14)};\n tabmode.addRow(data);\n }\n } catch (SQLException ex) {\n System.out.println(ex);\n }\n \n }", "public RecordSet obtenerResumen(DTOResumen dtoe) throws MareException{\n UtilidadesLog.info(\"DAOParametrizacionCOB.obtenerResumen(DTOResumen dtoe): Entrada\");\n \n RecordSet rs = new RecordSet();\n StringBuffer query = new StringBuffer();\n BelcorpService bs;\n try\n { bs = BelcorpService.getInstance();\n }\n catch(MareMiiServiceNotFoundException ex)\n { throw new MareException(ex, UtilidadesError.armarCodigoError(CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE));\n } \n /*query.append(\" SELECT distinct p.IDPRINCIPAL AS OID,CONCAT(p.name,CONCAT(' ',CONCAT(pv.STRINGVALUE,CONCAT(' ',CONCAT(pv2.STRINGVALUE,CONCAT(' ',CONCAT(pv3.STRINGVALUE,CONCAT(' ',pv4.STRINGVALUE)))))))) NOMBRE, \");\n query.append(\" gen.VAL_I18N AS CANAL, \");\n query.append(\" sma.DES_MARC AS MARCA, \"); \n query.append(\" subvta.DES_SUBG_VENT AS SUBGERVENTA, \");\n query.append(\" gen2.VAL_I18N AS REGION, \");\n query.append(\" gen3.VAL_I18N AS ZONA, \");\n query.append(\" secc.DES_SECCI AS SECCION, \");\n query.append(\" gen5.VAL_I18N AS TERRITORIO \");\n query.append(\" FROM v_gen_i18n_sicc gen, \");\n query.append(\" v_gen_i18n_sicc gen2, \");\n query.append(\" v_gen_i18n_sicc gen3, \");\n query.append(\" v_gen_i18n_sicc gen5, \");\n query.append(\" seg_marca sma, \");\n query.append(\" zon_secci secc, \");\n query.append(\" cob_usuar_etapa_cobra_detal cdetal, \");\n query.append(\" zon_sub_geren_venta subvta, \");\n query.append(\" cob_usuar_etapa_cobra_cabec ccabe, \");\n query.append(\" cob_usuar_cobra usucob, \");\n query.append(\" own_mare.principals p, \");\n query.append(\" propertyvalues pv, \");\n query.append(\" propertyvalues pv2, \");\n query.append(\" propertyvalues pv3, \");\n query.append(\" propertyvalues pv4, \");\n query.append(\" own_mare.users u \");\n query.append(\" WHERE cdetal.zsgv_oid_subg_vent = subvta.oid_subg_vent \");\n query.append(\" AND ccabe.oid_usua_etap_cobr = cdetal.oid_usua_etap_cobr_deta \");\n query.append(\" AND secc.oid_secc(+) = cdetal.zscc_oid_secc \");\n query.append(\" AND sma.oid_marc = subvta.marc_oid_marc \");\n query.append(\" AND ccabe.usco_oid_usua_cobr = usucob.oid_usua_cobr \");\n query.append(\" AND gen.val_oid = subvta.cana_oid_cana \");\n query.append(\" AND gen.attr_enti = 'SEG_CANAL' \");\n query.append(\" AND gen.attr_num_atri = 1 \");\n query.append(\" AND gen.idio_oid_idio = '\" + dtoe.getOidIdioma() + \" ' \");\n query.append(\" AND pv.idproperty(+) = 2 \");\n query.append(\" AND pv.idprincipal(+) = p.idprincipal \");\n query.append(\" AND pv2.idproperty(+) = 3 \");\n query.append(\" AND pv2.idprincipal(+) = p.idprincipal \");\n query.append(\" AND pv3.idproperty = 5 \");\n query.append(\" AND pv3.idprincipal = p.idprincipal \");\n query.append(\" AND pv4.idproperty = 6 \");\n query.append(\" AND pv4.idprincipal = p.idprincipal \");\n query.append(\" AND gen2.val_oid(+) = '\" + dtoe.getOidIdioma() + \" ' \");\n query.append(\" AND gen2.attr_enti(+) = 'ZON_REGIO' \");\n query.append(\" AND gen2.attr_num_atri(+) = 1 \");\n query.append(\" AND gen2.idio_oid_idio(+) = '\" + dtoe.getOidIdioma() + \" ' \");\n query.append(\" AND gen3.val_oid(+) = cdetal.zzon_oid_zona \");\n query.append(\" AND gen3.attr_enti(+) = 'ZON_ZONA' \");\n query.append(\" AND gen3.attr_num_atri(+) = 1 \");\n query.append(\" AND gen3.idio_oid_idio(+) = '\" + dtoe.getOidIdioma() + \" ' \");\n query.append(\" AND gen5.val_oid(+) = cdetal.terr_oid_terr \");\n query.append(\" AND gen5.attr_enti(+) = 'ZON_TERRI' \");\n query.append(\" AND gen5.attr_num_atri(+) = 1 \");\n query.append(\" AND gen5.idio_oid_idio(+) = '\" + dtoe.getOidIdioma() + \" ' \");\n query.append(\" AND u.iduser = p.idprincipal \");\n query.append(\" AND p.idprincipal = ccabe.usco_oid_usua_cobr \");\n */\n \n /*query.append(\" SELECT distinct p.IDPRINCIPAL AS OID, \");\n query.append(\" p.name AS USUARIO, \");\n */\n //Se le agega \"p.IDPRINCIPAL,\" segun BELC300017927 \n //query.append(\" SELECT distinct p.name AS USUARIO, \"); \n query.append(\" SELECT distinct p.IDPRINCIPAL, p.name AS USUARIO, \");\n query.append(\" CONCAT(p.name,CONCAT(' ',CONCAT(pv.STRINGVALUE,CONCAT(' ',CONCAT(pv2.STRINGVALUE,CONCAT(' ',CONCAT(pv3.STRINGVALUE,CONCAT(' ',pv4.STRINGVALUE)))))))) NOMBRE, \");\n query.append(\" sma.DES_MARC AS MARCA, \");\n query.append(\" gen.VAL_I18N AS CANAL, \"); \n query.append(\" subvta.DES_SUBG_VENT AS SUBGERVENTA, \");\n query.append(\" regio.DES_REGI AS REGION, \");\n query.append(\" zona.DES_ZONA AS ZONA, \"); \n \t query.append(\" secc.DES_SECCI AS SECCION, \"); \n query.append(\" terri.COD_TERR AS TERRITORIO \");\n query.append(\" FROM v_gen_i18n_sicc gen, \");\n query.append(\" SEG_CANAL canal, \");\n query.append(\" ZON_TERRI terri, \");\n query.append(\" ZON_ZONA zona, \");\n query.append(\" ZON_REGIO regio, \");\n query.append(\" seg_marca sma, \");\n query.append(\" zon_secci secc, \");\n query.append(\" cob_usuar_etapa_cobra_detal cdetal, \");\n query.append(\" zon_sub_geren_venta subvta, \");\n query.append(\" cob_usuar_etapa_cobra_cabec ccabe, \");\n query.append(\" cob_usuar_cobra usucob, \");\n query.append(\" principals p, \");\n query.append(\" propertyvalues pv, \");\n query.append(\" propertyvalues pv2, \");\n query.append(\" propertyvalues pv3, \");\n query.append(\" propertyvalues pv4, \");\n query.append(\" users u \");\n query.append(\" WHERE cdetal.zsgv_oid_subg_vent = subvta.oid_subg_vent \");\n query.append(\" AND ccabe.oid_usua_etap_cobr = cdetal.UECC_OID_USUA_ETAP_COBR \");\n query.append(\" AND secc.oid_secc(+) = cdetal.zscc_oid_secc \");\n query.append(\" AND sma.oid_marc = subvta.marc_oid_marc \");\n query.append(\" AND ccabe.usco_oid_usua_cobr = usucob.oid_usua_cobr \");\n query.append(\" AND gen.val_oid = subvta.cana_oid_cana \");\n query.append(\" AND gen.attr_enti = 'SEG_CANAL' \");\n query.append(\" AND gen.attr_num_atri = 1 \");\n query.append(\" AND gen.idio_oid_idio = '1' \");\n query.append(\" AND pv.idproperty(+) = 2 \");\n query.append(\" AND pv.idprincipal(+) = p.idprincipal \");\n query.append(\" AND pv2.idproperty(+) = 3 \");\n query.append(\" AND pv2.idprincipal(+) = p.idprincipal \");\n query.append(\" AND pv3.idproperty = 5 \");\n query.append(\" AND pv3.idprincipal = p.idprincipal \");\n query.append(\" AND pv4.idproperty = 6 \");\n query.append(\" AND pv4.idprincipal = p.idprincipal \t\t \");\n query.append(\" AND terri.OID_TERR = cdetal.terr_oid_terr\t\t \");\n query.append(\" AND zona.OID_ZONA = cdetal.zzon_oid_zona\t\t \");\n query.append(\" AND regio.OID_REGI = cdetal.ZORG_OID_REGI\t\t \");\n query.append(\" AND u.iduser = p.idprincipal \");\n query.append(\" AND p.idprincipal = usucob.USER_OID_USUA_COBR \");\n \n /* Validaciones */\n if( dtoe.getOidMarca()!= null ){\n query.append(\" AND subvta.MARC_OID_MARC = \" + dtoe.getOidMarca() );\n }\n if( dtoe.getOidCanal() != null){\n query.append(\" AND subvta.CANA_OID_CANA = \" + dtoe.getOidCanal() );\n }\n if( dtoe.getOidSGV() != null ){\n query.append(\" AND subvta.OID_SUBG_VENT = \" + dtoe.getOidSGV() );\n }\n if( dtoe.getOidRegion() != null ){\n query.append(\" AND cdetal.ZORG_OID_REGI = \" + dtoe.getOidRegion() ); \n }\n if( dtoe.getOidZona() != null ){\n query.append(\" AND cdetal.ZZON_OID_ZONA = \" + dtoe.getOidZona() ); \n }\n if( dtoe.getOidSeccion() != null ){\n query.append(\" AND cdetal.ZSCC_OID_SECC = \" + dtoe.getOidSeccion() );\n }\n if( dtoe.getOidTerritorio() != null ){\n query.append(\" AND cdetal.TERR_OID_TERR = \" + dtoe.getOidTerritorio() );\n }\n UtilidadesLog.debug(\"query \" + query.toString() );\n try \n { rs = bs.dbService.executeStaticQuery(query.toString());\n }\n catch (Exception ex) \n { throw new MareException(ex, UtilidadesError.armarCodigoError(CodigosError.ERROR_DE_ACCESO_A_BASE_DE_DATOS));\n }\t\n \n UtilidadesLog.info(\"DAOParametrizacionCOB.obtenerResumen(DTOResumen dtoe): Salida\");\n \n return rs; \n }", "private boolean generarEgresoMercaderiaReservada(java.sql.Connection conExt, int CodEmp,int CodLoc,int CodCot){\n boolean blnRes=false;\n java.sql.Statement stmLoc;\n java.sql.ResultSet rstLoc;\n ArrayList arlResDat, arlResReg;\n try{\n if(conExt!=null){\n stmLoc=conExt.createStatement();\n arlResDat = new ArrayList();\n strSql=\"\";\n strSql+=\" SELECT a1.co_emp, a1.co_loc, a1.co_cot, a2.co_reg, a2.co_itm, a2.co_bod, a2.nd_can, \\n\";\n strSql+=\" CASE WHEN a3.nd_cosUni IS NULL THEN 0 ELSE a3.nd_cosUni END as nd_cosUni,a4.co_seg \";\n strSql+=\" ,a2.tx_nomItm \\n\";\n strSql+=\" FROM tbm_cabCotVen as a1 \\n\";\n strSql+=\" INNER JOIN tbm_detCotVen as a2 ON (a1.co_emp=a2.co_emp AND a1.co_loc=a2.co_loc AND a1.co_cot=a2.co_cot) \\n\";\n strSql+=\" INNER JOIN tbm_inv as a3 ON (a2.co_emp=a3.co_emp AND a2.co_itm=a3.co_itm) \\n\";\n strSql+=\" INNER JOIN tbm_cabSegMovInv as a4 ON (a1.co_emp=a4.co_empRelCabCotVen AND a1.co_loc=a4.co_locRelCabCotVen AND \\n\";\n strSql+=\" a1.co_cot=a4.co_cotRelCabCotVen) \\n\";\n strSql+=\" WHERE a1.co_emp=\"+CodEmp+\" and a1.co_loc=\"+CodLoc+\" and a1.co_cot=\"+CodCot+\" and a3.st_ser='N' \\n\";\n strSql+=\" ORDER BY a1.co_emp, a1.co_loc, a1.co_cot, a2.co_reg \\n\";\n System.out.println(\"generarEgresoMercaderiaReservada \" + strSql);\n rstLoc = stmLoc.executeQuery(strSql);\n while(rstLoc.next()){\n arlResReg = new ArrayList();\n arlResReg.add(INT_ARL_DAT_COD_EMP, rstLoc.getInt(\"co_emp\"));\n arlResReg.add(INT_ARL_DAT_COD_LOC, rstLoc.getInt(\"co_loc\"));\n arlResReg.add(INT_ARL_DAT_COD_BOD_EMP, rstLoc.getInt(\"co_bod\"));\n arlResReg.add(INT_ARL_DAT_COD_ITM_EMP, rstLoc.getInt(\"co_itm\"));\n arlResReg.add(INT_ARL_DAT_CAN, rstLoc.getDouble(\"nd_can\"));\n arlResReg.add(INT_ARL_DAT_COS_UNI, rstLoc.getDouble(\"nd_cosUni\"));\n arlResReg.add(INT_ARL_DAT_COD_SEG, rstLoc.getInt(\"co_seg\"));\n arlResReg.add(INT_ARL_DAT_COD_REG, rstLoc.getInt(\"co_reg\"));\n arlResReg.add(INT_ARL_DAT_NOM_ITM, rstLoc.getString(\"tx_nomItm\"));\n arlResDat.add(arlResReg);\n }\n rstLoc.close();\n rstLoc=null;\n stmLoc.close();\n stmLoc=null;\n if(!arlResDat.isEmpty()){\n ZafGenDocIngEgrInvRes objGenDocIngEgrInvRes = new ZafGenDocIngEgrInvRes(objParSis,this);\n if(objGenDocIngEgrInvRes.GenerarDocumentoIngresoEgresoReservas(conExt, datFecAux, arlResDat, 1)){\n blnRes=true;\n }\n }\n }\n }\n catch (java.sql.SQLException e) { \n blnRes = false;\n objUti.mostrarMsgErr_F1(this, e); \n }\n catch (Exception Evt) {\n blnRes = false;\n objUti.mostrarMsgErr_F1(this, Evt);\n }\n return blnRes;\n }", "public void llenadoDeTablas() {\n /**\n *\n * creaccion de la tabla de de titulos \n */\n DefaultTableModel modelo = new DefaultTableModel();\n modelo.addColumn(\"ID Bitacora\");\n modelo.addColumn(\"Usuario\");\n modelo.addColumn(\"Fecha\");\n modelo.addColumn(\"Hora\");\n modelo.addColumn(\"Ip\");\n modelo.addColumn(\"host\");\n \n modelo.addColumn(\"Accion\");\n modelo.addColumn(\"Codigo Aplicacion\");\n modelo.addColumn(\"Modulo\");\n /**\n *\n * instaciamiento de las las clases Bitacora y BiracoraDAO\n * intaciamiento de la clases con el llenado de tablas\n */\n BitacoraDao BicDAO = new BitacoraDao();\n List<Bitacora> usuario = BicDAO.select();\n JtProductos1.setModel(modelo);\n String[] dato = new String[9];\n for (int i = 0; i < usuario.size(); i++) {\n dato[0] = usuario.get(i).getId_Bitacora();\n dato[1] = usuario.get(i).getId_Usuario();\n dato[2] = usuario.get(i).getFecha();\n dato[3] = usuario.get(i).getHora();\n dato[4] = usuario.get(i).getHost();\n dato[5] = usuario.get(i).getIp();\n dato[6] = usuario.get(i).getAccion();\n dato[7] = usuario.get(i).getCodigoAplicacion();\n dato[8] = usuario.get(i).getModulo();\n \n //System.out.println(\"vendedor:\" + vendedores);\n modelo.addRow(dato);\n }}", "public boolean insertarNuevoClienteCA(Cliente cliente, List<Cuenta> listaCuentas) {\n String queryDividido1 = \"INSERT INTO Usuario(Codigo, Nombre, DPI, Direccion, Sexo, Password, Tipo_Usuario) \"\n + \"VALUES(?,?,?,?,?,aes_encrypt(?,'AES'),?)\";\n\n String queryDividido2 = \"INSERT INTO Cliente(Usuario_Codigo, Nombre, Nacimiento, DPI_Escaneado, Estado) \"\n + \"VALUES(?,?,?,?,?)\";\n \n String queryDividido3 = \"INSERT INTO Cuenta(No_Cuenta, Fecha_Creacion, Saldo_Cuenta, Cliente_Usuario_Codigo) \"\n + \"VALUES(?,?,?,?)\";\n int codigoCliente = cliente.getCodigo();\n try {\n\n PreparedStatement enviarDividido1 = Conexion.conexion.prepareStatement(queryDividido1);\n\n //Envio de los Datos Principales del cliente a la Tabla Usuario\n enviarDividido1.setInt(1, cliente.getCodigo());\n enviarDividido1.setString(2, cliente.getNombre());\n enviarDividido1.setString(3, cliente.getDPI());\n enviarDividido1.setString(4, cliente.getDireccion());\n enviarDividido1.setString(5, cliente.getSexo());\n enviarDividido1.setString(6, cliente.getPassword());\n enviarDividido1.setInt(7, 3);\n enviarDividido1.executeUpdate();\n\n //Envia los Datos Complementarios del Usuario a la tabla cliente\n PreparedStatement enviarDividido2 = Conexion.conexion.prepareStatement(queryDividido2);\n enviarDividido2.setInt(1, cliente.getCodigo());\n enviarDividido2.setString(2, cliente.getNombre());\n enviarDividido2.setString(3, cliente.getNacimiento());\n enviarDividido2.setBlob(4, cliente.getDPIEscaneado());\n enviarDividido2.setBoolean(5, cliente.isEstado());\n enviarDividido2.executeUpdate();\n \n //Envia los Datos de la Cuenta Adjudicada al Cliente\n PreparedStatement enviarDividido3 = Conexion.conexion.prepareStatement(queryDividido3);\n\n //Envio de los Datos Principales de una Cuenta a la Tabla Cuenta, perteneciente a un cliente en Especifico\n //Considerando que el cliente puede tener mas de una cuenta\n for (Cuenta cuenta : listaCuentas) {\n \n enviarDividido3.setInt(1, cuenta.getNoCuenta());\n enviarDividido3.setString(2, cuenta.getFechaCreacion());\n enviarDividido3.setDouble(3, cuenta.getSaldo());\n enviarDividido3.setInt(4, codigoCliente);\n enviarDividido3.executeUpdate();\n }\n \n return true;\n\n } catch (SQLException ex) {\n ex.printStackTrace(System.out);\n return false;\n }\n\n }", "public void obrir() throws SQLException {\n\t\tbdClimb = dbHelper.getWritableDatabase();\n\t}", "public void prepararDados() {\n\t\tatribuiPrimeiroAnoCasoAnoEstejaNulo();\n\t\t\n\t\tsalvarOuAtualizar(alunosMilitarPraca);\n\t\tsalvarOuAtualizar(alunosMilitarOficial);\n\t\t\n\t\tinit();\n\t\thabilitaBotao=false;\n\t}", "public void CadastrarPassageiro(Connection con, List<Bilhetes> temporaria) {\n\t\t\n\t\ttry {\n\t\t\n\t\t\tstmt = con.prepareStatement(\"Select cpf from passageiro where cpf = ?\");\n\t\t\t\n\t\t\tstmt.setString(1, temporaria.get(0).getBilhete().get(0).getCpf() );\n\t\t\tstmt.execute();\n\t\t\t\n\t\t\trs=stmt.getResultSet();\n\t\t\t\n\t\t\tif(rs.next())\n\t\t\t{\n\t\t\t\t\n\t\t\t\tJOptionPane.showMessageDialog(null, \"ERRO: CPF JA CADASTRADO\", \"Erro CADASTRO\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tstmt = con.prepareStatement(\n\t\t\t\t\t\" insert into BILHETES (Destino,Origem,Hpartida, Hembarque,Poltrona) values(?,?,?,?,NULL)\");\n\n\t\t\tstmt.setString(1, temporaria.get(0).getDestino());\n\t\t\tstmt.setString(2, temporaria.get(0).getOrigem());\n\t\t\tstmt.setString(3, temporaria.get(0).getHora_partida());\n\t\t\tstmt.setString(4, temporaria.get(0).getHora_embarque());\n\n\t\t\tstmt.execute();\n\n\t\t\tstmt = con.prepareStatement(\"select IDBILHETE FROM BILHETES WHERE poltrona is null \");\n\n\t\t\tstmt.execute();\n\n\t\t\trs = stmt.getResultSet();\n\n\t\t\twhile (rs.next()) {\n\t\t\t\tint idbilhete = rs.getInt(1);\n\t\t\t\ttemporaria.get(0).setIdbilhete(idbilhete);\n\t\t\t}\n\n\t\t\tstmt = con.prepareStatement(\"insert into Passageiro(nome,cpf,ID_BILHETE) values(?,?,?)\");\n\n\t\t\tstmt.setString(1, temporaria.get(0).getBilhete().get(0).getNome());\n\t\t\tstmt.setString(2, temporaria.get(0).getBilhete().get(0).getCpf());\n\t\t\tstmt.setInt(3, temporaria.get(0).getIdbilhete());\n\n\t\t\tstmt.execute();\n\n\t\t\t// VOLTANDO A CADEIRA PARA 0, PARA EVITAR ERRO NOS PROXIMOS USUARIOS CADASTRADOS\n\t\t\tstmt = con.prepareStatement(\"UPDATE BILHETES SET POLTRONA = 0 WHERE POLTRONA IS NULL\");\n\n\t\t\tstmt.execute();\n\n\t\t\t// Teste\n\n\t\t\tString nome = temporaria.get(0).getBilhete().get(0).getNome();\n\t\t\tString cpf = temporaria.get(0).getBilhete().get(0).getCpf();\n\n\t\t\tString destino = temporaria.get(0).getDestino();\n\t\t\tString Origem = temporaria.get(0).getOrigem();\n\n\t\t\tString hora_EMBARQUE = temporaria.get(0).getHora_embarque();\n\n\t\t\tString horasaida = temporaria.get(0).getHora_partida();\n\n\t\t\t// Instanciando valores\n\t\t\tBilhetes passagem = new Bilhetes(temporaria.get(0).getIdbilhete(), Origem, destino, hora_EMBARQUE,\n\t\t\t\t\thorasaida, null, 0);\n\n\t\t\tpassagem.adicionar(new Passageiro(nome, cpf));\n\n\t\t\tpassageiro.add(passagem);\n\n\t\t\t// Fim do teste antes do filme\n\n\t\t\tJOptionPane.showMessageDialog(null, \"Passageiro Cadastrado Com sucesso\");\n\n\t\t\tJOptionPane.showMessageDialog(null,\"CODIGO LOCALIZADOR DO BILHETE: \" + temporaria.get(0).getIdbilhete(),\" NÃO PERCA\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\n\t\n\t\t\t\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tJOptionPane.showMessageDialog(null, \"ERRO: CPF JA CADASTRADO\", \"Erro CADASTRO\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\n\n\t\t}\n\n\t}", "public void executar() {\n\t\tSystem.out.println(dao.getListaPorNome(\"abacatão\"));\n\t}", "private PreparedStatement prepareClientes(Connection conn, String data) throws ParseException, SQLException\n\t{\n\t\t\n\t\tPreparedStatement result = null;\n\t\t\n\t\t//Parametros 1 e 6: Data de execucao atual\n\t\tSimpleDateFormat conversorData = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\tDate dataExecucao = conversorData.parse(data);\n\t\t//Parametro 2: Ano e mes da execucao\n\t\tSimpleDateFormat conversorDatMes = new SimpleDateFormat(\"yyMM\");\n\t\tString datMes = conversorDatMes.format(mesAnterior(dataExecucao));\n\t\t//Parametro 3: Tipo de transacao da promocao PulaPula\n\t\tString tipoTransacao = TIPO_TRANSACAO_PULA_PULA;\n\t\t//Parametros 4 e 7: Primeiro dia do mes da execucao\n\t\tDate dataInicioMesExecucao = getPrimeiroDiaMes(dataExecucao);\n\t\t//Parametro 5: Primeiro dia do mes posterior ao da execucao\n\t\tDate dataInicioProxMes = getPrimeiroDiaMes(proximoMes(dataExecucao));\n\t\t//Parametro 8: Ultimo dia do mes da execucao\n\t\tDate dataFimMesExecucao = getUltimoDiaMes(dataExecucao);\n\n\t\tString sqlClientes = getQuerySelecaoClientes();\n\t\tresult = conn.prepareStatement(sqlClientes);\n\t\tresult.setDate (1, new java.sql.Date(dataExecucao.getTime()));\n\t\tresult.setString(2, datMes);\n\t\tresult.setString(3, tipoTransacao);\n\t\tresult.setDate (4, new java.sql.Date(dataInicioMesExecucao.getTime()));\n\t\tresult.setDate (5, new java.sql.Date(dataInicioProxMes.getTime()));\n\t\tresult.setDate (6, new java.sql.Date(dataExecucao.getTime()));\n\t\tresult.setDate (7, new java.sql.Date(dataInicioMesExecucao.getTime()));\n\t\tresult.setDate (8, new java.sql.Date(dataFimMesExecucao.getTime()));\n\t\t\n\t\treturn result;\n\t}", "@Override\n\tpublic DatosEnc obtenerDatos(DatosEnc datos) {\n\t\tConnection con = null;\n\t\tCallableStatement stmt = null;\n//\t\tPreparedStatement ps = null;\n\t\tResultSet rs = null;\n\t\ttry{\n//\t\t\tcon = new ConectarDB().getConnection();\n//\t\t\tString query = \"select * from pv_cotizaciones_det where no_cotizacion = ?\";\n//\t\t\tps = con.prepareStatement(query);\n//\t\t\tps.setString(1, datos.getNoDocumento());\n//\t\t\trs = ps.executeQuery();\n//\t\t\texiste=0;\n//\t\t\twhile(rs.next()){\n//\t\t\t\tif(rs.getString(\"no_cotizacion\") == null){\n//\t\t\t\t\texiste=0;\n//\t\t\t\t}else if(rs.getString(\"no_cotizacion\").equals(datos.getNoDocumento())){\n//\t\t\t\t\texiste=1;\n//\t\t\t\t}\n//\t\t\t}\n//\t\t\tcon.close();\n//\t\t\tps.close();\n//\t\t\trs.close();\n//\t\t\tif(existe==0){\n\t\t\t\tcon = new ConectarDB().getConnection();\n\t\t\t\tstmt = con.prepareCall(\"{call stp_UDPV_InUp_Mov_Enc(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}\");\n\t\t\t\tstmt.setString(1, datos.getCodigoCliente());\n\t\t\t\tstmt.setString(2, datos.getNit());\n\t\t\t\tstmt.setString(3, datos.getNombreCliente());\n\t\t\t\tstmt.setString(4, datos.getDirecFactura());\n\t\t\t\tstmt.setString(5, datos.getTel());\n\t\t\t\tstmt.setString(6, datos.getTarjeta());\n\t\t\t\tstmt.setString(7, datos.getDirecEnvio());\n\t\t\t\tstmt.setString(8, datos.getCodigoVendedor());\n\t\t\t\tstmt.setString(9, datos.getUsername());\n\t\t\t\tstmt.setString(10, datos.getTipoDocumento());\n\t\t\t\tstmt.setString(11, datos.getNoDocumento());\n\t\t\t\tstmt.setString(12, datos.getFechaVence());\n\t\t\t\tstmt.setString(13, datos.getTipoPago());\n\t\t\t\tstmt.setString(14, datos.getTipoCredito());\n\t\t\t\tstmt.setString(15, datos.getAutoriza());\n\t\t\t\tstmt.setString(16, datos.getFechaDocumento());\n\t\t\t\tstmt.setString(17, datos.getCargosEnvio());\n\t\t\t\tstmt.setString(18, datos.getOtrosCargos());\n\t\t\t\tstmt.setString(19, datos.getMontoVenta());\n\t\t\t\tstmt.setString(20, datos.getMontoTotal());\n\t\t\t\tstmt.setString(21, datos.getSerieDev());\n\t\t\t\tstmt.setString(22, datos.getNoDocDev());\n\t\t\t\tstmt.setString(23, datos.getObservaciones());\n\t\t\t\tstmt.setString(24, datos.getTipoNota());\n\t\t\t\tstmt.setString(25, datos.getCaja());\n\t\t\t\tstmt.setString(26, datos.getFechaEntrega());\n\t\t\t\tstmt.setString(27, datos.getCodigoDept());\n\t\t\t\tstmt.setString(28, datos.getCodGen());\n\t\t\t\tstmt.setString(29, datos.getNoConsigna());\n\t\t\t\tstmt.setString(30, datos.getCodMovDev());\n\t\t\t\tstmt.setString(31, datos.getGeneraSolicitud());\n\t\t\t\tstmt.setString(32, datos.getTipoPagoNC());\n\t\t\t\tstmt.setString(33, datos.getTipoCliente());\n\t\t\t\tstmt.setString(34, datos.getCodigoNegocio());\n\t\t\t\tstmt.setString(35, datos.getCantidadDevolver());\n\t\t\t\tstmt.setString(36, datos.getAutorizoDespacho());\n\t\t\t\tstmt.setString(37, datos.getSaldo());\n\t\t\t\trs = stmt.executeQuery();\n\t\t\t\t\n\t\t\t\twhile(rs.next()){\n\t\t\t\t\tif(rs.getString(1)!=null){\n\t\t\t\t\t\tdatos.setSerieEnc(rs.getString(1));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tdatos.setSerieEnc(\"NA\");\n\t\t\t\t\t}\n\t\t\t\t\tdatos.setNoEnc(rs.getString(2));\n//\t\t\t\t\tif(rs.getString(1)!=null){\n//\t\t\t\t\t\tdatos.setSerieEnc(rs.getString(1));\n//\t\t\t\t\t}else{\n//\t\t\t\t\t\tdatos.setSerieEnc(\"NA\");\n//\t\t\t\t\t}\n//\t\t\t\t\tdatos.setNoEnc(rs.getString(2));\n//\t\t\t\t\tdocumento = rs.getInt(2);\n\t\t\t\t}\n\t\t\t\tcon.close();\n\t\t\t\tstmt.close();\n\t\t\t\trs.close();\n//\t\t\t}\n\t\t\t\n\t\t\t\n//\t\t\tcon = new ConectarDB().getConnection();\n//\t\t\tstmt = con.prepareCall(\"{call stp_UDPV_Del_Mov_Det(?,?,?)}\");\n//\t\t\tstmt.setInt(1, Integer.parseInt(datos.getTipoDocumento()));\n//\t\t\tstmt.setString(2, \"\");\n//\t\t\tstmt.setInt(3, documento);\n//\t\t\trs = stmt.executeQuery();\n//\t\t\t\n//\t\t\twhile(rs.next()){\n//\t\t\t\tSystem.out.println(rs.getString(\"limpiado\"));\n//\t\t\t}\n//\t\t\tcon.close();\n//\t\t\tstmt.close();\n//\t\t\trs.close();\n\t\t\t\n//\t\t\tcon = new ConectarDB().getConnection();\n//\t\t\tstmt = con.prepareCall(\"{call stp_udpv_VerificaCotiza(?,?)}\");\n//\t\t\tstmt.setString(1, \"\");\n//\t\t\tstmt.setInt(2, documento);\n//\t\t\trs = stmt.executeQuery();\n//\t\t\t\n//\t\t\twhile(rs.next()){\n//\t\t\t\tSystem.out.println(rs.getString(\"error\"));\n//\t\t\t}\n//\t\t\tcon.close();\n//\t\t\tstmt.close();\n//\t\t\trs.close();\n\t\t\t\n\t\t}catch(SQLException e ){\n\t\t\tSystem.out.println(\"Error Enc: \" + e.getMessage());\n\t\t}\n\t\treturn datos;\n\t}", "private String getConsulta(int indice) {\r\n\t\tString sql = \"\";\r\n\t\tStringBuffer variables = new StringBuffer();\r\n\t\tinParams = ((TxParams)todo.get(indice)).getParams().entrada;\r\n\t\toutParams = ((TxParams)todo.get(indice)).getParams().salida;\r\n\t\tif ((inParams == null || inParams.size() == 0) && (outParams == null || outParams.size() == 0))\r\n\t\t\tsql = \"{call \" + consultas[indice] + \"}\";\r\n\t\telse {\r\n\t\t\t//Por cada parametro de entrada corresponde un ?\r\n\t\t\t//Ojo que tambien hay que considerar los de salida si es necesario\r\n\t\t\t//pero no esta cubierto en esta primera etapa\r\n\t\t\tif (inParams != null) {\r\n\t\t\t\tfor (int i = 0; i < inParams.size(); i++)\r\n\t\t\t\t\tvariables.append(\"?,\");\r\n\t\t\t}\r\n\t\t\tif (outParams != null) {\r\n\t\t\t\tfor (int i = 0; i < outParams.size(); i++)\r\n\t\t\t\t\tvariables.append(\"?,\");\r\n\t\t\t}\r\n\t\t\tString listaVars = variables.toString();\r\n\t\t\tlistaVars = listaVars.substring(0, listaVars.length() - 1);\r\n\t\t\tsql = \"{call \" + consultas[indice] + \"(\" + listaVars + \")}\";\r\n\t\t}\r\n\t\treturn sql;\r\n\t}", "public static PreparedStatement crearDeclaracionPreparada(java.sql.Connection conexion, ArrayList<String> datos, String orden){\n try {\n PreparedStatement dp = null;\n dp = conexion.prepareStatement(orden); //asignamos el select que trae el String orden \n int esUnEntero;\n for(int i = 1; i <= datos.size(); i++){//asignamos los valores del arrayList datos en cada campo del select\n String aux = null; \n esUnEntero = isEntero(datos.get(i - 1));//Revisamos si la cadena de datos.get(i) es un entero\n switch(esUnEntero){\n case 1: //Cuando es 1 significa que el dato dentro de datos.get(i) es un entero, por tanto se rellena el campo como tal\n aux = datos.get(i - 1);\n dp.setInt(i, Integer.parseInt(aux)); \n break;\n case 0://Cuando es 0 significa que no es un entero y se rellena el campo como String\n aux = datos.get(i - 1);\n dp.setString(i, aux);\n break;\n } \n }\n return dp;\n } catch (SQLException ex) {\n System.out.println(\"\\n\\n\\n\"+ex); //Imprimimos el error en consola en caso de fallar \n } \n return null;\n }", "public void selecteazaComanda()\n {\n for(String[] comanda : date) {\n if (comanda[0].compareTo(\"insert client\") == 0)\n clientBll.insert(idClient++, comanda[1], comanda[2]);\n else if (comanda[0].compareTo(\"insert product\") == 0)\n {\n Product p = productBll.findProductByName(comanda[1]);\n if(p!=null)//daca produsul exista deja\n productBll.prelucreaza(p.getId(), comanda[1], Float.parseFloat(comanda[2]), Float.parseFloat(comanda[3]));\n else\n productBll.prelucreaza(idProduct++, comanda[1], Float.parseFloat(comanda[2]), Float.parseFloat(comanda[3]));\n\n }\n else if (comanda[0].contains(\"delete client\"))\n clientBll.sterge(comanda[1]);\n else if (comanda[0].contains(\"delete product\"))\n productBll.sterge(comanda[1]);\n else if (comanda[0].compareTo(\"order\")==0)\n order(comanda);\n else if (comanda[0].contains(\"report\"))\n report(comanda[0]);\n }\n }", "private DAOOfferta() {\r\n\t\ttry {\r\n\t\t\tClass.forName(driverName);\r\n\r\n\t\t\tconn = getConnection(usr, pass);\r\n\r\n\t\t\tps = conn.prepareStatement(createQuery);\r\n\r\n\t\t\tps.executeUpdate();\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ConnectionException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\t/*closeResource()*/;\r\n\t\t}\r\n\t}", "public static void main(String[]args) {PostagemDAO pDAO = new PostagemDAO();\n////\t\tPostagem postagem = new Postagem();\n////\t\tString s = \"1999-3-9\";\n////\t\tDate data = Date.valueOf(s);\n////\t\tpostagem.setDescPostagem(\"john johnes\");\n////\t\tpostagem.setDataPostagem(data);\n////\t\tpDAO.inserirPostagem(postagem);\n//\t\t\n////\t\tImagensDAO iDAO = new ImagensDAO();\n////\t\tImagens imagens = new Imagens();\n////\t\t\n////\t\timagens.setTipoImagem((short)2);\n////\t\timagens.setArquivoImagem(\"busato\");\n////\t\tiDAO.inserirImagem(imagens);\n//\t\t\n//\t\tUsuarioDAO uDAO = new UsuarioDAO();\n//\t\tUsuario usuario = new Usuario();\n//\t\t\n////\t\tusuario.setEmail(\"sadasda\");\n////\t\tusuario.setNickname(\"sdasdasae\");\n////\t\tusuario.setSenha(\"12345\");\n////\t\tusuario.setSteamid(31231231);\n////\t\tusuario.setFotoPerfil(\"FOTO\");\n////\t\tuDAO.cadastrar(usuario);\n//\t\t\n//\t\t\n//\t\tComentariosDAO cDAO = new ComentariosDAO();\n//\t\tComentarios comentarios = new Comentarios();\n//\t\t\n//\t\tcomentarios.setCorpoComentario(\"comentario comentado\");\n//\t\tcomentarios.setDataComentario(Date.valueOf(\"2018-03-09\"));\n//\t\tcDAO.inserirComentarios(comentarios);\n//\t\t\n//\t\tSystem.out.println(\"sera que comitou\");\n//\t\t\n\t\t\n\t\tPostagem postagem = new Postagem();\n\t\tpostagem.setDescPostagem(\"Uma formiguinha subindo pela parede\");\n\t\tpostagem.setTituloPostagem(\"Formiguinha\");\n\t\t\n\t\tPostagemDAO poDAO = new PostagemDAO();\n\t\tpostagem = poDAO.inserirPostagem(postagem);\n\t\t\n\t\tSystem.out.println(postagem.getIdPostagem());\n\t\t\n\t}", "private void cargarTipEmp(java.sql.Connection conn, java.sql.ResultSet rstExt) {\r\n Statement stmTipEmp;\r\n ResultSet rstEmp;\r\n String sSql;\r\n try {\r\n if (conn != null) {\r\n stmTipEmp = conn.createStatement();\r\n sSql = \"select b.co_tipper , b.tx_descor , round(a.nd_ivaVen,2) as porIva , bod.co_bod, a1.tx_dir, a1.tx_nom as nombod FROM tbm_emp as a \"\r\n + \" left join tbm_tipper as b on(b.co_emp=a.co_emp and b.co_tipper=a.co_tipper)\"\r\n + \" left join tbr_bodloc as bod on(bod.co_emp=a.co_emp and bod.co_loc=\" + rstExt.getString(\"co_loc\") + \" and bod.st_reg='P') \"\r\n + \" inner join tbm_bod as a1 on (a1.co_emp=bod.co_emp and a1.co_bod=bod.co_bod ) \"\r\n + \" where a.co_emp=\" + rstExt.getString(\"co_emp\");\r\n rstEmp = stmTipEmp.executeQuery(sSql);\r\n if (rstEmp.next()) {\r\n strTipPer_emp = rstEmp.getString(\"tx_descor\");\r\n intCodBodPre = rstEmp.getInt(\"co_bod\");\r\n intCodTipPerEmp = rstEmp.getInt(\"co_tipper\");\r\n strNomBodPtaPar = rstEmp.getString(\"tx_dir\");\r\n strNomBodPrv = rstEmp.getString(\"nombod\");\r\n bldivaEmp = objZafCtaCtb_dat.getPorIvaVen();\r\n dblPorIva = bldivaEmp;\r\n dblPorComSol = objZafCtaCtb_dat.getPorComSol();\r\n }\r\n rstEmp.close();\r\n stmTipEmp.close();\r\n stmTipEmp = null;\r\n rstEmp = null;\r\n }\r\n } \r\n catch (SQLException Evt) {\r\n objUti.mostrarMsgErr_F1(jifCnt, Evt);\r\n System.err.println(\"ERROR \" + Evt.toString());\r\n } \r\n catch (Exception Evt) {\r\n objUti.mostrarMsgErr_F1(jifCnt, Evt);\r\n System.err.println(\"ERROR \" + Evt.toString());\r\n }\r\n }", "public DefaultTableModel cargarDatos () {\r\n DefaultTableModel modelo = new DefaultTableModel(\r\n new String[]{\"ID SALIDA\", \"IDENTIFICACIÓN CAPITÁN\", \"NÚMERO MATRICULA\", \"FECHA\", \"HORA\", \"DESTINO\"}, 0); //Creo un objeto del modelo de la tabla con los titulos cargados\r\n String[] info = new String[6];\r\n String query = \"SELECT * FROM actividad WHERE eliminar = false\";\r\n try {\r\n Statement st = con.createStatement();\r\n ResultSet rs = st.executeQuery(query);\r\n while (rs.next()) { \r\n info[0] = rs.getString(\"id_salida\");\r\n info[1] = rs.getString(\"identificacion_navegate\");\r\n info[2] = rs.getString(\"numero_matricula\");\r\n info[3] = rs.getString(\"fecha\");\r\n info[4] = rs.getString(\"hora\");\r\n info[5] = rs.getString(\"destino\");\r\n Object[] fila = new Object[]{info[0], info[1], info[2], info[3], info[4], info[5]};\r\n modelo.addRow(fila);\r\n }\r\n st.close();\r\n rs.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(PActividad.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return modelo;\r\n }", "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 PreencherTabela() throws SQLException {\n try (Connection connection = ConnectionFactory.getConnection()) {\n String[] colunas = new String[]{\"ID\", \"Nome\", \"Nomenclatura\", \"Quantidade\"};\n ArrayList dados = new ArrayList();\n for (ViewProdutoPedido v : viewProdutoPedidos) {\n dados.add(new Object[]{v.getId(), v.getNome(), v.getNomenclatura(), v.getQuantidade()});\n }\n ModeloTabela modelo = new ModeloTabela(dados, colunas);\n jTableItensPedido.setModel(modelo);\n jTableItensPedido.setRowSorter(new TableRowSorter(modelo));\n jTableItensPedido.getColumnModel().getColumn(0).setPreferredWidth(2);\n jTableItensPedido.getColumnModel().getColumn(0).setResizable(false);\n jTableItensPedido.getColumnModel().getColumn(1).setPreferredWidth(20);\n jTableItensPedido.getColumnModel().getColumn(1).setResizable(false);\n jTableItensPedido.getColumnModel().getColumn(2).setPreferredWidth(20);\n jTableItensPedido.getColumnModel().getColumn(2).setResizable(false);\n jTableItensPedido.getColumnModel().getColumn(3).setPreferredWidth(20);\n jTableItensPedido.getColumnModel().getColumn(3).setResizable(false);\n\n }\n }", "public void esborrarRegistresTaulaNews() throws SQLException {\n bd.execSQL(\"DELETE FROM \" + BD_TAULA );\n\n }", "public void buscar() { // ATENCION tengo dudas con % telefono% no sale ningun resultado. si sale con telefono%\n String nombre = AgendarA.txtBNombre.getText();\n String apellidos = AgendarA.txtBApellidos.getText();\n String ciudad = AgendarA.txtBCiudad.getText();\n\n modeloagr = new DefaultTableModel(null, columnasAgr) {\n public boolean isCellEditable(int fila, int columna) {\n return false;\n }\n };\n if (AgendarA.chNombre.isSelected() == true && AgendarA.chApellidos.isSelected() == true && AgendarA.chCiudad.isSelected() == true) {\n if (!nombre.equals(\"\") && !apellidos.equals(\"\") && !ciudad.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,cedula,CONCAT(nombres,' ',apellidos),municipios.Nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE personalexterno.nombres LIKE '%\" + nombre + \"%' AND personalexterno.apellidos LIKE '%\" + apellidos + \"%' AND municipios.Nombre LIKE '%\" + ciudad + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY nombre\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else if (AgendarA.chNombre.isSelected() == true && AgendarA.chApellidos.isSelected() == true) {\n if (!nombre.equals(\"\") && !apellidos.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,cedula,CONCAT(nombres,' ',apellidos),municipios.Nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE personalexterno.nombres LIKE '%\" + nombre + \"%' AND personalexterno.Apellidos LIKE '%\" + apellidos + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY cedula\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else if (AgendarA.chNombre.isSelected() == true && AgendarA.chCiudad.isSelected() == true) {\n if (!nombre.equals(\"\") && !ciudad.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,nombre,CONCAT(nombres,' ',apellidos),municipios.Nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE municipios.Nombre LIKE '%\" + ciudad + \"%' AND personalexterno.nombres LIKE '%\" + nombre + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY cedula\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else if (AgendarA.chApellidos.isSelected() == true && AgendarA.chCiudad.isSelected() == true) {\n if (!apellidos.equals(\"\") && !ciudad.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,personalexterno.cedula,nombres,apellidos,municipios.Nombre FROM personalexterno,municipios WHERE municipios.Nombre LIKE '%\" + ciudad + \"%' AND personalexterno.apellidos LIKE '%\" + apellidos + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY cedula\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else if (AgendarA.chNombre.isSelected() == true) {\n if (!nombre.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,cedula,CONCAT(nombres,' ',apellidos),municipios.Nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE personalexterno.nombres LIKE '%\" + nombre + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY cedula\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else if (AgendarA.chApellidos.isSelected() == true) {\n if (!apellidos.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,cedula,CONCAT(nombres,' ',apellidos),municipios.Nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE personalexterno.apellidos LIKE '%\" + apellidos + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY cedula\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else if (AgendarA.chCiudad.isSelected() == true) {\n if (!ciudad.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,cedula,CONCAT(nombres,' ',apellidos),municipios.Nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE municipios.Nombre LIKE '%\" + ciudad + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY cedula\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else {\n JOptionPane.showMessageDialog(null, \"Ninguno de los campos de busqueda esta seleccionado\");\n }\n tbl.rowNumberTabel(AgendarA.tblAgricultor);\n //desactivar_checkbox();\n }", "public boolean insertarNuevoClienteVista(Cliente cliente, Cuenta cuenta) {\n \n String queryDividido1 = \"INSERT INTO Usuario(Codigo, Nombre, DPI, Direccion, Sexo, Password, Tipo_Usuario) \"\n + \"VALUES(?,?,?,?,?,aes_encrypt(?,'AES'),?)\";\n\n String queryDividido2 = \"INSERT INTO Cliente(Usuario_Codigo, Nombre, Nacimiento, DPI_Escaneado, Estado) \"\n + \"VALUES(?,?,?,?,?)\";\n \n String queryDividido3 = \"INSERT INTO Cuenta(No_Cuenta, Fecha_Creacion, Saldo_Cuenta, Cliente_Usuario_Codigo) \"\n + \"VALUES(?,?,?,?)\";\n \n \n try {\n\n PreparedStatement enviarDividido1 = Conexion.conexion.prepareStatement(queryDividido1);\n\n //Envio de los Datos Principales del cliente a la Tabla Usuario\n enviarDividido1.setInt(1, cliente.getCodigo());\n enviarDividido1.setString(2, cliente.getNombre());\n enviarDividido1.setString(3, cliente.getDPI());\n enviarDividido1.setString(4, cliente.getDireccion());\n enviarDividido1.setString(5, cliente.getSexo());\n enviarDividido1.setString(6, cliente.getPassword());\n enviarDividido1.setInt(7, 3);\n enviarDividido1.executeUpdate();\n\n //Envia los Datos Complementarios del Usuario a la tabla cliente\n PreparedStatement enviarDividido2 = Conexion.conexion.prepareStatement(queryDividido2);\n enviarDividido2.setInt(1, cliente.getCodigo());\n enviarDividido2.setString(2, cliente.getNombre());\n enviarDividido2.setString(3, cliente.getNacimiento());\n enviarDividido2.setBlob(4, cliente.getDPIEscaneado());\n enviarDividido2.setBoolean(5, cliente.isEstado());\n enviarDividido2.executeUpdate();\n \n //Envia los Datos de la Cuenta Adjudicada al Cliente\n PreparedStatement enviarDividido3 = Conexion.conexion.prepareStatement(queryDividido3);\n\n //Envio de los Datos Principales de una Cuenta a la Tabla Cuenta, perteneciente a un cliente en Especifico\n enviarDividido3.setInt(1, cuenta.getNoCuenta());\n enviarDividido3.setString(2, cuenta.getFechaCreacion());\n enviarDividido3.setDouble(3, cuenta.getSaldo());\n enviarDividido3.setInt(4, cliente.getCodigo());\n enviarDividido3.executeUpdate();\n \n \n return true;\n\n } catch (SQLException ex) {\n ex.printStackTrace(System.out);\n return false;\n }\n\n }", "public static void main(String[] args) {\n\n String select = \"select direccion from cliente where idCliente = 3;\", update;\n Connection conexion = BddConnection.newConexionPostgreSQL(\"Ventas\");\n PreparedStatement sentencia;\n Direccion dirCliente;\n ResultSet resul;\n\n try {\n sentencia = conexion.prepareStatement(select);\n resul = sentencia.executeQuery();\n if (resul.next()){\n dirCliente = Direccion.newInstance(resul.getString(1));\n dirCliente.getPoblacion().getProvincia().setProvincia(\"Granada update\");\n update = \"update cliente set direccion = \" + dirCliente.getStringTypeT_Direccion() + \" where idCliente = 3\";\n sentencia = conexion.prepareStatement(update);\n sentencia.executeUpdate();\n }\n resul.close();\n sentencia.close();\n conexion.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }" ]
[ "0.6641994", "0.63778603", "0.63439304", "0.62963235", "0.62673277", "0.62035954", "0.61967343", "0.6161779", "0.61455274", "0.61421907", "0.61407274", "0.613194", "0.61183405", "0.6088302", "0.6071661", "0.606708", "0.6049811", "0.6020285", "0.60082483", "0.5993581", "0.59921384", "0.59533054", "0.5949964", "0.5926647", "0.59130096", "0.58867776", "0.5885011", "0.58676624", "0.5862639", "0.58526707", "0.58520824", "0.5849597", "0.5834813", "0.58320224", "0.5799713", "0.5783547", "0.57766736", "0.57686484", "0.5765281", "0.5757147", "0.5752904", "0.5744891", "0.57302976", "0.5726314", "0.5723282", "0.57180166", "0.56998605", "0.56895643", "0.56879383", "0.5686298", "0.5686229", "0.566858", "0.5666709", "0.566652", "0.566624", "0.56604296", "0.565927", "0.56521416", "0.5646899", "0.5644413", "0.56432587", "0.56400096", "0.5632508", "0.5630415", "0.56191665", "0.56181026", "0.5615726", "0.56157", "0.56096566", "0.56014574", "0.55923694", "0.5587902", "0.55878747", "0.558116", "0.55783457", "0.5575893", "0.5575654", "0.55735385", "0.5568933", "0.55687445", "0.5560522", "0.5556897", "0.55562377", "0.55530614", "0.554608", "0.5542059", "0.5538703", "0.5534446", "0.55341494", "0.55299234", "0.55268353", "0.55226505", "0.552215", "0.55220187", "0.55200803", "0.55156165", "0.5515317", "0.5510434", "0.55038035", "0.55025244", "0.54924095" ]
0.0
-1
recebe dados dos estados do banco de dados. prepara a sql
public void carregaEstadoSelecionado(String nome) throws SQLException{ String sql = "SELECT * FROM tb_estados"; PreparedStatement preparador = Conexao.conectar().prepareStatement(sql); ResultSet rs = preparador.executeQuery(); //passando valores do banco para o objeto result; try{ while(rs.next()){ String list = rs.getString("uf"); //resgatando estado //popula combo_estadof com as informações colhidas cbUfEditar.addItem(list); } } catch (Exception e){ JOptionPane.showMessageDialog(null, "Impossivel carregar Estados!", "ERROR - ", JOptionPane.ERROR_MESSAGE); } cbUfEditar.setSelectedItem(nome); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Tablero consultarTablero();", "void LlenarModelo(){\n datos.addColumn(\"ID\");\n datos.addColumn(\"Descripcion\");\n datos.addColumn(\"Cantidad\");\n String []ingresar=new String[4];\n try {\n Connection con = Conexion.getConection();\n Statement estado = con.createStatement();\n //ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago where codigo>=\" + SIGEPSA.IDOtrosPagosMin + \";\");\n //ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago ;\");\n ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago where codigo<9 or codigo>10 and activo = 1;\");\n while(resultado.next()){\n ingresar[0]=String.valueOf((String)resultado.getObject(\"CODIGO\").toString());\n ingresar[1]=String.valueOf((String)resultado.getObject(\"DESCRIPCION\").toString());\n ingresar[2]=String.valueOf((String)resultado.getObject(\"CANTIDAD\").toString());\n datos.addRow(ingresar);\n }\n }catch (Exception ex) {\n \n }\n }", "public void refresh() {\n String sql = \"\";\n sql += \"select m.id\"\n + \", m.data\"\n + \", CAST(CONCAT(dep.nome, ' [', dep.id, ']') AS CHAR(50)) as deposito\"\n + \", cau.descrizione as causale\"\n + \", m.articolo\"\n + \", if (cau.segno = -1 , -m.quantita, m.quantita) as quantita\"\n + \", m.note\"\n + \", cast(concat(IF(m.da_tipo_fattura = 7, 'Scontr.', \"\n + \" IF(m.da_tabella = 'test_fatt', 'Fatt. Vend.', \"\n + \" IF(m.da_tabella = 'test_ddt', 'DDT Vend.',\"\n + \" IF(m.da_tabella = 'test_fatt_acquisto', 'Fatt. Acq.',\"\n + \" IF(m.da_tabella = 'test_ddt_acquisto', 'DDT Acq.', m.da_tabella)))))\"\n + \" , da_serie, ' ', da_numero, '/', da_anno, ' - [ID ', da_id, ']') as CHAR)as origine\"\n // + \", m.da_tabella\"\n // + \", m.da_anno\"\n // + \", m.da_serie\"\n // + \", m.da_numero\"\n // + \", m.da_id\"\n + \", m.matricola\"\n + \", m.lotto\"\n + \", a.codice_fornitore, a.codice_a_barre from movimenti_magazzino m left join articoli a on m.articolo = a.codice\"\n + \" left join tipi_causali_magazzino cau on m.causale = cau.codice\"\n + \" left join depositi dep ON m.deposito = dep.id\";\n sql += \" where 1 = 1\";\n System.out.println(\"articolo_selezionato_filtro_ref = \" + articolo_selezionato_filtro_ref);\n System.out.println(\"articolo_selezionato_filtro_ref get = \" + articolo_selezionato_filtro_ref.get());\n if (articolo_selezionato_filtro_ref.get() != null && StringUtils.isNotBlank(articolo_selezionato_filtro_ref.get().codice)) {\n sql += \" and m.articolo like '\" + Db.aa(articolo_selezionato_filtro_ref.get().codice) + \"'\";\n }\n if (filtro_barre.getText().length() > 0) {\n sql += \" and a.codice_a_barre like '%\" + Db.aa(filtro_barre.getText()) + \"%'\";\n }\n if (filtro_lotto.getText().length() > 0) {\n sql += \" and m.lotto like '%\" + Db.aa(filtro_lotto.getText()) + \"%'\";\n }\n if (filtro_matricola.getText().length() > 0) {\n sql += \" and m.matricola like '%\" + Db.aa(filtro_matricola.getText()) + \"%'\";\n }\n if (filtro_fornitore.getText().length() > 0) {\n sql += \" and a.codice_fornitore like '%\" + Db.aa(filtro_fornitore.getText()) + \"%'\";\n }\n if (filtro_deposito.getSelectedIndex() >= 0) {\n sql += \" and m.deposito = \" + cu.s(filtro_deposito.getSelectedKey());\n }\n sql += \" order by m.data desc, id desc\";\n System.out.println(\"sql movimenti: \" + sql);\n griglia.dbOpen(Db.getConn(), sql, Db.INSTANCE, true);\n griglia.dbSelezionaRiga();\n }", "public void consutaBD(String Campo, String txtSQL) {\n String consultaBD = \"SELECT * FROM `cronograma_actividades` WHERE \" + Campo + \" LIKE '\" + txtSQL + \"_%'\";\n //JOptionPane.showMessageDialog(null, consultaBD);\n javax.swing.JTable Tabla = this.Tabla_addActividad;\n // Enviamos los parametros para la consulta de la tabla\n // conexion consulta de la base de datos y el nombre de la tabla\n String cabesera[] = {\"Código\", \"Asunto\", \"Actividad\",\"hora\",\"Fecha\",\"Estado\"};\n cone1.GetTabla_Sincabeseras_sql_bd(cn, consultaBD, Tabla, cabesera);\n\n }", "private void llenarListado1() {\r\n\t\tString sql1 = Sentencia1()\r\n\t\t\t\t+ \" where lower(cab.descripcion) = 'concurso' \" + \"and (\"\r\n\t\t\t\t+ \"\t\tdet.id_estado_det = (\" + \"\t\t\t\tselect est.id_estado_det \"\r\n\t\t\t\t+ \"\t\t\t\tfrom planificacion.estado_det est \"\r\n\t\t\t\t+ \"\t\t\t\twhere lower(est.descripcion)='libre'\" + \"\t\t) \"\r\n\t\t\t\t+ \"\t\tor det.id_estado_det is null\" + \"\t) \"\r\n\t\t\t\t+ \" and uo_cab.id_configuracion_uo = \"\r\n\t\t\t\t+ configuracionUoCab.getIdConfiguracionUo()\r\n\t\t\t\t+ \" AND det.activo=true\";\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO SIMPLIFICADO Se despliegan los puestos\r\n\t\t * PERMANENTES o CONTRATADOS, con estado = LIBRE o NULO Los puestos\r\n\t\t * deben ser de nivel 1\r\n\t\t */\r\n\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n\t\t\t\t.equalsIgnoreCase(CONCURSO_SIMPLIFICADO)) {\r\n\t\t\tsql1 += \" and cpt.nivel=1 and cpt.activo=true and (det.permanente is true or det.contratado is true) \";\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO INTERNO DE OPOSICION INSTITUCIONAL Se\r\n\t\t * despliegan los puestos PERMANENTE, con estado = LIBRE o NULO\r\n\t\t */\r\n\r\n\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n\t\t\t\t.equalsIgnoreCase(CONCURSO_INTERNO_OPOSICION)) {\r\n\t\t\tsql1 += \" and det.permanente is true \";\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO INTERNO DE OPOSICION INTER INSTITUCIONAL\r\n\t\t * Se despliegan los puestos PERMANENTE, con estado = LIBRE o NULO\r\n\t\t */\r\n\r\n\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n\t\t\t\t.equalsIgnoreCase(CONCURSO_INTERNO_INTERINSTITUCIONAL)) {\r\n\t\t\tsql1 += \" and det.permanente is true \";\r\n\t\t}\r\n\t\tString sql2 = Sentencia2()\r\n\t\t\t\t+ \" where lower(estado_det.descripcion) = 'en reserva' \"\r\n\t\t\t\t+ \"and uo_cab.id_configuracion_uo = \"\r\n\t\t\t\t+ configuracionUoCab.getIdConfiguracionUo()\r\n\t\t\t\t+ \" and concurso.id_concurso = \" + concurso.getIdConcurso()\r\n\t\t\t\t+ \" and puesto_det.activo=true\";\r\n\r\n\t\tcargarLista(sql1, sql2);\r\n\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 void introducirPagosALojamientoHotelFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo){\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);\n try {\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT ALOJAMIENTO.Id,ALOJAMIENTO.Id_Reservacion,RESERVACION.Fecha_Entrada, RESERVACION.Fecha_Salida,RESERVACION.Precio FROM RESERVACION JOIN ALOJAMIENTO WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND RESERVACION.Fecha_Entrada>=? AND RESERVACION.Fecha_Entrada<=? AND RESERVACION.Check_In=1;\");\n declaracion.setDate(1,fechaInicialSql);\n declaracion.setDate(2,fechaFinalSQL);// pago de alojamiento en rango fchas\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {\n Object objeto[] = new Object[6];// pago de alojamiento en rango fchas\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);\n objeto[2] = resultado.getDate(3);\n objeto[3] = resultado.getDate(4);// pago de alojamiento en rango fchas\n objeto[4] = resultado.getInt(5);\n String fechaInicialProbar=objeto[2].toString();\n String fechaFinalProbar=objeto[3].toString();// pago de alojamiento en rango fchas\n String precioProbar = objeto[4].toString();// pago de alojamiento en rango fchas\n int total=habitacion.hacerTotalAlojamiento(fechaInicialProbar, fechaFinalProbar, precioProbar);\n objeto[5]= total;\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "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 }", "public void buscarEstudiante(String codEstudiante){\n estudianteModificar=new Estudiante();\n estudianteGradoModificar=new EstudianteGrado();\n StringBuilder query=new StringBuilder();\n query.append(\"select e.idestudiante,e.nombre,e.apellido,e.ci,e.cod_est,e.idgrado,e.idcurso,g.grado,c.nombre_curso \" );\n query.append(\" from estudiante e \");\n query.append(\" inner join grado g on e.idgrado=g.idgrado \");\n query.append(\" inner join cursos c on e.idcurso=c.idcurso \");\n query.append(\" where idestudiante=? \");\n try {\n PreparedStatement pst=connection.prepareStatement(query.toString());\n pst.setInt(1, Integer.parseInt(codEstudiante));\n ResultSet resultado=pst.executeQuery();\n //utilizamos una condicion porque la busqueda nos devuelve 1 registro\n if(resultado.next()){\n //cargando la informacion a nuestro objeto categoriaModificarde tipo categoria\n estudianteModificar.setCodEstudiante(resultado.getInt(1));\n estudianteModificar.setNomEstudiante(resultado.getString(2));\n estudianteModificar.setApEstudiante(resultado.getString(3));\n estudianteModificar.setCiEstudiante(resultado.getInt(4));\n estudianteModificar.setCodigoEstudiante(resultado.getString(5));\n estudianteModificar.setIdgradoEstudiante(resultado.getInt(6));\n estudianteModificar.setIdCursoEstudiante(resultado.getInt(7));\n estudianteGradoModificar.setNomGrado(resultado.getString(8));\n estudianteGradoModificar.setNomCurso(resultado.getString(9));\n }\n } catch (SQLException e) {\n System.out.println(\"Error de conexion\");\n e.printStackTrace();\n }\n }", "public void introducirPagosALojamientoClienteFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo,String dpiCliente){\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);// pago de alojamiento en rango fchas\n try {\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT ALOJAMIENTO.Id,ALOJAMIENTO.Id_Reservacion,RESERVACION.Fecha_Entrada, RESERVACION.Fecha_Salida,RESERVACION.Precio FROM RESERVACION JOIN ALOJAMIENTO WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND RESERVACION.Fecha_Entrada>=? AND RESERVACION.Fecha_Entrada<=? AND RESERVACION.Dpi_Cliente=? AND RESERVACION.Check_In=1;\");\n declaracion.setDate(1,fechaInicialSql);\n declaracion.setDate(2,fechaFinalSQL);// pago de alojamiento en rango fchas\n declaracion.setString(3, dpiCliente);\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {\n Object objeto[] = new Object[6];\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);\n objeto[2] = resultado.getDate(3);// pago de alojamiento en rango fchas\n objeto[3] = resultado.getDate(4);\n objeto[4] = resultado.getInt(5);\n String fechaInicialProbar=objeto[2].toString();\n String fechaFinalProbar=objeto[3].toString();// pago de alojamiento en rango fchas\n String precioProbar = objeto[4].toString();\n int total=habitacion.hacerTotalAlojamiento(fechaInicialProbar, fechaFinalProbar, precioProbar);\n objeto[5]= total;\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "public void EjecutarConsulta() {\n try {\n Consultar(\"select * from \"+table);\n this.resultSet = preparedStatement.executeQuery();\n } catch (Exception e) {\n// MessageEmergent(\"Fail EjecutarConsulta(): \"+e.getMessage());\n }\n }", "public CalMetasDTO cargarRegistro(int codigoCiclo, int codigoPlan, int codigoMeta) {\n/* */ try {\n/* 416 */ String s = \"select m.*,\";\n/* 417 */ s = s + \"tm.descripcion as nombreTipoMedicion,\";\n/* 418 */ s = s + \"est.descripcion as nombreEstado,\";\n/* 419 */ s = s + \"Um.Descripcion as nombre_unidad_medida\";\n/* 420 */ s = s + \" from cal_plan_metas m,sis_multivalores tm,sis_multivalores est,Sis_Multivalores Um\";\n/* 421 */ s = s + \" where \";\n/* 422 */ s = s + \" m.tipo_medicion =tm.valor\";\n/* 423 */ s = s + \" and tm.tabla='CAL_TIPO_MEDICION'\";\n/* 424 */ s = s + \" and m.estado =est.valor\";\n/* 425 */ s = s + \" and est.tabla='CAL_ESTADO_META'\";\n/* 426 */ s = s + \" and m.Unidad_Medida = Um.Valor\";\n/* 427 */ s = s + \" and Um.Tabla = 'CAL_UNIDAD_MEDIDA_META'\";\n/* 428 */ s = s + \" and m.codigo_ciclo=\" + codigoCiclo;\n/* 429 */ s = s + \" and m.codigo_plan=\" + codigoPlan;\n/* 430 */ s = s + \" and m.codigo_meta=\" + codigoMeta;\n/* 431 */ boolean rtaDB = this.dat.parseSql(s);\n/* 432 */ if (!rtaDB) {\n/* 433 */ return null;\n/* */ }\n/* */ \n/* 436 */ this.rs = this.dat.getResultSet();\n/* 437 */ if (this.rs.next()) {\n/* 438 */ return leerRegistro();\n/* */ }\n/* */ }\n/* 441 */ catch (Exception e) {\n/* 442 */ e.printStackTrace();\n/* 443 */ Utilidades.writeError(\"CalPlanMetasFactory:cargarCalMetas \", e);\n/* */ } \n/* 445 */ return null;\n/* */ }", "private boolean crearRecurso(int codigoCiclo, int codigoPlan, int codigoMeta, int codigoRecurso, String estado, String usuarioInsercion) {\n/* */ try {\n/* 513 */ String s = \"select estado from cal_plan_recursos_meta r where r.codigo_ciclo=\" + codigoCiclo + \" and r.codigo_plan=\" + codigoPlan + \" and r.codigo_meta=\" + codigoMeta + \" and r.codigo_recurso=\" + codigoRecurso;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 520 */ this.dat.parseSql(s);\n/* 521 */ this.rs = this.dat.getResultSet();\n/* 522 */ if (this.rs.next()) {\n/* 523 */ s = \"update cal_plan_recursos_meta set \";\n/* 524 */ s = s + \" estado='\" + estado + \"',\";\n/* 525 */ s = s + \" fecha_modificacion=\" + Utilidades.getFechaBD() + \",\";\n/* 526 */ s = s + \" usuario_modificacion='\" + usuarioInsercion + \"'\";\n/* 527 */ s = s + \" where \";\n/* 528 */ s = s + \" codigo_ciclo=\" + codigoCiclo;\n/* 529 */ s = s + \" and codigo_plan=\" + codigoPlan;\n/* 530 */ s = s + \" and codigo_meta=\" + codigoMeta;\n/* 531 */ s = s + \" and codigo_recurso=\" + codigoRecurso;\n/* */ } else {\n/* */ \n/* 534 */ s = \"insert into cal_plan_recursos_meta (codigo_ciclo,codigo_plan,codigo_meta,codigo_recurso,estado,fecha_insercion,usuario_insercion) values (\" + codigoCiclo + \",\" + \"\" + codigoPlan + \",\" + \"\" + codigoMeta + \",\" + \"\" + codigoRecurso + \",\" + \"'\" + estado + \"',\" + Utilidades.getFechaBD() + \",\" + \"'\" + usuarioInsercion + \"'\" + \")\";\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 552 */ return this.dat.executeUpdate(s);\n/* */ \n/* */ }\n/* 555 */ catch (Exception e) {\n/* 556 */ e.printStackTrace();\n/* 557 */ Utilidades.writeError(\"CalMetasDAO:crearRegistro\", e);\n/* */ \n/* 559 */ return false;\n/* */ } \n/* */ }", "private void mbushetabelen() {\n try {\n Statement stmt = LidhjaMeDb.hapelidhjen();\n //CallableStatement stmt = conn.prepareCall(\"{call procedura1(?)}\");\n //stmt.setInt(1, 1);\n //ResultSet rs=stmt.executeQuery();\n String sql = \"SELECT kerkesat.kompania AS 'Kompania', llojet_lejes.lloji_lejes AS 'Lloji i Lejes'\"\n + \" ,kerkesat.adresa AS 'Adresa', kerkesat.tel AS 'Tel',kerkesat.data_pranimit AS 'Data e Pranimit'\"\n + \" ,kerkesat.nr_protokollit AS 'Numri i Protokollit', aktivitetet.aktiviteti AS 'Aktiviteti'\"\n + \" ,komunat.komuna AS 'Komuna', kerkesat.taksa AS 'Taksa', kerkesat.statusi_lendes AS 'Statusi i Lendes'\"\n + \" ,kerkesat.data_leshimit AS 'Data e Leshimit'\"\n + \" ,pergjigjjet_komisionit.pergjigjja AS 'Pergjigjja e Komisionit' FROM kerkesat \"\n + \" JOIN llojet_lejes ON kerkesat.idlloji = llojet_lejes.idlloji \"\n + \" JOIN aktivitetet ON kerkesat.idaktiviteti = aktivitetet.idaktiviteti \"\n + \" JOIN pergjigjjet_komisionit ON kerkesat.idpergjigjja = pergjigjjet_komisionit.idpergjigjja \"\n + \" JOIN komunat ON kerkesat.idkomuna=komunat.idkomuna \"\n + \"WHERE kompania LIKE '%\" + txtkompania.getText() + \"%' \"\n + \"AND aktiviteti like '%\" + (String) kmbaktiviteti.getSelectedItem() + \"%' \"\n + \"AND komuna like '%\" + (String) kmbkomunat.getSelectedItem() + \"%' \"\n + \"AND pergjigjja like '%\" + (String) kmbpergjigjja.getSelectedItem() + \"%' \"\n + \"AND data_pranimit >= '\" + new java.sql.Date(jdataprej.getDate().getTime()) + \"' AND data_pranimit <= '\" + new java.sql.Date(jdataderi.getDate().getTime()) + \"' \";\n System.out.println(sql);\n ResultSet rs = stmt.executeQuery(sql);\n tblkerkesat.setModel(DBUtils.resultSetToTableModel(rs));\n//boolean Zgjedhur=false;jTable1.addColumn(Zgjedhur);\n LidhjaMeDb.mbyllelidhjen();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "public void PrepararBaseDatos() { \r\n try{ \r\n conexion=DriverManager.getConnection(\"jdbc:ucanaccess://\"+this.NOMBRE_BASE_DE_DATOS,this.USUARIO_BASE_DE_DATOS,this.CLAVE_BASE_DE_DATOS);\r\n \r\n } \r\n catch (Exception e) { \r\n JOptionPane.showMessageDialog(null,\"Error al realizar la conexion \"+e);\r\n } \r\n try { \r\n sentencia=conexion.createStatement( \r\n ResultSet.TYPE_SCROLL_INSENSITIVE, \r\n ResultSet.CONCUR_READ_ONLY); \r\n \r\n System.out.println(\"Se ha establecido la conexión correctamente\");\r\n } \r\n catch (Exception e) { \r\n JOptionPane.showMessageDialog(null,\"Error al crear el objeto sentencia \"+e);\r\n } \r\n }", "private void procurarData() {\n if (jDateIni.getDate() != null && jDateFim.getDate() != null) {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n String data = sdf.format(jDateIni.getDate());\n String data2 = sdf.format(jDateFim.getDate());\n carregaTable(id, data, data2);\n JBreg.setEnabled(false);\n }\n }", "QuartoConsumo[] busca(Object dadoBusca, String coluna) throws SQLException;", "public DanielPatricio() throws SQLException {\n initComponents();\n //limpiar();\n recargarDropDownCarros();\n recargarTextArea();\n recargarDataTable();\n \n \n }", "public static String todosLosEmpleados_baja(){\n String query=\"SELECT empleado.idEmpleado, persona.nombre, persona.apePaterno, persona.apeMaterno, empleado.codigo, empleado.fechaIngreso,persona.codigoPostal,persona.domicilio,\" +\n\"empleado.puesto, empleado.salario from persona inner join empleado on persona.idPersona=empleado.idPersona where activo=0;\";\n return query;\n }", "public FlujoDetalleDTO cargarRegistro(int codigoFlujo, int secuencia) {\n/* */ try {\n/* 201 */ String s = \"select t.codigo_flujo,t.secuencia,t.servicio_inicio,r1.descripcion as nombre_servicio_inicio,t.accion,t.codigo_estado,r3.descripcion as nombre_codigo_estado,t.servicio_destino,r4.descripcion as nombre_servicio_destino,t.nombre_procedimiento,t.correo_destino,t.enviar_solicitud,t.ind_mismo_proveedor,t.ind_mismo_cliente,t.estado,t.caracteristica,t.valor_caracteristica,t.caracteristica_correo,m5.descripcion as nombre_estado,c.DESCRIPCION nombre_caracteristica,cv.DESCRIPCION descripcion_valor,t.metodo_seleccion_proveedor,t.ind_correo_clientes,t.enviar_hermana,t.enviar_si_hermana_cerrada,t.ind_cliente_inicial,t.usuario_insercion,t.fecha_insercion,t.usuario_modificacion,t.fecha_modificacion from wkf_detalle t left join SERVICIOS r1 on (r1.CODIGO=t.servicio_inicio) left join ESTADOS r3 on (r3.codigo=t.codigo_estado) left join SERVICIOS r4 on (r4.CODIGO=t.servicio_destino) left join sis_multivalores m5 on (m5.tabla='ESTADO_REGISTRO' and m5.valor=t.estado) LEFT JOIN CARACTERISTICAS c ON (t.Caracteristica = c.CODIGO) LEFT JOIN CARACTERISTICAS_VALOR cv ON (t.CARACTERISTICA=cv.CARACTERISTICA AND t.VALOR_CARACTERISTICA = cv.VALOR) where t.codigo_flujo=\" + codigoFlujo + \" and t.secuencia=\" + secuencia + \"\";\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 243 */ boolean rtaDB = this.dat.parseSql(s);\n/* 244 */ if (!rtaDB) {\n/* 245 */ return null;\n/* */ }\n/* 247 */ this.rs = this.dat.getResultSet();\n/* 248 */ if (this.rs.next()) {\n/* 249 */ return leerRegistro();\n/* */ }\n/* */ }\n/* 252 */ catch (Exception e) {\n/* 253 */ e.printStackTrace();\n/* 254 */ Utilidades.writeError(\"FlujoDetalleDAO:cargarFlujoDetalle\", e);\n/* */ } \n/* 256 */ return null;\n/* */ }", "private void cargarDeDB() {\n Query query = session.createQuery(\"SELECT p FROM Paquete p WHERE p.reparto is NULL\");\n data = FXCollections.observableArrayList();\n\n List<Paquete> paquetes = query.list();\n for (Paquete paquete : paquetes) {\n data.add(paquete);\n }\n\n cargarTablaConPaquetes();\n }", "public static Statement reiniciarBD( Connection con ) {\n\t\ttry {\n\t\t\tStatement statement = con.createStatement();\n\t\t\tstatement.setQueryTimeout(30); // poner timeout 30 msg\n\t\t\tstatement.executeUpdate(\"drop table if exists items\");\n\t\t\tlog( Level.INFO, \"Reiniciada base de datos\", null );\n\t\t\treturn usarCrearTablasBD( con );\n\t\t} catch (SQLException e) {\n\t\t\tlog( Level.SEVERE, \"Error en reinicio de base de datos\", e );\n\t\t\tlastError = e;\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "@Transactional\n public void llenarTabla(ResultSet rs){\n if (rs==null) {\n System.out.println(\"el rs vino vacio\");\n }\n try {\n while (rs.next()) {\n //para cada fila de la consulta creo un pedido\n PedidoMaterial pedido = new PedidoMaterial();\n System.out.println(\"empezamos\");\n pedido.setId(rs.getInt(1));\n pedido.setNumeroPedido(rs.getInt(2));\n pedido.setNotaDeVenta(rs.getInt(3));\n pedido.setDescripProyecto(rs.getString(4));\n pedido.setCliente(rs.getString(5));\n pedido.setCantidadPedida(rs.getLong(6));\n pedido.setCantidadModificada(rs.getLong(7));\n Calendar fecha = Calendar.getInstance();\n fecha.setTime(rs.getDate(8));\n pedido.setUltimaActualizacionDespiece(fecha);\n pedido.setArticulo(rs.getString(9));\n pedido.setAriCod(rs.getString(10));\n pedido.setArea(rs.getString(11));\n pedido.setUnidadOrg(rs.getInt(12));\n pedido.setTarea(rs.getString(13));\n pedido.setCantidadAPD(rs.getLong(14));\n if (rs.getDate(15) != null) {\n fecha.setTime(rs.getDate(15));\n pedido.setFechaAsignacion(fecha); \n }\n pedido.setCantidadFinalP(rs.getLong(16));\n pedido.setCantidadRealU(rs.getLong(17));\n pedido.setTareaCod(rs.getInt(18));\n fecha.setTime(rs.getDate(19));\n pedido.setFechaUti(fecha);\n fecha.setTime(rs.getDate(20));\n pedido.setFechaFinUtili(fecha);\n \n guardarPedido(pedido);\n \n \n }\n } catch (SQLException ex) {\n \n System.out.println(ex.toString());\n }\n }", "public void actualizarFiltrarEstadoRequisicion(Requisicion req) throws Exception{\n String carnet = req.getCarnetEmpleado();\n\n java.util.Date utilDate = req.getFechaNueva();\n java.sql.Date fechaConvertida = new java.sql.Date(utilDate.getTime()); \n\n List<Requisicion> requisicion = new ArrayList<>();\n \n Connection miConexion = null;\n Statement miStatement = null;\n ResultSet miResultset = null; \n\n \n //Establecer la conexion\n miConexion = origenDatos.getConexion();\n \n \n //Verificar si existe empleado\n String sqlEmpleado = \"Select CARNETEMPLEADO FROM EMPLEADO WHERE CARNETEMPLEADO = '\"+carnet+\"'\";\n miStatement = miConexion.createStatement();\n miResultset = miStatement.executeQuery(sqlEmpleado);\n \n if(miResultset.next()){\n \n String empleado = carnet;\n \n \n String sqlDepto = \"select d.NOMBREDEPARTAMENTO from departamento d \" + \n \"inner join catalagopuesto c on d.codigodepartamento = c.codigodepartamento \" + \n \"inner join empleado e on c.codigopuesto = e.codigopuesto where e.carnetempleado ='\"+carnet+\"'\";\n \n miStatement = miConexion.createStatement();\n \n //Ejecutar SQL\n miResultset = miStatement.executeQuery(sqlDepto);\n //Crear sentencia SQL y Statement\n miResultset.next();\n String nomdepto = miResultset.getString(\"NOMBREDEPARTAMENTO\");\n \n String miSQl = \"select r.NUMREQ, r.FECPEDIDOREQ, r.FECENTREGAREQ, r.AUTORIZADO, e.CARNETEMPLEADO, e.NOMBREEMPLEADO, e.APELLIDOEMPLEADO, d.NOMBREDEPARTAMENTO \" + \n \"from requisicion r inner join empleado e on r.carnetempleado =e.carnetempleado \" + \n \"inner join catalagopuesto c on e.codigopuesto =c.codigopuesto \" + \n \"inner join departamento d on c.codigodepartamento = d.codigodepartamento \" + \n \"where r.AUTORIZADO = 1 and d.NOMBREDEPARTAMENTO='\"+nomdepto+\"' and r.FECPEDIDOREQ >=TO_DATE('\"+fechaConvertida+\"', 'YYYY/MM/DD HH:MI:SS') order by r.FECPEDIDOREQ\";\n \n miStatement = miConexion.createStatement();\n \n //Ejecutar SQL\n miResultset = miStatement.executeQuery(miSQl);\n \n while(miResultset.next()){\n int numReq = miResultset.getInt(\"NUMREQ\");\n Date fechaPedido = miResultset.getDate(\"FECPEDIDOREQ\");\n Date fechaEntrega = miResultset.getDate(\"FECENTREGAREQ\"); \n String carnetEmpleado = miResultset.getString(\"CARNETEMPLEADO\");\n String nombreEmpleado = miResultset.getString(\"NOMBREEMPLEADO\"); \n String apellidoEmpleado = miResultset.getString(\"APELLIDOEMPLEADO\");\n String nombreDepartamento = miResultset.getString(\"NOMBREDEPARTAMENTO\"); \n\n //*************************ACTUALIZAR**************************\n Connection miConexion1 = null;\n PreparedStatement miStatement1 = null;\n \n //Obtener la conexion\n \n miConexion1 = origenDatos.getConexion();\n \n //Crear sentencia sql que inserte la requisicion a la base\n String misql = \"UPDATE requisicion SET autorizado = ? WHERE numreq = ?\";\n \n miStatement1 = miConexion1.prepareStatement(misql);\n \n //Establecer los parametros para insertar la requisicion \n if(\"aceptado\".equals(req.getEstadoAut())) {\n miStatement1.setInt(1, 0);\n }else{\n miStatement1.setInt(1, 1);\n } \n\n miStatement1.setInt(2, numReq);//se obtendra dentro del while\n \n //Ejecutar la instruccion sql\n miStatement1.execute(); \n //Requisicion temporal = new Requisicion(numReq, fechaPedido, fechaEntrega, carnetEmpleado, nombreEmpleado, apellidoEmpleado, nombreDepartamento);\n //requisicion.add(temporal);\n }\n \n }\n //return requisicion; \n }", "public void ejecutarCodigoSQLdatos(String nombrebuscado)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tFileReader codigoarchivo = new FileReader ( \"./images/BD/Codigo SQL crebas datos.sql\" );\r\n\t\t\tBufferedReader reader = new BufferedReader (codigoarchivo);\r\n\t\t\tString codigo = reader.readLine();\r\n\t\t\twhile(codigo!= null)\r\n\t\t\t{\r\n\t\t\t\tif(!codigo.equalsIgnoreCase(\"\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tConector conectord = new Conector(nombrebuscado);\r\n\t\t\t\t\tconectord.iniciarConexionBaseDatos();\r\n\t\t\t\t\tCrearBD.ejecutarCodigoSQL(codigo, conectord);\r\n\t\t\t\t\tconectord.terminarConexionBaseDatos();\r\n\t\t\t\t}\r\n\t\t\t\tcodigo = reader.readLine();\r\n\t\t\t}\r\n\t\t\tJOptionPane.showMessageDialog(this,\"Se Instalo la Base de Datos Correctamente.\",\"Instalar Base de Datos\", JOptionPane.INFORMATION_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/informacion.PNG\"));\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tConector conectorg = new Conector(nombrebuscado);\r\n\t\t\t\tconectorg.iniciarConexionBaseDatos();\r\n\t\t\t\tCrearBD.ejecutarCodigoSQL(\"DROP DATABASE \"+nombrebuscado, conectorg);\r\n\t\t\t\tconectorg.terminarConexionBaseDatos();\r\n\t\t\t\tJOptionPane.showMessageDialog(this,\"No se encontro el archivo Codigo SQL crebas datos.sql\",\"Error\", JOptionPane.ERROR_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/error.PNG\"));\r\n\t\t\t}\r\n\t\t\tcatch (Exception ex)\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}", "public void introducirConsumosHotelFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo) {\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);\n try {// mira los consumo de unas fechas\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT * FROM CONSUMO_RESTAURANTE WHERE Fecha_Consumo>=? AND Fecha_Consumo<=?\");\n declaracion.setDate(1,fechaInicialSql);\n declaracion.setDate(2,fechaFinalSQL);\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {// mira los consumo de unas fechas\n Object objeto[] = new Object[7];\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);// mira los consumo de unas fechas\n objeto[2] = resultado.getString(3);\n objeto[3] = resultado.getInt(4);\n objeto[4] = resultado.getInt(5);\n objeto[5] = resultado.getDate(6);// mira los consumo de unas fechas\n int total = (Integer)objeto[3]*(Integer)objeto[4];\n objeto[6]= total;\n modelo.addRow(objeto);// mira los consumo de unas fechas\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "public void novoDebito(Debitos debitos, String conCodigo, Contas contaComSaldo) throws SQLException {\r\n String sqls = \"select * from contas where concodigo = \" + conCodigo + \" \";\r\n\r\n PreparedStatement psc = null;\r\n ResultSet rsc = null;\r\n try {\r\n psc = connection.prepareStatement(sqls);\r\n rsc = psc.executeQuery();\r\n while (rsc.next()) {\r\n contaComSaldo.setConCodigo(rsc.getInt(\"concodigo\"));\r\n contaComSaldo.setConDescricao(rsc.getString(\"condescricao\"));\r\n contaComSaldo.setTipoCodigo(rsc.getInt(\"tipocodigo\"));\r\n contaComSaldo.setConSaldo(rsc.getDouble(\"consaldo\"));\r\n }\r\n\r\n } catch (Exception e) {\r\n Logger.getLogger(ContaDAO.class.getName()).log(Level.SEVERE, null, e);\r\n\r\n }\r\n\r\n String sqlUltimoCredito = \"select * from creditos order by crecodigo desc limit 1\";\r\n\r\n PreparedStatement pscUltimoCredito = null;\r\n ResultSet rscUltimoCredito = null;\r\n\r\n Creditos creditos = new Creditos();\r\n\r\n try {\r\n\r\n pscUltimoCredito = connection.prepareStatement(sqlUltimoCredito);\r\n rscUltimoCredito = pscUltimoCredito.executeQuery();\r\n while (rscUltimoCredito.next()) {\r\n\r\n creditos.setCreCodigo(rscUltimoCredito.getInt(\"crecodigo\"));\r\n creditos.setCreData(rscUltimoCredito.getDate(\"credata\"));\r\n creditos.setConCodigo(rscUltimoCredito.getInt(\"concodigo\"));\r\n creditos.setCreValor(rscUltimoCredito.getInt(\"crevalor\"));\r\n creditos.setCreHistorico(rscUltimoCredito.getString(\"crehistorico\"));\r\n creditos.setConSaldo(rscUltimoCredito.getDouble(\"consaldo\"));\r\n }\r\n\r\n } catch (Exception e) {\r\n Logger.getLogger(DebitoDAO.class.getName()).log(Level.SEVERE, null, e);\r\n\r\n }\r\n\r\n String sql = \"insert into debitos (debdata,concodigo,debvalor,debhistorico,consaldo,creditoid) values (?,?,?,?,?,?)\";\r\n PreparedStatement ps = null;\r\n try {\r\n ps = connection.prepareStatement(sql);\r\n ps.setDate(1, new java.sql.Date(debitos.getDebData().getTime()));\r\n ps.setInt(2, debitos.getConCodigo());\r\n ps.setDouble(3, debitos.getDebValor() * -1);\r\n ps.setString(4, debitos.getDebHistorico());\r\n ps.setDouble(5, contaComSaldo.getConSaldo());\r\n ps.setInt(6, creditos.getCreCodigo());\r\n\r\n ps.execute();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(CreditoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n connection.close();\r\n ps.close();\r\n }\r\n }", "private PreparedStatement prepareClientesRebarba(Connection conn, String data, String promocao) \n\t\tthrows ParseException, SQLException\n\t{\n\t\tPreparedStatement result = null;\t\t\n\t\tSimpleDateFormat conversorData = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\tDate dataExecucao = conversorData.parse(data);\t\t\n\t\t\n\t\t//Parametro 1: Promocao (Parametro do metodo)\n\t\t//Parametro 2: Ano e mes da execucao\n\t\tSimpleDateFormat conversorDatMes = new SimpleDateFormat(\"yyMM\");\n\t\tString datMes = conversorDatMes.format(mesAnterior(dataExecucao));\n\t\t//Parametros 3, 5 e 7: Primeiro dia do mes da execucao\n\t\tDate dataInicioMesExecucao = getPrimeiroDiaMes(dataExecucao);\n\t\t//Parametro 4: Tipo de transacao da promocao PulaPula\n\t\tString tipoTransacao = TIPO_TRANSACAO_PULA_PULA;\n\t\t//Parametro 5: Primeiro dia do mes posterior ao da execucao\n\t\tDate dataInicioProxMes = getPrimeiroDiaMes(proximoMes(dataExecucao));\n\t\t//Parametro 8: Ultimo dia do mes da execucao\n\t\tDate dataFimMesExecucao = getUltimoDiaMes(dataExecucao);\n\n\t\tString sqlClientes = getQuerySelecaoClientesRebarba();\n\t\tresult = conn.prepareStatement(sqlClientes);\t\t\n\t\tresult.setString(1, promocao);\n\t\tresult.setString(2, datMes);\n\t\tresult.setDate (3, new java.sql.Date(dataInicioMesExecucao.getTime()));\n\t\tresult.setString(4, tipoTransacao);\n\t\tresult.setDate (5, new java.sql.Date(dataInicioMesExecucao.getTime()));\n\t\tresult.setDate (6, new java.sql.Date(dataInicioProxMes.getTime()));\n\t\tresult.setDate (7, new java.sql.Date(dataInicioMesExecucao.getTime()));\n\t\tresult.setDate (8, new java.sql.Date(dataFimMesExecucao.getTime()));\n\t\t\n\t\treturn result;\n\t}", "private boolean crearResponsable(int codigoCiclo, int codigoPlan, int codigoMeta, int codigoResponsable, String estado, String usuarioInsercion) {\n/* */ try {\n/* 578 */ String s = \"select estado from cal_plan_responsables_meta r where r.codigo_ciclo=\" + codigoCiclo + \" and r.codigo_plan=\" + codigoPlan + \" and r.codigo_meta=\" + codigoMeta + \" and r.codigo_responsable=\" + codigoResponsable;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 585 */ this.dat.parseSql(s);\n/* 586 */ this.rs = this.dat.getResultSet();\n/* 587 */ if (this.rs.next()) {\n/* 588 */ s = \"update cal_plan_responsables_meta set estado='\" + estado + \"',\" + \" fecha_modificacion=\" + Utilidades.getFechaBD() + \",\" + \" usuario_modificacion='\" + usuarioInsercion + \"'\" + \" where codigo_ciclo=\" + codigoCiclo + \" and codigo_plan=\" + codigoPlan + \" and codigo_meta=\" + codigoMeta + \" and codigo_responsable=\" + codigoResponsable;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ }\n/* */ else {\n/* */ \n/* */ \n/* */ \n/* */ \n/* 599 */ s = \"insert into cal_plan_responsables_meta (codigo_ciclo,codigo_plan,codigo_meta,codigo_responsable,estado,fecha_insercion,usuario_insercion) values (\" + codigoCiclo + \",\" + \"\" + codigoPlan + \",\" + \"\" + codigoMeta + \",\" + \"\" + codigoResponsable + \",\" + \"'\" + estado + \"',\" + \"\" + Utilidades.getFechaBD() + \",\" + \"'\" + usuarioInsercion + \"'\" + \")\";\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 617 */ return this.dat.executeUpdate(s);\n/* */ \n/* */ }\n/* 620 */ catch (Exception e) {\n/* 621 */ e.printStackTrace();\n/* 622 */ Utilidades.writeError(\"CalResponsablesMetaFactory:crearRegistro\", e);\n/* */ \n/* 624 */ return false;\n/* */ } \n/* */ }", "private void saveData() {\n try {\n String query;\n query = \"INSERT INTO limit_hd (kode_limit, grup, produk, masa_limit, jumlah_limit, status, pesan_gagal, tgl_mulai_event, tgl_akhir_event, date_create, date_update) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)\";\n Connection conn = (Connection) DatabaseConnection.getConnection(dbName2);\n PreparedStatement pst = conn.prepareStatement(query);\n getMaxKodeLimit();\n maxKodeLimit += 1;\n grupColumn = cmbGrup.getSelectedItem().toString();\n produkColumn = cmbProduk.getSelectedItem().toString();\n masaLimitColumn = cmbTransactionPeriod.getSelectedItem().toString();\n jumlahLimitColumn = Integer.parseInt(txtTransactionLimit.getText());\n errorMessageColumn = txaErrorMessage.getText();\n startDate = dtpStartDateEvent.getText();\n endDate = dtpEndDateEvent.getText();\n isStatusColumn = true;\n\n SimpleDateFormat dateFormatter = new SimpleDateFormat(\"dd-MMM-yyyy\");\n\n Date sqlDate1 = (Date) dateFormatter.parse(startDate);\n Date sqlDate2 = (Date) dateFormatter.parse(endDate);\n\n java.sql.Date startEventDate = new java.sql.Date(sqlDate1.getTime());\n java.sql.Date endEventDate = new java.sql.Date(sqlDate2.getTime());\n\n pst.setInt(1, maxKodeLimit);\n pst.setString(2, grupColumn);\n pst.setString(3, produkColumn);\n pst.setString(4, masaLimitColumn);\n pst.setInt(5, jumlahLimitColumn);\n pst.setBoolean(6, isStatusColumn);\n pst.setString(7, errorMessageColumn);\n pst.setDate(8, startEventDate);\n pst.setDate(9, endEventDate);\n pst.setDate(10, java.sql.Date.valueOf(java.time.LocalDate.now()));\n pst.setDate(11, java.sql.Date.valueOf(java.time.LocalDate.now()));\n pst.executeUpdate();\n showLimitHeader();\n defaultSetVariable();\n JOptionPane.showMessageDialog(null, \"Data telah berhasil di simpan\");\n } catch (HeadlessException | SQLException e) {\n JOptionPane.showMessageDialog(this, e.getMessage());\n } catch (Exception ex) {\n Logger.getLogger(LimitAddOn.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void Consultar(String query) {\n try {\n conectionSql();\n preparedStatement = conection.prepareStatement(query);\n } catch (Exception e) {\n// MessageEmergent(\"Fail Consultar(): \"+e.getMessage());\n }\n }", "public void introducirConsumosClienteFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo,String dpiCliente) {\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);\n try {// mira los consumo de unas fechas\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT CONSUMO_RESTAURANTE.Id_Consumo,CONSUMO_RESTAURANTE.Id_Alojamiento,CONSUMO_RESTAURANTE.Nombre_Comida,CONSUMO_RESTAURANTE.Precio_Comida,CONSUMO_RESTAURANTE.Cantidad,CONSUMO_RESTAURANTE.Fecha_Consumo FROM CONSUMO_RESTAURANTE JOIN ALOJAMIENTO JOIN RESERVACION WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND ALOJAMIENTO.Id=CONSUMO_RESTAURANTE.Id_Alojamiento AND RESERVACION.Dpi_Cliente=? AND Fecha_Consumo>=? AND Fecha_Consumo<=?\");\n declaracion.setString(1, dpiCliente);\n declaracion.setDate(2,fechaInicialSql);\n declaracion.setDate(3,fechaFinalSQL);\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {// mira los consumo de unas fechas\n Object objeto[] = new Object[7];\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);\n objeto[2] = resultado.getString(3);\n objeto[3] = resultado.getInt(4);// mira los consumo de unas fechas\n objeto[4] = resultado.getInt(5);\n objeto[5] = resultado.getDate(6);\n int total = (Integer)objeto[3]*(Integer)objeto[4];\n objeto[6]= total;// mira los consumo de unas fechas\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "private void TampilData(){\n try{ //\n String sql = \"SELECT * FROM buku\"; // memanggil dari php dengan tabel buku\n stt = con.createStatement(); // membuat statement baru dengan mengkonekan ke database\n rss = stt.executeQuery(sql); \n while (rss.next()){ \n Object[] o = new Object [3]; // membuat array 3 dimensi dengan nama object\n \n o[0] = rss.getString(\"judul\"); // yang pertama dengan ketentuan judul\n o[1] = rss.getString(\"penulis\"); // yang kedua dengan ketentuan penulis\n o[2] = rss.getInt(\"harga\"); // yang ketiga dengan ketentuan harga\n model.addRow(o); // memasukkan baris dengan mengkonekan di tabel model\n } \n }catch(SQLException e){ // memanipulasi kesalahan\n System.out.println(\"ini error\"); // menampilkan pesan ini error\n }\n }", "@SuppressWarnings(\"unchecked\")\r\n\tprivate void cargarLista(String sql1, String sql2) {\r\n\t\tlistaPlantaCargoDet = new ArrayList<PlantaCargoDet>();\r\n\t\tlistaPuestosReservados = new ArrayList<ConcursoPuestoDet>();\r\n\t\tlistaPlantaCargoDto = new ArrayList<PlantaCargoDetDTO>();\r\n\t\tlistaPlantaCargoDet = em.createNativeQuery(sql1, PlantaCargoDet.class)\r\n\t\t\t\t.getResultList();\r\n\t\tlistaPuestosReservados = em.createNativeQuery(sql2,\r\n\t\t\t\tConcursoPuestoDet.class).getResultList();\r\n\t\tif (listaPuestosReservados.size() > 0) {\r\n\t\t\tcantReservados = listaPuestosReservados.size();\r\n\t\t\tfor (ConcursoPuestoDet r : listaPuestosReservados) {\r\n\t\t\t\tPlantaCargoDetDTO dto = new PlantaCargoDetDTO();\r\n\t\t\t\tLong id = r.getPlantaCargoDet().getIdPlantaCargoDet();\r\n\t\t\t\tdto.setPlantaCargoDet(r.getPlantaCargoDet());\r\n\t\t\t\tdto.setReservar(true);\r\n\t\t\t\tlistaPlantaCargoDto.add(dto);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tcantReservados = 0;\r\n\t\t}\r\n\r\n\t\tif (listaPlantaCargoDet.size() > 0) {\r\n\t\t\tfor (PlantaCargoDet p : listaPlantaCargoDet) {\r\n\t\t\t\tBoolean esta = false;\r\n\t\t\t\tfor (ConcursoPuestoDet r : listaPuestosReservados) {\r\n\t\t\t\t\tif (r.getPlantaCargoDet().equals(p))\r\n\t\t\t\t\t\testa = true;\r\n\t\t\t\t}\r\n\t\t\t\tif (!esta) {\r\n\r\n\t\t\t\t\tPlantaCargoDetDTO dto = new PlantaCargoDetDTO();\r\n\t\t\t\t\tdto.setPlantaCargoDet(p);\r\n\t\t\t\t\tdto.setReservar(false);\r\n\t\t\t\t\tlistaPlantaCargoDto.add(dto);\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void consultarDatos() throws SQLException {\n String instruccion = \"SELECT * FROM juegos.juegos\";\n try {\n comando = conexion.createStatement();\n resultados = comando.executeQuery(instruccion);\n } catch (SQLException e) {\n e.printStackTrace();\n throw e;\n }\n }", "public void introducirConsumosHabitacion(TablaModelo modelo,String idHabitacion) {\n int idHabitacionInt = Integer.parseInt(idHabitacion);\n try {// mira los consumo de unas fechas\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT CONSUMO_RESTAURANTE.Id_Consumo,CONSUMO_RESTAURANTE.Id_Alojamiento,CONSUMO_RESTAURANTE.Nombre_Comida,CONSUMO_RESTAURANTE.Precio_Comida,CONSUMO_RESTAURANTE.Cantidad,CONSUMO_RESTAURANTE.Fecha_Consumo FROM CONSUMO_RESTAURANTE JOIN ALOJAMIENTO JOIN RESERVACION WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND ALOJAMIENTO.Id=CONSUMO_RESTAURANTE.Id_Alojamiento AND RESERVACION.Id_Habitacion=?\");\n declaracion.setInt(1, idHabitacionInt);// mira los consumo de unas fechas\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {\n Object objeto[] = new Object[7];// mira los consumo de unas fechas\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);// mira los consumo de unas fechas\n objeto[2] = resultado.getString(3);\n objeto[3] = resultado.getInt(4);\n objeto[4] = resultado.getInt(5);// mira los consumo de unas fechas\n objeto[5] = resultado.getDate(6);\n int total = (Integer)objeto[3]*(Integer)objeto[4];\n objeto[6]= total;// mira los consumo de unas fechas\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "private void cargaInfoEmpleado(){\r\n Connection conn = null;\r\n Conexion conex = null;\r\n try{\r\n if(!Config.estaCargada){\r\n Config.cargaConfig();\r\n }\r\n conex = new Conexion();\r\n conex.creaConexion(Config.host, Config.user, Config.pass, Config.port, Config.name, Config.driv, Config.surl);\r\n conn = conex.getConexion();\r\n if(conn != null){\r\n ArrayList<Object> paramsIn = new ArrayList();\r\n paramsIn.add(txtLogin);\r\n QryRespDTO resp = new Consulta().ejecutaSelectSP(conn, IQryUsuarios.NOM_FN_OBTIENE_INFO_USUARIOWEB, paramsIn);\r\n System.out.println(\"resp: \" + resp.getRes() + \"-\" + resp.getMsg());\r\n if(resp.getRes() == 1){\r\n ArrayList<ColumnaDTO> listaColumnas = resp.getColumnas();\r\n for(HashMap<String, CampoDTO> fila : resp.getDatosTabla()){\r\n usuario = new UsuarioDTO();\r\n \r\n for(ColumnaDTO col: listaColumnas){\r\n switch(col.getIdTipo()){\r\n case java.sql.Types.INTEGER:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Integer.parseInt(fila.get(col.getEtiqueta()).getValor().toString().replaceAll(\",\", \"\").replaceAll(\"$\", \"\").replaceAll(\" \", \"\")));\r\n break;\r\n \r\n case java.sql.Types.DOUBLE:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Double.parseDouble(fila.get(col.getEtiqueta()).getValor().toString()));\r\n break;\r\n \r\n case java.sql.Types.FLOAT:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Float.parseFloat(fila.get(col.getEtiqueta()).getValor().toString()));\r\n break;\r\n \r\n case java.sql.Types.DECIMAL:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Float.parseFloat(fila.get(col.getEtiqueta()).getValor().toString()));\r\n break;\r\n \r\n case java.sql.Types.VARCHAR:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"\":fila.get(col.getEtiqueta()).getValor().toString());\r\n break;\r\n \r\n case java.sql.Types.NUMERIC:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Float.parseFloat(fila.get(col.getEtiqueta()).getValor().toString()));\r\n break;\r\n \r\n default:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"\":fila.get(col.getEtiqueta()).getValor().toString());\r\n break;\r\n } \r\n }\r\n }\r\n sesionMap.put(\"UsuarioDTO\", usuario);\r\n }else{\r\n context.getExternalContext().getApplicationMap().clear();\r\n context.getExternalContext().redirect(\"index.xhtml\");\r\n }\r\n }\r\n }catch(Exception ex){\r\n System.out.println(\"Excepcion en la cargaInfoEmpleado: \" + ex);\r\n }finally{\r\n try{\r\n conn.close();\r\n }catch(Exception ex){\r\n \r\n }\r\n }\r\n }", "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 }", "public void buscaxcodigo() {\r\n try {\r\n modelo.setCodigobarras(vista.jTbcodigobarras.getText());//C.P.M mandamos el codigo de barras ingresado\r\n rs = modelo.Buscarxcodigobarras();//C.P.M mandamos a consultar ese codigo de barras\r\n DefaultTableModel buscar = new DefaultTableModel() {//C.P.M instanciamos el modelo de la tabla\r\n @Override\r\n public boolean isCellEditable(int rowIndex, int vColIndex) {\r\n return false;\r\n }\r\n };\r\n vista.jTbuscar.setModel(buscar);//C.P.M le mandamos el modelo a la tabla\r\n modelo.estructuraProductos(buscar);//C.P.M obtenemos la estructura de la tabla \"Encabezados\"\r\n ResultSetMetaData rsMd = rs.getMetaData();//C.P.M obtenemos los metadatos de la consulta\r\n int cantidadColumnas = rsMd.getColumnCount();//C.P.M obtenemos las columnas de la consulta\r\n\r\n while (rs.next()) {//C.P.M recorremos el resultado\r\n Object[] fila = new Object[cantidadColumnas];//C.P.M creamos un vector con el tamano de las columnas de el resultado\r\n for (int i = 0; i < cantidadColumnas; i++) {//C.P.M recorremos el arreglo\r\n fila[i] = rs.getObject(i + 1);//C.P.M y vamos insertando el resultado\r\n }\r\n buscar.addRow(fila);//C.P.M le mandamos el arreglo como renglon nuevo\r\n }\r\n\r\n } catch (SQLException ex) {\r\n JOptionPane.showMessageDialog(null, \"Ocurrio un error al buscar por codigo de barras\");\r\n }\r\n }", "public ArrayList<clsPago> consultaDataPagosCuotaInicial(int codigoCli)\n { \n ArrayList<clsPago> data = new ArrayList<clsPago>(); \n try{\n bd.conectarBaseDeDatos();\n sql = \" SELECT a.id_pagos_recibo idPago, a.id_usuario, b.name name_usuario, \"\n + \" a.referencia referencia, \"\n + \" a.fecha_pago fecha_pago, a.estado, \"\n + \" a.valor valor_pago, a.id_caja_operacion, e.name_completo nombre_cliente, \"\n + \" a.fecha_pago fecha_registro\"\n + \" FROM ck_pagos_recibo AS a\"\n + \" JOIN ck_usuario AS b ON a.id_usuario = b.id_usuario\"\n + \" JOIN ck_cliente AS e ON a.codigo = e.codigo\"\n + \" WHERE a.estado = 'A'\"\n + \" AND a.cuota_inicial = 'S'\"\n + \" AND a.estado_asignado = 'N'\"\n + \" AND a.codigo = \" + codigoCli; \n \n System.out.println(sql);\n bd.resultado = bd.sentencia.executeQuery(sql);\n \n if(bd.resultado.next())\n { \n do \n { \n clsPago oListaTemporal = new clsPago();\n \n oListaTemporal.setReferencia(bd.resultado.getString(\"referencia\"));\n oListaTemporal.setFechaPago(bd.resultado.getString(\"fecha_pago\"));\n oListaTemporal.setNombreUsuario(bd.resultado.getString(\"name_usuario\"));\n oListaTemporal.setNombreCliente(bd.resultado.getString(\"nombre_cliente\"));\n oListaTemporal.setValor(bd.resultado.getDouble(\"valor_pago\"));\n oListaTemporal.setFechaRegistro(bd.resultado.getString(\"fecha_registro\"));\n oListaTemporal.setIdPago(bd.resultado.getInt(\"idPago\"));\n data.add(oListaTemporal);\n }\n while(bd.resultado.next()); \n //return data;\n }\n else\n { \n data = null;\n } \n }\n catch(Exception ex)\n {\n System.out.print(ex);\n data = null;\n } \n bd.desconectarBaseDeDatos();\n return data;\n }", "public List<Produto> consultarProdutos(int consulta, String valor) {\r\n ConexaoBDJavaDB conexaoBD = new ConexaoBDJavaDB(\"routeexpress\");\r\n Connection conn = null;\r\n Statement stmt = null;\r\n ResultSet rs = null;\r\n List<Produto> produtos = new ArrayList<>();\r\n try {\r\n conn = conexaoBD.obterConexao();\r\n stmt = conn.createStatement();\r\n //Se a consulta for igual a zero(0) uma lista de todos os produtos \"cervejas\" e recuperada\r\n if (consulta == 0) {\r\n rs = stmt.executeQuery(consultas[consulta]);\r\n //Se a consulta for igual a tres(3) uma lista de todos os produtos \"cervejas\" e recuperada a parti do preco\r\n } else {\r\n rs = stmt.executeQuery(consultas[consulta] + \"'\" + valor + \"'\");\r\n }\r\n Produto produto;\r\n while (rs.next()) {\r\n produto = new Produto();\r\n produto.setIdCervejaria(rs.getInt(\"ID_CERVEJARIA\"));\r\n produto.setCervejaria(rs.getString(\"CERVEJARIA\"));\r\n produto.setPais(rs.getString(\"PAIS\"));\r\n produto.setIdCerveja(rs.getInt(\"ID_CERVEJA\"));\r\n produto.setIdFkCervajaria(rs.getInt(\"FK_CERVEJARIA\"));\r\n produto.setRotulo(rs.getString(\"ROTULO\"));\r\n produto.setPreco(rs.getString(\"PRECO\"));\r\n produto.setVolume(rs.getString(\"VOLUME\"));\r\n produto.setTeor(rs.getString(\"TEOR\"));\r\n produto.setCor(rs.getString(\"COR\"));\r\n produto.setTemperatura(rs.getString(\"TEMPERATURA\"));\r\n produto.setFamiliaEEstilo(rs.getString(\"FAMILIA_E_ESTILO\"));\r\n produto.setDescricao(rs.getString(\"DESCRICAO\"));\r\n produto.setSabor(rs.getString(\"SABOR\"));\r\n produto.setImagem1(rs.getString(\"IMAGEM_1\"));\r\n produto.setImagem2(rs.getString(\"IMAGEM_2\"));\r\n produto.setImagem3(rs.getString(\"IMAGEM_3\"));\r\n produtos.add(produto);\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (ClassNotFoundException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n if (conn != null) {\r\n try {\r\n conn.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (stmt != null) {\r\n try {\r\n stmt.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (rs != null) {\r\n try {\r\n rs.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }\r\n return produtos;\r\n }", "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 void makeSql() {\n\t\tfor(int i=0; i<arr_sql.length; i++) {\n\t\t\tarr_sql[i] = new StringBuffer();\n\t\t}\n\t\t\n\t\t/*\n\t\t * 공통코드 쿼리\n\t\t * 대리점구분 : CU006\n\t\t * 직판구분 : CU012\n\t\t * 지역 : SY006\n\t\t * 계약상태 : CU013\n\t\t * 사용유무 : SY011\n\t\t * 보증보험회사 : CU010\n\t\t * 하위대리점여부 : CU011\n\t\t */\n\t\tarr_sql[0].append (\"SELECT\t\t\t\t\t\t\t\t\t\t\\n\")\n\t\t\t\t .append (\"\t' ' head, ' ' detail, '전체' detail_nm \\n\")\n\t\t\t\t .append (\"FROM DUAL \\n\")\n\t\t\t\t .append (\"UNION ALL \\n\")\n\t\t\t\t .append (\"SELECT \\n\")\n\t\t\t\t .append (\"\tB.head, B.detail, B.detail_nm \\n\")\n\t\t\t\t .append (\"FROM \\n\")\n\t\t\t\t .append (\"\tSALES.TSY011 A, \\n\")\n\t\t\t\t .append (\"\tSALES.TSY010 B \\n\")\n\t\t\t\t .append (\"WHERE 1=1 \\n\")\n\t\t\t\t .append (\" AND A.head = B.head \\n\")\n\t\t\t\t .append (\" AND B.head = ? \\n\")\n\t\t\t\t .append (\" AND LENGTH (rtrim(B.detail)) > 0 \\n\");\n\t\t\n\t\t/*\n\t\t * 대리점 조회\n\t\t */\n\t\tarr_sql[1].append(\"SELECT T1.client_sid\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 매출처SID \t*/\n\t \t\t .append(\"\t\t ,T1.vend_cd \t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\\n\")\t/* [회계]거래처 코드 \t*/\n\t \t\t .append(\"\t\t ,T1.client_cd \t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\\n\")\t/* 매출처 코드 \t*/\n\t \t\t .append(\"\t\t ,T1.client_nm \t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\\n\")\t/* 매출처 명 \t*/\n\t \t\t .append(\"\t\t ,T1.client_gu \t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\\n\")\t/* 매출처구분 :CU005 \t*/\n\t \t\t \n\t \t\t .append(\"\t\t ,T1.agen_gu \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 대리점구분 :CU006 \t*/\n\t \t\t .append(\"\t\t ,T1.dir_yn \t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\\n\")\t/* 직판여부 :CU012 \t*/\n\t \t\t .append(\"\t\t ,T1.area_cd \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 지역코드 :SY006 \t*/\n\t \t\t .append(\"\t\t ,T1.sal_dam_sid \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 영업담당자코드[TSY410] */\n\t \t\t .append(\"\t\t ,T1.client_dam_nm \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 매출처담당자 \t*/\n\t \t\t \n\t \t\t .append(\"\t\t ,T1.tel_no \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 전화번호 \t*/\n\t \t\t .append(\"\t\t ,T1.mobile_no \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 휴대전화 \t*/\n\t \t\t .append(\"\t\t ,T1.fax_no \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* FAX번호 \t*/\n\t \t\t .append(\"\t\t ,T1.e_mail \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 이메일 \t*/\n\t \t\t .append(\"\t\t ,T1.zip_cd \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 우편번호[TSY110] */\n\t \t\t \n\t \t\t .append(\"\t\t ,T1.address1 \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 주소1 \t*/\n\t \t\t .append(\"\t\t ,T1.address2 \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 주소2 \t*/\n\t \t\t .append(\"\t\t ,T1.commi_rate \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 수수료율 \t*/\n\t \t\t .append(\"\t\t ,T1.cunt_status \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 계약상태 :CU013 \t*/\n\t \t\t .append(\"\t\t ,T1.bancod \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 은행코드 [BANKCODE] */\n\t \t\t \n\t \t\t .append(\"\t\t ,T1.bank_acc_no \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 은행계좌번호 \t*/\n\t \t\t .append(\"\t\t ,T1.bank_acct_nm \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 예금주 \t*/\n\t \t\t .append(\"\t\t ,T1.use_yn \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 사용여부 :SY011 \t*/ \n\t \t\t .append(\"\t\t ,T1.client_url\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 홈페이지 URL\t\t\t\t*/\n\t \t\t .append(\"\t\t ,T2.sal_dam_nm \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 영업담당자명 \t*/\n\t \t\t .append(\"\t\t ,T3.vend_nm \t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\\n\")\t/* 거래처명 \t*/\n\t \t\t \n\t \t\t .append(\"\t\t ,T4.bannam \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 은행명 \t*/\n\t \t\t .append(\"\t\t ,SALES.FN_DETAIL_NM ( 'CU006',T1.agen_gu) AS agen_gu_name \t\t\t\t\t\\n\")\t/* 대리점구분명 \t\t\t\t*/ \n\t \t\t .append(\"\t\t ,SALES.FN_DETAIL_NM ( 'CU012',T1.dir_yn) AS dir_yn_name \t\t\t\t\t\\n\")\t/* 직판여부명 \t\t\t\t*/ \n\t \t\t .append(\"\t\t ,SALES.FN_DETAIL_NM ( 'SY006',T1.area_cd) AS area_nm\t\t\t\t\t\t\t\\n\")\t/* 지역명 \t\t\t\t*/\n\t \t\t .append(\"\t\t ,SALES.FN_DETAIL_NM ( 'CU013',T1.cunt_status) AS cunt_status_name \t\t\t\\n\")\t/* 계약상태명 \t\t\t\t*/\n\n\t \t\t .append(\"\t\t ,SALES.FN_DETAIL_NM ( 'SY011',T1.use_yn) AS use_yn_name \t\t\t\\n\")\t/* 사용여부명 \t\t\t \t*/\n\n\t \t\t .append(\"FROM SALES.TCU030 T1 LEFT OUTER JOIN SALES.TSY410 T2 ON T1.SAL_DAM_SID = T2.SAL_DAM_SID \\n\")\n\t \t\t .append(\"\t\t LEFT OUTER JOIN ACCOUNT.GCZM_VENDER T3 ON T1.VEND_CD = T3.VEND_CD \t\t\t\t\t\\n\")\n\t \t\t .append(\"\t\t LEFT OUTER JOIN ACCOUNT.BANKCODE T4 ON T1.BANCOD = T4.BANCOD \t\t\t\t\t\\n\")\n\t \t\t .append(\"WHERE 1 = 1 \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\n\t \t\t .append(\"\t\t AND T1.client_GU = '1' \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\");\n\t\t/*\n\t\t * 계약정보 조회\n\t\t */\n\t\tarr_sql[2].append(\"SELECT T1.client_sid\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 매출처SID \t*/\n\t\t\t\t .append(\"\t\t ,T1.cont_date\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\") \t/* 계약일자 \t*/\n\t\t\t\t .append(\"\t\t ,T1.expire_date\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 만기일자 \t*/\n\t\t\t\t .append(\"\t\t ,TO_NUMBER(T1.insur_amt) AS insur_amt\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 보험료 \t*/\n\t\t\t\t .append(\"\t\t ,T1.insur_comp_cd\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 보증보험회사:CU010 \t*/\n\t\t\t\t .append(\"\t\t ,SALES.FN_DETAIL_NM ('CU010',T1.insur_comp_cd) AS insur_comp_cd_name\t\t\\n\") \t/* 보증보험회사명 \t\t*/ \n\t\t\t\t .append(\"FROM SALES.TCU031 T1 \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\n\t\t\t\t .append(\"WHERE 1=1\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\");\n\t\t \n\t\n\t\t/*\n\t\t * 지점정보 조회\n\t\t */\n\t\tarr_sql[3].append(\"SELECT T1.client_sid\t\t\t\t\t\t\t\t\t\t\t\t\\n\") \t/* 매출처SID \t\t*/\n\t\t\t\t .append(\"\t\t ,T1.branch_cd\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 지점코드 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,T1.branch_nm \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\") \t/* 지점명 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,T1.area_cd\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\") \t/* 지역코드:SY006 \t\t*/\n\t\t\t\t .append(\"\t\t ,T1.client_down_yn \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 하위대리점여부:CU011 \t*/\n\t\t\t\t .append(\"\t\t ,T1.empno \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 담당자 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,T1.tel_no \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 전화번호 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,T1.mobile_no \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 휴대폰 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,T1.fax_no \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 팩스번호 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,T1.branch_url \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 지점홈페이지 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,SALES.FN_DETAIL_NM ( 'SY006', T1.area_cd) AS area_nm\t\t\t\t\t\t\t\\n\") \t/* 지역명:SY006 \t\t*/\n\t\t\t\t .append(\"\t\t ,SALES.FN_DETAIL_NM ( 'CU011',T1.client_down_yn) AS client_down_yn_name \t\\n\")\t/* 하위대리점여부명 \t\t*/\n\t\t\t\t .append(\"FROM SALES.TCU032 T1\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\");\n\t\t\n\t\t\n\t\t/*\n\t\t * 대리점 등록\n\t\t */\n\n\t\tarr_sql[4].append(\"INSERT INTO SALES.TCU030 (\")\n\t\t\t\t .append(\"\t\t\t\t client_sid \\n\")\t\n\t\t\t\t .append(\"\t\t\t\t,vend_cd \\n\")\t/* [회계]거래처 코드 \t*/\n\t\t\t\t .append(\"\t\t\t\t,client_cd \\n\")\t/* 매출처 코드 \t*/\n\t\t\t\t .append(\"\t\t\t\t,client_nm \\n\")\t/* 매출처 명 \t*/\n\t\t\t\t .append(\"\t\t\t\t,client_gu \\n\")\t/* 매출처구분 :CU005 \t*/\n\t\t\t\t .append(\"\t\t\t\t,agen_gu \\n\")\t/* 대리점구분 :CU006 \t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t\t\t,dir_yn \\n\")\t/* 직판여부 :CU012 \t*/\n\t\t\t\t .append(\"\t\t\t\t,area_cd \\n\")\t/* 지역코드 :SY006 \t*/\n\t\t\t\t .append(\"\t\t\t\t,sal_dam_sid \\n\")\t/* 영업담당자코드[TSY410] \t*/\n\t\t\t\t .append(\"\t\t\t\t,client_dam_nm \\n\")\t/* 매출처담당자 \t*/\n\t\t\t\t .append(\"\t\t\t\t,tel_no \\n\")\t/* 전화번호 \t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t\t\t,mobile_no \\n\")\t/* 핸드폰 \t*/\n\t\t\t\t .append(\"\t\t\t\t,fax_no \\n\")\t/* FAX번호 \t*/\n\t\t\t\t .append(\"\t\t\t\t,e_mail \\n\")\t/* 이메일 \t*/\n\t\t\t\t .append(\"\t\t\t\t,zip_cd \\n\")\t/* 소재지우편번호[TSY110] */\n\t\t\t\t .append(\"\t\t\t\t,address1 \\n\")\t/* 소재지주소1 \t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t\t\t,address2 \\n\")\t/* 소재지주소2 \t*/\n\t\t\t\t .append(\"\t\t\t\t,commi_rate \t\\n\") \t/* 수수료율 \t*/\n\t\t\t\t .append(\"\t\t\t\t,cunt_status \\n\")\t/* 계약상태 :CU013 \t*/\n\t\t\t\t .append(\"\t\t\t\t,bancod\t\t\t\\n\") \t/* 은행코드 \t\t\t\t\t*/\n\t\t\t\t .append(\"\t\t\t\t,bank_acc_no \\n\")\t/* 은행계좌번호[BANKCODE] \t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t\t\t,bank_acct_nm\t\\n\")\t/* 예금주 \t\t\t\t\t*/\n\t\t\t\t .append(\"\t\t\t\t,use_yn\t\t\t\\n\")\t/* 사용여부 \t\t\t\t\t*/\n\t\t\t\t\n\t\t\t\t .append(\"\t\t \t\t,u_date \t\\n\") \t/* 최종수정일자 \t*/\n\t \t\t .append(\"\t\t \t\t,u_empno \t\\n\")\t/* 최종수정자사번 \t*/\n\t \t\t .append(\"\t\t \t\t,u_ip \\n\")\t/* 최종수정IP */\t\t\t\n\t \t\t .append(\"\t\t\t\t,client_url\t\t\\n\")\t/* 홈페이지 */\n\t\t\t\t .append(\"\t\t\t)\t\t\t\t\t\\n\")\n\t\t\t\t \n\t\t\t\t .append(\"VALUES\t\t\t\t\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t(\t \t\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t\tSALES.SWS_TCU030_ID.NEXTVAL,?,?,?,?,?,\t\t\\n\")\t\n\t\t\t\t .append(\"\t\t\t\t?,?,?,?,?,\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t\t?,?,?,?,?,\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t\t?,?,?,?,?,\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t\t?,?,SYSTIMESTAMP,?,?,?\t\\n\")\n\t\t\t\t .append(\"\t\t\t)\");\n\t\t\n\t\n\t\t\n\t\t/*\n\t\t * 계약정보 등록\n\t\t */\n\t\tarr_sql[5].append(\"INSERT INTO SALES.TCU031 ( \t\\n\")\n\t\t\t\t .append(\" \t client_SID\t\t\t\\n\")\t/* 매출처SID \t*/\n\t\t\t\t .append(\"\t\t ,cont_date\t\t\t\t\\n\") \t/* 계약일자 \t*/\n\t\t\t\t .append(\"\t\t ,expire_date\t\t\t\\n\")\t/* 만기일자 \t*/\n\t\t\t\t .append(\"\t\t ,insur_amt\t\t\t\t\\n\")\t/* 보험료 \t*/\n\t\t\t\t .append(\"\t\t ,insur_comp_cd\t\t\t\\n\")\t/* 보증보험회사:CU010 \t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t ,u_date\t\t\t\t\\n\")\t/* 최종수정일자 \t*/\n\t\t\t\t .append(\"\t\t ,u_empno \t\t\t\t\\n\") \t/* 최종수정자사번 \t*/\n\t\t\t\t .append(\"\t\t ,u_ip\t\t\t\t\t\\n\")\t/* 최종수정IP \t*/\n\t\t\t\t .append(\"\t\t)\t\t\t\t\t\t\\n\")\n\t\t\t\t \n\t\t\t\t .append(\"VALUES\t\t\t\t\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t(\t \t\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t\t?,?,?,?,?,\t\t\\n\")\t\n\t\t\t\t .append(\"\t\t\t\tSYSTIMESTAMP,?,?\t\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t)\");\n\t\t\t\t\t\n\t\t/*\n\t\t * 지점정보 등록\n\t\t */\n\t\t\n\t\tarr_sql[6].append(\"INSERT INTO SALES.TCU032 ( \t\\n\")\n\t\t\t\t .append(\"\t\t client_SID\t\t\t\\n\") \t/* 매출처SID \t\t*/\n\t\t\t\t .append(\"\t\t ,branch_cd\t\t\t\t\\n\")\t/* 지점코드 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,branch_nm \t\t\t\\n\") \t/* 지점명 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,area_cd\t\t\t\t\\n\") \t/* 지역코드:SY006 \t\t*/\n\t\t\t\t .append(\"\t\t ,client_down_yn \t\t\\n\")\t/* 하위대리점여부:CU011 \t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t ,empno \t\t\t\t\\n\")\t/* 담당자 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,tel_no \t\t\t\t\\n\")\t/* 전화번호 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,mobile_no \t\t\t\\n\")\t/* 휴대폰 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,fax_no \t\t\t\t\\n\")\t/* 팩스번호 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,branch_url \t\t\t\\n\")\t/* 지점홈페이지 \t\t\t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t ,u_date \t\t\t\t\\n\")\t/* 최종수정일자 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,u_empno \t\t\t\t\\n\")\t/* 최종수정자사번 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,u_ip \t\t\t\t\\n\")\t/* 최종수정IP \t\t*/\n\t\t\t\t .append(\"\t)\t\t\t\t\t\t\\n\")\n\t\t\t\t .append(\"VALUES\t\t\t\t\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t(\t \t\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t\t?,?,?,?,?,\t\t\\n\")\t\n\t\t\t\t .append(\"\t\t\t\t?,?,?,?,?,\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t\tSYSTIMESTAMP,?,?\t\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t)\");\n\t\t\n\t\t/*\n\t\t * 대리점 수정\n\t\t */\n\n\t\tarr_sql[7].append(\"UPDATE SALES.TCU030 SET \t\t\t\t\t\t\\n\")\n\t\t\t\t .append(\"\t\t vend_cd\t\t= ? \t\t\t\t\\n\")\t/* [회계]거래처 코드 \t*/\n\t\t\t\t .append(\"\t\t,client_nm\t\t= ? \t\t\t\t\\n\")\t/* 매출처 명 \t*/\n\t\t\t\t .append(\"\t\t,agen_gu\t\t= ? \t\t\t\t \t\\n\")\t/* 대리점구분 :CU006 \t*/\n\t\t\t\t .append(\"\t\t,dir_yn\t\t\t= ? \t\t\t\t\\n\")\t/* 직판여부 :CU012 \t*/\n\t\t\t\t .append(\"\t\t,area_cd \t= ? \t\t\t\t\t\\n\")\t/* 지역코드 :SY006 \t*/\n\n\t\t\t\t .append(\"\t\t,sal_dam_sid\t= ? \t\t\t\t\t\\n\")\t/* 영업담당자코드[TSY410] */\n\t\t\t\t .append(\"\t\t,client_dam_nm\t= ? \t\t\t\t\t\\n\")\t/* 매출처담당자 \t*/\n\t\t\t\t .append(\"\t\t,tel_no = ?\t\t\t\t\t\t\\n\")\t/* 전화번호 \t*/\n\t\t\t\t .append(\"\t\t,mobile_no = ?\t\t\t\t\t\t\\n\")\t/* 핸드폰 \t*/\n\t\t\t\t .append(\"\t\t,fax_no = ?\t\t\t\t\t\t\\n\")\t/* FAX번호 \t*/\n\n\t\t\t\t .append(\"\t\t,e_mail = ?\t\t\t\t\t\t\\n\")\t/* 이메일 \t*/\n\t\t\t\t .append(\"\t\t,zip_cd = ?\t\t\t\t\t\t\\n\")\t/* 소재지우편번호[TSY110] \t*/\n\t\t\t\t .append(\"\t\t,address1 = ?\t\t\t\t\t\t\\n\")\t/* 소재지주소1 \t*/\n\t\t\t\t .append(\"\t\t,address2 = ?\t\t\t\t\t\t\\n\")\t/* 소재지주소2 \t*/\n\t\t\t\t .append(\"\t\t,commi_rate \t= ?\t\t\t\t\t\t\\n\") \t/* 수수료율 \t*/\n\n\t\t\t\t .append(\"\t\t,cunt_status = ?\t\t\t\t\t\t\\n\")\t/* 계약상태 :CU013 \t*/\n\t\t\t\t .append(\"\t\t,bancod\t\t\t= ?\t\t\t\t\t\t\\n\") \t/* 은행코드\t \t\t\t\t*/\n\t\t\t\t .append(\"\t\t,bank_acc_no = ?\t\t\t\t\t\t\\n\")\t/* 은행계좌번호[BANKCODE]\t\t*/\n\t\t\t\t .append(\"\t\t,bank_acct_nm\t= ?\t\t\t\t\t\t\\n\")\t/* 예금주 \t\t\t\t\t*/\n\t\t\t\t .append(\"\t\t,use_yn\t\t\t= ?\t\t\t\t\t\t\\n\")\t/* 사용여부 \t\t\t\t\t*/\n\n\t\t\t\t .append(\"\t\t,u_date \t= SYSTIMESTAMP\t\t\\n\") \t/* 최종수정일자 \t*/\n\t \t\t .append(\"\t\t,u_empno \t= ?\t\t\t\t\t\t\\n\")\t/* 최종수정자사번 \t*/\n\t \t\t .append(\"\t\t,u_ip = ?\t\t\t\t\t\t\\n\")\t/* 최종수정IP */\n\t \t\t .append(\"\t,client_url = ?\t\t\t\t\t\t\\n\")\t/* 홈페이지 */\n\t\t\t\t .append (\"WHERE client_sid \t= ? \t\t\t\t\\n\");\n\t\t\t\t \n\t\t/*\n\t\t * 계약정보 수정\n\t\t */\n\t\tarr_sql[8].append(\"UPDATE SALES.TCU031 SET\t\t\t\t\t\t\\n\")\n\t\t\t\t .append(\"\t\t cont_date\t\t\t= ?\t\t\t\t\t\\n\") \t/* 계약일자 \t*/\n\t\t\t\t .append(\"\t\t ,expire_date\t\t= ?\t\t\t\t\t\\n\")\t/* 만기일자 \t*/\n\t\t\t\t .append(\"\t\t ,insur_amt\t\t\t= ?\t\t\t\t\t\\n\")\t/* 보험료 \t*/\n\t\t\t\t .append(\"\t\t ,insur_comp_cd\t\t= ?\t\t\t\t\t\\n\")\t/* 보증보험회사:CU010 \t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t ,u_date\t\t\t= SYSTIMESTAMP\t\\n\")\t/* 최종수정일자 \t*/\n\t\t\t\t .append(\"\t\t ,u_empno \t\t\t= ?\t\t\t\t\t\\n\") \t/* 최종수정자사번 \t*/\n\t\t\t\t .append(\"\t\t ,u_ip\t\t\t\t= ?\t\t\t\t\t\\n\")\t/* 최종수정IP \t*/\n\t\t\t\t .append (\"WHERE client_sid \t\t= ? AND cont_date = ? \\n\");\n\t\t\t\t\n\t\t\t\t \n\t\t\t\t\t\n\t\t/*\n\t\t * 지점정보 수정\n\t\t */\n\t\t\n\t\tarr_sql[9].append(\"UPDATE SALES.TCU032 SET \t\t\t\t\t\t\t\\n\")\n\t\t\t\t .append(\"\t\t branch_nm \t\t= ?\t\t\t\t\t\t\\n\") \t/* 지점명 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,area_cd\t\t\t= ?\t\t\t\t\t\t\\n\") \t/* 지역코드:SY006 \t\t*/\n\t\t\t\t .append(\"\t\t ,client_down_yn \t= ?\t\t\t\t\t\t\\n\")\t/* 하위대리점여부:CU011 \t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t ,empno \t\t\t= ?\t\t\t\t\t\t\\n\")\t/* 담당자 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,tel_no \t\t\t= ?\t\t\t\t\t\t\\n\")\t/* 전화번호 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,mobile_no \t\t= ?\t\t\t\t\t\t\\n\")\t/* 휴대폰 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,fax_no \t\t\t= ?\t\t\t\t\t\t\\n\")\t/* 팩스번호 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,branch_url \t\t= ?\t\t\t\t\t\t\\n\")\t/* 지점홈페이지 \t\t\t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t ,u_date \t\t\t= SYSTIMESTAMP\t\t\t\t\t\t\\n\")\t/* 최종수정일자 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,u_empno \t\t\t= ?\t\t\\n\")\t/* 최종수정자사번 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,u_ip \t\t\t= ?\t\t\t\t\t\t\\n\")\t/* 최종수정IP \t\t*/\n\t\t\t\t .append (\"WHERE client_sid = ? AND branch_cd \t= ?\t\t\\n\");\n\t\t\n\t\t arr_sql[10].append(\"DELETE FROM SALES.TCU030 WHERE client_sid = ?\");\t\n\t\t arr_sql[11].append(\"DELETE FROM SALES.TCU031 WHERE client_sid = ? AND cont_date = ?\");\n\t\t arr_sql[12].append(\"DELETE FROM SALES.TCU032 WHERE client_sid = ? AND branch_cd = ?\");\n\t\t \n\t\t \n\t\t /*\n\t\t * Client SID 얻어오기\n\t\t */\n\t\t\t\n\t\t\tarr_sql[13].append(\"SELECT client_sid FROM SALES.TCU030 WHERE client_cd = ?\\n\");\n\t\t\t\n\t\t/*\n\t\t * 수수료율 조회\n\t\t */\n\t\t\tarr_sql[14].append(\"SELECT\t\t\t\t\t\t\t\t\\n\")\n\t\t\t\t\t\t.append(\" T1.CLIENT_SID AS CLIENT_SID\t\\n\") /* 매출처SID */\n\t\t\t\t\t\t.append(\" ,T1.FR_DATE AS FR_DATE \t\\n\") /* 시작일자 */\n\t\t\t\t\t\t.append(\" ,T1.TO_DATE AS TO_DATE \t\\n\") /* 종료일자 */\n\t\t\t\t\t\t.append(\" ,T1.WEEKEND_YN AS WEEKEND_YN \t\\n\") /* 주말여부 */\n\t\t\t\t\t\t.append(\" ,T1.COMMI_RATE AS COMMI_RATE\t\\n\") /* 수수료율 */\n\t\t\t\t\t\t.append(\"FROM SALES.TCU033 T1 \t\\n\")\n\t\t\t\t\t\t.append(\"WHERE 1=1 \t\t\t\t\t\t\t\\n\");\n\t\t\t\t\t\t\n\t\t/*\n\t\t * 수수료율 등록\n\t\t */\n\t\t\t\n\t\t\tarr_sql[15].append(\"INSERT INTO SALES.TCU033 ( \t\\n\")\n\t\t\t\t\t\t .append(\" \t CLIENT_SID\t\t\t\\n\")\t/* 매출처SID \t*/\n\t\t\t\t\t\t .append(\"\t\t ,FR_DATE\t\t\t\t\\n\") \t/* 시작일자 \t*/\n\t\t\t\t\t\t .append(\"\t\t ,TO_DATE\t\t\t\\n\")\t/* 종료일자 \t*/\n\t\t\t\t\t\t .append(\"\t\t ,COMMI_RATE\t\t\t\t\\n\")\t/* 수수료율 \t*/\n\t\t\t\t\t\t .append(\"\t\t ,WEEKEND_YN\t\t\t\\n\")\t/* 주말여부 \t*/\n\t\t\t\t\t\t .append(\"\t\t ,I_DATE\t\t\t\t\\n\")\t/* 최종입력일자 \t*/\n\t\t\t\t\t\t .append(\"\t\t ,I_EMPNO \t\t\t\t\\n\") \t/* 최종입력자사번 \t*/\n\t\t\t\t\t\t .append(\"\t\t ,I_IP\t\t\t\t\t\\n\")\t/* 최종입력IP \t*/\t\t\t\t\t\t \n\t\t\t\t\t\t .append(\"\t\t ,u_date\t\t\t\t\\n\")\t/* 최종수정일자 \t*/\n\t\t\t\t\t\t .append(\"\t\t ,u_empno \t\t\t\t\\n\") \t/* 최종수정자사번 \t*/\n\t\t\t\t\t\t .append(\"\t\t ,u_ip\t\t\t\t\t\\n\")\t/* 최종수정IP \t*/\n\t\t\t\t\t\t .append(\"\t\t)\t\t\t\t\t\t\\n\")\n\t\t\t\t\t\t \n\t\t\t\t\t\t .append(\"VALUES\t\t\t\t\t\t\\n\")\n\t\t\t\t\t\t .append(\"\t\t\t(\t \t\t\t\\n\")\n\t\t\t\t\t\t .append(\"\t\t\t\t?,?,?,?, ?,\t\t\\n\")\t\n\t\t\t\t\t\t .append(\"\t\t\t\tSYSTIMESTAMP,?,?, SYSTIMESTAMP,?,?\t\\n\")\n\t\t\t\t\t\t .append(\"\t\t\t)\");\n\t\t/*\n\t\t * 수수료율 수정\n\t\t */\n\t\t\tarr_sql[16].append(\"UPDATE SALES.TCU033 SET\t\t\t\t\t\t\\n\") \n\t\t\t\t\t .append(\"\t\t TO_DATE\t\t\t= ?\t\t\t\t\t\\n\")\t/* 종료일자 \t*/\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t .append(\"\t\t ,COMMI_RATE\t\t= ?\t\t\t\t\t\\n\")\t/* 수수료율 \t*/\n\t\t\t\t\t .append(\"\t\t ,WEEKEND_YN\t\t= ?\t\t\t\t\t\\n\")\t/* 주말여부 \t*/\n\t\t\t\t\t \n\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t .append(\"\t\t ,u_date\t\t\t= SYSTIMESTAMP\t\\n\")\t/* 최종수정일자 \t*/\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t .append(\"\t\t ,u_empno \t\t\t= ?\t\t\t\t\t\\n\") \t/* 최종수정자사번 \t*/\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t .append(\"\t\t ,u_ip\t\t\t\t= ?\t\t\t\t\t\\n\")\t/* 최종수정IP \t*/\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t .append (\"WHERE client_sid \t\t= ? AND FR_DATE = ? AND WEEKEND_YN=? \\n\"); \n\t\t/*\n\t\t * 수수료율 삭제\n\t\t */\n\t\tarr_sql[17].append(\"DELETE FROM SALES.TCU033 WHERE client_sid = ? AND fr_date = ? AND WEEKEND_YN=? \");\t \n\t\t\t \n\n\t}", "private StringBuilder getSqlSelectContadorDocProrroga() {\n StringBuilder query = new StringBuilder();\n\n query.append(\" \");\n query.append(\" SELECT \\n\");\n query.append(\" PRO.ID_PRORROGA_ORDEN, \\n\");\n query.append(\" PRO.ID_ORDEN, \\n\");\n query.append(\" PRO.FECHA_CARGA, \\n\");\n query.append(\" PRO.RUTA_ACUSE,\\n\");\n query.append(\" PRO.CADENA_CONTRIBUYENTE, \\n\");\n query.append(\" PRO.FIRMA_CONTRIBUYENTE, \\n\");\n query.append(\" PRO.APROBADA, \\n\");\n query.append(\" PRO.ID_ASOCIADO_CARGA, \\n\");\n query.append(\" PRO.ID_AUDITOR, \\n\");\n query.append(\" PRO.ID_FIRMANTE, \\n\");\n query.append(\" PRO.RUTA_RESOLUCION, \\n\");\n query.append(\" PRO.CADENA_FIRMANTE, \\n\");\n query.append(\" PRO.FIRMA_FIRMANTE,\\n\");\n query.append(\" PRO.FECHA_FIRMA, \\n\");\n query.append(\" PRO.ID_ESTATUS, \\n\");\n query.append(\" PRO.FOLIO_NYV, \\n\");\n query.append(\" PRO.FECHA_NOTIF_NYV, \\n\");\n query.append(\" PRO.FECHA_NOTIF_CONT, \\n\");\n query.append(\" PRO.FECHA_SURTE_EFECTOS, \\n\");\n query.append(\" PRO.ID_NYV, \\n\");\n query.append(\" (SELECT COUNT(0) FROM \");\n query.append(FecetDocProrrogaOrdenDaoImpl.getTableName());\n query.append(\" DOCPRO WHERE PRO.ID_PRORROGA_ORDEN = DOCPRO.ID_PRORROGA_ORDEN) TOTAL_DOC_PRORROGA, \\n\");\n query.append(\" ASOCIADO.ID_ASOCIADO, \\n\");\n query.append(\" ASOCIADO.RFC_CONTRIBUYENTE, \\n\");\n query.append(\" ASOCIADO.RFC, \\n\");\n query.append(\" ASOCIADO.ID_ORDEN, \\n\");\n query.append(\" ASOCIADO.ID_TIPO_ASOCIADO, \\n\");\n query.append(\" ASOCIADO.NOMBRE, \\n\");\n query.append(\" ASOCIADO.CORREO, \\n\");\n query.append(\" ASOCIADO.TIPO_ASOCIADO, \\n\");\n query.append(\" ASOCIADO.FECHA_BAJA, \\n\");\n query.append(\" ASOCIADO.FECHA_ULTIMA_MOD, \\n\");\n query.append(\" ASOCIADO.FECHA_ULTIMA_MOD_IDC, \\n\");\n query.append(\" ASOCIADO.MEDIO_CONTACTO, \\n\");\n query.append(\" ASOCIADO.ESTATUS, \\n\");\n query.append(\" ESTATUS.ID_ESTATUS, \\n\");\n query.append(\" ESTATUS.DESCRIPCION, \\n\");\n query.append(\" ESTATUS.MODULO, \\n\");\n query.append(\" ESTATUS.ID_MODULO \\n\");\n\n query.append(\"FROM \");\n query.append(getTableName());\n query.append(\" PRO \\n\");\n query.append(\" INNER JOIN FECEC_ESTATUS ESTATUS \\n\");\n query.append(\" ON PRO.ID_ESTATUS = ESTATUS.ID_ESTATUS \\n\");\n query.append(\" LEFT JOIN FECET_ASOCIADO ASOCIADO \\n\");\n query.append(\" ON PRO.ID_ASOCIADO_CARGA = ASOCIADO.ID_ASOCIADO \\n\");\n return query;\n }", "public void reback(){\n \n try{ \n cnx = DriverManager.getConnection(url, user,pass);\n String sql = \"SELECT DISTINCT (t1.codigo_producto),(t1.categoria),(t1.producto), t1.unidades FROM tabla_aux t1 INNER JOIN (SELECT producto, MAX(Unidades) as unidades FROM tabla_aux GROUP BY producto) t2 ON t1.producto = t2.producto AND t1.unidades = t2.unidades ORDER BY t1.producto DESC\";\n Statement st = cnx.prepareStatement(sql);\n ResultSet res = st.executeQuery(sql);\n \n while (res.next()){\n ID = res.getString(1); \n MK = res.getString(2); \n MD = res.getString(3); \n UD = res.getInt(4);\n Class.forName(\"com.mysql.jdbc.Driver\"); \n conI = DriverManager.getConnection(url, user,pass);\n String query = \"update producto set Unidades = ? where codigo_producto = ? && categoria = ? && producto = ?\";\n PreparedStatement preparedStmt = conI.prepareStatement(query);\n preparedStmt.setInt (1, UD);\n preparedStmt.setString (2, ID);\n preparedStmt.setString (3, MK);\n preparedStmt.setString (4, MD);\n preparedStmt.executeUpdate();\n }\n Connection conex = DriverManager.getConnection(url, user, pass);\n String Qury = \"TRUNCATE tabla_aux\";\n Statement sts = conex.createStatement();\n sts.executeUpdate(Qury);\n }\n catch(SQLException ex){JOptionPane.showMessageDialog(this,ex);} catch (ClassNotFoundException ex) {\n Logger.getLogger(hacer_ventas.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "private void llenarListadoPromocionSalarial() {\n\t\tString sql1 = \"select det.* from seleccion.promocion_salarial det \"\r\n\t\t\t\t+ \"join planificacion.estado_cab cab on cab.id_estado_cab = det.id_estado_cab \"\r\n\t\t\t\t+ \"join planificacion.configuracion_uo_cab uo_cab \"\r\n\t\t\t\t+ \"on uo_cab.id_configuracion_uo = det.id_configuracion_uo_cab\"\r\n\t\t\t\t+ \" left join seleccion.promocion_concurso_agr agr \"\r\n\t\t\t\t+ \"on agr.id_promocion_salarial = det.id_promocion_salarial\"\r\n\t\t\t\t\r\n\t\t\t\t+ \" where lower(cab.descripcion) = 'concurso' \" + \"and (\"\r\n\t\t\t\t+ \"\t\tagr.id_estado_det = (\" + \"\t\t\t\tselect est.id_estado_det \"\r\n\t\t\t\t+ \"\t\t\t\tfrom planificacion.estado_det est \"\r\n\t\t\t\t+ \"\t\t\t\twhere lower(est.descripcion)='libre'\" + \"\t\t) \"\r\n\t\t\t\t+ \"\t\tor agr.id_estado_det is null\" + \"\t) \"\r\n\t\t\t\t+ \" and uo_cab.id_configuracion_uo = \"\r\n\t\t\t\t+ configuracionUoCab.getIdConfiguracionUo()\r\n\t\t\t\t+ \" AND det.activo=true\";\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO SIMPLIFICADO Se despliegan los puestos\r\n\t\t * PERMANENTES o CONTRATADOS, con estado = LIBRE o NULO Los puestos\r\n\t\t * deben ser de nivel 1\r\n\t\t */\r\n//\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n//\t\t\t\t.equalsIgnoreCase(CONCURSO_SIMPLIFICADO)) {\r\n//\t\t\tsql1 += \" and cpt.nivel=1 and cpt.activo=true and (det.permanente is true or det.contratado is true) \";\r\n//\t\t}\r\n\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO INTERNO DE OPOSICION INSTITUCIONAL Se\r\n\t\t * despliegan los puestos PERMANENTE, con estado = LIBRE o NULO\r\n\t\t */\r\n\r\n//\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n//\t\t\t\t.equalsIgnoreCase(CONCURSO_INTERNO_OPOSICION)) {\r\n//\t\t\tsql1 += \" and det.permanente is true \";\r\n//\t\t}\r\n\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO INTERNO DE OPOSICION INTER INSTITUCIONAL\r\n\t\t * Se despliegan los puestos PERMANENTE, con estado = LIBRE o NULO\r\n\t\t */\r\n\r\n//\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n//\t\t\t\t.equalsIgnoreCase(CONCURSO_INTERNO_INTERINSTITUCIONAL)) {\r\n//\t\t\tsql1 += \" and det.permanente is true \";\r\n//\t\t}\r\n\t\t\r\n\t\tString sql2 = \"select puesto_det.* \"\r\n\t\t\t\t+ \"from seleccion.promocion_concurso_agr puesto_det \"\r\n\t\t\t\t+ \"join planificacion.estado_det estado_det \"\r\n\t\t\t\t+ \"on estado_det.id_estado_det = puesto_det.id_estado_det \"\r\n\t\t\t\t+ \"join seleccion.promocion_salarial det \"\r\n\t\t\t\t+ \"on det.id_promocion_salarial = puesto_det.id_promocion_salarial \"\r\n\t\t\t\t+ \"join planificacion.configuracion_uo_cab uo_cab \"\r\n\t\t\t\t+ \"on uo_cab.id_configuracion_uo = det.id_configuracion_uo_cab \"\r\n\t\t\t//\t+ \"join seleccion.concurso concurso \"\r\n\t\t\t//\t+ \"on concurso.id_concurso = puesto_det.id_concurso \"\r\n\t\t\t\t\r\n\t\t\t\t+ \" where lower(estado_det.descripcion) = 'en reserva' \"\r\n\t\t\t\t+ \"and uo_cab.id_configuracion_uo = \"\r\n\t\t\t\t+ configuracionUoCab.getIdConfiguracionUo()\r\n\t\t\t//\t+ \" and concurso.id_concurso = \" + concurso.getIdConcurso()\r\n\t\t\t\t+ \" and puesto_det.activo=true\";\r\n\r\n\t\tcargarListaPromocionSalarial(sql1, sql2);\r\n\t}", "public static String todosLosEmpleados(){\n String query=\"SELECT empleado.idEmpleado, persona.nombre, persona.apePaterno, persona.apeMaterno, empleado.codigo, empleado.fechaIngreso,persona.codigoPostal,persona.domicilio,\" +\n\"empleado.puesto, empleado.salario from persona inner join empleado on persona.idPersona=empleado.idPersona where activo=1;\";\n return query;\n }", "public void simpanDataBuku(){\n String sql = (\"INSERT INTO buku (judulBuku, pengarang, penerbit, tahun, stok)\" \n + \"VALUES ('\"+getJudulBuku()+\"', '\"+getPengarang()+\"', '\"+getPenerbit()+\"'\"\n + \", '\"+getTahun()+\"', '\"+getStok()+\"')\");\n \n try {\n //inisialisasi preparedstatmen\n PreparedStatement eksekusi = koneksi. getKoneksi().prepareStatement(sql);\n eksekusi.execute();\n \n //pemberitahuan jika data berhasil di simpan\n JOptionPane.showMessageDialog(null,\"Data Berhasil Disimpan\");\n } catch (SQLException ex) {\n //Logger.getLogger(modelPelanggan.class.getName()).log(Level.SEVERE, null, ex);\n JOptionPane.showMessageDialog(null, \"Data Gagal Disimpan \\n\"+ex);\n }\n }", "public void buscaTodasOSs() {\n try {\n ServicoDAO sDAO = new ServicoDAO(); // instancia a classe ProdutoDB()\n ArrayList<OS> cl = sDAO.consultaTodasOs(); // coloca o método dentro da variável\n\n DefaultTableModel modeloTabela = (DefaultTableModel) jTable1.getModel();\n // coloca a tabela em uma variável do tipo DefaultTableModel, que permite a modelagem dos dados da tabela\n\n for (int i = modeloTabela.getRowCount() - 1; i >= 0; i--) {\n modeloTabela.removeRow(i);\n // loop que limpa a tabela antes de ser atualizada\n }\n\n for (int i = 0; i < cl.size(); i++) {\n // loop que pega os dados e insere na tabela\n Object[] dados = new Object[7]; // instancia os objetos. Cada objeto representa um atributo \n dados[0] = cl.get(i).getNumero_OS();\n dados[3] = cl.get(i).getStatus_OS();\n dados[4] = cl.get(i).getDefeito_OS();\n dados[5] = cl.get(i).getDataAbertura_OS();\n dados[6] = cl.get(i).getDataFechamento_OS();\n\n // pega os dados salvos do banco de dados (que estão nas variáveis) e os coloca nos objetos definidos\n modeloTabela.addRow(dados); // insere uma linha nova a cada item novo encontrado na tabela do BD\n }\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(null, \"Falha na operação.\\nErro: \" + ex.getMessage());\n } catch (Exception ex) {\n Logger.getLogger(FrmPesquisar.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public DatoGeneralMinimo getEntityDatoGeneralMinimoGenerico(Connexion connexion,QueryWhereSelectParameters queryWhereSelectParameters,ArrayList<Classe> classes) throws SQLException,Exception { //Banco\r\n\t\tDatoGeneralMinimo datoGeneralMinimo= new DatoGeneralMinimo();\r\n\t\t\r\n\t\tBanco entity = new Banco();\r\n\t\t\t\t\r\n try {\t\t\t\r\n\t\t\tString sQuery=\"\";\r\n \t String sQuerySelect=\"\";\r\n\t\t\t\r\n\t\t\tStatement statement = connexion.getConnection().createStatement();\t\t\t\r\n\t\t\t\r\n\t\t\tif(!queryWhereSelectParameters.getSelectQuery().equals(\"\")) {\r\n\t\t\t\tsQuerySelect=queryWhereSelectParameters.getSelectQuery();\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tif(!this.isForForeingKeyData) {\r\n\t\t\t\t\tsQuerySelect=BancoDataAccess.QUERYSELECTNATIVE;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsQuerySelect=BancoDataAccess.QUERYSELECTNATIVEFORFOREINGKEY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n \t sQuery=DataAccessHelper.buildSqlGeneralGetEntitiesJDBC(entity,BancoDataAccess.TABLENAME+\".\",queryWhereSelectParameters,sQuerySelect);\r\n\t\t\t\r\n\t\t\tif(Constantes2.ISDEVELOPING_SQL) {\r\n \tFunciones2.mostrarMensajeDeveloping(sQuery);\r\n }\r\n\t\t\t\r\n \t \tResultSet resultSet = statement.executeQuery(sQuery);//Tesoreria.Banco.isActive=1\r\n \t \r\n\t\t\t//ResultSetMetaData metadata = resultSet.getMetaData();\r\n \t \t\r\n \t \t//int iTotalCountColumn = metadata.getColumnCount();\r\n\t\t\t\t\r\n\t\t\t//if(queryWhereSelectParameters.getIsGetGeneralObjects()) {\r\n\t\t\t\tif(resultSet.next()) {\t\t\t\t\r\n\t\t\t\t\tfor(Classe classe:classes) {\r\n\t\t\t\t\t\tDataAccessHelperBase.setFieldDynamic(datoGeneralMinimo,classe,resultSet);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t/*\r\n\t\t\t\t\tint iIndexColumn = 1;\r\n\t\t\t\t \r\n\t\t\t\t\twhile(iIndexColumn <= iTotalCountColumn) {\r\n\t\t\t\t\t\t//arrayListObject.add(resultSet.getObject(iIndexColumn++));\r\n\t\t\t\t }\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t*/\r\n\t\t\t\t} else {\r\n\t\t\t\t\tentity =null;\r\n\t\t\t\t}\r\n\t\t\t//}\r\n\t\t\t\r\n\t\t\tif(entity!=null) {\r\n\t\t\t\t//this.setIsNewIsChangedFalseBanco(entity);\r\n\t\t\t}\r\n\t\t\t\r\n \t statement.close(); \r\n\t\t\r\n\t\t} \r\n\t\tcatch(Exception e) {\r\n\t\t\tthrow e;\r\n \t}\r\n\t\t\r\n \t//return entity;\t\r\n\t\t\r\n\t\treturn datoGeneralMinimo;\r\n }", "private void actualizarVentanaOperadores() throws SQLException {\n Sistema.getControladorVentanaOperadores().actualizarTablaOperadores(\"SELECT * FROM operador WHERE activo=TRUE ORDER BY id ASC;\");\n }", "public void execute() throws SQLException {\n\t\ttry {\n\t\t\tselect.setUsername(\"INTRANET\");\n\t\t\tselect.setPassword(\"INTRANET\");\n\t\t\tselect.execute();\n\t\t}\n\n\t\t// Liberar recursos del objeto select.\n\t\tfinally {\n\t\t\tselect.close();\n\t\t}\n\t}", "public static void insertFournisseur(Fournisseur unFournisseur ) {\n Bdd uneBdd = new Bdd(\"localhost\", \"paruline \", \"root\", \"\");\n\n String checkVille = \"CALL checkExistsCity('\" + unFournisseur.getVille() + \"','\" + unFournisseur.getCp() + \"');\";\n try {\n uneBdd.seConnecter();\n Statement unStat = uneBdd.getMaConnection().createStatement();\n\n ResultSet unRes = unStat.executeQuery(checkVille);\n\n int nb = unRes.getInt(\"nb\");\n\n if (nb == 0) {\n String ajoutVille = \"CALL InsertCity('\" + unFournisseur.getVille() + \"', '\" + unFournisseur.getCp() + \"');\";\n\n try {\n Statement unStatAjout = uneBdd.getMaConnection().createStatement();\n\n unStatAjout.executeQuery(ajoutVille);\n unStatAjout.close();\n }\n catch (SQLException e) {\n System.out.println(\"Erreur : \" + ajoutVille);\n }\n }\n\n String id = \"CALL GetCity('\" + unFournisseur.getVille() + \"', '\" + unFournisseur.getCp() + \"')\";\n\n try {\n Statement unStatId = uneBdd.getMaConnection().createStatement();\n\n ResultSet unResId = unStatId.executeQuery(id);\n\n int id_city = unResId.getInt(\"id_city\");\n\n\n\n String insertFournisseur = \"INSERT INTO fournisseur(id_city, name_f, adresse_f, phoneFour) VALUES (\" + id_city + \", '\" + unFournisseur.getNom() + \"', \" +\n \"'\" + unFournisseur.getAdresse() + \"', '\" + unFournisseur.getTelephone() + \"')\";\n\n try {\n Statement unStatFourn = uneBdd.getMaConnection().createStatement();\n unStatFourn.executeQuery(insertFournisseur);\n\n unStatFourn.close();\n }\n catch (SQLException e) {\n System.out.println(\"Erreur : \" + insertFournisseur);\n }\n\n unResId.close();\n unStatId.close();\n }\n catch (SQLException e) {\n System.out.println(\"Erreur : \" + id);\n }\n\n unRes.close();\n unStat.close();\n uneBdd.seDeConnecter();\n } catch (SQLException exp) {\n System.out.println(\"Erreur : \" + checkVille);\n }\n }", "private void buscar() {\n try { \n conexion = DriverManager.getConnection(\"jdbc:mysql://localhost/sistema_gmg\", \"root\", \"1405\");\n\n st = conexion.createStatement();\n \n rs = st.executeQuery(\"select * from ciclos where ciclo like '%\" + this.jtf_buscar.getText() + \"%'\");\n\n jtf_id_ciclo.setText(null);\n jtf_ciclo.setText(null);\n jtf_finicio.setText(null);\n jtf_ftermino.setText(null);\n \n jt_ciclos.setModel(DbUtils.resultSetToTableModel(rs));\n \n jb_cancelar.setEnabled(true); \n rs = st.executeQuery(\"select *from ciclos\");\n } catch (SQLException ex) {\n Logger.getLogger(JF_Alumnos.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public CadastroDeEmpresa() {\n initComponents();\n preencherTabela(\"select * from empresa order by id\");\n }", "public void preencherTabelaResultado() {\n\t\tArrayList<Cliente> lista = Fachada.getInstance().pesquisarCliente(txtNome.getText());\n\t\tDefaultTableModel modelo = (DefaultTableModel) tabelaResultado.getModel();\n\t\tObject[] linha = new Object[4];\n\t\tmodelo.setRowCount(0);\n\n\t\tfor (Cliente c : lista) {\n\t\t\tlinha[0] = c.getIdCliente();\n\t\t\tlinha[1] = c.getNome();\n\t\t\tlinha[2] = c.getTelefone().toString();\n\t\t\tif (c.isAptoAEmprestimos())\n\t\t\t\tlinha[3] = \"Apto\";\n\t\t\telse\n\t\t\t\tlinha[3] = \"A devolver\";\n\t\t\tmodelo.addRow(linha);\n\n\t\t}\n\n\t}", "public static void main(String[] args) {\n Connection connection = null;\r\n\r\n try{\r\n // establezco la connecion con la base de datos jdbc en el puerto 3306 con usuario y contrasenia root\r\n connection = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/jdbc\",\"root\",\"root\");\r\n // pongo auto commit en false esto hace que no se comite cada cueri y que se cada vez que lance\r\n // el comando commit se ejecuta el bloque query\r\n connection.setAutoCommit(false);\r\n\r\n // hago la sentencia preparada\r\n PreparedStatement preparedStatement = connection.prepareStatement(\"INSERT INTO estudiante (dni, nombre, apellido) VALUES (?, ?, ?);\");\r\n // modifico los \"?\" de la sentencia preparada con mis datos\r\n preparedStatement.setInt(1,40640217);\r\n preparedStatement.setString(2,\"Santiago\");\r\n preparedStatement.setString(3,\"Lampropulos\");\r\n\r\n // ejecuto la consulta preparada\r\n preparedStatement.executeUpdate();\r\n\r\n //traigo los datos de la tabla estudiante\r\n ResultSet resultSet = preparedStatement.executeQuery(\"SELECT * FROM estudiante\");\r\n\r\n // realizo el commit para que se guarden los cambios\r\n connection.commit();\r\n\r\n //muestro toda la tabla\r\n while(resultSet.next()){\r\n System.out.println(resultSet.getString(2)+\"\\t\"+resultSet.getString(\"nombre\")+\"\\t\"+resultSet.getString(\"apellido\"));\r\n }\r\n\r\n }catch (SQLException exceptionConnection){\r\n System.out.println(exceptionConnection);\r\n try{\r\n // si se creo la base de datos revierte el commit que se hizo\r\n if(connection!=null){\r\n connection.rollback();\r\n }\r\n }catch (SQLException exceptionCarth){\r\n //atrapo excepciones\r\n System.out.println(exceptionCarth);\r\n }\r\n\r\n\r\n }finally {\r\n // el bloque finally se ejecute sin inportar si viene de un catch o del try\r\n try{\r\n //si se crea una coneccion con base de datos la cierro\r\n if(connection!= null){\r\n connection.close();\r\n }\r\n }catch (SQLException eFinally){\r\n //atrapo excepciones\r\n System.out.println(eFinally);\r\n }\r\n }\r\n\r\n }", "public void guardarBloqueSeleccionado(){\n\t\tif(bloqueSeleccionadoEditar.getIdbloques() == 0){\n\t\t\tbloquesFacade.create(bloqueSeleccionadoEditar);\n\t\t}else{\n\t\t\tbloquesFacade.edit(bloqueSeleccionadoEditar);\n\t\t}\n\t\tdataListBloques = bloquesFacade.findByLike(\"SELECT B FROM Bloques B ORDER BY B.nombre\");\n\t}", "public void alteraDadosMySQL() throws SQLException, IOException {\n byte[] logo = null;\n byte[] brasao = null;\n if (imagemRedimensionada != null) {\n ByteArrayOutputStream bytesImg = new ByteArrayOutputStream();\n ImageIO.write((BufferedImage) imagemRedimensionada, extensao, bytesImg);\n bytesImg.flush();\n logo = bytesImg.toByteArray();\n bytesImg.close();\n }\n\n if (imagemRedimensionada2 != null) {\n ByteArrayOutputStream bytesImg2 = new ByteArrayOutputStream();\n ImageIO.write((BufferedImage) imagemRedimensionada2, extensao2, bytesImg2);\n bytesImg2.flush();\n brasao = bytesImg2.toByteArray();\n bytesImg2.close();\n }\n\n if (dados.equals(prova.getText())) {\n if (dados2.equals(individualUnico.getText())) {\n // System.out.println(\"1\");\n PreparedStatement p = conexao.prepareStatement(\"UPDATE dados SET titulo='\" + titulo.getText() + \"'\"\n + \", tipo='\" + dados + \"'\"\n + \", modalidade='\" + dados2 + \"'\"\n + \", escola='\" + dados3 + \"'\"\n + \", matricula='\" + matricula.getText() + \"'\"\n + \", dataProva=?\"\n + \", dataRecebimento=?\"\n + \", dataEntrega=?\"\n + \" WHERE titulo='\" + aux + \"'\"\n );\n p.clearParameters();\n p.setDate(1, new java.sql.Date(dataProva.getDate().getTime()));\n p.setDate(2, null);\n p.setDate(3, null);\n p.executeUpdate();\n } else {\n if (dados2.equals(individualTurma.getText()) || dados2.equals(grupo.getText())) {\n System.out.println(\"OK\");\n // System.out.println(\"2\");\n PreparedStatement p = conexao.prepareStatement(\"UPDATE dados SET titulo='\" + titulo.getText() + \"'\"\n + \", tipo='\" + dados + \"'\"\n + \", modalidade='\" + dados2 + \"'\"\n + \", escola='\" + dados3 + \"'\"\n + \", matricula=?\"\n + \", dataProva=?\"\n + \", dataRecebimento=?\"\n + \", dataEntrega=?\"\n + \" WHERE titulo='\" + aux + \"'\"\n );\n p.clearParameters();\n p.setString(1, null);\n p.setDate(2, new java.sql.Date(dataProva.getDate().getTime()));\n p.setDate(3, null);\n p.setDate(4, null);\n p.executeUpdate();\n }\n }\n } else {\n if (dados.equals(trabalho.getText())) {\n if (dados2.equals(individualUnico.getText())) {\n\n PreparedStatement p = conexao.prepareStatement(\"UPDATE dados SET titulo='\" + titulo.getText() + \"'\"\n + \", tipo='\" + dados + \"'\"\n + \", modalidade='\" + dados2 + \"'\"\n + \", escola='\" + dados3 + \"'\"\n + \", matricula='\" + matricula.getText() + \"'\"\n + \", dataProva=?\"\n + \", dataRecebimento=?\"\n + \", dataEntrega=?\"\n + \" WHERE titulo='\" + aux + \"'\"\n );\n p.clearParameters();\n\n p.setDate(1, null);\n p.setDate(2, new java.sql.Date(dataRecebimento.getDate().getTime()));\n p.setDate(3, new java.sql.Date(dataEntrega.getDate().getTime()));\n p.executeUpdate();\n } else {\n if (dados2.equals(individualTurma.getText()) || dados2.equals(grupo.getText())) {\n // System.out.println(\"4\");\n PreparedStatement p = conexao.prepareStatement(\"UPDATE dados SET titulo='\" + titulo.getText() + \"'\"\n + \", tipo='\" + dados + \"'\"\n + \", modalidade='\" + dados2 + \"'\"\n + \", escola='\" + dados3 + \"'\"\n + \", matricula=?\"\n + \", dataProva=?\"\n + \", dataRecebimento=?\"\n + \", dataEntrega=?\"\n + \" WHERE titulo='\" + aux + \"'\"\n );\n p.clearParameters();\n p.setString(1, null);\n p.setDate(2, null);\n p.setDate(3, new java.sql.Date(dataRecebimento.getDate().getTime()));\n p.setDate(4, new java.sql.Date(dataEntrega.getDate().getTime()));\n p.executeUpdate();\n }\n }\n }\n }\n if (envio[0]) {\n if (envio[1]) {\n System.out.println(envio[1]);\n PreparedStatement s = conexao.prepareStatement(\"UPDATE dados SET logotipo= ? , brasao= ?, nomeLogotipo=?, nomeBrasao=? WHERE titulo='\" + titulo.getText() + \"'\");//conexao.createStatement();\n s.clearParameters();\n s.setBytes(1, logo);\n s.setBytes(2, brasao);\n s.setString(3, arquivo.getName());\n s.setString(4, arquivo2.getName());\n s.executeUpdate();\n } else {\n PreparedStatement s = conexao.prepareStatement(\"UPDATE dados SET logotipo= ?, brasao=? , nomeLogotipo=?, nomeBrasao=? WHERE titulo='\" + titulo.getText() + \"'\");\n s.clearParameters();\n s.setBytes(1, logo);\n s.setBytes(2, null);\n s.setString(3, arquivo.getName());\n s.setString(4, null);\n s.executeUpdate();\n }\n }\n if (dados3.equals(privada.getText())) {\n PreparedStatement s = conexao.prepareStatement(\"UPDATE dados SET brasao=?, nomeBrasao=? WHERE titulo='\" + dadosTitulo + \"'\");\n s.setBytes(1, null);\n s.setString(2, null);\n s.executeUpdate();\n }\n dispose();\n framePrincipal.setVisible(true);\n }", "public void prepareStatements() throws SQLException {\n\t\tpstmt_updateTicket = connection.prepareStatement(\r\n\t\t \"UPDATE ticket \" +\r\n \"SET kunde = ? \" +\r\n \"WHERE tid IN (\" +\r\n \"SELECT tid FROM ticket WHERE kunde IS NULL AND auffuehrung = ? LIMIT ?)\" +\r\n \"RETURNING preis\");\r\n\t}", "public void firstTest() throws SQLException, ServicesException{\n Connection conn=getConnection();\n Statement stmt=conn.createStatement();\n Services servicios = Services.getInstance(\"h2-applicationconfig.properties\");\n PrestamoUsuario prestamo =null;\n try {\n //Insercion en BD\n stmt.execute(\"INSERT INTO ROLES(rol) values ('estudiante')\");\n stmt.execute(\"INSERT INTO USUARIOS (id,nombre,correo,contrasena) VALUES (124,'PEDRO PEREZ','[email protected]','1test1')\");\n stmt.execute(\"INSERT INTO ROLES_USUARIOS(USUARIOS_id,ROLES_rol) values (124,'estudiante')\");\n stmt.execute(\"INSERT INTO MODELOS (nombre,clase,vidaUtil,valor,seguro,foto) values ('modelo1','abcd',100,200000,true,null)\"); \n stmt.execute(\"INSERT INTO EQUIPOS (serial,nombre,placa,marca,descripcion,estado,subestados,proveedor,Modelos_nombre) VALUES (123,'Multimetro',456,'falsa','Equipo funcional y de buena calidad','activo','almacen','Leonardo Herrera','modelo1')\");\n stmt.execute(\"INSERT INTO PRESTAMOS (USUARIOS_id,EQUIPOS_serial,fechaExpedicion,fechaVencimiento,tipoPrestamo) VALUES (124,123,'2015-01-01 00:00:00',null,'prestamo diario')\");\n conn.commit();\n conn.close(); \n } catch (SQLException ex) {\n Logger.getLogger(DevolucionTest.class.getName()).log(Level.SEVERE, null, ex);\n conn.rollback();\n conn.close();\n }\n Set<PrestamoUsuario> prestamos = servicios.loadPrestamos();\n for (PrestamoUsuario p:prestamos){\n \n }\n }", "public void insereDadosMySQL(String tabela, String colunas, boolean matricula, boolean data, boolean brasao2) throws IOException {\n status = true;\n ByteArrayOutputStream bytesImg = new ByteArrayOutputStream();\n ImageIO.write((BufferedImage) imagemRedimensionada, extensao, bytesImg);\n bytesImg.flush();\n byte[] logo = bytesImg.toByteArray();\n bytesImg.close();\n /**\n * Transforma a imagem do logotipo e brasao em um array de bytes para enviar ao banco de dados\n */\n byte[] brasao = null;\n if (brasao2) {\n ByteArrayOutputStream bytesImg2 = new ByteArrayOutputStream();\n ImageIO.write((BufferedImage) imagemRedimensionada2, extensao2, bytesImg2);\n bytesImg2.flush();\n brasao = bytesImg2.toByteArray();\n bytesImg2.close();\n }\n\n String[] aux = colunas.split(\",\");\n String values = \"?\";\n for (int i = 0; i < aux.length - 1; i++) {\n values += \",?\";\n }\n try {\n PreparedStatement p = conexao.prepareStatement(\"INSERT INTO \" + tabela + \"(\" + colunas + \") VALUES (\" + values + \")\");\n // System.out.println(\"INSERT INTO \" + tabela + \"(\" + colunas + \") VALUES (\" + values + \")\");\n p.setString(1, dadosTitulo);\n p.setString(2, dados);\n p.setString(3, dados2);\n p.setString(4, dados3);\n if (matricula) {\n p.setString(5, this.matricula.getText());\n if (data) {\n p.setDate(6, new java.sql.Date(dataProva.getDate().getTime()));\n p.setString(7, arquivo.getName());\n p.setBytes(8, logo);\n if (brasao2) {\n p.setString(9, arquivo2.getName());\n p.setBytes(10, brasao);\n }\n } else {\n p.setDate(6, new java.sql.Date(dataRecebimento.getDate().getTime()));\n p.setDate(7, new java.sql.Date(dataEntrega.getDate().getTime()));\n p.setString(8, arquivo.getName());\n p.setBytes(9, logo);\n if (brasao2) {\n p.setString(10, arquivo2.getName());\n p.setBytes(11, brasao);\n }\n }\n } else {\n if (data) {\n p.setDate(5, new java.sql.Date(dataProva.getDate().getTime()));\n p.setString(6, arquivo.getName());\n p.setBytes(7, logo);\n if (brasao2) {\n p.setString(8, arquivo2.getName());\n p.setBytes(9, brasao);\n }\n } else {\n p.setDate(5, new java.sql.Date(dataRecebimento.getDate().getTime()));\n p.setDate(6, new java.sql.Date(dataEntrega.getDate().getTime()));\n p.setString(7, arquivo.getName());\n p.setBytes(8, logo);\n if (brasao != null) {\n p.setString(9, arquivo2.getName());\n p.setBytes(10, brasao);\n }\n }\n }\n p.executeUpdate();\n } catch (SQLException ex) {\n System.out.println(ex.getMessage());\n // System.out.println(\"catch 2\");\n }\n }", "public void buscarxdescrip() {\r\n try {\r\n modelo.setDescripcion(vista.jTbdescripcion.getText());//C.P.M le enviamos al modelo la descripcion y consultamos\r\n rs = modelo.Buscarxdescrip();//C.P.M cachamos el resultado de la consulta\r\n\r\n DefaultTableModel buscar = new DefaultTableModel() {//C.P.M creamos el modelo de la tabla\r\n @Override\r\n public boolean isCellEditable(int rowIndex, int vColIndex) {\r\n return false;\r\n }\r\n };\r\n vista.jTbuscar.setModel(buscar);//C.P.M le mandamos el modelo a la tabla\r\n modelo.estructuraProductos(buscar);//C.P.M obtenemos la estructura de la tabla \"encabezados\"\r\n ResultSetMetaData rsMd = rs.getMetaData();//C.P.M obtenemos los metadatos de la consulta\r\n int cantidadColumnas = rsMd.getColumnCount();//C.P.M obtenemos la cantidad de columnas de la consulta\r\n while (rs.next()) {//C.P.M recorremos el resultado\r\n Object[] fila = new Object[cantidadColumnas];//C.P.M creamos un arreglo con una dimencion igual a la cantidad de columnas\r\n for (int i = 0; i < cantidadColumnas; i++) { //C.P.M lo recorremos \r\n fila[i] = rs.getObject(i + 1); //C.P.M vamos insertando los resultados dentor del arreglo\r\n }\r\n buscar.addRow(fila);//C.P.M y lo agregamos como una nueva fila a la tabla\r\n }\r\n\r\n } catch (SQLException ex) {\r\n JOptionPane.showMessageDialog(null, \"Ocurrio un error al buscar producto por descripcion\");\r\n }\r\n }", "public java.sql.ResultSet CitasActivasSoloMedico(String CodigoMedico){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"SELECT phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo,su.usu_codigo,SUBSTRING(phm.horas, 7, 3) AS jornada FROM pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes,seg_datos_personales sdp,seg_usuario su WHERE pmd.codigo = \"+CodigoMedico+\" AND phm.codMedico_fk = pmd.codigo AND pmd.codEspe_fk = pes.codigo AND phm.estado='0' AND sdp.numeroDocumento = pmd.numeroDocumento AND su.dat_codigo_fk = sdp.dat_codigo AND phm.fechas >= CURDATE() ORDER BY phm.fechas,jornada,phm.horas LIMIT 100 \");\r\n \t//System.out.println(\"SELECT ahm.codigo,ahm.horas,ahm.fechas,ahm.NombrePaciente,aes.nombre_especialidad,amd.nombre,amd.apellidos,ahm.estado,aes.codigo,amd.codigo,su.usu_codigo,SUBSTRING(ahm.horas, 7, 3) AS jornada FROM agm_horariomedico ahm,agm_medico amd,agm_especialidad aes,seg_datos_personales sdp,seg_usuario su WHERE amd.codigo = \"+CodigoMedico+\" AND ahm.codMedico_fk = amd.codigo AND amd.codEspe_fk = aes.codigo AND ahm.estado='0' AND sdp.numeroDocumento = amd.numeroDocumento AND su.dat_codigo_fk = sdp.dat_codigo AND ahm.fechas >= CURDATE() ORDER BY ahm.fechas,jornada,ahm.horas LIMIT 100 \");\r\n \t\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultapormedicofecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "public java.sql.ResultSet consultapormedicofecha2(String CodigoMedico,String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"SELECT phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo,su.usu_codigo,SUBSTRING(phm.horas,7,3) AS jornada FROM pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes,seg_datos_personales sdp,seg_usuario su WHERE pmd.codigo=\"+CodigoMedico+\" AND phm.fechas='\"+fecha+\"' AND phm.codMedico_fk = pmd.codigo AND pmd.codEspe_fk = pes.codigo AND sdp.numeroDocumento=pmd.numeroDocumento AND su.dat_codigo_fk=sdp.dat_codigo AND phm.fechas >= CURDATE() ORDER BY jornada,phm.horas \");\r\n \tSystem.out.println(\"SELECT phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo,su.usu_codigo,SUBSTRING(phm.horas,7,3) AS jornada FROM pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes,seg_datos_personales sdp,seg_usuario su WHERE pmd.codigo=\"+CodigoMedico+\" AND phm.fechas='\"+fecha+\"' AND phm.codMedico_fk = pmd.codigo AND pmd.codEspe_fk = pes.codigo AND sdp.numeroDocumento=pmd.numeroDocumento AND su.dat_codigo_fk=sdp.dat_codigo AND phm.fechas >= CURDATE() ORDER BY jornada,phm.horas \");\r\n \t\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultapormedicofecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "public List<ReporteRetencionesResumido> getRetencionSRIResumido(int mes, int anio, int idOrganizacion)\r\n/* 27: */ {\r\n/* 28: 58 */ String sql = \"SELECT new ReporteRetencionesResumido(f.fechaEmisionRetencion,f.fechaRegistro,f.fechaEmision, CONCAT(f.establecimiento,'-',f.puntoEmision,'-',f.numero),\\tf.identificacionProveedor,c.descripcion,CASE WHEN c.tipoConceptoRetencion = :tipoConceptoFUENTE then (SUM(COALESCE(dfp.baseImponibleRetencion, 0)+COALESCE(dfp.baseImponibleTarifaCero, 0) +COALESCE(dfp.baseImponibleDiferenteCero, 0)+COALESCE(dfp.baseImponibleNoObjetoIva, 0))) else COALESCE(dfp.baseImponibleRetencion, 0) end,dfp.porcentajeRetencion,dfp.valorRetencion,\\tc.codigo,CASE WHEN c.tipoConceptoRetencion = :tipoConceptoIVA then 'IVA' WHEN c.tipoConceptoRetencion = :tipoConceptoFUENTE then 'FUENTE' WHEN c.tipoConceptoRetencion = :tipoConceptoISD then 'ISD' else '' end,f.numeroRetencion) FROM DetalleFacturaProveedorSRI dfp INNER JOIN dfp.facturaProveedorSRI f INNER JOIN dfp.conceptoRetencionSRI c WHERE MONTH(f.fechaRegistro) =:mes\\tAND YEAR(f.fechaRegistro) =:anio AND f.estado!=:estadoAnulado AND f.indicadorSaldoInicial!=true AND f.idOrganizacion = :idOrganizacion\\tGROUP BY c.codigo,f.numero,f.puntoEmision,\\tf.establecimiento, f.identificacionProveedor,\\tc.descripcion,dfp.baseImponibleRetencion,dfp.porcentajeRetencion,dfp.valorRetencion,f.fechaEmisionRetencion,f.fechaRegistro,f.fechaEmision,f.numeroRetencion, c.tipoConceptoRetencion ORDER BY c.tipoConceptoRetencion, c.codigo \";\r\n/* 29: */ \r\n/* 30: */ \r\n/* 31: */ \r\n/* 32: */ \r\n/* 33: */ \r\n/* 34: */ \r\n/* 35: */ \r\n/* 36: */ \r\n/* 37: */ \r\n/* 38: */ \r\n/* 39: */ \r\n/* 40: */ \r\n/* 41: */ \r\n/* 42: */ \r\n/* 43: */ \r\n/* 44: */ \r\n/* 45: 75 */ Query query = this.em.createQuery(sql);\r\n/* 46: 76 */ query.setParameter(\"mes\", Integer.valueOf(mes));\r\n/* 47: 77 */ query.setParameter(\"anio\", Integer.valueOf(anio));\r\n/* 48: 78 */ query.setParameter(\"estadoAnulado\", Estado.ANULADO);\r\n/* 49: 79 */ query.setParameter(\"idOrganizacion\", Integer.valueOf(idOrganizacion));\r\n/* 50: 80 */ query.setParameter(\"tipoConceptoIVA\", TipoConceptoRetencion.IVA);\r\n/* 51: 81 */ query.setParameter(\"tipoConceptoFUENTE\", TipoConceptoRetencion.FUENTE);\r\n/* 52: 82 */ query.setParameter(\"tipoConceptoISD\", TipoConceptoRetencion.ISD);\r\n/* 53: 83 */ List<ReporteRetencionesResumido> lista = query.getResultList();\r\n/* 54: */ \r\n/* 55: 85 */ return lista;\r\n/* 56: */ }", "private void refreshData() {\n try {\n setDataSource(statement.executeQuery(\"select * from \" + sourceTableName));\n } catch (SQLException e) {\n System.err.println(\"Can't execute statement\");\n e.printStackTrace();\n }\n }", "public EstadosSql() {\r\n }", "public RespuestaBD modificarRegistro(int codigoFlujo, int secuencia, int servicioInicio, int accion, int codigoEstado, int servicioDestino, String nombreProcedimiento, String correoDestino, String enviar, String mismoProveedor, String mismomismoCliente, String estado, int caracteristica, int caracteristicaValor, int caracteristicaCorreo, String metodoSeleccionProveedor, String indCorreoCliente, String indHermana, String indHermanaCerrada, String indfuncionario, String usuarioModificacion) {\n/* 437 */ RespuestaBD rta = new RespuestaBD();\n/* */ \n/* */ try {\n/* 440 */ String s = \"update wkf_detalle set servicio_inicio=\" + servicioInicio + \",\" + \" accion=\" + accion + \",\" + \" codigo_estado=\" + codigoEstado + \",\" + \" servicio_destino=\" + ((servicioDestino == 0) ? \"null\" : Integer.valueOf(servicioDestino)) + \",\" + \" nombre_procedimiento='\" + nombreProcedimiento + \"',\" + \" correo_destino='\" + correoDestino + \"',\" + \" enviar_solicitud='\" + enviar + \"',\" + \" ind_mismo_proveedor='\" + mismoProveedor + \"',\" + \" ind_mismo_cliente='\" + mismomismoCliente + \"',\" + \" estado='\" + estado + \"',\" + \" caracteristica=\" + ((caracteristica == 0) ? \"null\" : (\"\" + caracteristica)) + \",\" + \" valor_caracteristica=\" + ((caracteristicaValor == 0) ? \"null\" : (\"\" + caracteristicaValor)) + \",\" + \" caracteristica_correo=\" + ((caracteristicaCorreo == 0) ? \"null\" : (\"\" + caracteristicaCorreo)) + \",\" + \" metodo_seleccion_proveedor=\" + ((metodoSeleccionProveedor.length() == 0) ? \"null\" : (\"'\" + metodoSeleccionProveedor + \"'\")) + \",\" + \" ind_correo_clientes=\" + ((indCorreoCliente.length() == 0) ? \"null\" : (\"'\" + indCorreoCliente + \"'\")) + \",\" + \" enviar_hermana=\" + ((indHermana.length() == 0) ? \"null\" : (\"'\" + indHermana + \"'\")) + \",\" + \" enviar_si_hermana_cerrada=\" + ((indHermanaCerrada.length() == 0) ? \"null\" : (\"'\" + indHermanaCerrada + \"'\")) + \",\" + \" ind_cliente_inicial=\" + ((indfuncionario.length() == 0) ? \"null\" : (\"'\" + indfuncionario + \"'\")) + \",\" + \" usuario_modificacion='\" + usuarioModificacion + \"',\" + \" fecha_modificacion=\" + Utilidades.getFechaBD() + \"\" + \" where\" + \" codigo_flujo=\" + codigoFlujo + \" and secuencia=\" + secuencia + \"\";\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 465 */ rta = this.dat.executeUpdate2(s);\n/* */ }\n/* 467 */ catch (Exception e) {\n/* 468 */ e.printStackTrace();\n/* 469 */ Utilidades.writeError(\"FlujoDetalleDAO:modificarRegistro \", e);\n/* 470 */ rta.setMensaje(e.getMessage());\n/* */ } \n/* 472 */ return rta;\n/* */ }", "private boolean insertarTablaRelacionadas(java.sql.Connection conn,int intCodEmp, int intCodLoc,int intCodTipDoc,int intCodDoc,int intCodCot){\r\n java.sql.Statement stmLoc;\r\n java.sql.ResultSet rstLocFacVen,rstLocIng; \r\n boolean blnRes = true;\r\n try{\r\n if(conn!=null){\r\n stmLoc = conn.createStatement();\r\n arlDatFacVen = new ArrayList();\r\n arlDatIngGen = new ArrayList();\r\n \r\n strSql=\"\";\r\n strSql+=\" SELECT a2.co_emp, a2.co_loc, a2.co_tipDoc, a2.co_doc,a3.co_reg, a3.co_itm, ABS(a3.nd_can) as nd_can \\n\";\r\n strSql+=\" FROM( \\n\";\r\n strSql+=\" SELECT co_empRelCabMovInv, co_locRelCabMovInv, co_tipDocRelCabMovInv, co_docRelCabMovInv \\n\";\r\n strSql+=\" FROM tbm_cabSegMovInv \\n\";\r\n strSql+=\" WHERE co_empRelCabMovInv=\"+intCodEmp+\" AND co_locRelCabMovInv=\"+intCodLoc+\" AND \\n\";\r\n strSql+=\" co_tipDocRelCabMovInv=\"+intCodTipDoc+\" AND co_docRelCabMovInv=\"+intCodDoc+\" \\n\";\r\n strSql+=\" ) as a1 \\n\";\r\n strSql+=\" INNER JOIN tbm_cabMovInv as a2 ON (a1.co_empRelCabMovInv=a2.co_emp AND a1.co_locRelCabMovInv=a2.co_loc AND \\n\";\r\n strSql+=\" a1.co_tipDocRelCabMovInv=a2.co_tipDoc AND a1.co_docRelCabMovInv=a2.co_doc ) \\n\";\r\n strSql+=\" INNER JOIN tbm_detMovInv as a3 ON (a2.co_emp=a3.co_emp AND a2.co_loc=a3.co_loc AND a2.co_tipDoc=a3.co_tipDoc AND a2.co_doc=a3.co_doc) \\n\";\r\n System.out.println(\"insertarTablaRelacionadas... \"+strSql);\r\n rstLocFacVen = stmLoc.executeQuery(strSql);\r\n while(rstLocFacVen.next()){\r\n arlRegFacVen = new ArrayList();\r\n arlRegFacVen.add(INT_ARL_COD_EMP_REL, rstLocFacVen.getInt(\"co_emp\"));\r\n arlRegFacVen.add(INT_ARL_COD_LOC_REL, rstLocFacVen.getInt(\"co_loc\"));\r\n arlRegFacVen.add(INT_ARL_COD_TIP_DOC_REL, rstLocFacVen.getInt(\"co_tipDoc\"));\r\n arlRegFacVen.add(INT_ARL_COD_DOC_REL, rstLocFacVen.getInt(\"co_doc\"));\r\n arlRegFacVen.add(INT_ARL_COD_REG_REL_AUX, rstLocFacVen.getInt(\"co_reg\"));\r\n arlRegFacVen.add(INT_ARL_COD_ITM_REL, rstLocFacVen.getInt(\"co_itm\"));\r\n arlRegFacVen.add(INT_ARL_CAN_REL, rstLocFacVen.getDouble(\"nd_can\"));\r\n arlRegFacVen.add(INT_ARL_COD_CAN_UTI, 0.00);\r\n arlDatFacVen.add(arlRegFacVen); \r\n }\r\n rstLocFacVen.close();\r\n rstLocFacVen=null;\r\n\r\n strSql=\"\";\r\n strSql+=\" SELECT a1.co_empRelCabMovInv, a1.co_locRelCabMovInv, a1.co_tipDocRelCabMovInv, \\n\";\r\n strSql+=\" a1.co_docRelCabMovInv,a3.co_reg as co_regRel, a3.co_itm, a3.nd_can \\n\";\r\n strSql+=\" FROM tbm_cabSegMovInv as a1 \\n\";\r\n strSql+=\" INNER JOIN tbm_cabMovInv as a2 ON (a1.co_empRelCabMovInv=a2.co_emp AND a1.co_locRelCabMovInv=a2.co_loc AND \\n\";\r\n strSql+=\" a1.co_tipDocRelCabMovInv=a2.co_tipDoc AND a1.co_docRelCabMovInv=a2.co_doc) \\n\";\r\n strSql+=\" INNER JOIN tbm_detMovInv as a3 ON (a2.co_emp=a3.co_emp AND a2.co_loc=a3.co_loc AND a2.co_tipDoc=a3.co_tipDoc AND a2.co_doc=a3.co_doc) \\n\";\r\n strSql+=\" RIGHT JOIN tbr_detMovInv as a5 ON (a2.co_emp=a5.co_empRel AND a2.co_loc=a5.co_locRel AND a2.co_tipDoc=a5.co_tipDocRel AND a2.co_doc=a5.co_docRel) \\n\";\r\n strSql+=\" WHERE a1.co_seg=(select co_seg from tbm_cabSegMovInv \\n\";\r\n strSql+=\" where co_empRelCabCotVen=\"+intCodEmp+\" and co_locRelCabCotVen=\"+intCodLoc+\" \\n\";\r\n strSql+=\" and co_cotRelCabCotVen=\"+intCodCot+\" GROUP BY co_seg ) and a3.nd_can > 0 \\n \";\r\n strSql+=\" GROUP BY a1.co_empRelCabMovInv, a1.co_locRelCabMovInv, a1.co_tipDocRelCabMovInv, \";\r\n strSql+=\" a1.co_docRelCabMovInv,a3.co_reg , a2.co_cli, a3.co_itm, a3.nd_can \";\r\n strSql+=\" ORDER BY a3.nd_can DESC \";\r\n System.out.println(\"insertarTablaRelacionadas 2 ... \"+strSql);\r\n rstLocIng = stmLoc.executeQuery(strSql);\r\n while(rstLocIng.next()){\r\n arlRegIngGen = new ArrayList();\r\n arlRegIngGen.add(INT_ARL_COD_EMP_REL, rstLocIng.getInt(\"co_empRelCabMovInv\"));\r\n arlRegIngGen.add(INT_ARL_COD_LOC_REL, rstLocIng.getInt(\"co_locRelCabMovInv\"));\r\n arlRegIngGen.add(INT_ARL_COD_TIP_DOC_REL, rstLocIng.getInt(\"co_tipDocRelCabMovInv\"));\r\n arlRegIngGen.add(INT_ARL_COD_DOC_REL, rstLocIng.getInt(\"co_docRelCabMovInv\"));\r\n arlRegIngGen.add(INT_ARL_COD_REG_REL_AUX, rstLocIng.getInt(\"co_regRel\"));\r\n arlRegIngGen.add(INT_ARL_COD_ITM_REL, rstLocIng.getInt(\"co_itm\"));\r\n arlRegIngGen.add(INT_ARL_CAN_REL, rstLocIng.getDouble(\"nd_can\"));\r\n arlRegIngGen.add(INT_ARL_COD_CAN_UTI, 0.00);\r\n arlDatIngGen.add(arlRegIngGen); \r\n }\r\n rstLocIng.close();\r\n rstLocIng=null;\r\n \r\n String strIng=\"\";\r\n for(int i=0;i<arlDatFacVen.size();i++){\r\n for(int b=0;b<arlDatIngGen.size();b++){\r\n if(objUti.getIntValueAt(arlDatFacVen, i, INT_ARL_COD_ITM_REL)==objUti.getIntValueAt(arlDatIngGen, b, INT_ARL_COD_ITM_REL)){\r\n if(objUti.getDoubleValueAt(arlDatIngGen, b, INT_ARL_CAN_REL)>objUti.getDoubleValueAt(arlDatIngGen, b, INT_ARL_COD_CAN_UTI)){\r\n strSql=\"\";\r\n strSql+=\" INSERT INTO tbr_detMovInv(co_emp,co_loc,co_tipdoc,co_doc,co_reg,st_reg, \\n\";\r\n strSql+=\" co_emprel,co_locrel,co_tipdocrel,co_docrel,co_regrel) \\n\";\r\n strSql+=\" VALUES (\"+objUti.getIntValueAt(arlDatFacVen, i, INT_ARL_COD_EMP_REL)+\",\";\r\n strSql+=\" \"+objUti.getIntValueAt(arlDatFacVen, i, INT_ARL_COD_LOC_REL)+\",\" ;\r\n strSql+=\" \"+objUti.getIntValueAt(arlDatFacVen, i, INT_ARL_COD_TIP_DOC_REL)+\",\";\r\n strSql+=\" \"+objUti.getIntValueAt(arlDatFacVen, i, INT_ARL_COD_DOC_REL)+\",\";\r\n strSql+=\" \"+objUti.getIntValueAt(arlDatFacVen, i, INT_ARL_COD_REG_REL_AUX)+\",'A', \\n\";\r\n strSql+=\" \"+objUti.getIntValueAt(arlDatIngGen, b, INT_ARL_COD_EMP_REL)+\",\";\r\n strSql+=\" \"+objUti.getIntValueAt(arlDatIngGen, b, INT_ARL_COD_LOC_REL)+\",\";\r\n strSql+=\" \"+objUti.getIntValueAt(arlDatIngGen, b, INT_ARL_COD_TIP_DOC_REL)+\",\"; \r\n strSql+=\" \"+objUti.getIntValueAt(arlDatIngGen, b, INT_ARL_COD_DOC_REL)+\",\";\r\n strSql+=\" \"+objUti.getIntValueAt(arlDatIngGen, b, INT_ARL_COD_REG_REL_AUX)+\");\";\r\n strIng+=strSql;\r\n if(objUti.getDoubleValueAt(arlDatFacVen, i, INT_ARL_CAN_REL)<=objUti.getDoubleValueAt(arlDatIngGen, b, INT_ARL_CAN_REL)){\r\n // FACTURA 5 INGRESO 10 // le sumo lo de la factura\r\n objUti.setDoubleValueAt(arlDatIngGen, b, INT_ARL_COD_CAN_UTI, (objUti.getDoubleValueAt(arlDatIngGen, b, INT_ARL_COD_CAN_UTI)+objUti.getDoubleValueAt(arlDatFacVen, i, INT_ARL_CAN_REL)));\r\n }\r\n else{\r\n //factura 10 ing 4// le sumo el ingreso\r\n objUti.setDoubleValueAt(arlDatIngGen, b, INT_ARL_COD_CAN_UTI, (objUti.getDoubleValueAt(arlDatIngGen, b, INT_ARL_COD_CAN_UTI)+objUti.getDoubleValueAt(arlDatIngGen, b, INT_ARL_CAN_REL)));\r\n }\r\n }\r\n }\r\n }\r\n }\r\n System.out.println(\"insertarTablaRelacionadas: \\n\" + strIng);\r\n stmLoc.executeUpdate(strIng);\r\n \r\n stmLoc.close();\r\n stmLoc=null;\r\n }\r\n }\r\n catch (SQLException Evt) {\r\n blnRes = false;\r\n System.err.println(\"ERROR \" + Evt.toString());\r\n objUti.mostrarMsgErr_F1(jifCnt, Evt);\r\n } \r\n catch (Exception Evt) {\r\n blnRes = false;\r\n System.err.println(\"ERROR \" + Evt.toString());\r\n objUti.mostrarMsgErr_F1(jifCnt, Evt);\r\n }\r\n return blnRes;\r\n }", "public String validarResponsableYaAsignado (DTOResponsable dtoe) throws MareException { \n UtilidadesLog.info(\"DAOZON.validarResponsableYaAsignado(DTOResponsable dtoe): Entrada\");\n StringBuffer consulta = new StringBuffer();\n Vector parametros = new Vector();\n RecordSet rs = new RecordSet();\n \n String asignado = null;\n String unidadAdministrativa = null;\n Long marca = null;\n Long canal = null;\n Long pais = null;\n\n //Recuperamos el pais, marca y canal de la Unidad Administrativa \n BelcorpService bs = UtilidadesEJB.getBelcorpService();\n\n /*if (dtoe.getIndUA().intValue() == 1) { \n consulta.append(\" SELECT pais_oid_pais PAIS, marc_oid_marc MARCA, cana_oid_cana canal \");\n consulta.append(\" FROM zon_sub_geren_venta \");\n consulta.append(\" WHERE oid_subg_vent = ? \");\n unidadAdministrativa = \"Subgerencia\";\n }*/\n if (dtoe.getIndUA().intValue() == 2){\n consulta.append(\" SELECT pais_oid_pais PAIS, marc_oid_marc MARCA, cana_oid_cana canal \");\n consulta.append(\" FROM zon_regio \");\n consulta.append(\" WHERE oid_regi = ? \");\n unidadAdministrativa = \"Region\";\n }\n if (dtoe.getIndUA().intValue() == 3){\n consulta.append(\" SELECT pais_oid_pais PAIS, marc_oid_marc MARCA, cana_oid_cana canal \");\n consulta.append(\" FROM zon_zona \");\n consulta.append(\" WHERE oid_zona = ? \");\n unidadAdministrativa = \"Zona\";\n }\n /*if (dtoe.getIndUA().intValue() == 4){\n consulta.append(\" SELECT zon.pais_oid_pais PAIS, zon.marc_oid_marc MARCA, zon.cana_oid_cana canal \");\n consulta.append(\" FROM zon_zona zon, zon_secci sec \");\n consulta.append(\" WHERE sec.zzon_oid_zona = zon.oid_zona \"); \n consulta.append(\" AND sec.oid_secc = ? \");\n unidadAdministrativa = \"Seccion\"; \n }*/\n parametros.add(dtoe.getOidUA());\n \n try {\n rs = bs.dbService.executePreparedQuery(consulta.toString(), parametros);\n UtilidadesLog.debug(\"rs: \" + rs);\n } catch (Exception e) {\n codigoError = CodigosError.ERROR_DE_ACCESO_A_BASE_DE_DATOS;\n throw new MareException(e, UtilidadesError.armarCodigoError(codigoError));\n }\n\n if (rs.esVacio()) {\n UtilidadesLog.debug(\"****DAOZON.validarResponsableYaAsignado: No existe Unidad Administrativa \");\t\t\t\t\n String sCodigoError = CodigosError.ERROR_DE_PETICION_DE_DATOS_NO_EXISTENTE;\n throw new MareException(new Exception(), UtilidadesError.armarCodigoError(sCodigoError));\n } else {\n pais = new Long(((BigDecimal)rs.getValueAt(0,\"PAIS\")).longValue());\n marca = new Long(((BigDecimal)rs.getValueAt(0,\"MARCA\")).longValue());\n canal = new Long(((BigDecimal)rs.getValueAt(0,\"CANAL\")).longValue());\n }\n\n //Buscamos si el cliente es responsable en otra unidad administrativa\n //para el pais, marca y canal de la unidad administrativa a asignar\n parametros = new Vector(); \n consulta = new StringBuffer();\n /*consulta.append(\" SELECT 'SubGerencia: ' || zon_sub_geren_venta.des_subg_vent DESCUNIDADADMIN \");\n consulta.append(\" FROM zon_sub_geren_venta, mae_clien \");\n consulta.append(\" WHERE mae_clien.oid_clie = zon_sub_geren_venta.clie_oid_clie \"); \n consulta.append(\" AND mae_clien.oid_clie = ? \");\n parametros.add(dtoe.getOidResponsable());\n consulta.append(\" AND zon_sub_geren_venta.pais_oid_pais = ? \");\n parametros.add(pais);\n consulta.append(\" AND zon_sub_geren_venta.marc_oid_marc = ? \");\n parametros.add(marca);\n consulta.append(\" AND zon_sub_geren_venta.cana_oid_cana = ? \");\n parametros.add(canal);\n consulta.append(\" AND zon_sub_geren_venta.ind_borr = 0 \");\n\n consulta.append(\" UNION \");*/\n \n consulta.append(\" SELECT 'Region: ' || zon_regio.des_regi DESCUNIDADADMIN \");\n consulta.append(\" FROM mae_clien, zon_sub_geren_venta, zon_regio \");\n consulta.append(\" WHERE mae_clien.oid_clie = zon_regio.clie_oid_clie \");\n consulta.append(\" AND mae_clien.oid_clie = ? \");\n parametros.add(dtoe.getOidResponsable());\n consulta.append(\" AND zon_regio.zsgv_oid_subg_vent = zon_sub_geren_venta.oid_subg_vent \");\n consulta.append(\" AND zon_sub_geren_venta.pais_oid_pais = ? \");\n parametros.add(pais);\n consulta.append(\" AND zon_sub_geren_venta.marc_oid_marc = ? \");\n parametros.add(marca);\n consulta.append(\" AND zon_sub_geren_venta.cana_oid_cana = ? \");\n parametros.add(canal);\n consulta.append(\" AND zon_sub_geren_venta.ind_borr = 0 \");\n consulta.append(\" AND zon_regio.ind_borr = 0 \");\n \n consulta.append(\" UNION \");\n \n consulta.append(\" SELECT 'Zona: ' || zon_zona.des_zona DESCUNIDADADMIN \");\n consulta.append(\" FROM zon_sub_geren_venta, zon_regio, zon_zona, mae_clien \");\n consulta.append(\" WHERE zon_zona.clie_oid_clie = mae_clien.oid_clie \");\n consulta.append(\" AND mae_clien.oid_clie = ? \");\n parametros.add(dtoe.getOidResponsable());\n consulta.append(\" AND zon_sub_geren_venta.pais_oid_pais = ? \");\n parametros.add(pais);\n consulta.append(\" AND zon_sub_geren_venta.marc_oid_marc = ? \");\n parametros.add(marca);\n consulta.append(\" AND zon_sub_geren_venta.cana_oid_cana = ? \");\n parametros.add(canal);\n consulta.append(\" AND zon_regio.zsgv_oid_subg_vent = zon_sub_geren_venta.oid_subg_vent \");\n consulta.append(\" AND zon_zona.zorg_oid_regi = zon_regio.oid_regi \");\n consulta.append(\" AND zon_zona.ind_borr = 0 \");\n consulta.append(\" AND zon_sub_geren_venta.ind_borr = 0 \");\n consulta.append(\" AND zon_regio.ind_borr = 0 \");\n \n /*consulta.append(\" UNION \");\n \n consulta.append(\" SELECT 'Seccion: ' || zon_secci.des_secci DESCUNIDADADMIN \");\n consulta.append(\" FROM zon_sub_geren_venta, zon_regio, \");\n consulta.append(\" zon_zona, zon_secci, mae_clien \");\n consulta.append(\" WHERE zon_secci.clie_oid_clie = mae_clien.oid_clie \");\n consulta.append(\" AND mae_clien.oid_clie = ? \");\n parametros.add(dtoe.getOidResponsable());\n consulta.append(\" AND zon_sub_geren_venta.pais_oid_pais = ? \");\n parametros.add(pais);\n consulta.append(\" AND zon_sub_geren_venta.marc_oid_marc = ? \");\n parametros.add(marca);\n consulta.append(\" AND zon_sub_geren_venta.cana_oid_cana = ? \");\n parametros.add(canal);\n consulta.append(\" AND zon_regio.zsgv_oid_subg_vent = zon_sub_geren_venta.oid_subg_vent \");\n consulta.append(\" AND zon_zona.zorg_oid_regi = zon_regio.oid_regi \");\n consulta.append(\" AND zon_secci.zzon_oid_zona = zon_zona.oid_zona \"); \n consulta.append(\" AND zon_secci.ind_borr = 0 \");\n consulta.append(\" AND zon_zona.ind_borr = 0 \");\n consulta.append(\" AND zon_sub_geren_venta.ind_borr = 0 \");\n consulta.append(\" AND zon_regio.ind_borr = 0 \");*/\n\n try {\n rs = bs.dbService.executePreparedQuery(consulta.toString(), parametros);\n UtilidadesLog.debug(\"rs: \" + rs);\n } catch (Exception e) {\n codigoError = CodigosError.ERROR_DE_ACCESO_A_BASE_DE_DATOS;\n throw new MareException(e, UtilidadesError.armarCodigoError(codigoError));\n }\n\n if (rs.esVacio()) {\n UtilidadesLog.debug(\"****DAOZON.validarResponsableYaAsignado: No hay datos \");\t\t\t\t\n }\n else {\n UtilidadesLog.debug(\"****DAOZON.validarResponsableYaAsignado: se encontro al menos un cliente \");\t\t\t\t\n asignado = rs.getValueAt(0,\"DESCUNIDADADMIN\").toString();\n }\n \n UtilidadesLog.info(\"DAOZON.validarResponsableYaAsignado(DTOResponsable dtoe): Salida\"); \n \n return asignado;\n }", "public List<Object[]> getRetencionesAnuladas(int mes, int anio, int idOrganizacion, Sucursal sucursalFP, Sucursal sucursalRetencion, PuntoDeVenta puntoVentaRetencion, String orden, TipoComprobanteSRI tipoComprobante)\r\n/* 125: */ {\r\n/* 126:175 */ StringBuilder sql = new StringBuilder();\r\n/* 127: */ \r\n/* 128:177 */ sql.append(\" SELECT a.fechaEmisionDocumento, f.fechaRegistro, f.fechaEmision, CONCAT(f.establecimiento,'-',f.puntoEmision,'-',f.numero), f.identificacionProveedor, \");\r\n/* 129: */ \r\n/* 130:179 */ sql.append(\" \\t'', f.montoIva*0, f.montoIva*0, f.montoIva*0, '', '', \");\r\n/* 131: */ \r\n/* 132:181 */ sql.append(\" \\tCONCAT(a.establecimiento,'-',a.puntoEmision,'-',a.numeroDesde), f.montoIva*0, f.montoIva*0, f.montoIva*0, f.nombreProveedor, \");\r\n/* 133: */ \r\n/* 134:183 */ sql.append(\"\\tf.montoIva*0, f.montoIva*0, '', a.autorizacion, f.fechaRegistro, f.autorizacion, '', 'ANULADO', f.idFacturaProveedorSRI,'' \");\r\n/* 135:184 */ sql.append(\" FROM AnuladoSRI a, FacturaProveedorSRI f \");\r\n/* 136:185 */ sql.append(\" WHERE a.documentoRelacionado = f.idFacturaProveedorSRI \");\r\n/* 137:186 */ sql.append(\" AND a.tipoComprobanteSRI = :tipoComprobante \");\r\n/* 138:187 */ sql.append(\" AND a.anio = :anio AND a.mes = :mes \");\r\n/* 139:188 */ sql.append(\" AND a.idOrganizacion = :idOrganizacion \");\r\n/* 140:189 */ if (sucursalFP != null) {\r\n/* 141:190 */ sql.append(\" AND f.idSucursal = :idSucursal \");\r\n/* 142: */ }\r\n/* 143:192 */ if (sucursalRetencion != null) {\r\n/* 144:193 */ sql.append(\" AND a.establecimiento = :sucursalRetencion \");\r\n/* 145: */ }\r\n/* 146:195 */ if (puntoVentaRetencion != null) {\r\n/* 147:196 */ sql.append(\" AND a.puntoEmision = :puntoVentaRetencion \");\r\n/* 148: */ }\r\n/* 149:198 */ Query query = this.em.createQuery(sql.toString());\r\n/* 150:199 */ query.setParameter(\"mes\", Integer.valueOf(mes));\r\n/* 151:200 */ query.setParameter(\"anio\", Integer.valueOf(anio));\r\n/* 152:201 */ query.setParameter(\"idOrganizacion\", Integer.valueOf(idOrganizacion));\r\n/* 153:202 */ query.setParameter(\"tipoComprobante\", tipoComprobante);\r\n/* 154:203 */ if (sucursalFP != null) {\r\n/* 155:204 */ query.setParameter(\"idSucursal\", Integer.valueOf(sucursalFP.getId()));\r\n/* 156: */ }\r\n/* 157:206 */ if (sucursalRetencion != null) {\r\n/* 158:207 */ query.setParameter(\"sucursalRetencion\", sucursalRetencion.getCodigo());\r\n/* 159: */ }\r\n/* 160:209 */ if (puntoVentaRetencion != null) {\r\n/* 161:210 */ query.setParameter(\"puntoVentaRetencion\", puntoVentaRetencion.getCodigo());\r\n/* 162: */ }\r\n/* 163:213 */ return query.getResultList();\r\n/* 164: */ }", "public Produto consultarProduto(Produto produto) {\r\n ConexaoBDJavaDB conexaoBD = new ConexaoBDJavaDB(\"routeexpress\");\r\n Connection conn = null;\r\n PreparedStatement stmt = null;\r\n ResultSet rs = null;\r\n Produto cerveja = null;\r\n String sql = \"SELECT TBL_CERVEJARIA.ID_CERVEJARIA, TBL_CERVEJARIA.CERVEJARIA, TBL_CERVEJARIA.PAIS, \"\r\n + \"TBL_CERVEJA.ID_CERVEJA, TBL_CERVEJA.ID_CERVEJARIA AS \\\"FK_CERVEJARIA\\\", \"\r\n + \"TBL_CERVEJA.ROTULO, TBL_CERVEJA.PRECO, TBL_CERVEJA.VOLUME, TBL_CERVEJA.TEOR, TBL_CERVEJA.COR, TBL_CERVEJA.TEMPERATURA, \"\r\n + \"TBL_CERVEJA.FAMILIA_E_ESTILO, TBL_CERVEJA.DESCRICAO, TBL_CERVEJA.SABOR, TBL_CERVEJA.IMAGEM_1, TBL_CERVEJA.IMAGEM_2, TBL_CERVEJA.IMAGEM_3 \"\r\n + \"FROM TBL_CERVEJARIA \"\r\n + \"INNER JOIN TBL_CERVEJA \"\r\n + \"ON TBL_CERVEJARIA.ID_CERVEJARIA = TBL_CERVEJA.ID_CERVEJARIA \"\r\n + \"WHERE ID_CERVEJA = ?\";\r\n try {\r\n conn = conexaoBD.obterConexao();\r\n stmt = conn.prepareStatement(sql);\r\n stmt.setInt(1, produto.getIdCerveja());\r\n rs = stmt.executeQuery();\r\n if (rs.next()) {\r\n cerveja = new Produto();\r\n cerveja.setIdCervejaria(rs.getInt(\"ID_CERVEJARIA\"));\r\n cerveja.setCervejaria(rs.getString(\"CERVEJARIA\"));\r\n cerveja.setPais(rs.getString(\"PAIS\"));\r\n cerveja.setIdCerveja(rs.getInt(\"ID_CERVEJA\"));\r\n cerveja.setIdFkCervajaria(rs.getInt(\"FK_CERVEJARIA\"));\r\n cerveja.setRotulo(rs.getString(\"ROTULO\"));\r\n cerveja.setPreco(rs.getString(\"PRECO\"));\r\n cerveja.setVolume(rs.getString(\"VOLUME\"));\r\n cerveja.setTeor(rs.getString(\"TEOR\"));\r\n cerveja.setCor(rs.getString(\"COR\"));\r\n cerveja.setTemperatura(rs.getString(\"TEMPERATURA\"));\r\n cerveja.setFamiliaEEstilo(rs.getString(\"FAMILIA_E_ESTILO\"));\r\n cerveja.setDescricao(rs.getString(\"DESCRICAO\"));\r\n cerveja.setSabor(rs.getString(\"SABOR\"));\r\n cerveja.setImagem1(rs.getString(\"IMAGEM_1\"));\r\n cerveja.setImagem2(rs.getString(\"IMAGEM_2\"));\r\n cerveja.setImagem3(rs.getString(\"IMAGEM_3\"));\r\n } else {\r\n return cerveja;\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (ClassNotFoundException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n if (conn != null) {\r\n try {\r\n conn.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (stmt != null) {\r\n try {\r\n stmt.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (rs != null) {\r\n try {\r\n rs.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }\r\n return cerveja;\r\n }", "private void executeQuery() {\n }", "@SuppressWarnings(\"unchecked\")\n public void consultarCoactivosXLS() throws CirculemosNegocioException {\n\n // consulta la tabla temporal de los 6000 coactivos\n StringBuilder sql = new StringBuilder();\n\n sql.append(\"select [TIPO DOC], [NUMERO DE IDENTIFICACIÓN], [valor multas], [titulo valor], proceso \");\n sql.append(\"from coactivos_xls \");\n sql.append(\"where id_tramite is null and numero_axis is null AND archivo is not null \");\n sql.append(\"AND [titulo valor] IN ('2186721','2187250','2187580','2186845')\");\n\n Query query = em.createNativeQuery(sql.toString());\n\n List<Object[]> listaResultados = Utilidades.safeList(query.getResultList());\n\n Date fechaCoactivo = UtilFecha.buildCalendar().getTime();\n CoactivoDTO coactivoDTOs;\n TipoIdentificacionPersonaDTO tipoIdentificacion;\n List<ObligacionCoactivoDTO> obligacionesCoactivoDTO;\n PersonaDTO personaDTO;\n ProcesoDTO proceso;\n // persiste los resultados en coactivoDTO\n for (Object[] coactivo : listaResultados) {\n coactivoDTOs = new CoactivoDTO();\n // persiste el tipo de indetificacion en TipoIdentificacionPersonaDTO\n personaDTO = new PersonaDTO();\n proceso = new ProcesoDTO();\n tipoIdentificacion = new TipoIdentificacionPersonaDTO();\n obligacionesCoactivoDTO = new ArrayList<>();\n\n tipoIdentificacion.setCodigo((String) coactivo[0]);\n personaDTO.setTipoIdentificacion(tipoIdentificacion);\n coactivoDTOs.setPersona(personaDTO);\n coactivoDTOs.getPersona().setNumeroIdentificacion((String) coactivo[1]);\n\n proceso.setFechaInicio(fechaCoactivo);\n coactivoDTOs.setProceso(proceso);\n coactivoDTOs.setValorTotalObligaciones(BigDecimal\n .valueOf(Double.valueOf(coactivo[2].toString().replaceAll(\"\\\\.\", \"\").replaceAll(\",\", \".\"))));\n coactivoDTOs.setValorTotalCostasProcesales(\n coactivoDTOs.getValorTotalObligaciones().multiply(BigDecimal.valueOf(0.05)));\n coactivoDTOs.getProceso().setObservacion(\"COACTIVO\");\n String[] numeroFactura = coactivo[3].toString().split(\",\");\n // separa los numeros de factura cuando viene mas de uno.\n for (String nFactura : numeroFactura) {\n // consulta por numero de factura el el saldo a capital por cada factura\n sql = new StringBuilder();\n sql.append(\"select nombre, saldo_capital, saldo_interes \");\n sql.append(\"from cartera_coactivos_xls \");\n sql.append(\"where nombre = :nFactura\");\n\n Query quer = em.createNativeQuery(sql.toString());\n\n quer.setParameter(\"nFactura\", nFactura);\n\n List<Object[]> result = Utilidades.safeList(quer.getResultList());\n // persiste las obligaciones consultadas y las inserta en ObligacionCoactivoDTO\n ObligacionCoactivoDTO obligaciones;\n for (Object[] obligacion : result) {\n obligaciones = new ObligacionCoactivoDTO();\n obligaciones.setNumeroObligacion((String) obligacion[0]);\n obligaciones.setValorObligacion(BigDecimal.valueOf(\n Double.valueOf(obligacion[1].toString().replaceAll(\"\\\\.\", \"\").replaceAll(\",\", \".\"))));\n obligaciones.setValorInteresMoratorios(BigDecimal.valueOf(\n Double.valueOf(obligacion[2].toString().replaceAll(\"\\\\.\", \"\").replaceAll(\",\", \".\"))));\n // Adiciona las obligaciones a una lista\n obligacionesCoactivoDTO.add(obligaciones);\n }\n\n }\n coactivoDTOs.setObligacionCoactivos(obligacionesCoactivoDTO);\n try {\n iLCoactivo.registrarCoactivoAxis(coactivoDTOs, coactivo[4].toString());\n } catch (Exception e) {\n logger.error(\"Error al registrar coactivo 6000 :\", e);\n }\n }\n }", "@Override\n\tpublic void prepare() throws Exception {\n\t\tsuper.prepare();\n\t\t//setto il titolo:\n\t\tthis.model.setTitolo(\"Quote ordinativo\");\n\t\t\n }", "public List<ReporteComprasVentasRetenciones> getReporteCompras(int mes, int anio, int idOrganizacion)\r\n/* 167: */ {\r\n/* 168:227 */ StringBuffer sql = new StringBuffer();\r\n/* 169: */ \r\n/* 170:229 */ sql.append(\" SELECT new ReporteComprasVentasRetenciones(tc.codigo, tc.nombre, COUNT(tc.codigo), \");\r\n/* 171:230 */ sql.append(\" (CASE WHEN tc.codigo = '04' THEN -SUM(fps.baseImponibleTarifaCero) ELSE SUM(fps.baseImponibleTarifaCero) END), \");\r\n/* 172:231 */ sql.append(\" (CASE WHEN tc.codigo = '04' THEN -SUM(fps.baseImponibleDiferenteCero) ELSE SUM(fps.baseImponibleDiferenteCero) END), \");\r\n/* 173:232 */ sql.append(\" (CASE WHEN tc.codigo = '04' THEN -SUM(fps.baseImponibleNoObjetoIva) ELSE SUM(fps.baseImponibleNoObjetoIva) END), \");\r\n/* 174:233 */ sql.append(\" (CASE WHEN tc.codigo = '04' THEN -SUM(fps.montoIva) ELSE SUM(fps.montoIva) END), 'Compras',ct.codigo,ct.nombre) \");\r\n/* 175:234 */ sql.append(\" FROM FacturaProveedorSRI fps \");\r\n/* 176:235 */ sql.append(\" LEFT OUTER JOIN fps.tipoComprobanteSRI tc \");\r\n/* 177:236 */ sql.append(\" LEFT OUTER JOIN fps.creditoTributarioSRI ct\");\r\n/* 178:237 */ sql.append(\" WHERE MONTH(fps.fechaRegistro) =:mes \");\r\n/* 179:238 */ sql.append(\" AND YEAR(fps.fechaRegistro) =:anio \");\r\n/* 180:239 */ sql.append(\" AND fps.estado!=:estadoAnulado \");\r\n/* 181:240 */ sql.append(\" AND fps.indicadorSaldoInicial!=true \");\r\n/* 182:241 */ sql.append(\" AND fps.idOrganizacion = :idOrganizacion \");\r\n/* 183:242 */ sql.append(\" GROUP BY tc.codigo, tc.nombre,ct.codigo,ct.nombre\");\r\n/* 184:243 */ sql.append(\" ORDER BY tc.codigo, tc.nombre \");\r\n/* 185: */ \r\n/* 186:245 */ Query query = this.em.createQuery(sql.toString());\r\n/* 187:246 */ query.setParameter(\"mes\", Integer.valueOf(mes));\r\n/* 188:247 */ query.setParameter(\"anio\", Integer.valueOf(anio));\r\n/* 189:248 */ query.setParameter(\"estadoAnulado\", Estado.ANULADO);\r\n/* 190:249 */ query.setParameter(\"idOrganizacion\", Integer.valueOf(idOrganizacion));\r\n/* 191: */ \r\n/* 192:251 */ return query.getResultList();\r\n/* 193: */ }", "private void tampil() {\n int row=tabmode.getRowCount();\n for (int i=0;i<row;i++){\n tabmode.removeRow(0);\n }\n try {\n Connection koneksi=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/medica\",\"root\",\"\");\n ResultSet rs=koneksi.createStatement().executeQuery(\"select rawat_inap_bayi.no, pasien_bayi.tgl_lahir, rawat_inap_bayi.tgl_masuk, rawat_inap_bayi.tgl_pulang, rawat_inap_bayi.lama, kamar.nm_kamar, penyakit.nama_penyakit, dokter.nm_dokter, tindakan.nama_tindakan, rawat_inap_bayi.suhu_tubuh, rawat_inap_bayi.resusitas, rawat_inap_bayi.hasil, rawat_inap_bayi.keterangan, rawat_inap_bayi.apgar \"+\n \" from rawat_inap_bayi inner join pasien_bayi on rawat_inap_bayi.no_rm_bayi=pasien_bayi.no_rm_bayi inner join kamar on rawat_inap_bayi.kd_kamar=kamar.kd_kamar inner join penyakit on rawat_inap_bayi.kd_icd = penyakit.kd_icd inner join dokter on rawat_inap_bayi.kd_dokter = dokter.kd_dokter inner join tindakan on rawat_inap_bayi.kode_tindakan = tindakan.kode_tindakan \");\n while(rs.next()){\n String[] data={rs.getString(1),rs.getString(2),rs.getString(3),rs.getString(4),rs.getString(5),rs.getString(6),rs.getString(7),rs.getString(8),rs.getString(9),rs.getString(10),rs.getString(11),rs.getString(12),rs.getString(13),rs.getString(14)};\n tabmode.addRow(data);\n }\n } catch (SQLException ex) {\n System.out.println(ex);\n }\n \n }", "public RecordSet obtenerResumen(DTOResumen dtoe) throws MareException{\n UtilidadesLog.info(\"DAOParametrizacionCOB.obtenerResumen(DTOResumen dtoe): Entrada\");\n \n RecordSet rs = new RecordSet();\n StringBuffer query = new StringBuffer();\n BelcorpService bs;\n try\n { bs = BelcorpService.getInstance();\n }\n catch(MareMiiServiceNotFoundException ex)\n { throw new MareException(ex, UtilidadesError.armarCodigoError(CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE));\n } \n /*query.append(\" SELECT distinct p.IDPRINCIPAL AS OID,CONCAT(p.name,CONCAT(' ',CONCAT(pv.STRINGVALUE,CONCAT(' ',CONCAT(pv2.STRINGVALUE,CONCAT(' ',CONCAT(pv3.STRINGVALUE,CONCAT(' ',pv4.STRINGVALUE)))))))) NOMBRE, \");\n query.append(\" gen.VAL_I18N AS CANAL, \");\n query.append(\" sma.DES_MARC AS MARCA, \"); \n query.append(\" subvta.DES_SUBG_VENT AS SUBGERVENTA, \");\n query.append(\" gen2.VAL_I18N AS REGION, \");\n query.append(\" gen3.VAL_I18N AS ZONA, \");\n query.append(\" secc.DES_SECCI AS SECCION, \");\n query.append(\" gen5.VAL_I18N AS TERRITORIO \");\n query.append(\" FROM v_gen_i18n_sicc gen, \");\n query.append(\" v_gen_i18n_sicc gen2, \");\n query.append(\" v_gen_i18n_sicc gen3, \");\n query.append(\" v_gen_i18n_sicc gen5, \");\n query.append(\" seg_marca sma, \");\n query.append(\" zon_secci secc, \");\n query.append(\" cob_usuar_etapa_cobra_detal cdetal, \");\n query.append(\" zon_sub_geren_venta subvta, \");\n query.append(\" cob_usuar_etapa_cobra_cabec ccabe, \");\n query.append(\" cob_usuar_cobra usucob, \");\n query.append(\" own_mare.principals p, \");\n query.append(\" propertyvalues pv, \");\n query.append(\" propertyvalues pv2, \");\n query.append(\" propertyvalues pv3, \");\n query.append(\" propertyvalues pv4, \");\n query.append(\" own_mare.users u \");\n query.append(\" WHERE cdetal.zsgv_oid_subg_vent = subvta.oid_subg_vent \");\n query.append(\" AND ccabe.oid_usua_etap_cobr = cdetal.oid_usua_etap_cobr_deta \");\n query.append(\" AND secc.oid_secc(+) = cdetal.zscc_oid_secc \");\n query.append(\" AND sma.oid_marc = subvta.marc_oid_marc \");\n query.append(\" AND ccabe.usco_oid_usua_cobr = usucob.oid_usua_cobr \");\n query.append(\" AND gen.val_oid = subvta.cana_oid_cana \");\n query.append(\" AND gen.attr_enti = 'SEG_CANAL' \");\n query.append(\" AND gen.attr_num_atri = 1 \");\n query.append(\" AND gen.idio_oid_idio = '\" + dtoe.getOidIdioma() + \" ' \");\n query.append(\" AND pv.idproperty(+) = 2 \");\n query.append(\" AND pv.idprincipal(+) = p.idprincipal \");\n query.append(\" AND pv2.idproperty(+) = 3 \");\n query.append(\" AND pv2.idprincipal(+) = p.idprincipal \");\n query.append(\" AND pv3.idproperty = 5 \");\n query.append(\" AND pv3.idprincipal = p.idprincipal \");\n query.append(\" AND pv4.idproperty = 6 \");\n query.append(\" AND pv4.idprincipal = p.idprincipal \");\n query.append(\" AND gen2.val_oid(+) = '\" + dtoe.getOidIdioma() + \" ' \");\n query.append(\" AND gen2.attr_enti(+) = 'ZON_REGIO' \");\n query.append(\" AND gen2.attr_num_atri(+) = 1 \");\n query.append(\" AND gen2.idio_oid_idio(+) = '\" + dtoe.getOidIdioma() + \" ' \");\n query.append(\" AND gen3.val_oid(+) = cdetal.zzon_oid_zona \");\n query.append(\" AND gen3.attr_enti(+) = 'ZON_ZONA' \");\n query.append(\" AND gen3.attr_num_atri(+) = 1 \");\n query.append(\" AND gen3.idio_oid_idio(+) = '\" + dtoe.getOidIdioma() + \" ' \");\n query.append(\" AND gen5.val_oid(+) = cdetal.terr_oid_terr \");\n query.append(\" AND gen5.attr_enti(+) = 'ZON_TERRI' \");\n query.append(\" AND gen5.attr_num_atri(+) = 1 \");\n query.append(\" AND gen5.idio_oid_idio(+) = '\" + dtoe.getOidIdioma() + \" ' \");\n query.append(\" AND u.iduser = p.idprincipal \");\n query.append(\" AND p.idprincipal = ccabe.usco_oid_usua_cobr \");\n */\n \n /*query.append(\" SELECT distinct p.IDPRINCIPAL AS OID, \");\n query.append(\" p.name AS USUARIO, \");\n */\n //Se le agega \"p.IDPRINCIPAL,\" segun BELC300017927 \n //query.append(\" SELECT distinct p.name AS USUARIO, \"); \n query.append(\" SELECT distinct p.IDPRINCIPAL, p.name AS USUARIO, \");\n query.append(\" CONCAT(p.name,CONCAT(' ',CONCAT(pv.STRINGVALUE,CONCAT(' ',CONCAT(pv2.STRINGVALUE,CONCAT(' ',CONCAT(pv3.STRINGVALUE,CONCAT(' ',pv4.STRINGVALUE)))))))) NOMBRE, \");\n query.append(\" sma.DES_MARC AS MARCA, \");\n query.append(\" gen.VAL_I18N AS CANAL, \"); \n query.append(\" subvta.DES_SUBG_VENT AS SUBGERVENTA, \");\n query.append(\" regio.DES_REGI AS REGION, \");\n query.append(\" zona.DES_ZONA AS ZONA, \"); \n \t query.append(\" secc.DES_SECCI AS SECCION, \"); \n query.append(\" terri.COD_TERR AS TERRITORIO \");\n query.append(\" FROM v_gen_i18n_sicc gen, \");\n query.append(\" SEG_CANAL canal, \");\n query.append(\" ZON_TERRI terri, \");\n query.append(\" ZON_ZONA zona, \");\n query.append(\" ZON_REGIO regio, \");\n query.append(\" seg_marca sma, \");\n query.append(\" zon_secci secc, \");\n query.append(\" cob_usuar_etapa_cobra_detal cdetal, \");\n query.append(\" zon_sub_geren_venta subvta, \");\n query.append(\" cob_usuar_etapa_cobra_cabec ccabe, \");\n query.append(\" cob_usuar_cobra usucob, \");\n query.append(\" principals p, \");\n query.append(\" propertyvalues pv, \");\n query.append(\" propertyvalues pv2, \");\n query.append(\" propertyvalues pv3, \");\n query.append(\" propertyvalues pv4, \");\n query.append(\" users u \");\n query.append(\" WHERE cdetal.zsgv_oid_subg_vent = subvta.oid_subg_vent \");\n query.append(\" AND ccabe.oid_usua_etap_cobr = cdetal.UECC_OID_USUA_ETAP_COBR \");\n query.append(\" AND secc.oid_secc(+) = cdetal.zscc_oid_secc \");\n query.append(\" AND sma.oid_marc = subvta.marc_oid_marc \");\n query.append(\" AND ccabe.usco_oid_usua_cobr = usucob.oid_usua_cobr \");\n query.append(\" AND gen.val_oid = subvta.cana_oid_cana \");\n query.append(\" AND gen.attr_enti = 'SEG_CANAL' \");\n query.append(\" AND gen.attr_num_atri = 1 \");\n query.append(\" AND gen.idio_oid_idio = '1' \");\n query.append(\" AND pv.idproperty(+) = 2 \");\n query.append(\" AND pv.idprincipal(+) = p.idprincipal \");\n query.append(\" AND pv2.idproperty(+) = 3 \");\n query.append(\" AND pv2.idprincipal(+) = p.idprincipal \");\n query.append(\" AND pv3.idproperty = 5 \");\n query.append(\" AND pv3.idprincipal = p.idprincipal \");\n query.append(\" AND pv4.idproperty = 6 \");\n query.append(\" AND pv4.idprincipal = p.idprincipal \t\t \");\n query.append(\" AND terri.OID_TERR = cdetal.terr_oid_terr\t\t \");\n query.append(\" AND zona.OID_ZONA = cdetal.zzon_oid_zona\t\t \");\n query.append(\" AND regio.OID_REGI = cdetal.ZORG_OID_REGI\t\t \");\n query.append(\" AND u.iduser = p.idprincipal \");\n query.append(\" AND p.idprincipal = usucob.USER_OID_USUA_COBR \");\n \n /* Validaciones */\n if( dtoe.getOidMarca()!= null ){\n query.append(\" AND subvta.MARC_OID_MARC = \" + dtoe.getOidMarca() );\n }\n if( dtoe.getOidCanal() != null){\n query.append(\" AND subvta.CANA_OID_CANA = \" + dtoe.getOidCanal() );\n }\n if( dtoe.getOidSGV() != null ){\n query.append(\" AND subvta.OID_SUBG_VENT = \" + dtoe.getOidSGV() );\n }\n if( dtoe.getOidRegion() != null ){\n query.append(\" AND cdetal.ZORG_OID_REGI = \" + dtoe.getOidRegion() ); \n }\n if( dtoe.getOidZona() != null ){\n query.append(\" AND cdetal.ZZON_OID_ZONA = \" + dtoe.getOidZona() ); \n }\n if( dtoe.getOidSeccion() != null ){\n query.append(\" AND cdetal.ZSCC_OID_SECC = \" + dtoe.getOidSeccion() );\n }\n if( dtoe.getOidTerritorio() != null ){\n query.append(\" AND cdetal.TERR_OID_TERR = \" + dtoe.getOidTerritorio() );\n }\n UtilidadesLog.debug(\"query \" + query.toString() );\n try \n { rs = bs.dbService.executeStaticQuery(query.toString());\n }\n catch (Exception ex) \n { throw new MareException(ex, UtilidadesError.armarCodigoError(CodigosError.ERROR_DE_ACCESO_A_BASE_DE_DATOS));\n }\t\n \n UtilidadesLog.info(\"DAOParametrizacionCOB.obtenerResumen(DTOResumen dtoe): Salida\");\n \n return rs; \n }", "private boolean generarEgresoMercaderiaReservada(java.sql.Connection conExt, int CodEmp,int CodLoc,int CodCot){\n boolean blnRes=false;\n java.sql.Statement stmLoc;\n java.sql.ResultSet rstLoc;\n ArrayList arlResDat, arlResReg;\n try{\n if(conExt!=null){\n stmLoc=conExt.createStatement();\n arlResDat = new ArrayList();\n strSql=\"\";\n strSql+=\" SELECT a1.co_emp, a1.co_loc, a1.co_cot, a2.co_reg, a2.co_itm, a2.co_bod, a2.nd_can, \\n\";\n strSql+=\" CASE WHEN a3.nd_cosUni IS NULL THEN 0 ELSE a3.nd_cosUni END as nd_cosUni,a4.co_seg \";\n strSql+=\" ,a2.tx_nomItm \\n\";\n strSql+=\" FROM tbm_cabCotVen as a1 \\n\";\n strSql+=\" INNER JOIN tbm_detCotVen as a2 ON (a1.co_emp=a2.co_emp AND a1.co_loc=a2.co_loc AND a1.co_cot=a2.co_cot) \\n\";\n strSql+=\" INNER JOIN tbm_inv as a3 ON (a2.co_emp=a3.co_emp AND a2.co_itm=a3.co_itm) \\n\";\n strSql+=\" INNER JOIN tbm_cabSegMovInv as a4 ON (a1.co_emp=a4.co_empRelCabCotVen AND a1.co_loc=a4.co_locRelCabCotVen AND \\n\";\n strSql+=\" a1.co_cot=a4.co_cotRelCabCotVen) \\n\";\n strSql+=\" WHERE a1.co_emp=\"+CodEmp+\" and a1.co_loc=\"+CodLoc+\" and a1.co_cot=\"+CodCot+\" and a3.st_ser='N' \\n\";\n strSql+=\" ORDER BY a1.co_emp, a1.co_loc, a1.co_cot, a2.co_reg \\n\";\n System.out.println(\"generarEgresoMercaderiaReservada \" + strSql);\n rstLoc = stmLoc.executeQuery(strSql);\n while(rstLoc.next()){\n arlResReg = new ArrayList();\n arlResReg.add(INT_ARL_DAT_COD_EMP, rstLoc.getInt(\"co_emp\"));\n arlResReg.add(INT_ARL_DAT_COD_LOC, rstLoc.getInt(\"co_loc\"));\n arlResReg.add(INT_ARL_DAT_COD_BOD_EMP, rstLoc.getInt(\"co_bod\"));\n arlResReg.add(INT_ARL_DAT_COD_ITM_EMP, rstLoc.getInt(\"co_itm\"));\n arlResReg.add(INT_ARL_DAT_CAN, rstLoc.getDouble(\"nd_can\"));\n arlResReg.add(INT_ARL_DAT_COS_UNI, rstLoc.getDouble(\"nd_cosUni\"));\n arlResReg.add(INT_ARL_DAT_COD_SEG, rstLoc.getInt(\"co_seg\"));\n arlResReg.add(INT_ARL_DAT_COD_REG, rstLoc.getInt(\"co_reg\"));\n arlResReg.add(INT_ARL_DAT_NOM_ITM, rstLoc.getString(\"tx_nomItm\"));\n arlResDat.add(arlResReg);\n }\n rstLoc.close();\n rstLoc=null;\n stmLoc.close();\n stmLoc=null;\n if(!arlResDat.isEmpty()){\n ZafGenDocIngEgrInvRes objGenDocIngEgrInvRes = new ZafGenDocIngEgrInvRes(objParSis,this);\n if(objGenDocIngEgrInvRes.GenerarDocumentoIngresoEgresoReservas(conExt, datFecAux, arlResDat, 1)){\n blnRes=true;\n }\n }\n }\n }\n catch (java.sql.SQLException e) { \n blnRes = false;\n objUti.mostrarMsgErr_F1(this, e); \n }\n catch (Exception Evt) {\n blnRes = false;\n objUti.mostrarMsgErr_F1(this, Evt);\n }\n return blnRes;\n }", "public void llenadoDeTablas() {\n /**\n *\n * creaccion de la tabla de de titulos \n */\n DefaultTableModel modelo = new DefaultTableModel();\n modelo.addColumn(\"ID Bitacora\");\n modelo.addColumn(\"Usuario\");\n modelo.addColumn(\"Fecha\");\n modelo.addColumn(\"Hora\");\n modelo.addColumn(\"Ip\");\n modelo.addColumn(\"host\");\n \n modelo.addColumn(\"Accion\");\n modelo.addColumn(\"Codigo Aplicacion\");\n modelo.addColumn(\"Modulo\");\n /**\n *\n * instaciamiento de las las clases Bitacora y BiracoraDAO\n * intaciamiento de la clases con el llenado de tablas\n */\n BitacoraDao BicDAO = new BitacoraDao();\n List<Bitacora> usuario = BicDAO.select();\n JtProductos1.setModel(modelo);\n String[] dato = new String[9];\n for (int i = 0; i < usuario.size(); i++) {\n dato[0] = usuario.get(i).getId_Bitacora();\n dato[1] = usuario.get(i).getId_Usuario();\n dato[2] = usuario.get(i).getFecha();\n dato[3] = usuario.get(i).getHora();\n dato[4] = usuario.get(i).getHost();\n dato[5] = usuario.get(i).getIp();\n dato[6] = usuario.get(i).getAccion();\n dato[7] = usuario.get(i).getCodigoAplicacion();\n dato[8] = usuario.get(i).getModulo();\n \n //System.out.println(\"vendedor:\" + vendedores);\n modelo.addRow(dato);\n }}", "public boolean insertarNuevoClienteCA(Cliente cliente, List<Cuenta> listaCuentas) {\n String queryDividido1 = \"INSERT INTO Usuario(Codigo, Nombre, DPI, Direccion, Sexo, Password, Tipo_Usuario) \"\n + \"VALUES(?,?,?,?,?,aes_encrypt(?,'AES'),?)\";\n\n String queryDividido2 = \"INSERT INTO Cliente(Usuario_Codigo, Nombre, Nacimiento, DPI_Escaneado, Estado) \"\n + \"VALUES(?,?,?,?,?)\";\n \n String queryDividido3 = \"INSERT INTO Cuenta(No_Cuenta, Fecha_Creacion, Saldo_Cuenta, Cliente_Usuario_Codigo) \"\n + \"VALUES(?,?,?,?)\";\n int codigoCliente = cliente.getCodigo();\n try {\n\n PreparedStatement enviarDividido1 = Conexion.conexion.prepareStatement(queryDividido1);\n\n //Envio de los Datos Principales del cliente a la Tabla Usuario\n enviarDividido1.setInt(1, cliente.getCodigo());\n enviarDividido1.setString(2, cliente.getNombre());\n enviarDividido1.setString(3, cliente.getDPI());\n enviarDividido1.setString(4, cliente.getDireccion());\n enviarDividido1.setString(5, cliente.getSexo());\n enviarDividido1.setString(6, cliente.getPassword());\n enviarDividido1.setInt(7, 3);\n enviarDividido1.executeUpdate();\n\n //Envia los Datos Complementarios del Usuario a la tabla cliente\n PreparedStatement enviarDividido2 = Conexion.conexion.prepareStatement(queryDividido2);\n enviarDividido2.setInt(1, cliente.getCodigo());\n enviarDividido2.setString(2, cliente.getNombre());\n enviarDividido2.setString(3, cliente.getNacimiento());\n enviarDividido2.setBlob(4, cliente.getDPIEscaneado());\n enviarDividido2.setBoolean(5, cliente.isEstado());\n enviarDividido2.executeUpdate();\n \n //Envia los Datos de la Cuenta Adjudicada al Cliente\n PreparedStatement enviarDividido3 = Conexion.conexion.prepareStatement(queryDividido3);\n\n //Envio de los Datos Principales de una Cuenta a la Tabla Cuenta, perteneciente a un cliente en Especifico\n //Considerando que el cliente puede tener mas de una cuenta\n for (Cuenta cuenta : listaCuentas) {\n \n enviarDividido3.setInt(1, cuenta.getNoCuenta());\n enviarDividido3.setString(2, cuenta.getFechaCreacion());\n enviarDividido3.setDouble(3, cuenta.getSaldo());\n enviarDividido3.setInt(4, codigoCliente);\n enviarDividido3.executeUpdate();\n }\n \n return true;\n\n } catch (SQLException ex) {\n ex.printStackTrace(System.out);\n return false;\n }\n\n }", "public void obrir() throws SQLException {\n\t\tbdClimb = dbHelper.getWritableDatabase();\n\t}", "public void prepararDados() {\n\t\tatribuiPrimeiroAnoCasoAnoEstejaNulo();\n\t\t\n\t\tsalvarOuAtualizar(alunosMilitarPraca);\n\t\tsalvarOuAtualizar(alunosMilitarOficial);\n\t\t\n\t\tinit();\n\t\thabilitaBotao=false;\n\t}", "public void CadastrarPassageiro(Connection con, List<Bilhetes> temporaria) {\n\t\t\n\t\ttry {\n\t\t\n\t\t\tstmt = con.prepareStatement(\"Select cpf from passageiro where cpf = ?\");\n\t\t\t\n\t\t\tstmt.setString(1, temporaria.get(0).getBilhete().get(0).getCpf() );\n\t\t\tstmt.execute();\n\t\t\t\n\t\t\trs=stmt.getResultSet();\n\t\t\t\n\t\t\tif(rs.next())\n\t\t\t{\n\t\t\t\t\n\t\t\t\tJOptionPane.showMessageDialog(null, \"ERRO: CPF JA CADASTRADO\", \"Erro CADASTRO\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tstmt = con.prepareStatement(\n\t\t\t\t\t\" insert into BILHETES (Destino,Origem,Hpartida, Hembarque,Poltrona) values(?,?,?,?,NULL)\");\n\n\t\t\tstmt.setString(1, temporaria.get(0).getDestino());\n\t\t\tstmt.setString(2, temporaria.get(0).getOrigem());\n\t\t\tstmt.setString(3, temporaria.get(0).getHora_partida());\n\t\t\tstmt.setString(4, temporaria.get(0).getHora_embarque());\n\n\t\t\tstmt.execute();\n\n\t\t\tstmt = con.prepareStatement(\"select IDBILHETE FROM BILHETES WHERE poltrona is null \");\n\n\t\t\tstmt.execute();\n\n\t\t\trs = stmt.getResultSet();\n\n\t\t\twhile (rs.next()) {\n\t\t\t\tint idbilhete = rs.getInt(1);\n\t\t\t\ttemporaria.get(0).setIdbilhete(idbilhete);\n\t\t\t}\n\n\t\t\tstmt = con.prepareStatement(\"insert into Passageiro(nome,cpf,ID_BILHETE) values(?,?,?)\");\n\n\t\t\tstmt.setString(1, temporaria.get(0).getBilhete().get(0).getNome());\n\t\t\tstmt.setString(2, temporaria.get(0).getBilhete().get(0).getCpf());\n\t\t\tstmt.setInt(3, temporaria.get(0).getIdbilhete());\n\n\t\t\tstmt.execute();\n\n\t\t\t// VOLTANDO A CADEIRA PARA 0, PARA EVITAR ERRO NOS PROXIMOS USUARIOS CADASTRADOS\n\t\t\tstmt = con.prepareStatement(\"UPDATE BILHETES SET POLTRONA = 0 WHERE POLTRONA IS NULL\");\n\n\t\t\tstmt.execute();\n\n\t\t\t// Teste\n\n\t\t\tString nome = temporaria.get(0).getBilhete().get(0).getNome();\n\t\t\tString cpf = temporaria.get(0).getBilhete().get(0).getCpf();\n\n\t\t\tString destino = temporaria.get(0).getDestino();\n\t\t\tString Origem = temporaria.get(0).getOrigem();\n\n\t\t\tString hora_EMBARQUE = temporaria.get(0).getHora_embarque();\n\n\t\t\tString horasaida = temporaria.get(0).getHora_partida();\n\n\t\t\t// Instanciando valores\n\t\t\tBilhetes passagem = new Bilhetes(temporaria.get(0).getIdbilhete(), Origem, destino, hora_EMBARQUE,\n\t\t\t\t\thorasaida, null, 0);\n\n\t\t\tpassagem.adicionar(new Passageiro(nome, cpf));\n\n\t\t\tpassageiro.add(passagem);\n\n\t\t\t// Fim do teste antes do filme\n\n\t\t\tJOptionPane.showMessageDialog(null, \"Passageiro Cadastrado Com sucesso\");\n\n\t\t\tJOptionPane.showMessageDialog(null,\"CODIGO LOCALIZADOR DO BILHETE: \" + temporaria.get(0).getIdbilhete(),\" NÃO PERCA\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\n\t\n\t\t\t\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tJOptionPane.showMessageDialog(null, \"ERRO: CPF JA CADASTRADO\", \"Erro CADASTRO\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\n\n\t\t}\n\n\t}", "public void executar() {\n\t\tSystem.out.println(dao.getListaPorNome(\"abacatão\"));\n\t}", "private PreparedStatement prepareClientes(Connection conn, String data) throws ParseException, SQLException\n\t{\n\t\t\n\t\tPreparedStatement result = null;\n\t\t\n\t\t//Parametros 1 e 6: Data de execucao atual\n\t\tSimpleDateFormat conversorData = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\tDate dataExecucao = conversorData.parse(data);\n\t\t//Parametro 2: Ano e mes da execucao\n\t\tSimpleDateFormat conversorDatMes = new SimpleDateFormat(\"yyMM\");\n\t\tString datMes = conversorDatMes.format(mesAnterior(dataExecucao));\n\t\t//Parametro 3: Tipo de transacao da promocao PulaPula\n\t\tString tipoTransacao = TIPO_TRANSACAO_PULA_PULA;\n\t\t//Parametros 4 e 7: Primeiro dia do mes da execucao\n\t\tDate dataInicioMesExecucao = getPrimeiroDiaMes(dataExecucao);\n\t\t//Parametro 5: Primeiro dia do mes posterior ao da execucao\n\t\tDate dataInicioProxMes = getPrimeiroDiaMes(proximoMes(dataExecucao));\n\t\t//Parametro 8: Ultimo dia do mes da execucao\n\t\tDate dataFimMesExecucao = getUltimoDiaMes(dataExecucao);\n\n\t\tString sqlClientes = getQuerySelecaoClientes();\n\t\tresult = conn.prepareStatement(sqlClientes);\n\t\tresult.setDate (1, new java.sql.Date(dataExecucao.getTime()));\n\t\tresult.setString(2, datMes);\n\t\tresult.setString(3, tipoTransacao);\n\t\tresult.setDate (4, new java.sql.Date(dataInicioMesExecucao.getTime()));\n\t\tresult.setDate (5, new java.sql.Date(dataInicioProxMes.getTime()));\n\t\tresult.setDate (6, new java.sql.Date(dataExecucao.getTime()));\n\t\tresult.setDate (7, new java.sql.Date(dataInicioMesExecucao.getTime()));\n\t\tresult.setDate (8, new java.sql.Date(dataFimMesExecucao.getTime()));\n\t\t\n\t\treturn result;\n\t}", "private String getConsulta(int indice) {\r\n\t\tString sql = \"\";\r\n\t\tStringBuffer variables = new StringBuffer();\r\n\t\tinParams = ((TxParams)todo.get(indice)).getParams().entrada;\r\n\t\toutParams = ((TxParams)todo.get(indice)).getParams().salida;\r\n\t\tif ((inParams == null || inParams.size() == 0) && (outParams == null || outParams.size() == 0))\r\n\t\t\tsql = \"{call \" + consultas[indice] + \"}\";\r\n\t\telse {\r\n\t\t\t//Por cada parametro de entrada corresponde un ?\r\n\t\t\t//Ojo que tambien hay que considerar los de salida si es necesario\r\n\t\t\t//pero no esta cubierto en esta primera etapa\r\n\t\t\tif (inParams != null) {\r\n\t\t\t\tfor (int i = 0; i < inParams.size(); i++)\r\n\t\t\t\t\tvariables.append(\"?,\");\r\n\t\t\t}\r\n\t\t\tif (outParams != null) {\r\n\t\t\t\tfor (int i = 0; i < outParams.size(); i++)\r\n\t\t\t\t\tvariables.append(\"?,\");\r\n\t\t\t}\r\n\t\t\tString listaVars = variables.toString();\r\n\t\t\tlistaVars = listaVars.substring(0, listaVars.length() - 1);\r\n\t\t\tsql = \"{call \" + consultas[indice] + \"(\" + listaVars + \")}\";\r\n\t\t}\r\n\t\treturn sql;\r\n\t}", "@Override\n\tpublic DatosEnc obtenerDatos(DatosEnc datos) {\n\t\tConnection con = null;\n\t\tCallableStatement stmt = null;\n//\t\tPreparedStatement ps = null;\n\t\tResultSet rs = null;\n\t\ttry{\n//\t\t\tcon = new ConectarDB().getConnection();\n//\t\t\tString query = \"select * from pv_cotizaciones_det where no_cotizacion = ?\";\n//\t\t\tps = con.prepareStatement(query);\n//\t\t\tps.setString(1, datos.getNoDocumento());\n//\t\t\trs = ps.executeQuery();\n//\t\t\texiste=0;\n//\t\t\twhile(rs.next()){\n//\t\t\t\tif(rs.getString(\"no_cotizacion\") == null){\n//\t\t\t\t\texiste=0;\n//\t\t\t\t}else if(rs.getString(\"no_cotizacion\").equals(datos.getNoDocumento())){\n//\t\t\t\t\texiste=1;\n//\t\t\t\t}\n//\t\t\t}\n//\t\t\tcon.close();\n//\t\t\tps.close();\n//\t\t\trs.close();\n//\t\t\tif(existe==0){\n\t\t\t\tcon = new ConectarDB().getConnection();\n\t\t\t\tstmt = con.prepareCall(\"{call stp_UDPV_InUp_Mov_Enc(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}\");\n\t\t\t\tstmt.setString(1, datos.getCodigoCliente());\n\t\t\t\tstmt.setString(2, datos.getNit());\n\t\t\t\tstmt.setString(3, datos.getNombreCliente());\n\t\t\t\tstmt.setString(4, datos.getDirecFactura());\n\t\t\t\tstmt.setString(5, datos.getTel());\n\t\t\t\tstmt.setString(6, datos.getTarjeta());\n\t\t\t\tstmt.setString(7, datos.getDirecEnvio());\n\t\t\t\tstmt.setString(8, datos.getCodigoVendedor());\n\t\t\t\tstmt.setString(9, datos.getUsername());\n\t\t\t\tstmt.setString(10, datos.getTipoDocumento());\n\t\t\t\tstmt.setString(11, datos.getNoDocumento());\n\t\t\t\tstmt.setString(12, datos.getFechaVence());\n\t\t\t\tstmt.setString(13, datos.getTipoPago());\n\t\t\t\tstmt.setString(14, datos.getTipoCredito());\n\t\t\t\tstmt.setString(15, datos.getAutoriza());\n\t\t\t\tstmt.setString(16, datos.getFechaDocumento());\n\t\t\t\tstmt.setString(17, datos.getCargosEnvio());\n\t\t\t\tstmt.setString(18, datos.getOtrosCargos());\n\t\t\t\tstmt.setString(19, datos.getMontoVenta());\n\t\t\t\tstmt.setString(20, datos.getMontoTotal());\n\t\t\t\tstmt.setString(21, datos.getSerieDev());\n\t\t\t\tstmt.setString(22, datos.getNoDocDev());\n\t\t\t\tstmt.setString(23, datos.getObservaciones());\n\t\t\t\tstmt.setString(24, datos.getTipoNota());\n\t\t\t\tstmt.setString(25, datos.getCaja());\n\t\t\t\tstmt.setString(26, datos.getFechaEntrega());\n\t\t\t\tstmt.setString(27, datos.getCodigoDept());\n\t\t\t\tstmt.setString(28, datos.getCodGen());\n\t\t\t\tstmt.setString(29, datos.getNoConsigna());\n\t\t\t\tstmt.setString(30, datos.getCodMovDev());\n\t\t\t\tstmt.setString(31, datos.getGeneraSolicitud());\n\t\t\t\tstmt.setString(32, datos.getTipoPagoNC());\n\t\t\t\tstmt.setString(33, datos.getTipoCliente());\n\t\t\t\tstmt.setString(34, datos.getCodigoNegocio());\n\t\t\t\tstmt.setString(35, datos.getCantidadDevolver());\n\t\t\t\tstmt.setString(36, datos.getAutorizoDespacho());\n\t\t\t\tstmt.setString(37, datos.getSaldo());\n\t\t\t\trs = stmt.executeQuery();\n\t\t\t\t\n\t\t\t\twhile(rs.next()){\n\t\t\t\t\tif(rs.getString(1)!=null){\n\t\t\t\t\t\tdatos.setSerieEnc(rs.getString(1));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tdatos.setSerieEnc(\"NA\");\n\t\t\t\t\t}\n\t\t\t\t\tdatos.setNoEnc(rs.getString(2));\n//\t\t\t\t\tif(rs.getString(1)!=null){\n//\t\t\t\t\t\tdatos.setSerieEnc(rs.getString(1));\n//\t\t\t\t\t}else{\n//\t\t\t\t\t\tdatos.setSerieEnc(\"NA\");\n//\t\t\t\t\t}\n//\t\t\t\t\tdatos.setNoEnc(rs.getString(2));\n//\t\t\t\t\tdocumento = rs.getInt(2);\n\t\t\t\t}\n\t\t\t\tcon.close();\n\t\t\t\tstmt.close();\n\t\t\t\trs.close();\n//\t\t\t}\n\t\t\t\n\t\t\t\n//\t\t\tcon = new ConectarDB().getConnection();\n//\t\t\tstmt = con.prepareCall(\"{call stp_UDPV_Del_Mov_Det(?,?,?)}\");\n//\t\t\tstmt.setInt(1, Integer.parseInt(datos.getTipoDocumento()));\n//\t\t\tstmt.setString(2, \"\");\n//\t\t\tstmt.setInt(3, documento);\n//\t\t\trs = stmt.executeQuery();\n//\t\t\t\n//\t\t\twhile(rs.next()){\n//\t\t\t\tSystem.out.println(rs.getString(\"limpiado\"));\n//\t\t\t}\n//\t\t\tcon.close();\n//\t\t\tstmt.close();\n//\t\t\trs.close();\n\t\t\t\n//\t\t\tcon = new ConectarDB().getConnection();\n//\t\t\tstmt = con.prepareCall(\"{call stp_udpv_VerificaCotiza(?,?)}\");\n//\t\t\tstmt.setString(1, \"\");\n//\t\t\tstmt.setInt(2, documento);\n//\t\t\trs = stmt.executeQuery();\n//\t\t\t\n//\t\t\twhile(rs.next()){\n//\t\t\t\tSystem.out.println(rs.getString(\"error\"));\n//\t\t\t}\n//\t\t\tcon.close();\n//\t\t\tstmt.close();\n//\t\t\trs.close();\n\t\t\t\n\t\t}catch(SQLException e ){\n\t\t\tSystem.out.println(\"Error Enc: \" + e.getMessage());\n\t\t}\n\t\treturn datos;\n\t}", "public static PreparedStatement crearDeclaracionPreparada(java.sql.Connection conexion, ArrayList<String> datos, String orden){\n try {\n PreparedStatement dp = null;\n dp = conexion.prepareStatement(orden); //asignamos el select que trae el String orden \n int esUnEntero;\n for(int i = 1; i <= datos.size(); i++){//asignamos los valores del arrayList datos en cada campo del select\n String aux = null; \n esUnEntero = isEntero(datos.get(i - 1));//Revisamos si la cadena de datos.get(i) es un entero\n switch(esUnEntero){\n case 1: //Cuando es 1 significa que el dato dentro de datos.get(i) es un entero, por tanto se rellena el campo como tal\n aux = datos.get(i - 1);\n dp.setInt(i, Integer.parseInt(aux)); \n break;\n case 0://Cuando es 0 significa que no es un entero y se rellena el campo como String\n aux = datos.get(i - 1);\n dp.setString(i, aux);\n break;\n } \n }\n return dp;\n } catch (SQLException ex) {\n System.out.println(\"\\n\\n\\n\"+ex); //Imprimimos el error en consola en caso de fallar \n } \n return null;\n }", "public void selecteazaComanda()\n {\n for(String[] comanda : date) {\n if (comanda[0].compareTo(\"insert client\") == 0)\n clientBll.insert(idClient++, comanda[1], comanda[2]);\n else if (comanda[0].compareTo(\"insert product\") == 0)\n {\n Product p = productBll.findProductByName(comanda[1]);\n if(p!=null)//daca produsul exista deja\n productBll.prelucreaza(p.getId(), comanda[1], Float.parseFloat(comanda[2]), Float.parseFloat(comanda[3]));\n else\n productBll.prelucreaza(idProduct++, comanda[1], Float.parseFloat(comanda[2]), Float.parseFloat(comanda[3]));\n\n }\n else if (comanda[0].contains(\"delete client\"))\n clientBll.sterge(comanda[1]);\n else if (comanda[0].contains(\"delete product\"))\n productBll.sterge(comanda[1]);\n else if (comanda[0].compareTo(\"order\")==0)\n order(comanda);\n else if (comanda[0].contains(\"report\"))\n report(comanda[0]);\n }\n }", "private DAOOfferta() {\r\n\t\ttry {\r\n\t\t\tClass.forName(driverName);\r\n\r\n\t\t\tconn = getConnection(usr, pass);\r\n\r\n\t\t\tps = conn.prepareStatement(createQuery);\r\n\r\n\t\t\tps.executeUpdate();\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ConnectionException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\t/*closeResource()*/;\r\n\t\t}\r\n\t}", "public static void main(String[]args) {PostagemDAO pDAO = new PostagemDAO();\n////\t\tPostagem postagem = new Postagem();\n////\t\tString s = \"1999-3-9\";\n////\t\tDate data = Date.valueOf(s);\n////\t\tpostagem.setDescPostagem(\"john johnes\");\n////\t\tpostagem.setDataPostagem(data);\n////\t\tpDAO.inserirPostagem(postagem);\n//\t\t\n////\t\tImagensDAO iDAO = new ImagensDAO();\n////\t\tImagens imagens = new Imagens();\n////\t\t\n////\t\timagens.setTipoImagem((short)2);\n////\t\timagens.setArquivoImagem(\"busato\");\n////\t\tiDAO.inserirImagem(imagens);\n//\t\t\n//\t\tUsuarioDAO uDAO = new UsuarioDAO();\n//\t\tUsuario usuario = new Usuario();\n//\t\t\n////\t\tusuario.setEmail(\"sadasda\");\n////\t\tusuario.setNickname(\"sdasdasae\");\n////\t\tusuario.setSenha(\"12345\");\n////\t\tusuario.setSteamid(31231231);\n////\t\tusuario.setFotoPerfil(\"FOTO\");\n////\t\tuDAO.cadastrar(usuario);\n//\t\t\n//\t\t\n//\t\tComentariosDAO cDAO = new ComentariosDAO();\n//\t\tComentarios comentarios = new Comentarios();\n//\t\t\n//\t\tcomentarios.setCorpoComentario(\"comentario comentado\");\n//\t\tcomentarios.setDataComentario(Date.valueOf(\"2018-03-09\"));\n//\t\tcDAO.inserirComentarios(comentarios);\n//\t\t\n//\t\tSystem.out.println(\"sera que comitou\");\n//\t\t\n\t\t\n\t\tPostagem postagem = new Postagem();\n\t\tpostagem.setDescPostagem(\"Uma formiguinha subindo pela parede\");\n\t\tpostagem.setTituloPostagem(\"Formiguinha\");\n\t\t\n\t\tPostagemDAO poDAO = new PostagemDAO();\n\t\tpostagem = poDAO.inserirPostagem(postagem);\n\t\t\n\t\tSystem.out.println(postagem.getIdPostagem());\n\t\t\n\t}", "private void cargarTipEmp(java.sql.Connection conn, java.sql.ResultSet rstExt) {\r\n Statement stmTipEmp;\r\n ResultSet rstEmp;\r\n String sSql;\r\n try {\r\n if (conn != null) {\r\n stmTipEmp = conn.createStatement();\r\n sSql = \"select b.co_tipper , b.tx_descor , round(a.nd_ivaVen,2) as porIva , bod.co_bod, a1.tx_dir, a1.tx_nom as nombod FROM tbm_emp as a \"\r\n + \" left join tbm_tipper as b on(b.co_emp=a.co_emp and b.co_tipper=a.co_tipper)\"\r\n + \" left join tbr_bodloc as bod on(bod.co_emp=a.co_emp and bod.co_loc=\" + rstExt.getString(\"co_loc\") + \" and bod.st_reg='P') \"\r\n + \" inner join tbm_bod as a1 on (a1.co_emp=bod.co_emp and a1.co_bod=bod.co_bod ) \"\r\n + \" where a.co_emp=\" + rstExt.getString(\"co_emp\");\r\n rstEmp = stmTipEmp.executeQuery(sSql);\r\n if (rstEmp.next()) {\r\n strTipPer_emp = rstEmp.getString(\"tx_descor\");\r\n intCodBodPre = rstEmp.getInt(\"co_bod\");\r\n intCodTipPerEmp = rstEmp.getInt(\"co_tipper\");\r\n strNomBodPtaPar = rstEmp.getString(\"tx_dir\");\r\n strNomBodPrv = rstEmp.getString(\"nombod\");\r\n bldivaEmp = objZafCtaCtb_dat.getPorIvaVen();\r\n dblPorIva = bldivaEmp;\r\n dblPorComSol = objZafCtaCtb_dat.getPorComSol();\r\n }\r\n rstEmp.close();\r\n stmTipEmp.close();\r\n stmTipEmp = null;\r\n rstEmp = null;\r\n }\r\n } \r\n catch (SQLException Evt) {\r\n objUti.mostrarMsgErr_F1(jifCnt, Evt);\r\n System.err.println(\"ERROR \" + Evt.toString());\r\n } \r\n catch (Exception Evt) {\r\n objUti.mostrarMsgErr_F1(jifCnt, Evt);\r\n System.err.println(\"ERROR \" + Evt.toString());\r\n }\r\n }", "public DefaultTableModel cargarDatos () {\r\n DefaultTableModel modelo = new DefaultTableModel(\r\n new String[]{\"ID SALIDA\", \"IDENTIFICACIÓN CAPITÁN\", \"NÚMERO MATRICULA\", \"FECHA\", \"HORA\", \"DESTINO\"}, 0); //Creo un objeto del modelo de la tabla con los titulos cargados\r\n String[] info = new String[6];\r\n String query = \"SELECT * FROM actividad WHERE eliminar = false\";\r\n try {\r\n Statement st = con.createStatement();\r\n ResultSet rs = st.executeQuery(query);\r\n while (rs.next()) { \r\n info[0] = rs.getString(\"id_salida\");\r\n info[1] = rs.getString(\"identificacion_navegate\");\r\n info[2] = rs.getString(\"numero_matricula\");\r\n info[3] = rs.getString(\"fecha\");\r\n info[4] = rs.getString(\"hora\");\r\n info[5] = rs.getString(\"destino\");\r\n Object[] fila = new Object[]{info[0], info[1], info[2], info[3], info[4], info[5]};\r\n modelo.addRow(fila);\r\n }\r\n st.close();\r\n rs.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(PActividad.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return modelo;\r\n }", "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 PreencherTabela() throws SQLException {\n try (Connection connection = ConnectionFactory.getConnection()) {\n String[] colunas = new String[]{\"ID\", \"Nome\", \"Nomenclatura\", \"Quantidade\"};\n ArrayList dados = new ArrayList();\n for (ViewProdutoPedido v : viewProdutoPedidos) {\n dados.add(new Object[]{v.getId(), v.getNome(), v.getNomenclatura(), v.getQuantidade()});\n }\n ModeloTabela modelo = new ModeloTabela(dados, colunas);\n jTableItensPedido.setModel(modelo);\n jTableItensPedido.setRowSorter(new TableRowSorter(modelo));\n jTableItensPedido.getColumnModel().getColumn(0).setPreferredWidth(2);\n jTableItensPedido.getColumnModel().getColumn(0).setResizable(false);\n jTableItensPedido.getColumnModel().getColumn(1).setPreferredWidth(20);\n jTableItensPedido.getColumnModel().getColumn(1).setResizable(false);\n jTableItensPedido.getColumnModel().getColumn(2).setPreferredWidth(20);\n jTableItensPedido.getColumnModel().getColumn(2).setResizable(false);\n jTableItensPedido.getColumnModel().getColumn(3).setPreferredWidth(20);\n jTableItensPedido.getColumnModel().getColumn(3).setResizable(false);\n\n }\n }", "public void esborrarRegistresTaulaNews() throws SQLException {\n bd.execSQL(\"DELETE FROM \" + BD_TAULA );\n\n }", "public void buscar() { // ATENCION tengo dudas con % telefono% no sale ningun resultado. si sale con telefono%\n String nombre = AgendarA.txtBNombre.getText();\n String apellidos = AgendarA.txtBApellidos.getText();\n String ciudad = AgendarA.txtBCiudad.getText();\n\n modeloagr = new DefaultTableModel(null, columnasAgr) {\n public boolean isCellEditable(int fila, int columna) {\n return false;\n }\n };\n if (AgendarA.chNombre.isSelected() == true && AgendarA.chApellidos.isSelected() == true && AgendarA.chCiudad.isSelected() == true) {\n if (!nombre.equals(\"\") && !apellidos.equals(\"\") && !ciudad.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,cedula,CONCAT(nombres,' ',apellidos),municipios.Nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE personalexterno.nombres LIKE '%\" + nombre + \"%' AND personalexterno.apellidos LIKE '%\" + apellidos + \"%' AND municipios.Nombre LIKE '%\" + ciudad + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY nombre\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else if (AgendarA.chNombre.isSelected() == true && AgendarA.chApellidos.isSelected() == true) {\n if (!nombre.equals(\"\") && !apellidos.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,cedula,CONCAT(nombres,' ',apellidos),municipios.Nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE personalexterno.nombres LIKE '%\" + nombre + \"%' AND personalexterno.Apellidos LIKE '%\" + apellidos + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY cedula\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else if (AgendarA.chNombre.isSelected() == true && AgendarA.chCiudad.isSelected() == true) {\n if (!nombre.equals(\"\") && !ciudad.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,nombre,CONCAT(nombres,' ',apellidos),municipios.Nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE municipios.Nombre LIKE '%\" + ciudad + \"%' AND personalexterno.nombres LIKE '%\" + nombre + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY cedula\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else if (AgendarA.chApellidos.isSelected() == true && AgendarA.chCiudad.isSelected() == true) {\n if (!apellidos.equals(\"\") && !ciudad.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,personalexterno.cedula,nombres,apellidos,municipios.Nombre FROM personalexterno,municipios WHERE municipios.Nombre LIKE '%\" + ciudad + \"%' AND personalexterno.apellidos LIKE '%\" + apellidos + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY cedula\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else if (AgendarA.chNombre.isSelected() == true) {\n if (!nombre.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,cedula,CONCAT(nombres,' ',apellidos),municipios.Nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE personalexterno.nombres LIKE '%\" + nombre + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY cedula\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else if (AgendarA.chApellidos.isSelected() == true) {\n if (!apellidos.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,cedula,CONCAT(nombres,' ',apellidos),municipios.Nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE personalexterno.apellidos LIKE '%\" + apellidos + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY cedula\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else if (AgendarA.chCiudad.isSelected() == true) {\n if (!ciudad.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,cedula,CONCAT(nombres,' ',apellidos),municipios.Nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE municipios.Nombre LIKE '%\" + ciudad + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY cedula\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else {\n JOptionPane.showMessageDialog(null, \"Ninguno de los campos de busqueda esta seleccionado\");\n }\n tbl.rowNumberTabel(AgendarA.tblAgricultor);\n //desactivar_checkbox();\n }", "public boolean insertarNuevoClienteVista(Cliente cliente, Cuenta cuenta) {\n \n String queryDividido1 = \"INSERT INTO Usuario(Codigo, Nombre, DPI, Direccion, Sexo, Password, Tipo_Usuario) \"\n + \"VALUES(?,?,?,?,?,aes_encrypt(?,'AES'),?)\";\n\n String queryDividido2 = \"INSERT INTO Cliente(Usuario_Codigo, Nombre, Nacimiento, DPI_Escaneado, Estado) \"\n + \"VALUES(?,?,?,?,?)\";\n \n String queryDividido3 = \"INSERT INTO Cuenta(No_Cuenta, Fecha_Creacion, Saldo_Cuenta, Cliente_Usuario_Codigo) \"\n + \"VALUES(?,?,?,?)\";\n \n \n try {\n\n PreparedStatement enviarDividido1 = Conexion.conexion.prepareStatement(queryDividido1);\n\n //Envio de los Datos Principales del cliente a la Tabla Usuario\n enviarDividido1.setInt(1, cliente.getCodigo());\n enviarDividido1.setString(2, cliente.getNombre());\n enviarDividido1.setString(3, cliente.getDPI());\n enviarDividido1.setString(4, cliente.getDireccion());\n enviarDividido1.setString(5, cliente.getSexo());\n enviarDividido1.setString(6, cliente.getPassword());\n enviarDividido1.setInt(7, 3);\n enviarDividido1.executeUpdate();\n\n //Envia los Datos Complementarios del Usuario a la tabla cliente\n PreparedStatement enviarDividido2 = Conexion.conexion.prepareStatement(queryDividido2);\n enviarDividido2.setInt(1, cliente.getCodigo());\n enviarDividido2.setString(2, cliente.getNombre());\n enviarDividido2.setString(3, cliente.getNacimiento());\n enviarDividido2.setBlob(4, cliente.getDPIEscaneado());\n enviarDividido2.setBoolean(5, cliente.isEstado());\n enviarDividido2.executeUpdate();\n \n //Envia los Datos de la Cuenta Adjudicada al Cliente\n PreparedStatement enviarDividido3 = Conexion.conexion.prepareStatement(queryDividido3);\n\n //Envio de los Datos Principales de una Cuenta a la Tabla Cuenta, perteneciente a un cliente en Especifico\n enviarDividido3.setInt(1, cuenta.getNoCuenta());\n enviarDividido3.setString(2, cuenta.getFechaCreacion());\n enviarDividido3.setDouble(3, cuenta.getSaldo());\n enviarDividido3.setInt(4, cliente.getCodigo());\n enviarDividido3.executeUpdate();\n \n \n return true;\n\n } catch (SQLException ex) {\n ex.printStackTrace(System.out);\n return false;\n }\n\n }", "public static void main(String[] args) {\n\n String select = \"select direccion from cliente where idCliente = 3;\", update;\n Connection conexion = BddConnection.newConexionPostgreSQL(\"Ventas\");\n PreparedStatement sentencia;\n Direccion dirCliente;\n ResultSet resul;\n\n try {\n sentencia = conexion.prepareStatement(select);\n resul = sentencia.executeQuery();\n if (resul.next()){\n dirCliente = Direccion.newInstance(resul.getString(1));\n dirCliente.getPoblacion().getProvincia().setProvincia(\"Granada update\");\n update = \"update cliente set direccion = \" + dirCliente.getStringTypeT_Direccion() + \" where idCliente = 3\";\n sentencia = conexion.prepareStatement(update);\n sentencia.executeUpdate();\n }\n resul.close();\n sentencia.close();\n conexion.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }" ]
[ "0.6642115", "0.6377298", "0.63439196", "0.62973046", "0.6266569", "0.6201932", "0.6196289", "0.61600596", "0.6144276", "0.61420494", "0.61412054", "0.6131594", "0.6118616", "0.6089849", "0.60710543", "0.60666", "0.6049882", "0.6019946", "0.60086364", "0.59929746", "0.59906054", "0.5953551", "0.59488314", "0.5925204", "0.5912943", "0.58866", "0.5885087", "0.5868597", "0.5863518", "0.58536536", "0.58521867", "0.5849753", "0.5834579", "0.58306956", "0.5799992", "0.5783765", "0.57760847", "0.576798", "0.5764903", "0.5755949", "0.5751858", "0.5745238", "0.57312083", "0.5727007", "0.5723108", "0.5717961", "0.5700077", "0.56896204", "0.5688192", "0.56858766", "0.56856865", "0.5669106", "0.56675494", "0.5666442", "0.56656", "0.5659391", "0.5659172", "0.56522644", "0.5647511", "0.5644308", "0.5643042", "0.56411314", "0.5632367", "0.5630782", "0.56198615", "0.5618484", "0.5615417", "0.56150323", "0.56107813", "0.5601333", "0.5592092", "0.5587739", "0.5587507", "0.5579068", "0.5578979", "0.5576155", "0.5575854", "0.557335", "0.55684835", "0.55681443", "0.55602586", "0.5557474", "0.5556341", "0.55511475", "0.5545943", "0.55421585", "0.55397326", "0.5534797", "0.5533742", "0.55303127", "0.55267674", "0.55230635", "0.5522087", "0.55217576", "0.5519212", "0.55151254", "0.5514774", "0.55104995", "0.55034274", "0.55031216", "0.54931426" ]
0.0
-1
recebe dados dos estados do banco de dados. prepara a sql
public void carregaCidadeSelecionada(String nome) throws SQLException{ String sql = "SELECT nome FROM tb_cidades where uf='"+cbUfEditar.getSelectedItem()+"'"; PreparedStatement preparador = Conexao.conectar().prepareStatement(sql); ResultSet rs = preparador.executeQuery(); //passando valores do banco para o objeto result; try{ while(rs.next()){ String list = rs.getString("nome"); //resgatando estado //popula combo_estadof com as informações colhidas cbCidadeEditar.addItem(list); } } catch (Exception e){ JOptionPane.showMessageDialog(null, "Impossivel carregar Estados!", "ERROR - ", JOptionPane.ERROR_MESSAGE); } cbCidadeEditar.setSelectedItem(nome); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Tablero consultarTablero();", "void LlenarModelo(){\n datos.addColumn(\"ID\");\n datos.addColumn(\"Descripcion\");\n datos.addColumn(\"Cantidad\");\n String []ingresar=new String[4];\n try {\n Connection con = Conexion.getConection();\n Statement estado = con.createStatement();\n //ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago where codigo>=\" + SIGEPSA.IDOtrosPagosMin + \";\");\n //ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago ;\");\n ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago where codigo<9 or codigo>10 and activo = 1;\");\n while(resultado.next()){\n ingresar[0]=String.valueOf((String)resultado.getObject(\"CODIGO\").toString());\n ingresar[1]=String.valueOf((String)resultado.getObject(\"DESCRIPCION\").toString());\n ingresar[2]=String.valueOf((String)resultado.getObject(\"CANTIDAD\").toString());\n datos.addRow(ingresar);\n }\n }catch (Exception ex) {\n \n }\n }", "public void refresh() {\n String sql = \"\";\n sql += \"select m.id\"\n + \", m.data\"\n + \", CAST(CONCAT(dep.nome, ' [', dep.id, ']') AS CHAR(50)) as deposito\"\n + \", cau.descrizione as causale\"\n + \", m.articolo\"\n + \", if (cau.segno = -1 , -m.quantita, m.quantita) as quantita\"\n + \", m.note\"\n + \", cast(concat(IF(m.da_tipo_fattura = 7, 'Scontr.', \"\n + \" IF(m.da_tabella = 'test_fatt', 'Fatt. Vend.', \"\n + \" IF(m.da_tabella = 'test_ddt', 'DDT Vend.',\"\n + \" IF(m.da_tabella = 'test_fatt_acquisto', 'Fatt. Acq.',\"\n + \" IF(m.da_tabella = 'test_ddt_acquisto', 'DDT Acq.', m.da_tabella)))))\"\n + \" , da_serie, ' ', da_numero, '/', da_anno, ' - [ID ', da_id, ']') as CHAR)as origine\"\n // + \", m.da_tabella\"\n // + \", m.da_anno\"\n // + \", m.da_serie\"\n // + \", m.da_numero\"\n // + \", m.da_id\"\n + \", m.matricola\"\n + \", m.lotto\"\n + \", a.codice_fornitore, a.codice_a_barre from movimenti_magazzino m left join articoli a on m.articolo = a.codice\"\n + \" left join tipi_causali_magazzino cau on m.causale = cau.codice\"\n + \" left join depositi dep ON m.deposito = dep.id\";\n sql += \" where 1 = 1\";\n System.out.println(\"articolo_selezionato_filtro_ref = \" + articolo_selezionato_filtro_ref);\n System.out.println(\"articolo_selezionato_filtro_ref get = \" + articolo_selezionato_filtro_ref.get());\n if (articolo_selezionato_filtro_ref.get() != null && StringUtils.isNotBlank(articolo_selezionato_filtro_ref.get().codice)) {\n sql += \" and m.articolo like '\" + Db.aa(articolo_selezionato_filtro_ref.get().codice) + \"'\";\n }\n if (filtro_barre.getText().length() > 0) {\n sql += \" and a.codice_a_barre like '%\" + Db.aa(filtro_barre.getText()) + \"%'\";\n }\n if (filtro_lotto.getText().length() > 0) {\n sql += \" and m.lotto like '%\" + Db.aa(filtro_lotto.getText()) + \"%'\";\n }\n if (filtro_matricola.getText().length() > 0) {\n sql += \" and m.matricola like '%\" + Db.aa(filtro_matricola.getText()) + \"%'\";\n }\n if (filtro_fornitore.getText().length() > 0) {\n sql += \" and a.codice_fornitore like '%\" + Db.aa(filtro_fornitore.getText()) + \"%'\";\n }\n if (filtro_deposito.getSelectedIndex() >= 0) {\n sql += \" and m.deposito = \" + cu.s(filtro_deposito.getSelectedKey());\n }\n sql += \" order by m.data desc, id desc\";\n System.out.println(\"sql movimenti: \" + sql);\n griglia.dbOpen(Db.getConn(), sql, Db.INSTANCE, true);\n griglia.dbSelezionaRiga();\n }", "public void consutaBD(String Campo, String txtSQL) {\n String consultaBD = \"SELECT * FROM `cronograma_actividades` WHERE \" + Campo + \" LIKE '\" + txtSQL + \"_%'\";\n //JOptionPane.showMessageDialog(null, consultaBD);\n javax.swing.JTable Tabla = this.Tabla_addActividad;\n // Enviamos los parametros para la consulta de la tabla\n // conexion consulta de la base de datos y el nombre de la tabla\n String cabesera[] = {\"Código\", \"Asunto\", \"Actividad\",\"hora\",\"Fecha\",\"Estado\"};\n cone1.GetTabla_Sincabeseras_sql_bd(cn, consultaBD, Tabla, cabesera);\n\n }", "private void llenarListado1() {\r\n\t\tString sql1 = Sentencia1()\r\n\t\t\t\t+ \" where lower(cab.descripcion) = 'concurso' \" + \"and (\"\r\n\t\t\t\t+ \"\t\tdet.id_estado_det = (\" + \"\t\t\t\tselect est.id_estado_det \"\r\n\t\t\t\t+ \"\t\t\t\tfrom planificacion.estado_det est \"\r\n\t\t\t\t+ \"\t\t\t\twhere lower(est.descripcion)='libre'\" + \"\t\t) \"\r\n\t\t\t\t+ \"\t\tor det.id_estado_det is null\" + \"\t) \"\r\n\t\t\t\t+ \" and uo_cab.id_configuracion_uo = \"\r\n\t\t\t\t+ configuracionUoCab.getIdConfiguracionUo()\r\n\t\t\t\t+ \" AND det.activo=true\";\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO SIMPLIFICADO Se despliegan los puestos\r\n\t\t * PERMANENTES o CONTRATADOS, con estado = LIBRE o NULO Los puestos\r\n\t\t * deben ser de nivel 1\r\n\t\t */\r\n\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n\t\t\t\t.equalsIgnoreCase(CONCURSO_SIMPLIFICADO)) {\r\n\t\t\tsql1 += \" and cpt.nivel=1 and cpt.activo=true and (det.permanente is true or det.contratado is true) \";\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO INTERNO DE OPOSICION INSTITUCIONAL Se\r\n\t\t * despliegan los puestos PERMANENTE, con estado = LIBRE o NULO\r\n\t\t */\r\n\r\n\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n\t\t\t\t.equalsIgnoreCase(CONCURSO_INTERNO_OPOSICION)) {\r\n\t\t\tsql1 += \" and det.permanente is true \";\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO INTERNO DE OPOSICION INTER INSTITUCIONAL\r\n\t\t * Se despliegan los puestos PERMANENTE, con estado = LIBRE o NULO\r\n\t\t */\r\n\r\n\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n\t\t\t\t.equalsIgnoreCase(CONCURSO_INTERNO_INTERINSTITUCIONAL)) {\r\n\t\t\tsql1 += \" and det.permanente is true \";\r\n\t\t}\r\n\t\tString sql2 = Sentencia2()\r\n\t\t\t\t+ \" where lower(estado_det.descripcion) = 'en reserva' \"\r\n\t\t\t\t+ \"and uo_cab.id_configuracion_uo = \"\r\n\t\t\t\t+ configuracionUoCab.getIdConfiguracionUo()\r\n\t\t\t\t+ \" and concurso.id_concurso = \" + concurso.getIdConcurso()\r\n\t\t\t\t+ \" and puesto_det.activo=true\";\r\n\r\n\t\tcargarLista(sql1, sql2);\r\n\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 void introducirPagosALojamientoHotelFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo){\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);\n try {\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT ALOJAMIENTO.Id,ALOJAMIENTO.Id_Reservacion,RESERVACION.Fecha_Entrada, RESERVACION.Fecha_Salida,RESERVACION.Precio FROM RESERVACION JOIN ALOJAMIENTO WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND RESERVACION.Fecha_Entrada>=? AND RESERVACION.Fecha_Entrada<=? AND RESERVACION.Check_In=1;\");\n declaracion.setDate(1,fechaInicialSql);\n declaracion.setDate(2,fechaFinalSQL);// pago de alojamiento en rango fchas\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {\n Object objeto[] = new Object[6];// pago de alojamiento en rango fchas\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);\n objeto[2] = resultado.getDate(3);\n objeto[3] = resultado.getDate(4);// pago de alojamiento en rango fchas\n objeto[4] = resultado.getInt(5);\n String fechaInicialProbar=objeto[2].toString();\n String fechaFinalProbar=objeto[3].toString();// pago de alojamiento en rango fchas\n String precioProbar = objeto[4].toString();// pago de alojamiento en rango fchas\n int total=habitacion.hacerTotalAlojamiento(fechaInicialProbar, fechaFinalProbar, precioProbar);\n objeto[5]= total;\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "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 }", "public void buscarEstudiante(String codEstudiante){\n estudianteModificar=new Estudiante();\n estudianteGradoModificar=new EstudianteGrado();\n StringBuilder query=new StringBuilder();\n query.append(\"select e.idestudiante,e.nombre,e.apellido,e.ci,e.cod_est,e.idgrado,e.idcurso,g.grado,c.nombre_curso \" );\n query.append(\" from estudiante e \");\n query.append(\" inner join grado g on e.idgrado=g.idgrado \");\n query.append(\" inner join cursos c on e.idcurso=c.idcurso \");\n query.append(\" where idestudiante=? \");\n try {\n PreparedStatement pst=connection.prepareStatement(query.toString());\n pst.setInt(1, Integer.parseInt(codEstudiante));\n ResultSet resultado=pst.executeQuery();\n //utilizamos una condicion porque la busqueda nos devuelve 1 registro\n if(resultado.next()){\n //cargando la informacion a nuestro objeto categoriaModificarde tipo categoria\n estudianteModificar.setCodEstudiante(resultado.getInt(1));\n estudianteModificar.setNomEstudiante(resultado.getString(2));\n estudianteModificar.setApEstudiante(resultado.getString(3));\n estudianteModificar.setCiEstudiante(resultado.getInt(4));\n estudianteModificar.setCodigoEstudiante(resultado.getString(5));\n estudianteModificar.setIdgradoEstudiante(resultado.getInt(6));\n estudianteModificar.setIdCursoEstudiante(resultado.getInt(7));\n estudianteGradoModificar.setNomGrado(resultado.getString(8));\n estudianteGradoModificar.setNomCurso(resultado.getString(9));\n }\n } catch (SQLException e) {\n System.out.println(\"Error de conexion\");\n e.printStackTrace();\n }\n }", "public void introducirPagosALojamientoClienteFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo,String dpiCliente){\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);// pago de alojamiento en rango fchas\n try {\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT ALOJAMIENTO.Id,ALOJAMIENTO.Id_Reservacion,RESERVACION.Fecha_Entrada, RESERVACION.Fecha_Salida,RESERVACION.Precio FROM RESERVACION JOIN ALOJAMIENTO WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND RESERVACION.Fecha_Entrada>=? AND RESERVACION.Fecha_Entrada<=? AND RESERVACION.Dpi_Cliente=? AND RESERVACION.Check_In=1;\");\n declaracion.setDate(1,fechaInicialSql);\n declaracion.setDate(2,fechaFinalSQL);// pago de alojamiento en rango fchas\n declaracion.setString(3, dpiCliente);\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {\n Object objeto[] = new Object[6];\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);\n objeto[2] = resultado.getDate(3);// pago de alojamiento en rango fchas\n objeto[3] = resultado.getDate(4);\n objeto[4] = resultado.getInt(5);\n String fechaInicialProbar=objeto[2].toString();\n String fechaFinalProbar=objeto[3].toString();// pago de alojamiento en rango fchas\n String precioProbar = objeto[4].toString();\n int total=habitacion.hacerTotalAlojamiento(fechaInicialProbar, fechaFinalProbar, precioProbar);\n objeto[5]= total;\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "public void EjecutarConsulta() {\n try {\n Consultar(\"select * from \"+table);\n this.resultSet = preparedStatement.executeQuery();\n } catch (Exception e) {\n// MessageEmergent(\"Fail EjecutarConsulta(): \"+e.getMessage());\n }\n }", "public CalMetasDTO cargarRegistro(int codigoCiclo, int codigoPlan, int codigoMeta) {\n/* */ try {\n/* 416 */ String s = \"select m.*,\";\n/* 417 */ s = s + \"tm.descripcion as nombreTipoMedicion,\";\n/* 418 */ s = s + \"est.descripcion as nombreEstado,\";\n/* 419 */ s = s + \"Um.Descripcion as nombre_unidad_medida\";\n/* 420 */ s = s + \" from cal_plan_metas m,sis_multivalores tm,sis_multivalores est,Sis_Multivalores Um\";\n/* 421 */ s = s + \" where \";\n/* 422 */ s = s + \" m.tipo_medicion =tm.valor\";\n/* 423 */ s = s + \" and tm.tabla='CAL_TIPO_MEDICION'\";\n/* 424 */ s = s + \" and m.estado =est.valor\";\n/* 425 */ s = s + \" and est.tabla='CAL_ESTADO_META'\";\n/* 426 */ s = s + \" and m.Unidad_Medida = Um.Valor\";\n/* 427 */ s = s + \" and Um.Tabla = 'CAL_UNIDAD_MEDIDA_META'\";\n/* 428 */ s = s + \" and m.codigo_ciclo=\" + codigoCiclo;\n/* 429 */ s = s + \" and m.codigo_plan=\" + codigoPlan;\n/* 430 */ s = s + \" and m.codigo_meta=\" + codigoMeta;\n/* 431 */ boolean rtaDB = this.dat.parseSql(s);\n/* 432 */ if (!rtaDB) {\n/* 433 */ return null;\n/* */ }\n/* */ \n/* 436 */ this.rs = this.dat.getResultSet();\n/* 437 */ if (this.rs.next()) {\n/* 438 */ return leerRegistro();\n/* */ }\n/* */ }\n/* 441 */ catch (Exception e) {\n/* 442 */ e.printStackTrace();\n/* 443 */ Utilidades.writeError(\"CalPlanMetasFactory:cargarCalMetas \", e);\n/* */ } \n/* 445 */ return null;\n/* */ }", "private boolean crearRecurso(int codigoCiclo, int codigoPlan, int codigoMeta, int codigoRecurso, String estado, String usuarioInsercion) {\n/* */ try {\n/* 513 */ String s = \"select estado from cal_plan_recursos_meta r where r.codigo_ciclo=\" + codigoCiclo + \" and r.codigo_plan=\" + codigoPlan + \" and r.codigo_meta=\" + codigoMeta + \" and r.codigo_recurso=\" + codigoRecurso;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 520 */ this.dat.parseSql(s);\n/* 521 */ this.rs = this.dat.getResultSet();\n/* 522 */ if (this.rs.next()) {\n/* 523 */ s = \"update cal_plan_recursos_meta set \";\n/* 524 */ s = s + \" estado='\" + estado + \"',\";\n/* 525 */ s = s + \" fecha_modificacion=\" + Utilidades.getFechaBD() + \",\";\n/* 526 */ s = s + \" usuario_modificacion='\" + usuarioInsercion + \"'\";\n/* 527 */ s = s + \" where \";\n/* 528 */ s = s + \" codigo_ciclo=\" + codigoCiclo;\n/* 529 */ s = s + \" and codigo_plan=\" + codigoPlan;\n/* 530 */ s = s + \" and codigo_meta=\" + codigoMeta;\n/* 531 */ s = s + \" and codigo_recurso=\" + codigoRecurso;\n/* */ } else {\n/* */ \n/* 534 */ s = \"insert into cal_plan_recursos_meta (codigo_ciclo,codigo_plan,codigo_meta,codigo_recurso,estado,fecha_insercion,usuario_insercion) values (\" + codigoCiclo + \",\" + \"\" + codigoPlan + \",\" + \"\" + codigoMeta + \",\" + \"\" + codigoRecurso + \",\" + \"'\" + estado + \"',\" + Utilidades.getFechaBD() + \",\" + \"'\" + usuarioInsercion + \"'\" + \")\";\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 552 */ return this.dat.executeUpdate(s);\n/* */ \n/* */ }\n/* 555 */ catch (Exception e) {\n/* 556 */ e.printStackTrace();\n/* 557 */ Utilidades.writeError(\"CalMetasDAO:crearRegistro\", e);\n/* */ \n/* 559 */ return false;\n/* */ } \n/* */ }", "private void mbushetabelen() {\n try {\n Statement stmt = LidhjaMeDb.hapelidhjen();\n //CallableStatement stmt = conn.prepareCall(\"{call procedura1(?)}\");\n //stmt.setInt(1, 1);\n //ResultSet rs=stmt.executeQuery();\n String sql = \"SELECT kerkesat.kompania AS 'Kompania', llojet_lejes.lloji_lejes AS 'Lloji i Lejes'\"\n + \" ,kerkesat.adresa AS 'Adresa', kerkesat.tel AS 'Tel',kerkesat.data_pranimit AS 'Data e Pranimit'\"\n + \" ,kerkesat.nr_protokollit AS 'Numri i Protokollit', aktivitetet.aktiviteti AS 'Aktiviteti'\"\n + \" ,komunat.komuna AS 'Komuna', kerkesat.taksa AS 'Taksa', kerkesat.statusi_lendes AS 'Statusi i Lendes'\"\n + \" ,kerkesat.data_leshimit AS 'Data e Leshimit'\"\n + \" ,pergjigjjet_komisionit.pergjigjja AS 'Pergjigjja e Komisionit' FROM kerkesat \"\n + \" JOIN llojet_lejes ON kerkesat.idlloji = llojet_lejes.idlloji \"\n + \" JOIN aktivitetet ON kerkesat.idaktiviteti = aktivitetet.idaktiviteti \"\n + \" JOIN pergjigjjet_komisionit ON kerkesat.idpergjigjja = pergjigjjet_komisionit.idpergjigjja \"\n + \" JOIN komunat ON kerkesat.idkomuna=komunat.idkomuna \"\n + \"WHERE kompania LIKE '%\" + txtkompania.getText() + \"%' \"\n + \"AND aktiviteti like '%\" + (String) kmbaktiviteti.getSelectedItem() + \"%' \"\n + \"AND komuna like '%\" + (String) kmbkomunat.getSelectedItem() + \"%' \"\n + \"AND pergjigjja like '%\" + (String) kmbpergjigjja.getSelectedItem() + \"%' \"\n + \"AND data_pranimit >= '\" + new java.sql.Date(jdataprej.getDate().getTime()) + \"' AND data_pranimit <= '\" + new java.sql.Date(jdataderi.getDate().getTime()) + \"' \";\n System.out.println(sql);\n ResultSet rs = stmt.executeQuery(sql);\n tblkerkesat.setModel(DBUtils.resultSetToTableModel(rs));\n//boolean Zgjedhur=false;jTable1.addColumn(Zgjedhur);\n LidhjaMeDb.mbyllelidhjen();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "public void PrepararBaseDatos() { \r\n try{ \r\n conexion=DriverManager.getConnection(\"jdbc:ucanaccess://\"+this.NOMBRE_BASE_DE_DATOS,this.USUARIO_BASE_DE_DATOS,this.CLAVE_BASE_DE_DATOS);\r\n \r\n } \r\n catch (Exception e) { \r\n JOptionPane.showMessageDialog(null,\"Error al realizar la conexion \"+e);\r\n } \r\n try { \r\n sentencia=conexion.createStatement( \r\n ResultSet.TYPE_SCROLL_INSENSITIVE, \r\n ResultSet.CONCUR_READ_ONLY); \r\n \r\n System.out.println(\"Se ha establecido la conexión correctamente\");\r\n } \r\n catch (Exception e) { \r\n JOptionPane.showMessageDialog(null,\"Error al crear el objeto sentencia \"+e);\r\n } \r\n }", "private void procurarData() {\n if (jDateIni.getDate() != null && jDateFim.getDate() != null) {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n String data = sdf.format(jDateIni.getDate());\n String data2 = sdf.format(jDateFim.getDate());\n carregaTable(id, data, data2);\n JBreg.setEnabled(false);\n }\n }", "QuartoConsumo[] busca(Object dadoBusca, String coluna) throws SQLException;", "public DanielPatricio() throws SQLException {\n initComponents();\n //limpiar();\n recargarDropDownCarros();\n recargarTextArea();\n recargarDataTable();\n \n \n }", "public static String todosLosEmpleados_baja(){\n String query=\"SELECT empleado.idEmpleado, persona.nombre, persona.apePaterno, persona.apeMaterno, empleado.codigo, empleado.fechaIngreso,persona.codigoPostal,persona.domicilio,\" +\n\"empleado.puesto, empleado.salario from persona inner join empleado on persona.idPersona=empleado.idPersona where activo=0;\";\n return query;\n }", "public FlujoDetalleDTO cargarRegistro(int codigoFlujo, int secuencia) {\n/* */ try {\n/* 201 */ String s = \"select t.codigo_flujo,t.secuencia,t.servicio_inicio,r1.descripcion as nombre_servicio_inicio,t.accion,t.codigo_estado,r3.descripcion as nombre_codigo_estado,t.servicio_destino,r4.descripcion as nombre_servicio_destino,t.nombre_procedimiento,t.correo_destino,t.enviar_solicitud,t.ind_mismo_proveedor,t.ind_mismo_cliente,t.estado,t.caracteristica,t.valor_caracteristica,t.caracteristica_correo,m5.descripcion as nombre_estado,c.DESCRIPCION nombre_caracteristica,cv.DESCRIPCION descripcion_valor,t.metodo_seleccion_proveedor,t.ind_correo_clientes,t.enviar_hermana,t.enviar_si_hermana_cerrada,t.ind_cliente_inicial,t.usuario_insercion,t.fecha_insercion,t.usuario_modificacion,t.fecha_modificacion from wkf_detalle t left join SERVICIOS r1 on (r1.CODIGO=t.servicio_inicio) left join ESTADOS r3 on (r3.codigo=t.codigo_estado) left join SERVICIOS r4 on (r4.CODIGO=t.servicio_destino) left join sis_multivalores m5 on (m5.tabla='ESTADO_REGISTRO' and m5.valor=t.estado) LEFT JOIN CARACTERISTICAS c ON (t.Caracteristica = c.CODIGO) LEFT JOIN CARACTERISTICAS_VALOR cv ON (t.CARACTERISTICA=cv.CARACTERISTICA AND t.VALOR_CARACTERISTICA = cv.VALOR) where t.codigo_flujo=\" + codigoFlujo + \" and t.secuencia=\" + secuencia + \"\";\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 243 */ boolean rtaDB = this.dat.parseSql(s);\n/* 244 */ if (!rtaDB) {\n/* 245 */ return null;\n/* */ }\n/* 247 */ this.rs = this.dat.getResultSet();\n/* 248 */ if (this.rs.next()) {\n/* 249 */ return leerRegistro();\n/* */ }\n/* */ }\n/* 252 */ catch (Exception e) {\n/* 253 */ e.printStackTrace();\n/* 254 */ Utilidades.writeError(\"FlujoDetalleDAO:cargarFlujoDetalle\", e);\n/* */ } \n/* 256 */ return null;\n/* */ }", "private void cargarDeDB() {\n Query query = session.createQuery(\"SELECT p FROM Paquete p WHERE p.reparto is NULL\");\n data = FXCollections.observableArrayList();\n\n List<Paquete> paquetes = query.list();\n for (Paquete paquete : paquetes) {\n data.add(paquete);\n }\n\n cargarTablaConPaquetes();\n }", "public static Statement reiniciarBD( Connection con ) {\n\t\ttry {\n\t\t\tStatement statement = con.createStatement();\n\t\t\tstatement.setQueryTimeout(30); // poner timeout 30 msg\n\t\t\tstatement.executeUpdate(\"drop table if exists items\");\n\t\t\tlog( Level.INFO, \"Reiniciada base de datos\", null );\n\t\t\treturn usarCrearTablasBD( con );\n\t\t} catch (SQLException e) {\n\t\t\tlog( Level.SEVERE, \"Error en reinicio de base de datos\", e );\n\t\t\tlastError = e;\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "@Transactional\n public void llenarTabla(ResultSet rs){\n if (rs==null) {\n System.out.println(\"el rs vino vacio\");\n }\n try {\n while (rs.next()) {\n //para cada fila de la consulta creo un pedido\n PedidoMaterial pedido = new PedidoMaterial();\n System.out.println(\"empezamos\");\n pedido.setId(rs.getInt(1));\n pedido.setNumeroPedido(rs.getInt(2));\n pedido.setNotaDeVenta(rs.getInt(3));\n pedido.setDescripProyecto(rs.getString(4));\n pedido.setCliente(rs.getString(5));\n pedido.setCantidadPedida(rs.getLong(6));\n pedido.setCantidadModificada(rs.getLong(7));\n Calendar fecha = Calendar.getInstance();\n fecha.setTime(rs.getDate(8));\n pedido.setUltimaActualizacionDespiece(fecha);\n pedido.setArticulo(rs.getString(9));\n pedido.setAriCod(rs.getString(10));\n pedido.setArea(rs.getString(11));\n pedido.setUnidadOrg(rs.getInt(12));\n pedido.setTarea(rs.getString(13));\n pedido.setCantidadAPD(rs.getLong(14));\n if (rs.getDate(15) != null) {\n fecha.setTime(rs.getDate(15));\n pedido.setFechaAsignacion(fecha); \n }\n pedido.setCantidadFinalP(rs.getLong(16));\n pedido.setCantidadRealU(rs.getLong(17));\n pedido.setTareaCod(rs.getInt(18));\n fecha.setTime(rs.getDate(19));\n pedido.setFechaUti(fecha);\n fecha.setTime(rs.getDate(20));\n pedido.setFechaFinUtili(fecha);\n \n guardarPedido(pedido);\n \n \n }\n } catch (SQLException ex) {\n \n System.out.println(ex.toString());\n }\n }", "public void actualizarFiltrarEstadoRequisicion(Requisicion req) throws Exception{\n String carnet = req.getCarnetEmpleado();\n\n java.util.Date utilDate = req.getFechaNueva();\n java.sql.Date fechaConvertida = new java.sql.Date(utilDate.getTime()); \n\n List<Requisicion> requisicion = new ArrayList<>();\n \n Connection miConexion = null;\n Statement miStatement = null;\n ResultSet miResultset = null; \n\n \n //Establecer la conexion\n miConexion = origenDatos.getConexion();\n \n \n //Verificar si existe empleado\n String sqlEmpleado = \"Select CARNETEMPLEADO FROM EMPLEADO WHERE CARNETEMPLEADO = '\"+carnet+\"'\";\n miStatement = miConexion.createStatement();\n miResultset = miStatement.executeQuery(sqlEmpleado);\n \n if(miResultset.next()){\n \n String empleado = carnet;\n \n \n String sqlDepto = \"select d.NOMBREDEPARTAMENTO from departamento d \" + \n \"inner join catalagopuesto c on d.codigodepartamento = c.codigodepartamento \" + \n \"inner join empleado e on c.codigopuesto = e.codigopuesto where e.carnetempleado ='\"+carnet+\"'\";\n \n miStatement = miConexion.createStatement();\n \n //Ejecutar SQL\n miResultset = miStatement.executeQuery(sqlDepto);\n //Crear sentencia SQL y Statement\n miResultset.next();\n String nomdepto = miResultset.getString(\"NOMBREDEPARTAMENTO\");\n \n String miSQl = \"select r.NUMREQ, r.FECPEDIDOREQ, r.FECENTREGAREQ, r.AUTORIZADO, e.CARNETEMPLEADO, e.NOMBREEMPLEADO, e.APELLIDOEMPLEADO, d.NOMBREDEPARTAMENTO \" + \n \"from requisicion r inner join empleado e on r.carnetempleado =e.carnetempleado \" + \n \"inner join catalagopuesto c on e.codigopuesto =c.codigopuesto \" + \n \"inner join departamento d on c.codigodepartamento = d.codigodepartamento \" + \n \"where r.AUTORIZADO = 1 and d.NOMBREDEPARTAMENTO='\"+nomdepto+\"' and r.FECPEDIDOREQ >=TO_DATE('\"+fechaConvertida+\"', 'YYYY/MM/DD HH:MI:SS') order by r.FECPEDIDOREQ\";\n \n miStatement = miConexion.createStatement();\n \n //Ejecutar SQL\n miResultset = miStatement.executeQuery(miSQl);\n \n while(miResultset.next()){\n int numReq = miResultset.getInt(\"NUMREQ\");\n Date fechaPedido = miResultset.getDate(\"FECPEDIDOREQ\");\n Date fechaEntrega = miResultset.getDate(\"FECENTREGAREQ\"); \n String carnetEmpleado = miResultset.getString(\"CARNETEMPLEADO\");\n String nombreEmpleado = miResultset.getString(\"NOMBREEMPLEADO\"); \n String apellidoEmpleado = miResultset.getString(\"APELLIDOEMPLEADO\");\n String nombreDepartamento = miResultset.getString(\"NOMBREDEPARTAMENTO\"); \n\n //*************************ACTUALIZAR**************************\n Connection miConexion1 = null;\n PreparedStatement miStatement1 = null;\n \n //Obtener la conexion\n \n miConexion1 = origenDatos.getConexion();\n \n //Crear sentencia sql que inserte la requisicion a la base\n String misql = \"UPDATE requisicion SET autorizado = ? WHERE numreq = ?\";\n \n miStatement1 = miConexion1.prepareStatement(misql);\n \n //Establecer los parametros para insertar la requisicion \n if(\"aceptado\".equals(req.getEstadoAut())) {\n miStatement1.setInt(1, 0);\n }else{\n miStatement1.setInt(1, 1);\n } \n\n miStatement1.setInt(2, numReq);//se obtendra dentro del while\n \n //Ejecutar la instruccion sql\n miStatement1.execute(); \n //Requisicion temporal = new Requisicion(numReq, fechaPedido, fechaEntrega, carnetEmpleado, nombreEmpleado, apellidoEmpleado, nombreDepartamento);\n //requisicion.add(temporal);\n }\n \n }\n //return requisicion; \n }", "public void ejecutarCodigoSQLdatos(String nombrebuscado)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tFileReader codigoarchivo = new FileReader ( \"./images/BD/Codigo SQL crebas datos.sql\" );\r\n\t\t\tBufferedReader reader = new BufferedReader (codigoarchivo);\r\n\t\t\tString codigo = reader.readLine();\r\n\t\t\twhile(codigo!= null)\r\n\t\t\t{\r\n\t\t\t\tif(!codigo.equalsIgnoreCase(\"\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tConector conectord = new Conector(nombrebuscado);\r\n\t\t\t\t\tconectord.iniciarConexionBaseDatos();\r\n\t\t\t\t\tCrearBD.ejecutarCodigoSQL(codigo, conectord);\r\n\t\t\t\t\tconectord.terminarConexionBaseDatos();\r\n\t\t\t\t}\r\n\t\t\t\tcodigo = reader.readLine();\r\n\t\t\t}\r\n\t\t\tJOptionPane.showMessageDialog(this,\"Se Instalo la Base de Datos Correctamente.\",\"Instalar Base de Datos\", JOptionPane.INFORMATION_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/informacion.PNG\"));\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tConector conectorg = new Conector(nombrebuscado);\r\n\t\t\t\tconectorg.iniciarConexionBaseDatos();\r\n\t\t\t\tCrearBD.ejecutarCodigoSQL(\"DROP DATABASE \"+nombrebuscado, conectorg);\r\n\t\t\t\tconectorg.terminarConexionBaseDatos();\r\n\t\t\t\tJOptionPane.showMessageDialog(this,\"No se encontro el archivo Codigo SQL crebas datos.sql\",\"Error\", JOptionPane.ERROR_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/error.PNG\"));\r\n\t\t\t}\r\n\t\t\tcatch (Exception ex)\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}", "public void introducirConsumosHotelFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo) {\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);\n try {// mira los consumo de unas fechas\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT * FROM CONSUMO_RESTAURANTE WHERE Fecha_Consumo>=? AND Fecha_Consumo<=?\");\n declaracion.setDate(1,fechaInicialSql);\n declaracion.setDate(2,fechaFinalSQL);\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {// mira los consumo de unas fechas\n Object objeto[] = new Object[7];\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);// mira los consumo de unas fechas\n objeto[2] = resultado.getString(3);\n objeto[3] = resultado.getInt(4);\n objeto[4] = resultado.getInt(5);\n objeto[5] = resultado.getDate(6);// mira los consumo de unas fechas\n int total = (Integer)objeto[3]*(Integer)objeto[4];\n objeto[6]= total;\n modelo.addRow(objeto);// mira los consumo de unas fechas\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "public void novoDebito(Debitos debitos, String conCodigo, Contas contaComSaldo) throws SQLException {\r\n String sqls = \"select * from contas where concodigo = \" + conCodigo + \" \";\r\n\r\n PreparedStatement psc = null;\r\n ResultSet rsc = null;\r\n try {\r\n psc = connection.prepareStatement(sqls);\r\n rsc = psc.executeQuery();\r\n while (rsc.next()) {\r\n contaComSaldo.setConCodigo(rsc.getInt(\"concodigo\"));\r\n contaComSaldo.setConDescricao(rsc.getString(\"condescricao\"));\r\n contaComSaldo.setTipoCodigo(rsc.getInt(\"tipocodigo\"));\r\n contaComSaldo.setConSaldo(rsc.getDouble(\"consaldo\"));\r\n }\r\n\r\n } catch (Exception e) {\r\n Logger.getLogger(ContaDAO.class.getName()).log(Level.SEVERE, null, e);\r\n\r\n }\r\n\r\n String sqlUltimoCredito = \"select * from creditos order by crecodigo desc limit 1\";\r\n\r\n PreparedStatement pscUltimoCredito = null;\r\n ResultSet rscUltimoCredito = null;\r\n\r\n Creditos creditos = new Creditos();\r\n\r\n try {\r\n\r\n pscUltimoCredito = connection.prepareStatement(sqlUltimoCredito);\r\n rscUltimoCredito = pscUltimoCredito.executeQuery();\r\n while (rscUltimoCredito.next()) {\r\n\r\n creditos.setCreCodigo(rscUltimoCredito.getInt(\"crecodigo\"));\r\n creditos.setCreData(rscUltimoCredito.getDate(\"credata\"));\r\n creditos.setConCodigo(rscUltimoCredito.getInt(\"concodigo\"));\r\n creditos.setCreValor(rscUltimoCredito.getInt(\"crevalor\"));\r\n creditos.setCreHistorico(rscUltimoCredito.getString(\"crehistorico\"));\r\n creditos.setConSaldo(rscUltimoCredito.getDouble(\"consaldo\"));\r\n }\r\n\r\n } catch (Exception e) {\r\n Logger.getLogger(DebitoDAO.class.getName()).log(Level.SEVERE, null, e);\r\n\r\n }\r\n\r\n String sql = \"insert into debitos (debdata,concodigo,debvalor,debhistorico,consaldo,creditoid) values (?,?,?,?,?,?)\";\r\n PreparedStatement ps = null;\r\n try {\r\n ps = connection.prepareStatement(sql);\r\n ps.setDate(1, new java.sql.Date(debitos.getDebData().getTime()));\r\n ps.setInt(2, debitos.getConCodigo());\r\n ps.setDouble(3, debitos.getDebValor() * -1);\r\n ps.setString(4, debitos.getDebHistorico());\r\n ps.setDouble(5, contaComSaldo.getConSaldo());\r\n ps.setInt(6, creditos.getCreCodigo());\r\n\r\n ps.execute();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(CreditoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n connection.close();\r\n ps.close();\r\n }\r\n }", "private PreparedStatement prepareClientesRebarba(Connection conn, String data, String promocao) \n\t\tthrows ParseException, SQLException\n\t{\n\t\tPreparedStatement result = null;\t\t\n\t\tSimpleDateFormat conversorData = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\tDate dataExecucao = conversorData.parse(data);\t\t\n\t\t\n\t\t//Parametro 1: Promocao (Parametro do metodo)\n\t\t//Parametro 2: Ano e mes da execucao\n\t\tSimpleDateFormat conversorDatMes = new SimpleDateFormat(\"yyMM\");\n\t\tString datMes = conversorDatMes.format(mesAnterior(dataExecucao));\n\t\t//Parametros 3, 5 e 7: Primeiro dia do mes da execucao\n\t\tDate dataInicioMesExecucao = getPrimeiroDiaMes(dataExecucao);\n\t\t//Parametro 4: Tipo de transacao da promocao PulaPula\n\t\tString tipoTransacao = TIPO_TRANSACAO_PULA_PULA;\n\t\t//Parametro 5: Primeiro dia do mes posterior ao da execucao\n\t\tDate dataInicioProxMes = getPrimeiroDiaMes(proximoMes(dataExecucao));\n\t\t//Parametro 8: Ultimo dia do mes da execucao\n\t\tDate dataFimMesExecucao = getUltimoDiaMes(dataExecucao);\n\n\t\tString sqlClientes = getQuerySelecaoClientesRebarba();\n\t\tresult = conn.prepareStatement(sqlClientes);\t\t\n\t\tresult.setString(1, promocao);\n\t\tresult.setString(2, datMes);\n\t\tresult.setDate (3, new java.sql.Date(dataInicioMesExecucao.getTime()));\n\t\tresult.setString(4, tipoTransacao);\n\t\tresult.setDate (5, new java.sql.Date(dataInicioMesExecucao.getTime()));\n\t\tresult.setDate (6, new java.sql.Date(dataInicioProxMes.getTime()));\n\t\tresult.setDate (7, new java.sql.Date(dataInicioMesExecucao.getTime()));\n\t\tresult.setDate (8, new java.sql.Date(dataFimMesExecucao.getTime()));\n\t\t\n\t\treturn result;\n\t}", "private boolean crearResponsable(int codigoCiclo, int codigoPlan, int codigoMeta, int codigoResponsable, String estado, String usuarioInsercion) {\n/* */ try {\n/* 578 */ String s = \"select estado from cal_plan_responsables_meta r where r.codigo_ciclo=\" + codigoCiclo + \" and r.codigo_plan=\" + codigoPlan + \" and r.codigo_meta=\" + codigoMeta + \" and r.codigo_responsable=\" + codigoResponsable;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 585 */ this.dat.parseSql(s);\n/* 586 */ this.rs = this.dat.getResultSet();\n/* 587 */ if (this.rs.next()) {\n/* 588 */ s = \"update cal_plan_responsables_meta set estado='\" + estado + \"',\" + \" fecha_modificacion=\" + Utilidades.getFechaBD() + \",\" + \" usuario_modificacion='\" + usuarioInsercion + \"'\" + \" where codigo_ciclo=\" + codigoCiclo + \" and codigo_plan=\" + codigoPlan + \" and codigo_meta=\" + codigoMeta + \" and codigo_responsable=\" + codigoResponsable;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ }\n/* */ else {\n/* */ \n/* */ \n/* */ \n/* */ \n/* 599 */ s = \"insert into cal_plan_responsables_meta (codigo_ciclo,codigo_plan,codigo_meta,codigo_responsable,estado,fecha_insercion,usuario_insercion) values (\" + codigoCiclo + \",\" + \"\" + codigoPlan + \",\" + \"\" + codigoMeta + \",\" + \"\" + codigoResponsable + \",\" + \"'\" + estado + \"',\" + \"\" + Utilidades.getFechaBD() + \",\" + \"'\" + usuarioInsercion + \"'\" + \")\";\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 617 */ return this.dat.executeUpdate(s);\n/* */ \n/* */ }\n/* 620 */ catch (Exception e) {\n/* 621 */ e.printStackTrace();\n/* 622 */ Utilidades.writeError(\"CalResponsablesMetaFactory:crearRegistro\", e);\n/* */ \n/* 624 */ return false;\n/* */ } \n/* */ }", "private void saveData() {\n try {\n String query;\n query = \"INSERT INTO limit_hd (kode_limit, grup, produk, masa_limit, jumlah_limit, status, pesan_gagal, tgl_mulai_event, tgl_akhir_event, date_create, date_update) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)\";\n Connection conn = (Connection) DatabaseConnection.getConnection(dbName2);\n PreparedStatement pst = conn.prepareStatement(query);\n getMaxKodeLimit();\n maxKodeLimit += 1;\n grupColumn = cmbGrup.getSelectedItem().toString();\n produkColumn = cmbProduk.getSelectedItem().toString();\n masaLimitColumn = cmbTransactionPeriod.getSelectedItem().toString();\n jumlahLimitColumn = Integer.parseInt(txtTransactionLimit.getText());\n errorMessageColumn = txaErrorMessage.getText();\n startDate = dtpStartDateEvent.getText();\n endDate = dtpEndDateEvent.getText();\n isStatusColumn = true;\n\n SimpleDateFormat dateFormatter = new SimpleDateFormat(\"dd-MMM-yyyy\");\n\n Date sqlDate1 = (Date) dateFormatter.parse(startDate);\n Date sqlDate2 = (Date) dateFormatter.parse(endDate);\n\n java.sql.Date startEventDate = new java.sql.Date(sqlDate1.getTime());\n java.sql.Date endEventDate = new java.sql.Date(sqlDate2.getTime());\n\n pst.setInt(1, maxKodeLimit);\n pst.setString(2, grupColumn);\n pst.setString(3, produkColumn);\n pst.setString(4, masaLimitColumn);\n pst.setInt(5, jumlahLimitColumn);\n pst.setBoolean(6, isStatusColumn);\n pst.setString(7, errorMessageColumn);\n pst.setDate(8, startEventDate);\n pst.setDate(9, endEventDate);\n pst.setDate(10, java.sql.Date.valueOf(java.time.LocalDate.now()));\n pst.setDate(11, java.sql.Date.valueOf(java.time.LocalDate.now()));\n pst.executeUpdate();\n showLimitHeader();\n defaultSetVariable();\n JOptionPane.showMessageDialog(null, \"Data telah berhasil di simpan\");\n } catch (HeadlessException | SQLException e) {\n JOptionPane.showMessageDialog(this, e.getMessage());\n } catch (Exception ex) {\n Logger.getLogger(LimitAddOn.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void Consultar(String query) {\n try {\n conectionSql();\n preparedStatement = conection.prepareStatement(query);\n } catch (Exception e) {\n// MessageEmergent(\"Fail Consultar(): \"+e.getMessage());\n }\n }", "public void introducirConsumosClienteFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo,String dpiCliente) {\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);\n try {// mira los consumo de unas fechas\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT CONSUMO_RESTAURANTE.Id_Consumo,CONSUMO_RESTAURANTE.Id_Alojamiento,CONSUMO_RESTAURANTE.Nombre_Comida,CONSUMO_RESTAURANTE.Precio_Comida,CONSUMO_RESTAURANTE.Cantidad,CONSUMO_RESTAURANTE.Fecha_Consumo FROM CONSUMO_RESTAURANTE JOIN ALOJAMIENTO JOIN RESERVACION WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND ALOJAMIENTO.Id=CONSUMO_RESTAURANTE.Id_Alojamiento AND RESERVACION.Dpi_Cliente=? AND Fecha_Consumo>=? AND Fecha_Consumo<=?\");\n declaracion.setString(1, dpiCliente);\n declaracion.setDate(2,fechaInicialSql);\n declaracion.setDate(3,fechaFinalSQL);\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {// mira los consumo de unas fechas\n Object objeto[] = new Object[7];\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);\n objeto[2] = resultado.getString(3);\n objeto[3] = resultado.getInt(4);// mira los consumo de unas fechas\n objeto[4] = resultado.getInt(5);\n objeto[5] = resultado.getDate(6);\n int total = (Integer)objeto[3]*(Integer)objeto[4];\n objeto[6]= total;// mira los consumo de unas fechas\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "private void TampilData(){\n try{ //\n String sql = \"SELECT * FROM buku\"; // memanggil dari php dengan tabel buku\n stt = con.createStatement(); // membuat statement baru dengan mengkonekan ke database\n rss = stt.executeQuery(sql); \n while (rss.next()){ \n Object[] o = new Object [3]; // membuat array 3 dimensi dengan nama object\n \n o[0] = rss.getString(\"judul\"); // yang pertama dengan ketentuan judul\n o[1] = rss.getString(\"penulis\"); // yang kedua dengan ketentuan penulis\n o[2] = rss.getInt(\"harga\"); // yang ketiga dengan ketentuan harga\n model.addRow(o); // memasukkan baris dengan mengkonekan di tabel model\n } \n }catch(SQLException e){ // memanipulasi kesalahan\n System.out.println(\"ini error\"); // menampilkan pesan ini error\n }\n }", "@SuppressWarnings(\"unchecked\")\r\n\tprivate void cargarLista(String sql1, String sql2) {\r\n\t\tlistaPlantaCargoDet = new ArrayList<PlantaCargoDet>();\r\n\t\tlistaPuestosReservados = new ArrayList<ConcursoPuestoDet>();\r\n\t\tlistaPlantaCargoDto = new ArrayList<PlantaCargoDetDTO>();\r\n\t\tlistaPlantaCargoDet = em.createNativeQuery(sql1, PlantaCargoDet.class)\r\n\t\t\t\t.getResultList();\r\n\t\tlistaPuestosReservados = em.createNativeQuery(sql2,\r\n\t\t\t\tConcursoPuestoDet.class).getResultList();\r\n\t\tif (listaPuestosReservados.size() > 0) {\r\n\t\t\tcantReservados = listaPuestosReservados.size();\r\n\t\t\tfor (ConcursoPuestoDet r : listaPuestosReservados) {\r\n\t\t\t\tPlantaCargoDetDTO dto = new PlantaCargoDetDTO();\r\n\t\t\t\tLong id = r.getPlantaCargoDet().getIdPlantaCargoDet();\r\n\t\t\t\tdto.setPlantaCargoDet(r.getPlantaCargoDet());\r\n\t\t\t\tdto.setReservar(true);\r\n\t\t\t\tlistaPlantaCargoDto.add(dto);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tcantReservados = 0;\r\n\t\t}\r\n\r\n\t\tif (listaPlantaCargoDet.size() > 0) {\r\n\t\t\tfor (PlantaCargoDet p : listaPlantaCargoDet) {\r\n\t\t\t\tBoolean esta = false;\r\n\t\t\t\tfor (ConcursoPuestoDet r : listaPuestosReservados) {\r\n\t\t\t\t\tif (r.getPlantaCargoDet().equals(p))\r\n\t\t\t\t\t\testa = true;\r\n\t\t\t\t}\r\n\t\t\t\tif (!esta) {\r\n\r\n\t\t\t\t\tPlantaCargoDetDTO dto = new PlantaCargoDetDTO();\r\n\t\t\t\t\tdto.setPlantaCargoDet(p);\r\n\t\t\t\t\tdto.setReservar(false);\r\n\t\t\t\t\tlistaPlantaCargoDto.add(dto);\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void consultarDatos() throws SQLException {\n String instruccion = \"SELECT * FROM juegos.juegos\";\n try {\n comando = conexion.createStatement();\n resultados = comando.executeQuery(instruccion);\n } catch (SQLException e) {\n e.printStackTrace();\n throw e;\n }\n }", "public void introducirConsumosHabitacion(TablaModelo modelo,String idHabitacion) {\n int idHabitacionInt = Integer.parseInt(idHabitacion);\n try {// mira los consumo de unas fechas\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT CONSUMO_RESTAURANTE.Id_Consumo,CONSUMO_RESTAURANTE.Id_Alojamiento,CONSUMO_RESTAURANTE.Nombre_Comida,CONSUMO_RESTAURANTE.Precio_Comida,CONSUMO_RESTAURANTE.Cantidad,CONSUMO_RESTAURANTE.Fecha_Consumo FROM CONSUMO_RESTAURANTE JOIN ALOJAMIENTO JOIN RESERVACION WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND ALOJAMIENTO.Id=CONSUMO_RESTAURANTE.Id_Alojamiento AND RESERVACION.Id_Habitacion=?\");\n declaracion.setInt(1, idHabitacionInt);// mira los consumo de unas fechas\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {\n Object objeto[] = new Object[7];// mira los consumo de unas fechas\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);// mira los consumo de unas fechas\n objeto[2] = resultado.getString(3);\n objeto[3] = resultado.getInt(4);\n objeto[4] = resultado.getInt(5);// mira los consumo de unas fechas\n objeto[5] = resultado.getDate(6);\n int total = (Integer)objeto[3]*(Integer)objeto[4];\n objeto[6]= total;// mira los consumo de unas fechas\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "private void cargaInfoEmpleado(){\r\n Connection conn = null;\r\n Conexion conex = null;\r\n try{\r\n if(!Config.estaCargada){\r\n Config.cargaConfig();\r\n }\r\n conex = new Conexion();\r\n conex.creaConexion(Config.host, Config.user, Config.pass, Config.port, Config.name, Config.driv, Config.surl);\r\n conn = conex.getConexion();\r\n if(conn != null){\r\n ArrayList<Object> paramsIn = new ArrayList();\r\n paramsIn.add(txtLogin);\r\n QryRespDTO resp = new Consulta().ejecutaSelectSP(conn, IQryUsuarios.NOM_FN_OBTIENE_INFO_USUARIOWEB, paramsIn);\r\n System.out.println(\"resp: \" + resp.getRes() + \"-\" + resp.getMsg());\r\n if(resp.getRes() == 1){\r\n ArrayList<ColumnaDTO> listaColumnas = resp.getColumnas();\r\n for(HashMap<String, CampoDTO> fila : resp.getDatosTabla()){\r\n usuario = new UsuarioDTO();\r\n \r\n for(ColumnaDTO col: listaColumnas){\r\n switch(col.getIdTipo()){\r\n case java.sql.Types.INTEGER:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Integer.parseInt(fila.get(col.getEtiqueta()).getValor().toString().replaceAll(\",\", \"\").replaceAll(\"$\", \"\").replaceAll(\" \", \"\")));\r\n break;\r\n \r\n case java.sql.Types.DOUBLE:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Double.parseDouble(fila.get(col.getEtiqueta()).getValor().toString()));\r\n break;\r\n \r\n case java.sql.Types.FLOAT:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Float.parseFloat(fila.get(col.getEtiqueta()).getValor().toString()));\r\n break;\r\n \r\n case java.sql.Types.DECIMAL:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Float.parseFloat(fila.get(col.getEtiqueta()).getValor().toString()));\r\n break;\r\n \r\n case java.sql.Types.VARCHAR:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"\":fila.get(col.getEtiqueta()).getValor().toString());\r\n break;\r\n \r\n case java.sql.Types.NUMERIC:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Float.parseFloat(fila.get(col.getEtiqueta()).getValor().toString()));\r\n break;\r\n \r\n default:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"\":fila.get(col.getEtiqueta()).getValor().toString());\r\n break;\r\n } \r\n }\r\n }\r\n sesionMap.put(\"UsuarioDTO\", usuario);\r\n }else{\r\n context.getExternalContext().getApplicationMap().clear();\r\n context.getExternalContext().redirect(\"index.xhtml\");\r\n }\r\n }\r\n }catch(Exception ex){\r\n System.out.println(\"Excepcion en la cargaInfoEmpleado: \" + ex);\r\n }finally{\r\n try{\r\n conn.close();\r\n }catch(Exception ex){\r\n \r\n }\r\n }\r\n }", "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 }", "public void buscaxcodigo() {\r\n try {\r\n modelo.setCodigobarras(vista.jTbcodigobarras.getText());//C.P.M mandamos el codigo de barras ingresado\r\n rs = modelo.Buscarxcodigobarras();//C.P.M mandamos a consultar ese codigo de barras\r\n DefaultTableModel buscar = new DefaultTableModel() {//C.P.M instanciamos el modelo de la tabla\r\n @Override\r\n public boolean isCellEditable(int rowIndex, int vColIndex) {\r\n return false;\r\n }\r\n };\r\n vista.jTbuscar.setModel(buscar);//C.P.M le mandamos el modelo a la tabla\r\n modelo.estructuraProductos(buscar);//C.P.M obtenemos la estructura de la tabla \"Encabezados\"\r\n ResultSetMetaData rsMd = rs.getMetaData();//C.P.M obtenemos los metadatos de la consulta\r\n int cantidadColumnas = rsMd.getColumnCount();//C.P.M obtenemos las columnas de la consulta\r\n\r\n while (rs.next()) {//C.P.M recorremos el resultado\r\n Object[] fila = new Object[cantidadColumnas];//C.P.M creamos un vector con el tamano de las columnas de el resultado\r\n for (int i = 0; i < cantidadColumnas; i++) {//C.P.M recorremos el arreglo\r\n fila[i] = rs.getObject(i + 1);//C.P.M y vamos insertando el resultado\r\n }\r\n buscar.addRow(fila);//C.P.M le mandamos el arreglo como renglon nuevo\r\n }\r\n\r\n } catch (SQLException ex) {\r\n JOptionPane.showMessageDialog(null, \"Ocurrio un error al buscar por codigo de barras\");\r\n }\r\n }", "public ArrayList<clsPago> consultaDataPagosCuotaInicial(int codigoCli)\n { \n ArrayList<clsPago> data = new ArrayList<clsPago>(); \n try{\n bd.conectarBaseDeDatos();\n sql = \" SELECT a.id_pagos_recibo idPago, a.id_usuario, b.name name_usuario, \"\n + \" a.referencia referencia, \"\n + \" a.fecha_pago fecha_pago, a.estado, \"\n + \" a.valor valor_pago, a.id_caja_operacion, e.name_completo nombre_cliente, \"\n + \" a.fecha_pago fecha_registro\"\n + \" FROM ck_pagos_recibo AS a\"\n + \" JOIN ck_usuario AS b ON a.id_usuario = b.id_usuario\"\n + \" JOIN ck_cliente AS e ON a.codigo = e.codigo\"\n + \" WHERE a.estado = 'A'\"\n + \" AND a.cuota_inicial = 'S'\"\n + \" AND a.estado_asignado = 'N'\"\n + \" AND a.codigo = \" + codigoCli; \n \n System.out.println(sql);\n bd.resultado = bd.sentencia.executeQuery(sql);\n \n if(bd.resultado.next())\n { \n do \n { \n clsPago oListaTemporal = new clsPago();\n \n oListaTemporal.setReferencia(bd.resultado.getString(\"referencia\"));\n oListaTemporal.setFechaPago(bd.resultado.getString(\"fecha_pago\"));\n oListaTemporal.setNombreUsuario(bd.resultado.getString(\"name_usuario\"));\n oListaTemporal.setNombreCliente(bd.resultado.getString(\"nombre_cliente\"));\n oListaTemporal.setValor(bd.resultado.getDouble(\"valor_pago\"));\n oListaTemporal.setFechaRegistro(bd.resultado.getString(\"fecha_registro\"));\n oListaTemporal.setIdPago(bd.resultado.getInt(\"idPago\"));\n data.add(oListaTemporal);\n }\n while(bd.resultado.next()); \n //return data;\n }\n else\n { \n data = null;\n } \n }\n catch(Exception ex)\n {\n System.out.print(ex);\n data = null;\n } \n bd.desconectarBaseDeDatos();\n return data;\n }", "public List<Produto> consultarProdutos(int consulta, String valor) {\r\n ConexaoBDJavaDB conexaoBD = new ConexaoBDJavaDB(\"routeexpress\");\r\n Connection conn = null;\r\n Statement stmt = null;\r\n ResultSet rs = null;\r\n List<Produto> produtos = new ArrayList<>();\r\n try {\r\n conn = conexaoBD.obterConexao();\r\n stmt = conn.createStatement();\r\n //Se a consulta for igual a zero(0) uma lista de todos os produtos \"cervejas\" e recuperada\r\n if (consulta == 0) {\r\n rs = stmt.executeQuery(consultas[consulta]);\r\n //Se a consulta for igual a tres(3) uma lista de todos os produtos \"cervejas\" e recuperada a parti do preco\r\n } else {\r\n rs = stmt.executeQuery(consultas[consulta] + \"'\" + valor + \"'\");\r\n }\r\n Produto produto;\r\n while (rs.next()) {\r\n produto = new Produto();\r\n produto.setIdCervejaria(rs.getInt(\"ID_CERVEJARIA\"));\r\n produto.setCervejaria(rs.getString(\"CERVEJARIA\"));\r\n produto.setPais(rs.getString(\"PAIS\"));\r\n produto.setIdCerveja(rs.getInt(\"ID_CERVEJA\"));\r\n produto.setIdFkCervajaria(rs.getInt(\"FK_CERVEJARIA\"));\r\n produto.setRotulo(rs.getString(\"ROTULO\"));\r\n produto.setPreco(rs.getString(\"PRECO\"));\r\n produto.setVolume(rs.getString(\"VOLUME\"));\r\n produto.setTeor(rs.getString(\"TEOR\"));\r\n produto.setCor(rs.getString(\"COR\"));\r\n produto.setTemperatura(rs.getString(\"TEMPERATURA\"));\r\n produto.setFamiliaEEstilo(rs.getString(\"FAMILIA_E_ESTILO\"));\r\n produto.setDescricao(rs.getString(\"DESCRICAO\"));\r\n produto.setSabor(rs.getString(\"SABOR\"));\r\n produto.setImagem1(rs.getString(\"IMAGEM_1\"));\r\n produto.setImagem2(rs.getString(\"IMAGEM_2\"));\r\n produto.setImagem3(rs.getString(\"IMAGEM_3\"));\r\n produtos.add(produto);\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (ClassNotFoundException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n if (conn != null) {\r\n try {\r\n conn.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (stmt != null) {\r\n try {\r\n stmt.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (rs != null) {\r\n try {\r\n rs.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }\r\n return produtos;\r\n }", "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 void makeSql() {\n\t\tfor(int i=0; i<arr_sql.length; i++) {\n\t\t\tarr_sql[i] = new StringBuffer();\n\t\t}\n\t\t\n\t\t/*\n\t\t * 공통코드 쿼리\n\t\t * 대리점구분 : CU006\n\t\t * 직판구분 : CU012\n\t\t * 지역 : SY006\n\t\t * 계약상태 : CU013\n\t\t * 사용유무 : SY011\n\t\t * 보증보험회사 : CU010\n\t\t * 하위대리점여부 : CU011\n\t\t */\n\t\tarr_sql[0].append (\"SELECT\t\t\t\t\t\t\t\t\t\t\\n\")\n\t\t\t\t .append (\"\t' ' head, ' ' detail, '전체' detail_nm \\n\")\n\t\t\t\t .append (\"FROM DUAL \\n\")\n\t\t\t\t .append (\"UNION ALL \\n\")\n\t\t\t\t .append (\"SELECT \\n\")\n\t\t\t\t .append (\"\tB.head, B.detail, B.detail_nm \\n\")\n\t\t\t\t .append (\"FROM \\n\")\n\t\t\t\t .append (\"\tSALES.TSY011 A, \\n\")\n\t\t\t\t .append (\"\tSALES.TSY010 B \\n\")\n\t\t\t\t .append (\"WHERE 1=1 \\n\")\n\t\t\t\t .append (\" AND A.head = B.head \\n\")\n\t\t\t\t .append (\" AND B.head = ? \\n\")\n\t\t\t\t .append (\" AND LENGTH (rtrim(B.detail)) > 0 \\n\");\n\t\t\n\t\t/*\n\t\t * 대리점 조회\n\t\t */\n\t\tarr_sql[1].append(\"SELECT T1.client_sid\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 매출처SID \t*/\n\t \t\t .append(\"\t\t ,T1.vend_cd \t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\\n\")\t/* [회계]거래처 코드 \t*/\n\t \t\t .append(\"\t\t ,T1.client_cd \t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\\n\")\t/* 매출처 코드 \t*/\n\t \t\t .append(\"\t\t ,T1.client_nm \t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\\n\")\t/* 매출처 명 \t*/\n\t \t\t .append(\"\t\t ,T1.client_gu \t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\\n\")\t/* 매출처구분 :CU005 \t*/\n\t \t\t \n\t \t\t .append(\"\t\t ,T1.agen_gu \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 대리점구분 :CU006 \t*/\n\t \t\t .append(\"\t\t ,T1.dir_yn \t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\\n\")\t/* 직판여부 :CU012 \t*/\n\t \t\t .append(\"\t\t ,T1.area_cd \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 지역코드 :SY006 \t*/\n\t \t\t .append(\"\t\t ,T1.sal_dam_sid \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 영업담당자코드[TSY410] */\n\t \t\t .append(\"\t\t ,T1.client_dam_nm \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 매출처담당자 \t*/\n\t \t\t \n\t \t\t .append(\"\t\t ,T1.tel_no \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 전화번호 \t*/\n\t \t\t .append(\"\t\t ,T1.mobile_no \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 휴대전화 \t*/\n\t \t\t .append(\"\t\t ,T1.fax_no \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* FAX번호 \t*/\n\t \t\t .append(\"\t\t ,T1.e_mail \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 이메일 \t*/\n\t \t\t .append(\"\t\t ,T1.zip_cd \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 우편번호[TSY110] */\n\t \t\t \n\t \t\t .append(\"\t\t ,T1.address1 \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 주소1 \t*/\n\t \t\t .append(\"\t\t ,T1.address2 \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 주소2 \t*/\n\t \t\t .append(\"\t\t ,T1.commi_rate \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 수수료율 \t*/\n\t \t\t .append(\"\t\t ,T1.cunt_status \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 계약상태 :CU013 \t*/\n\t \t\t .append(\"\t\t ,T1.bancod \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 은행코드 [BANKCODE] */\n\t \t\t \n\t \t\t .append(\"\t\t ,T1.bank_acc_no \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 은행계좌번호 \t*/\n\t \t\t .append(\"\t\t ,T1.bank_acct_nm \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 예금주 \t*/\n\t \t\t .append(\"\t\t ,T1.use_yn \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 사용여부 :SY011 \t*/ \n\t \t\t .append(\"\t\t ,T1.client_url\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 홈페이지 URL\t\t\t\t*/\n\t \t\t .append(\"\t\t ,T2.sal_dam_nm \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 영업담당자명 \t*/\n\t \t\t .append(\"\t\t ,T3.vend_nm \t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\\n\")\t/* 거래처명 \t*/\n\t \t\t \n\t \t\t .append(\"\t\t ,T4.bannam \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 은행명 \t*/\n\t \t\t .append(\"\t\t ,SALES.FN_DETAIL_NM ( 'CU006',T1.agen_gu) AS agen_gu_name \t\t\t\t\t\\n\")\t/* 대리점구분명 \t\t\t\t*/ \n\t \t\t .append(\"\t\t ,SALES.FN_DETAIL_NM ( 'CU012',T1.dir_yn) AS dir_yn_name \t\t\t\t\t\\n\")\t/* 직판여부명 \t\t\t\t*/ \n\t \t\t .append(\"\t\t ,SALES.FN_DETAIL_NM ( 'SY006',T1.area_cd) AS area_nm\t\t\t\t\t\t\t\\n\")\t/* 지역명 \t\t\t\t*/\n\t \t\t .append(\"\t\t ,SALES.FN_DETAIL_NM ( 'CU013',T1.cunt_status) AS cunt_status_name \t\t\t\\n\")\t/* 계약상태명 \t\t\t\t*/\n\n\t \t\t .append(\"\t\t ,SALES.FN_DETAIL_NM ( 'SY011',T1.use_yn) AS use_yn_name \t\t\t\\n\")\t/* 사용여부명 \t\t\t \t*/\n\n\t \t\t .append(\"FROM SALES.TCU030 T1 LEFT OUTER JOIN SALES.TSY410 T2 ON T1.SAL_DAM_SID = T2.SAL_DAM_SID \\n\")\n\t \t\t .append(\"\t\t LEFT OUTER JOIN ACCOUNT.GCZM_VENDER T3 ON T1.VEND_CD = T3.VEND_CD \t\t\t\t\t\\n\")\n\t \t\t .append(\"\t\t LEFT OUTER JOIN ACCOUNT.BANKCODE T4 ON T1.BANCOD = T4.BANCOD \t\t\t\t\t\\n\")\n\t \t\t .append(\"WHERE 1 = 1 \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\n\t \t\t .append(\"\t\t AND T1.client_GU = '1' \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\");\n\t\t/*\n\t\t * 계약정보 조회\n\t\t */\n\t\tarr_sql[2].append(\"SELECT T1.client_sid\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 매출처SID \t*/\n\t\t\t\t .append(\"\t\t ,T1.cont_date\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\") \t/* 계약일자 \t*/\n\t\t\t\t .append(\"\t\t ,T1.expire_date\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 만기일자 \t*/\n\t\t\t\t .append(\"\t\t ,TO_NUMBER(T1.insur_amt) AS insur_amt\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 보험료 \t*/\n\t\t\t\t .append(\"\t\t ,T1.insur_comp_cd\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 보증보험회사:CU010 \t*/\n\t\t\t\t .append(\"\t\t ,SALES.FN_DETAIL_NM ('CU010',T1.insur_comp_cd) AS insur_comp_cd_name\t\t\\n\") \t/* 보증보험회사명 \t\t*/ \n\t\t\t\t .append(\"FROM SALES.TCU031 T1 \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\n\t\t\t\t .append(\"WHERE 1=1\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\");\n\t\t \n\t\n\t\t/*\n\t\t * 지점정보 조회\n\t\t */\n\t\tarr_sql[3].append(\"SELECT T1.client_sid\t\t\t\t\t\t\t\t\t\t\t\t\\n\") \t/* 매출처SID \t\t*/\n\t\t\t\t .append(\"\t\t ,T1.branch_cd\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 지점코드 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,T1.branch_nm \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\") \t/* 지점명 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,T1.area_cd\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\") \t/* 지역코드:SY006 \t\t*/\n\t\t\t\t .append(\"\t\t ,T1.client_down_yn \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 하위대리점여부:CU011 \t*/\n\t\t\t\t .append(\"\t\t ,T1.empno \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 담당자 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,T1.tel_no \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 전화번호 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,T1.mobile_no \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 휴대폰 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,T1.fax_no \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 팩스번호 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,T1.branch_url \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 지점홈페이지 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,SALES.FN_DETAIL_NM ( 'SY006', T1.area_cd) AS area_nm\t\t\t\t\t\t\t\\n\") \t/* 지역명:SY006 \t\t*/\n\t\t\t\t .append(\"\t\t ,SALES.FN_DETAIL_NM ( 'CU011',T1.client_down_yn) AS client_down_yn_name \t\\n\")\t/* 하위대리점여부명 \t\t*/\n\t\t\t\t .append(\"FROM SALES.TCU032 T1\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\");\n\t\t\n\t\t\n\t\t/*\n\t\t * 대리점 등록\n\t\t */\n\n\t\tarr_sql[4].append(\"INSERT INTO SALES.TCU030 (\")\n\t\t\t\t .append(\"\t\t\t\t client_sid \\n\")\t\n\t\t\t\t .append(\"\t\t\t\t,vend_cd \\n\")\t/* [회계]거래처 코드 \t*/\n\t\t\t\t .append(\"\t\t\t\t,client_cd \\n\")\t/* 매출처 코드 \t*/\n\t\t\t\t .append(\"\t\t\t\t,client_nm \\n\")\t/* 매출처 명 \t*/\n\t\t\t\t .append(\"\t\t\t\t,client_gu \\n\")\t/* 매출처구분 :CU005 \t*/\n\t\t\t\t .append(\"\t\t\t\t,agen_gu \\n\")\t/* 대리점구분 :CU006 \t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t\t\t,dir_yn \\n\")\t/* 직판여부 :CU012 \t*/\n\t\t\t\t .append(\"\t\t\t\t,area_cd \\n\")\t/* 지역코드 :SY006 \t*/\n\t\t\t\t .append(\"\t\t\t\t,sal_dam_sid \\n\")\t/* 영업담당자코드[TSY410] \t*/\n\t\t\t\t .append(\"\t\t\t\t,client_dam_nm \\n\")\t/* 매출처담당자 \t*/\n\t\t\t\t .append(\"\t\t\t\t,tel_no \\n\")\t/* 전화번호 \t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t\t\t,mobile_no \\n\")\t/* 핸드폰 \t*/\n\t\t\t\t .append(\"\t\t\t\t,fax_no \\n\")\t/* FAX번호 \t*/\n\t\t\t\t .append(\"\t\t\t\t,e_mail \\n\")\t/* 이메일 \t*/\n\t\t\t\t .append(\"\t\t\t\t,zip_cd \\n\")\t/* 소재지우편번호[TSY110] */\n\t\t\t\t .append(\"\t\t\t\t,address1 \\n\")\t/* 소재지주소1 \t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t\t\t,address2 \\n\")\t/* 소재지주소2 \t*/\n\t\t\t\t .append(\"\t\t\t\t,commi_rate \t\\n\") \t/* 수수료율 \t*/\n\t\t\t\t .append(\"\t\t\t\t,cunt_status \\n\")\t/* 계약상태 :CU013 \t*/\n\t\t\t\t .append(\"\t\t\t\t,bancod\t\t\t\\n\") \t/* 은행코드 \t\t\t\t\t*/\n\t\t\t\t .append(\"\t\t\t\t,bank_acc_no \\n\")\t/* 은행계좌번호[BANKCODE] \t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t\t\t,bank_acct_nm\t\\n\")\t/* 예금주 \t\t\t\t\t*/\n\t\t\t\t .append(\"\t\t\t\t,use_yn\t\t\t\\n\")\t/* 사용여부 \t\t\t\t\t*/\n\t\t\t\t\n\t\t\t\t .append(\"\t\t \t\t,u_date \t\\n\") \t/* 최종수정일자 \t*/\n\t \t\t .append(\"\t\t \t\t,u_empno \t\\n\")\t/* 최종수정자사번 \t*/\n\t \t\t .append(\"\t\t \t\t,u_ip \\n\")\t/* 최종수정IP */\t\t\t\n\t \t\t .append(\"\t\t\t\t,client_url\t\t\\n\")\t/* 홈페이지 */\n\t\t\t\t .append(\"\t\t\t)\t\t\t\t\t\\n\")\n\t\t\t\t \n\t\t\t\t .append(\"VALUES\t\t\t\t\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t(\t \t\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t\tSALES.SWS_TCU030_ID.NEXTVAL,?,?,?,?,?,\t\t\\n\")\t\n\t\t\t\t .append(\"\t\t\t\t?,?,?,?,?,\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t\t?,?,?,?,?,\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t\t?,?,?,?,?,\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t\t?,?,SYSTIMESTAMP,?,?,?\t\\n\")\n\t\t\t\t .append(\"\t\t\t)\");\n\t\t\n\t\n\t\t\n\t\t/*\n\t\t * 계약정보 등록\n\t\t */\n\t\tarr_sql[5].append(\"INSERT INTO SALES.TCU031 ( \t\\n\")\n\t\t\t\t .append(\" \t client_SID\t\t\t\\n\")\t/* 매출처SID \t*/\n\t\t\t\t .append(\"\t\t ,cont_date\t\t\t\t\\n\") \t/* 계약일자 \t*/\n\t\t\t\t .append(\"\t\t ,expire_date\t\t\t\\n\")\t/* 만기일자 \t*/\n\t\t\t\t .append(\"\t\t ,insur_amt\t\t\t\t\\n\")\t/* 보험료 \t*/\n\t\t\t\t .append(\"\t\t ,insur_comp_cd\t\t\t\\n\")\t/* 보증보험회사:CU010 \t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t ,u_date\t\t\t\t\\n\")\t/* 최종수정일자 \t*/\n\t\t\t\t .append(\"\t\t ,u_empno \t\t\t\t\\n\") \t/* 최종수정자사번 \t*/\n\t\t\t\t .append(\"\t\t ,u_ip\t\t\t\t\t\\n\")\t/* 최종수정IP \t*/\n\t\t\t\t .append(\"\t\t)\t\t\t\t\t\t\\n\")\n\t\t\t\t \n\t\t\t\t .append(\"VALUES\t\t\t\t\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t(\t \t\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t\t?,?,?,?,?,\t\t\\n\")\t\n\t\t\t\t .append(\"\t\t\t\tSYSTIMESTAMP,?,?\t\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t)\");\n\t\t\t\t\t\n\t\t/*\n\t\t * 지점정보 등록\n\t\t */\n\t\t\n\t\tarr_sql[6].append(\"INSERT INTO SALES.TCU032 ( \t\\n\")\n\t\t\t\t .append(\"\t\t client_SID\t\t\t\\n\") \t/* 매출처SID \t\t*/\n\t\t\t\t .append(\"\t\t ,branch_cd\t\t\t\t\\n\")\t/* 지점코드 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,branch_nm \t\t\t\\n\") \t/* 지점명 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,area_cd\t\t\t\t\\n\") \t/* 지역코드:SY006 \t\t*/\n\t\t\t\t .append(\"\t\t ,client_down_yn \t\t\\n\")\t/* 하위대리점여부:CU011 \t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t ,empno \t\t\t\t\\n\")\t/* 담당자 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,tel_no \t\t\t\t\\n\")\t/* 전화번호 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,mobile_no \t\t\t\\n\")\t/* 휴대폰 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,fax_no \t\t\t\t\\n\")\t/* 팩스번호 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,branch_url \t\t\t\\n\")\t/* 지점홈페이지 \t\t\t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t ,u_date \t\t\t\t\\n\")\t/* 최종수정일자 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,u_empno \t\t\t\t\\n\")\t/* 최종수정자사번 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,u_ip \t\t\t\t\\n\")\t/* 최종수정IP \t\t*/\n\t\t\t\t .append(\"\t)\t\t\t\t\t\t\\n\")\n\t\t\t\t .append(\"VALUES\t\t\t\t\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t(\t \t\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t\t?,?,?,?,?,\t\t\\n\")\t\n\t\t\t\t .append(\"\t\t\t\t?,?,?,?,?,\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t\tSYSTIMESTAMP,?,?\t\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t)\");\n\t\t\n\t\t/*\n\t\t * 대리점 수정\n\t\t */\n\n\t\tarr_sql[7].append(\"UPDATE SALES.TCU030 SET \t\t\t\t\t\t\\n\")\n\t\t\t\t .append(\"\t\t vend_cd\t\t= ? \t\t\t\t\\n\")\t/* [회계]거래처 코드 \t*/\n\t\t\t\t .append(\"\t\t,client_nm\t\t= ? \t\t\t\t\\n\")\t/* 매출처 명 \t*/\n\t\t\t\t .append(\"\t\t,agen_gu\t\t= ? \t\t\t\t \t\\n\")\t/* 대리점구분 :CU006 \t*/\n\t\t\t\t .append(\"\t\t,dir_yn\t\t\t= ? \t\t\t\t\\n\")\t/* 직판여부 :CU012 \t*/\n\t\t\t\t .append(\"\t\t,area_cd \t= ? \t\t\t\t\t\\n\")\t/* 지역코드 :SY006 \t*/\n\n\t\t\t\t .append(\"\t\t,sal_dam_sid\t= ? \t\t\t\t\t\\n\")\t/* 영업담당자코드[TSY410] */\n\t\t\t\t .append(\"\t\t,client_dam_nm\t= ? \t\t\t\t\t\\n\")\t/* 매출처담당자 \t*/\n\t\t\t\t .append(\"\t\t,tel_no = ?\t\t\t\t\t\t\\n\")\t/* 전화번호 \t*/\n\t\t\t\t .append(\"\t\t,mobile_no = ?\t\t\t\t\t\t\\n\")\t/* 핸드폰 \t*/\n\t\t\t\t .append(\"\t\t,fax_no = ?\t\t\t\t\t\t\\n\")\t/* FAX번호 \t*/\n\n\t\t\t\t .append(\"\t\t,e_mail = ?\t\t\t\t\t\t\\n\")\t/* 이메일 \t*/\n\t\t\t\t .append(\"\t\t,zip_cd = ?\t\t\t\t\t\t\\n\")\t/* 소재지우편번호[TSY110] \t*/\n\t\t\t\t .append(\"\t\t,address1 = ?\t\t\t\t\t\t\\n\")\t/* 소재지주소1 \t*/\n\t\t\t\t .append(\"\t\t,address2 = ?\t\t\t\t\t\t\\n\")\t/* 소재지주소2 \t*/\n\t\t\t\t .append(\"\t\t,commi_rate \t= ?\t\t\t\t\t\t\\n\") \t/* 수수료율 \t*/\n\n\t\t\t\t .append(\"\t\t,cunt_status = ?\t\t\t\t\t\t\\n\")\t/* 계약상태 :CU013 \t*/\n\t\t\t\t .append(\"\t\t,bancod\t\t\t= ?\t\t\t\t\t\t\\n\") \t/* 은행코드\t \t\t\t\t*/\n\t\t\t\t .append(\"\t\t,bank_acc_no = ?\t\t\t\t\t\t\\n\")\t/* 은행계좌번호[BANKCODE]\t\t*/\n\t\t\t\t .append(\"\t\t,bank_acct_nm\t= ?\t\t\t\t\t\t\\n\")\t/* 예금주 \t\t\t\t\t*/\n\t\t\t\t .append(\"\t\t,use_yn\t\t\t= ?\t\t\t\t\t\t\\n\")\t/* 사용여부 \t\t\t\t\t*/\n\n\t\t\t\t .append(\"\t\t,u_date \t= SYSTIMESTAMP\t\t\\n\") \t/* 최종수정일자 \t*/\n\t \t\t .append(\"\t\t,u_empno \t= ?\t\t\t\t\t\t\\n\")\t/* 최종수정자사번 \t*/\n\t \t\t .append(\"\t\t,u_ip = ?\t\t\t\t\t\t\\n\")\t/* 최종수정IP */\n\t \t\t .append(\"\t,client_url = ?\t\t\t\t\t\t\\n\")\t/* 홈페이지 */\n\t\t\t\t .append (\"WHERE client_sid \t= ? \t\t\t\t\\n\");\n\t\t\t\t \n\t\t/*\n\t\t * 계약정보 수정\n\t\t */\n\t\tarr_sql[8].append(\"UPDATE SALES.TCU031 SET\t\t\t\t\t\t\\n\")\n\t\t\t\t .append(\"\t\t cont_date\t\t\t= ?\t\t\t\t\t\\n\") \t/* 계약일자 \t*/\n\t\t\t\t .append(\"\t\t ,expire_date\t\t= ?\t\t\t\t\t\\n\")\t/* 만기일자 \t*/\n\t\t\t\t .append(\"\t\t ,insur_amt\t\t\t= ?\t\t\t\t\t\\n\")\t/* 보험료 \t*/\n\t\t\t\t .append(\"\t\t ,insur_comp_cd\t\t= ?\t\t\t\t\t\\n\")\t/* 보증보험회사:CU010 \t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t ,u_date\t\t\t= SYSTIMESTAMP\t\\n\")\t/* 최종수정일자 \t*/\n\t\t\t\t .append(\"\t\t ,u_empno \t\t\t= ?\t\t\t\t\t\\n\") \t/* 최종수정자사번 \t*/\n\t\t\t\t .append(\"\t\t ,u_ip\t\t\t\t= ?\t\t\t\t\t\\n\")\t/* 최종수정IP \t*/\n\t\t\t\t .append (\"WHERE client_sid \t\t= ? AND cont_date = ? \\n\");\n\t\t\t\t\n\t\t\t\t \n\t\t\t\t\t\n\t\t/*\n\t\t * 지점정보 수정\n\t\t */\n\t\t\n\t\tarr_sql[9].append(\"UPDATE SALES.TCU032 SET \t\t\t\t\t\t\t\\n\")\n\t\t\t\t .append(\"\t\t branch_nm \t\t= ?\t\t\t\t\t\t\\n\") \t/* 지점명 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,area_cd\t\t\t= ?\t\t\t\t\t\t\\n\") \t/* 지역코드:SY006 \t\t*/\n\t\t\t\t .append(\"\t\t ,client_down_yn \t= ?\t\t\t\t\t\t\\n\")\t/* 하위대리점여부:CU011 \t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t ,empno \t\t\t= ?\t\t\t\t\t\t\\n\")\t/* 담당자 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,tel_no \t\t\t= ?\t\t\t\t\t\t\\n\")\t/* 전화번호 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,mobile_no \t\t= ?\t\t\t\t\t\t\\n\")\t/* 휴대폰 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,fax_no \t\t\t= ?\t\t\t\t\t\t\\n\")\t/* 팩스번호 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,branch_url \t\t= ?\t\t\t\t\t\t\\n\")\t/* 지점홈페이지 \t\t\t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t ,u_date \t\t\t= SYSTIMESTAMP\t\t\t\t\t\t\\n\")\t/* 최종수정일자 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,u_empno \t\t\t= ?\t\t\\n\")\t/* 최종수정자사번 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,u_ip \t\t\t= ?\t\t\t\t\t\t\\n\")\t/* 최종수정IP \t\t*/\n\t\t\t\t .append (\"WHERE client_sid = ? AND branch_cd \t= ?\t\t\\n\");\n\t\t\n\t\t arr_sql[10].append(\"DELETE FROM SALES.TCU030 WHERE client_sid = ?\");\t\n\t\t arr_sql[11].append(\"DELETE FROM SALES.TCU031 WHERE client_sid = ? AND cont_date = ?\");\n\t\t arr_sql[12].append(\"DELETE FROM SALES.TCU032 WHERE client_sid = ? AND branch_cd = ?\");\n\t\t \n\t\t \n\t\t /*\n\t\t * Client SID 얻어오기\n\t\t */\n\t\t\t\n\t\t\tarr_sql[13].append(\"SELECT client_sid FROM SALES.TCU030 WHERE client_cd = ?\\n\");\n\t\t\t\n\t\t/*\n\t\t * 수수료율 조회\n\t\t */\n\t\t\tarr_sql[14].append(\"SELECT\t\t\t\t\t\t\t\t\\n\")\n\t\t\t\t\t\t.append(\" T1.CLIENT_SID AS CLIENT_SID\t\\n\") /* 매출처SID */\n\t\t\t\t\t\t.append(\" ,T1.FR_DATE AS FR_DATE \t\\n\") /* 시작일자 */\n\t\t\t\t\t\t.append(\" ,T1.TO_DATE AS TO_DATE \t\\n\") /* 종료일자 */\n\t\t\t\t\t\t.append(\" ,T1.WEEKEND_YN AS WEEKEND_YN \t\\n\") /* 주말여부 */\n\t\t\t\t\t\t.append(\" ,T1.COMMI_RATE AS COMMI_RATE\t\\n\") /* 수수료율 */\n\t\t\t\t\t\t.append(\"FROM SALES.TCU033 T1 \t\\n\")\n\t\t\t\t\t\t.append(\"WHERE 1=1 \t\t\t\t\t\t\t\\n\");\n\t\t\t\t\t\t\n\t\t/*\n\t\t * 수수료율 등록\n\t\t */\n\t\t\t\n\t\t\tarr_sql[15].append(\"INSERT INTO SALES.TCU033 ( \t\\n\")\n\t\t\t\t\t\t .append(\" \t CLIENT_SID\t\t\t\\n\")\t/* 매출처SID \t*/\n\t\t\t\t\t\t .append(\"\t\t ,FR_DATE\t\t\t\t\\n\") \t/* 시작일자 \t*/\n\t\t\t\t\t\t .append(\"\t\t ,TO_DATE\t\t\t\\n\")\t/* 종료일자 \t*/\n\t\t\t\t\t\t .append(\"\t\t ,COMMI_RATE\t\t\t\t\\n\")\t/* 수수료율 \t*/\n\t\t\t\t\t\t .append(\"\t\t ,WEEKEND_YN\t\t\t\\n\")\t/* 주말여부 \t*/\n\t\t\t\t\t\t .append(\"\t\t ,I_DATE\t\t\t\t\\n\")\t/* 최종입력일자 \t*/\n\t\t\t\t\t\t .append(\"\t\t ,I_EMPNO \t\t\t\t\\n\") \t/* 최종입력자사번 \t*/\n\t\t\t\t\t\t .append(\"\t\t ,I_IP\t\t\t\t\t\\n\")\t/* 최종입력IP \t*/\t\t\t\t\t\t \n\t\t\t\t\t\t .append(\"\t\t ,u_date\t\t\t\t\\n\")\t/* 최종수정일자 \t*/\n\t\t\t\t\t\t .append(\"\t\t ,u_empno \t\t\t\t\\n\") \t/* 최종수정자사번 \t*/\n\t\t\t\t\t\t .append(\"\t\t ,u_ip\t\t\t\t\t\\n\")\t/* 최종수정IP \t*/\n\t\t\t\t\t\t .append(\"\t\t)\t\t\t\t\t\t\\n\")\n\t\t\t\t\t\t \n\t\t\t\t\t\t .append(\"VALUES\t\t\t\t\t\t\\n\")\n\t\t\t\t\t\t .append(\"\t\t\t(\t \t\t\t\\n\")\n\t\t\t\t\t\t .append(\"\t\t\t\t?,?,?,?, ?,\t\t\\n\")\t\n\t\t\t\t\t\t .append(\"\t\t\t\tSYSTIMESTAMP,?,?, SYSTIMESTAMP,?,?\t\\n\")\n\t\t\t\t\t\t .append(\"\t\t\t)\");\n\t\t/*\n\t\t * 수수료율 수정\n\t\t */\n\t\t\tarr_sql[16].append(\"UPDATE SALES.TCU033 SET\t\t\t\t\t\t\\n\") \n\t\t\t\t\t .append(\"\t\t TO_DATE\t\t\t= ?\t\t\t\t\t\\n\")\t/* 종료일자 \t*/\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t .append(\"\t\t ,COMMI_RATE\t\t= ?\t\t\t\t\t\\n\")\t/* 수수료율 \t*/\n\t\t\t\t\t .append(\"\t\t ,WEEKEND_YN\t\t= ?\t\t\t\t\t\\n\")\t/* 주말여부 \t*/\n\t\t\t\t\t \n\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t .append(\"\t\t ,u_date\t\t\t= SYSTIMESTAMP\t\\n\")\t/* 최종수정일자 \t*/\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t .append(\"\t\t ,u_empno \t\t\t= ?\t\t\t\t\t\\n\") \t/* 최종수정자사번 \t*/\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t .append(\"\t\t ,u_ip\t\t\t\t= ?\t\t\t\t\t\\n\")\t/* 최종수정IP \t*/\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t .append (\"WHERE client_sid \t\t= ? AND FR_DATE = ? AND WEEKEND_YN=? \\n\"); \n\t\t/*\n\t\t * 수수료율 삭제\n\t\t */\n\t\tarr_sql[17].append(\"DELETE FROM SALES.TCU033 WHERE client_sid = ? AND fr_date = ? AND WEEKEND_YN=? \");\t \n\t\t\t \n\n\t}", "private StringBuilder getSqlSelectContadorDocProrroga() {\n StringBuilder query = new StringBuilder();\n\n query.append(\" \");\n query.append(\" SELECT \\n\");\n query.append(\" PRO.ID_PRORROGA_ORDEN, \\n\");\n query.append(\" PRO.ID_ORDEN, \\n\");\n query.append(\" PRO.FECHA_CARGA, \\n\");\n query.append(\" PRO.RUTA_ACUSE,\\n\");\n query.append(\" PRO.CADENA_CONTRIBUYENTE, \\n\");\n query.append(\" PRO.FIRMA_CONTRIBUYENTE, \\n\");\n query.append(\" PRO.APROBADA, \\n\");\n query.append(\" PRO.ID_ASOCIADO_CARGA, \\n\");\n query.append(\" PRO.ID_AUDITOR, \\n\");\n query.append(\" PRO.ID_FIRMANTE, \\n\");\n query.append(\" PRO.RUTA_RESOLUCION, \\n\");\n query.append(\" PRO.CADENA_FIRMANTE, \\n\");\n query.append(\" PRO.FIRMA_FIRMANTE,\\n\");\n query.append(\" PRO.FECHA_FIRMA, \\n\");\n query.append(\" PRO.ID_ESTATUS, \\n\");\n query.append(\" PRO.FOLIO_NYV, \\n\");\n query.append(\" PRO.FECHA_NOTIF_NYV, \\n\");\n query.append(\" PRO.FECHA_NOTIF_CONT, \\n\");\n query.append(\" PRO.FECHA_SURTE_EFECTOS, \\n\");\n query.append(\" PRO.ID_NYV, \\n\");\n query.append(\" (SELECT COUNT(0) FROM \");\n query.append(FecetDocProrrogaOrdenDaoImpl.getTableName());\n query.append(\" DOCPRO WHERE PRO.ID_PRORROGA_ORDEN = DOCPRO.ID_PRORROGA_ORDEN) TOTAL_DOC_PRORROGA, \\n\");\n query.append(\" ASOCIADO.ID_ASOCIADO, \\n\");\n query.append(\" ASOCIADO.RFC_CONTRIBUYENTE, \\n\");\n query.append(\" ASOCIADO.RFC, \\n\");\n query.append(\" ASOCIADO.ID_ORDEN, \\n\");\n query.append(\" ASOCIADO.ID_TIPO_ASOCIADO, \\n\");\n query.append(\" ASOCIADO.NOMBRE, \\n\");\n query.append(\" ASOCIADO.CORREO, \\n\");\n query.append(\" ASOCIADO.TIPO_ASOCIADO, \\n\");\n query.append(\" ASOCIADO.FECHA_BAJA, \\n\");\n query.append(\" ASOCIADO.FECHA_ULTIMA_MOD, \\n\");\n query.append(\" ASOCIADO.FECHA_ULTIMA_MOD_IDC, \\n\");\n query.append(\" ASOCIADO.MEDIO_CONTACTO, \\n\");\n query.append(\" ASOCIADO.ESTATUS, \\n\");\n query.append(\" ESTATUS.ID_ESTATUS, \\n\");\n query.append(\" ESTATUS.DESCRIPCION, \\n\");\n query.append(\" ESTATUS.MODULO, \\n\");\n query.append(\" ESTATUS.ID_MODULO \\n\");\n\n query.append(\"FROM \");\n query.append(getTableName());\n query.append(\" PRO \\n\");\n query.append(\" INNER JOIN FECEC_ESTATUS ESTATUS \\n\");\n query.append(\" ON PRO.ID_ESTATUS = ESTATUS.ID_ESTATUS \\n\");\n query.append(\" LEFT JOIN FECET_ASOCIADO ASOCIADO \\n\");\n query.append(\" ON PRO.ID_ASOCIADO_CARGA = ASOCIADO.ID_ASOCIADO \\n\");\n return query;\n }", "public void reback(){\n \n try{ \n cnx = DriverManager.getConnection(url, user,pass);\n String sql = \"SELECT DISTINCT (t1.codigo_producto),(t1.categoria),(t1.producto), t1.unidades FROM tabla_aux t1 INNER JOIN (SELECT producto, MAX(Unidades) as unidades FROM tabla_aux GROUP BY producto) t2 ON t1.producto = t2.producto AND t1.unidades = t2.unidades ORDER BY t1.producto DESC\";\n Statement st = cnx.prepareStatement(sql);\n ResultSet res = st.executeQuery(sql);\n \n while (res.next()){\n ID = res.getString(1); \n MK = res.getString(2); \n MD = res.getString(3); \n UD = res.getInt(4);\n Class.forName(\"com.mysql.jdbc.Driver\"); \n conI = DriverManager.getConnection(url, user,pass);\n String query = \"update producto set Unidades = ? where codigo_producto = ? && categoria = ? && producto = ?\";\n PreparedStatement preparedStmt = conI.prepareStatement(query);\n preparedStmt.setInt (1, UD);\n preparedStmt.setString (2, ID);\n preparedStmt.setString (3, MK);\n preparedStmt.setString (4, MD);\n preparedStmt.executeUpdate();\n }\n Connection conex = DriverManager.getConnection(url, user, pass);\n String Qury = \"TRUNCATE tabla_aux\";\n Statement sts = conex.createStatement();\n sts.executeUpdate(Qury);\n }\n catch(SQLException ex){JOptionPane.showMessageDialog(this,ex);} catch (ClassNotFoundException ex) {\n Logger.getLogger(hacer_ventas.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "private void llenarListadoPromocionSalarial() {\n\t\tString sql1 = \"select det.* from seleccion.promocion_salarial det \"\r\n\t\t\t\t+ \"join planificacion.estado_cab cab on cab.id_estado_cab = det.id_estado_cab \"\r\n\t\t\t\t+ \"join planificacion.configuracion_uo_cab uo_cab \"\r\n\t\t\t\t+ \"on uo_cab.id_configuracion_uo = det.id_configuracion_uo_cab\"\r\n\t\t\t\t+ \" left join seleccion.promocion_concurso_agr agr \"\r\n\t\t\t\t+ \"on agr.id_promocion_salarial = det.id_promocion_salarial\"\r\n\t\t\t\t\r\n\t\t\t\t+ \" where lower(cab.descripcion) = 'concurso' \" + \"and (\"\r\n\t\t\t\t+ \"\t\tagr.id_estado_det = (\" + \"\t\t\t\tselect est.id_estado_det \"\r\n\t\t\t\t+ \"\t\t\t\tfrom planificacion.estado_det est \"\r\n\t\t\t\t+ \"\t\t\t\twhere lower(est.descripcion)='libre'\" + \"\t\t) \"\r\n\t\t\t\t+ \"\t\tor agr.id_estado_det is null\" + \"\t) \"\r\n\t\t\t\t+ \" and uo_cab.id_configuracion_uo = \"\r\n\t\t\t\t+ configuracionUoCab.getIdConfiguracionUo()\r\n\t\t\t\t+ \" AND det.activo=true\";\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO SIMPLIFICADO Se despliegan los puestos\r\n\t\t * PERMANENTES o CONTRATADOS, con estado = LIBRE o NULO Los puestos\r\n\t\t * deben ser de nivel 1\r\n\t\t */\r\n//\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n//\t\t\t\t.equalsIgnoreCase(CONCURSO_SIMPLIFICADO)) {\r\n//\t\t\tsql1 += \" and cpt.nivel=1 and cpt.activo=true and (det.permanente is true or det.contratado is true) \";\r\n//\t\t}\r\n\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO INTERNO DE OPOSICION INSTITUCIONAL Se\r\n\t\t * despliegan los puestos PERMANENTE, con estado = LIBRE o NULO\r\n\t\t */\r\n\r\n//\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n//\t\t\t\t.equalsIgnoreCase(CONCURSO_INTERNO_OPOSICION)) {\r\n//\t\t\tsql1 += \" and det.permanente is true \";\r\n//\t\t}\r\n\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO INTERNO DE OPOSICION INTER INSTITUCIONAL\r\n\t\t * Se despliegan los puestos PERMANENTE, con estado = LIBRE o NULO\r\n\t\t */\r\n\r\n//\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n//\t\t\t\t.equalsIgnoreCase(CONCURSO_INTERNO_INTERINSTITUCIONAL)) {\r\n//\t\t\tsql1 += \" and det.permanente is true \";\r\n//\t\t}\r\n\t\t\r\n\t\tString sql2 = \"select puesto_det.* \"\r\n\t\t\t\t+ \"from seleccion.promocion_concurso_agr puesto_det \"\r\n\t\t\t\t+ \"join planificacion.estado_det estado_det \"\r\n\t\t\t\t+ \"on estado_det.id_estado_det = puesto_det.id_estado_det \"\r\n\t\t\t\t+ \"join seleccion.promocion_salarial det \"\r\n\t\t\t\t+ \"on det.id_promocion_salarial = puesto_det.id_promocion_salarial \"\r\n\t\t\t\t+ \"join planificacion.configuracion_uo_cab uo_cab \"\r\n\t\t\t\t+ \"on uo_cab.id_configuracion_uo = det.id_configuracion_uo_cab \"\r\n\t\t\t//\t+ \"join seleccion.concurso concurso \"\r\n\t\t\t//\t+ \"on concurso.id_concurso = puesto_det.id_concurso \"\r\n\t\t\t\t\r\n\t\t\t\t+ \" where lower(estado_det.descripcion) = 'en reserva' \"\r\n\t\t\t\t+ \"and uo_cab.id_configuracion_uo = \"\r\n\t\t\t\t+ configuracionUoCab.getIdConfiguracionUo()\r\n\t\t\t//\t+ \" and concurso.id_concurso = \" + concurso.getIdConcurso()\r\n\t\t\t\t+ \" and puesto_det.activo=true\";\r\n\r\n\t\tcargarListaPromocionSalarial(sql1, sql2);\r\n\t}", "public static String todosLosEmpleados(){\n String query=\"SELECT empleado.idEmpleado, persona.nombre, persona.apePaterno, persona.apeMaterno, empleado.codigo, empleado.fechaIngreso,persona.codigoPostal,persona.domicilio,\" +\n\"empleado.puesto, empleado.salario from persona inner join empleado on persona.idPersona=empleado.idPersona where activo=1;\";\n return query;\n }", "public void simpanDataBuku(){\n String sql = (\"INSERT INTO buku (judulBuku, pengarang, penerbit, tahun, stok)\" \n + \"VALUES ('\"+getJudulBuku()+\"', '\"+getPengarang()+\"', '\"+getPenerbit()+\"'\"\n + \", '\"+getTahun()+\"', '\"+getStok()+\"')\");\n \n try {\n //inisialisasi preparedstatmen\n PreparedStatement eksekusi = koneksi. getKoneksi().prepareStatement(sql);\n eksekusi.execute();\n \n //pemberitahuan jika data berhasil di simpan\n JOptionPane.showMessageDialog(null,\"Data Berhasil Disimpan\");\n } catch (SQLException ex) {\n //Logger.getLogger(modelPelanggan.class.getName()).log(Level.SEVERE, null, ex);\n JOptionPane.showMessageDialog(null, \"Data Gagal Disimpan \\n\"+ex);\n }\n }", "public void buscaTodasOSs() {\n try {\n ServicoDAO sDAO = new ServicoDAO(); // instancia a classe ProdutoDB()\n ArrayList<OS> cl = sDAO.consultaTodasOs(); // coloca o método dentro da variável\n\n DefaultTableModel modeloTabela = (DefaultTableModel) jTable1.getModel();\n // coloca a tabela em uma variável do tipo DefaultTableModel, que permite a modelagem dos dados da tabela\n\n for (int i = modeloTabela.getRowCount() - 1; i >= 0; i--) {\n modeloTabela.removeRow(i);\n // loop que limpa a tabela antes de ser atualizada\n }\n\n for (int i = 0; i < cl.size(); i++) {\n // loop que pega os dados e insere na tabela\n Object[] dados = new Object[7]; // instancia os objetos. Cada objeto representa um atributo \n dados[0] = cl.get(i).getNumero_OS();\n dados[3] = cl.get(i).getStatus_OS();\n dados[4] = cl.get(i).getDefeito_OS();\n dados[5] = cl.get(i).getDataAbertura_OS();\n dados[6] = cl.get(i).getDataFechamento_OS();\n\n // pega os dados salvos do banco de dados (que estão nas variáveis) e os coloca nos objetos definidos\n modeloTabela.addRow(dados); // insere uma linha nova a cada item novo encontrado na tabela do BD\n }\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(null, \"Falha na operação.\\nErro: \" + ex.getMessage());\n } catch (Exception ex) {\n Logger.getLogger(FrmPesquisar.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public DatoGeneralMinimo getEntityDatoGeneralMinimoGenerico(Connexion connexion,QueryWhereSelectParameters queryWhereSelectParameters,ArrayList<Classe> classes) throws SQLException,Exception { //Banco\r\n\t\tDatoGeneralMinimo datoGeneralMinimo= new DatoGeneralMinimo();\r\n\t\t\r\n\t\tBanco entity = new Banco();\r\n\t\t\t\t\r\n try {\t\t\t\r\n\t\t\tString sQuery=\"\";\r\n \t String sQuerySelect=\"\";\r\n\t\t\t\r\n\t\t\tStatement statement = connexion.getConnection().createStatement();\t\t\t\r\n\t\t\t\r\n\t\t\tif(!queryWhereSelectParameters.getSelectQuery().equals(\"\")) {\r\n\t\t\t\tsQuerySelect=queryWhereSelectParameters.getSelectQuery();\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tif(!this.isForForeingKeyData) {\r\n\t\t\t\t\tsQuerySelect=BancoDataAccess.QUERYSELECTNATIVE;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsQuerySelect=BancoDataAccess.QUERYSELECTNATIVEFORFOREINGKEY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n \t sQuery=DataAccessHelper.buildSqlGeneralGetEntitiesJDBC(entity,BancoDataAccess.TABLENAME+\".\",queryWhereSelectParameters,sQuerySelect);\r\n\t\t\t\r\n\t\t\tif(Constantes2.ISDEVELOPING_SQL) {\r\n \tFunciones2.mostrarMensajeDeveloping(sQuery);\r\n }\r\n\t\t\t\r\n \t \tResultSet resultSet = statement.executeQuery(sQuery);//Tesoreria.Banco.isActive=1\r\n \t \r\n\t\t\t//ResultSetMetaData metadata = resultSet.getMetaData();\r\n \t \t\r\n \t \t//int iTotalCountColumn = metadata.getColumnCount();\r\n\t\t\t\t\r\n\t\t\t//if(queryWhereSelectParameters.getIsGetGeneralObjects()) {\r\n\t\t\t\tif(resultSet.next()) {\t\t\t\t\r\n\t\t\t\t\tfor(Classe classe:classes) {\r\n\t\t\t\t\t\tDataAccessHelperBase.setFieldDynamic(datoGeneralMinimo,classe,resultSet);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t/*\r\n\t\t\t\t\tint iIndexColumn = 1;\r\n\t\t\t\t \r\n\t\t\t\t\twhile(iIndexColumn <= iTotalCountColumn) {\r\n\t\t\t\t\t\t//arrayListObject.add(resultSet.getObject(iIndexColumn++));\r\n\t\t\t\t }\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t*/\r\n\t\t\t\t} else {\r\n\t\t\t\t\tentity =null;\r\n\t\t\t\t}\r\n\t\t\t//}\r\n\t\t\t\r\n\t\t\tif(entity!=null) {\r\n\t\t\t\t//this.setIsNewIsChangedFalseBanco(entity);\r\n\t\t\t}\r\n\t\t\t\r\n \t statement.close(); \r\n\t\t\r\n\t\t} \r\n\t\tcatch(Exception e) {\r\n\t\t\tthrow e;\r\n \t}\r\n\t\t\r\n \t//return entity;\t\r\n\t\t\r\n\t\treturn datoGeneralMinimo;\r\n }", "private void actualizarVentanaOperadores() throws SQLException {\n Sistema.getControladorVentanaOperadores().actualizarTablaOperadores(\"SELECT * FROM operador WHERE activo=TRUE ORDER BY id ASC;\");\n }", "public void execute() throws SQLException {\n\t\ttry {\n\t\t\tselect.setUsername(\"INTRANET\");\n\t\t\tselect.setPassword(\"INTRANET\");\n\t\t\tselect.execute();\n\t\t}\n\n\t\t// Liberar recursos del objeto select.\n\t\tfinally {\n\t\t\tselect.close();\n\t\t}\n\t}", "public static void insertFournisseur(Fournisseur unFournisseur ) {\n Bdd uneBdd = new Bdd(\"localhost\", \"paruline \", \"root\", \"\");\n\n String checkVille = \"CALL checkExistsCity('\" + unFournisseur.getVille() + \"','\" + unFournisseur.getCp() + \"');\";\n try {\n uneBdd.seConnecter();\n Statement unStat = uneBdd.getMaConnection().createStatement();\n\n ResultSet unRes = unStat.executeQuery(checkVille);\n\n int nb = unRes.getInt(\"nb\");\n\n if (nb == 0) {\n String ajoutVille = \"CALL InsertCity('\" + unFournisseur.getVille() + \"', '\" + unFournisseur.getCp() + \"');\";\n\n try {\n Statement unStatAjout = uneBdd.getMaConnection().createStatement();\n\n unStatAjout.executeQuery(ajoutVille);\n unStatAjout.close();\n }\n catch (SQLException e) {\n System.out.println(\"Erreur : \" + ajoutVille);\n }\n }\n\n String id = \"CALL GetCity('\" + unFournisseur.getVille() + \"', '\" + unFournisseur.getCp() + \"')\";\n\n try {\n Statement unStatId = uneBdd.getMaConnection().createStatement();\n\n ResultSet unResId = unStatId.executeQuery(id);\n\n int id_city = unResId.getInt(\"id_city\");\n\n\n\n String insertFournisseur = \"INSERT INTO fournisseur(id_city, name_f, adresse_f, phoneFour) VALUES (\" + id_city + \", '\" + unFournisseur.getNom() + \"', \" +\n \"'\" + unFournisseur.getAdresse() + \"', '\" + unFournisseur.getTelephone() + \"')\";\n\n try {\n Statement unStatFourn = uneBdd.getMaConnection().createStatement();\n unStatFourn.executeQuery(insertFournisseur);\n\n unStatFourn.close();\n }\n catch (SQLException e) {\n System.out.println(\"Erreur : \" + insertFournisseur);\n }\n\n unResId.close();\n unStatId.close();\n }\n catch (SQLException e) {\n System.out.println(\"Erreur : \" + id);\n }\n\n unRes.close();\n unStat.close();\n uneBdd.seDeConnecter();\n } catch (SQLException exp) {\n System.out.println(\"Erreur : \" + checkVille);\n }\n }", "private void buscar() {\n try { \n conexion = DriverManager.getConnection(\"jdbc:mysql://localhost/sistema_gmg\", \"root\", \"1405\");\n\n st = conexion.createStatement();\n \n rs = st.executeQuery(\"select * from ciclos where ciclo like '%\" + this.jtf_buscar.getText() + \"%'\");\n\n jtf_id_ciclo.setText(null);\n jtf_ciclo.setText(null);\n jtf_finicio.setText(null);\n jtf_ftermino.setText(null);\n \n jt_ciclos.setModel(DbUtils.resultSetToTableModel(rs));\n \n jb_cancelar.setEnabled(true); \n rs = st.executeQuery(\"select *from ciclos\");\n } catch (SQLException ex) {\n Logger.getLogger(JF_Alumnos.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public CadastroDeEmpresa() {\n initComponents();\n preencherTabela(\"select * from empresa order by id\");\n }", "public static void main(String[] args) {\n Connection connection = null;\r\n\r\n try{\r\n // establezco la connecion con la base de datos jdbc en el puerto 3306 con usuario y contrasenia root\r\n connection = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/jdbc\",\"root\",\"root\");\r\n // pongo auto commit en false esto hace que no se comite cada cueri y que se cada vez que lance\r\n // el comando commit se ejecuta el bloque query\r\n connection.setAutoCommit(false);\r\n\r\n // hago la sentencia preparada\r\n PreparedStatement preparedStatement = connection.prepareStatement(\"INSERT INTO estudiante (dni, nombre, apellido) VALUES (?, ?, ?);\");\r\n // modifico los \"?\" de la sentencia preparada con mis datos\r\n preparedStatement.setInt(1,40640217);\r\n preparedStatement.setString(2,\"Santiago\");\r\n preparedStatement.setString(3,\"Lampropulos\");\r\n\r\n // ejecuto la consulta preparada\r\n preparedStatement.executeUpdate();\r\n\r\n //traigo los datos de la tabla estudiante\r\n ResultSet resultSet = preparedStatement.executeQuery(\"SELECT * FROM estudiante\");\r\n\r\n // realizo el commit para que se guarden los cambios\r\n connection.commit();\r\n\r\n //muestro toda la tabla\r\n while(resultSet.next()){\r\n System.out.println(resultSet.getString(2)+\"\\t\"+resultSet.getString(\"nombre\")+\"\\t\"+resultSet.getString(\"apellido\"));\r\n }\r\n\r\n }catch (SQLException exceptionConnection){\r\n System.out.println(exceptionConnection);\r\n try{\r\n // si se creo la base de datos revierte el commit que se hizo\r\n if(connection!=null){\r\n connection.rollback();\r\n }\r\n }catch (SQLException exceptionCarth){\r\n //atrapo excepciones\r\n System.out.println(exceptionCarth);\r\n }\r\n\r\n\r\n }finally {\r\n // el bloque finally se ejecute sin inportar si viene de un catch o del try\r\n try{\r\n //si se crea una coneccion con base de datos la cierro\r\n if(connection!= null){\r\n connection.close();\r\n }\r\n }catch (SQLException eFinally){\r\n //atrapo excepciones\r\n System.out.println(eFinally);\r\n }\r\n }\r\n\r\n }", "public void preencherTabelaResultado() {\n\t\tArrayList<Cliente> lista = Fachada.getInstance().pesquisarCliente(txtNome.getText());\n\t\tDefaultTableModel modelo = (DefaultTableModel) tabelaResultado.getModel();\n\t\tObject[] linha = new Object[4];\n\t\tmodelo.setRowCount(0);\n\n\t\tfor (Cliente c : lista) {\n\t\t\tlinha[0] = c.getIdCliente();\n\t\t\tlinha[1] = c.getNome();\n\t\t\tlinha[2] = c.getTelefone().toString();\n\t\t\tif (c.isAptoAEmprestimos())\n\t\t\t\tlinha[3] = \"Apto\";\n\t\t\telse\n\t\t\t\tlinha[3] = \"A devolver\";\n\t\t\tmodelo.addRow(linha);\n\n\t\t}\n\n\t}", "public void guardarBloqueSeleccionado(){\n\t\tif(bloqueSeleccionadoEditar.getIdbloques() == 0){\n\t\t\tbloquesFacade.create(bloqueSeleccionadoEditar);\n\t\t}else{\n\t\t\tbloquesFacade.edit(bloqueSeleccionadoEditar);\n\t\t}\n\t\tdataListBloques = bloquesFacade.findByLike(\"SELECT B FROM Bloques B ORDER BY B.nombre\");\n\t}", "public void alteraDadosMySQL() throws SQLException, IOException {\n byte[] logo = null;\n byte[] brasao = null;\n if (imagemRedimensionada != null) {\n ByteArrayOutputStream bytesImg = new ByteArrayOutputStream();\n ImageIO.write((BufferedImage) imagemRedimensionada, extensao, bytesImg);\n bytesImg.flush();\n logo = bytesImg.toByteArray();\n bytesImg.close();\n }\n\n if (imagemRedimensionada2 != null) {\n ByteArrayOutputStream bytesImg2 = new ByteArrayOutputStream();\n ImageIO.write((BufferedImage) imagemRedimensionada2, extensao2, bytesImg2);\n bytesImg2.flush();\n brasao = bytesImg2.toByteArray();\n bytesImg2.close();\n }\n\n if (dados.equals(prova.getText())) {\n if (dados2.equals(individualUnico.getText())) {\n // System.out.println(\"1\");\n PreparedStatement p = conexao.prepareStatement(\"UPDATE dados SET titulo='\" + titulo.getText() + \"'\"\n + \", tipo='\" + dados + \"'\"\n + \", modalidade='\" + dados2 + \"'\"\n + \", escola='\" + dados3 + \"'\"\n + \", matricula='\" + matricula.getText() + \"'\"\n + \", dataProva=?\"\n + \", dataRecebimento=?\"\n + \", dataEntrega=?\"\n + \" WHERE titulo='\" + aux + \"'\"\n );\n p.clearParameters();\n p.setDate(1, new java.sql.Date(dataProva.getDate().getTime()));\n p.setDate(2, null);\n p.setDate(3, null);\n p.executeUpdate();\n } else {\n if (dados2.equals(individualTurma.getText()) || dados2.equals(grupo.getText())) {\n System.out.println(\"OK\");\n // System.out.println(\"2\");\n PreparedStatement p = conexao.prepareStatement(\"UPDATE dados SET titulo='\" + titulo.getText() + \"'\"\n + \", tipo='\" + dados + \"'\"\n + \", modalidade='\" + dados2 + \"'\"\n + \", escola='\" + dados3 + \"'\"\n + \", matricula=?\"\n + \", dataProva=?\"\n + \", dataRecebimento=?\"\n + \", dataEntrega=?\"\n + \" WHERE titulo='\" + aux + \"'\"\n );\n p.clearParameters();\n p.setString(1, null);\n p.setDate(2, new java.sql.Date(dataProva.getDate().getTime()));\n p.setDate(3, null);\n p.setDate(4, null);\n p.executeUpdate();\n }\n }\n } else {\n if (dados.equals(trabalho.getText())) {\n if (dados2.equals(individualUnico.getText())) {\n\n PreparedStatement p = conexao.prepareStatement(\"UPDATE dados SET titulo='\" + titulo.getText() + \"'\"\n + \", tipo='\" + dados + \"'\"\n + \", modalidade='\" + dados2 + \"'\"\n + \", escola='\" + dados3 + \"'\"\n + \", matricula='\" + matricula.getText() + \"'\"\n + \", dataProva=?\"\n + \", dataRecebimento=?\"\n + \", dataEntrega=?\"\n + \" WHERE titulo='\" + aux + \"'\"\n );\n p.clearParameters();\n\n p.setDate(1, null);\n p.setDate(2, new java.sql.Date(dataRecebimento.getDate().getTime()));\n p.setDate(3, new java.sql.Date(dataEntrega.getDate().getTime()));\n p.executeUpdate();\n } else {\n if (dados2.equals(individualTurma.getText()) || dados2.equals(grupo.getText())) {\n // System.out.println(\"4\");\n PreparedStatement p = conexao.prepareStatement(\"UPDATE dados SET titulo='\" + titulo.getText() + \"'\"\n + \", tipo='\" + dados + \"'\"\n + \", modalidade='\" + dados2 + \"'\"\n + \", escola='\" + dados3 + \"'\"\n + \", matricula=?\"\n + \", dataProva=?\"\n + \", dataRecebimento=?\"\n + \", dataEntrega=?\"\n + \" WHERE titulo='\" + aux + \"'\"\n );\n p.clearParameters();\n p.setString(1, null);\n p.setDate(2, null);\n p.setDate(3, new java.sql.Date(dataRecebimento.getDate().getTime()));\n p.setDate(4, new java.sql.Date(dataEntrega.getDate().getTime()));\n p.executeUpdate();\n }\n }\n }\n }\n if (envio[0]) {\n if (envio[1]) {\n System.out.println(envio[1]);\n PreparedStatement s = conexao.prepareStatement(\"UPDATE dados SET logotipo= ? , brasao= ?, nomeLogotipo=?, nomeBrasao=? WHERE titulo='\" + titulo.getText() + \"'\");//conexao.createStatement();\n s.clearParameters();\n s.setBytes(1, logo);\n s.setBytes(2, brasao);\n s.setString(3, arquivo.getName());\n s.setString(4, arquivo2.getName());\n s.executeUpdate();\n } else {\n PreparedStatement s = conexao.prepareStatement(\"UPDATE dados SET logotipo= ?, brasao=? , nomeLogotipo=?, nomeBrasao=? WHERE titulo='\" + titulo.getText() + \"'\");\n s.clearParameters();\n s.setBytes(1, logo);\n s.setBytes(2, null);\n s.setString(3, arquivo.getName());\n s.setString(4, null);\n s.executeUpdate();\n }\n }\n if (dados3.equals(privada.getText())) {\n PreparedStatement s = conexao.prepareStatement(\"UPDATE dados SET brasao=?, nomeBrasao=? WHERE titulo='\" + dadosTitulo + \"'\");\n s.setBytes(1, null);\n s.setString(2, null);\n s.executeUpdate();\n }\n dispose();\n framePrincipal.setVisible(true);\n }", "public void prepareStatements() throws SQLException {\n\t\tpstmt_updateTicket = connection.prepareStatement(\r\n\t\t \"UPDATE ticket \" +\r\n \"SET kunde = ? \" +\r\n \"WHERE tid IN (\" +\r\n \"SELECT tid FROM ticket WHERE kunde IS NULL AND auffuehrung = ? LIMIT ?)\" +\r\n \"RETURNING preis\");\r\n\t}", "public void firstTest() throws SQLException, ServicesException{\n Connection conn=getConnection();\n Statement stmt=conn.createStatement();\n Services servicios = Services.getInstance(\"h2-applicationconfig.properties\");\n PrestamoUsuario prestamo =null;\n try {\n //Insercion en BD\n stmt.execute(\"INSERT INTO ROLES(rol) values ('estudiante')\");\n stmt.execute(\"INSERT INTO USUARIOS (id,nombre,correo,contrasena) VALUES (124,'PEDRO PEREZ','[email protected]','1test1')\");\n stmt.execute(\"INSERT INTO ROLES_USUARIOS(USUARIOS_id,ROLES_rol) values (124,'estudiante')\");\n stmt.execute(\"INSERT INTO MODELOS (nombre,clase,vidaUtil,valor,seguro,foto) values ('modelo1','abcd',100,200000,true,null)\"); \n stmt.execute(\"INSERT INTO EQUIPOS (serial,nombre,placa,marca,descripcion,estado,subestados,proveedor,Modelos_nombre) VALUES (123,'Multimetro',456,'falsa','Equipo funcional y de buena calidad','activo','almacen','Leonardo Herrera','modelo1')\");\n stmt.execute(\"INSERT INTO PRESTAMOS (USUARIOS_id,EQUIPOS_serial,fechaExpedicion,fechaVencimiento,tipoPrestamo) VALUES (124,123,'2015-01-01 00:00:00',null,'prestamo diario')\");\n conn.commit();\n conn.close(); \n } catch (SQLException ex) {\n Logger.getLogger(DevolucionTest.class.getName()).log(Level.SEVERE, null, ex);\n conn.rollback();\n conn.close();\n }\n Set<PrestamoUsuario> prestamos = servicios.loadPrestamos();\n for (PrestamoUsuario p:prestamos){\n \n }\n }", "public void insereDadosMySQL(String tabela, String colunas, boolean matricula, boolean data, boolean brasao2) throws IOException {\n status = true;\n ByteArrayOutputStream bytesImg = new ByteArrayOutputStream();\n ImageIO.write((BufferedImage) imagemRedimensionada, extensao, bytesImg);\n bytesImg.flush();\n byte[] logo = bytesImg.toByteArray();\n bytesImg.close();\n /**\n * Transforma a imagem do logotipo e brasao em um array de bytes para enviar ao banco de dados\n */\n byte[] brasao = null;\n if (brasao2) {\n ByteArrayOutputStream bytesImg2 = new ByteArrayOutputStream();\n ImageIO.write((BufferedImage) imagemRedimensionada2, extensao2, bytesImg2);\n bytesImg2.flush();\n brasao = bytesImg2.toByteArray();\n bytesImg2.close();\n }\n\n String[] aux = colunas.split(\",\");\n String values = \"?\";\n for (int i = 0; i < aux.length - 1; i++) {\n values += \",?\";\n }\n try {\n PreparedStatement p = conexao.prepareStatement(\"INSERT INTO \" + tabela + \"(\" + colunas + \") VALUES (\" + values + \")\");\n // System.out.println(\"INSERT INTO \" + tabela + \"(\" + colunas + \") VALUES (\" + values + \")\");\n p.setString(1, dadosTitulo);\n p.setString(2, dados);\n p.setString(3, dados2);\n p.setString(4, dados3);\n if (matricula) {\n p.setString(5, this.matricula.getText());\n if (data) {\n p.setDate(6, new java.sql.Date(dataProva.getDate().getTime()));\n p.setString(7, arquivo.getName());\n p.setBytes(8, logo);\n if (brasao2) {\n p.setString(9, arquivo2.getName());\n p.setBytes(10, brasao);\n }\n } else {\n p.setDate(6, new java.sql.Date(dataRecebimento.getDate().getTime()));\n p.setDate(7, new java.sql.Date(dataEntrega.getDate().getTime()));\n p.setString(8, arquivo.getName());\n p.setBytes(9, logo);\n if (brasao2) {\n p.setString(10, arquivo2.getName());\n p.setBytes(11, brasao);\n }\n }\n } else {\n if (data) {\n p.setDate(5, new java.sql.Date(dataProva.getDate().getTime()));\n p.setString(6, arquivo.getName());\n p.setBytes(7, logo);\n if (brasao2) {\n p.setString(8, arquivo2.getName());\n p.setBytes(9, brasao);\n }\n } else {\n p.setDate(5, new java.sql.Date(dataRecebimento.getDate().getTime()));\n p.setDate(6, new java.sql.Date(dataEntrega.getDate().getTime()));\n p.setString(7, arquivo.getName());\n p.setBytes(8, logo);\n if (brasao != null) {\n p.setString(9, arquivo2.getName());\n p.setBytes(10, brasao);\n }\n }\n }\n p.executeUpdate();\n } catch (SQLException ex) {\n System.out.println(ex.getMessage());\n // System.out.println(\"catch 2\");\n }\n }", "public void buscarxdescrip() {\r\n try {\r\n modelo.setDescripcion(vista.jTbdescripcion.getText());//C.P.M le enviamos al modelo la descripcion y consultamos\r\n rs = modelo.Buscarxdescrip();//C.P.M cachamos el resultado de la consulta\r\n\r\n DefaultTableModel buscar = new DefaultTableModel() {//C.P.M creamos el modelo de la tabla\r\n @Override\r\n public boolean isCellEditable(int rowIndex, int vColIndex) {\r\n return false;\r\n }\r\n };\r\n vista.jTbuscar.setModel(buscar);//C.P.M le mandamos el modelo a la tabla\r\n modelo.estructuraProductos(buscar);//C.P.M obtenemos la estructura de la tabla \"encabezados\"\r\n ResultSetMetaData rsMd = rs.getMetaData();//C.P.M obtenemos los metadatos de la consulta\r\n int cantidadColumnas = rsMd.getColumnCount();//C.P.M obtenemos la cantidad de columnas de la consulta\r\n while (rs.next()) {//C.P.M recorremos el resultado\r\n Object[] fila = new Object[cantidadColumnas];//C.P.M creamos un arreglo con una dimencion igual a la cantidad de columnas\r\n for (int i = 0; i < cantidadColumnas; i++) { //C.P.M lo recorremos \r\n fila[i] = rs.getObject(i + 1); //C.P.M vamos insertando los resultados dentor del arreglo\r\n }\r\n buscar.addRow(fila);//C.P.M y lo agregamos como una nueva fila a la tabla\r\n }\r\n\r\n } catch (SQLException ex) {\r\n JOptionPane.showMessageDialog(null, \"Ocurrio un error al buscar producto por descripcion\");\r\n }\r\n }", "public java.sql.ResultSet CitasActivasSoloMedico(String CodigoMedico){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"SELECT phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo,su.usu_codigo,SUBSTRING(phm.horas, 7, 3) AS jornada FROM pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes,seg_datos_personales sdp,seg_usuario su WHERE pmd.codigo = \"+CodigoMedico+\" AND phm.codMedico_fk = pmd.codigo AND pmd.codEspe_fk = pes.codigo AND phm.estado='0' AND sdp.numeroDocumento = pmd.numeroDocumento AND su.dat_codigo_fk = sdp.dat_codigo AND phm.fechas >= CURDATE() ORDER BY phm.fechas,jornada,phm.horas LIMIT 100 \");\r\n \t//System.out.println(\"SELECT ahm.codigo,ahm.horas,ahm.fechas,ahm.NombrePaciente,aes.nombre_especialidad,amd.nombre,amd.apellidos,ahm.estado,aes.codigo,amd.codigo,su.usu_codigo,SUBSTRING(ahm.horas, 7, 3) AS jornada FROM agm_horariomedico ahm,agm_medico amd,agm_especialidad aes,seg_datos_personales sdp,seg_usuario su WHERE amd.codigo = \"+CodigoMedico+\" AND ahm.codMedico_fk = amd.codigo AND amd.codEspe_fk = aes.codigo AND ahm.estado='0' AND sdp.numeroDocumento = amd.numeroDocumento AND su.dat_codigo_fk = sdp.dat_codigo AND ahm.fechas >= CURDATE() ORDER BY ahm.fechas,jornada,ahm.horas LIMIT 100 \");\r\n \t\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultapormedicofecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "public java.sql.ResultSet consultapormedicofecha2(String CodigoMedico,String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"SELECT phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo,su.usu_codigo,SUBSTRING(phm.horas,7,3) AS jornada FROM pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes,seg_datos_personales sdp,seg_usuario su WHERE pmd.codigo=\"+CodigoMedico+\" AND phm.fechas='\"+fecha+\"' AND phm.codMedico_fk = pmd.codigo AND pmd.codEspe_fk = pes.codigo AND sdp.numeroDocumento=pmd.numeroDocumento AND su.dat_codigo_fk=sdp.dat_codigo AND phm.fechas >= CURDATE() ORDER BY jornada,phm.horas \");\r\n \tSystem.out.println(\"SELECT phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo,su.usu_codigo,SUBSTRING(phm.horas,7,3) AS jornada FROM pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes,seg_datos_personales sdp,seg_usuario su WHERE pmd.codigo=\"+CodigoMedico+\" AND phm.fechas='\"+fecha+\"' AND phm.codMedico_fk = pmd.codigo AND pmd.codEspe_fk = pes.codigo AND sdp.numeroDocumento=pmd.numeroDocumento AND su.dat_codigo_fk=sdp.dat_codigo AND phm.fechas >= CURDATE() ORDER BY jornada,phm.horas \");\r\n \t\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultapormedicofecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "public List<ReporteRetencionesResumido> getRetencionSRIResumido(int mes, int anio, int idOrganizacion)\r\n/* 27: */ {\r\n/* 28: 58 */ String sql = \"SELECT new ReporteRetencionesResumido(f.fechaEmisionRetencion,f.fechaRegistro,f.fechaEmision, CONCAT(f.establecimiento,'-',f.puntoEmision,'-',f.numero),\\tf.identificacionProveedor,c.descripcion,CASE WHEN c.tipoConceptoRetencion = :tipoConceptoFUENTE then (SUM(COALESCE(dfp.baseImponibleRetencion, 0)+COALESCE(dfp.baseImponibleTarifaCero, 0) +COALESCE(dfp.baseImponibleDiferenteCero, 0)+COALESCE(dfp.baseImponibleNoObjetoIva, 0))) else COALESCE(dfp.baseImponibleRetencion, 0) end,dfp.porcentajeRetencion,dfp.valorRetencion,\\tc.codigo,CASE WHEN c.tipoConceptoRetencion = :tipoConceptoIVA then 'IVA' WHEN c.tipoConceptoRetencion = :tipoConceptoFUENTE then 'FUENTE' WHEN c.tipoConceptoRetencion = :tipoConceptoISD then 'ISD' else '' end,f.numeroRetencion) FROM DetalleFacturaProveedorSRI dfp INNER JOIN dfp.facturaProveedorSRI f INNER JOIN dfp.conceptoRetencionSRI c WHERE MONTH(f.fechaRegistro) =:mes\\tAND YEAR(f.fechaRegistro) =:anio AND f.estado!=:estadoAnulado AND f.indicadorSaldoInicial!=true AND f.idOrganizacion = :idOrganizacion\\tGROUP BY c.codigo,f.numero,f.puntoEmision,\\tf.establecimiento, f.identificacionProveedor,\\tc.descripcion,dfp.baseImponibleRetencion,dfp.porcentajeRetencion,dfp.valorRetencion,f.fechaEmisionRetencion,f.fechaRegistro,f.fechaEmision,f.numeroRetencion, c.tipoConceptoRetencion ORDER BY c.tipoConceptoRetencion, c.codigo \";\r\n/* 29: */ \r\n/* 30: */ \r\n/* 31: */ \r\n/* 32: */ \r\n/* 33: */ \r\n/* 34: */ \r\n/* 35: */ \r\n/* 36: */ \r\n/* 37: */ \r\n/* 38: */ \r\n/* 39: */ \r\n/* 40: */ \r\n/* 41: */ \r\n/* 42: */ \r\n/* 43: */ \r\n/* 44: */ \r\n/* 45: 75 */ Query query = this.em.createQuery(sql);\r\n/* 46: 76 */ query.setParameter(\"mes\", Integer.valueOf(mes));\r\n/* 47: 77 */ query.setParameter(\"anio\", Integer.valueOf(anio));\r\n/* 48: 78 */ query.setParameter(\"estadoAnulado\", Estado.ANULADO);\r\n/* 49: 79 */ query.setParameter(\"idOrganizacion\", Integer.valueOf(idOrganizacion));\r\n/* 50: 80 */ query.setParameter(\"tipoConceptoIVA\", TipoConceptoRetencion.IVA);\r\n/* 51: 81 */ query.setParameter(\"tipoConceptoFUENTE\", TipoConceptoRetencion.FUENTE);\r\n/* 52: 82 */ query.setParameter(\"tipoConceptoISD\", TipoConceptoRetencion.ISD);\r\n/* 53: 83 */ List<ReporteRetencionesResumido> lista = query.getResultList();\r\n/* 54: */ \r\n/* 55: 85 */ return lista;\r\n/* 56: */ }", "public EstadosSql() {\r\n }", "private void refreshData() {\n try {\n setDataSource(statement.executeQuery(\"select * from \" + sourceTableName));\n } catch (SQLException e) {\n System.err.println(\"Can't execute statement\");\n e.printStackTrace();\n }\n }", "public RespuestaBD modificarRegistro(int codigoFlujo, int secuencia, int servicioInicio, int accion, int codigoEstado, int servicioDestino, String nombreProcedimiento, String correoDestino, String enviar, String mismoProveedor, String mismomismoCliente, String estado, int caracteristica, int caracteristicaValor, int caracteristicaCorreo, String metodoSeleccionProveedor, String indCorreoCliente, String indHermana, String indHermanaCerrada, String indfuncionario, String usuarioModificacion) {\n/* 437 */ RespuestaBD rta = new RespuestaBD();\n/* */ \n/* */ try {\n/* 440 */ String s = \"update wkf_detalle set servicio_inicio=\" + servicioInicio + \",\" + \" accion=\" + accion + \",\" + \" codigo_estado=\" + codigoEstado + \",\" + \" servicio_destino=\" + ((servicioDestino == 0) ? \"null\" : Integer.valueOf(servicioDestino)) + \",\" + \" nombre_procedimiento='\" + nombreProcedimiento + \"',\" + \" correo_destino='\" + correoDestino + \"',\" + \" enviar_solicitud='\" + enviar + \"',\" + \" ind_mismo_proveedor='\" + mismoProveedor + \"',\" + \" ind_mismo_cliente='\" + mismomismoCliente + \"',\" + \" estado='\" + estado + \"',\" + \" caracteristica=\" + ((caracteristica == 0) ? \"null\" : (\"\" + caracteristica)) + \",\" + \" valor_caracteristica=\" + ((caracteristicaValor == 0) ? \"null\" : (\"\" + caracteristicaValor)) + \",\" + \" caracteristica_correo=\" + ((caracteristicaCorreo == 0) ? \"null\" : (\"\" + caracteristicaCorreo)) + \",\" + \" metodo_seleccion_proveedor=\" + ((metodoSeleccionProveedor.length() == 0) ? \"null\" : (\"'\" + metodoSeleccionProveedor + \"'\")) + \",\" + \" ind_correo_clientes=\" + ((indCorreoCliente.length() == 0) ? \"null\" : (\"'\" + indCorreoCliente + \"'\")) + \",\" + \" enviar_hermana=\" + ((indHermana.length() == 0) ? \"null\" : (\"'\" + indHermana + \"'\")) + \",\" + \" enviar_si_hermana_cerrada=\" + ((indHermanaCerrada.length() == 0) ? \"null\" : (\"'\" + indHermanaCerrada + \"'\")) + \",\" + \" ind_cliente_inicial=\" + ((indfuncionario.length() == 0) ? \"null\" : (\"'\" + indfuncionario + \"'\")) + \",\" + \" usuario_modificacion='\" + usuarioModificacion + \"',\" + \" fecha_modificacion=\" + Utilidades.getFechaBD() + \"\" + \" where\" + \" codigo_flujo=\" + codigoFlujo + \" and secuencia=\" + secuencia + \"\";\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 465 */ rta = this.dat.executeUpdate2(s);\n/* */ }\n/* 467 */ catch (Exception e) {\n/* 468 */ e.printStackTrace();\n/* 469 */ Utilidades.writeError(\"FlujoDetalleDAO:modificarRegistro \", e);\n/* 470 */ rta.setMensaje(e.getMessage());\n/* */ } \n/* 472 */ return rta;\n/* */ }", "private boolean insertarTablaRelacionadas(java.sql.Connection conn,int intCodEmp, int intCodLoc,int intCodTipDoc,int intCodDoc,int intCodCot){\r\n java.sql.Statement stmLoc;\r\n java.sql.ResultSet rstLocFacVen,rstLocIng; \r\n boolean blnRes = true;\r\n try{\r\n if(conn!=null){\r\n stmLoc = conn.createStatement();\r\n arlDatFacVen = new ArrayList();\r\n arlDatIngGen = new ArrayList();\r\n \r\n strSql=\"\";\r\n strSql+=\" SELECT a2.co_emp, a2.co_loc, a2.co_tipDoc, a2.co_doc,a3.co_reg, a3.co_itm, ABS(a3.nd_can) as nd_can \\n\";\r\n strSql+=\" FROM( \\n\";\r\n strSql+=\" SELECT co_empRelCabMovInv, co_locRelCabMovInv, co_tipDocRelCabMovInv, co_docRelCabMovInv \\n\";\r\n strSql+=\" FROM tbm_cabSegMovInv \\n\";\r\n strSql+=\" WHERE co_empRelCabMovInv=\"+intCodEmp+\" AND co_locRelCabMovInv=\"+intCodLoc+\" AND \\n\";\r\n strSql+=\" co_tipDocRelCabMovInv=\"+intCodTipDoc+\" AND co_docRelCabMovInv=\"+intCodDoc+\" \\n\";\r\n strSql+=\" ) as a1 \\n\";\r\n strSql+=\" INNER JOIN tbm_cabMovInv as a2 ON (a1.co_empRelCabMovInv=a2.co_emp AND a1.co_locRelCabMovInv=a2.co_loc AND \\n\";\r\n strSql+=\" a1.co_tipDocRelCabMovInv=a2.co_tipDoc AND a1.co_docRelCabMovInv=a2.co_doc ) \\n\";\r\n strSql+=\" INNER JOIN tbm_detMovInv as a3 ON (a2.co_emp=a3.co_emp AND a2.co_loc=a3.co_loc AND a2.co_tipDoc=a3.co_tipDoc AND a2.co_doc=a3.co_doc) \\n\";\r\n System.out.println(\"insertarTablaRelacionadas... \"+strSql);\r\n rstLocFacVen = stmLoc.executeQuery(strSql);\r\n while(rstLocFacVen.next()){\r\n arlRegFacVen = new ArrayList();\r\n arlRegFacVen.add(INT_ARL_COD_EMP_REL, rstLocFacVen.getInt(\"co_emp\"));\r\n arlRegFacVen.add(INT_ARL_COD_LOC_REL, rstLocFacVen.getInt(\"co_loc\"));\r\n arlRegFacVen.add(INT_ARL_COD_TIP_DOC_REL, rstLocFacVen.getInt(\"co_tipDoc\"));\r\n arlRegFacVen.add(INT_ARL_COD_DOC_REL, rstLocFacVen.getInt(\"co_doc\"));\r\n arlRegFacVen.add(INT_ARL_COD_REG_REL_AUX, rstLocFacVen.getInt(\"co_reg\"));\r\n arlRegFacVen.add(INT_ARL_COD_ITM_REL, rstLocFacVen.getInt(\"co_itm\"));\r\n arlRegFacVen.add(INT_ARL_CAN_REL, rstLocFacVen.getDouble(\"nd_can\"));\r\n arlRegFacVen.add(INT_ARL_COD_CAN_UTI, 0.00);\r\n arlDatFacVen.add(arlRegFacVen); \r\n }\r\n rstLocFacVen.close();\r\n rstLocFacVen=null;\r\n\r\n strSql=\"\";\r\n strSql+=\" SELECT a1.co_empRelCabMovInv, a1.co_locRelCabMovInv, a1.co_tipDocRelCabMovInv, \\n\";\r\n strSql+=\" a1.co_docRelCabMovInv,a3.co_reg as co_regRel, a3.co_itm, a3.nd_can \\n\";\r\n strSql+=\" FROM tbm_cabSegMovInv as a1 \\n\";\r\n strSql+=\" INNER JOIN tbm_cabMovInv as a2 ON (a1.co_empRelCabMovInv=a2.co_emp AND a1.co_locRelCabMovInv=a2.co_loc AND \\n\";\r\n strSql+=\" a1.co_tipDocRelCabMovInv=a2.co_tipDoc AND a1.co_docRelCabMovInv=a2.co_doc) \\n\";\r\n strSql+=\" INNER JOIN tbm_detMovInv as a3 ON (a2.co_emp=a3.co_emp AND a2.co_loc=a3.co_loc AND a2.co_tipDoc=a3.co_tipDoc AND a2.co_doc=a3.co_doc) \\n\";\r\n strSql+=\" RIGHT JOIN tbr_detMovInv as a5 ON (a2.co_emp=a5.co_empRel AND a2.co_loc=a5.co_locRel AND a2.co_tipDoc=a5.co_tipDocRel AND a2.co_doc=a5.co_docRel) \\n\";\r\n strSql+=\" WHERE a1.co_seg=(select co_seg from tbm_cabSegMovInv \\n\";\r\n strSql+=\" where co_empRelCabCotVen=\"+intCodEmp+\" and co_locRelCabCotVen=\"+intCodLoc+\" \\n\";\r\n strSql+=\" and co_cotRelCabCotVen=\"+intCodCot+\" GROUP BY co_seg ) and a3.nd_can > 0 \\n \";\r\n strSql+=\" GROUP BY a1.co_empRelCabMovInv, a1.co_locRelCabMovInv, a1.co_tipDocRelCabMovInv, \";\r\n strSql+=\" a1.co_docRelCabMovInv,a3.co_reg , a2.co_cli, a3.co_itm, a3.nd_can \";\r\n strSql+=\" ORDER BY a3.nd_can DESC \";\r\n System.out.println(\"insertarTablaRelacionadas 2 ... \"+strSql);\r\n rstLocIng = stmLoc.executeQuery(strSql);\r\n while(rstLocIng.next()){\r\n arlRegIngGen = new ArrayList();\r\n arlRegIngGen.add(INT_ARL_COD_EMP_REL, rstLocIng.getInt(\"co_empRelCabMovInv\"));\r\n arlRegIngGen.add(INT_ARL_COD_LOC_REL, rstLocIng.getInt(\"co_locRelCabMovInv\"));\r\n arlRegIngGen.add(INT_ARL_COD_TIP_DOC_REL, rstLocIng.getInt(\"co_tipDocRelCabMovInv\"));\r\n arlRegIngGen.add(INT_ARL_COD_DOC_REL, rstLocIng.getInt(\"co_docRelCabMovInv\"));\r\n arlRegIngGen.add(INT_ARL_COD_REG_REL_AUX, rstLocIng.getInt(\"co_regRel\"));\r\n arlRegIngGen.add(INT_ARL_COD_ITM_REL, rstLocIng.getInt(\"co_itm\"));\r\n arlRegIngGen.add(INT_ARL_CAN_REL, rstLocIng.getDouble(\"nd_can\"));\r\n arlRegIngGen.add(INT_ARL_COD_CAN_UTI, 0.00);\r\n arlDatIngGen.add(arlRegIngGen); \r\n }\r\n rstLocIng.close();\r\n rstLocIng=null;\r\n \r\n String strIng=\"\";\r\n for(int i=0;i<arlDatFacVen.size();i++){\r\n for(int b=0;b<arlDatIngGen.size();b++){\r\n if(objUti.getIntValueAt(arlDatFacVen, i, INT_ARL_COD_ITM_REL)==objUti.getIntValueAt(arlDatIngGen, b, INT_ARL_COD_ITM_REL)){\r\n if(objUti.getDoubleValueAt(arlDatIngGen, b, INT_ARL_CAN_REL)>objUti.getDoubleValueAt(arlDatIngGen, b, INT_ARL_COD_CAN_UTI)){\r\n strSql=\"\";\r\n strSql+=\" INSERT INTO tbr_detMovInv(co_emp,co_loc,co_tipdoc,co_doc,co_reg,st_reg, \\n\";\r\n strSql+=\" co_emprel,co_locrel,co_tipdocrel,co_docrel,co_regrel) \\n\";\r\n strSql+=\" VALUES (\"+objUti.getIntValueAt(arlDatFacVen, i, INT_ARL_COD_EMP_REL)+\",\";\r\n strSql+=\" \"+objUti.getIntValueAt(arlDatFacVen, i, INT_ARL_COD_LOC_REL)+\",\" ;\r\n strSql+=\" \"+objUti.getIntValueAt(arlDatFacVen, i, INT_ARL_COD_TIP_DOC_REL)+\",\";\r\n strSql+=\" \"+objUti.getIntValueAt(arlDatFacVen, i, INT_ARL_COD_DOC_REL)+\",\";\r\n strSql+=\" \"+objUti.getIntValueAt(arlDatFacVen, i, INT_ARL_COD_REG_REL_AUX)+\",'A', \\n\";\r\n strSql+=\" \"+objUti.getIntValueAt(arlDatIngGen, b, INT_ARL_COD_EMP_REL)+\",\";\r\n strSql+=\" \"+objUti.getIntValueAt(arlDatIngGen, b, INT_ARL_COD_LOC_REL)+\",\";\r\n strSql+=\" \"+objUti.getIntValueAt(arlDatIngGen, b, INT_ARL_COD_TIP_DOC_REL)+\",\"; \r\n strSql+=\" \"+objUti.getIntValueAt(arlDatIngGen, b, INT_ARL_COD_DOC_REL)+\",\";\r\n strSql+=\" \"+objUti.getIntValueAt(arlDatIngGen, b, INT_ARL_COD_REG_REL_AUX)+\");\";\r\n strIng+=strSql;\r\n if(objUti.getDoubleValueAt(arlDatFacVen, i, INT_ARL_CAN_REL)<=objUti.getDoubleValueAt(arlDatIngGen, b, INT_ARL_CAN_REL)){\r\n // FACTURA 5 INGRESO 10 // le sumo lo de la factura\r\n objUti.setDoubleValueAt(arlDatIngGen, b, INT_ARL_COD_CAN_UTI, (objUti.getDoubleValueAt(arlDatIngGen, b, INT_ARL_COD_CAN_UTI)+objUti.getDoubleValueAt(arlDatFacVen, i, INT_ARL_CAN_REL)));\r\n }\r\n else{\r\n //factura 10 ing 4// le sumo el ingreso\r\n objUti.setDoubleValueAt(arlDatIngGen, b, INT_ARL_COD_CAN_UTI, (objUti.getDoubleValueAt(arlDatIngGen, b, INT_ARL_COD_CAN_UTI)+objUti.getDoubleValueAt(arlDatIngGen, b, INT_ARL_CAN_REL)));\r\n }\r\n }\r\n }\r\n }\r\n }\r\n System.out.println(\"insertarTablaRelacionadas: \\n\" + strIng);\r\n stmLoc.executeUpdate(strIng);\r\n \r\n stmLoc.close();\r\n stmLoc=null;\r\n }\r\n }\r\n catch (SQLException Evt) {\r\n blnRes = false;\r\n System.err.println(\"ERROR \" + Evt.toString());\r\n objUti.mostrarMsgErr_F1(jifCnt, Evt);\r\n } \r\n catch (Exception Evt) {\r\n blnRes = false;\r\n System.err.println(\"ERROR \" + Evt.toString());\r\n objUti.mostrarMsgErr_F1(jifCnt, Evt);\r\n }\r\n return blnRes;\r\n }", "public String validarResponsableYaAsignado (DTOResponsable dtoe) throws MareException { \n UtilidadesLog.info(\"DAOZON.validarResponsableYaAsignado(DTOResponsable dtoe): Entrada\");\n StringBuffer consulta = new StringBuffer();\n Vector parametros = new Vector();\n RecordSet rs = new RecordSet();\n \n String asignado = null;\n String unidadAdministrativa = null;\n Long marca = null;\n Long canal = null;\n Long pais = null;\n\n //Recuperamos el pais, marca y canal de la Unidad Administrativa \n BelcorpService bs = UtilidadesEJB.getBelcorpService();\n\n /*if (dtoe.getIndUA().intValue() == 1) { \n consulta.append(\" SELECT pais_oid_pais PAIS, marc_oid_marc MARCA, cana_oid_cana canal \");\n consulta.append(\" FROM zon_sub_geren_venta \");\n consulta.append(\" WHERE oid_subg_vent = ? \");\n unidadAdministrativa = \"Subgerencia\";\n }*/\n if (dtoe.getIndUA().intValue() == 2){\n consulta.append(\" SELECT pais_oid_pais PAIS, marc_oid_marc MARCA, cana_oid_cana canal \");\n consulta.append(\" FROM zon_regio \");\n consulta.append(\" WHERE oid_regi = ? \");\n unidadAdministrativa = \"Region\";\n }\n if (dtoe.getIndUA().intValue() == 3){\n consulta.append(\" SELECT pais_oid_pais PAIS, marc_oid_marc MARCA, cana_oid_cana canal \");\n consulta.append(\" FROM zon_zona \");\n consulta.append(\" WHERE oid_zona = ? \");\n unidadAdministrativa = \"Zona\";\n }\n /*if (dtoe.getIndUA().intValue() == 4){\n consulta.append(\" SELECT zon.pais_oid_pais PAIS, zon.marc_oid_marc MARCA, zon.cana_oid_cana canal \");\n consulta.append(\" FROM zon_zona zon, zon_secci sec \");\n consulta.append(\" WHERE sec.zzon_oid_zona = zon.oid_zona \"); \n consulta.append(\" AND sec.oid_secc = ? \");\n unidadAdministrativa = \"Seccion\"; \n }*/\n parametros.add(dtoe.getOidUA());\n \n try {\n rs = bs.dbService.executePreparedQuery(consulta.toString(), parametros);\n UtilidadesLog.debug(\"rs: \" + rs);\n } catch (Exception e) {\n codigoError = CodigosError.ERROR_DE_ACCESO_A_BASE_DE_DATOS;\n throw new MareException(e, UtilidadesError.armarCodigoError(codigoError));\n }\n\n if (rs.esVacio()) {\n UtilidadesLog.debug(\"****DAOZON.validarResponsableYaAsignado: No existe Unidad Administrativa \");\t\t\t\t\n String sCodigoError = CodigosError.ERROR_DE_PETICION_DE_DATOS_NO_EXISTENTE;\n throw new MareException(new Exception(), UtilidadesError.armarCodigoError(sCodigoError));\n } else {\n pais = new Long(((BigDecimal)rs.getValueAt(0,\"PAIS\")).longValue());\n marca = new Long(((BigDecimal)rs.getValueAt(0,\"MARCA\")).longValue());\n canal = new Long(((BigDecimal)rs.getValueAt(0,\"CANAL\")).longValue());\n }\n\n //Buscamos si el cliente es responsable en otra unidad administrativa\n //para el pais, marca y canal de la unidad administrativa a asignar\n parametros = new Vector(); \n consulta = new StringBuffer();\n /*consulta.append(\" SELECT 'SubGerencia: ' || zon_sub_geren_venta.des_subg_vent DESCUNIDADADMIN \");\n consulta.append(\" FROM zon_sub_geren_venta, mae_clien \");\n consulta.append(\" WHERE mae_clien.oid_clie = zon_sub_geren_venta.clie_oid_clie \"); \n consulta.append(\" AND mae_clien.oid_clie = ? \");\n parametros.add(dtoe.getOidResponsable());\n consulta.append(\" AND zon_sub_geren_venta.pais_oid_pais = ? \");\n parametros.add(pais);\n consulta.append(\" AND zon_sub_geren_venta.marc_oid_marc = ? \");\n parametros.add(marca);\n consulta.append(\" AND zon_sub_geren_venta.cana_oid_cana = ? \");\n parametros.add(canal);\n consulta.append(\" AND zon_sub_geren_venta.ind_borr = 0 \");\n\n consulta.append(\" UNION \");*/\n \n consulta.append(\" SELECT 'Region: ' || zon_regio.des_regi DESCUNIDADADMIN \");\n consulta.append(\" FROM mae_clien, zon_sub_geren_venta, zon_regio \");\n consulta.append(\" WHERE mae_clien.oid_clie = zon_regio.clie_oid_clie \");\n consulta.append(\" AND mae_clien.oid_clie = ? \");\n parametros.add(dtoe.getOidResponsable());\n consulta.append(\" AND zon_regio.zsgv_oid_subg_vent = zon_sub_geren_venta.oid_subg_vent \");\n consulta.append(\" AND zon_sub_geren_venta.pais_oid_pais = ? \");\n parametros.add(pais);\n consulta.append(\" AND zon_sub_geren_venta.marc_oid_marc = ? \");\n parametros.add(marca);\n consulta.append(\" AND zon_sub_geren_venta.cana_oid_cana = ? \");\n parametros.add(canal);\n consulta.append(\" AND zon_sub_geren_venta.ind_borr = 0 \");\n consulta.append(\" AND zon_regio.ind_borr = 0 \");\n \n consulta.append(\" UNION \");\n \n consulta.append(\" SELECT 'Zona: ' || zon_zona.des_zona DESCUNIDADADMIN \");\n consulta.append(\" FROM zon_sub_geren_venta, zon_regio, zon_zona, mae_clien \");\n consulta.append(\" WHERE zon_zona.clie_oid_clie = mae_clien.oid_clie \");\n consulta.append(\" AND mae_clien.oid_clie = ? \");\n parametros.add(dtoe.getOidResponsable());\n consulta.append(\" AND zon_sub_geren_venta.pais_oid_pais = ? \");\n parametros.add(pais);\n consulta.append(\" AND zon_sub_geren_venta.marc_oid_marc = ? \");\n parametros.add(marca);\n consulta.append(\" AND zon_sub_geren_venta.cana_oid_cana = ? \");\n parametros.add(canal);\n consulta.append(\" AND zon_regio.zsgv_oid_subg_vent = zon_sub_geren_venta.oid_subg_vent \");\n consulta.append(\" AND zon_zona.zorg_oid_regi = zon_regio.oid_regi \");\n consulta.append(\" AND zon_zona.ind_borr = 0 \");\n consulta.append(\" AND zon_sub_geren_venta.ind_borr = 0 \");\n consulta.append(\" AND zon_regio.ind_borr = 0 \");\n \n /*consulta.append(\" UNION \");\n \n consulta.append(\" SELECT 'Seccion: ' || zon_secci.des_secci DESCUNIDADADMIN \");\n consulta.append(\" FROM zon_sub_geren_venta, zon_regio, \");\n consulta.append(\" zon_zona, zon_secci, mae_clien \");\n consulta.append(\" WHERE zon_secci.clie_oid_clie = mae_clien.oid_clie \");\n consulta.append(\" AND mae_clien.oid_clie = ? \");\n parametros.add(dtoe.getOidResponsable());\n consulta.append(\" AND zon_sub_geren_venta.pais_oid_pais = ? \");\n parametros.add(pais);\n consulta.append(\" AND zon_sub_geren_venta.marc_oid_marc = ? \");\n parametros.add(marca);\n consulta.append(\" AND zon_sub_geren_venta.cana_oid_cana = ? \");\n parametros.add(canal);\n consulta.append(\" AND zon_regio.zsgv_oid_subg_vent = zon_sub_geren_venta.oid_subg_vent \");\n consulta.append(\" AND zon_zona.zorg_oid_regi = zon_regio.oid_regi \");\n consulta.append(\" AND zon_secci.zzon_oid_zona = zon_zona.oid_zona \"); \n consulta.append(\" AND zon_secci.ind_borr = 0 \");\n consulta.append(\" AND zon_zona.ind_borr = 0 \");\n consulta.append(\" AND zon_sub_geren_venta.ind_borr = 0 \");\n consulta.append(\" AND zon_regio.ind_borr = 0 \");*/\n\n try {\n rs = bs.dbService.executePreparedQuery(consulta.toString(), parametros);\n UtilidadesLog.debug(\"rs: \" + rs);\n } catch (Exception e) {\n codigoError = CodigosError.ERROR_DE_ACCESO_A_BASE_DE_DATOS;\n throw new MareException(e, UtilidadesError.armarCodigoError(codigoError));\n }\n\n if (rs.esVacio()) {\n UtilidadesLog.debug(\"****DAOZON.validarResponsableYaAsignado: No hay datos \");\t\t\t\t\n }\n else {\n UtilidadesLog.debug(\"****DAOZON.validarResponsableYaAsignado: se encontro al menos un cliente \");\t\t\t\t\n asignado = rs.getValueAt(0,\"DESCUNIDADADMIN\").toString();\n }\n \n UtilidadesLog.info(\"DAOZON.validarResponsableYaAsignado(DTOResponsable dtoe): Salida\"); \n \n return asignado;\n }", "public Produto consultarProduto(Produto produto) {\r\n ConexaoBDJavaDB conexaoBD = new ConexaoBDJavaDB(\"routeexpress\");\r\n Connection conn = null;\r\n PreparedStatement stmt = null;\r\n ResultSet rs = null;\r\n Produto cerveja = null;\r\n String sql = \"SELECT TBL_CERVEJARIA.ID_CERVEJARIA, TBL_CERVEJARIA.CERVEJARIA, TBL_CERVEJARIA.PAIS, \"\r\n + \"TBL_CERVEJA.ID_CERVEJA, TBL_CERVEJA.ID_CERVEJARIA AS \\\"FK_CERVEJARIA\\\", \"\r\n + \"TBL_CERVEJA.ROTULO, TBL_CERVEJA.PRECO, TBL_CERVEJA.VOLUME, TBL_CERVEJA.TEOR, TBL_CERVEJA.COR, TBL_CERVEJA.TEMPERATURA, \"\r\n + \"TBL_CERVEJA.FAMILIA_E_ESTILO, TBL_CERVEJA.DESCRICAO, TBL_CERVEJA.SABOR, TBL_CERVEJA.IMAGEM_1, TBL_CERVEJA.IMAGEM_2, TBL_CERVEJA.IMAGEM_3 \"\r\n + \"FROM TBL_CERVEJARIA \"\r\n + \"INNER JOIN TBL_CERVEJA \"\r\n + \"ON TBL_CERVEJARIA.ID_CERVEJARIA = TBL_CERVEJA.ID_CERVEJARIA \"\r\n + \"WHERE ID_CERVEJA = ?\";\r\n try {\r\n conn = conexaoBD.obterConexao();\r\n stmt = conn.prepareStatement(sql);\r\n stmt.setInt(1, produto.getIdCerveja());\r\n rs = stmt.executeQuery();\r\n if (rs.next()) {\r\n cerveja = new Produto();\r\n cerveja.setIdCervejaria(rs.getInt(\"ID_CERVEJARIA\"));\r\n cerveja.setCervejaria(rs.getString(\"CERVEJARIA\"));\r\n cerveja.setPais(rs.getString(\"PAIS\"));\r\n cerveja.setIdCerveja(rs.getInt(\"ID_CERVEJA\"));\r\n cerveja.setIdFkCervajaria(rs.getInt(\"FK_CERVEJARIA\"));\r\n cerveja.setRotulo(rs.getString(\"ROTULO\"));\r\n cerveja.setPreco(rs.getString(\"PRECO\"));\r\n cerveja.setVolume(rs.getString(\"VOLUME\"));\r\n cerveja.setTeor(rs.getString(\"TEOR\"));\r\n cerveja.setCor(rs.getString(\"COR\"));\r\n cerveja.setTemperatura(rs.getString(\"TEMPERATURA\"));\r\n cerveja.setFamiliaEEstilo(rs.getString(\"FAMILIA_E_ESTILO\"));\r\n cerveja.setDescricao(rs.getString(\"DESCRICAO\"));\r\n cerveja.setSabor(rs.getString(\"SABOR\"));\r\n cerveja.setImagem1(rs.getString(\"IMAGEM_1\"));\r\n cerveja.setImagem2(rs.getString(\"IMAGEM_2\"));\r\n cerveja.setImagem3(rs.getString(\"IMAGEM_3\"));\r\n } else {\r\n return cerveja;\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (ClassNotFoundException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n if (conn != null) {\r\n try {\r\n conn.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (stmt != null) {\r\n try {\r\n stmt.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (rs != null) {\r\n try {\r\n rs.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }\r\n return cerveja;\r\n }", "public List<Object[]> getRetencionesAnuladas(int mes, int anio, int idOrganizacion, Sucursal sucursalFP, Sucursal sucursalRetencion, PuntoDeVenta puntoVentaRetencion, String orden, TipoComprobanteSRI tipoComprobante)\r\n/* 125: */ {\r\n/* 126:175 */ StringBuilder sql = new StringBuilder();\r\n/* 127: */ \r\n/* 128:177 */ sql.append(\" SELECT a.fechaEmisionDocumento, f.fechaRegistro, f.fechaEmision, CONCAT(f.establecimiento,'-',f.puntoEmision,'-',f.numero), f.identificacionProveedor, \");\r\n/* 129: */ \r\n/* 130:179 */ sql.append(\" \\t'', f.montoIva*0, f.montoIva*0, f.montoIva*0, '', '', \");\r\n/* 131: */ \r\n/* 132:181 */ sql.append(\" \\tCONCAT(a.establecimiento,'-',a.puntoEmision,'-',a.numeroDesde), f.montoIva*0, f.montoIva*0, f.montoIva*0, f.nombreProveedor, \");\r\n/* 133: */ \r\n/* 134:183 */ sql.append(\"\\tf.montoIva*0, f.montoIva*0, '', a.autorizacion, f.fechaRegistro, f.autorizacion, '', 'ANULADO', f.idFacturaProveedorSRI,'' \");\r\n/* 135:184 */ sql.append(\" FROM AnuladoSRI a, FacturaProveedorSRI f \");\r\n/* 136:185 */ sql.append(\" WHERE a.documentoRelacionado = f.idFacturaProveedorSRI \");\r\n/* 137:186 */ sql.append(\" AND a.tipoComprobanteSRI = :tipoComprobante \");\r\n/* 138:187 */ sql.append(\" AND a.anio = :anio AND a.mes = :mes \");\r\n/* 139:188 */ sql.append(\" AND a.idOrganizacion = :idOrganizacion \");\r\n/* 140:189 */ if (sucursalFP != null) {\r\n/* 141:190 */ sql.append(\" AND f.idSucursal = :idSucursal \");\r\n/* 142: */ }\r\n/* 143:192 */ if (sucursalRetencion != null) {\r\n/* 144:193 */ sql.append(\" AND a.establecimiento = :sucursalRetencion \");\r\n/* 145: */ }\r\n/* 146:195 */ if (puntoVentaRetencion != null) {\r\n/* 147:196 */ sql.append(\" AND a.puntoEmision = :puntoVentaRetencion \");\r\n/* 148: */ }\r\n/* 149:198 */ Query query = this.em.createQuery(sql.toString());\r\n/* 150:199 */ query.setParameter(\"mes\", Integer.valueOf(mes));\r\n/* 151:200 */ query.setParameter(\"anio\", Integer.valueOf(anio));\r\n/* 152:201 */ query.setParameter(\"idOrganizacion\", Integer.valueOf(idOrganizacion));\r\n/* 153:202 */ query.setParameter(\"tipoComprobante\", tipoComprobante);\r\n/* 154:203 */ if (sucursalFP != null) {\r\n/* 155:204 */ query.setParameter(\"idSucursal\", Integer.valueOf(sucursalFP.getId()));\r\n/* 156: */ }\r\n/* 157:206 */ if (sucursalRetencion != null) {\r\n/* 158:207 */ query.setParameter(\"sucursalRetencion\", sucursalRetencion.getCodigo());\r\n/* 159: */ }\r\n/* 160:209 */ if (puntoVentaRetencion != null) {\r\n/* 161:210 */ query.setParameter(\"puntoVentaRetencion\", puntoVentaRetencion.getCodigo());\r\n/* 162: */ }\r\n/* 163:213 */ return query.getResultList();\r\n/* 164: */ }", "@SuppressWarnings(\"unchecked\")\n public void consultarCoactivosXLS() throws CirculemosNegocioException {\n\n // consulta la tabla temporal de los 6000 coactivos\n StringBuilder sql = new StringBuilder();\n\n sql.append(\"select [TIPO DOC], [NUMERO DE IDENTIFICACIÓN], [valor multas], [titulo valor], proceso \");\n sql.append(\"from coactivos_xls \");\n sql.append(\"where id_tramite is null and numero_axis is null AND archivo is not null \");\n sql.append(\"AND [titulo valor] IN ('2186721','2187250','2187580','2186845')\");\n\n Query query = em.createNativeQuery(sql.toString());\n\n List<Object[]> listaResultados = Utilidades.safeList(query.getResultList());\n\n Date fechaCoactivo = UtilFecha.buildCalendar().getTime();\n CoactivoDTO coactivoDTOs;\n TipoIdentificacionPersonaDTO tipoIdentificacion;\n List<ObligacionCoactivoDTO> obligacionesCoactivoDTO;\n PersonaDTO personaDTO;\n ProcesoDTO proceso;\n // persiste los resultados en coactivoDTO\n for (Object[] coactivo : listaResultados) {\n coactivoDTOs = new CoactivoDTO();\n // persiste el tipo de indetificacion en TipoIdentificacionPersonaDTO\n personaDTO = new PersonaDTO();\n proceso = new ProcesoDTO();\n tipoIdentificacion = new TipoIdentificacionPersonaDTO();\n obligacionesCoactivoDTO = new ArrayList<>();\n\n tipoIdentificacion.setCodigo((String) coactivo[0]);\n personaDTO.setTipoIdentificacion(tipoIdentificacion);\n coactivoDTOs.setPersona(personaDTO);\n coactivoDTOs.getPersona().setNumeroIdentificacion((String) coactivo[1]);\n\n proceso.setFechaInicio(fechaCoactivo);\n coactivoDTOs.setProceso(proceso);\n coactivoDTOs.setValorTotalObligaciones(BigDecimal\n .valueOf(Double.valueOf(coactivo[2].toString().replaceAll(\"\\\\.\", \"\").replaceAll(\",\", \".\"))));\n coactivoDTOs.setValorTotalCostasProcesales(\n coactivoDTOs.getValorTotalObligaciones().multiply(BigDecimal.valueOf(0.05)));\n coactivoDTOs.getProceso().setObservacion(\"COACTIVO\");\n String[] numeroFactura = coactivo[3].toString().split(\",\");\n // separa los numeros de factura cuando viene mas de uno.\n for (String nFactura : numeroFactura) {\n // consulta por numero de factura el el saldo a capital por cada factura\n sql = new StringBuilder();\n sql.append(\"select nombre, saldo_capital, saldo_interes \");\n sql.append(\"from cartera_coactivos_xls \");\n sql.append(\"where nombre = :nFactura\");\n\n Query quer = em.createNativeQuery(sql.toString());\n\n quer.setParameter(\"nFactura\", nFactura);\n\n List<Object[]> result = Utilidades.safeList(quer.getResultList());\n // persiste las obligaciones consultadas y las inserta en ObligacionCoactivoDTO\n ObligacionCoactivoDTO obligaciones;\n for (Object[] obligacion : result) {\n obligaciones = new ObligacionCoactivoDTO();\n obligaciones.setNumeroObligacion((String) obligacion[0]);\n obligaciones.setValorObligacion(BigDecimal.valueOf(\n Double.valueOf(obligacion[1].toString().replaceAll(\"\\\\.\", \"\").replaceAll(\",\", \".\"))));\n obligaciones.setValorInteresMoratorios(BigDecimal.valueOf(\n Double.valueOf(obligacion[2].toString().replaceAll(\"\\\\.\", \"\").replaceAll(\",\", \".\"))));\n // Adiciona las obligaciones a una lista\n obligacionesCoactivoDTO.add(obligaciones);\n }\n\n }\n coactivoDTOs.setObligacionCoactivos(obligacionesCoactivoDTO);\n try {\n iLCoactivo.registrarCoactivoAxis(coactivoDTOs, coactivo[4].toString());\n } catch (Exception e) {\n logger.error(\"Error al registrar coactivo 6000 :\", e);\n }\n }\n }", "private void executeQuery() {\n }", "@Override\n\tpublic void prepare() throws Exception {\n\t\tsuper.prepare();\n\t\t//setto il titolo:\n\t\tthis.model.setTitolo(\"Quote ordinativo\");\n\t\t\n }", "public List<ReporteComprasVentasRetenciones> getReporteCompras(int mes, int anio, int idOrganizacion)\r\n/* 167: */ {\r\n/* 168:227 */ StringBuffer sql = new StringBuffer();\r\n/* 169: */ \r\n/* 170:229 */ sql.append(\" SELECT new ReporteComprasVentasRetenciones(tc.codigo, tc.nombre, COUNT(tc.codigo), \");\r\n/* 171:230 */ sql.append(\" (CASE WHEN tc.codigo = '04' THEN -SUM(fps.baseImponibleTarifaCero) ELSE SUM(fps.baseImponibleTarifaCero) END), \");\r\n/* 172:231 */ sql.append(\" (CASE WHEN tc.codigo = '04' THEN -SUM(fps.baseImponibleDiferenteCero) ELSE SUM(fps.baseImponibleDiferenteCero) END), \");\r\n/* 173:232 */ sql.append(\" (CASE WHEN tc.codigo = '04' THEN -SUM(fps.baseImponibleNoObjetoIva) ELSE SUM(fps.baseImponibleNoObjetoIva) END), \");\r\n/* 174:233 */ sql.append(\" (CASE WHEN tc.codigo = '04' THEN -SUM(fps.montoIva) ELSE SUM(fps.montoIva) END), 'Compras',ct.codigo,ct.nombre) \");\r\n/* 175:234 */ sql.append(\" FROM FacturaProveedorSRI fps \");\r\n/* 176:235 */ sql.append(\" LEFT OUTER JOIN fps.tipoComprobanteSRI tc \");\r\n/* 177:236 */ sql.append(\" LEFT OUTER JOIN fps.creditoTributarioSRI ct\");\r\n/* 178:237 */ sql.append(\" WHERE MONTH(fps.fechaRegistro) =:mes \");\r\n/* 179:238 */ sql.append(\" AND YEAR(fps.fechaRegistro) =:anio \");\r\n/* 180:239 */ sql.append(\" AND fps.estado!=:estadoAnulado \");\r\n/* 181:240 */ sql.append(\" AND fps.indicadorSaldoInicial!=true \");\r\n/* 182:241 */ sql.append(\" AND fps.idOrganizacion = :idOrganizacion \");\r\n/* 183:242 */ sql.append(\" GROUP BY tc.codigo, tc.nombre,ct.codigo,ct.nombre\");\r\n/* 184:243 */ sql.append(\" ORDER BY tc.codigo, tc.nombre \");\r\n/* 185: */ \r\n/* 186:245 */ Query query = this.em.createQuery(sql.toString());\r\n/* 187:246 */ query.setParameter(\"mes\", Integer.valueOf(mes));\r\n/* 188:247 */ query.setParameter(\"anio\", Integer.valueOf(anio));\r\n/* 189:248 */ query.setParameter(\"estadoAnulado\", Estado.ANULADO);\r\n/* 190:249 */ query.setParameter(\"idOrganizacion\", Integer.valueOf(idOrganizacion));\r\n/* 191: */ \r\n/* 192:251 */ return query.getResultList();\r\n/* 193: */ }", "private void tampil() {\n int row=tabmode.getRowCount();\n for (int i=0;i<row;i++){\n tabmode.removeRow(0);\n }\n try {\n Connection koneksi=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/medica\",\"root\",\"\");\n ResultSet rs=koneksi.createStatement().executeQuery(\"select rawat_inap_bayi.no, pasien_bayi.tgl_lahir, rawat_inap_bayi.tgl_masuk, rawat_inap_bayi.tgl_pulang, rawat_inap_bayi.lama, kamar.nm_kamar, penyakit.nama_penyakit, dokter.nm_dokter, tindakan.nama_tindakan, rawat_inap_bayi.suhu_tubuh, rawat_inap_bayi.resusitas, rawat_inap_bayi.hasil, rawat_inap_bayi.keterangan, rawat_inap_bayi.apgar \"+\n \" from rawat_inap_bayi inner join pasien_bayi on rawat_inap_bayi.no_rm_bayi=pasien_bayi.no_rm_bayi inner join kamar on rawat_inap_bayi.kd_kamar=kamar.kd_kamar inner join penyakit on rawat_inap_bayi.kd_icd = penyakit.kd_icd inner join dokter on rawat_inap_bayi.kd_dokter = dokter.kd_dokter inner join tindakan on rawat_inap_bayi.kode_tindakan = tindakan.kode_tindakan \");\n while(rs.next()){\n String[] data={rs.getString(1),rs.getString(2),rs.getString(3),rs.getString(4),rs.getString(5),rs.getString(6),rs.getString(7),rs.getString(8),rs.getString(9),rs.getString(10),rs.getString(11),rs.getString(12),rs.getString(13),rs.getString(14)};\n tabmode.addRow(data);\n }\n } catch (SQLException ex) {\n System.out.println(ex);\n }\n \n }", "public RecordSet obtenerResumen(DTOResumen dtoe) throws MareException{\n UtilidadesLog.info(\"DAOParametrizacionCOB.obtenerResumen(DTOResumen dtoe): Entrada\");\n \n RecordSet rs = new RecordSet();\n StringBuffer query = new StringBuffer();\n BelcorpService bs;\n try\n { bs = BelcorpService.getInstance();\n }\n catch(MareMiiServiceNotFoundException ex)\n { throw new MareException(ex, UtilidadesError.armarCodigoError(CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE));\n } \n /*query.append(\" SELECT distinct p.IDPRINCIPAL AS OID,CONCAT(p.name,CONCAT(' ',CONCAT(pv.STRINGVALUE,CONCAT(' ',CONCAT(pv2.STRINGVALUE,CONCAT(' ',CONCAT(pv3.STRINGVALUE,CONCAT(' ',pv4.STRINGVALUE)))))))) NOMBRE, \");\n query.append(\" gen.VAL_I18N AS CANAL, \");\n query.append(\" sma.DES_MARC AS MARCA, \"); \n query.append(\" subvta.DES_SUBG_VENT AS SUBGERVENTA, \");\n query.append(\" gen2.VAL_I18N AS REGION, \");\n query.append(\" gen3.VAL_I18N AS ZONA, \");\n query.append(\" secc.DES_SECCI AS SECCION, \");\n query.append(\" gen5.VAL_I18N AS TERRITORIO \");\n query.append(\" FROM v_gen_i18n_sicc gen, \");\n query.append(\" v_gen_i18n_sicc gen2, \");\n query.append(\" v_gen_i18n_sicc gen3, \");\n query.append(\" v_gen_i18n_sicc gen5, \");\n query.append(\" seg_marca sma, \");\n query.append(\" zon_secci secc, \");\n query.append(\" cob_usuar_etapa_cobra_detal cdetal, \");\n query.append(\" zon_sub_geren_venta subvta, \");\n query.append(\" cob_usuar_etapa_cobra_cabec ccabe, \");\n query.append(\" cob_usuar_cobra usucob, \");\n query.append(\" own_mare.principals p, \");\n query.append(\" propertyvalues pv, \");\n query.append(\" propertyvalues pv2, \");\n query.append(\" propertyvalues pv3, \");\n query.append(\" propertyvalues pv4, \");\n query.append(\" own_mare.users u \");\n query.append(\" WHERE cdetal.zsgv_oid_subg_vent = subvta.oid_subg_vent \");\n query.append(\" AND ccabe.oid_usua_etap_cobr = cdetal.oid_usua_etap_cobr_deta \");\n query.append(\" AND secc.oid_secc(+) = cdetal.zscc_oid_secc \");\n query.append(\" AND sma.oid_marc = subvta.marc_oid_marc \");\n query.append(\" AND ccabe.usco_oid_usua_cobr = usucob.oid_usua_cobr \");\n query.append(\" AND gen.val_oid = subvta.cana_oid_cana \");\n query.append(\" AND gen.attr_enti = 'SEG_CANAL' \");\n query.append(\" AND gen.attr_num_atri = 1 \");\n query.append(\" AND gen.idio_oid_idio = '\" + dtoe.getOidIdioma() + \" ' \");\n query.append(\" AND pv.idproperty(+) = 2 \");\n query.append(\" AND pv.idprincipal(+) = p.idprincipal \");\n query.append(\" AND pv2.idproperty(+) = 3 \");\n query.append(\" AND pv2.idprincipal(+) = p.idprincipal \");\n query.append(\" AND pv3.idproperty = 5 \");\n query.append(\" AND pv3.idprincipal = p.idprincipal \");\n query.append(\" AND pv4.idproperty = 6 \");\n query.append(\" AND pv4.idprincipal = p.idprincipal \");\n query.append(\" AND gen2.val_oid(+) = '\" + dtoe.getOidIdioma() + \" ' \");\n query.append(\" AND gen2.attr_enti(+) = 'ZON_REGIO' \");\n query.append(\" AND gen2.attr_num_atri(+) = 1 \");\n query.append(\" AND gen2.idio_oid_idio(+) = '\" + dtoe.getOidIdioma() + \" ' \");\n query.append(\" AND gen3.val_oid(+) = cdetal.zzon_oid_zona \");\n query.append(\" AND gen3.attr_enti(+) = 'ZON_ZONA' \");\n query.append(\" AND gen3.attr_num_atri(+) = 1 \");\n query.append(\" AND gen3.idio_oid_idio(+) = '\" + dtoe.getOidIdioma() + \" ' \");\n query.append(\" AND gen5.val_oid(+) = cdetal.terr_oid_terr \");\n query.append(\" AND gen5.attr_enti(+) = 'ZON_TERRI' \");\n query.append(\" AND gen5.attr_num_atri(+) = 1 \");\n query.append(\" AND gen5.idio_oid_idio(+) = '\" + dtoe.getOidIdioma() + \" ' \");\n query.append(\" AND u.iduser = p.idprincipal \");\n query.append(\" AND p.idprincipal = ccabe.usco_oid_usua_cobr \");\n */\n \n /*query.append(\" SELECT distinct p.IDPRINCIPAL AS OID, \");\n query.append(\" p.name AS USUARIO, \");\n */\n //Se le agega \"p.IDPRINCIPAL,\" segun BELC300017927 \n //query.append(\" SELECT distinct p.name AS USUARIO, \"); \n query.append(\" SELECT distinct p.IDPRINCIPAL, p.name AS USUARIO, \");\n query.append(\" CONCAT(p.name,CONCAT(' ',CONCAT(pv.STRINGVALUE,CONCAT(' ',CONCAT(pv2.STRINGVALUE,CONCAT(' ',CONCAT(pv3.STRINGVALUE,CONCAT(' ',pv4.STRINGVALUE)))))))) NOMBRE, \");\n query.append(\" sma.DES_MARC AS MARCA, \");\n query.append(\" gen.VAL_I18N AS CANAL, \"); \n query.append(\" subvta.DES_SUBG_VENT AS SUBGERVENTA, \");\n query.append(\" regio.DES_REGI AS REGION, \");\n query.append(\" zona.DES_ZONA AS ZONA, \"); \n \t query.append(\" secc.DES_SECCI AS SECCION, \"); \n query.append(\" terri.COD_TERR AS TERRITORIO \");\n query.append(\" FROM v_gen_i18n_sicc gen, \");\n query.append(\" SEG_CANAL canal, \");\n query.append(\" ZON_TERRI terri, \");\n query.append(\" ZON_ZONA zona, \");\n query.append(\" ZON_REGIO regio, \");\n query.append(\" seg_marca sma, \");\n query.append(\" zon_secci secc, \");\n query.append(\" cob_usuar_etapa_cobra_detal cdetal, \");\n query.append(\" zon_sub_geren_venta subvta, \");\n query.append(\" cob_usuar_etapa_cobra_cabec ccabe, \");\n query.append(\" cob_usuar_cobra usucob, \");\n query.append(\" principals p, \");\n query.append(\" propertyvalues pv, \");\n query.append(\" propertyvalues pv2, \");\n query.append(\" propertyvalues pv3, \");\n query.append(\" propertyvalues pv4, \");\n query.append(\" users u \");\n query.append(\" WHERE cdetal.zsgv_oid_subg_vent = subvta.oid_subg_vent \");\n query.append(\" AND ccabe.oid_usua_etap_cobr = cdetal.UECC_OID_USUA_ETAP_COBR \");\n query.append(\" AND secc.oid_secc(+) = cdetal.zscc_oid_secc \");\n query.append(\" AND sma.oid_marc = subvta.marc_oid_marc \");\n query.append(\" AND ccabe.usco_oid_usua_cobr = usucob.oid_usua_cobr \");\n query.append(\" AND gen.val_oid = subvta.cana_oid_cana \");\n query.append(\" AND gen.attr_enti = 'SEG_CANAL' \");\n query.append(\" AND gen.attr_num_atri = 1 \");\n query.append(\" AND gen.idio_oid_idio = '1' \");\n query.append(\" AND pv.idproperty(+) = 2 \");\n query.append(\" AND pv.idprincipal(+) = p.idprincipal \");\n query.append(\" AND pv2.idproperty(+) = 3 \");\n query.append(\" AND pv2.idprincipal(+) = p.idprincipal \");\n query.append(\" AND pv3.idproperty = 5 \");\n query.append(\" AND pv3.idprincipal = p.idprincipal \");\n query.append(\" AND pv4.idproperty = 6 \");\n query.append(\" AND pv4.idprincipal = p.idprincipal \t\t \");\n query.append(\" AND terri.OID_TERR = cdetal.terr_oid_terr\t\t \");\n query.append(\" AND zona.OID_ZONA = cdetal.zzon_oid_zona\t\t \");\n query.append(\" AND regio.OID_REGI = cdetal.ZORG_OID_REGI\t\t \");\n query.append(\" AND u.iduser = p.idprincipal \");\n query.append(\" AND p.idprincipal = usucob.USER_OID_USUA_COBR \");\n \n /* Validaciones */\n if( dtoe.getOidMarca()!= null ){\n query.append(\" AND subvta.MARC_OID_MARC = \" + dtoe.getOidMarca() );\n }\n if( dtoe.getOidCanal() != null){\n query.append(\" AND subvta.CANA_OID_CANA = \" + dtoe.getOidCanal() );\n }\n if( dtoe.getOidSGV() != null ){\n query.append(\" AND subvta.OID_SUBG_VENT = \" + dtoe.getOidSGV() );\n }\n if( dtoe.getOidRegion() != null ){\n query.append(\" AND cdetal.ZORG_OID_REGI = \" + dtoe.getOidRegion() ); \n }\n if( dtoe.getOidZona() != null ){\n query.append(\" AND cdetal.ZZON_OID_ZONA = \" + dtoe.getOidZona() ); \n }\n if( dtoe.getOidSeccion() != null ){\n query.append(\" AND cdetal.ZSCC_OID_SECC = \" + dtoe.getOidSeccion() );\n }\n if( dtoe.getOidTerritorio() != null ){\n query.append(\" AND cdetal.TERR_OID_TERR = \" + dtoe.getOidTerritorio() );\n }\n UtilidadesLog.debug(\"query \" + query.toString() );\n try \n { rs = bs.dbService.executeStaticQuery(query.toString());\n }\n catch (Exception ex) \n { throw new MareException(ex, UtilidadesError.armarCodigoError(CodigosError.ERROR_DE_ACCESO_A_BASE_DE_DATOS));\n }\t\n \n UtilidadesLog.info(\"DAOParametrizacionCOB.obtenerResumen(DTOResumen dtoe): Salida\");\n \n return rs; \n }", "private boolean generarEgresoMercaderiaReservada(java.sql.Connection conExt, int CodEmp,int CodLoc,int CodCot){\n boolean blnRes=false;\n java.sql.Statement stmLoc;\n java.sql.ResultSet rstLoc;\n ArrayList arlResDat, arlResReg;\n try{\n if(conExt!=null){\n stmLoc=conExt.createStatement();\n arlResDat = new ArrayList();\n strSql=\"\";\n strSql+=\" SELECT a1.co_emp, a1.co_loc, a1.co_cot, a2.co_reg, a2.co_itm, a2.co_bod, a2.nd_can, \\n\";\n strSql+=\" CASE WHEN a3.nd_cosUni IS NULL THEN 0 ELSE a3.nd_cosUni END as nd_cosUni,a4.co_seg \";\n strSql+=\" ,a2.tx_nomItm \\n\";\n strSql+=\" FROM tbm_cabCotVen as a1 \\n\";\n strSql+=\" INNER JOIN tbm_detCotVen as a2 ON (a1.co_emp=a2.co_emp AND a1.co_loc=a2.co_loc AND a1.co_cot=a2.co_cot) \\n\";\n strSql+=\" INNER JOIN tbm_inv as a3 ON (a2.co_emp=a3.co_emp AND a2.co_itm=a3.co_itm) \\n\";\n strSql+=\" INNER JOIN tbm_cabSegMovInv as a4 ON (a1.co_emp=a4.co_empRelCabCotVen AND a1.co_loc=a4.co_locRelCabCotVen AND \\n\";\n strSql+=\" a1.co_cot=a4.co_cotRelCabCotVen) \\n\";\n strSql+=\" WHERE a1.co_emp=\"+CodEmp+\" and a1.co_loc=\"+CodLoc+\" and a1.co_cot=\"+CodCot+\" and a3.st_ser='N' \\n\";\n strSql+=\" ORDER BY a1.co_emp, a1.co_loc, a1.co_cot, a2.co_reg \\n\";\n System.out.println(\"generarEgresoMercaderiaReservada \" + strSql);\n rstLoc = stmLoc.executeQuery(strSql);\n while(rstLoc.next()){\n arlResReg = new ArrayList();\n arlResReg.add(INT_ARL_DAT_COD_EMP, rstLoc.getInt(\"co_emp\"));\n arlResReg.add(INT_ARL_DAT_COD_LOC, rstLoc.getInt(\"co_loc\"));\n arlResReg.add(INT_ARL_DAT_COD_BOD_EMP, rstLoc.getInt(\"co_bod\"));\n arlResReg.add(INT_ARL_DAT_COD_ITM_EMP, rstLoc.getInt(\"co_itm\"));\n arlResReg.add(INT_ARL_DAT_CAN, rstLoc.getDouble(\"nd_can\"));\n arlResReg.add(INT_ARL_DAT_COS_UNI, rstLoc.getDouble(\"nd_cosUni\"));\n arlResReg.add(INT_ARL_DAT_COD_SEG, rstLoc.getInt(\"co_seg\"));\n arlResReg.add(INT_ARL_DAT_COD_REG, rstLoc.getInt(\"co_reg\"));\n arlResReg.add(INT_ARL_DAT_NOM_ITM, rstLoc.getString(\"tx_nomItm\"));\n arlResDat.add(arlResReg);\n }\n rstLoc.close();\n rstLoc=null;\n stmLoc.close();\n stmLoc=null;\n if(!arlResDat.isEmpty()){\n ZafGenDocIngEgrInvRes objGenDocIngEgrInvRes = new ZafGenDocIngEgrInvRes(objParSis,this);\n if(objGenDocIngEgrInvRes.GenerarDocumentoIngresoEgresoReservas(conExt, datFecAux, arlResDat, 1)){\n blnRes=true;\n }\n }\n }\n }\n catch (java.sql.SQLException e) { \n blnRes = false;\n objUti.mostrarMsgErr_F1(this, e); \n }\n catch (Exception Evt) {\n blnRes = false;\n objUti.mostrarMsgErr_F1(this, Evt);\n }\n return blnRes;\n }", "public void llenadoDeTablas() {\n /**\n *\n * creaccion de la tabla de de titulos \n */\n DefaultTableModel modelo = new DefaultTableModel();\n modelo.addColumn(\"ID Bitacora\");\n modelo.addColumn(\"Usuario\");\n modelo.addColumn(\"Fecha\");\n modelo.addColumn(\"Hora\");\n modelo.addColumn(\"Ip\");\n modelo.addColumn(\"host\");\n \n modelo.addColumn(\"Accion\");\n modelo.addColumn(\"Codigo Aplicacion\");\n modelo.addColumn(\"Modulo\");\n /**\n *\n * instaciamiento de las las clases Bitacora y BiracoraDAO\n * intaciamiento de la clases con el llenado de tablas\n */\n BitacoraDao BicDAO = new BitacoraDao();\n List<Bitacora> usuario = BicDAO.select();\n JtProductos1.setModel(modelo);\n String[] dato = new String[9];\n for (int i = 0; i < usuario.size(); i++) {\n dato[0] = usuario.get(i).getId_Bitacora();\n dato[1] = usuario.get(i).getId_Usuario();\n dato[2] = usuario.get(i).getFecha();\n dato[3] = usuario.get(i).getHora();\n dato[4] = usuario.get(i).getHost();\n dato[5] = usuario.get(i).getIp();\n dato[6] = usuario.get(i).getAccion();\n dato[7] = usuario.get(i).getCodigoAplicacion();\n dato[8] = usuario.get(i).getModulo();\n \n //System.out.println(\"vendedor:\" + vendedores);\n modelo.addRow(dato);\n }}", "public boolean insertarNuevoClienteCA(Cliente cliente, List<Cuenta> listaCuentas) {\n String queryDividido1 = \"INSERT INTO Usuario(Codigo, Nombre, DPI, Direccion, Sexo, Password, Tipo_Usuario) \"\n + \"VALUES(?,?,?,?,?,aes_encrypt(?,'AES'),?)\";\n\n String queryDividido2 = \"INSERT INTO Cliente(Usuario_Codigo, Nombre, Nacimiento, DPI_Escaneado, Estado) \"\n + \"VALUES(?,?,?,?,?)\";\n \n String queryDividido3 = \"INSERT INTO Cuenta(No_Cuenta, Fecha_Creacion, Saldo_Cuenta, Cliente_Usuario_Codigo) \"\n + \"VALUES(?,?,?,?)\";\n int codigoCliente = cliente.getCodigo();\n try {\n\n PreparedStatement enviarDividido1 = Conexion.conexion.prepareStatement(queryDividido1);\n\n //Envio de los Datos Principales del cliente a la Tabla Usuario\n enviarDividido1.setInt(1, cliente.getCodigo());\n enviarDividido1.setString(2, cliente.getNombre());\n enviarDividido1.setString(3, cliente.getDPI());\n enviarDividido1.setString(4, cliente.getDireccion());\n enviarDividido1.setString(5, cliente.getSexo());\n enviarDividido1.setString(6, cliente.getPassword());\n enviarDividido1.setInt(7, 3);\n enviarDividido1.executeUpdate();\n\n //Envia los Datos Complementarios del Usuario a la tabla cliente\n PreparedStatement enviarDividido2 = Conexion.conexion.prepareStatement(queryDividido2);\n enviarDividido2.setInt(1, cliente.getCodigo());\n enviarDividido2.setString(2, cliente.getNombre());\n enviarDividido2.setString(3, cliente.getNacimiento());\n enviarDividido2.setBlob(4, cliente.getDPIEscaneado());\n enviarDividido2.setBoolean(5, cliente.isEstado());\n enviarDividido2.executeUpdate();\n \n //Envia los Datos de la Cuenta Adjudicada al Cliente\n PreparedStatement enviarDividido3 = Conexion.conexion.prepareStatement(queryDividido3);\n\n //Envio de los Datos Principales de una Cuenta a la Tabla Cuenta, perteneciente a un cliente en Especifico\n //Considerando que el cliente puede tener mas de una cuenta\n for (Cuenta cuenta : listaCuentas) {\n \n enviarDividido3.setInt(1, cuenta.getNoCuenta());\n enviarDividido3.setString(2, cuenta.getFechaCreacion());\n enviarDividido3.setDouble(3, cuenta.getSaldo());\n enviarDividido3.setInt(4, codigoCliente);\n enviarDividido3.executeUpdate();\n }\n \n return true;\n\n } catch (SQLException ex) {\n ex.printStackTrace(System.out);\n return false;\n }\n\n }", "public void obrir() throws SQLException {\n\t\tbdClimb = dbHelper.getWritableDatabase();\n\t}", "public void prepararDados() {\n\t\tatribuiPrimeiroAnoCasoAnoEstejaNulo();\n\t\t\n\t\tsalvarOuAtualizar(alunosMilitarPraca);\n\t\tsalvarOuAtualizar(alunosMilitarOficial);\n\t\t\n\t\tinit();\n\t\thabilitaBotao=false;\n\t}", "public void CadastrarPassageiro(Connection con, List<Bilhetes> temporaria) {\n\t\t\n\t\ttry {\n\t\t\n\t\t\tstmt = con.prepareStatement(\"Select cpf from passageiro where cpf = ?\");\n\t\t\t\n\t\t\tstmt.setString(1, temporaria.get(0).getBilhete().get(0).getCpf() );\n\t\t\tstmt.execute();\n\t\t\t\n\t\t\trs=stmt.getResultSet();\n\t\t\t\n\t\t\tif(rs.next())\n\t\t\t{\n\t\t\t\t\n\t\t\t\tJOptionPane.showMessageDialog(null, \"ERRO: CPF JA CADASTRADO\", \"Erro CADASTRO\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tstmt = con.prepareStatement(\n\t\t\t\t\t\" insert into BILHETES (Destino,Origem,Hpartida, Hembarque,Poltrona) values(?,?,?,?,NULL)\");\n\n\t\t\tstmt.setString(1, temporaria.get(0).getDestino());\n\t\t\tstmt.setString(2, temporaria.get(0).getOrigem());\n\t\t\tstmt.setString(3, temporaria.get(0).getHora_partida());\n\t\t\tstmt.setString(4, temporaria.get(0).getHora_embarque());\n\n\t\t\tstmt.execute();\n\n\t\t\tstmt = con.prepareStatement(\"select IDBILHETE FROM BILHETES WHERE poltrona is null \");\n\n\t\t\tstmt.execute();\n\n\t\t\trs = stmt.getResultSet();\n\n\t\t\twhile (rs.next()) {\n\t\t\t\tint idbilhete = rs.getInt(1);\n\t\t\t\ttemporaria.get(0).setIdbilhete(idbilhete);\n\t\t\t}\n\n\t\t\tstmt = con.prepareStatement(\"insert into Passageiro(nome,cpf,ID_BILHETE) values(?,?,?)\");\n\n\t\t\tstmt.setString(1, temporaria.get(0).getBilhete().get(0).getNome());\n\t\t\tstmt.setString(2, temporaria.get(0).getBilhete().get(0).getCpf());\n\t\t\tstmt.setInt(3, temporaria.get(0).getIdbilhete());\n\n\t\t\tstmt.execute();\n\n\t\t\t// VOLTANDO A CADEIRA PARA 0, PARA EVITAR ERRO NOS PROXIMOS USUARIOS CADASTRADOS\n\t\t\tstmt = con.prepareStatement(\"UPDATE BILHETES SET POLTRONA = 0 WHERE POLTRONA IS NULL\");\n\n\t\t\tstmt.execute();\n\n\t\t\t// Teste\n\n\t\t\tString nome = temporaria.get(0).getBilhete().get(0).getNome();\n\t\t\tString cpf = temporaria.get(0).getBilhete().get(0).getCpf();\n\n\t\t\tString destino = temporaria.get(0).getDestino();\n\t\t\tString Origem = temporaria.get(0).getOrigem();\n\n\t\t\tString hora_EMBARQUE = temporaria.get(0).getHora_embarque();\n\n\t\t\tString horasaida = temporaria.get(0).getHora_partida();\n\n\t\t\t// Instanciando valores\n\t\t\tBilhetes passagem = new Bilhetes(temporaria.get(0).getIdbilhete(), Origem, destino, hora_EMBARQUE,\n\t\t\t\t\thorasaida, null, 0);\n\n\t\t\tpassagem.adicionar(new Passageiro(nome, cpf));\n\n\t\t\tpassageiro.add(passagem);\n\n\t\t\t// Fim do teste antes do filme\n\n\t\t\tJOptionPane.showMessageDialog(null, \"Passageiro Cadastrado Com sucesso\");\n\n\t\t\tJOptionPane.showMessageDialog(null,\"CODIGO LOCALIZADOR DO BILHETE: \" + temporaria.get(0).getIdbilhete(),\" NÃO PERCA\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\n\t\n\t\t\t\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tJOptionPane.showMessageDialog(null, \"ERRO: CPF JA CADASTRADO\", \"Erro CADASTRO\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\n\n\t\t}\n\n\t}", "public void executar() {\n\t\tSystem.out.println(dao.getListaPorNome(\"abacatão\"));\n\t}", "private PreparedStatement prepareClientes(Connection conn, String data) throws ParseException, SQLException\n\t{\n\t\t\n\t\tPreparedStatement result = null;\n\t\t\n\t\t//Parametros 1 e 6: Data de execucao atual\n\t\tSimpleDateFormat conversorData = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\tDate dataExecucao = conversorData.parse(data);\n\t\t//Parametro 2: Ano e mes da execucao\n\t\tSimpleDateFormat conversorDatMes = new SimpleDateFormat(\"yyMM\");\n\t\tString datMes = conversorDatMes.format(mesAnterior(dataExecucao));\n\t\t//Parametro 3: Tipo de transacao da promocao PulaPula\n\t\tString tipoTransacao = TIPO_TRANSACAO_PULA_PULA;\n\t\t//Parametros 4 e 7: Primeiro dia do mes da execucao\n\t\tDate dataInicioMesExecucao = getPrimeiroDiaMes(dataExecucao);\n\t\t//Parametro 5: Primeiro dia do mes posterior ao da execucao\n\t\tDate dataInicioProxMes = getPrimeiroDiaMes(proximoMes(dataExecucao));\n\t\t//Parametro 8: Ultimo dia do mes da execucao\n\t\tDate dataFimMesExecucao = getUltimoDiaMes(dataExecucao);\n\n\t\tString sqlClientes = getQuerySelecaoClientes();\n\t\tresult = conn.prepareStatement(sqlClientes);\n\t\tresult.setDate (1, new java.sql.Date(dataExecucao.getTime()));\n\t\tresult.setString(2, datMes);\n\t\tresult.setString(3, tipoTransacao);\n\t\tresult.setDate (4, new java.sql.Date(dataInicioMesExecucao.getTime()));\n\t\tresult.setDate (5, new java.sql.Date(dataInicioProxMes.getTime()));\n\t\tresult.setDate (6, new java.sql.Date(dataExecucao.getTime()));\n\t\tresult.setDate (7, new java.sql.Date(dataInicioMesExecucao.getTime()));\n\t\tresult.setDate (8, new java.sql.Date(dataFimMesExecucao.getTime()));\n\t\t\n\t\treturn result;\n\t}", "private String getConsulta(int indice) {\r\n\t\tString sql = \"\";\r\n\t\tStringBuffer variables = new StringBuffer();\r\n\t\tinParams = ((TxParams)todo.get(indice)).getParams().entrada;\r\n\t\toutParams = ((TxParams)todo.get(indice)).getParams().salida;\r\n\t\tif ((inParams == null || inParams.size() == 0) && (outParams == null || outParams.size() == 0))\r\n\t\t\tsql = \"{call \" + consultas[indice] + \"}\";\r\n\t\telse {\r\n\t\t\t//Por cada parametro de entrada corresponde un ?\r\n\t\t\t//Ojo que tambien hay que considerar los de salida si es necesario\r\n\t\t\t//pero no esta cubierto en esta primera etapa\r\n\t\t\tif (inParams != null) {\r\n\t\t\t\tfor (int i = 0; i < inParams.size(); i++)\r\n\t\t\t\t\tvariables.append(\"?,\");\r\n\t\t\t}\r\n\t\t\tif (outParams != null) {\r\n\t\t\t\tfor (int i = 0; i < outParams.size(); i++)\r\n\t\t\t\t\tvariables.append(\"?,\");\r\n\t\t\t}\r\n\t\t\tString listaVars = variables.toString();\r\n\t\t\tlistaVars = listaVars.substring(0, listaVars.length() - 1);\r\n\t\t\tsql = \"{call \" + consultas[indice] + \"(\" + listaVars + \")}\";\r\n\t\t}\r\n\t\treturn sql;\r\n\t}", "@Override\n\tpublic DatosEnc obtenerDatos(DatosEnc datos) {\n\t\tConnection con = null;\n\t\tCallableStatement stmt = null;\n//\t\tPreparedStatement ps = null;\n\t\tResultSet rs = null;\n\t\ttry{\n//\t\t\tcon = new ConectarDB().getConnection();\n//\t\t\tString query = \"select * from pv_cotizaciones_det where no_cotizacion = ?\";\n//\t\t\tps = con.prepareStatement(query);\n//\t\t\tps.setString(1, datos.getNoDocumento());\n//\t\t\trs = ps.executeQuery();\n//\t\t\texiste=0;\n//\t\t\twhile(rs.next()){\n//\t\t\t\tif(rs.getString(\"no_cotizacion\") == null){\n//\t\t\t\t\texiste=0;\n//\t\t\t\t}else if(rs.getString(\"no_cotizacion\").equals(datos.getNoDocumento())){\n//\t\t\t\t\texiste=1;\n//\t\t\t\t}\n//\t\t\t}\n//\t\t\tcon.close();\n//\t\t\tps.close();\n//\t\t\trs.close();\n//\t\t\tif(existe==0){\n\t\t\t\tcon = new ConectarDB().getConnection();\n\t\t\t\tstmt = con.prepareCall(\"{call stp_UDPV_InUp_Mov_Enc(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}\");\n\t\t\t\tstmt.setString(1, datos.getCodigoCliente());\n\t\t\t\tstmt.setString(2, datos.getNit());\n\t\t\t\tstmt.setString(3, datos.getNombreCliente());\n\t\t\t\tstmt.setString(4, datos.getDirecFactura());\n\t\t\t\tstmt.setString(5, datos.getTel());\n\t\t\t\tstmt.setString(6, datos.getTarjeta());\n\t\t\t\tstmt.setString(7, datos.getDirecEnvio());\n\t\t\t\tstmt.setString(8, datos.getCodigoVendedor());\n\t\t\t\tstmt.setString(9, datos.getUsername());\n\t\t\t\tstmt.setString(10, datos.getTipoDocumento());\n\t\t\t\tstmt.setString(11, datos.getNoDocumento());\n\t\t\t\tstmt.setString(12, datos.getFechaVence());\n\t\t\t\tstmt.setString(13, datos.getTipoPago());\n\t\t\t\tstmt.setString(14, datos.getTipoCredito());\n\t\t\t\tstmt.setString(15, datos.getAutoriza());\n\t\t\t\tstmt.setString(16, datos.getFechaDocumento());\n\t\t\t\tstmt.setString(17, datos.getCargosEnvio());\n\t\t\t\tstmt.setString(18, datos.getOtrosCargos());\n\t\t\t\tstmt.setString(19, datos.getMontoVenta());\n\t\t\t\tstmt.setString(20, datos.getMontoTotal());\n\t\t\t\tstmt.setString(21, datos.getSerieDev());\n\t\t\t\tstmt.setString(22, datos.getNoDocDev());\n\t\t\t\tstmt.setString(23, datos.getObservaciones());\n\t\t\t\tstmt.setString(24, datos.getTipoNota());\n\t\t\t\tstmt.setString(25, datos.getCaja());\n\t\t\t\tstmt.setString(26, datos.getFechaEntrega());\n\t\t\t\tstmt.setString(27, datos.getCodigoDept());\n\t\t\t\tstmt.setString(28, datos.getCodGen());\n\t\t\t\tstmt.setString(29, datos.getNoConsigna());\n\t\t\t\tstmt.setString(30, datos.getCodMovDev());\n\t\t\t\tstmt.setString(31, datos.getGeneraSolicitud());\n\t\t\t\tstmt.setString(32, datos.getTipoPagoNC());\n\t\t\t\tstmt.setString(33, datos.getTipoCliente());\n\t\t\t\tstmt.setString(34, datos.getCodigoNegocio());\n\t\t\t\tstmt.setString(35, datos.getCantidadDevolver());\n\t\t\t\tstmt.setString(36, datos.getAutorizoDespacho());\n\t\t\t\tstmt.setString(37, datos.getSaldo());\n\t\t\t\trs = stmt.executeQuery();\n\t\t\t\t\n\t\t\t\twhile(rs.next()){\n\t\t\t\t\tif(rs.getString(1)!=null){\n\t\t\t\t\t\tdatos.setSerieEnc(rs.getString(1));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tdatos.setSerieEnc(\"NA\");\n\t\t\t\t\t}\n\t\t\t\t\tdatos.setNoEnc(rs.getString(2));\n//\t\t\t\t\tif(rs.getString(1)!=null){\n//\t\t\t\t\t\tdatos.setSerieEnc(rs.getString(1));\n//\t\t\t\t\t}else{\n//\t\t\t\t\t\tdatos.setSerieEnc(\"NA\");\n//\t\t\t\t\t}\n//\t\t\t\t\tdatos.setNoEnc(rs.getString(2));\n//\t\t\t\t\tdocumento = rs.getInt(2);\n\t\t\t\t}\n\t\t\t\tcon.close();\n\t\t\t\tstmt.close();\n\t\t\t\trs.close();\n//\t\t\t}\n\t\t\t\n\t\t\t\n//\t\t\tcon = new ConectarDB().getConnection();\n//\t\t\tstmt = con.prepareCall(\"{call stp_UDPV_Del_Mov_Det(?,?,?)}\");\n//\t\t\tstmt.setInt(1, Integer.parseInt(datos.getTipoDocumento()));\n//\t\t\tstmt.setString(2, \"\");\n//\t\t\tstmt.setInt(3, documento);\n//\t\t\trs = stmt.executeQuery();\n//\t\t\t\n//\t\t\twhile(rs.next()){\n//\t\t\t\tSystem.out.println(rs.getString(\"limpiado\"));\n//\t\t\t}\n//\t\t\tcon.close();\n//\t\t\tstmt.close();\n//\t\t\trs.close();\n\t\t\t\n//\t\t\tcon = new ConectarDB().getConnection();\n//\t\t\tstmt = con.prepareCall(\"{call stp_udpv_VerificaCotiza(?,?)}\");\n//\t\t\tstmt.setString(1, \"\");\n//\t\t\tstmt.setInt(2, documento);\n//\t\t\trs = stmt.executeQuery();\n//\t\t\t\n//\t\t\twhile(rs.next()){\n//\t\t\t\tSystem.out.println(rs.getString(\"error\"));\n//\t\t\t}\n//\t\t\tcon.close();\n//\t\t\tstmt.close();\n//\t\t\trs.close();\n\t\t\t\n\t\t}catch(SQLException e ){\n\t\t\tSystem.out.println(\"Error Enc: \" + e.getMessage());\n\t\t}\n\t\treturn datos;\n\t}", "public static PreparedStatement crearDeclaracionPreparada(java.sql.Connection conexion, ArrayList<String> datos, String orden){\n try {\n PreparedStatement dp = null;\n dp = conexion.prepareStatement(orden); //asignamos el select que trae el String orden \n int esUnEntero;\n for(int i = 1; i <= datos.size(); i++){//asignamos los valores del arrayList datos en cada campo del select\n String aux = null; \n esUnEntero = isEntero(datos.get(i - 1));//Revisamos si la cadena de datos.get(i) es un entero\n switch(esUnEntero){\n case 1: //Cuando es 1 significa que el dato dentro de datos.get(i) es un entero, por tanto se rellena el campo como tal\n aux = datos.get(i - 1);\n dp.setInt(i, Integer.parseInt(aux)); \n break;\n case 0://Cuando es 0 significa que no es un entero y se rellena el campo como String\n aux = datos.get(i - 1);\n dp.setString(i, aux);\n break;\n } \n }\n return dp;\n } catch (SQLException ex) {\n System.out.println(\"\\n\\n\\n\"+ex); //Imprimimos el error en consola en caso de fallar \n } \n return null;\n }", "public void selecteazaComanda()\n {\n for(String[] comanda : date) {\n if (comanda[0].compareTo(\"insert client\") == 0)\n clientBll.insert(idClient++, comanda[1], comanda[2]);\n else if (comanda[0].compareTo(\"insert product\") == 0)\n {\n Product p = productBll.findProductByName(comanda[1]);\n if(p!=null)//daca produsul exista deja\n productBll.prelucreaza(p.getId(), comanda[1], Float.parseFloat(comanda[2]), Float.parseFloat(comanda[3]));\n else\n productBll.prelucreaza(idProduct++, comanda[1], Float.parseFloat(comanda[2]), Float.parseFloat(comanda[3]));\n\n }\n else if (comanda[0].contains(\"delete client\"))\n clientBll.sterge(comanda[1]);\n else if (comanda[0].contains(\"delete product\"))\n productBll.sterge(comanda[1]);\n else if (comanda[0].compareTo(\"order\")==0)\n order(comanda);\n else if (comanda[0].contains(\"report\"))\n report(comanda[0]);\n }\n }", "private DAOOfferta() {\r\n\t\ttry {\r\n\t\t\tClass.forName(driverName);\r\n\r\n\t\t\tconn = getConnection(usr, pass);\r\n\r\n\t\t\tps = conn.prepareStatement(createQuery);\r\n\r\n\t\t\tps.executeUpdate();\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ConnectionException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\t/*closeResource()*/;\r\n\t\t}\r\n\t}", "public static void main(String[]args) {PostagemDAO pDAO = new PostagemDAO();\n////\t\tPostagem postagem = new Postagem();\n////\t\tString s = \"1999-3-9\";\n////\t\tDate data = Date.valueOf(s);\n////\t\tpostagem.setDescPostagem(\"john johnes\");\n////\t\tpostagem.setDataPostagem(data);\n////\t\tpDAO.inserirPostagem(postagem);\n//\t\t\n////\t\tImagensDAO iDAO = new ImagensDAO();\n////\t\tImagens imagens = new Imagens();\n////\t\t\n////\t\timagens.setTipoImagem((short)2);\n////\t\timagens.setArquivoImagem(\"busato\");\n////\t\tiDAO.inserirImagem(imagens);\n//\t\t\n//\t\tUsuarioDAO uDAO = new UsuarioDAO();\n//\t\tUsuario usuario = new Usuario();\n//\t\t\n////\t\tusuario.setEmail(\"sadasda\");\n////\t\tusuario.setNickname(\"sdasdasae\");\n////\t\tusuario.setSenha(\"12345\");\n////\t\tusuario.setSteamid(31231231);\n////\t\tusuario.setFotoPerfil(\"FOTO\");\n////\t\tuDAO.cadastrar(usuario);\n//\t\t\n//\t\t\n//\t\tComentariosDAO cDAO = new ComentariosDAO();\n//\t\tComentarios comentarios = new Comentarios();\n//\t\t\n//\t\tcomentarios.setCorpoComentario(\"comentario comentado\");\n//\t\tcomentarios.setDataComentario(Date.valueOf(\"2018-03-09\"));\n//\t\tcDAO.inserirComentarios(comentarios);\n//\t\t\n//\t\tSystem.out.println(\"sera que comitou\");\n//\t\t\n\t\t\n\t\tPostagem postagem = new Postagem();\n\t\tpostagem.setDescPostagem(\"Uma formiguinha subindo pela parede\");\n\t\tpostagem.setTituloPostagem(\"Formiguinha\");\n\t\t\n\t\tPostagemDAO poDAO = new PostagemDAO();\n\t\tpostagem = poDAO.inserirPostagem(postagem);\n\t\t\n\t\tSystem.out.println(postagem.getIdPostagem());\n\t\t\n\t}", "private void cargarTipEmp(java.sql.Connection conn, java.sql.ResultSet rstExt) {\r\n Statement stmTipEmp;\r\n ResultSet rstEmp;\r\n String sSql;\r\n try {\r\n if (conn != null) {\r\n stmTipEmp = conn.createStatement();\r\n sSql = \"select b.co_tipper , b.tx_descor , round(a.nd_ivaVen,2) as porIva , bod.co_bod, a1.tx_dir, a1.tx_nom as nombod FROM tbm_emp as a \"\r\n + \" left join tbm_tipper as b on(b.co_emp=a.co_emp and b.co_tipper=a.co_tipper)\"\r\n + \" left join tbr_bodloc as bod on(bod.co_emp=a.co_emp and bod.co_loc=\" + rstExt.getString(\"co_loc\") + \" and bod.st_reg='P') \"\r\n + \" inner join tbm_bod as a1 on (a1.co_emp=bod.co_emp and a1.co_bod=bod.co_bod ) \"\r\n + \" where a.co_emp=\" + rstExt.getString(\"co_emp\");\r\n rstEmp = stmTipEmp.executeQuery(sSql);\r\n if (rstEmp.next()) {\r\n strTipPer_emp = rstEmp.getString(\"tx_descor\");\r\n intCodBodPre = rstEmp.getInt(\"co_bod\");\r\n intCodTipPerEmp = rstEmp.getInt(\"co_tipper\");\r\n strNomBodPtaPar = rstEmp.getString(\"tx_dir\");\r\n strNomBodPrv = rstEmp.getString(\"nombod\");\r\n bldivaEmp = objZafCtaCtb_dat.getPorIvaVen();\r\n dblPorIva = bldivaEmp;\r\n dblPorComSol = objZafCtaCtb_dat.getPorComSol();\r\n }\r\n rstEmp.close();\r\n stmTipEmp.close();\r\n stmTipEmp = null;\r\n rstEmp = null;\r\n }\r\n } \r\n catch (SQLException Evt) {\r\n objUti.mostrarMsgErr_F1(jifCnt, Evt);\r\n System.err.println(\"ERROR \" + Evt.toString());\r\n } \r\n catch (Exception Evt) {\r\n objUti.mostrarMsgErr_F1(jifCnt, Evt);\r\n System.err.println(\"ERROR \" + Evt.toString());\r\n }\r\n }", "public DefaultTableModel cargarDatos () {\r\n DefaultTableModel modelo = new DefaultTableModel(\r\n new String[]{\"ID SALIDA\", \"IDENTIFICACIÓN CAPITÁN\", \"NÚMERO MATRICULA\", \"FECHA\", \"HORA\", \"DESTINO\"}, 0); //Creo un objeto del modelo de la tabla con los titulos cargados\r\n String[] info = new String[6];\r\n String query = \"SELECT * FROM actividad WHERE eliminar = false\";\r\n try {\r\n Statement st = con.createStatement();\r\n ResultSet rs = st.executeQuery(query);\r\n while (rs.next()) { \r\n info[0] = rs.getString(\"id_salida\");\r\n info[1] = rs.getString(\"identificacion_navegate\");\r\n info[2] = rs.getString(\"numero_matricula\");\r\n info[3] = rs.getString(\"fecha\");\r\n info[4] = rs.getString(\"hora\");\r\n info[5] = rs.getString(\"destino\");\r\n Object[] fila = new Object[]{info[0], info[1], info[2], info[3], info[4], info[5]};\r\n modelo.addRow(fila);\r\n }\r\n st.close();\r\n rs.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(PActividad.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return modelo;\r\n }", "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 PreencherTabela() throws SQLException {\n try (Connection connection = ConnectionFactory.getConnection()) {\n String[] colunas = new String[]{\"ID\", \"Nome\", \"Nomenclatura\", \"Quantidade\"};\n ArrayList dados = new ArrayList();\n for (ViewProdutoPedido v : viewProdutoPedidos) {\n dados.add(new Object[]{v.getId(), v.getNome(), v.getNomenclatura(), v.getQuantidade()});\n }\n ModeloTabela modelo = new ModeloTabela(dados, colunas);\n jTableItensPedido.setModel(modelo);\n jTableItensPedido.setRowSorter(new TableRowSorter(modelo));\n jTableItensPedido.getColumnModel().getColumn(0).setPreferredWidth(2);\n jTableItensPedido.getColumnModel().getColumn(0).setResizable(false);\n jTableItensPedido.getColumnModel().getColumn(1).setPreferredWidth(20);\n jTableItensPedido.getColumnModel().getColumn(1).setResizable(false);\n jTableItensPedido.getColumnModel().getColumn(2).setPreferredWidth(20);\n jTableItensPedido.getColumnModel().getColumn(2).setResizable(false);\n jTableItensPedido.getColumnModel().getColumn(3).setPreferredWidth(20);\n jTableItensPedido.getColumnModel().getColumn(3).setResizable(false);\n\n }\n }", "public void esborrarRegistresTaulaNews() throws SQLException {\n bd.execSQL(\"DELETE FROM \" + BD_TAULA );\n\n }", "public void buscar() { // ATENCION tengo dudas con % telefono% no sale ningun resultado. si sale con telefono%\n String nombre = AgendarA.txtBNombre.getText();\n String apellidos = AgendarA.txtBApellidos.getText();\n String ciudad = AgendarA.txtBCiudad.getText();\n\n modeloagr = new DefaultTableModel(null, columnasAgr) {\n public boolean isCellEditable(int fila, int columna) {\n return false;\n }\n };\n if (AgendarA.chNombre.isSelected() == true && AgendarA.chApellidos.isSelected() == true && AgendarA.chCiudad.isSelected() == true) {\n if (!nombre.equals(\"\") && !apellidos.equals(\"\") && !ciudad.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,cedula,CONCAT(nombres,' ',apellidos),municipios.Nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE personalexterno.nombres LIKE '%\" + nombre + \"%' AND personalexterno.apellidos LIKE '%\" + apellidos + \"%' AND municipios.Nombre LIKE '%\" + ciudad + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY nombre\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else if (AgendarA.chNombre.isSelected() == true && AgendarA.chApellidos.isSelected() == true) {\n if (!nombre.equals(\"\") && !apellidos.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,cedula,CONCAT(nombres,' ',apellidos),municipios.Nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE personalexterno.nombres LIKE '%\" + nombre + \"%' AND personalexterno.Apellidos LIKE '%\" + apellidos + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY cedula\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else if (AgendarA.chNombre.isSelected() == true && AgendarA.chCiudad.isSelected() == true) {\n if (!nombre.equals(\"\") && !ciudad.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,nombre,CONCAT(nombres,' ',apellidos),municipios.Nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE municipios.Nombre LIKE '%\" + ciudad + \"%' AND personalexterno.nombres LIKE '%\" + nombre + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY cedula\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else if (AgendarA.chApellidos.isSelected() == true && AgendarA.chCiudad.isSelected() == true) {\n if (!apellidos.equals(\"\") && !ciudad.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,personalexterno.cedula,nombres,apellidos,municipios.Nombre FROM personalexterno,municipios WHERE municipios.Nombre LIKE '%\" + ciudad + \"%' AND personalexterno.apellidos LIKE '%\" + apellidos + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY cedula\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else if (AgendarA.chNombre.isSelected() == true) {\n if (!nombre.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,cedula,CONCAT(nombres,' ',apellidos),municipios.Nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE personalexterno.nombres LIKE '%\" + nombre + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY cedula\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else if (AgendarA.chApellidos.isSelected() == true) {\n if (!apellidos.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,cedula,CONCAT(nombres,' ',apellidos),municipios.Nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE personalexterno.apellidos LIKE '%\" + apellidos + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY cedula\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else if (AgendarA.chCiudad.isSelected() == true) {\n if (!ciudad.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,cedula,CONCAT(nombres,' ',apellidos),municipios.Nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE municipios.Nombre LIKE '%\" + ciudad + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY cedula\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else {\n JOptionPane.showMessageDialog(null, \"Ninguno de los campos de busqueda esta seleccionado\");\n }\n tbl.rowNumberTabel(AgendarA.tblAgricultor);\n //desactivar_checkbox();\n }", "public boolean insertarNuevoClienteVista(Cliente cliente, Cuenta cuenta) {\n \n String queryDividido1 = \"INSERT INTO Usuario(Codigo, Nombre, DPI, Direccion, Sexo, Password, Tipo_Usuario) \"\n + \"VALUES(?,?,?,?,?,aes_encrypt(?,'AES'),?)\";\n\n String queryDividido2 = \"INSERT INTO Cliente(Usuario_Codigo, Nombre, Nacimiento, DPI_Escaneado, Estado) \"\n + \"VALUES(?,?,?,?,?)\";\n \n String queryDividido3 = \"INSERT INTO Cuenta(No_Cuenta, Fecha_Creacion, Saldo_Cuenta, Cliente_Usuario_Codigo) \"\n + \"VALUES(?,?,?,?)\";\n \n \n try {\n\n PreparedStatement enviarDividido1 = Conexion.conexion.prepareStatement(queryDividido1);\n\n //Envio de los Datos Principales del cliente a la Tabla Usuario\n enviarDividido1.setInt(1, cliente.getCodigo());\n enviarDividido1.setString(2, cliente.getNombre());\n enviarDividido1.setString(3, cliente.getDPI());\n enviarDividido1.setString(4, cliente.getDireccion());\n enviarDividido1.setString(5, cliente.getSexo());\n enviarDividido1.setString(6, cliente.getPassword());\n enviarDividido1.setInt(7, 3);\n enviarDividido1.executeUpdate();\n\n //Envia los Datos Complementarios del Usuario a la tabla cliente\n PreparedStatement enviarDividido2 = Conexion.conexion.prepareStatement(queryDividido2);\n enviarDividido2.setInt(1, cliente.getCodigo());\n enviarDividido2.setString(2, cliente.getNombre());\n enviarDividido2.setString(3, cliente.getNacimiento());\n enviarDividido2.setBlob(4, cliente.getDPIEscaneado());\n enviarDividido2.setBoolean(5, cliente.isEstado());\n enviarDividido2.executeUpdate();\n \n //Envia los Datos de la Cuenta Adjudicada al Cliente\n PreparedStatement enviarDividido3 = Conexion.conexion.prepareStatement(queryDividido3);\n\n //Envio de los Datos Principales de una Cuenta a la Tabla Cuenta, perteneciente a un cliente en Especifico\n enviarDividido3.setInt(1, cuenta.getNoCuenta());\n enviarDividido3.setString(2, cuenta.getFechaCreacion());\n enviarDividido3.setDouble(3, cuenta.getSaldo());\n enviarDividido3.setInt(4, cliente.getCodigo());\n enviarDividido3.executeUpdate();\n \n \n return true;\n\n } catch (SQLException ex) {\n ex.printStackTrace(System.out);\n return false;\n }\n\n }", "public static void main(String[] args) {\n\n String select = \"select direccion from cliente where idCliente = 3;\", update;\n Connection conexion = BddConnection.newConexionPostgreSQL(\"Ventas\");\n PreparedStatement sentencia;\n Direccion dirCliente;\n ResultSet resul;\n\n try {\n sentencia = conexion.prepareStatement(select);\n resul = sentencia.executeQuery();\n if (resul.next()){\n dirCliente = Direccion.newInstance(resul.getString(1));\n dirCliente.getPoblacion().getProvincia().setProvincia(\"Granada update\");\n update = \"update cliente set direccion = \" + dirCliente.getStringTypeT_Direccion() + \" where idCliente = 3\";\n sentencia = conexion.prepareStatement(update);\n sentencia.executeUpdate();\n }\n resul.close();\n sentencia.close();\n conexion.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }" ]
[ "0.66414386", "0.6376517", "0.634287", "0.62972134", "0.6267276", "0.6203511", "0.6195479", "0.6161721", "0.61452174", "0.6141247", "0.6141059", "0.6131388", "0.6116803", "0.6089988", "0.60716796", "0.6066551", "0.60509646", "0.6020287", "0.60089916", "0.59929323", "0.5991551", "0.5951862", "0.59483176", "0.5925033", "0.5913001", "0.5886", "0.58851445", "0.586822", "0.58616734", "0.5853411", "0.5852737", "0.5849013", "0.58350205", "0.583086", "0.58005315", "0.5782929", "0.5776064", "0.57690674", "0.5764897", "0.5756943", "0.57528186", "0.57448536", "0.57304007", "0.5727067", "0.57202405", "0.5717448", "0.5700046", "0.5689959", "0.56885177", "0.56867194", "0.56848186", "0.5669541", "0.5667367", "0.5667115", "0.56661856", "0.56593704", "0.56586856", "0.5652834", "0.56464374", "0.5643084", "0.56426", "0.5641259", "0.56323856", "0.563037", "0.56195945", "0.5617485", "0.5616083", "0.5613627", "0.560875", "0.560081", "0.5591868", "0.5588033", "0.5587587", "0.5579553", "0.55794144", "0.55763865", "0.5575709", "0.5572645", "0.5568144", "0.55680937", "0.55596846", "0.5556998", "0.5555273", "0.5551899", "0.5546589", "0.55435014", "0.5539784", "0.55357647", "0.5534951", "0.5530278", "0.55272835", "0.5523589", "0.5522712", "0.55217725", "0.5518614", "0.55158395", "0.55140626", "0.5509071", "0.55035335", "0.55027384", "0.5491542" ]
0.0
-1
recebe dados dos estados do banco de dados. prepara a sql
public void carrega_cidade() throws SQLException{ String sql = "SELECT nome FROM tb_cidades where uf='"+cbUF.getSelectedItem()+"'"; PreparedStatement preparador = Conexao.conectar().prepareStatement(sql); ResultSet rs = preparador.executeQuery(); cbCidade.removeAllItems(); //passando valores do banco para o objeto result; try{ while(rs.next()){ String list = rs.getString("nome"); //resgatando estado //popula combo_estadof com as informações colhidas cbCidade.addItem(list); } } catch (Exception e){ JOptionPane.showMessageDialog(null, "Impossivel carregar Estados!", "ERROR - ", JOptionPane.ERROR_MESSAGE); } Conexao.desConectar(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Tablero consultarTablero();", "void LlenarModelo(){\n datos.addColumn(\"ID\");\n datos.addColumn(\"Descripcion\");\n datos.addColumn(\"Cantidad\");\n String []ingresar=new String[4];\n try {\n Connection con = Conexion.getConection();\n Statement estado = con.createStatement();\n //ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago where codigo>=\" + SIGEPSA.IDOtrosPagosMin + \";\");\n //ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago ;\");\n ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago where codigo<9 or codigo>10 and activo = 1;\");\n while(resultado.next()){\n ingresar[0]=String.valueOf((String)resultado.getObject(\"CODIGO\").toString());\n ingresar[1]=String.valueOf((String)resultado.getObject(\"DESCRIPCION\").toString());\n ingresar[2]=String.valueOf((String)resultado.getObject(\"CANTIDAD\").toString());\n datos.addRow(ingresar);\n }\n }catch (Exception ex) {\n \n }\n }", "public void refresh() {\n String sql = \"\";\n sql += \"select m.id\"\n + \", m.data\"\n + \", CAST(CONCAT(dep.nome, ' [', dep.id, ']') AS CHAR(50)) as deposito\"\n + \", cau.descrizione as causale\"\n + \", m.articolo\"\n + \", if (cau.segno = -1 , -m.quantita, m.quantita) as quantita\"\n + \", m.note\"\n + \", cast(concat(IF(m.da_tipo_fattura = 7, 'Scontr.', \"\n + \" IF(m.da_tabella = 'test_fatt', 'Fatt. Vend.', \"\n + \" IF(m.da_tabella = 'test_ddt', 'DDT Vend.',\"\n + \" IF(m.da_tabella = 'test_fatt_acquisto', 'Fatt. Acq.',\"\n + \" IF(m.da_tabella = 'test_ddt_acquisto', 'DDT Acq.', m.da_tabella)))))\"\n + \" , da_serie, ' ', da_numero, '/', da_anno, ' - [ID ', da_id, ']') as CHAR)as origine\"\n // + \", m.da_tabella\"\n // + \", m.da_anno\"\n // + \", m.da_serie\"\n // + \", m.da_numero\"\n // + \", m.da_id\"\n + \", m.matricola\"\n + \", m.lotto\"\n + \", a.codice_fornitore, a.codice_a_barre from movimenti_magazzino m left join articoli a on m.articolo = a.codice\"\n + \" left join tipi_causali_magazzino cau on m.causale = cau.codice\"\n + \" left join depositi dep ON m.deposito = dep.id\";\n sql += \" where 1 = 1\";\n System.out.println(\"articolo_selezionato_filtro_ref = \" + articolo_selezionato_filtro_ref);\n System.out.println(\"articolo_selezionato_filtro_ref get = \" + articolo_selezionato_filtro_ref.get());\n if (articolo_selezionato_filtro_ref.get() != null && StringUtils.isNotBlank(articolo_selezionato_filtro_ref.get().codice)) {\n sql += \" and m.articolo like '\" + Db.aa(articolo_selezionato_filtro_ref.get().codice) + \"'\";\n }\n if (filtro_barre.getText().length() > 0) {\n sql += \" and a.codice_a_barre like '%\" + Db.aa(filtro_barre.getText()) + \"%'\";\n }\n if (filtro_lotto.getText().length() > 0) {\n sql += \" and m.lotto like '%\" + Db.aa(filtro_lotto.getText()) + \"%'\";\n }\n if (filtro_matricola.getText().length() > 0) {\n sql += \" and m.matricola like '%\" + Db.aa(filtro_matricola.getText()) + \"%'\";\n }\n if (filtro_fornitore.getText().length() > 0) {\n sql += \" and a.codice_fornitore like '%\" + Db.aa(filtro_fornitore.getText()) + \"%'\";\n }\n if (filtro_deposito.getSelectedIndex() >= 0) {\n sql += \" and m.deposito = \" + cu.s(filtro_deposito.getSelectedKey());\n }\n sql += \" order by m.data desc, id desc\";\n System.out.println(\"sql movimenti: \" + sql);\n griglia.dbOpen(Db.getConn(), sql, Db.INSTANCE, true);\n griglia.dbSelezionaRiga();\n }", "public void consutaBD(String Campo, String txtSQL) {\n String consultaBD = \"SELECT * FROM `cronograma_actividades` WHERE \" + Campo + \" LIKE '\" + txtSQL + \"_%'\";\n //JOptionPane.showMessageDialog(null, consultaBD);\n javax.swing.JTable Tabla = this.Tabla_addActividad;\n // Enviamos los parametros para la consulta de la tabla\n // conexion consulta de la base de datos y el nombre de la tabla\n String cabesera[] = {\"Código\", \"Asunto\", \"Actividad\",\"hora\",\"Fecha\",\"Estado\"};\n cone1.GetTabla_Sincabeseras_sql_bd(cn, consultaBD, Tabla, cabesera);\n\n }", "private void llenarListado1() {\r\n\t\tString sql1 = Sentencia1()\r\n\t\t\t\t+ \" where lower(cab.descripcion) = 'concurso' \" + \"and (\"\r\n\t\t\t\t+ \"\t\tdet.id_estado_det = (\" + \"\t\t\t\tselect est.id_estado_det \"\r\n\t\t\t\t+ \"\t\t\t\tfrom planificacion.estado_det est \"\r\n\t\t\t\t+ \"\t\t\t\twhere lower(est.descripcion)='libre'\" + \"\t\t) \"\r\n\t\t\t\t+ \"\t\tor det.id_estado_det is null\" + \"\t) \"\r\n\t\t\t\t+ \" and uo_cab.id_configuracion_uo = \"\r\n\t\t\t\t+ configuracionUoCab.getIdConfiguracionUo()\r\n\t\t\t\t+ \" AND det.activo=true\";\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO SIMPLIFICADO Se despliegan los puestos\r\n\t\t * PERMANENTES o CONTRATADOS, con estado = LIBRE o NULO Los puestos\r\n\t\t * deben ser de nivel 1\r\n\t\t */\r\n\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n\t\t\t\t.equalsIgnoreCase(CONCURSO_SIMPLIFICADO)) {\r\n\t\t\tsql1 += \" and cpt.nivel=1 and cpt.activo=true and (det.permanente is true or det.contratado is true) \";\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO INTERNO DE OPOSICION INSTITUCIONAL Se\r\n\t\t * despliegan los puestos PERMANENTE, con estado = LIBRE o NULO\r\n\t\t */\r\n\r\n\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n\t\t\t\t.equalsIgnoreCase(CONCURSO_INTERNO_OPOSICION)) {\r\n\t\t\tsql1 += \" and det.permanente is true \";\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO INTERNO DE OPOSICION INTER INSTITUCIONAL\r\n\t\t * Se despliegan los puestos PERMANENTE, con estado = LIBRE o NULO\r\n\t\t */\r\n\r\n\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n\t\t\t\t.equalsIgnoreCase(CONCURSO_INTERNO_INTERINSTITUCIONAL)) {\r\n\t\t\tsql1 += \" and det.permanente is true \";\r\n\t\t}\r\n\t\tString sql2 = Sentencia2()\r\n\t\t\t\t+ \" where lower(estado_det.descripcion) = 'en reserva' \"\r\n\t\t\t\t+ \"and uo_cab.id_configuracion_uo = \"\r\n\t\t\t\t+ configuracionUoCab.getIdConfiguracionUo()\r\n\t\t\t\t+ \" and concurso.id_concurso = \" + concurso.getIdConcurso()\r\n\t\t\t\t+ \" and puesto_det.activo=true\";\r\n\r\n\t\tcargarLista(sql1, sql2);\r\n\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 void introducirPagosALojamientoHotelFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo){\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);\n try {\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT ALOJAMIENTO.Id,ALOJAMIENTO.Id_Reservacion,RESERVACION.Fecha_Entrada, RESERVACION.Fecha_Salida,RESERVACION.Precio FROM RESERVACION JOIN ALOJAMIENTO WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND RESERVACION.Fecha_Entrada>=? AND RESERVACION.Fecha_Entrada<=? AND RESERVACION.Check_In=1;\");\n declaracion.setDate(1,fechaInicialSql);\n declaracion.setDate(2,fechaFinalSQL);// pago de alojamiento en rango fchas\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {\n Object objeto[] = new Object[6];// pago de alojamiento en rango fchas\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);\n objeto[2] = resultado.getDate(3);\n objeto[3] = resultado.getDate(4);// pago de alojamiento en rango fchas\n objeto[4] = resultado.getInt(5);\n String fechaInicialProbar=objeto[2].toString();\n String fechaFinalProbar=objeto[3].toString();// pago de alojamiento en rango fchas\n String precioProbar = objeto[4].toString();// pago de alojamiento en rango fchas\n int total=habitacion.hacerTotalAlojamiento(fechaInicialProbar, fechaFinalProbar, precioProbar);\n objeto[5]= total;\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "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 }", "public void buscarEstudiante(String codEstudiante){\n estudianteModificar=new Estudiante();\n estudianteGradoModificar=new EstudianteGrado();\n StringBuilder query=new StringBuilder();\n query.append(\"select e.idestudiante,e.nombre,e.apellido,e.ci,e.cod_est,e.idgrado,e.idcurso,g.grado,c.nombre_curso \" );\n query.append(\" from estudiante e \");\n query.append(\" inner join grado g on e.idgrado=g.idgrado \");\n query.append(\" inner join cursos c on e.idcurso=c.idcurso \");\n query.append(\" where idestudiante=? \");\n try {\n PreparedStatement pst=connection.prepareStatement(query.toString());\n pst.setInt(1, Integer.parseInt(codEstudiante));\n ResultSet resultado=pst.executeQuery();\n //utilizamos una condicion porque la busqueda nos devuelve 1 registro\n if(resultado.next()){\n //cargando la informacion a nuestro objeto categoriaModificarde tipo categoria\n estudianteModificar.setCodEstudiante(resultado.getInt(1));\n estudianteModificar.setNomEstudiante(resultado.getString(2));\n estudianteModificar.setApEstudiante(resultado.getString(3));\n estudianteModificar.setCiEstudiante(resultado.getInt(4));\n estudianteModificar.setCodigoEstudiante(resultado.getString(5));\n estudianteModificar.setIdgradoEstudiante(resultado.getInt(6));\n estudianteModificar.setIdCursoEstudiante(resultado.getInt(7));\n estudianteGradoModificar.setNomGrado(resultado.getString(8));\n estudianteGradoModificar.setNomCurso(resultado.getString(9));\n }\n } catch (SQLException e) {\n System.out.println(\"Error de conexion\");\n e.printStackTrace();\n }\n }", "public void introducirPagosALojamientoClienteFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo,String dpiCliente){\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);// pago de alojamiento en rango fchas\n try {\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT ALOJAMIENTO.Id,ALOJAMIENTO.Id_Reservacion,RESERVACION.Fecha_Entrada, RESERVACION.Fecha_Salida,RESERVACION.Precio FROM RESERVACION JOIN ALOJAMIENTO WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND RESERVACION.Fecha_Entrada>=? AND RESERVACION.Fecha_Entrada<=? AND RESERVACION.Dpi_Cliente=? AND RESERVACION.Check_In=1;\");\n declaracion.setDate(1,fechaInicialSql);\n declaracion.setDate(2,fechaFinalSQL);// pago de alojamiento en rango fchas\n declaracion.setString(3, dpiCliente);\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {\n Object objeto[] = new Object[6];\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);\n objeto[2] = resultado.getDate(3);// pago de alojamiento en rango fchas\n objeto[3] = resultado.getDate(4);\n objeto[4] = resultado.getInt(5);\n String fechaInicialProbar=objeto[2].toString();\n String fechaFinalProbar=objeto[3].toString();// pago de alojamiento en rango fchas\n String precioProbar = objeto[4].toString();\n int total=habitacion.hacerTotalAlojamiento(fechaInicialProbar, fechaFinalProbar, precioProbar);\n objeto[5]= total;\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "public void EjecutarConsulta() {\n try {\n Consultar(\"select * from \"+table);\n this.resultSet = preparedStatement.executeQuery();\n } catch (Exception e) {\n// MessageEmergent(\"Fail EjecutarConsulta(): \"+e.getMessage());\n }\n }", "public CalMetasDTO cargarRegistro(int codigoCiclo, int codigoPlan, int codigoMeta) {\n/* */ try {\n/* 416 */ String s = \"select m.*,\";\n/* 417 */ s = s + \"tm.descripcion as nombreTipoMedicion,\";\n/* 418 */ s = s + \"est.descripcion as nombreEstado,\";\n/* 419 */ s = s + \"Um.Descripcion as nombre_unidad_medida\";\n/* 420 */ s = s + \" from cal_plan_metas m,sis_multivalores tm,sis_multivalores est,Sis_Multivalores Um\";\n/* 421 */ s = s + \" where \";\n/* 422 */ s = s + \" m.tipo_medicion =tm.valor\";\n/* 423 */ s = s + \" and tm.tabla='CAL_TIPO_MEDICION'\";\n/* 424 */ s = s + \" and m.estado =est.valor\";\n/* 425 */ s = s + \" and est.tabla='CAL_ESTADO_META'\";\n/* 426 */ s = s + \" and m.Unidad_Medida = Um.Valor\";\n/* 427 */ s = s + \" and Um.Tabla = 'CAL_UNIDAD_MEDIDA_META'\";\n/* 428 */ s = s + \" and m.codigo_ciclo=\" + codigoCiclo;\n/* 429 */ s = s + \" and m.codigo_plan=\" + codigoPlan;\n/* 430 */ s = s + \" and m.codigo_meta=\" + codigoMeta;\n/* 431 */ boolean rtaDB = this.dat.parseSql(s);\n/* 432 */ if (!rtaDB) {\n/* 433 */ return null;\n/* */ }\n/* */ \n/* 436 */ this.rs = this.dat.getResultSet();\n/* 437 */ if (this.rs.next()) {\n/* 438 */ return leerRegistro();\n/* */ }\n/* */ }\n/* 441 */ catch (Exception e) {\n/* 442 */ e.printStackTrace();\n/* 443 */ Utilidades.writeError(\"CalPlanMetasFactory:cargarCalMetas \", e);\n/* */ } \n/* 445 */ return null;\n/* */ }", "private boolean crearRecurso(int codigoCiclo, int codigoPlan, int codigoMeta, int codigoRecurso, String estado, String usuarioInsercion) {\n/* */ try {\n/* 513 */ String s = \"select estado from cal_plan_recursos_meta r where r.codigo_ciclo=\" + codigoCiclo + \" and r.codigo_plan=\" + codigoPlan + \" and r.codigo_meta=\" + codigoMeta + \" and r.codigo_recurso=\" + codigoRecurso;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 520 */ this.dat.parseSql(s);\n/* 521 */ this.rs = this.dat.getResultSet();\n/* 522 */ if (this.rs.next()) {\n/* 523 */ s = \"update cal_plan_recursos_meta set \";\n/* 524 */ s = s + \" estado='\" + estado + \"',\";\n/* 525 */ s = s + \" fecha_modificacion=\" + Utilidades.getFechaBD() + \",\";\n/* 526 */ s = s + \" usuario_modificacion='\" + usuarioInsercion + \"'\";\n/* 527 */ s = s + \" where \";\n/* 528 */ s = s + \" codigo_ciclo=\" + codigoCiclo;\n/* 529 */ s = s + \" and codigo_plan=\" + codigoPlan;\n/* 530 */ s = s + \" and codigo_meta=\" + codigoMeta;\n/* 531 */ s = s + \" and codigo_recurso=\" + codigoRecurso;\n/* */ } else {\n/* */ \n/* 534 */ s = \"insert into cal_plan_recursos_meta (codigo_ciclo,codigo_plan,codigo_meta,codigo_recurso,estado,fecha_insercion,usuario_insercion) values (\" + codigoCiclo + \",\" + \"\" + codigoPlan + \",\" + \"\" + codigoMeta + \",\" + \"\" + codigoRecurso + \",\" + \"'\" + estado + \"',\" + Utilidades.getFechaBD() + \",\" + \"'\" + usuarioInsercion + \"'\" + \")\";\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 552 */ return this.dat.executeUpdate(s);\n/* */ \n/* */ }\n/* 555 */ catch (Exception e) {\n/* 556 */ e.printStackTrace();\n/* 557 */ Utilidades.writeError(\"CalMetasDAO:crearRegistro\", e);\n/* */ \n/* 559 */ return false;\n/* */ } \n/* */ }", "private void mbushetabelen() {\n try {\n Statement stmt = LidhjaMeDb.hapelidhjen();\n //CallableStatement stmt = conn.prepareCall(\"{call procedura1(?)}\");\n //stmt.setInt(1, 1);\n //ResultSet rs=stmt.executeQuery();\n String sql = \"SELECT kerkesat.kompania AS 'Kompania', llojet_lejes.lloji_lejes AS 'Lloji i Lejes'\"\n + \" ,kerkesat.adresa AS 'Adresa', kerkesat.tel AS 'Tel',kerkesat.data_pranimit AS 'Data e Pranimit'\"\n + \" ,kerkesat.nr_protokollit AS 'Numri i Protokollit', aktivitetet.aktiviteti AS 'Aktiviteti'\"\n + \" ,komunat.komuna AS 'Komuna', kerkesat.taksa AS 'Taksa', kerkesat.statusi_lendes AS 'Statusi i Lendes'\"\n + \" ,kerkesat.data_leshimit AS 'Data e Leshimit'\"\n + \" ,pergjigjjet_komisionit.pergjigjja AS 'Pergjigjja e Komisionit' FROM kerkesat \"\n + \" JOIN llojet_lejes ON kerkesat.idlloji = llojet_lejes.idlloji \"\n + \" JOIN aktivitetet ON kerkesat.idaktiviteti = aktivitetet.idaktiviteti \"\n + \" JOIN pergjigjjet_komisionit ON kerkesat.idpergjigjja = pergjigjjet_komisionit.idpergjigjja \"\n + \" JOIN komunat ON kerkesat.idkomuna=komunat.idkomuna \"\n + \"WHERE kompania LIKE '%\" + txtkompania.getText() + \"%' \"\n + \"AND aktiviteti like '%\" + (String) kmbaktiviteti.getSelectedItem() + \"%' \"\n + \"AND komuna like '%\" + (String) kmbkomunat.getSelectedItem() + \"%' \"\n + \"AND pergjigjja like '%\" + (String) kmbpergjigjja.getSelectedItem() + \"%' \"\n + \"AND data_pranimit >= '\" + new java.sql.Date(jdataprej.getDate().getTime()) + \"' AND data_pranimit <= '\" + new java.sql.Date(jdataderi.getDate().getTime()) + \"' \";\n System.out.println(sql);\n ResultSet rs = stmt.executeQuery(sql);\n tblkerkesat.setModel(DBUtils.resultSetToTableModel(rs));\n//boolean Zgjedhur=false;jTable1.addColumn(Zgjedhur);\n LidhjaMeDb.mbyllelidhjen();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "public void PrepararBaseDatos() { \r\n try{ \r\n conexion=DriverManager.getConnection(\"jdbc:ucanaccess://\"+this.NOMBRE_BASE_DE_DATOS,this.USUARIO_BASE_DE_DATOS,this.CLAVE_BASE_DE_DATOS);\r\n \r\n } \r\n catch (Exception e) { \r\n JOptionPane.showMessageDialog(null,\"Error al realizar la conexion \"+e);\r\n } \r\n try { \r\n sentencia=conexion.createStatement( \r\n ResultSet.TYPE_SCROLL_INSENSITIVE, \r\n ResultSet.CONCUR_READ_ONLY); \r\n \r\n System.out.println(\"Se ha establecido la conexión correctamente\");\r\n } \r\n catch (Exception e) { \r\n JOptionPane.showMessageDialog(null,\"Error al crear el objeto sentencia \"+e);\r\n } \r\n }", "private void procurarData() {\n if (jDateIni.getDate() != null && jDateFim.getDate() != null) {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n String data = sdf.format(jDateIni.getDate());\n String data2 = sdf.format(jDateFim.getDate());\n carregaTable(id, data, data2);\n JBreg.setEnabled(false);\n }\n }", "QuartoConsumo[] busca(Object dadoBusca, String coluna) throws SQLException;", "public DanielPatricio() throws SQLException {\n initComponents();\n //limpiar();\n recargarDropDownCarros();\n recargarTextArea();\n recargarDataTable();\n \n \n }", "public static String todosLosEmpleados_baja(){\n String query=\"SELECT empleado.idEmpleado, persona.nombre, persona.apePaterno, persona.apeMaterno, empleado.codigo, empleado.fechaIngreso,persona.codigoPostal,persona.domicilio,\" +\n\"empleado.puesto, empleado.salario from persona inner join empleado on persona.idPersona=empleado.idPersona where activo=0;\";\n return query;\n }", "public FlujoDetalleDTO cargarRegistro(int codigoFlujo, int secuencia) {\n/* */ try {\n/* 201 */ String s = \"select t.codigo_flujo,t.secuencia,t.servicio_inicio,r1.descripcion as nombre_servicio_inicio,t.accion,t.codigo_estado,r3.descripcion as nombre_codigo_estado,t.servicio_destino,r4.descripcion as nombre_servicio_destino,t.nombre_procedimiento,t.correo_destino,t.enviar_solicitud,t.ind_mismo_proveedor,t.ind_mismo_cliente,t.estado,t.caracteristica,t.valor_caracteristica,t.caracteristica_correo,m5.descripcion as nombre_estado,c.DESCRIPCION nombre_caracteristica,cv.DESCRIPCION descripcion_valor,t.metodo_seleccion_proveedor,t.ind_correo_clientes,t.enviar_hermana,t.enviar_si_hermana_cerrada,t.ind_cliente_inicial,t.usuario_insercion,t.fecha_insercion,t.usuario_modificacion,t.fecha_modificacion from wkf_detalle t left join SERVICIOS r1 on (r1.CODIGO=t.servicio_inicio) left join ESTADOS r3 on (r3.codigo=t.codigo_estado) left join SERVICIOS r4 on (r4.CODIGO=t.servicio_destino) left join sis_multivalores m5 on (m5.tabla='ESTADO_REGISTRO' and m5.valor=t.estado) LEFT JOIN CARACTERISTICAS c ON (t.Caracteristica = c.CODIGO) LEFT JOIN CARACTERISTICAS_VALOR cv ON (t.CARACTERISTICA=cv.CARACTERISTICA AND t.VALOR_CARACTERISTICA = cv.VALOR) where t.codigo_flujo=\" + codigoFlujo + \" and t.secuencia=\" + secuencia + \"\";\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 243 */ boolean rtaDB = this.dat.parseSql(s);\n/* 244 */ if (!rtaDB) {\n/* 245 */ return null;\n/* */ }\n/* 247 */ this.rs = this.dat.getResultSet();\n/* 248 */ if (this.rs.next()) {\n/* 249 */ return leerRegistro();\n/* */ }\n/* */ }\n/* 252 */ catch (Exception e) {\n/* 253 */ e.printStackTrace();\n/* 254 */ Utilidades.writeError(\"FlujoDetalleDAO:cargarFlujoDetalle\", e);\n/* */ } \n/* 256 */ return null;\n/* */ }", "private void cargarDeDB() {\n Query query = session.createQuery(\"SELECT p FROM Paquete p WHERE p.reparto is NULL\");\n data = FXCollections.observableArrayList();\n\n List<Paquete> paquetes = query.list();\n for (Paquete paquete : paquetes) {\n data.add(paquete);\n }\n\n cargarTablaConPaquetes();\n }", "public static Statement reiniciarBD( Connection con ) {\n\t\ttry {\n\t\t\tStatement statement = con.createStatement();\n\t\t\tstatement.setQueryTimeout(30); // poner timeout 30 msg\n\t\t\tstatement.executeUpdate(\"drop table if exists items\");\n\t\t\tlog( Level.INFO, \"Reiniciada base de datos\", null );\n\t\t\treturn usarCrearTablasBD( con );\n\t\t} catch (SQLException e) {\n\t\t\tlog( Level.SEVERE, \"Error en reinicio de base de datos\", e );\n\t\t\tlastError = e;\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "@Transactional\n public void llenarTabla(ResultSet rs){\n if (rs==null) {\n System.out.println(\"el rs vino vacio\");\n }\n try {\n while (rs.next()) {\n //para cada fila de la consulta creo un pedido\n PedidoMaterial pedido = new PedidoMaterial();\n System.out.println(\"empezamos\");\n pedido.setId(rs.getInt(1));\n pedido.setNumeroPedido(rs.getInt(2));\n pedido.setNotaDeVenta(rs.getInt(3));\n pedido.setDescripProyecto(rs.getString(4));\n pedido.setCliente(rs.getString(5));\n pedido.setCantidadPedida(rs.getLong(6));\n pedido.setCantidadModificada(rs.getLong(7));\n Calendar fecha = Calendar.getInstance();\n fecha.setTime(rs.getDate(8));\n pedido.setUltimaActualizacionDespiece(fecha);\n pedido.setArticulo(rs.getString(9));\n pedido.setAriCod(rs.getString(10));\n pedido.setArea(rs.getString(11));\n pedido.setUnidadOrg(rs.getInt(12));\n pedido.setTarea(rs.getString(13));\n pedido.setCantidadAPD(rs.getLong(14));\n if (rs.getDate(15) != null) {\n fecha.setTime(rs.getDate(15));\n pedido.setFechaAsignacion(fecha); \n }\n pedido.setCantidadFinalP(rs.getLong(16));\n pedido.setCantidadRealU(rs.getLong(17));\n pedido.setTareaCod(rs.getInt(18));\n fecha.setTime(rs.getDate(19));\n pedido.setFechaUti(fecha);\n fecha.setTime(rs.getDate(20));\n pedido.setFechaFinUtili(fecha);\n \n guardarPedido(pedido);\n \n \n }\n } catch (SQLException ex) {\n \n System.out.println(ex.toString());\n }\n }", "public void actualizarFiltrarEstadoRequisicion(Requisicion req) throws Exception{\n String carnet = req.getCarnetEmpleado();\n\n java.util.Date utilDate = req.getFechaNueva();\n java.sql.Date fechaConvertida = new java.sql.Date(utilDate.getTime()); \n\n List<Requisicion> requisicion = new ArrayList<>();\n \n Connection miConexion = null;\n Statement miStatement = null;\n ResultSet miResultset = null; \n\n \n //Establecer la conexion\n miConexion = origenDatos.getConexion();\n \n \n //Verificar si existe empleado\n String sqlEmpleado = \"Select CARNETEMPLEADO FROM EMPLEADO WHERE CARNETEMPLEADO = '\"+carnet+\"'\";\n miStatement = miConexion.createStatement();\n miResultset = miStatement.executeQuery(sqlEmpleado);\n \n if(miResultset.next()){\n \n String empleado = carnet;\n \n \n String sqlDepto = \"select d.NOMBREDEPARTAMENTO from departamento d \" + \n \"inner join catalagopuesto c on d.codigodepartamento = c.codigodepartamento \" + \n \"inner join empleado e on c.codigopuesto = e.codigopuesto where e.carnetempleado ='\"+carnet+\"'\";\n \n miStatement = miConexion.createStatement();\n \n //Ejecutar SQL\n miResultset = miStatement.executeQuery(sqlDepto);\n //Crear sentencia SQL y Statement\n miResultset.next();\n String nomdepto = miResultset.getString(\"NOMBREDEPARTAMENTO\");\n \n String miSQl = \"select r.NUMREQ, r.FECPEDIDOREQ, r.FECENTREGAREQ, r.AUTORIZADO, e.CARNETEMPLEADO, e.NOMBREEMPLEADO, e.APELLIDOEMPLEADO, d.NOMBREDEPARTAMENTO \" + \n \"from requisicion r inner join empleado e on r.carnetempleado =e.carnetempleado \" + \n \"inner join catalagopuesto c on e.codigopuesto =c.codigopuesto \" + \n \"inner join departamento d on c.codigodepartamento = d.codigodepartamento \" + \n \"where r.AUTORIZADO = 1 and d.NOMBREDEPARTAMENTO='\"+nomdepto+\"' and r.FECPEDIDOREQ >=TO_DATE('\"+fechaConvertida+\"', 'YYYY/MM/DD HH:MI:SS') order by r.FECPEDIDOREQ\";\n \n miStatement = miConexion.createStatement();\n \n //Ejecutar SQL\n miResultset = miStatement.executeQuery(miSQl);\n \n while(miResultset.next()){\n int numReq = miResultset.getInt(\"NUMREQ\");\n Date fechaPedido = miResultset.getDate(\"FECPEDIDOREQ\");\n Date fechaEntrega = miResultset.getDate(\"FECENTREGAREQ\"); \n String carnetEmpleado = miResultset.getString(\"CARNETEMPLEADO\");\n String nombreEmpleado = miResultset.getString(\"NOMBREEMPLEADO\"); \n String apellidoEmpleado = miResultset.getString(\"APELLIDOEMPLEADO\");\n String nombreDepartamento = miResultset.getString(\"NOMBREDEPARTAMENTO\"); \n\n //*************************ACTUALIZAR**************************\n Connection miConexion1 = null;\n PreparedStatement miStatement1 = null;\n \n //Obtener la conexion\n \n miConexion1 = origenDatos.getConexion();\n \n //Crear sentencia sql que inserte la requisicion a la base\n String misql = \"UPDATE requisicion SET autorizado = ? WHERE numreq = ?\";\n \n miStatement1 = miConexion1.prepareStatement(misql);\n \n //Establecer los parametros para insertar la requisicion \n if(\"aceptado\".equals(req.getEstadoAut())) {\n miStatement1.setInt(1, 0);\n }else{\n miStatement1.setInt(1, 1);\n } \n\n miStatement1.setInt(2, numReq);//se obtendra dentro del while\n \n //Ejecutar la instruccion sql\n miStatement1.execute(); \n //Requisicion temporal = new Requisicion(numReq, fechaPedido, fechaEntrega, carnetEmpleado, nombreEmpleado, apellidoEmpleado, nombreDepartamento);\n //requisicion.add(temporal);\n }\n \n }\n //return requisicion; \n }", "public void ejecutarCodigoSQLdatos(String nombrebuscado)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tFileReader codigoarchivo = new FileReader ( \"./images/BD/Codigo SQL crebas datos.sql\" );\r\n\t\t\tBufferedReader reader = new BufferedReader (codigoarchivo);\r\n\t\t\tString codigo = reader.readLine();\r\n\t\t\twhile(codigo!= null)\r\n\t\t\t{\r\n\t\t\t\tif(!codigo.equalsIgnoreCase(\"\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tConector conectord = new Conector(nombrebuscado);\r\n\t\t\t\t\tconectord.iniciarConexionBaseDatos();\r\n\t\t\t\t\tCrearBD.ejecutarCodigoSQL(codigo, conectord);\r\n\t\t\t\t\tconectord.terminarConexionBaseDatos();\r\n\t\t\t\t}\r\n\t\t\t\tcodigo = reader.readLine();\r\n\t\t\t}\r\n\t\t\tJOptionPane.showMessageDialog(this,\"Se Instalo la Base de Datos Correctamente.\",\"Instalar Base de Datos\", JOptionPane.INFORMATION_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/informacion.PNG\"));\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tConector conectorg = new Conector(nombrebuscado);\r\n\t\t\t\tconectorg.iniciarConexionBaseDatos();\r\n\t\t\t\tCrearBD.ejecutarCodigoSQL(\"DROP DATABASE \"+nombrebuscado, conectorg);\r\n\t\t\t\tconectorg.terminarConexionBaseDatos();\r\n\t\t\t\tJOptionPane.showMessageDialog(this,\"No se encontro el archivo Codigo SQL crebas datos.sql\",\"Error\", JOptionPane.ERROR_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/error.PNG\"));\r\n\t\t\t}\r\n\t\t\tcatch (Exception ex)\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}", "public void introducirConsumosHotelFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo) {\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);\n try {// mira los consumo de unas fechas\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT * FROM CONSUMO_RESTAURANTE WHERE Fecha_Consumo>=? AND Fecha_Consumo<=?\");\n declaracion.setDate(1,fechaInicialSql);\n declaracion.setDate(2,fechaFinalSQL);\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {// mira los consumo de unas fechas\n Object objeto[] = new Object[7];\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);// mira los consumo de unas fechas\n objeto[2] = resultado.getString(3);\n objeto[3] = resultado.getInt(4);\n objeto[4] = resultado.getInt(5);\n objeto[5] = resultado.getDate(6);// mira los consumo de unas fechas\n int total = (Integer)objeto[3]*(Integer)objeto[4];\n objeto[6]= total;\n modelo.addRow(objeto);// mira los consumo de unas fechas\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "public void novoDebito(Debitos debitos, String conCodigo, Contas contaComSaldo) throws SQLException {\r\n String sqls = \"select * from contas where concodigo = \" + conCodigo + \" \";\r\n\r\n PreparedStatement psc = null;\r\n ResultSet rsc = null;\r\n try {\r\n psc = connection.prepareStatement(sqls);\r\n rsc = psc.executeQuery();\r\n while (rsc.next()) {\r\n contaComSaldo.setConCodigo(rsc.getInt(\"concodigo\"));\r\n contaComSaldo.setConDescricao(rsc.getString(\"condescricao\"));\r\n contaComSaldo.setTipoCodigo(rsc.getInt(\"tipocodigo\"));\r\n contaComSaldo.setConSaldo(rsc.getDouble(\"consaldo\"));\r\n }\r\n\r\n } catch (Exception e) {\r\n Logger.getLogger(ContaDAO.class.getName()).log(Level.SEVERE, null, e);\r\n\r\n }\r\n\r\n String sqlUltimoCredito = \"select * from creditos order by crecodigo desc limit 1\";\r\n\r\n PreparedStatement pscUltimoCredito = null;\r\n ResultSet rscUltimoCredito = null;\r\n\r\n Creditos creditos = new Creditos();\r\n\r\n try {\r\n\r\n pscUltimoCredito = connection.prepareStatement(sqlUltimoCredito);\r\n rscUltimoCredito = pscUltimoCredito.executeQuery();\r\n while (rscUltimoCredito.next()) {\r\n\r\n creditos.setCreCodigo(rscUltimoCredito.getInt(\"crecodigo\"));\r\n creditos.setCreData(rscUltimoCredito.getDate(\"credata\"));\r\n creditos.setConCodigo(rscUltimoCredito.getInt(\"concodigo\"));\r\n creditos.setCreValor(rscUltimoCredito.getInt(\"crevalor\"));\r\n creditos.setCreHistorico(rscUltimoCredito.getString(\"crehistorico\"));\r\n creditos.setConSaldo(rscUltimoCredito.getDouble(\"consaldo\"));\r\n }\r\n\r\n } catch (Exception e) {\r\n Logger.getLogger(DebitoDAO.class.getName()).log(Level.SEVERE, null, e);\r\n\r\n }\r\n\r\n String sql = \"insert into debitos (debdata,concodigo,debvalor,debhistorico,consaldo,creditoid) values (?,?,?,?,?,?)\";\r\n PreparedStatement ps = null;\r\n try {\r\n ps = connection.prepareStatement(sql);\r\n ps.setDate(1, new java.sql.Date(debitos.getDebData().getTime()));\r\n ps.setInt(2, debitos.getConCodigo());\r\n ps.setDouble(3, debitos.getDebValor() * -1);\r\n ps.setString(4, debitos.getDebHistorico());\r\n ps.setDouble(5, contaComSaldo.getConSaldo());\r\n ps.setInt(6, creditos.getCreCodigo());\r\n\r\n ps.execute();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(CreditoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n connection.close();\r\n ps.close();\r\n }\r\n }", "private PreparedStatement prepareClientesRebarba(Connection conn, String data, String promocao) \n\t\tthrows ParseException, SQLException\n\t{\n\t\tPreparedStatement result = null;\t\t\n\t\tSimpleDateFormat conversorData = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\tDate dataExecucao = conversorData.parse(data);\t\t\n\t\t\n\t\t//Parametro 1: Promocao (Parametro do metodo)\n\t\t//Parametro 2: Ano e mes da execucao\n\t\tSimpleDateFormat conversorDatMes = new SimpleDateFormat(\"yyMM\");\n\t\tString datMes = conversorDatMes.format(mesAnterior(dataExecucao));\n\t\t//Parametros 3, 5 e 7: Primeiro dia do mes da execucao\n\t\tDate dataInicioMesExecucao = getPrimeiroDiaMes(dataExecucao);\n\t\t//Parametro 4: Tipo de transacao da promocao PulaPula\n\t\tString tipoTransacao = TIPO_TRANSACAO_PULA_PULA;\n\t\t//Parametro 5: Primeiro dia do mes posterior ao da execucao\n\t\tDate dataInicioProxMes = getPrimeiroDiaMes(proximoMes(dataExecucao));\n\t\t//Parametro 8: Ultimo dia do mes da execucao\n\t\tDate dataFimMesExecucao = getUltimoDiaMes(dataExecucao);\n\n\t\tString sqlClientes = getQuerySelecaoClientesRebarba();\n\t\tresult = conn.prepareStatement(sqlClientes);\t\t\n\t\tresult.setString(1, promocao);\n\t\tresult.setString(2, datMes);\n\t\tresult.setDate (3, new java.sql.Date(dataInicioMesExecucao.getTime()));\n\t\tresult.setString(4, tipoTransacao);\n\t\tresult.setDate (5, new java.sql.Date(dataInicioMesExecucao.getTime()));\n\t\tresult.setDate (6, new java.sql.Date(dataInicioProxMes.getTime()));\n\t\tresult.setDate (7, new java.sql.Date(dataInicioMesExecucao.getTime()));\n\t\tresult.setDate (8, new java.sql.Date(dataFimMesExecucao.getTime()));\n\t\t\n\t\treturn result;\n\t}", "private boolean crearResponsable(int codigoCiclo, int codigoPlan, int codigoMeta, int codigoResponsable, String estado, String usuarioInsercion) {\n/* */ try {\n/* 578 */ String s = \"select estado from cal_plan_responsables_meta r where r.codigo_ciclo=\" + codigoCiclo + \" and r.codigo_plan=\" + codigoPlan + \" and r.codigo_meta=\" + codigoMeta + \" and r.codigo_responsable=\" + codigoResponsable;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 585 */ this.dat.parseSql(s);\n/* 586 */ this.rs = this.dat.getResultSet();\n/* 587 */ if (this.rs.next()) {\n/* 588 */ s = \"update cal_plan_responsables_meta set estado='\" + estado + \"',\" + \" fecha_modificacion=\" + Utilidades.getFechaBD() + \",\" + \" usuario_modificacion='\" + usuarioInsercion + \"'\" + \" where codigo_ciclo=\" + codigoCiclo + \" and codigo_plan=\" + codigoPlan + \" and codigo_meta=\" + codigoMeta + \" and codigo_responsable=\" + codigoResponsable;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ }\n/* */ else {\n/* */ \n/* */ \n/* */ \n/* */ \n/* 599 */ s = \"insert into cal_plan_responsables_meta (codigo_ciclo,codigo_plan,codigo_meta,codigo_responsable,estado,fecha_insercion,usuario_insercion) values (\" + codigoCiclo + \",\" + \"\" + codigoPlan + \",\" + \"\" + codigoMeta + \",\" + \"\" + codigoResponsable + \",\" + \"'\" + estado + \"',\" + \"\" + Utilidades.getFechaBD() + \",\" + \"'\" + usuarioInsercion + \"'\" + \")\";\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 617 */ return this.dat.executeUpdate(s);\n/* */ \n/* */ }\n/* 620 */ catch (Exception e) {\n/* 621 */ e.printStackTrace();\n/* 622 */ Utilidades.writeError(\"CalResponsablesMetaFactory:crearRegistro\", e);\n/* */ \n/* 624 */ return false;\n/* */ } \n/* */ }", "private void saveData() {\n try {\n String query;\n query = \"INSERT INTO limit_hd (kode_limit, grup, produk, masa_limit, jumlah_limit, status, pesan_gagal, tgl_mulai_event, tgl_akhir_event, date_create, date_update) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)\";\n Connection conn = (Connection) DatabaseConnection.getConnection(dbName2);\n PreparedStatement pst = conn.prepareStatement(query);\n getMaxKodeLimit();\n maxKodeLimit += 1;\n grupColumn = cmbGrup.getSelectedItem().toString();\n produkColumn = cmbProduk.getSelectedItem().toString();\n masaLimitColumn = cmbTransactionPeriod.getSelectedItem().toString();\n jumlahLimitColumn = Integer.parseInt(txtTransactionLimit.getText());\n errorMessageColumn = txaErrorMessage.getText();\n startDate = dtpStartDateEvent.getText();\n endDate = dtpEndDateEvent.getText();\n isStatusColumn = true;\n\n SimpleDateFormat dateFormatter = new SimpleDateFormat(\"dd-MMM-yyyy\");\n\n Date sqlDate1 = (Date) dateFormatter.parse(startDate);\n Date sqlDate2 = (Date) dateFormatter.parse(endDate);\n\n java.sql.Date startEventDate = new java.sql.Date(sqlDate1.getTime());\n java.sql.Date endEventDate = new java.sql.Date(sqlDate2.getTime());\n\n pst.setInt(1, maxKodeLimit);\n pst.setString(2, grupColumn);\n pst.setString(3, produkColumn);\n pst.setString(4, masaLimitColumn);\n pst.setInt(5, jumlahLimitColumn);\n pst.setBoolean(6, isStatusColumn);\n pst.setString(7, errorMessageColumn);\n pst.setDate(8, startEventDate);\n pst.setDate(9, endEventDate);\n pst.setDate(10, java.sql.Date.valueOf(java.time.LocalDate.now()));\n pst.setDate(11, java.sql.Date.valueOf(java.time.LocalDate.now()));\n pst.executeUpdate();\n showLimitHeader();\n defaultSetVariable();\n JOptionPane.showMessageDialog(null, \"Data telah berhasil di simpan\");\n } catch (HeadlessException | SQLException e) {\n JOptionPane.showMessageDialog(this, e.getMessage());\n } catch (Exception ex) {\n Logger.getLogger(LimitAddOn.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void Consultar(String query) {\n try {\n conectionSql();\n preparedStatement = conection.prepareStatement(query);\n } catch (Exception e) {\n// MessageEmergent(\"Fail Consultar(): \"+e.getMessage());\n }\n }", "public void introducirConsumosClienteFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo,String dpiCliente) {\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);\n try {// mira los consumo de unas fechas\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT CONSUMO_RESTAURANTE.Id_Consumo,CONSUMO_RESTAURANTE.Id_Alojamiento,CONSUMO_RESTAURANTE.Nombre_Comida,CONSUMO_RESTAURANTE.Precio_Comida,CONSUMO_RESTAURANTE.Cantidad,CONSUMO_RESTAURANTE.Fecha_Consumo FROM CONSUMO_RESTAURANTE JOIN ALOJAMIENTO JOIN RESERVACION WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND ALOJAMIENTO.Id=CONSUMO_RESTAURANTE.Id_Alojamiento AND RESERVACION.Dpi_Cliente=? AND Fecha_Consumo>=? AND Fecha_Consumo<=?\");\n declaracion.setString(1, dpiCliente);\n declaracion.setDate(2,fechaInicialSql);\n declaracion.setDate(3,fechaFinalSQL);\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {// mira los consumo de unas fechas\n Object objeto[] = new Object[7];\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);\n objeto[2] = resultado.getString(3);\n objeto[3] = resultado.getInt(4);// mira los consumo de unas fechas\n objeto[4] = resultado.getInt(5);\n objeto[5] = resultado.getDate(6);\n int total = (Integer)objeto[3]*(Integer)objeto[4];\n objeto[6]= total;// mira los consumo de unas fechas\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "private void TampilData(){\n try{ //\n String sql = \"SELECT * FROM buku\"; // memanggil dari php dengan tabel buku\n stt = con.createStatement(); // membuat statement baru dengan mengkonekan ke database\n rss = stt.executeQuery(sql); \n while (rss.next()){ \n Object[] o = new Object [3]; // membuat array 3 dimensi dengan nama object\n \n o[0] = rss.getString(\"judul\"); // yang pertama dengan ketentuan judul\n o[1] = rss.getString(\"penulis\"); // yang kedua dengan ketentuan penulis\n o[2] = rss.getInt(\"harga\"); // yang ketiga dengan ketentuan harga\n model.addRow(o); // memasukkan baris dengan mengkonekan di tabel model\n } \n }catch(SQLException e){ // memanipulasi kesalahan\n System.out.println(\"ini error\"); // menampilkan pesan ini error\n }\n }", "@SuppressWarnings(\"unchecked\")\r\n\tprivate void cargarLista(String sql1, String sql2) {\r\n\t\tlistaPlantaCargoDet = new ArrayList<PlantaCargoDet>();\r\n\t\tlistaPuestosReservados = new ArrayList<ConcursoPuestoDet>();\r\n\t\tlistaPlantaCargoDto = new ArrayList<PlantaCargoDetDTO>();\r\n\t\tlistaPlantaCargoDet = em.createNativeQuery(sql1, PlantaCargoDet.class)\r\n\t\t\t\t.getResultList();\r\n\t\tlistaPuestosReservados = em.createNativeQuery(sql2,\r\n\t\t\t\tConcursoPuestoDet.class).getResultList();\r\n\t\tif (listaPuestosReservados.size() > 0) {\r\n\t\t\tcantReservados = listaPuestosReservados.size();\r\n\t\t\tfor (ConcursoPuestoDet r : listaPuestosReservados) {\r\n\t\t\t\tPlantaCargoDetDTO dto = new PlantaCargoDetDTO();\r\n\t\t\t\tLong id = r.getPlantaCargoDet().getIdPlantaCargoDet();\r\n\t\t\t\tdto.setPlantaCargoDet(r.getPlantaCargoDet());\r\n\t\t\t\tdto.setReservar(true);\r\n\t\t\t\tlistaPlantaCargoDto.add(dto);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tcantReservados = 0;\r\n\t\t}\r\n\r\n\t\tif (listaPlantaCargoDet.size() > 0) {\r\n\t\t\tfor (PlantaCargoDet p : listaPlantaCargoDet) {\r\n\t\t\t\tBoolean esta = false;\r\n\t\t\t\tfor (ConcursoPuestoDet r : listaPuestosReservados) {\r\n\t\t\t\t\tif (r.getPlantaCargoDet().equals(p))\r\n\t\t\t\t\t\testa = true;\r\n\t\t\t\t}\r\n\t\t\t\tif (!esta) {\r\n\r\n\t\t\t\t\tPlantaCargoDetDTO dto = new PlantaCargoDetDTO();\r\n\t\t\t\t\tdto.setPlantaCargoDet(p);\r\n\t\t\t\t\tdto.setReservar(false);\r\n\t\t\t\t\tlistaPlantaCargoDto.add(dto);\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void consultarDatos() throws SQLException {\n String instruccion = \"SELECT * FROM juegos.juegos\";\n try {\n comando = conexion.createStatement();\n resultados = comando.executeQuery(instruccion);\n } catch (SQLException e) {\n e.printStackTrace();\n throw e;\n }\n }", "public void introducirConsumosHabitacion(TablaModelo modelo,String idHabitacion) {\n int idHabitacionInt = Integer.parseInt(idHabitacion);\n try {// mira los consumo de unas fechas\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT CONSUMO_RESTAURANTE.Id_Consumo,CONSUMO_RESTAURANTE.Id_Alojamiento,CONSUMO_RESTAURANTE.Nombre_Comida,CONSUMO_RESTAURANTE.Precio_Comida,CONSUMO_RESTAURANTE.Cantidad,CONSUMO_RESTAURANTE.Fecha_Consumo FROM CONSUMO_RESTAURANTE JOIN ALOJAMIENTO JOIN RESERVACION WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND ALOJAMIENTO.Id=CONSUMO_RESTAURANTE.Id_Alojamiento AND RESERVACION.Id_Habitacion=?\");\n declaracion.setInt(1, idHabitacionInt);// mira los consumo de unas fechas\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {\n Object objeto[] = new Object[7];// mira los consumo de unas fechas\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);// mira los consumo de unas fechas\n objeto[2] = resultado.getString(3);\n objeto[3] = resultado.getInt(4);\n objeto[4] = resultado.getInt(5);// mira los consumo de unas fechas\n objeto[5] = resultado.getDate(6);\n int total = (Integer)objeto[3]*(Integer)objeto[4];\n objeto[6]= total;// mira los consumo de unas fechas\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "private void cargaInfoEmpleado(){\r\n Connection conn = null;\r\n Conexion conex = null;\r\n try{\r\n if(!Config.estaCargada){\r\n Config.cargaConfig();\r\n }\r\n conex = new Conexion();\r\n conex.creaConexion(Config.host, Config.user, Config.pass, Config.port, Config.name, Config.driv, Config.surl);\r\n conn = conex.getConexion();\r\n if(conn != null){\r\n ArrayList<Object> paramsIn = new ArrayList();\r\n paramsIn.add(txtLogin);\r\n QryRespDTO resp = new Consulta().ejecutaSelectSP(conn, IQryUsuarios.NOM_FN_OBTIENE_INFO_USUARIOWEB, paramsIn);\r\n System.out.println(\"resp: \" + resp.getRes() + \"-\" + resp.getMsg());\r\n if(resp.getRes() == 1){\r\n ArrayList<ColumnaDTO> listaColumnas = resp.getColumnas();\r\n for(HashMap<String, CampoDTO> fila : resp.getDatosTabla()){\r\n usuario = new UsuarioDTO();\r\n \r\n for(ColumnaDTO col: listaColumnas){\r\n switch(col.getIdTipo()){\r\n case java.sql.Types.INTEGER:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Integer.parseInt(fila.get(col.getEtiqueta()).getValor().toString().replaceAll(\",\", \"\").replaceAll(\"$\", \"\").replaceAll(\" \", \"\")));\r\n break;\r\n \r\n case java.sql.Types.DOUBLE:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Double.parseDouble(fila.get(col.getEtiqueta()).getValor().toString()));\r\n break;\r\n \r\n case java.sql.Types.FLOAT:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Float.parseFloat(fila.get(col.getEtiqueta()).getValor().toString()));\r\n break;\r\n \r\n case java.sql.Types.DECIMAL:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Float.parseFloat(fila.get(col.getEtiqueta()).getValor().toString()));\r\n break;\r\n \r\n case java.sql.Types.VARCHAR:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"\":fila.get(col.getEtiqueta()).getValor().toString());\r\n break;\r\n \r\n case java.sql.Types.NUMERIC:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Float.parseFloat(fila.get(col.getEtiqueta()).getValor().toString()));\r\n break;\r\n \r\n default:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"\":fila.get(col.getEtiqueta()).getValor().toString());\r\n break;\r\n } \r\n }\r\n }\r\n sesionMap.put(\"UsuarioDTO\", usuario);\r\n }else{\r\n context.getExternalContext().getApplicationMap().clear();\r\n context.getExternalContext().redirect(\"index.xhtml\");\r\n }\r\n }\r\n }catch(Exception ex){\r\n System.out.println(\"Excepcion en la cargaInfoEmpleado: \" + ex);\r\n }finally{\r\n try{\r\n conn.close();\r\n }catch(Exception ex){\r\n \r\n }\r\n }\r\n }", "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 }", "public void buscaxcodigo() {\r\n try {\r\n modelo.setCodigobarras(vista.jTbcodigobarras.getText());//C.P.M mandamos el codigo de barras ingresado\r\n rs = modelo.Buscarxcodigobarras();//C.P.M mandamos a consultar ese codigo de barras\r\n DefaultTableModel buscar = new DefaultTableModel() {//C.P.M instanciamos el modelo de la tabla\r\n @Override\r\n public boolean isCellEditable(int rowIndex, int vColIndex) {\r\n return false;\r\n }\r\n };\r\n vista.jTbuscar.setModel(buscar);//C.P.M le mandamos el modelo a la tabla\r\n modelo.estructuraProductos(buscar);//C.P.M obtenemos la estructura de la tabla \"Encabezados\"\r\n ResultSetMetaData rsMd = rs.getMetaData();//C.P.M obtenemos los metadatos de la consulta\r\n int cantidadColumnas = rsMd.getColumnCount();//C.P.M obtenemos las columnas de la consulta\r\n\r\n while (rs.next()) {//C.P.M recorremos el resultado\r\n Object[] fila = new Object[cantidadColumnas];//C.P.M creamos un vector con el tamano de las columnas de el resultado\r\n for (int i = 0; i < cantidadColumnas; i++) {//C.P.M recorremos el arreglo\r\n fila[i] = rs.getObject(i + 1);//C.P.M y vamos insertando el resultado\r\n }\r\n buscar.addRow(fila);//C.P.M le mandamos el arreglo como renglon nuevo\r\n }\r\n\r\n } catch (SQLException ex) {\r\n JOptionPane.showMessageDialog(null, \"Ocurrio un error al buscar por codigo de barras\");\r\n }\r\n }", "public ArrayList<clsPago> consultaDataPagosCuotaInicial(int codigoCli)\n { \n ArrayList<clsPago> data = new ArrayList<clsPago>(); \n try{\n bd.conectarBaseDeDatos();\n sql = \" SELECT a.id_pagos_recibo idPago, a.id_usuario, b.name name_usuario, \"\n + \" a.referencia referencia, \"\n + \" a.fecha_pago fecha_pago, a.estado, \"\n + \" a.valor valor_pago, a.id_caja_operacion, e.name_completo nombre_cliente, \"\n + \" a.fecha_pago fecha_registro\"\n + \" FROM ck_pagos_recibo AS a\"\n + \" JOIN ck_usuario AS b ON a.id_usuario = b.id_usuario\"\n + \" JOIN ck_cliente AS e ON a.codigo = e.codigo\"\n + \" WHERE a.estado = 'A'\"\n + \" AND a.cuota_inicial = 'S'\"\n + \" AND a.estado_asignado = 'N'\"\n + \" AND a.codigo = \" + codigoCli; \n \n System.out.println(sql);\n bd.resultado = bd.sentencia.executeQuery(sql);\n \n if(bd.resultado.next())\n { \n do \n { \n clsPago oListaTemporal = new clsPago();\n \n oListaTemporal.setReferencia(bd.resultado.getString(\"referencia\"));\n oListaTemporal.setFechaPago(bd.resultado.getString(\"fecha_pago\"));\n oListaTemporal.setNombreUsuario(bd.resultado.getString(\"name_usuario\"));\n oListaTemporal.setNombreCliente(bd.resultado.getString(\"nombre_cliente\"));\n oListaTemporal.setValor(bd.resultado.getDouble(\"valor_pago\"));\n oListaTemporal.setFechaRegistro(bd.resultado.getString(\"fecha_registro\"));\n oListaTemporal.setIdPago(bd.resultado.getInt(\"idPago\"));\n data.add(oListaTemporal);\n }\n while(bd.resultado.next()); \n //return data;\n }\n else\n { \n data = null;\n } \n }\n catch(Exception ex)\n {\n System.out.print(ex);\n data = null;\n } \n bd.desconectarBaseDeDatos();\n return data;\n }", "public List<Produto> consultarProdutos(int consulta, String valor) {\r\n ConexaoBDJavaDB conexaoBD = new ConexaoBDJavaDB(\"routeexpress\");\r\n Connection conn = null;\r\n Statement stmt = null;\r\n ResultSet rs = null;\r\n List<Produto> produtos = new ArrayList<>();\r\n try {\r\n conn = conexaoBD.obterConexao();\r\n stmt = conn.createStatement();\r\n //Se a consulta for igual a zero(0) uma lista de todos os produtos \"cervejas\" e recuperada\r\n if (consulta == 0) {\r\n rs = stmt.executeQuery(consultas[consulta]);\r\n //Se a consulta for igual a tres(3) uma lista de todos os produtos \"cervejas\" e recuperada a parti do preco\r\n } else {\r\n rs = stmt.executeQuery(consultas[consulta] + \"'\" + valor + \"'\");\r\n }\r\n Produto produto;\r\n while (rs.next()) {\r\n produto = new Produto();\r\n produto.setIdCervejaria(rs.getInt(\"ID_CERVEJARIA\"));\r\n produto.setCervejaria(rs.getString(\"CERVEJARIA\"));\r\n produto.setPais(rs.getString(\"PAIS\"));\r\n produto.setIdCerveja(rs.getInt(\"ID_CERVEJA\"));\r\n produto.setIdFkCervajaria(rs.getInt(\"FK_CERVEJARIA\"));\r\n produto.setRotulo(rs.getString(\"ROTULO\"));\r\n produto.setPreco(rs.getString(\"PRECO\"));\r\n produto.setVolume(rs.getString(\"VOLUME\"));\r\n produto.setTeor(rs.getString(\"TEOR\"));\r\n produto.setCor(rs.getString(\"COR\"));\r\n produto.setTemperatura(rs.getString(\"TEMPERATURA\"));\r\n produto.setFamiliaEEstilo(rs.getString(\"FAMILIA_E_ESTILO\"));\r\n produto.setDescricao(rs.getString(\"DESCRICAO\"));\r\n produto.setSabor(rs.getString(\"SABOR\"));\r\n produto.setImagem1(rs.getString(\"IMAGEM_1\"));\r\n produto.setImagem2(rs.getString(\"IMAGEM_2\"));\r\n produto.setImagem3(rs.getString(\"IMAGEM_3\"));\r\n produtos.add(produto);\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (ClassNotFoundException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n if (conn != null) {\r\n try {\r\n conn.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (stmt != null) {\r\n try {\r\n stmt.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (rs != null) {\r\n try {\r\n rs.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }\r\n return produtos;\r\n }", "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 void makeSql() {\n\t\tfor(int i=0; i<arr_sql.length; i++) {\n\t\t\tarr_sql[i] = new StringBuffer();\n\t\t}\n\t\t\n\t\t/*\n\t\t * 공통코드 쿼리\n\t\t * 대리점구분 : CU006\n\t\t * 직판구분 : CU012\n\t\t * 지역 : SY006\n\t\t * 계약상태 : CU013\n\t\t * 사용유무 : SY011\n\t\t * 보증보험회사 : CU010\n\t\t * 하위대리점여부 : CU011\n\t\t */\n\t\tarr_sql[0].append (\"SELECT\t\t\t\t\t\t\t\t\t\t\\n\")\n\t\t\t\t .append (\"\t' ' head, ' ' detail, '전체' detail_nm \\n\")\n\t\t\t\t .append (\"FROM DUAL \\n\")\n\t\t\t\t .append (\"UNION ALL \\n\")\n\t\t\t\t .append (\"SELECT \\n\")\n\t\t\t\t .append (\"\tB.head, B.detail, B.detail_nm \\n\")\n\t\t\t\t .append (\"FROM \\n\")\n\t\t\t\t .append (\"\tSALES.TSY011 A, \\n\")\n\t\t\t\t .append (\"\tSALES.TSY010 B \\n\")\n\t\t\t\t .append (\"WHERE 1=1 \\n\")\n\t\t\t\t .append (\" AND A.head = B.head \\n\")\n\t\t\t\t .append (\" AND B.head = ? \\n\")\n\t\t\t\t .append (\" AND LENGTH (rtrim(B.detail)) > 0 \\n\");\n\t\t\n\t\t/*\n\t\t * 대리점 조회\n\t\t */\n\t\tarr_sql[1].append(\"SELECT T1.client_sid\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 매출처SID \t*/\n\t \t\t .append(\"\t\t ,T1.vend_cd \t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\\n\")\t/* [회계]거래처 코드 \t*/\n\t \t\t .append(\"\t\t ,T1.client_cd \t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\\n\")\t/* 매출처 코드 \t*/\n\t \t\t .append(\"\t\t ,T1.client_nm \t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\\n\")\t/* 매출처 명 \t*/\n\t \t\t .append(\"\t\t ,T1.client_gu \t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\\n\")\t/* 매출처구분 :CU005 \t*/\n\t \t\t \n\t \t\t .append(\"\t\t ,T1.agen_gu \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 대리점구분 :CU006 \t*/\n\t \t\t .append(\"\t\t ,T1.dir_yn \t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\\n\")\t/* 직판여부 :CU012 \t*/\n\t \t\t .append(\"\t\t ,T1.area_cd \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 지역코드 :SY006 \t*/\n\t \t\t .append(\"\t\t ,T1.sal_dam_sid \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 영업담당자코드[TSY410] */\n\t \t\t .append(\"\t\t ,T1.client_dam_nm \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 매출처담당자 \t*/\n\t \t\t \n\t \t\t .append(\"\t\t ,T1.tel_no \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 전화번호 \t*/\n\t \t\t .append(\"\t\t ,T1.mobile_no \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 휴대전화 \t*/\n\t \t\t .append(\"\t\t ,T1.fax_no \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* FAX번호 \t*/\n\t \t\t .append(\"\t\t ,T1.e_mail \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 이메일 \t*/\n\t \t\t .append(\"\t\t ,T1.zip_cd \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 우편번호[TSY110] */\n\t \t\t \n\t \t\t .append(\"\t\t ,T1.address1 \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 주소1 \t*/\n\t \t\t .append(\"\t\t ,T1.address2 \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 주소2 \t*/\n\t \t\t .append(\"\t\t ,T1.commi_rate \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 수수료율 \t*/\n\t \t\t .append(\"\t\t ,T1.cunt_status \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 계약상태 :CU013 \t*/\n\t \t\t .append(\"\t\t ,T1.bancod \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 은행코드 [BANKCODE] */\n\t \t\t \n\t \t\t .append(\"\t\t ,T1.bank_acc_no \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 은행계좌번호 \t*/\n\t \t\t .append(\"\t\t ,T1.bank_acct_nm \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 예금주 \t*/\n\t \t\t .append(\"\t\t ,T1.use_yn \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 사용여부 :SY011 \t*/ \n\t \t\t .append(\"\t\t ,T1.client_url\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 홈페이지 URL\t\t\t\t*/\n\t \t\t .append(\"\t\t ,T2.sal_dam_nm \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 영업담당자명 \t*/\n\t \t\t .append(\"\t\t ,T3.vend_nm \t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\\n\")\t/* 거래처명 \t*/\n\t \t\t \n\t \t\t .append(\"\t\t ,T4.bannam \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 은행명 \t*/\n\t \t\t .append(\"\t\t ,SALES.FN_DETAIL_NM ( 'CU006',T1.agen_gu) AS agen_gu_name \t\t\t\t\t\\n\")\t/* 대리점구분명 \t\t\t\t*/ \n\t \t\t .append(\"\t\t ,SALES.FN_DETAIL_NM ( 'CU012',T1.dir_yn) AS dir_yn_name \t\t\t\t\t\\n\")\t/* 직판여부명 \t\t\t\t*/ \n\t \t\t .append(\"\t\t ,SALES.FN_DETAIL_NM ( 'SY006',T1.area_cd) AS area_nm\t\t\t\t\t\t\t\\n\")\t/* 지역명 \t\t\t\t*/\n\t \t\t .append(\"\t\t ,SALES.FN_DETAIL_NM ( 'CU013',T1.cunt_status) AS cunt_status_name \t\t\t\\n\")\t/* 계약상태명 \t\t\t\t*/\n\n\t \t\t .append(\"\t\t ,SALES.FN_DETAIL_NM ( 'SY011',T1.use_yn) AS use_yn_name \t\t\t\\n\")\t/* 사용여부명 \t\t\t \t*/\n\n\t \t\t .append(\"FROM SALES.TCU030 T1 LEFT OUTER JOIN SALES.TSY410 T2 ON T1.SAL_DAM_SID = T2.SAL_DAM_SID \\n\")\n\t \t\t .append(\"\t\t LEFT OUTER JOIN ACCOUNT.GCZM_VENDER T3 ON T1.VEND_CD = T3.VEND_CD \t\t\t\t\t\\n\")\n\t \t\t .append(\"\t\t LEFT OUTER JOIN ACCOUNT.BANKCODE T4 ON T1.BANCOD = T4.BANCOD \t\t\t\t\t\\n\")\n\t \t\t .append(\"WHERE 1 = 1 \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\n\t \t\t .append(\"\t\t AND T1.client_GU = '1' \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\");\n\t\t/*\n\t\t * 계약정보 조회\n\t\t */\n\t\tarr_sql[2].append(\"SELECT T1.client_sid\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 매출처SID \t*/\n\t\t\t\t .append(\"\t\t ,T1.cont_date\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\") \t/* 계약일자 \t*/\n\t\t\t\t .append(\"\t\t ,T1.expire_date\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 만기일자 \t*/\n\t\t\t\t .append(\"\t\t ,TO_NUMBER(T1.insur_amt) AS insur_amt\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 보험료 \t*/\n\t\t\t\t .append(\"\t\t ,T1.insur_comp_cd\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 보증보험회사:CU010 \t*/\n\t\t\t\t .append(\"\t\t ,SALES.FN_DETAIL_NM ('CU010',T1.insur_comp_cd) AS insur_comp_cd_name\t\t\\n\") \t/* 보증보험회사명 \t\t*/ \n\t\t\t\t .append(\"FROM SALES.TCU031 T1 \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\n\t\t\t\t .append(\"WHERE 1=1\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\");\n\t\t \n\t\n\t\t/*\n\t\t * 지점정보 조회\n\t\t */\n\t\tarr_sql[3].append(\"SELECT T1.client_sid\t\t\t\t\t\t\t\t\t\t\t\t\\n\") \t/* 매출처SID \t\t*/\n\t\t\t\t .append(\"\t\t ,T1.branch_cd\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 지점코드 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,T1.branch_nm \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\") \t/* 지점명 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,T1.area_cd\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\") \t/* 지역코드:SY006 \t\t*/\n\t\t\t\t .append(\"\t\t ,T1.client_down_yn \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 하위대리점여부:CU011 \t*/\n\t\t\t\t .append(\"\t\t ,T1.empno \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 담당자 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,T1.tel_no \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 전화번호 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,T1.mobile_no \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 휴대폰 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,T1.fax_no \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 팩스번호 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,T1.branch_url \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 지점홈페이지 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,SALES.FN_DETAIL_NM ( 'SY006', T1.area_cd) AS area_nm\t\t\t\t\t\t\t\\n\") \t/* 지역명:SY006 \t\t*/\n\t\t\t\t .append(\"\t\t ,SALES.FN_DETAIL_NM ( 'CU011',T1.client_down_yn) AS client_down_yn_name \t\\n\")\t/* 하위대리점여부명 \t\t*/\n\t\t\t\t .append(\"FROM SALES.TCU032 T1\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\");\n\t\t\n\t\t\n\t\t/*\n\t\t * 대리점 등록\n\t\t */\n\n\t\tarr_sql[4].append(\"INSERT INTO SALES.TCU030 (\")\n\t\t\t\t .append(\"\t\t\t\t client_sid \\n\")\t\n\t\t\t\t .append(\"\t\t\t\t,vend_cd \\n\")\t/* [회계]거래처 코드 \t*/\n\t\t\t\t .append(\"\t\t\t\t,client_cd \\n\")\t/* 매출처 코드 \t*/\n\t\t\t\t .append(\"\t\t\t\t,client_nm \\n\")\t/* 매출처 명 \t*/\n\t\t\t\t .append(\"\t\t\t\t,client_gu \\n\")\t/* 매출처구분 :CU005 \t*/\n\t\t\t\t .append(\"\t\t\t\t,agen_gu \\n\")\t/* 대리점구분 :CU006 \t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t\t\t,dir_yn \\n\")\t/* 직판여부 :CU012 \t*/\n\t\t\t\t .append(\"\t\t\t\t,area_cd \\n\")\t/* 지역코드 :SY006 \t*/\n\t\t\t\t .append(\"\t\t\t\t,sal_dam_sid \\n\")\t/* 영업담당자코드[TSY410] \t*/\n\t\t\t\t .append(\"\t\t\t\t,client_dam_nm \\n\")\t/* 매출처담당자 \t*/\n\t\t\t\t .append(\"\t\t\t\t,tel_no \\n\")\t/* 전화번호 \t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t\t\t,mobile_no \\n\")\t/* 핸드폰 \t*/\n\t\t\t\t .append(\"\t\t\t\t,fax_no \\n\")\t/* FAX번호 \t*/\n\t\t\t\t .append(\"\t\t\t\t,e_mail \\n\")\t/* 이메일 \t*/\n\t\t\t\t .append(\"\t\t\t\t,zip_cd \\n\")\t/* 소재지우편번호[TSY110] */\n\t\t\t\t .append(\"\t\t\t\t,address1 \\n\")\t/* 소재지주소1 \t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t\t\t,address2 \\n\")\t/* 소재지주소2 \t*/\n\t\t\t\t .append(\"\t\t\t\t,commi_rate \t\\n\") \t/* 수수료율 \t*/\n\t\t\t\t .append(\"\t\t\t\t,cunt_status \\n\")\t/* 계약상태 :CU013 \t*/\n\t\t\t\t .append(\"\t\t\t\t,bancod\t\t\t\\n\") \t/* 은행코드 \t\t\t\t\t*/\n\t\t\t\t .append(\"\t\t\t\t,bank_acc_no \\n\")\t/* 은행계좌번호[BANKCODE] \t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t\t\t,bank_acct_nm\t\\n\")\t/* 예금주 \t\t\t\t\t*/\n\t\t\t\t .append(\"\t\t\t\t,use_yn\t\t\t\\n\")\t/* 사용여부 \t\t\t\t\t*/\n\t\t\t\t\n\t\t\t\t .append(\"\t\t \t\t,u_date \t\\n\") \t/* 최종수정일자 \t*/\n\t \t\t .append(\"\t\t \t\t,u_empno \t\\n\")\t/* 최종수정자사번 \t*/\n\t \t\t .append(\"\t\t \t\t,u_ip \\n\")\t/* 최종수정IP */\t\t\t\n\t \t\t .append(\"\t\t\t\t,client_url\t\t\\n\")\t/* 홈페이지 */\n\t\t\t\t .append(\"\t\t\t)\t\t\t\t\t\\n\")\n\t\t\t\t \n\t\t\t\t .append(\"VALUES\t\t\t\t\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t(\t \t\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t\tSALES.SWS_TCU030_ID.NEXTVAL,?,?,?,?,?,\t\t\\n\")\t\n\t\t\t\t .append(\"\t\t\t\t?,?,?,?,?,\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t\t?,?,?,?,?,\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t\t?,?,?,?,?,\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t\t?,?,SYSTIMESTAMP,?,?,?\t\\n\")\n\t\t\t\t .append(\"\t\t\t)\");\n\t\t\n\t\n\t\t\n\t\t/*\n\t\t * 계약정보 등록\n\t\t */\n\t\tarr_sql[5].append(\"INSERT INTO SALES.TCU031 ( \t\\n\")\n\t\t\t\t .append(\" \t client_SID\t\t\t\\n\")\t/* 매출처SID \t*/\n\t\t\t\t .append(\"\t\t ,cont_date\t\t\t\t\\n\") \t/* 계약일자 \t*/\n\t\t\t\t .append(\"\t\t ,expire_date\t\t\t\\n\")\t/* 만기일자 \t*/\n\t\t\t\t .append(\"\t\t ,insur_amt\t\t\t\t\\n\")\t/* 보험료 \t*/\n\t\t\t\t .append(\"\t\t ,insur_comp_cd\t\t\t\\n\")\t/* 보증보험회사:CU010 \t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t ,u_date\t\t\t\t\\n\")\t/* 최종수정일자 \t*/\n\t\t\t\t .append(\"\t\t ,u_empno \t\t\t\t\\n\") \t/* 최종수정자사번 \t*/\n\t\t\t\t .append(\"\t\t ,u_ip\t\t\t\t\t\\n\")\t/* 최종수정IP \t*/\n\t\t\t\t .append(\"\t\t)\t\t\t\t\t\t\\n\")\n\t\t\t\t \n\t\t\t\t .append(\"VALUES\t\t\t\t\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t(\t \t\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t\t?,?,?,?,?,\t\t\\n\")\t\n\t\t\t\t .append(\"\t\t\t\tSYSTIMESTAMP,?,?\t\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t)\");\n\t\t\t\t\t\n\t\t/*\n\t\t * 지점정보 등록\n\t\t */\n\t\t\n\t\tarr_sql[6].append(\"INSERT INTO SALES.TCU032 ( \t\\n\")\n\t\t\t\t .append(\"\t\t client_SID\t\t\t\\n\") \t/* 매출처SID \t\t*/\n\t\t\t\t .append(\"\t\t ,branch_cd\t\t\t\t\\n\")\t/* 지점코드 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,branch_nm \t\t\t\\n\") \t/* 지점명 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,area_cd\t\t\t\t\\n\") \t/* 지역코드:SY006 \t\t*/\n\t\t\t\t .append(\"\t\t ,client_down_yn \t\t\\n\")\t/* 하위대리점여부:CU011 \t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t ,empno \t\t\t\t\\n\")\t/* 담당자 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,tel_no \t\t\t\t\\n\")\t/* 전화번호 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,mobile_no \t\t\t\\n\")\t/* 휴대폰 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,fax_no \t\t\t\t\\n\")\t/* 팩스번호 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,branch_url \t\t\t\\n\")\t/* 지점홈페이지 \t\t\t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t ,u_date \t\t\t\t\\n\")\t/* 최종수정일자 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,u_empno \t\t\t\t\\n\")\t/* 최종수정자사번 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,u_ip \t\t\t\t\\n\")\t/* 최종수정IP \t\t*/\n\t\t\t\t .append(\"\t)\t\t\t\t\t\t\\n\")\n\t\t\t\t .append(\"VALUES\t\t\t\t\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t(\t \t\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t\t?,?,?,?,?,\t\t\\n\")\t\n\t\t\t\t .append(\"\t\t\t\t?,?,?,?,?,\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t\tSYSTIMESTAMP,?,?\t\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t)\");\n\t\t\n\t\t/*\n\t\t * 대리점 수정\n\t\t */\n\n\t\tarr_sql[7].append(\"UPDATE SALES.TCU030 SET \t\t\t\t\t\t\\n\")\n\t\t\t\t .append(\"\t\t vend_cd\t\t= ? \t\t\t\t\\n\")\t/* [회계]거래처 코드 \t*/\n\t\t\t\t .append(\"\t\t,client_nm\t\t= ? \t\t\t\t\\n\")\t/* 매출처 명 \t*/\n\t\t\t\t .append(\"\t\t,agen_gu\t\t= ? \t\t\t\t \t\\n\")\t/* 대리점구분 :CU006 \t*/\n\t\t\t\t .append(\"\t\t,dir_yn\t\t\t= ? \t\t\t\t\\n\")\t/* 직판여부 :CU012 \t*/\n\t\t\t\t .append(\"\t\t,area_cd \t= ? \t\t\t\t\t\\n\")\t/* 지역코드 :SY006 \t*/\n\n\t\t\t\t .append(\"\t\t,sal_dam_sid\t= ? \t\t\t\t\t\\n\")\t/* 영업담당자코드[TSY410] */\n\t\t\t\t .append(\"\t\t,client_dam_nm\t= ? \t\t\t\t\t\\n\")\t/* 매출처담당자 \t*/\n\t\t\t\t .append(\"\t\t,tel_no = ?\t\t\t\t\t\t\\n\")\t/* 전화번호 \t*/\n\t\t\t\t .append(\"\t\t,mobile_no = ?\t\t\t\t\t\t\\n\")\t/* 핸드폰 \t*/\n\t\t\t\t .append(\"\t\t,fax_no = ?\t\t\t\t\t\t\\n\")\t/* FAX번호 \t*/\n\n\t\t\t\t .append(\"\t\t,e_mail = ?\t\t\t\t\t\t\\n\")\t/* 이메일 \t*/\n\t\t\t\t .append(\"\t\t,zip_cd = ?\t\t\t\t\t\t\\n\")\t/* 소재지우편번호[TSY110] \t*/\n\t\t\t\t .append(\"\t\t,address1 = ?\t\t\t\t\t\t\\n\")\t/* 소재지주소1 \t*/\n\t\t\t\t .append(\"\t\t,address2 = ?\t\t\t\t\t\t\\n\")\t/* 소재지주소2 \t*/\n\t\t\t\t .append(\"\t\t,commi_rate \t= ?\t\t\t\t\t\t\\n\") \t/* 수수료율 \t*/\n\n\t\t\t\t .append(\"\t\t,cunt_status = ?\t\t\t\t\t\t\\n\")\t/* 계약상태 :CU013 \t*/\n\t\t\t\t .append(\"\t\t,bancod\t\t\t= ?\t\t\t\t\t\t\\n\") \t/* 은행코드\t \t\t\t\t*/\n\t\t\t\t .append(\"\t\t,bank_acc_no = ?\t\t\t\t\t\t\\n\")\t/* 은행계좌번호[BANKCODE]\t\t*/\n\t\t\t\t .append(\"\t\t,bank_acct_nm\t= ?\t\t\t\t\t\t\\n\")\t/* 예금주 \t\t\t\t\t*/\n\t\t\t\t .append(\"\t\t,use_yn\t\t\t= ?\t\t\t\t\t\t\\n\")\t/* 사용여부 \t\t\t\t\t*/\n\n\t\t\t\t .append(\"\t\t,u_date \t= SYSTIMESTAMP\t\t\\n\") \t/* 최종수정일자 \t*/\n\t \t\t .append(\"\t\t,u_empno \t= ?\t\t\t\t\t\t\\n\")\t/* 최종수정자사번 \t*/\n\t \t\t .append(\"\t\t,u_ip = ?\t\t\t\t\t\t\\n\")\t/* 최종수정IP */\n\t \t\t .append(\"\t,client_url = ?\t\t\t\t\t\t\\n\")\t/* 홈페이지 */\n\t\t\t\t .append (\"WHERE client_sid \t= ? \t\t\t\t\\n\");\n\t\t\t\t \n\t\t/*\n\t\t * 계약정보 수정\n\t\t */\n\t\tarr_sql[8].append(\"UPDATE SALES.TCU031 SET\t\t\t\t\t\t\\n\")\n\t\t\t\t .append(\"\t\t cont_date\t\t\t= ?\t\t\t\t\t\\n\") \t/* 계약일자 \t*/\n\t\t\t\t .append(\"\t\t ,expire_date\t\t= ?\t\t\t\t\t\\n\")\t/* 만기일자 \t*/\n\t\t\t\t .append(\"\t\t ,insur_amt\t\t\t= ?\t\t\t\t\t\\n\")\t/* 보험료 \t*/\n\t\t\t\t .append(\"\t\t ,insur_comp_cd\t\t= ?\t\t\t\t\t\\n\")\t/* 보증보험회사:CU010 \t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t ,u_date\t\t\t= SYSTIMESTAMP\t\\n\")\t/* 최종수정일자 \t*/\n\t\t\t\t .append(\"\t\t ,u_empno \t\t\t= ?\t\t\t\t\t\\n\") \t/* 최종수정자사번 \t*/\n\t\t\t\t .append(\"\t\t ,u_ip\t\t\t\t= ?\t\t\t\t\t\\n\")\t/* 최종수정IP \t*/\n\t\t\t\t .append (\"WHERE client_sid \t\t= ? AND cont_date = ? \\n\");\n\t\t\t\t\n\t\t\t\t \n\t\t\t\t\t\n\t\t/*\n\t\t * 지점정보 수정\n\t\t */\n\t\t\n\t\tarr_sql[9].append(\"UPDATE SALES.TCU032 SET \t\t\t\t\t\t\t\\n\")\n\t\t\t\t .append(\"\t\t branch_nm \t\t= ?\t\t\t\t\t\t\\n\") \t/* 지점명 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,area_cd\t\t\t= ?\t\t\t\t\t\t\\n\") \t/* 지역코드:SY006 \t\t*/\n\t\t\t\t .append(\"\t\t ,client_down_yn \t= ?\t\t\t\t\t\t\\n\")\t/* 하위대리점여부:CU011 \t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t ,empno \t\t\t= ?\t\t\t\t\t\t\\n\")\t/* 담당자 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,tel_no \t\t\t= ?\t\t\t\t\t\t\\n\")\t/* 전화번호 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,mobile_no \t\t= ?\t\t\t\t\t\t\\n\")\t/* 휴대폰 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,fax_no \t\t\t= ?\t\t\t\t\t\t\\n\")\t/* 팩스번호 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,branch_url \t\t= ?\t\t\t\t\t\t\\n\")\t/* 지점홈페이지 \t\t\t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t ,u_date \t\t\t= SYSTIMESTAMP\t\t\t\t\t\t\\n\")\t/* 최종수정일자 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,u_empno \t\t\t= ?\t\t\\n\")\t/* 최종수정자사번 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,u_ip \t\t\t= ?\t\t\t\t\t\t\\n\")\t/* 최종수정IP \t\t*/\n\t\t\t\t .append (\"WHERE client_sid = ? AND branch_cd \t= ?\t\t\\n\");\n\t\t\n\t\t arr_sql[10].append(\"DELETE FROM SALES.TCU030 WHERE client_sid = ?\");\t\n\t\t arr_sql[11].append(\"DELETE FROM SALES.TCU031 WHERE client_sid = ? AND cont_date = ?\");\n\t\t arr_sql[12].append(\"DELETE FROM SALES.TCU032 WHERE client_sid = ? AND branch_cd = ?\");\n\t\t \n\t\t \n\t\t /*\n\t\t * Client SID 얻어오기\n\t\t */\n\t\t\t\n\t\t\tarr_sql[13].append(\"SELECT client_sid FROM SALES.TCU030 WHERE client_cd = ?\\n\");\n\t\t\t\n\t\t/*\n\t\t * 수수료율 조회\n\t\t */\n\t\t\tarr_sql[14].append(\"SELECT\t\t\t\t\t\t\t\t\\n\")\n\t\t\t\t\t\t.append(\" T1.CLIENT_SID AS CLIENT_SID\t\\n\") /* 매출처SID */\n\t\t\t\t\t\t.append(\" ,T1.FR_DATE AS FR_DATE \t\\n\") /* 시작일자 */\n\t\t\t\t\t\t.append(\" ,T1.TO_DATE AS TO_DATE \t\\n\") /* 종료일자 */\n\t\t\t\t\t\t.append(\" ,T1.WEEKEND_YN AS WEEKEND_YN \t\\n\") /* 주말여부 */\n\t\t\t\t\t\t.append(\" ,T1.COMMI_RATE AS COMMI_RATE\t\\n\") /* 수수료율 */\n\t\t\t\t\t\t.append(\"FROM SALES.TCU033 T1 \t\\n\")\n\t\t\t\t\t\t.append(\"WHERE 1=1 \t\t\t\t\t\t\t\\n\");\n\t\t\t\t\t\t\n\t\t/*\n\t\t * 수수료율 등록\n\t\t */\n\t\t\t\n\t\t\tarr_sql[15].append(\"INSERT INTO SALES.TCU033 ( \t\\n\")\n\t\t\t\t\t\t .append(\" \t CLIENT_SID\t\t\t\\n\")\t/* 매출처SID \t*/\n\t\t\t\t\t\t .append(\"\t\t ,FR_DATE\t\t\t\t\\n\") \t/* 시작일자 \t*/\n\t\t\t\t\t\t .append(\"\t\t ,TO_DATE\t\t\t\\n\")\t/* 종료일자 \t*/\n\t\t\t\t\t\t .append(\"\t\t ,COMMI_RATE\t\t\t\t\\n\")\t/* 수수료율 \t*/\n\t\t\t\t\t\t .append(\"\t\t ,WEEKEND_YN\t\t\t\\n\")\t/* 주말여부 \t*/\n\t\t\t\t\t\t .append(\"\t\t ,I_DATE\t\t\t\t\\n\")\t/* 최종입력일자 \t*/\n\t\t\t\t\t\t .append(\"\t\t ,I_EMPNO \t\t\t\t\\n\") \t/* 최종입력자사번 \t*/\n\t\t\t\t\t\t .append(\"\t\t ,I_IP\t\t\t\t\t\\n\")\t/* 최종입력IP \t*/\t\t\t\t\t\t \n\t\t\t\t\t\t .append(\"\t\t ,u_date\t\t\t\t\\n\")\t/* 최종수정일자 \t*/\n\t\t\t\t\t\t .append(\"\t\t ,u_empno \t\t\t\t\\n\") \t/* 최종수정자사번 \t*/\n\t\t\t\t\t\t .append(\"\t\t ,u_ip\t\t\t\t\t\\n\")\t/* 최종수정IP \t*/\n\t\t\t\t\t\t .append(\"\t\t)\t\t\t\t\t\t\\n\")\n\t\t\t\t\t\t \n\t\t\t\t\t\t .append(\"VALUES\t\t\t\t\t\t\\n\")\n\t\t\t\t\t\t .append(\"\t\t\t(\t \t\t\t\\n\")\n\t\t\t\t\t\t .append(\"\t\t\t\t?,?,?,?, ?,\t\t\\n\")\t\n\t\t\t\t\t\t .append(\"\t\t\t\tSYSTIMESTAMP,?,?, SYSTIMESTAMP,?,?\t\\n\")\n\t\t\t\t\t\t .append(\"\t\t\t)\");\n\t\t/*\n\t\t * 수수료율 수정\n\t\t */\n\t\t\tarr_sql[16].append(\"UPDATE SALES.TCU033 SET\t\t\t\t\t\t\\n\") \n\t\t\t\t\t .append(\"\t\t TO_DATE\t\t\t= ?\t\t\t\t\t\\n\")\t/* 종료일자 \t*/\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t .append(\"\t\t ,COMMI_RATE\t\t= ?\t\t\t\t\t\\n\")\t/* 수수료율 \t*/\n\t\t\t\t\t .append(\"\t\t ,WEEKEND_YN\t\t= ?\t\t\t\t\t\\n\")\t/* 주말여부 \t*/\n\t\t\t\t\t \n\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t .append(\"\t\t ,u_date\t\t\t= SYSTIMESTAMP\t\\n\")\t/* 최종수정일자 \t*/\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t .append(\"\t\t ,u_empno \t\t\t= ?\t\t\t\t\t\\n\") \t/* 최종수정자사번 \t*/\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t .append(\"\t\t ,u_ip\t\t\t\t= ?\t\t\t\t\t\\n\")\t/* 최종수정IP \t*/\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t .append (\"WHERE client_sid \t\t= ? AND FR_DATE = ? AND WEEKEND_YN=? \\n\"); \n\t\t/*\n\t\t * 수수료율 삭제\n\t\t */\n\t\tarr_sql[17].append(\"DELETE FROM SALES.TCU033 WHERE client_sid = ? AND fr_date = ? AND WEEKEND_YN=? \");\t \n\t\t\t \n\n\t}", "private StringBuilder getSqlSelectContadorDocProrroga() {\n StringBuilder query = new StringBuilder();\n\n query.append(\" \");\n query.append(\" SELECT \\n\");\n query.append(\" PRO.ID_PRORROGA_ORDEN, \\n\");\n query.append(\" PRO.ID_ORDEN, \\n\");\n query.append(\" PRO.FECHA_CARGA, \\n\");\n query.append(\" PRO.RUTA_ACUSE,\\n\");\n query.append(\" PRO.CADENA_CONTRIBUYENTE, \\n\");\n query.append(\" PRO.FIRMA_CONTRIBUYENTE, \\n\");\n query.append(\" PRO.APROBADA, \\n\");\n query.append(\" PRO.ID_ASOCIADO_CARGA, \\n\");\n query.append(\" PRO.ID_AUDITOR, \\n\");\n query.append(\" PRO.ID_FIRMANTE, \\n\");\n query.append(\" PRO.RUTA_RESOLUCION, \\n\");\n query.append(\" PRO.CADENA_FIRMANTE, \\n\");\n query.append(\" PRO.FIRMA_FIRMANTE,\\n\");\n query.append(\" PRO.FECHA_FIRMA, \\n\");\n query.append(\" PRO.ID_ESTATUS, \\n\");\n query.append(\" PRO.FOLIO_NYV, \\n\");\n query.append(\" PRO.FECHA_NOTIF_NYV, \\n\");\n query.append(\" PRO.FECHA_NOTIF_CONT, \\n\");\n query.append(\" PRO.FECHA_SURTE_EFECTOS, \\n\");\n query.append(\" PRO.ID_NYV, \\n\");\n query.append(\" (SELECT COUNT(0) FROM \");\n query.append(FecetDocProrrogaOrdenDaoImpl.getTableName());\n query.append(\" DOCPRO WHERE PRO.ID_PRORROGA_ORDEN = DOCPRO.ID_PRORROGA_ORDEN) TOTAL_DOC_PRORROGA, \\n\");\n query.append(\" ASOCIADO.ID_ASOCIADO, \\n\");\n query.append(\" ASOCIADO.RFC_CONTRIBUYENTE, \\n\");\n query.append(\" ASOCIADO.RFC, \\n\");\n query.append(\" ASOCIADO.ID_ORDEN, \\n\");\n query.append(\" ASOCIADO.ID_TIPO_ASOCIADO, \\n\");\n query.append(\" ASOCIADO.NOMBRE, \\n\");\n query.append(\" ASOCIADO.CORREO, \\n\");\n query.append(\" ASOCIADO.TIPO_ASOCIADO, \\n\");\n query.append(\" ASOCIADO.FECHA_BAJA, \\n\");\n query.append(\" ASOCIADO.FECHA_ULTIMA_MOD, \\n\");\n query.append(\" ASOCIADO.FECHA_ULTIMA_MOD_IDC, \\n\");\n query.append(\" ASOCIADO.MEDIO_CONTACTO, \\n\");\n query.append(\" ASOCIADO.ESTATUS, \\n\");\n query.append(\" ESTATUS.ID_ESTATUS, \\n\");\n query.append(\" ESTATUS.DESCRIPCION, \\n\");\n query.append(\" ESTATUS.MODULO, \\n\");\n query.append(\" ESTATUS.ID_MODULO \\n\");\n\n query.append(\"FROM \");\n query.append(getTableName());\n query.append(\" PRO \\n\");\n query.append(\" INNER JOIN FECEC_ESTATUS ESTATUS \\n\");\n query.append(\" ON PRO.ID_ESTATUS = ESTATUS.ID_ESTATUS \\n\");\n query.append(\" LEFT JOIN FECET_ASOCIADO ASOCIADO \\n\");\n query.append(\" ON PRO.ID_ASOCIADO_CARGA = ASOCIADO.ID_ASOCIADO \\n\");\n return query;\n }", "public void reback(){\n \n try{ \n cnx = DriverManager.getConnection(url, user,pass);\n String sql = \"SELECT DISTINCT (t1.codigo_producto),(t1.categoria),(t1.producto), t1.unidades FROM tabla_aux t1 INNER JOIN (SELECT producto, MAX(Unidades) as unidades FROM tabla_aux GROUP BY producto) t2 ON t1.producto = t2.producto AND t1.unidades = t2.unidades ORDER BY t1.producto DESC\";\n Statement st = cnx.prepareStatement(sql);\n ResultSet res = st.executeQuery(sql);\n \n while (res.next()){\n ID = res.getString(1); \n MK = res.getString(2); \n MD = res.getString(3); \n UD = res.getInt(4);\n Class.forName(\"com.mysql.jdbc.Driver\"); \n conI = DriverManager.getConnection(url, user,pass);\n String query = \"update producto set Unidades = ? where codigo_producto = ? && categoria = ? && producto = ?\";\n PreparedStatement preparedStmt = conI.prepareStatement(query);\n preparedStmt.setInt (1, UD);\n preparedStmt.setString (2, ID);\n preparedStmt.setString (3, MK);\n preparedStmt.setString (4, MD);\n preparedStmt.executeUpdate();\n }\n Connection conex = DriverManager.getConnection(url, user, pass);\n String Qury = \"TRUNCATE tabla_aux\";\n Statement sts = conex.createStatement();\n sts.executeUpdate(Qury);\n }\n catch(SQLException ex){JOptionPane.showMessageDialog(this,ex);} catch (ClassNotFoundException ex) {\n Logger.getLogger(hacer_ventas.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "private void llenarListadoPromocionSalarial() {\n\t\tString sql1 = \"select det.* from seleccion.promocion_salarial det \"\r\n\t\t\t\t+ \"join planificacion.estado_cab cab on cab.id_estado_cab = det.id_estado_cab \"\r\n\t\t\t\t+ \"join planificacion.configuracion_uo_cab uo_cab \"\r\n\t\t\t\t+ \"on uo_cab.id_configuracion_uo = det.id_configuracion_uo_cab\"\r\n\t\t\t\t+ \" left join seleccion.promocion_concurso_agr agr \"\r\n\t\t\t\t+ \"on agr.id_promocion_salarial = det.id_promocion_salarial\"\r\n\t\t\t\t\r\n\t\t\t\t+ \" where lower(cab.descripcion) = 'concurso' \" + \"and (\"\r\n\t\t\t\t+ \"\t\tagr.id_estado_det = (\" + \"\t\t\t\tselect est.id_estado_det \"\r\n\t\t\t\t+ \"\t\t\t\tfrom planificacion.estado_det est \"\r\n\t\t\t\t+ \"\t\t\t\twhere lower(est.descripcion)='libre'\" + \"\t\t) \"\r\n\t\t\t\t+ \"\t\tor agr.id_estado_det is null\" + \"\t) \"\r\n\t\t\t\t+ \" and uo_cab.id_configuracion_uo = \"\r\n\t\t\t\t+ configuracionUoCab.getIdConfiguracionUo()\r\n\t\t\t\t+ \" AND det.activo=true\";\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO SIMPLIFICADO Se despliegan los puestos\r\n\t\t * PERMANENTES o CONTRATADOS, con estado = LIBRE o NULO Los puestos\r\n\t\t * deben ser de nivel 1\r\n\t\t */\r\n//\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n//\t\t\t\t.equalsIgnoreCase(CONCURSO_SIMPLIFICADO)) {\r\n//\t\t\tsql1 += \" and cpt.nivel=1 and cpt.activo=true and (det.permanente is true or det.contratado is true) \";\r\n//\t\t}\r\n\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO INTERNO DE OPOSICION INSTITUCIONAL Se\r\n\t\t * despliegan los puestos PERMANENTE, con estado = LIBRE o NULO\r\n\t\t */\r\n\r\n//\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n//\t\t\t\t.equalsIgnoreCase(CONCURSO_INTERNO_OPOSICION)) {\r\n//\t\t\tsql1 += \" and det.permanente is true \";\r\n//\t\t}\r\n\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO INTERNO DE OPOSICION INTER INSTITUCIONAL\r\n\t\t * Se despliegan los puestos PERMANENTE, con estado = LIBRE o NULO\r\n\t\t */\r\n\r\n//\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n//\t\t\t\t.equalsIgnoreCase(CONCURSO_INTERNO_INTERINSTITUCIONAL)) {\r\n//\t\t\tsql1 += \" and det.permanente is true \";\r\n//\t\t}\r\n\t\t\r\n\t\tString sql2 = \"select puesto_det.* \"\r\n\t\t\t\t+ \"from seleccion.promocion_concurso_agr puesto_det \"\r\n\t\t\t\t+ \"join planificacion.estado_det estado_det \"\r\n\t\t\t\t+ \"on estado_det.id_estado_det = puesto_det.id_estado_det \"\r\n\t\t\t\t+ \"join seleccion.promocion_salarial det \"\r\n\t\t\t\t+ \"on det.id_promocion_salarial = puesto_det.id_promocion_salarial \"\r\n\t\t\t\t+ \"join planificacion.configuracion_uo_cab uo_cab \"\r\n\t\t\t\t+ \"on uo_cab.id_configuracion_uo = det.id_configuracion_uo_cab \"\r\n\t\t\t//\t+ \"join seleccion.concurso concurso \"\r\n\t\t\t//\t+ \"on concurso.id_concurso = puesto_det.id_concurso \"\r\n\t\t\t\t\r\n\t\t\t\t+ \" where lower(estado_det.descripcion) = 'en reserva' \"\r\n\t\t\t\t+ \"and uo_cab.id_configuracion_uo = \"\r\n\t\t\t\t+ configuracionUoCab.getIdConfiguracionUo()\r\n\t\t\t//\t+ \" and concurso.id_concurso = \" + concurso.getIdConcurso()\r\n\t\t\t\t+ \" and puesto_det.activo=true\";\r\n\r\n\t\tcargarListaPromocionSalarial(sql1, sql2);\r\n\t}", "public static String todosLosEmpleados(){\n String query=\"SELECT empleado.idEmpleado, persona.nombre, persona.apePaterno, persona.apeMaterno, empleado.codigo, empleado.fechaIngreso,persona.codigoPostal,persona.domicilio,\" +\n\"empleado.puesto, empleado.salario from persona inner join empleado on persona.idPersona=empleado.idPersona where activo=1;\";\n return query;\n }", "public void simpanDataBuku(){\n String sql = (\"INSERT INTO buku (judulBuku, pengarang, penerbit, tahun, stok)\" \n + \"VALUES ('\"+getJudulBuku()+\"', '\"+getPengarang()+\"', '\"+getPenerbit()+\"'\"\n + \", '\"+getTahun()+\"', '\"+getStok()+\"')\");\n \n try {\n //inisialisasi preparedstatmen\n PreparedStatement eksekusi = koneksi. getKoneksi().prepareStatement(sql);\n eksekusi.execute();\n \n //pemberitahuan jika data berhasil di simpan\n JOptionPane.showMessageDialog(null,\"Data Berhasil Disimpan\");\n } catch (SQLException ex) {\n //Logger.getLogger(modelPelanggan.class.getName()).log(Level.SEVERE, null, ex);\n JOptionPane.showMessageDialog(null, \"Data Gagal Disimpan \\n\"+ex);\n }\n }", "public void buscaTodasOSs() {\n try {\n ServicoDAO sDAO = new ServicoDAO(); // instancia a classe ProdutoDB()\n ArrayList<OS> cl = sDAO.consultaTodasOs(); // coloca o método dentro da variável\n\n DefaultTableModel modeloTabela = (DefaultTableModel) jTable1.getModel();\n // coloca a tabela em uma variável do tipo DefaultTableModel, que permite a modelagem dos dados da tabela\n\n for (int i = modeloTabela.getRowCount() - 1; i >= 0; i--) {\n modeloTabela.removeRow(i);\n // loop que limpa a tabela antes de ser atualizada\n }\n\n for (int i = 0; i < cl.size(); i++) {\n // loop que pega os dados e insere na tabela\n Object[] dados = new Object[7]; // instancia os objetos. Cada objeto representa um atributo \n dados[0] = cl.get(i).getNumero_OS();\n dados[3] = cl.get(i).getStatus_OS();\n dados[4] = cl.get(i).getDefeito_OS();\n dados[5] = cl.get(i).getDataAbertura_OS();\n dados[6] = cl.get(i).getDataFechamento_OS();\n\n // pega os dados salvos do banco de dados (que estão nas variáveis) e os coloca nos objetos definidos\n modeloTabela.addRow(dados); // insere uma linha nova a cada item novo encontrado na tabela do BD\n }\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(null, \"Falha na operação.\\nErro: \" + ex.getMessage());\n } catch (Exception ex) {\n Logger.getLogger(FrmPesquisar.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public DatoGeneralMinimo getEntityDatoGeneralMinimoGenerico(Connexion connexion,QueryWhereSelectParameters queryWhereSelectParameters,ArrayList<Classe> classes) throws SQLException,Exception { //Banco\r\n\t\tDatoGeneralMinimo datoGeneralMinimo= new DatoGeneralMinimo();\r\n\t\t\r\n\t\tBanco entity = new Banco();\r\n\t\t\t\t\r\n try {\t\t\t\r\n\t\t\tString sQuery=\"\";\r\n \t String sQuerySelect=\"\";\r\n\t\t\t\r\n\t\t\tStatement statement = connexion.getConnection().createStatement();\t\t\t\r\n\t\t\t\r\n\t\t\tif(!queryWhereSelectParameters.getSelectQuery().equals(\"\")) {\r\n\t\t\t\tsQuerySelect=queryWhereSelectParameters.getSelectQuery();\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tif(!this.isForForeingKeyData) {\r\n\t\t\t\t\tsQuerySelect=BancoDataAccess.QUERYSELECTNATIVE;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsQuerySelect=BancoDataAccess.QUERYSELECTNATIVEFORFOREINGKEY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n \t sQuery=DataAccessHelper.buildSqlGeneralGetEntitiesJDBC(entity,BancoDataAccess.TABLENAME+\".\",queryWhereSelectParameters,sQuerySelect);\r\n\t\t\t\r\n\t\t\tif(Constantes2.ISDEVELOPING_SQL) {\r\n \tFunciones2.mostrarMensajeDeveloping(sQuery);\r\n }\r\n\t\t\t\r\n \t \tResultSet resultSet = statement.executeQuery(sQuery);//Tesoreria.Banco.isActive=1\r\n \t \r\n\t\t\t//ResultSetMetaData metadata = resultSet.getMetaData();\r\n \t \t\r\n \t \t//int iTotalCountColumn = metadata.getColumnCount();\r\n\t\t\t\t\r\n\t\t\t//if(queryWhereSelectParameters.getIsGetGeneralObjects()) {\r\n\t\t\t\tif(resultSet.next()) {\t\t\t\t\r\n\t\t\t\t\tfor(Classe classe:classes) {\r\n\t\t\t\t\t\tDataAccessHelperBase.setFieldDynamic(datoGeneralMinimo,classe,resultSet);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t/*\r\n\t\t\t\t\tint iIndexColumn = 1;\r\n\t\t\t\t \r\n\t\t\t\t\twhile(iIndexColumn <= iTotalCountColumn) {\r\n\t\t\t\t\t\t//arrayListObject.add(resultSet.getObject(iIndexColumn++));\r\n\t\t\t\t }\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t*/\r\n\t\t\t\t} else {\r\n\t\t\t\t\tentity =null;\r\n\t\t\t\t}\r\n\t\t\t//}\r\n\t\t\t\r\n\t\t\tif(entity!=null) {\r\n\t\t\t\t//this.setIsNewIsChangedFalseBanco(entity);\r\n\t\t\t}\r\n\t\t\t\r\n \t statement.close(); \r\n\t\t\r\n\t\t} \r\n\t\tcatch(Exception e) {\r\n\t\t\tthrow e;\r\n \t}\r\n\t\t\r\n \t//return entity;\t\r\n\t\t\r\n\t\treturn datoGeneralMinimo;\r\n }", "private void actualizarVentanaOperadores() throws SQLException {\n Sistema.getControladorVentanaOperadores().actualizarTablaOperadores(\"SELECT * FROM operador WHERE activo=TRUE ORDER BY id ASC;\");\n }", "public void execute() throws SQLException {\n\t\ttry {\n\t\t\tselect.setUsername(\"INTRANET\");\n\t\t\tselect.setPassword(\"INTRANET\");\n\t\t\tselect.execute();\n\t\t}\n\n\t\t// Liberar recursos del objeto select.\n\t\tfinally {\n\t\t\tselect.close();\n\t\t}\n\t}", "public static void insertFournisseur(Fournisseur unFournisseur ) {\n Bdd uneBdd = new Bdd(\"localhost\", \"paruline \", \"root\", \"\");\n\n String checkVille = \"CALL checkExistsCity('\" + unFournisseur.getVille() + \"','\" + unFournisseur.getCp() + \"');\";\n try {\n uneBdd.seConnecter();\n Statement unStat = uneBdd.getMaConnection().createStatement();\n\n ResultSet unRes = unStat.executeQuery(checkVille);\n\n int nb = unRes.getInt(\"nb\");\n\n if (nb == 0) {\n String ajoutVille = \"CALL InsertCity('\" + unFournisseur.getVille() + \"', '\" + unFournisseur.getCp() + \"');\";\n\n try {\n Statement unStatAjout = uneBdd.getMaConnection().createStatement();\n\n unStatAjout.executeQuery(ajoutVille);\n unStatAjout.close();\n }\n catch (SQLException e) {\n System.out.println(\"Erreur : \" + ajoutVille);\n }\n }\n\n String id = \"CALL GetCity('\" + unFournisseur.getVille() + \"', '\" + unFournisseur.getCp() + \"')\";\n\n try {\n Statement unStatId = uneBdd.getMaConnection().createStatement();\n\n ResultSet unResId = unStatId.executeQuery(id);\n\n int id_city = unResId.getInt(\"id_city\");\n\n\n\n String insertFournisseur = \"INSERT INTO fournisseur(id_city, name_f, adresse_f, phoneFour) VALUES (\" + id_city + \", '\" + unFournisseur.getNom() + \"', \" +\n \"'\" + unFournisseur.getAdresse() + \"', '\" + unFournisseur.getTelephone() + \"')\";\n\n try {\n Statement unStatFourn = uneBdd.getMaConnection().createStatement();\n unStatFourn.executeQuery(insertFournisseur);\n\n unStatFourn.close();\n }\n catch (SQLException e) {\n System.out.println(\"Erreur : \" + insertFournisseur);\n }\n\n unResId.close();\n unStatId.close();\n }\n catch (SQLException e) {\n System.out.println(\"Erreur : \" + id);\n }\n\n unRes.close();\n unStat.close();\n uneBdd.seDeConnecter();\n } catch (SQLException exp) {\n System.out.println(\"Erreur : \" + checkVille);\n }\n }", "private void buscar() {\n try { \n conexion = DriverManager.getConnection(\"jdbc:mysql://localhost/sistema_gmg\", \"root\", \"1405\");\n\n st = conexion.createStatement();\n \n rs = st.executeQuery(\"select * from ciclos where ciclo like '%\" + this.jtf_buscar.getText() + \"%'\");\n\n jtf_id_ciclo.setText(null);\n jtf_ciclo.setText(null);\n jtf_finicio.setText(null);\n jtf_ftermino.setText(null);\n \n jt_ciclos.setModel(DbUtils.resultSetToTableModel(rs));\n \n jb_cancelar.setEnabled(true); \n rs = st.executeQuery(\"select *from ciclos\");\n } catch (SQLException ex) {\n Logger.getLogger(JF_Alumnos.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public CadastroDeEmpresa() {\n initComponents();\n preencherTabela(\"select * from empresa order by id\");\n }", "public static void main(String[] args) {\n Connection connection = null;\r\n\r\n try{\r\n // establezco la connecion con la base de datos jdbc en el puerto 3306 con usuario y contrasenia root\r\n connection = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/jdbc\",\"root\",\"root\");\r\n // pongo auto commit en false esto hace que no se comite cada cueri y que se cada vez que lance\r\n // el comando commit se ejecuta el bloque query\r\n connection.setAutoCommit(false);\r\n\r\n // hago la sentencia preparada\r\n PreparedStatement preparedStatement = connection.prepareStatement(\"INSERT INTO estudiante (dni, nombre, apellido) VALUES (?, ?, ?);\");\r\n // modifico los \"?\" de la sentencia preparada con mis datos\r\n preparedStatement.setInt(1,40640217);\r\n preparedStatement.setString(2,\"Santiago\");\r\n preparedStatement.setString(3,\"Lampropulos\");\r\n\r\n // ejecuto la consulta preparada\r\n preparedStatement.executeUpdate();\r\n\r\n //traigo los datos de la tabla estudiante\r\n ResultSet resultSet = preparedStatement.executeQuery(\"SELECT * FROM estudiante\");\r\n\r\n // realizo el commit para que se guarden los cambios\r\n connection.commit();\r\n\r\n //muestro toda la tabla\r\n while(resultSet.next()){\r\n System.out.println(resultSet.getString(2)+\"\\t\"+resultSet.getString(\"nombre\")+\"\\t\"+resultSet.getString(\"apellido\"));\r\n }\r\n\r\n }catch (SQLException exceptionConnection){\r\n System.out.println(exceptionConnection);\r\n try{\r\n // si se creo la base de datos revierte el commit que se hizo\r\n if(connection!=null){\r\n connection.rollback();\r\n }\r\n }catch (SQLException exceptionCarth){\r\n //atrapo excepciones\r\n System.out.println(exceptionCarth);\r\n }\r\n\r\n\r\n }finally {\r\n // el bloque finally se ejecute sin inportar si viene de un catch o del try\r\n try{\r\n //si se crea una coneccion con base de datos la cierro\r\n if(connection!= null){\r\n connection.close();\r\n }\r\n }catch (SQLException eFinally){\r\n //atrapo excepciones\r\n System.out.println(eFinally);\r\n }\r\n }\r\n\r\n }", "public void preencherTabelaResultado() {\n\t\tArrayList<Cliente> lista = Fachada.getInstance().pesquisarCliente(txtNome.getText());\n\t\tDefaultTableModel modelo = (DefaultTableModel) tabelaResultado.getModel();\n\t\tObject[] linha = new Object[4];\n\t\tmodelo.setRowCount(0);\n\n\t\tfor (Cliente c : lista) {\n\t\t\tlinha[0] = c.getIdCliente();\n\t\t\tlinha[1] = c.getNome();\n\t\t\tlinha[2] = c.getTelefone().toString();\n\t\t\tif (c.isAptoAEmprestimos())\n\t\t\t\tlinha[3] = \"Apto\";\n\t\t\telse\n\t\t\t\tlinha[3] = \"A devolver\";\n\t\t\tmodelo.addRow(linha);\n\n\t\t}\n\n\t}", "public void guardarBloqueSeleccionado(){\n\t\tif(bloqueSeleccionadoEditar.getIdbloques() == 0){\n\t\t\tbloquesFacade.create(bloqueSeleccionadoEditar);\n\t\t}else{\n\t\t\tbloquesFacade.edit(bloqueSeleccionadoEditar);\n\t\t}\n\t\tdataListBloques = bloquesFacade.findByLike(\"SELECT B FROM Bloques B ORDER BY B.nombre\");\n\t}", "public void alteraDadosMySQL() throws SQLException, IOException {\n byte[] logo = null;\n byte[] brasao = null;\n if (imagemRedimensionada != null) {\n ByteArrayOutputStream bytesImg = new ByteArrayOutputStream();\n ImageIO.write((BufferedImage) imagemRedimensionada, extensao, bytesImg);\n bytesImg.flush();\n logo = bytesImg.toByteArray();\n bytesImg.close();\n }\n\n if (imagemRedimensionada2 != null) {\n ByteArrayOutputStream bytesImg2 = new ByteArrayOutputStream();\n ImageIO.write((BufferedImage) imagemRedimensionada2, extensao2, bytesImg2);\n bytesImg2.flush();\n brasao = bytesImg2.toByteArray();\n bytesImg2.close();\n }\n\n if (dados.equals(prova.getText())) {\n if (dados2.equals(individualUnico.getText())) {\n // System.out.println(\"1\");\n PreparedStatement p = conexao.prepareStatement(\"UPDATE dados SET titulo='\" + titulo.getText() + \"'\"\n + \", tipo='\" + dados + \"'\"\n + \", modalidade='\" + dados2 + \"'\"\n + \", escola='\" + dados3 + \"'\"\n + \", matricula='\" + matricula.getText() + \"'\"\n + \", dataProva=?\"\n + \", dataRecebimento=?\"\n + \", dataEntrega=?\"\n + \" WHERE titulo='\" + aux + \"'\"\n );\n p.clearParameters();\n p.setDate(1, new java.sql.Date(dataProva.getDate().getTime()));\n p.setDate(2, null);\n p.setDate(3, null);\n p.executeUpdate();\n } else {\n if (dados2.equals(individualTurma.getText()) || dados2.equals(grupo.getText())) {\n System.out.println(\"OK\");\n // System.out.println(\"2\");\n PreparedStatement p = conexao.prepareStatement(\"UPDATE dados SET titulo='\" + titulo.getText() + \"'\"\n + \", tipo='\" + dados + \"'\"\n + \", modalidade='\" + dados2 + \"'\"\n + \", escola='\" + dados3 + \"'\"\n + \", matricula=?\"\n + \", dataProva=?\"\n + \", dataRecebimento=?\"\n + \", dataEntrega=?\"\n + \" WHERE titulo='\" + aux + \"'\"\n );\n p.clearParameters();\n p.setString(1, null);\n p.setDate(2, new java.sql.Date(dataProva.getDate().getTime()));\n p.setDate(3, null);\n p.setDate(4, null);\n p.executeUpdate();\n }\n }\n } else {\n if (dados.equals(trabalho.getText())) {\n if (dados2.equals(individualUnico.getText())) {\n\n PreparedStatement p = conexao.prepareStatement(\"UPDATE dados SET titulo='\" + titulo.getText() + \"'\"\n + \", tipo='\" + dados + \"'\"\n + \", modalidade='\" + dados2 + \"'\"\n + \", escola='\" + dados3 + \"'\"\n + \", matricula='\" + matricula.getText() + \"'\"\n + \", dataProva=?\"\n + \", dataRecebimento=?\"\n + \", dataEntrega=?\"\n + \" WHERE titulo='\" + aux + \"'\"\n );\n p.clearParameters();\n\n p.setDate(1, null);\n p.setDate(2, new java.sql.Date(dataRecebimento.getDate().getTime()));\n p.setDate(3, new java.sql.Date(dataEntrega.getDate().getTime()));\n p.executeUpdate();\n } else {\n if (dados2.equals(individualTurma.getText()) || dados2.equals(grupo.getText())) {\n // System.out.println(\"4\");\n PreparedStatement p = conexao.prepareStatement(\"UPDATE dados SET titulo='\" + titulo.getText() + \"'\"\n + \", tipo='\" + dados + \"'\"\n + \", modalidade='\" + dados2 + \"'\"\n + \", escola='\" + dados3 + \"'\"\n + \", matricula=?\"\n + \", dataProva=?\"\n + \", dataRecebimento=?\"\n + \", dataEntrega=?\"\n + \" WHERE titulo='\" + aux + \"'\"\n );\n p.clearParameters();\n p.setString(1, null);\n p.setDate(2, null);\n p.setDate(3, new java.sql.Date(dataRecebimento.getDate().getTime()));\n p.setDate(4, new java.sql.Date(dataEntrega.getDate().getTime()));\n p.executeUpdate();\n }\n }\n }\n }\n if (envio[0]) {\n if (envio[1]) {\n System.out.println(envio[1]);\n PreparedStatement s = conexao.prepareStatement(\"UPDATE dados SET logotipo= ? , brasao= ?, nomeLogotipo=?, nomeBrasao=? WHERE titulo='\" + titulo.getText() + \"'\");//conexao.createStatement();\n s.clearParameters();\n s.setBytes(1, logo);\n s.setBytes(2, brasao);\n s.setString(3, arquivo.getName());\n s.setString(4, arquivo2.getName());\n s.executeUpdate();\n } else {\n PreparedStatement s = conexao.prepareStatement(\"UPDATE dados SET logotipo= ?, brasao=? , nomeLogotipo=?, nomeBrasao=? WHERE titulo='\" + titulo.getText() + \"'\");\n s.clearParameters();\n s.setBytes(1, logo);\n s.setBytes(2, null);\n s.setString(3, arquivo.getName());\n s.setString(4, null);\n s.executeUpdate();\n }\n }\n if (dados3.equals(privada.getText())) {\n PreparedStatement s = conexao.prepareStatement(\"UPDATE dados SET brasao=?, nomeBrasao=? WHERE titulo='\" + dadosTitulo + \"'\");\n s.setBytes(1, null);\n s.setString(2, null);\n s.executeUpdate();\n }\n dispose();\n framePrincipal.setVisible(true);\n }", "public void prepareStatements() throws SQLException {\n\t\tpstmt_updateTicket = connection.prepareStatement(\r\n\t\t \"UPDATE ticket \" +\r\n \"SET kunde = ? \" +\r\n \"WHERE tid IN (\" +\r\n \"SELECT tid FROM ticket WHERE kunde IS NULL AND auffuehrung = ? LIMIT ?)\" +\r\n \"RETURNING preis\");\r\n\t}", "public void firstTest() throws SQLException, ServicesException{\n Connection conn=getConnection();\n Statement stmt=conn.createStatement();\n Services servicios = Services.getInstance(\"h2-applicationconfig.properties\");\n PrestamoUsuario prestamo =null;\n try {\n //Insercion en BD\n stmt.execute(\"INSERT INTO ROLES(rol) values ('estudiante')\");\n stmt.execute(\"INSERT INTO USUARIOS (id,nombre,correo,contrasena) VALUES (124,'PEDRO PEREZ','[email protected]','1test1')\");\n stmt.execute(\"INSERT INTO ROLES_USUARIOS(USUARIOS_id,ROLES_rol) values (124,'estudiante')\");\n stmt.execute(\"INSERT INTO MODELOS (nombre,clase,vidaUtil,valor,seguro,foto) values ('modelo1','abcd',100,200000,true,null)\"); \n stmt.execute(\"INSERT INTO EQUIPOS (serial,nombre,placa,marca,descripcion,estado,subestados,proveedor,Modelos_nombre) VALUES (123,'Multimetro',456,'falsa','Equipo funcional y de buena calidad','activo','almacen','Leonardo Herrera','modelo1')\");\n stmt.execute(\"INSERT INTO PRESTAMOS (USUARIOS_id,EQUIPOS_serial,fechaExpedicion,fechaVencimiento,tipoPrestamo) VALUES (124,123,'2015-01-01 00:00:00',null,'prestamo diario')\");\n conn.commit();\n conn.close(); \n } catch (SQLException ex) {\n Logger.getLogger(DevolucionTest.class.getName()).log(Level.SEVERE, null, ex);\n conn.rollback();\n conn.close();\n }\n Set<PrestamoUsuario> prestamos = servicios.loadPrestamos();\n for (PrestamoUsuario p:prestamos){\n \n }\n }", "public void insereDadosMySQL(String tabela, String colunas, boolean matricula, boolean data, boolean brasao2) throws IOException {\n status = true;\n ByteArrayOutputStream bytesImg = new ByteArrayOutputStream();\n ImageIO.write((BufferedImage) imagemRedimensionada, extensao, bytesImg);\n bytesImg.flush();\n byte[] logo = bytesImg.toByteArray();\n bytesImg.close();\n /**\n * Transforma a imagem do logotipo e brasao em um array de bytes para enviar ao banco de dados\n */\n byte[] brasao = null;\n if (brasao2) {\n ByteArrayOutputStream bytesImg2 = new ByteArrayOutputStream();\n ImageIO.write((BufferedImage) imagemRedimensionada2, extensao2, bytesImg2);\n bytesImg2.flush();\n brasao = bytesImg2.toByteArray();\n bytesImg2.close();\n }\n\n String[] aux = colunas.split(\",\");\n String values = \"?\";\n for (int i = 0; i < aux.length - 1; i++) {\n values += \",?\";\n }\n try {\n PreparedStatement p = conexao.prepareStatement(\"INSERT INTO \" + tabela + \"(\" + colunas + \") VALUES (\" + values + \")\");\n // System.out.println(\"INSERT INTO \" + tabela + \"(\" + colunas + \") VALUES (\" + values + \")\");\n p.setString(1, dadosTitulo);\n p.setString(2, dados);\n p.setString(3, dados2);\n p.setString(4, dados3);\n if (matricula) {\n p.setString(5, this.matricula.getText());\n if (data) {\n p.setDate(6, new java.sql.Date(dataProva.getDate().getTime()));\n p.setString(7, arquivo.getName());\n p.setBytes(8, logo);\n if (brasao2) {\n p.setString(9, arquivo2.getName());\n p.setBytes(10, brasao);\n }\n } else {\n p.setDate(6, new java.sql.Date(dataRecebimento.getDate().getTime()));\n p.setDate(7, new java.sql.Date(dataEntrega.getDate().getTime()));\n p.setString(8, arquivo.getName());\n p.setBytes(9, logo);\n if (brasao2) {\n p.setString(10, arquivo2.getName());\n p.setBytes(11, brasao);\n }\n }\n } else {\n if (data) {\n p.setDate(5, new java.sql.Date(dataProva.getDate().getTime()));\n p.setString(6, arquivo.getName());\n p.setBytes(7, logo);\n if (brasao2) {\n p.setString(8, arquivo2.getName());\n p.setBytes(9, brasao);\n }\n } else {\n p.setDate(5, new java.sql.Date(dataRecebimento.getDate().getTime()));\n p.setDate(6, new java.sql.Date(dataEntrega.getDate().getTime()));\n p.setString(7, arquivo.getName());\n p.setBytes(8, logo);\n if (brasao != null) {\n p.setString(9, arquivo2.getName());\n p.setBytes(10, brasao);\n }\n }\n }\n p.executeUpdate();\n } catch (SQLException ex) {\n System.out.println(ex.getMessage());\n // System.out.println(\"catch 2\");\n }\n }", "public void buscarxdescrip() {\r\n try {\r\n modelo.setDescripcion(vista.jTbdescripcion.getText());//C.P.M le enviamos al modelo la descripcion y consultamos\r\n rs = modelo.Buscarxdescrip();//C.P.M cachamos el resultado de la consulta\r\n\r\n DefaultTableModel buscar = new DefaultTableModel() {//C.P.M creamos el modelo de la tabla\r\n @Override\r\n public boolean isCellEditable(int rowIndex, int vColIndex) {\r\n return false;\r\n }\r\n };\r\n vista.jTbuscar.setModel(buscar);//C.P.M le mandamos el modelo a la tabla\r\n modelo.estructuraProductos(buscar);//C.P.M obtenemos la estructura de la tabla \"encabezados\"\r\n ResultSetMetaData rsMd = rs.getMetaData();//C.P.M obtenemos los metadatos de la consulta\r\n int cantidadColumnas = rsMd.getColumnCount();//C.P.M obtenemos la cantidad de columnas de la consulta\r\n while (rs.next()) {//C.P.M recorremos el resultado\r\n Object[] fila = new Object[cantidadColumnas];//C.P.M creamos un arreglo con una dimencion igual a la cantidad de columnas\r\n for (int i = 0; i < cantidadColumnas; i++) { //C.P.M lo recorremos \r\n fila[i] = rs.getObject(i + 1); //C.P.M vamos insertando los resultados dentor del arreglo\r\n }\r\n buscar.addRow(fila);//C.P.M y lo agregamos como una nueva fila a la tabla\r\n }\r\n\r\n } catch (SQLException ex) {\r\n JOptionPane.showMessageDialog(null, \"Ocurrio un error al buscar producto por descripcion\");\r\n }\r\n }", "public java.sql.ResultSet CitasActivasSoloMedico(String CodigoMedico){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"SELECT phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo,su.usu_codigo,SUBSTRING(phm.horas, 7, 3) AS jornada FROM pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes,seg_datos_personales sdp,seg_usuario su WHERE pmd.codigo = \"+CodigoMedico+\" AND phm.codMedico_fk = pmd.codigo AND pmd.codEspe_fk = pes.codigo AND phm.estado='0' AND sdp.numeroDocumento = pmd.numeroDocumento AND su.dat_codigo_fk = sdp.dat_codigo AND phm.fechas >= CURDATE() ORDER BY phm.fechas,jornada,phm.horas LIMIT 100 \");\r\n \t//System.out.println(\"SELECT ahm.codigo,ahm.horas,ahm.fechas,ahm.NombrePaciente,aes.nombre_especialidad,amd.nombre,amd.apellidos,ahm.estado,aes.codigo,amd.codigo,su.usu_codigo,SUBSTRING(ahm.horas, 7, 3) AS jornada FROM agm_horariomedico ahm,agm_medico amd,agm_especialidad aes,seg_datos_personales sdp,seg_usuario su WHERE amd.codigo = \"+CodigoMedico+\" AND ahm.codMedico_fk = amd.codigo AND amd.codEspe_fk = aes.codigo AND ahm.estado='0' AND sdp.numeroDocumento = amd.numeroDocumento AND su.dat_codigo_fk = sdp.dat_codigo AND ahm.fechas >= CURDATE() ORDER BY ahm.fechas,jornada,ahm.horas LIMIT 100 \");\r\n \t\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultapormedicofecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "public java.sql.ResultSet consultapormedicofecha2(String CodigoMedico,String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"SELECT phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo,su.usu_codigo,SUBSTRING(phm.horas,7,3) AS jornada FROM pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes,seg_datos_personales sdp,seg_usuario su WHERE pmd.codigo=\"+CodigoMedico+\" AND phm.fechas='\"+fecha+\"' AND phm.codMedico_fk = pmd.codigo AND pmd.codEspe_fk = pes.codigo AND sdp.numeroDocumento=pmd.numeroDocumento AND su.dat_codigo_fk=sdp.dat_codigo AND phm.fechas >= CURDATE() ORDER BY jornada,phm.horas \");\r\n \tSystem.out.println(\"SELECT phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo,su.usu_codigo,SUBSTRING(phm.horas,7,3) AS jornada FROM pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes,seg_datos_personales sdp,seg_usuario su WHERE pmd.codigo=\"+CodigoMedico+\" AND phm.fechas='\"+fecha+\"' AND phm.codMedico_fk = pmd.codigo AND pmd.codEspe_fk = pes.codigo AND sdp.numeroDocumento=pmd.numeroDocumento AND su.dat_codigo_fk=sdp.dat_codigo AND phm.fechas >= CURDATE() ORDER BY jornada,phm.horas \");\r\n \t\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultapormedicofecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "public List<ReporteRetencionesResumido> getRetencionSRIResumido(int mes, int anio, int idOrganizacion)\r\n/* 27: */ {\r\n/* 28: 58 */ String sql = \"SELECT new ReporteRetencionesResumido(f.fechaEmisionRetencion,f.fechaRegistro,f.fechaEmision, CONCAT(f.establecimiento,'-',f.puntoEmision,'-',f.numero),\\tf.identificacionProveedor,c.descripcion,CASE WHEN c.tipoConceptoRetencion = :tipoConceptoFUENTE then (SUM(COALESCE(dfp.baseImponibleRetencion, 0)+COALESCE(dfp.baseImponibleTarifaCero, 0) +COALESCE(dfp.baseImponibleDiferenteCero, 0)+COALESCE(dfp.baseImponibleNoObjetoIva, 0))) else COALESCE(dfp.baseImponibleRetencion, 0) end,dfp.porcentajeRetencion,dfp.valorRetencion,\\tc.codigo,CASE WHEN c.tipoConceptoRetencion = :tipoConceptoIVA then 'IVA' WHEN c.tipoConceptoRetencion = :tipoConceptoFUENTE then 'FUENTE' WHEN c.tipoConceptoRetencion = :tipoConceptoISD then 'ISD' else '' end,f.numeroRetencion) FROM DetalleFacturaProveedorSRI dfp INNER JOIN dfp.facturaProveedorSRI f INNER JOIN dfp.conceptoRetencionSRI c WHERE MONTH(f.fechaRegistro) =:mes\\tAND YEAR(f.fechaRegistro) =:anio AND f.estado!=:estadoAnulado AND f.indicadorSaldoInicial!=true AND f.idOrganizacion = :idOrganizacion\\tGROUP BY c.codigo,f.numero,f.puntoEmision,\\tf.establecimiento, f.identificacionProveedor,\\tc.descripcion,dfp.baseImponibleRetencion,dfp.porcentajeRetencion,dfp.valorRetencion,f.fechaEmisionRetencion,f.fechaRegistro,f.fechaEmision,f.numeroRetencion, c.tipoConceptoRetencion ORDER BY c.tipoConceptoRetencion, c.codigo \";\r\n/* 29: */ \r\n/* 30: */ \r\n/* 31: */ \r\n/* 32: */ \r\n/* 33: */ \r\n/* 34: */ \r\n/* 35: */ \r\n/* 36: */ \r\n/* 37: */ \r\n/* 38: */ \r\n/* 39: */ \r\n/* 40: */ \r\n/* 41: */ \r\n/* 42: */ \r\n/* 43: */ \r\n/* 44: */ \r\n/* 45: 75 */ Query query = this.em.createQuery(sql);\r\n/* 46: 76 */ query.setParameter(\"mes\", Integer.valueOf(mes));\r\n/* 47: 77 */ query.setParameter(\"anio\", Integer.valueOf(anio));\r\n/* 48: 78 */ query.setParameter(\"estadoAnulado\", Estado.ANULADO);\r\n/* 49: 79 */ query.setParameter(\"idOrganizacion\", Integer.valueOf(idOrganizacion));\r\n/* 50: 80 */ query.setParameter(\"tipoConceptoIVA\", TipoConceptoRetencion.IVA);\r\n/* 51: 81 */ query.setParameter(\"tipoConceptoFUENTE\", TipoConceptoRetencion.FUENTE);\r\n/* 52: 82 */ query.setParameter(\"tipoConceptoISD\", TipoConceptoRetencion.ISD);\r\n/* 53: 83 */ List<ReporteRetencionesResumido> lista = query.getResultList();\r\n/* 54: */ \r\n/* 55: 85 */ return lista;\r\n/* 56: */ }", "public EstadosSql() {\r\n }", "private void refreshData() {\n try {\n setDataSource(statement.executeQuery(\"select * from \" + sourceTableName));\n } catch (SQLException e) {\n System.err.println(\"Can't execute statement\");\n e.printStackTrace();\n }\n }", "public RespuestaBD modificarRegistro(int codigoFlujo, int secuencia, int servicioInicio, int accion, int codigoEstado, int servicioDestino, String nombreProcedimiento, String correoDestino, String enviar, String mismoProveedor, String mismomismoCliente, String estado, int caracteristica, int caracteristicaValor, int caracteristicaCorreo, String metodoSeleccionProveedor, String indCorreoCliente, String indHermana, String indHermanaCerrada, String indfuncionario, String usuarioModificacion) {\n/* 437 */ RespuestaBD rta = new RespuestaBD();\n/* */ \n/* */ try {\n/* 440 */ String s = \"update wkf_detalle set servicio_inicio=\" + servicioInicio + \",\" + \" accion=\" + accion + \",\" + \" codigo_estado=\" + codigoEstado + \",\" + \" servicio_destino=\" + ((servicioDestino == 0) ? \"null\" : Integer.valueOf(servicioDestino)) + \",\" + \" nombre_procedimiento='\" + nombreProcedimiento + \"',\" + \" correo_destino='\" + correoDestino + \"',\" + \" enviar_solicitud='\" + enviar + \"',\" + \" ind_mismo_proveedor='\" + mismoProveedor + \"',\" + \" ind_mismo_cliente='\" + mismomismoCliente + \"',\" + \" estado='\" + estado + \"',\" + \" caracteristica=\" + ((caracteristica == 0) ? \"null\" : (\"\" + caracteristica)) + \",\" + \" valor_caracteristica=\" + ((caracteristicaValor == 0) ? \"null\" : (\"\" + caracteristicaValor)) + \",\" + \" caracteristica_correo=\" + ((caracteristicaCorreo == 0) ? \"null\" : (\"\" + caracteristicaCorreo)) + \",\" + \" metodo_seleccion_proveedor=\" + ((metodoSeleccionProveedor.length() == 0) ? \"null\" : (\"'\" + metodoSeleccionProveedor + \"'\")) + \",\" + \" ind_correo_clientes=\" + ((indCorreoCliente.length() == 0) ? \"null\" : (\"'\" + indCorreoCliente + \"'\")) + \",\" + \" enviar_hermana=\" + ((indHermana.length() == 0) ? \"null\" : (\"'\" + indHermana + \"'\")) + \",\" + \" enviar_si_hermana_cerrada=\" + ((indHermanaCerrada.length() == 0) ? \"null\" : (\"'\" + indHermanaCerrada + \"'\")) + \",\" + \" ind_cliente_inicial=\" + ((indfuncionario.length() == 0) ? \"null\" : (\"'\" + indfuncionario + \"'\")) + \",\" + \" usuario_modificacion='\" + usuarioModificacion + \"',\" + \" fecha_modificacion=\" + Utilidades.getFechaBD() + \"\" + \" where\" + \" codigo_flujo=\" + codigoFlujo + \" and secuencia=\" + secuencia + \"\";\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 465 */ rta = this.dat.executeUpdate2(s);\n/* */ }\n/* 467 */ catch (Exception e) {\n/* 468 */ e.printStackTrace();\n/* 469 */ Utilidades.writeError(\"FlujoDetalleDAO:modificarRegistro \", e);\n/* 470 */ rta.setMensaje(e.getMessage());\n/* */ } \n/* 472 */ return rta;\n/* */ }", "private boolean insertarTablaRelacionadas(java.sql.Connection conn,int intCodEmp, int intCodLoc,int intCodTipDoc,int intCodDoc,int intCodCot){\r\n java.sql.Statement stmLoc;\r\n java.sql.ResultSet rstLocFacVen,rstLocIng; \r\n boolean blnRes = true;\r\n try{\r\n if(conn!=null){\r\n stmLoc = conn.createStatement();\r\n arlDatFacVen = new ArrayList();\r\n arlDatIngGen = new ArrayList();\r\n \r\n strSql=\"\";\r\n strSql+=\" SELECT a2.co_emp, a2.co_loc, a2.co_tipDoc, a2.co_doc,a3.co_reg, a3.co_itm, ABS(a3.nd_can) as nd_can \\n\";\r\n strSql+=\" FROM( \\n\";\r\n strSql+=\" SELECT co_empRelCabMovInv, co_locRelCabMovInv, co_tipDocRelCabMovInv, co_docRelCabMovInv \\n\";\r\n strSql+=\" FROM tbm_cabSegMovInv \\n\";\r\n strSql+=\" WHERE co_empRelCabMovInv=\"+intCodEmp+\" AND co_locRelCabMovInv=\"+intCodLoc+\" AND \\n\";\r\n strSql+=\" co_tipDocRelCabMovInv=\"+intCodTipDoc+\" AND co_docRelCabMovInv=\"+intCodDoc+\" \\n\";\r\n strSql+=\" ) as a1 \\n\";\r\n strSql+=\" INNER JOIN tbm_cabMovInv as a2 ON (a1.co_empRelCabMovInv=a2.co_emp AND a1.co_locRelCabMovInv=a2.co_loc AND \\n\";\r\n strSql+=\" a1.co_tipDocRelCabMovInv=a2.co_tipDoc AND a1.co_docRelCabMovInv=a2.co_doc ) \\n\";\r\n strSql+=\" INNER JOIN tbm_detMovInv as a3 ON (a2.co_emp=a3.co_emp AND a2.co_loc=a3.co_loc AND a2.co_tipDoc=a3.co_tipDoc AND a2.co_doc=a3.co_doc) \\n\";\r\n System.out.println(\"insertarTablaRelacionadas... \"+strSql);\r\n rstLocFacVen = stmLoc.executeQuery(strSql);\r\n while(rstLocFacVen.next()){\r\n arlRegFacVen = new ArrayList();\r\n arlRegFacVen.add(INT_ARL_COD_EMP_REL, rstLocFacVen.getInt(\"co_emp\"));\r\n arlRegFacVen.add(INT_ARL_COD_LOC_REL, rstLocFacVen.getInt(\"co_loc\"));\r\n arlRegFacVen.add(INT_ARL_COD_TIP_DOC_REL, rstLocFacVen.getInt(\"co_tipDoc\"));\r\n arlRegFacVen.add(INT_ARL_COD_DOC_REL, rstLocFacVen.getInt(\"co_doc\"));\r\n arlRegFacVen.add(INT_ARL_COD_REG_REL_AUX, rstLocFacVen.getInt(\"co_reg\"));\r\n arlRegFacVen.add(INT_ARL_COD_ITM_REL, rstLocFacVen.getInt(\"co_itm\"));\r\n arlRegFacVen.add(INT_ARL_CAN_REL, rstLocFacVen.getDouble(\"nd_can\"));\r\n arlRegFacVen.add(INT_ARL_COD_CAN_UTI, 0.00);\r\n arlDatFacVen.add(arlRegFacVen); \r\n }\r\n rstLocFacVen.close();\r\n rstLocFacVen=null;\r\n\r\n strSql=\"\";\r\n strSql+=\" SELECT a1.co_empRelCabMovInv, a1.co_locRelCabMovInv, a1.co_tipDocRelCabMovInv, \\n\";\r\n strSql+=\" a1.co_docRelCabMovInv,a3.co_reg as co_regRel, a3.co_itm, a3.nd_can \\n\";\r\n strSql+=\" FROM tbm_cabSegMovInv as a1 \\n\";\r\n strSql+=\" INNER JOIN tbm_cabMovInv as a2 ON (a1.co_empRelCabMovInv=a2.co_emp AND a1.co_locRelCabMovInv=a2.co_loc AND \\n\";\r\n strSql+=\" a1.co_tipDocRelCabMovInv=a2.co_tipDoc AND a1.co_docRelCabMovInv=a2.co_doc) \\n\";\r\n strSql+=\" INNER JOIN tbm_detMovInv as a3 ON (a2.co_emp=a3.co_emp AND a2.co_loc=a3.co_loc AND a2.co_tipDoc=a3.co_tipDoc AND a2.co_doc=a3.co_doc) \\n\";\r\n strSql+=\" RIGHT JOIN tbr_detMovInv as a5 ON (a2.co_emp=a5.co_empRel AND a2.co_loc=a5.co_locRel AND a2.co_tipDoc=a5.co_tipDocRel AND a2.co_doc=a5.co_docRel) \\n\";\r\n strSql+=\" WHERE a1.co_seg=(select co_seg from tbm_cabSegMovInv \\n\";\r\n strSql+=\" where co_empRelCabCotVen=\"+intCodEmp+\" and co_locRelCabCotVen=\"+intCodLoc+\" \\n\";\r\n strSql+=\" and co_cotRelCabCotVen=\"+intCodCot+\" GROUP BY co_seg ) and a3.nd_can > 0 \\n \";\r\n strSql+=\" GROUP BY a1.co_empRelCabMovInv, a1.co_locRelCabMovInv, a1.co_tipDocRelCabMovInv, \";\r\n strSql+=\" a1.co_docRelCabMovInv,a3.co_reg , a2.co_cli, a3.co_itm, a3.nd_can \";\r\n strSql+=\" ORDER BY a3.nd_can DESC \";\r\n System.out.println(\"insertarTablaRelacionadas 2 ... \"+strSql);\r\n rstLocIng = stmLoc.executeQuery(strSql);\r\n while(rstLocIng.next()){\r\n arlRegIngGen = new ArrayList();\r\n arlRegIngGen.add(INT_ARL_COD_EMP_REL, rstLocIng.getInt(\"co_empRelCabMovInv\"));\r\n arlRegIngGen.add(INT_ARL_COD_LOC_REL, rstLocIng.getInt(\"co_locRelCabMovInv\"));\r\n arlRegIngGen.add(INT_ARL_COD_TIP_DOC_REL, rstLocIng.getInt(\"co_tipDocRelCabMovInv\"));\r\n arlRegIngGen.add(INT_ARL_COD_DOC_REL, rstLocIng.getInt(\"co_docRelCabMovInv\"));\r\n arlRegIngGen.add(INT_ARL_COD_REG_REL_AUX, rstLocIng.getInt(\"co_regRel\"));\r\n arlRegIngGen.add(INT_ARL_COD_ITM_REL, rstLocIng.getInt(\"co_itm\"));\r\n arlRegIngGen.add(INT_ARL_CAN_REL, rstLocIng.getDouble(\"nd_can\"));\r\n arlRegIngGen.add(INT_ARL_COD_CAN_UTI, 0.00);\r\n arlDatIngGen.add(arlRegIngGen); \r\n }\r\n rstLocIng.close();\r\n rstLocIng=null;\r\n \r\n String strIng=\"\";\r\n for(int i=0;i<arlDatFacVen.size();i++){\r\n for(int b=0;b<arlDatIngGen.size();b++){\r\n if(objUti.getIntValueAt(arlDatFacVen, i, INT_ARL_COD_ITM_REL)==objUti.getIntValueAt(arlDatIngGen, b, INT_ARL_COD_ITM_REL)){\r\n if(objUti.getDoubleValueAt(arlDatIngGen, b, INT_ARL_CAN_REL)>objUti.getDoubleValueAt(arlDatIngGen, b, INT_ARL_COD_CAN_UTI)){\r\n strSql=\"\";\r\n strSql+=\" INSERT INTO tbr_detMovInv(co_emp,co_loc,co_tipdoc,co_doc,co_reg,st_reg, \\n\";\r\n strSql+=\" co_emprel,co_locrel,co_tipdocrel,co_docrel,co_regrel) \\n\";\r\n strSql+=\" VALUES (\"+objUti.getIntValueAt(arlDatFacVen, i, INT_ARL_COD_EMP_REL)+\",\";\r\n strSql+=\" \"+objUti.getIntValueAt(arlDatFacVen, i, INT_ARL_COD_LOC_REL)+\",\" ;\r\n strSql+=\" \"+objUti.getIntValueAt(arlDatFacVen, i, INT_ARL_COD_TIP_DOC_REL)+\",\";\r\n strSql+=\" \"+objUti.getIntValueAt(arlDatFacVen, i, INT_ARL_COD_DOC_REL)+\",\";\r\n strSql+=\" \"+objUti.getIntValueAt(arlDatFacVen, i, INT_ARL_COD_REG_REL_AUX)+\",'A', \\n\";\r\n strSql+=\" \"+objUti.getIntValueAt(arlDatIngGen, b, INT_ARL_COD_EMP_REL)+\",\";\r\n strSql+=\" \"+objUti.getIntValueAt(arlDatIngGen, b, INT_ARL_COD_LOC_REL)+\",\";\r\n strSql+=\" \"+objUti.getIntValueAt(arlDatIngGen, b, INT_ARL_COD_TIP_DOC_REL)+\",\"; \r\n strSql+=\" \"+objUti.getIntValueAt(arlDatIngGen, b, INT_ARL_COD_DOC_REL)+\",\";\r\n strSql+=\" \"+objUti.getIntValueAt(arlDatIngGen, b, INT_ARL_COD_REG_REL_AUX)+\");\";\r\n strIng+=strSql;\r\n if(objUti.getDoubleValueAt(arlDatFacVen, i, INT_ARL_CAN_REL)<=objUti.getDoubleValueAt(arlDatIngGen, b, INT_ARL_CAN_REL)){\r\n // FACTURA 5 INGRESO 10 // le sumo lo de la factura\r\n objUti.setDoubleValueAt(arlDatIngGen, b, INT_ARL_COD_CAN_UTI, (objUti.getDoubleValueAt(arlDatIngGen, b, INT_ARL_COD_CAN_UTI)+objUti.getDoubleValueAt(arlDatFacVen, i, INT_ARL_CAN_REL)));\r\n }\r\n else{\r\n //factura 10 ing 4// le sumo el ingreso\r\n objUti.setDoubleValueAt(arlDatIngGen, b, INT_ARL_COD_CAN_UTI, (objUti.getDoubleValueAt(arlDatIngGen, b, INT_ARL_COD_CAN_UTI)+objUti.getDoubleValueAt(arlDatIngGen, b, INT_ARL_CAN_REL)));\r\n }\r\n }\r\n }\r\n }\r\n }\r\n System.out.println(\"insertarTablaRelacionadas: \\n\" + strIng);\r\n stmLoc.executeUpdate(strIng);\r\n \r\n stmLoc.close();\r\n stmLoc=null;\r\n }\r\n }\r\n catch (SQLException Evt) {\r\n blnRes = false;\r\n System.err.println(\"ERROR \" + Evt.toString());\r\n objUti.mostrarMsgErr_F1(jifCnt, Evt);\r\n } \r\n catch (Exception Evt) {\r\n blnRes = false;\r\n System.err.println(\"ERROR \" + Evt.toString());\r\n objUti.mostrarMsgErr_F1(jifCnt, Evt);\r\n }\r\n return blnRes;\r\n }", "public String validarResponsableYaAsignado (DTOResponsable dtoe) throws MareException { \n UtilidadesLog.info(\"DAOZON.validarResponsableYaAsignado(DTOResponsable dtoe): Entrada\");\n StringBuffer consulta = new StringBuffer();\n Vector parametros = new Vector();\n RecordSet rs = new RecordSet();\n \n String asignado = null;\n String unidadAdministrativa = null;\n Long marca = null;\n Long canal = null;\n Long pais = null;\n\n //Recuperamos el pais, marca y canal de la Unidad Administrativa \n BelcorpService bs = UtilidadesEJB.getBelcorpService();\n\n /*if (dtoe.getIndUA().intValue() == 1) { \n consulta.append(\" SELECT pais_oid_pais PAIS, marc_oid_marc MARCA, cana_oid_cana canal \");\n consulta.append(\" FROM zon_sub_geren_venta \");\n consulta.append(\" WHERE oid_subg_vent = ? \");\n unidadAdministrativa = \"Subgerencia\";\n }*/\n if (dtoe.getIndUA().intValue() == 2){\n consulta.append(\" SELECT pais_oid_pais PAIS, marc_oid_marc MARCA, cana_oid_cana canal \");\n consulta.append(\" FROM zon_regio \");\n consulta.append(\" WHERE oid_regi = ? \");\n unidadAdministrativa = \"Region\";\n }\n if (dtoe.getIndUA().intValue() == 3){\n consulta.append(\" SELECT pais_oid_pais PAIS, marc_oid_marc MARCA, cana_oid_cana canal \");\n consulta.append(\" FROM zon_zona \");\n consulta.append(\" WHERE oid_zona = ? \");\n unidadAdministrativa = \"Zona\";\n }\n /*if (dtoe.getIndUA().intValue() == 4){\n consulta.append(\" SELECT zon.pais_oid_pais PAIS, zon.marc_oid_marc MARCA, zon.cana_oid_cana canal \");\n consulta.append(\" FROM zon_zona zon, zon_secci sec \");\n consulta.append(\" WHERE sec.zzon_oid_zona = zon.oid_zona \"); \n consulta.append(\" AND sec.oid_secc = ? \");\n unidadAdministrativa = \"Seccion\"; \n }*/\n parametros.add(dtoe.getOidUA());\n \n try {\n rs = bs.dbService.executePreparedQuery(consulta.toString(), parametros);\n UtilidadesLog.debug(\"rs: \" + rs);\n } catch (Exception e) {\n codigoError = CodigosError.ERROR_DE_ACCESO_A_BASE_DE_DATOS;\n throw new MareException(e, UtilidadesError.armarCodigoError(codigoError));\n }\n\n if (rs.esVacio()) {\n UtilidadesLog.debug(\"****DAOZON.validarResponsableYaAsignado: No existe Unidad Administrativa \");\t\t\t\t\n String sCodigoError = CodigosError.ERROR_DE_PETICION_DE_DATOS_NO_EXISTENTE;\n throw new MareException(new Exception(), UtilidadesError.armarCodigoError(sCodigoError));\n } else {\n pais = new Long(((BigDecimal)rs.getValueAt(0,\"PAIS\")).longValue());\n marca = new Long(((BigDecimal)rs.getValueAt(0,\"MARCA\")).longValue());\n canal = new Long(((BigDecimal)rs.getValueAt(0,\"CANAL\")).longValue());\n }\n\n //Buscamos si el cliente es responsable en otra unidad administrativa\n //para el pais, marca y canal de la unidad administrativa a asignar\n parametros = new Vector(); \n consulta = new StringBuffer();\n /*consulta.append(\" SELECT 'SubGerencia: ' || zon_sub_geren_venta.des_subg_vent DESCUNIDADADMIN \");\n consulta.append(\" FROM zon_sub_geren_venta, mae_clien \");\n consulta.append(\" WHERE mae_clien.oid_clie = zon_sub_geren_venta.clie_oid_clie \"); \n consulta.append(\" AND mae_clien.oid_clie = ? \");\n parametros.add(dtoe.getOidResponsable());\n consulta.append(\" AND zon_sub_geren_venta.pais_oid_pais = ? \");\n parametros.add(pais);\n consulta.append(\" AND zon_sub_geren_venta.marc_oid_marc = ? \");\n parametros.add(marca);\n consulta.append(\" AND zon_sub_geren_venta.cana_oid_cana = ? \");\n parametros.add(canal);\n consulta.append(\" AND zon_sub_geren_venta.ind_borr = 0 \");\n\n consulta.append(\" UNION \");*/\n \n consulta.append(\" SELECT 'Region: ' || zon_regio.des_regi DESCUNIDADADMIN \");\n consulta.append(\" FROM mae_clien, zon_sub_geren_venta, zon_regio \");\n consulta.append(\" WHERE mae_clien.oid_clie = zon_regio.clie_oid_clie \");\n consulta.append(\" AND mae_clien.oid_clie = ? \");\n parametros.add(dtoe.getOidResponsable());\n consulta.append(\" AND zon_regio.zsgv_oid_subg_vent = zon_sub_geren_venta.oid_subg_vent \");\n consulta.append(\" AND zon_sub_geren_venta.pais_oid_pais = ? \");\n parametros.add(pais);\n consulta.append(\" AND zon_sub_geren_venta.marc_oid_marc = ? \");\n parametros.add(marca);\n consulta.append(\" AND zon_sub_geren_venta.cana_oid_cana = ? \");\n parametros.add(canal);\n consulta.append(\" AND zon_sub_geren_venta.ind_borr = 0 \");\n consulta.append(\" AND zon_regio.ind_borr = 0 \");\n \n consulta.append(\" UNION \");\n \n consulta.append(\" SELECT 'Zona: ' || zon_zona.des_zona DESCUNIDADADMIN \");\n consulta.append(\" FROM zon_sub_geren_venta, zon_regio, zon_zona, mae_clien \");\n consulta.append(\" WHERE zon_zona.clie_oid_clie = mae_clien.oid_clie \");\n consulta.append(\" AND mae_clien.oid_clie = ? \");\n parametros.add(dtoe.getOidResponsable());\n consulta.append(\" AND zon_sub_geren_venta.pais_oid_pais = ? \");\n parametros.add(pais);\n consulta.append(\" AND zon_sub_geren_venta.marc_oid_marc = ? \");\n parametros.add(marca);\n consulta.append(\" AND zon_sub_geren_venta.cana_oid_cana = ? \");\n parametros.add(canal);\n consulta.append(\" AND zon_regio.zsgv_oid_subg_vent = zon_sub_geren_venta.oid_subg_vent \");\n consulta.append(\" AND zon_zona.zorg_oid_regi = zon_regio.oid_regi \");\n consulta.append(\" AND zon_zona.ind_borr = 0 \");\n consulta.append(\" AND zon_sub_geren_venta.ind_borr = 0 \");\n consulta.append(\" AND zon_regio.ind_borr = 0 \");\n \n /*consulta.append(\" UNION \");\n \n consulta.append(\" SELECT 'Seccion: ' || zon_secci.des_secci DESCUNIDADADMIN \");\n consulta.append(\" FROM zon_sub_geren_venta, zon_regio, \");\n consulta.append(\" zon_zona, zon_secci, mae_clien \");\n consulta.append(\" WHERE zon_secci.clie_oid_clie = mae_clien.oid_clie \");\n consulta.append(\" AND mae_clien.oid_clie = ? \");\n parametros.add(dtoe.getOidResponsable());\n consulta.append(\" AND zon_sub_geren_venta.pais_oid_pais = ? \");\n parametros.add(pais);\n consulta.append(\" AND zon_sub_geren_venta.marc_oid_marc = ? \");\n parametros.add(marca);\n consulta.append(\" AND zon_sub_geren_venta.cana_oid_cana = ? \");\n parametros.add(canal);\n consulta.append(\" AND zon_regio.zsgv_oid_subg_vent = zon_sub_geren_venta.oid_subg_vent \");\n consulta.append(\" AND zon_zona.zorg_oid_regi = zon_regio.oid_regi \");\n consulta.append(\" AND zon_secci.zzon_oid_zona = zon_zona.oid_zona \"); \n consulta.append(\" AND zon_secci.ind_borr = 0 \");\n consulta.append(\" AND zon_zona.ind_borr = 0 \");\n consulta.append(\" AND zon_sub_geren_venta.ind_borr = 0 \");\n consulta.append(\" AND zon_regio.ind_borr = 0 \");*/\n\n try {\n rs = bs.dbService.executePreparedQuery(consulta.toString(), parametros);\n UtilidadesLog.debug(\"rs: \" + rs);\n } catch (Exception e) {\n codigoError = CodigosError.ERROR_DE_ACCESO_A_BASE_DE_DATOS;\n throw new MareException(e, UtilidadesError.armarCodigoError(codigoError));\n }\n\n if (rs.esVacio()) {\n UtilidadesLog.debug(\"****DAOZON.validarResponsableYaAsignado: No hay datos \");\t\t\t\t\n }\n else {\n UtilidadesLog.debug(\"****DAOZON.validarResponsableYaAsignado: se encontro al menos un cliente \");\t\t\t\t\n asignado = rs.getValueAt(0,\"DESCUNIDADADMIN\").toString();\n }\n \n UtilidadesLog.info(\"DAOZON.validarResponsableYaAsignado(DTOResponsable dtoe): Salida\"); \n \n return asignado;\n }", "public Produto consultarProduto(Produto produto) {\r\n ConexaoBDJavaDB conexaoBD = new ConexaoBDJavaDB(\"routeexpress\");\r\n Connection conn = null;\r\n PreparedStatement stmt = null;\r\n ResultSet rs = null;\r\n Produto cerveja = null;\r\n String sql = \"SELECT TBL_CERVEJARIA.ID_CERVEJARIA, TBL_CERVEJARIA.CERVEJARIA, TBL_CERVEJARIA.PAIS, \"\r\n + \"TBL_CERVEJA.ID_CERVEJA, TBL_CERVEJA.ID_CERVEJARIA AS \\\"FK_CERVEJARIA\\\", \"\r\n + \"TBL_CERVEJA.ROTULO, TBL_CERVEJA.PRECO, TBL_CERVEJA.VOLUME, TBL_CERVEJA.TEOR, TBL_CERVEJA.COR, TBL_CERVEJA.TEMPERATURA, \"\r\n + \"TBL_CERVEJA.FAMILIA_E_ESTILO, TBL_CERVEJA.DESCRICAO, TBL_CERVEJA.SABOR, TBL_CERVEJA.IMAGEM_1, TBL_CERVEJA.IMAGEM_2, TBL_CERVEJA.IMAGEM_3 \"\r\n + \"FROM TBL_CERVEJARIA \"\r\n + \"INNER JOIN TBL_CERVEJA \"\r\n + \"ON TBL_CERVEJARIA.ID_CERVEJARIA = TBL_CERVEJA.ID_CERVEJARIA \"\r\n + \"WHERE ID_CERVEJA = ?\";\r\n try {\r\n conn = conexaoBD.obterConexao();\r\n stmt = conn.prepareStatement(sql);\r\n stmt.setInt(1, produto.getIdCerveja());\r\n rs = stmt.executeQuery();\r\n if (rs.next()) {\r\n cerveja = new Produto();\r\n cerveja.setIdCervejaria(rs.getInt(\"ID_CERVEJARIA\"));\r\n cerveja.setCervejaria(rs.getString(\"CERVEJARIA\"));\r\n cerveja.setPais(rs.getString(\"PAIS\"));\r\n cerveja.setIdCerveja(rs.getInt(\"ID_CERVEJA\"));\r\n cerveja.setIdFkCervajaria(rs.getInt(\"FK_CERVEJARIA\"));\r\n cerveja.setRotulo(rs.getString(\"ROTULO\"));\r\n cerveja.setPreco(rs.getString(\"PRECO\"));\r\n cerveja.setVolume(rs.getString(\"VOLUME\"));\r\n cerveja.setTeor(rs.getString(\"TEOR\"));\r\n cerveja.setCor(rs.getString(\"COR\"));\r\n cerveja.setTemperatura(rs.getString(\"TEMPERATURA\"));\r\n cerveja.setFamiliaEEstilo(rs.getString(\"FAMILIA_E_ESTILO\"));\r\n cerveja.setDescricao(rs.getString(\"DESCRICAO\"));\r\n cerveja.setSabor(rs.getString(\"SABOR\"));\r\n cerveja.setImagem1(rs.getString(\"IMAGEM_1\"));\r\n cerveja.setImagem2(rs.getString(\"IMAGEM_2\"));\r\n cerveja.setImagem3(rs.getString(\"IMAGEM_3\"));\r\n } else {\r\n return cerveja;\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (ClassNotFoundException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n if (conn != null) {\r\n try {\r\n conn.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (stmt != null) {\r\n try {\r\n stmt.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (rs != null) {\r\n try {\r\n rs.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }\r\n return cerveja;\r\n }", "public List<Object[]> getRetencionesAnuladas(int mes, int anio, int idOrganizacion, Sucursal sucursalFP, Sucursal sucursalRetencion, PuntoDeVenta puntoVentaRetencion, String orden, TipoComprobanteSRI tipoComprobante)\r\n/* 125: */ {\r\n/* 126:175 */ StringBuilder sql = new StringBuilder();\r\n/* 127: */ \r\n/* 128:177 */ sql.append(\" SELECT a.fechaEmisionDocumento, f.fechaRegistro, f.fechaEmision, CONCAT(f.establecimiento,'-',f.puntoEmision,'-',f.numero), f.identificacionProveedor, \");\r\n/* 129: */ \r\n/* 130:179 */ sql.append(\" \\t'', f.montoIva*0, f.montoIva*0, f.montoIva*0, '', '', \");\r\n/* 131: */ \r\n/* 132:181 */ sql.append(\" \\tCONCAT(a.establecimiento,'-',a.puntoEmision,'-',a.numeroDesde), f.montoIva*0, f.montoIva*0, f.montoIva*0, f.nombreProveedor, \");\r\n/* 133: */ \r\n/* 134:183 */ sql.append(\"\\tf.montoIva*0, f.montoIva*0, '', a.autorizacion, f.fechaRegistro, f.autorizacion, '', 'ANULADO', f.idFacturaProveedorSRI,'' \");\r\n/* 135:184 */ sql.append(\" FROM AnuladoSRI a, FacturaProveedorSRI f \");\r\n/* 136:185 */ sql.append(\" WHERE a.documentoRelacionado = f.idFacturaProveedorSRI \");\r\n/* 137:186 */ sql.append(\" AND a.tipoComprobanteSRI = :tipoComprobante \");\r\n/* 138:187 */ sql.append(\" AND a.anio = :anio AND a.mes = :mes \");\r\n/* 139:188 */ sql.append(\" AND a.idOrganizacion = :idOrganizacion \");\r\n/* 140:189 */ if (sucursalFP != null) {\r\n/* 141:190 */ sql.append(\" AND f.idSucursal = :idSucursal \");\r\n/* 142: */ }\r\n/* 143:192 */ if (sucursalRetencion != null) {\r\n/* 144:193 */ sql.append(\" AND a.establecimiento = :sucursalRetencion \");\r\n/* 145: */ }\r\n/* 146:195 */ if (puntoVentaRetencion != null) {\r\n/* 147:196 */ sql.append(\" AND a.puntoEmision = :puntoVentaRetencion \");\r\n/* 148: */ }\r\n/* 149:198 */ Query query = this.em.createQuery(sql.toString());\r\n/* 150:199 */ query.setParameter(\"mes\", Integer.valueOf(mes));\r\n/* 151:200 */ query.setParameter(\"anio\", Integer.valueOf(anio));\r\n/* 152:201 */ query.setParameter(\"idOrganizacion\", Integer.valueOf(idOrganizacion));\r\n/* 153:202 */ query.setParameter(\"tipoComprobante\", tipoComprobante);\r\n/* 154:203 */ if (sucursalFP != null) {\r\n/* 155:204 */ query.setParameter(\"idSucursal\", Integer.valueOf(sucursalFP.getId()));\r\n/* 156: */ }\r\n/* 157:206 */ if (sucursalRetencion != null) {\r\n/* 158:207 */ query.setParameter(\"sucursalRetencion\", sucursalRetencion.getCodigo());\r\n/* 159: */ }\r\n/* 160:209 */ if (puntoVentaRetencion != null) {\r\n/* 161:210 */ query.setParameter(\"puntoVentaRetencion\", puntoVentaRetencion.getCodigo());\r\n/* 162: */ }\r\n/* 163:213 */ return query.getResultList();\r\n/* 164: */ }", "@SuppressWarnings(\"unchecked\")\n public void consultarCoactivosXLS() throws CirculemosNegocioException {\n\n // consulta la tabla temporal de los 6000 coactivos\n StringBuilder sql = new StringBuilder();\n\n sql.append(\"select [TIPO DOC], [NUMERO DE IDENTIFICACIÓN], [valor multas], [titulo valor], proceso \");\n sql.append(\"from coactivos_xls \");\n sql.append(\"where id_tramite is null and numero_axis is null AND archivo is not null \");\n sql.append(\"AND [titulo valor] IN ('2186721','2187250','2187580','2186845')\");\n\n Query query = em.createNativeQuery(sql.toString());\n\n List<Object[]> listaResultados = Utilidades.safeList(query.getResultList());\n\n Date fechaCoactivo = UtilFecha.buildCalendar().getTime();\n CoactivoDTO coactivoDTOs;\n TipoIdentificacionPersonaDTO tipoIdentificacion;\n List<ObligacionCoactivoDTO> obligacionesCoactivoDTO;\n PersonaDTO personaDTO;\n ProcesoDTO proceso;\n // persiste los resultados en coactivoDTO\n for (Object[] coactivo : listaResultados) {\n coactivoDTOs = new CoactivoDTO();\n // persiste el tipo de indetificacion en TipoIdentificacionPersonaDTO\n personaDTO = new PersonaDTO();\n proceso = new ProcesoDTO();\n tipoIdentificacion = new TipoIdentificacionPersonaDTO();\n obligacionesCoactivoDTO = new ArrayList<>();\n\n tipoIdentificacion.setCodigo((String) coactivo[0]);\n personaDTO.setTipoIdentificacion(tipoIdentificacion);\n coactivoDTOs.setPersona(personaDTO);\n coactivoDTOs.getPersona().setNumeroIdentificacion((String) coactivo[1]);\n\n proceso.setFechaInicio(fechaCoactivo);\n coactivoDTOs.setProceso(proceso);\n coactivoDTOs.setValorTotalObligaciones(BigDecimal\n .valueOf(Double.valueOf(coactivo[2].toString().replaceAll(\"\\\\.\", \"\").replaceAll(\",\", \".\"))));\n coactivoDTOs.setValorTotalCostasProcesales(\n coactivoDTOs.getValorTotalObligaciones().multiply(BigDecimal.valueOf(0.05)));\n coactivoDTOs.getProceso().setObservacion(\"COACTIVO\");\n String[] numeroFactura = coactivo[3].toString().split(\",\");\n // separa los numeros de factura cuando viene mas de uno.\n for (String nFactura : numeroFactura) {\n // consulta por numero de factura el el saldo a capital por cada factura\n sql = new StringBuilder();\n sql.append(\"select nombre, saldo_capital, saldo_interes \");\n sql.append(\"from cartera_coactivos_xls \");\n sql.append(\"where nombre = :nFactura\");\n\n Query quer = em.createNativeQuery(sql.toString());\n\n quer.setParameter(\"nFactura\", nFactura);\n\n List<Object[]> result = Utilidades.safeList(quer.getResultList());\n // persiste las obligaciones consultadas y las inserta en ObligacionCoactivoDTO\n ObligacionCoactivoDTO obligaciones;\n for (Object[] obligacion : result) {\n obligaciones = new ObligacionCoactivoDTO();\n obligaciones.setNumeroObligacion((String) obligacion[0]);\n obligaciones.setValorObligacion(BigDecimal.valueOf(\n Double.valueOf(obligacion[1].toString().replaceAll(\"\\\\.\", \"\").replaceAll(\",\", \".\"))));\n obligaciones.setValorInteresMoratorios(BigDecimal.valueOf(\n Double.valueOf(obligacion[2].toString().replaceAll(\"\\\\.\", \"\").replaceAll(\",\", \".\"))));\n // Adiciona las obligaciones a una lista\n obligacionesCoactivoDTO.add(obligaciones);\n }\n\n }\n coactivoDTOs.setObligacionCoactivos(obligacionesCoactivoDTO);\n try {\n iLCoactivo.registrarCoactivoAxis(coactivoDTOs, coactivo[4].toString());\n } catch (Exception e) {\n logger.error(\"Error al registrar coactivo 6000 :\", e);\n }\n }\n }", "private void executeQuery() {\n }", "@Override\n\tpublic void prepare() throws Exception {\n\t\tsuper.prepare();\n\t\t//setto il titolo:\n\t\tthis.model.setTitolo(\"Quote ordinativo\");\n\t\t\n }", "public List<ReporteComprasVentasRetenciones> getReporteCompras(int mes, int anio, int idOrganizacion)\r\n/* 167: */ {\r\n/* 168:227 */ StringBuffer sql = new StringBuffer();\r\n/* 169: */ \r\n/* 170:229 */ sql.append(\" SELECT new ReporteComprasVentasRetenciones(tc.codigo, tc.nombre, COUNT(tc.codigo), \");\r\n/* 171:230 */ sql.append(\" (CASE WHEN tc.codigo = '04' THEN -SUM(fps.baseImponibleTarifaCero) ELSE SUM(fps.baseImponibleTarifaCero) END), \");\r\n/* 172:231 */ sql.append(\" (CASE WHEN tc.codigo = '04' THEN -SUM(fps.baseImponibleDiferenteCero) ELSE SUM(fps.baseImponibleDiferenteCero) END), \");\r\n/* 173:232 */ sql.append(\" (CASE WHEN tc.codigo = '04' THEN -SUM(fps.baseImponibleNoObjetoIva) ELSE SUM(fps.baseImponibleNoObjetoIva) END), \");\r\n/* 174:233 */ sql.append(\" (CASE WHEN tc.codigo = '04' THEN -SUM(fps.montoIva) ELSE SUM(fps.montoIva) END), 'Compras',ct.codigo,ct.nombre) \");\r\n/* 175:234 */ sql.append(\" FROM FacturaProveedorSRI fps \");\r\n/* 176:235 */ sql.append(\" LEFT OUTER JOIN fps.tipoComprobanteSRI tc \");\r\n/* 177:236 */ sql.append(\" LEFT OUTER JOIN fps.creditoTributarioSRI ct\");\r\n/* 178:237 */ sql.append(\" WHERE MONTH(fps.fechaRegistro) =:mes \");\r\n/* 179:238 */ sql.append(\" AND YEAR(fps.fechaRegistro) =:anio \");\r\n/* 180:239 */ sql.append(\" AND fps.estado!=:estadoAnulado \");\r\n/* 181:240 */ sql.append(\" AND fps.indicadorSaldoInicial!=true \");\r\n/* 182:241 */ sql.append(\" AND fps.idOrganizacion = :idOrganizacion \");\r\n/* 183:242 */ sql.append(\" GROUP BY tc.codigo, tc.nombre,ct.codigo,ct.nombre\");\r\n/* 184:243 */ sql.append(\" ORDER BY tc.codigo, tc.nombre \");\r\n/* 185: */ \r\n/* 186:245 */ Query query = this.em.createQuery(sql.toString());\r\n/* 187:246 */ query.setParameter(\"mes\", Integer.valueOf(mes));\r\n/* 188:247 */ query.setParameter(\"anio\", Integer.valueOf(anio));\r\n/* 189:248 */ query.setParameter(\"estadoAnulado\", Estado.ANULADO);\r\n/* 190:249 */ query.setParameter(\"idOrganizacion\", Integer.valueOf(idOrganizacion));\r\n/* 191: */ \r\n/* 192:251 */ return query.getResultList();\r\n/* 193: */ }", "private void tampil() {\n int row=tabmode.getRowCount();\n for (int i=0;i<row;i++){\n tabmode.removeRow(0);\n }\n try {\n Connection koneksi=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/medica\",\"root\",\"\");\n ResultSet rs=koneksi.createStatement().executeQuery(\"select rawat_inap_bayi.no, pasien_bayi.tgl_lahir, rawat_inap_bayi.tgl_masuk, rawat_inap_bayi.tgl_pulang, rawat_inap_bayi.lama, kamar.nm_kamar, penyakit.nama_penyakit, dokter.nm_dokter, tindakan.nama_tindakan, rawat_inap_bayi.suhu_tubuh, rawat_inap_bayi.resusitas, rawat_inap_bayi.hasil, rawat_inap_bayi.keterangan, rawat_inap_bayi.apgar \"+\n \" from rawat_inap_bayi inner join pasien_bayi on rawat_inap_bayi.no_rm_bayi=pasien_bayi.no_rm_bayi inner join kamar on rawat_inap_bayi.kd_kamar=kamar.kd_kamar inner join penyakit on rawat_inap_bayi.kd_icd = penyakit.kd_icd inner join dokter on rawat_inap_bayi.kd_dokter = dokter.kd_dokter inner join tindakan on rawat_inap_bayi.kode_tindakan = tindakan.kode_tindakan \");\n while(rs.next()){\n String[] data={rs.getString(1),rs.getString(2),rs.getString(3),rs.getString(4),rs.getString(5),rs.getString(6),rs.getString(7),rs.getString(8),rs.getString(9),rs.getString(10),rs.getString(11),rs.getString(12),rs.getString(13),rs.getString(14)};\n tabmode.addRow(data);\n }\n } catch (SQLException ex) {\n System.out.println(ex);\n }\n \n }", "public RecordSet obtenerResumen(DTOResumen dtoe) throws MareException{\n UtilidadesLog.info(\"DAOParametrizacionCOB.obtenerResumen(DTOResumen dtoe): Entrada\");\n \n RecordSet rs = new RecordSet();\n StringBuffer query = new StringBuffer();\n BelcorpService bs;\n try\n { bs = BelcorpService.getInstance();\n }\n catch(MareMiiServiceNotFoundException ex)\n { throw new MareException(ex, UtilidadesError.armarCodigoError(CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE));\n } \n /*query.append(\" SELECT distinct p.IDPRINCIPAL AS OID,CONCAT(p.name,CONCAT(' ',CONCAT(pv.STRINGVALUE,CONCAT(' ',CONCAT(pv2.STRINGVALUE,CONCAT(' ',CONCAT(pv3.STRINGVALUE,CONCAT(' ',pv4.STRINGVALUE)))))))) NOMBRE, \");\n query.append(\" gen.VAL_I18N AS CANAL, \");\n query.append(\" sma.DES_MARC AS MARCA, \"); \n query.append(\" subvta.DES_SUBG_VENT AS SUBGERVENTA, \");\n query.append(\" gen2.VAL_I18N AS REGION, \");\n query.append(\" gen3.VAL_I18N AS ZONA, \");\n query.append(\" secc.DES_SECCI AS SECCION, \");\n query.append(\" gen5.VAL_I18N AS TERRITORIO \");\n query.append(\" FROM v_gen_i18n_sicc gen, \");\n query.append(\" v_gen_i18n_sicc gen2, \");\n query.append(\" v_gen_i18n_sicc gen3, \");\n query.append(\" v_gen_i18n_sicc gen5, \");\n query.append(\" seg_marca sma, \");\n query.append(\" zon_secci secc, \");\n query.append(\" cob_usuar_etapa_cobra_detal cdetal, \");\n query.append(\" zon_sub_geren_venta subvta, \");\n query.append(\" cob_usuar_etapa_cobra_cabec ccabe, \");\n query.append(\" cob_usuar_cobra usucob, \");\n query.append(\" own_mare.principals p, \");\n query.append(\" propertyvalues pv, \");\n query.append(\" propertyvalues pv2, \");\n query.append(\" propertyvalues pv3, \");\n query.append(\" propertyvalues pv4, \");\n query.append(\" own_mare.users u \");\n query.append(\" WHERE cdetal.zsgv_oid_subg_vent = subvta.oid_subg_vent \");\n query.append(\" AND ccabe.oid_usua_etap_cobr = cdetal.oid_usua_etap_cobr_deta \");\n query.append(\" AND secc.oid_secc(+) = cdetal.zscc_oid_secc \");\n query.append(\" AND sma.oid_marc = subvta.marc_oid_marc \");\n query.append(\" AND ccabe.usco_oid_usua_cobr = usucob.oid_usua_cobr \");\n query.append(\" AND gen.val_oid = subvta.cana_oid_cana \");\n query.append(\" AND gen.attr_enti = 'SEG_CANAL' \");\n query.append(\" AND gen.attr_num_atri = 1 \");\n query.append(\" AND gen.idio_oid_idio = '\" + dtoe.getOidIdioma() + \" ' \");\n query.append(\" AND pv.idproperty(+) = 2 \");\n query.append(\" AND pv.idprincipal(+) = p.idprincipal \");\n query.append(\" AND pv2.idproperty(+) = 3 \");\n query.append(\" AND pv2.idprincipal(+) = p.idprincipal \");\n query.append(\" AND pv3.idproperty = 5 \");\n query.append(\" AND pv3.idprincipal = p.idprincipal \");\n query.append(\" AND pv4.idproperty = 6 \");\n query.append(\" AND pv4.idprincipal = p.idprincipal \");\n query.append(\" AND gen2.val_oid(+) = '\" + dtoe.getOidIdioma() + \" ' \");\n query.append(\" AND gen2.attr_enti(+) = 'ZON_REGIO' \");\n query.append(\" AND gen2.attr_num_atri(+) = 1 \");\n query.append(\" AND gen2.idio_oid_idio(+) = '\" + dtoe.getOidIdioma() + \" ' \");\n query.append(\" AND gen3.val_oid(+) = cdetal.zzon_oid_zona \");\n query.append(\" AND gen3.attr_enti(+) = 'ZON_ZONA' \");\n query.append(\" AND gen3.attr_num_atri(+) = 1 \");\n query.append(\" AND gen3.idio_oid_idio(+) = '\" + dtoe.getOidIdioma() + \" ' \");\n query.append(\" AND gen5.val_oid(+) = cdetal.terr_oid_terr \");\n query.append(\" AND gen5.attr_enti(+) = 'ZON_TERRI' \");\n query.append(\" AND gen5.attr_num_atri(+) = 1 \");\n query.append(\" AND gen5.idio_oid_idio(+) = '\" + dtoe.getOidIdioma() + \" ' \");\n query.append(\" AND u.iduser = p.idprincipal \");\n query.append(\" AND p.idprincipal = ccabe.usco_oid_usua_cobr \");\n */\n \n /*query.append(\" SELECT distinct p.IDPRINCIPAL AS OID, \");\n query.append(\" p.name AS USUARIO, \");\n */\n //Se le agega \"p.IDPRINCIPAL,\" segun BELC300017927 \n //query.append(\" SELECT distinct p.name AS USUARIO, \"); \n query.append(\" SELECT distinct p.IDPRINCIPAL, p.name AS USUARIO, \");\n query.append(\" CONCAT(p.name,CONCAT(' ',CONCAT(pv.STRINGVALUE,CONCAT(' ',CONCAT(pv2.STRINGVALUE,CONCAT(' ',CONCAT(pv3.STRINGVALUE,CONCAT(' ',pv4.STRINGVALUE)))))))) NOMBRE, \");\n query.append(\" sma.DES_MARC AS MARCA, \");\n query.append(\" gen.VAL_I18N AS CANAL, \"); \n query.append(\" subvta.DES_SUBG_VENT AS SUBGERVENTA, \");\n query.append(\" regio.DES_REGI AS REGION, \");\n query.append(\" zona.DES_ZONA AS ZONA, \"); \n \t query.append(\" secc.DES_SECCI AS SECCION, \"); \n query.append(\" terri.COD_TERR AS TERRITORIO \");\n query.append(\" FROM v_gen_i18n_sicc gen, \");\n query.append(\" SEG_CANAL canal, \");\n query.append(\" ZON_TERRI terri, \");\n query.append(\" ZON_ZONA zona, \");\n query.append(\" ZON_REGIO regio, \");\n query.append(\" seg_marca sma, \");\n query.append(\" zon_secci secc, \");\n query.append(\" cob_usuar_etapa_cobra_detal cdetal, \");\n query.append(\" zon_sub_geren_venta subvta, \");\n query.append(\" cob_usuar_etapa_cobra_cabec ccabe, \");\n query.append(\" cob_usuar_cobra usucob, \");\n query.append(\" principals p, \");\n query.append(\" propertyvalues pv, \");\n query.append(\" propertyvalues pv2, \");\n query.append(\" propertyvalues pv3, \");\n query.append(\" propertyvalues pv4, \");\n query.append(\" users u \");\n query.append(\" WHERE cdetal.zsgv_oid_subg_vent = subvta.oid_subg_vent \");\n query.append(\" AND ccabe.oid_usua_etap_cobr = cdetal.UECC_OID_USUA_ETAP_COBR \");\n query.append(\" AND secc.oid_secc(+) = cdetal.zscc_oid_secc \");\n query.append(\" AND sma.oid_marc = subvta.marc_oid_marc \");\n query.append(\" AND ccabe.usco_oid_usua_cobr = usucob.oid_usua_cobr \");\n query.append(\" AND gen.val_oid = subvta.cana_oid_cana \");\n query.append(\" AND gen.attr_enti = 'SEG_CANAL' \");\n query.append(\" AND gen.attr_num_atri = 1 \");\n query.append(\" AND gen.idio_oid_idio = '1' \");\n query.append(\" AND pv.idproperty(+) = 2 \");\n query.append(\" AND pv.idprincipal(+) = p.idprincipal \");\n query.append(\" AND pv2.idproperty(+) = 3 \");\n query.append(\" AND pv2.idprincipal(+) = p.idprincipal \");\n query.append(\" AND pv3.idproperty = 5 \");\n query.append(\" AND pv3.idprincipal = p.idprincipal \");\n query.append(\" AND pv4.idproperty = 6 \");\n query.append(\" AND pv4.idprincipal = p.idprincipal \t\t \");\n query.append(\" AND terri.OID_TERR = cdetal.terr_oid_terr\t\t \");\n query.append(\" AND zona.OID_ZONA = cdetal.zzon_oid_zona\t\t \");\n query.append(\" AND regio.OID_REGI = cdetal.ZORG_OID_REGI\t\t \");\n query.append(\" AND u.iduser = p.idprincipal \");\n query.append(\" AND p.idprincipal = usucob.USER_OID_USUA_COBR \");\n \n /* Validaciones */\n if( dtoe.getOidMarca()!= null ){\n query.append(\" AND subvta.MARC_OID_MARC = \" + dtoe.getOidMarca() );\n }\n if( dtoe.getOidCanal() != null){\n query.append(\" AND subvta.CANA_OID_CANA = \" + dtoe.getOidCanal() );\n }\n if( dtoe.getOidSGV() != null ){\n query.append(\" AND subvta.OID_SUBG_VENT = \" + dtoe.getOidSGV() );\n }\n if( dtoe.getOidRegion() != null ){\n query.append(\" AND cdetal.ZORG_OID_REGI = \" + dtoe.getOidRegion() ); \n }\n if( dtoe.getOidZona() != null ){\n query.append(\" AND cdetal.ZZON_OID_ZONA = \" + dtoe.getOidZona() ); \n }\n if( dtoe.getOidSeccion() != null ){\n query.append(\" AND cdetal.ZSCC_OID_SECC = \" + dtoe.getOidSeccion() );\n }\n if( dtoe.getOidTerritorio() != null ){\n query.append(\" AND cdetal.TERR_OID_TERR = \" + dtoe.getOidTerritorio() );\n }\n UtilidadesLog.debug(\"query \" + query.toString() );\n try \n { rs = bs.dbService.executeStaticQuery(query.toString());\n }\n catch (Exception ex) \n { throw new MareException(ex, UtilidadesError.armarCodigoError(CodigosError.ERROR_DE_ACCESO_A_BASE_DE_DATOS));\n }\t\n \n UtilidadesLog.info(\"DAOParametrizacionCOB.obtenerResumen(DTOResumen dtoe): Salida\");\n \n return rs; \n }", "private boolean generarEgresoMercaderiaReservada(java.sql.Connection conExt, int CodEmp,int CodLoc,int CodCot){\n boolean blnRes=false;\n java.sql.Statement stmLoc;\n java.sql.ResultSet rstLoc;\n ArrayList arlResDat, arlResReg;\n try{\n if(conExt!=null){\n stmLoc=conExt.createStatement();\n arlResDat = new ArrayList();\n strSql=\"\";\n strSql+=\" SELECT a1.co_emp, a1.co_loc, a1.co_cot, a2.co_reg, a2.co_itm, a2.co_bod, a2.nd_can, \\n\";\n strSql+=\" CASE WHEN a3.nd_cosUni IS NULL THEN 0 ELSE a3.nd_cosUni END as nd_cosUni,a4.co_seg \";\n strSql+=\" ,a2.tx_nomItm \\n\";\n strSql+=\" FROM tbm_cabCotVen as a1 \\n\";\n strSql+=\" INNER JOIN tbm_detCotVen as a2 ON (a1.co_emp=a2.co_emp AND a1.co_loc=a2.co_loc AND a1.co_cot=a2.co_cot) \\n\";\n strSql+=\" INNER JOIN tbm_inv as a3 ON (a2.co_emp=a3.co_emp AND a2.co_itm=a3.co_itm) \\n\";\n strSql+=\" INNER JOIN tbm_cabSegMovInv as a4 ON (a1.co_emp=a4.co_empRelCabCotVen AND a1.co_loc=a4.co_locRelCabCotVen AND \\n\";\n strSql+=\" a1.co_cot=a4.co_cotRelCabCotVen) \\n\";\n strSql+=\" WHERE a1.co_emp=\"+CodEmp+\" and a1.co_loc=\"+CodLoc+\" and a1.co_cot=\"+CodCot+\" and a3.st_ser='N' \\n\";\n strSql+=\" ORDER BY a1.co_emp, a1.co_loc, a1.co_cot, a2.co_reg \\n\";\n System.out.println(\"generarEgresoMercaderiaReservada \" + strSql);\n rstLoc = stmLoc.executeQuery(strSql);\n while(rstLoc.next()){\n arlResReg = new ArrayList();\n arlResReg.add(INT_ARL_DAT_COD_EMP, rstLoc.getInt(\"co_emp\"));\n arlResReg.add(INT_ARL_DAT_COD_LOC, rstLoc.getInt(\"co_loc\"));\n arlResReg.add(INT_ARL_DAT_COD_BOD_EMP, rstLoc.getInt(\"co_bod\"));\n arlResReg.add(INT_ARL_DAT_COD_ITM_EMP, rstLoc.getInt(\"co_itm\"));\n arlResReg.add(INT_ARL_DAT_CAN, rstLoc.getDouble(\"nd_can\"));\n arlResReg.add(INT_ARL_DAT_COS_UNI, rstLoc.getDouble(\"nd_cosUni\"));\n arlResReg.add(INT_ARL_DAT_COD_SEG, rstLoc.getInt(\"co_seg\"));\n arlResReg.add(INT_ARL_DAT_COD_REG, rstLoc.getInt(\"co_reg\"));\n arlResReg.add(INT_ARL_DAT_NOM_ITM, rstLoc.getString(\"tx_nomItm\"));\n arlResDat.add(arlResReg);\n }\n rstLoc.close();\n rstLoc=null;\n stmLoc.close();\n stmLoc=null;\n if(!arlResDat.isEmpty()){\n ZafGenDocIngEgrInvRes objGenDocIngEgrInvRes = new ZafGenDocIngEgrInvRes(objParSis,this);\n if(objGenDocIngEgrInvRes.GenerarDocumentoIngresoEgresoReservas(conExt, datFecAux, arlResDat, 1)){\n blnRes=true;\n }\n }\n }\n }\n catch (java.sql.SQLException e) { \n blnRes = false;\n objUti.mostrarMsgErr_F1(this, e); \n }\n catch (Exception Evt) {\n blnRes = false;\n objUti.mostrarMsgErr_F1(this, Evt);\n }\n return blnRes;\n }", "public void llenadoDeTablas() {\n /**\n *\n * creaccion de la tabla de de titulos \n */\n DefaultTableModel modelo = new DefaultTableModel();\n modelo.addColumn(\"ID Bitacora\");\n modelo.addColumn(\"Usuario\");\n modelo.addColumn(\"Fecha\");\n modelo.addColumn(\"Hora\");\n modelo.addColumn(\"Ip\");\n modelo.addColumn(\"host\");\n \n modelo.addColumn(\"Accion\");\n modelo.addColumn(\"Codigo Aplicacion\");\n modelo.addColumn(\"Modulo\");\n /**\n *\n * instaciamiento de las las clases Bitacora y BiracoraDAO\n * intaciamiento de la clases con el llenado de tablas\n */\n BitacoraDao BicDAO = new BitacoraDao();\n List<Bitacora> usuario = BicDAO.select();\n JtProductos1.setModel(modelo);\n String[] dato = new String[9];\n for (int i = 0; i < usuario.size(); i++) {\n dato[0] = usuario.get(i).getId_Bitacora();\n dato[1] = usuario.get(i).getId_Usuario();\n dato[2] = usuario.get(i).getFecha();\n dato[3] = usuario.get(i).getHora();\n dato[4] = usuario.get(i).getHost();\n dato[5] = usuario.get(i).getIp();\n dato[6] = usuario.get(i).getAccion();\n dato[7] = usuario.get(i).getCodigoAplicacion();\n dato[8] = usuario.get(i).getModulo();\n \n //System.out.println(\"vendedor:\" + vendedores);\n modelo.addRow(dato);\n }}", "public boolean insertarNuevoClienteCA(Cliente cliente, List<Cuenta> listaCuentas) {\n String queryDividido1 = \"INSERT INTO Usuario(Codigo, Nombre, DPI, Direccion, Sexo, Password, Tipo_Usuario) \"\n + \"VALUES(?,?,?,?,?,aes_encrypt(?,'AES'),?)\";\n\n String queryDividido2 = \"INSERT INTO Cliente(Usuario_Codigo, Nombre, Nacimiento, DPI_Escaneado, Estado) \"\n + \"VALUES(?,?,?,?,?)\";\n \n String queryDividido3 = \"INSERT INTO Cuenta(No_Cuenta, Fecha_Creacion, Saldo_Cuenta, Cliente_Usuario_Codigo) \"\n + \"VALUES(?,?,?,?)\";\n int codigoCliente = cliente.getCodigo();\n try {\n\n PreparedStatement enviarDividido1 = Conexion.conexion.prepareStatement(queryDividido1);\n\n //Envio de los Datos Principales del cliente a la Tabla Usuario\n enviarDividido1.setInt(1, cliente.getCodigo());\n enviarDividido1.setString(2, cliente.getNombre());\n enviarDividido1.setString(3, cliente.getDPI());\n enviarDividido1.setString(4, cliente.getDireccion());\n enviarDividido1.setString(5, cliente.getSexo());\n enviarDividido1.setString(6, cliente.getPassword());\n enviarDividido1.setInt(7, 3);\n enviarDividido1.executeUpdate();\n\n //Envia los Datos Complementarios del Usuario a la tabla cliente\n PreparedStatement enviarDividido2 = Conexion.conexion.prepareStatement(queryDividido2);\n enviarDividido2.setInt(1, cliente.getCodigo());\n enviarDividido2.setString(2, cliente.getNombre());\n enviarDividido2.setString(3, cliente.getNacimiento());\n enviarDividido2.setBlob(4, cliente.getDPIEscaneado());\n enviarDividido2.setBoolean(5, cliente.isEstado());\n enviarDividido2.executeUpdate();\n \n //Envia los Datos de la Cuenta Adjudicada al Cliente\n PreparedStatement enviarDividido3 = Conexion.conexion.prepareStatement(queryDividido3);\n\n //Envio de los Datos Principales de una Cuenta a la Tabla Cuenta, perteneciente a un cliente en Especifico\n //Considerando que el cliente puede tener mas de una cuenta\n for (Cuenta cuenta : listaCuentas) {\n \n enviarDividido3.setInt(1, cuenta.getNoCuenta());\n enviarDividido3.setString(2, cuenta.getFechaCreacion());\n enviarDividido3.setDouble(3, cuenta.getSaldo());\n enviarDividido3.setInt(4, codigoCliente);\n enviarDividido3.executeUpdate();\n }\n \n return true;\n\n } catch (SQLException ex) {\n ex.printStackTrace(System.out);\n return false;\n }\n\n }", "public void obrir() throws SQLException {\n\t\tbdClimb = dbHelper.getWritableDatabase();\n\t}", "public void prepararDados() {\n\t\tatribuiPrimeiroAnoCasoAnoEstejaNulo();\n\t\t\n\t\tsalvarOuAtualizar(alunosMilitarPraca);\n\t\tsalvarOuAtualizar(alunosMilitarOficial);\n\t\t\n\t\tinit();\n\t\thabilitaBotao=false;\n\t}", "public void CadastrarPassageiro(Connection con, List<Bilhetes> temporaria) {\n\t\t\n\t\ttry {\n\t\t\n\t\t\tstmt = con.prepareStatement(\"Select cpf from passageiro where cpf = ?\");\n\t\t\t\n\t\t\tstmt.setString(1, temporaria.get(0).getBilhete().get(0).getCpf() );\n\t\t\tstmt.execute();\n\t\t\t\n\t\t\trs=stmt.getResultSet();\n\t\t\t\n\t\t\tif(rs.next())\n\t\t\t{\n\t\t\t\t\n\t\t\t\tJOptionPane.showMessageDialog(null, \"ERRO: CPF JA CADASTRADO\", \"Erro CADASTRO\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tstmt = con.prepareStatement(\n\t\t\t\t\t\" insert into BILHETES (Destino,Origem,Hpartida, Hembarque,Poltrona) values(?,?,?,?,NULL)\");\n\n\t\t\tstmt.setString(1, temporaria.get(0).getDestino());\n\t\t\tstmt.setString(2, temporaria.get(0).getOrigem());\n\t\t\tstmt.setString(3, temporaria.get(0).getHora_partida());\n\t\t\tstmt.setString(4, temporaria.get(0).getHora_embarque());\n\n\t\t\tstmt.execute();\n\n\t\t\tstmt = con.prepareStatement(\"select IDBILHETE FROM BILHETES WHERE poltrona is null \");\n\n\t\t\tstmt.execute();\n\n\t\t\trs = stmt.getResultSet();\n\n\t\t\twhile (rs.next()) {\n\t\t\t\tint idbilhete = rs.getInt(1);\n\t\t\t\ttemporaria.get(0).setIdbilhete(idbilhete);\n\t\t\t}\n\n\t\t\tstmt = con.prepareStatement(\"insert into Passageiro(nome,cpf,ID_BILHETE) values(?,?,?)\");\n\n\t\t\tstmt.setString(1, temporaria.get(0).getBilhete().get(0).getNome());\n\t\t\tstmt.setString(2, temporaria.get(0).getBilhete().get(0).getCpf());\n\t\t\tstmt.setInt(3, temporaria.get(0).getIdbilhete());\n\n\t\t\tstmt.execute();\n\n\t\t\t// VOLTANDO A CADEIRA PARA 0, PARA EVITAR ERRO NOS PROXIMOS USUARIOS CADASTRADOS\n\t\t\tstmt = con.prepareStatement(\"UPDATE BILHETES SET POLTRONA = 0 WHERE POLTRONA IS NULL\");\n\n\t\t\tstmt.execute();\n\n\t\t\t// Teste\n\n\t\t\tString nome = temporaria.get(0).getBilhete().get(0).getNome();\n\t\t\tString cpf = temporaria.get(0).getBilhete().get(0).getCpf();\n\n\t\t\tString destino = temporaria.get(0).getDestino();\n\t\t\tString Origem = temporaria.get(0).getOrigem();\n\n\t\t\tString hora_EMBARQUE = temporaria.get(0).getHora_embarque();\n\n\t\t\tString horasaida = temporaria.get(0).getHora_partida();\n\n\t\t\t// Instanciando valores\n\t\t\tBilhetes passagem = new Bilhetes(temporaria.get(0).getIdbilhete(), Origem, destino, hora_EMBARQUE,\n\t\t\t\t\thorasaida, null, 0);\n\n\t\t\tpassagem.adicionar(new Passageiro(nome, cpf));\n\n\t\t\tpassageiro.add(passagem);\n\n\t\t\t// Fim do teste antes do filme\n\n\t\t\tJOptionPane.showMessageDialog(null, \"Passageiro Cadastrado Com sucesso\");\n\n\t\t\tJOptionPane.showMessageDialog(null,\"CODIGO LOCALIZADOR DO BILHETE: \" + temporaria.get(0).getIdbilhete(),\" NÃO PERCA\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\n\t\n\t\t\t\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tJOptionPane.showMessageDialog(null, \"ERRO: CPF JA CADASTRADO\", \"Erro CADASTRO\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\n\n\t\t}\n\n\t}", "public void executar() {\n\t\tSystem.out.println(dao.getListaPorNome(\"abacatão\"));\n\t}", "private PreparedStatement prepareClientes(Connection conn, String data) throws ParseException, SQLException\n\t{\n\t\t\n\t\tPreparedStatement result = null;\n\t\t\n\t\t//Parametros 1 e 6: Data de execucao atual\n\t\tSimpleDateFormat conversorData = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\tDate dataExecucao = conversorData.parse(data);\n\t\t//Parametro 2: Ano e mes da execucao\n\t\tSimpleDateFormat conversorDatMes = new SimpleDateFormat(\"yyMM\");\n\t\tString datMes = conversorDatMes.format(mesAnterior(dataExecucao));\n\t\t//Parametro 3: Tipo de transacao da promocao PulaPula\n\t\tString tipoTransacao = TIPO_TRANSACAO_PULA_PULA;\n\t\t//Parametros 4 e 7: Primeiro dia do mes da execucao\n\t\tDate dataInicioMesExecucao = getPrimeiroDiaMes(dataExecucao);\n\t\t//Parametro 5: Primeiro dia do mes posterior ao da execucao\n\t\tDate dataInicioProxMes = getPrimeiroDiaMes(proximoMes(dataExecucao));\n\t\t//Parametro 8: Ultimo dia do mes da execucao\n\t\tDate dataFimMesExecucao = getUltimoDiaMes(dataExecucao);\n\n\t\tString sqlClientes = getQuerySelecaoClientes();\n\t\tresult = conn.prepareStatement(sqlClientes);\n\t\tresult.setDate (1, new java.sql.Date(dataExecucao.getTime()));\n\t\tresult.setString(2, datMes);\n\t\tresult.setString(3, tipoTransacao);\n\t\tresult.setDate (4, new java.sql.Date(dataInicioMesExecucao.getTime()));\n\t\tresult.setDate (5, new java.sql.Date(dataInicioProxMes.getTime()));\n\t\tresult.setDate (6, new java.sql.Date(dataExecucao.getTime()));\n\t\tresult.setDate (7, new java.sql.Date(dataInicioMesExecucao.getTime()));\n\t\tresult.setDate (8, new java.sql.Date(dataFimMesExecucao.getTime()));\n\t\t\n\t\treturn result;\n\t}", "private String getConsulta(int indice) {\r\n\t\tString sql = \"\";\r\n\t\tStringBuffer variables = new StringBuffer();\r\n\t\tinParams = ((TxParams)todo.get(indice)).getParams().entrada;\r\n\t\toutParams = ((TxParams)todo.get(indice)).getParams().salida;\r\n\t\tif ((inParams == null || inParams.size() == 0) && (outParams == null || outParams.size() == 0))\r\n\t\t\tsql = \"{call \" + consultas[indice] + \"}\";\r\n\t\telse {\r\n\t\t\t//Por cada parametro de entrada corresponde un ?\r\n\t\t\t//Ojo que tambien hay que considerar los de salida si es necesario\r\n\t\t\t//pero no esta cubierto en esta primera etapa\r\n\t\t\tif (inParams != null) {\r\n\t\t\t\tfor (int i = 0; i < inParams.size(); i++)\r\n\t\t\t\t\tvariables.append(\"?,\");\r\n\t\t\t}\r\n\t\t\tif (outParams != null) {\r\n\t\t\t\tfor (int i = 0; i < outParams.size(); i++)\r\n\t\t\t\t\tvariables.append(\"?,\");\r\n\t\t\t}\r\n\t\t\tString listaVars = variables.toString();\r\n\t\t\tlistaVars = listaVars.substring(0, listaVars.length() - 1);\r\n\t\t\tsql = \"{call \" + consultas[indice] + \"(\" + listaVars + \")}\";\r\n\t\t}\r\n\t\treturn sql;\r\n\t}", "@Override\n\tpublic DatosEnc obtenerDatos(DatosEnc datos) {\n\t\tConnection con = null;\n\t\tCallableStatement stmt = null;\n//\t\tPreparedStatement ps = null;\n\t\tResultSet rs = null;\n\t\ttry{\n//\t\t\tcon = new ConectarDB().getConnection();\n//\t\t\tString query = \"select * from pv_cotizaciones_det where no_cotizacion = ?\";\n//\t\t\tps = con.prepareStatement(query);\n//\t\t\tps.setString(1, datos.getNoDocumento());\n//\t\t\trs = ps.executeQuery();\n//\t\t\texiste=0;\n//\t\t\twhile(rs.next()){\n//\t\t\t\tif(rs.getString(\"no_cotizacion\") == null){\n//\t\t\t\t\texiste=0;\n//\t\t\t\t}else if(rs.getString(\"no_cotizacion\").equals(datos.getNoDocumento())){\n//\t\t\t\t\texiste=1;\n//\t\t\t\t}\n//\t\t\t}\n//\t\t\tcon.close();\n//\t\t\tps.close();\n//\t\t\trs.close();\n//\t\t\tif(existe==0){\n\t\t\t\tcon = new ConectarDB().getConnection();\n\t\t\t\tstmt = con.prepareCall(\"{call stp_UDPV_InUp_Mov_Enc(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}\");\n\t\t\t\tstmt.setString(1, datos.getCodigoCliente());\n\t\t\t\tstmt.setString(2, datos.getNit());\n\t\t\t\tstmt.setString(3, datos.getNombreCliente());\n\t\t\t\tstmt.setString(4, datos.getDirecFactura());\n\t\t\t\tstmt.setString(5, datos.getTel());\n\t\t\t\tstmt.setString(6, datos.getTarjeta());\n\t\t\t\tstmt.setString(7, datos.getDirecEnvio());\n\t\t\t\tstmt.setString(8, datos.getCodigoVendedor());\n\t\t\t\tstmt.setString(9, datos.getUsername());\n\t\t\t\tstmt.setString(10, datos.getTipoDocumento());\n\t\t\t\tstmt.setString(11, datos.getNoDocumento());\n\t\t\t\tstmt.setString(12, datos.getFechaVence());\n\t\t\t\tstmt.setString(13, datos.getTipoPago());\n\t\t\t\tstmt.setString(14, datos.getTipoCredito());\n\t\t\t\tstmt.setString(15, datos.getAutoriza());\n\t\t\t\tstmt.setString(16, datos.getFechaDocumento());\n\t\t\t\tstmt.setString(17, datos.getCargosEnvio());\n\t\t\t\tstmt.setString(18, datos.getOtrosCargos());\n\t\t\t\tstmt.setString(19, datos.getMontoVenta());\n\t\t\t\tstmt.setString(20, datos.getMontoTotal());\n\t\t\t\tstmt.setString(21, datos.getSerieDev());\n\t\t\t\tstmt.setString(22, datos.getNoDocDev());\n\t\t\t\tstmt.setString(23, datos.getObservaciones());\n\t\t\t\tstmt.setString(24, datos.getTipoNota());\n\t\t\t\tstmt.setString(25, datos.getCaja());\n\t\t\t\tstmt.setString(26, datos.getFechaEntrega());\n\t\t\t\tstmt.setString(27, datos.getCodigoDept());\n\t\t\t\tstmt.setString(28, datos.getCodGen());\n\t\t\t\tstmt.setString(29, datos.getNoConsigna());\n\t\t\t\tstmt.setString(30, datos.getCodMovDev());\n\t\t\t\tstmt.setString(31, datos.getGeneraSolicitud());\n\t\t\t\tstmt.setString(32, datos.getTipoPagoNC());\n\t\t\t\tstmt.setString(33, datos.getTipoCliente());\n\t\t\t\tstmt.setString(34, datos.getCodigoNegocio());\n\t\t\t\tstmt.setString(35, datos.getCantidadDevolver());\n\t\t\t\tstmt.setString(36, datos.getAutorizoDespacho());\n\t\t\t\tstmt.setString(37, datos.getSaldo());\n\t\t\t\trs = stmt.executeQuery();\n\t\t\t\t\n\t\t\t\twhile(rs.next()){\n\t\t\t\t\tif(rs.getString(1)!=null){\n\t\t\t\t\t\tdatos.setSerieEnc(rs.getString(1));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tdatos.setSerieEnc(\"NA\");\n\t\t\t\t\t}\n\t\t\t\t\tdatos.setNoEnc(rs.getString(2));\n//\t\t\t\t\tif(rs.getString(1)!=null){\n//\t\t\t\t\t\tdatos.setSerieEnc(rs.getString(1));\n//\t\t\t\t\t}else{\n//\t\t\t\t\t\tdatos.setSerieEnc(\"NA\");\n//\t\t\t\t\t}\n//\t\t\t\t\tdatos.setNoEnc(rs.getString(2));\n//\t\t\t\t\tdocumento = rs.getInt(2);\n\t\t\t\t}\n\t\t\t\tcon.close();\n\t\t\t\tstmt.close();\n\t\t\t\trs.close();\n//\t\t\t}\n\t\t\t\n\t\t\t\n//\t\t\tcon = new ConectarDB().getConnection();\n//\t\t\tstmt = con.prepareCall(\"{call stp_UDPV_Del_Mov_Det(?,?,?)}\");\n//\t\t\tstmt.setInt(1, Integer.parseInt(datos.getTipoDocumento()));\n//\t\t\tstmt.setString(2, \"\");\n//\t\t\tstmt.setInt(3, documento);\n//\t\t\trs = stmt.executeQuery();\n//\t\t\t\n//\t\t\twhile(rs.next()){\n//\t\t\t\tSystem.out.println(rs.getString(\"limpiado\"));\n//\t\t\t}\n//\t\t\tcon.close();\n//\t\t\tstmt.close();\n//\t\t\trs.close();\n\t\t\t\n//\t\t\tcon = new ConectarDB().getConnection();\n//\t\t\tstmt = con.prepareCall(\"{call stp_udpv_VerificaCotiza(?,?)}\");\n//\t\t\tstmt.setString(1, \"\");\n//\t\t\tstmt.setInt(2, documento);\n//\t\t\trs = stmt.executeQuery();\n//\t\t\t\n//\t\t\twhile(rs.next()){\n//\t\t\t\tSystem.out.println(rs.getString(\"error\"));\n//\t\t\t}\n//\t\t\tcon.close();\n//\t\t\tstmt.close();\n//\t\t\trs.close();\n\t\t\t\n\t\t}catch(SQLException e ){\n\t\t\tSystem.out.println(\"Error Enc: \" + e.getMessage());\n\t\t}\n\t\treturn datos;\n\t}", "public static PreparedStatement crearDeclaracionPreparada(java.sql.Connection conexion, ArrayList<String> datos, String orden){\n try {\n PreparedStatement dp = null;\n dp = conexion.prepareStatement(orden); //asignamos el select que trae el String orden \n int esUnEntero;\n for(int i = 1; i <= datos.size(); i++){//asignamos los valores del arrayList datos en cada campo del select\n String aux = null; \n esUnEntero = isEntero(datos.get(i - 1));//Revisamos si la cadena de datos.get(i) es un entero\n switch(esUnEntero){\n case 1: //Cuando es 1 significa que el dato dentro de datos.get(i) es un entero, por tanto se rellena el campo como tal\n aux = datos.get(i - 1);\n dp.setInt(i, Integer.parseInt(aux)); \n break;\n case 0://Cuando es 0 significa que no es un entero y se rellena el campo como String\n aux = datos.get(i - 1);\n dp.setString(i, aux);\n break;\n } \n }\n return dp;\n } catch (SQLException ex) {\n System.out.println(\"\\n\\n\\n\"+ex); //Imprimimos el error en consola en caso de fallar \n } \n return null;\n }", "public void selecteazaComanda()\n {\n for(String[] comanda : date) {\n if (comanda[0].compareTo(\"insert client\") == 0)\n clientBll.insert(idClient++, comanda[1], comanda[2]);\n else if (comanda[0].compareTo(\"insert product\") == 0)\n {\n Product p = productBll.findProductByName(comanda[1]);\n if(p!=null)//daca produsul exista deja\n productBll.prelucreaza(p.getId(), comanda[1], Float.parseFloat(comanda[2]), Float.parseFloat(comanda[3]));\n else\n productBll.prelucreaza(idProduct++, comanda[1], Float.parseFloat(comanda[2]), Float.parseFloat(comanda[3]));\n\n }\n else if (comanda[0].contains(\"delete client\"))\n clientBll.sterge(comanda[1]);\n else if (comanda[0].contains(\"delete product\"))\n productBll.sterge(comanda[1]);\n else if (comanda[0].compareTo(\"order\")==0)\n order(comanda);\n else if (comanda[0].contains(\"report\"))\n report(comanda[0]);\n }\n }", "private DAOOfferta() {\r\n\t\ttry {\r\n\t\t\tClass.forName(driverName);\r\n\r\n\t\t\tconn = getConnection(usr, pass);\r\n\r\n\t\t\tps = conn.prepareStatement(createQuery);\r\n\r\n\t\t\tps.executeUpdate();\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ConnectionException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\t/*closeResource()*/;\r\n\t\t}\r\n\t}", "public static void main(String[]args) {PostagemDAO pDAO = new PostagemDAO();\n////\t\tPostagem postagem = new Postagem();\n////\t\tString s = \"1999-3-9\";\n////\t\tDate data = Date.valueOf(s);\n////\t\tpostagem.setDescPostagem(\"john johnes\");\n////\t\tpostagem.setDataPostagem(data);\n////\t\tpDAO.inserirPostagem(postagem);\n//\t\t\n////\t\tImagensDAO iDAO = new ImagensDAO();\n////\t\tImagens imagens = new Imagens();\n////\t\t\n////\t\timagens.setTipoImagem((short)2);\n////\t\timagens.setArquivoImagem(\"busato\");\n////\t\tiDAO.inserirImagem(imagens);\n//\t\t\n//\t\tUsuarioDAO uDAO = new UsuarioDAO();\n//\t\tUsuario usuario = new Usuario();\n//\t\t\n////\t\tusuario.setEmail(\"sadasda\");\n////\t\tusuario.setNickname(\"sdasdasae\");\n////\t\tusuario.setSenha(\"12345\");\n////\t\tusuario.setSteamid(31231231);\n////\t\tusuario.setFotoPerfil(\"FOTO\");\n////\t\tuDAO.cadastrar(usuario);\n//\t\t\n//\t\t\n//\t\tComentariosDAO cDAO = new ComentariosDAO();\n//\t\tComentarios comentarios = new Comentarios();\n//\t\t\n//\t\tcomentarios.setCorpoComentario(\"comentario comentado\");\n//\t\tcomentarios.setDataComentario(Date.valueOf(\"2018-03-09\"));\n//\t\tcDAO.inserirComentarios(comentarios);\n//\t\t\n//\t\tSystem.out.println(\"sera que comitou\");\n//\t\t\n\t\t\n\t\tPostagem postagem = new Postagem();\n\t\tpostagem.setDescPostagem(\"Uma formiguinha subindo pela parede\");\n\t\tpostagem.setTituloPostagem(\"Formiguinha\");\n\t\t\n\t\tPostagemDAO poDAO = new PostagemDAO();\n\t\tpostagem = poDAO.inserirPostagem(postagem);\n\t\t\n\t\tSystem.out.println(postagem.getIdPostagem());\n\t\t\n\t}", "private void cargarTipEmp(java.sql.Connection conn, java.sql.ResultSet rstExt) {\r\n Statement stmTipEmp;\r\n ResultSet rstEmp;\r\n String sSql;\r\n try {\r\n if (conn != null) {\r\n stmTipEmp = conn.createStatement();\r\n sSql = \"select b.co_tipper , b.tx_descor , round(a.nd_ivaVen,2) as porIva , bod.co_bod, a1.tx_dir, a1.tx_nom as nombod FROM tbm_emp as a \"\r\n + \" left join tbm_tipper as b on(b.co_emp=a.co_emp and b.co_tipper=a.co_tipper)\"\r\n + \" left join tbr_bodloc as bod on(bod.co_emp=a.co_emp and bod.co_loc=\" + rstExt.getString(\"co_loc\") + \" and bod.st_reg='P') \"\r\n + \" inner join tbm_bod as a1 on (a1.co_emp=bod.co_emp and a1.co_bod=bod.co_bod ) \"\r\n + \" where a.co_emp=\" + rstExt.getString(\"co_emp\");\r\n rstEmp = stmTipEmp.executeQuery(sSql);\r\n if (rstEmp.next()) {\r\n strTipPer_emp = rstEmp.getString(\"tx_descor\");\r\n intCodBodPre = rstEmp.getInt(\"co_bod\");\r\n intCodTipPerEmp = rstEmp.getInt(\"co_tipper\");\r\n strNomBodPtaPar = rstEmp.getString(\"tx_dir\");\r\n strNomBodPrv = rstEmp.getString(\"nombod\");\r\n bldivaEmp = objZafCtaCtb_dat.getPorIvaVen();\r\n dblPorIva = bldivaEmp;\r\n dblPorComSol = objZafCtaCtb_dat.getPorComSol();\r\n }\r\n rstEmp.close();\r\n stmTipEmp.close();\r\n stmTipEmp = null;\r\n rstEmp = null;\r\n }\r\n } \r\n catch (SQLException Evt) {\r\n objUti.mostrarMsgErr_F1(jifCnt, Evt);\r\n System.err.println(\"ERROR \" + Evt.toString());\r\n } \r\n catch (Exception Evt) {\r\n objUti.mostrarMsgErr_F1(jifCnt, Evt);\r\n System.err.println(\"ERROR \" + Evt.toString());\r\n }\r\n }", "public DefaultTableModel cargarDatos () {\r\n DefaultTableModel modelo = new DefaultTableModel(\r\n new String[]{\"ID SALIDA\", \"IDENTIFICACIÓN CAPITÁN\", \"NÚMERO MATRICULA\", \"FECHA\", \"HORA\", \"DESTINO\"}, 0); //Creo un objeto del modelo de la tabla con los titulos cargados\r\n String[] info = new String[6];\r\n String query = \"SELECT * FROM actividad WHERE eliminar = false\";\r\n try {\r\n Statement st = con.createStatement();\r\n ResultSet rs = st.executeQuery(query);\r\n while (rs.next()) { \r\n info[0] = rs.getString(\"id_salida\");\r\n info[1] = rs.getString(\"identificacion_navegate\");\r\n info[2] = rs.getString(\"numero_matricula\");\r\n info[3] = rs.getString(\"fecha\");\r\n info[4] = rs.getString(\"hora\");\r\n info[5] = rs.getString(\"destino\");\r\n Object[] fila = new Object[]{info[0], info[1], info[2], info[3], info[4], info[5]};\r\n modelo.addRow(fila);\r\n }\r\n st.close();\r\n rs.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(PActividad.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return modelo;\r\n }", "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 PreencherTabela() throws SQLException {\n try (Connection connection = ConnectionFactory.getConnection()) {\n String[] colunas = new String[]{\"ID\", \"Nome\", \"Nomenclatura\", \"Quantidade\"};\n ArrayList dados = new ArrayList();\n for (ViewProdutoPedido v : viewProdutoPedidos) {\n dados.add(new Object[]{v.getId(), v.getNome(), v.getNomenclatura(), v.getQuantidade()});\n }\n ModeloTabela modelo = new ModeloTabela(dados, colunas);\n jTableItensPedido.setModel(modelo);\n jTableItensPedido.setRowSorter(new TableRowSorter(modelo));\n jTableItensPedido.getColumnModel().getColumn(0).setPreferredWidth(2);\n jTableItensPedido.getColumnModel().getColumn(0).setResizable(false);\n jTableItensPedido.getColumnModel().getColumn(1).setPreferredWidth(20);\n jTableItensPedido.getColumnModel().getColumn(1).setResizable(false);\n jTableItensPedido.getColumnModel().getColumn(2).setPreferredWidth(20);\n jTableItensPedido.getColumnModel().getColumn(2).setResizable(false);\n jTableItensPedido.getColumnModel().getColumn(3).setPreferredWidth(20);\n jTableItensPedido.getColumnModel().getColumn(3).setResizable(false);\n\n }\n }", "public void esborrarRegistresTaulaNews() throws SQLException {\n bd.execSQL(\"DELETE FROM \" + BD_TAULA );\n\n }", "public void buscar() { // ATENCION tengo dudas con % telefono% no sale ningun resultado. si sale con telefono%\n String nombre = AgendarA.txtBNombre.getText();\n String apellidos = AgendarA.txtBApellidos.getText();\n String ciudad = AgendarA.txtBCiudad.getText();\n\n modeloagr = new DefaultTableModel(null, columnasAgr) {\n public boolean isCellEditable(int fila, int columna) {\n return false;\n }\n };\n if (AgendarA.chNombre.isSelected() == true && AgendarA.chApellidos.isSelected() == true && AgendarA.chCiudad.isSelected() == true) {\n if (!nombre.equals(\"\") && !apellidos.equals(\"\") && !ciudad.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,cedula,CONCAT(nombres,' ',apellidos),municipios.Nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE personalexterno.nombres LIKE '%\" + nombre + \"%' AND personalexterno.apellidos LIKE '%\" + apellidos + \"%' AND municipios.Nombre LIKE '%\" + ciudad + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY nombre\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else if (AgendarA.chNombre.isSelected() == true && AgendarA.chApellidos.isSelected() == true) {\n if (!nombre.equals(\"\") && !apellidos.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,cedula,CONCAT(nombres,' ',apellidos),municipios.Nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE personalexterno.nombres LIKE '%\" + nombre + \"%' AND personalexterno.Apellidos LIKE '%\" + apellidos + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY cedula\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else if (AgendarA.chNombre.isSelected() == true && AgendarA.chCiudad.isSelected() == true) {\n if (!nombre.equals(\"\") && !ciudad.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,nombre,CONCAT(nombres,' ',apellidos),municipios.Nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE municipios.Nombre LIKE '%\" + ciudad + \"%' AND personalexterno.nombres LIKE '%\" + nombre + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY cedula\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else if (AgendarA.chApellidos.isSelected() == true && AgendarA.chCiudad.isSelected() == true) {\n if (!apellidos.equals(\"\") && !ciudad.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,personalexterno.cedula,nombres,apellidos,municipios.Nombre FROM personalexterno,municipios WHERE municipios.Nombre LIKE '%\" + ciudad + \"%' AND personalexterno.apellidos LIKE '%\" + apellidos + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY cedula\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else if (AgendarA.chNombre.isSelected() == true) {\n if (!nombre.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,cedula,CONCAT(nombres,' ',apellidos),municipios.Nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE personalexterno.nombres LIKE '%\" + nombre + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY cedula\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else if (AgendarA.chApellidos.isSelected() == true) {\n if (!apellidos.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,cedula,CONCAT(nombres,' ',apellidos),municipios.Nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE personalexterno.apellidos LIKE '%\" + apellidos + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY cedula\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else if (AgendarA.chCiudad.isSelected() == true) {\n if (!ciudad.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,cedula,CONCAT(nombres,' ',apellidos),municipios.Nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE municipios.Nombre LIKE '%\" + ciudad + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY cedula\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else {\n JOptionPane.showMessageDialog(null, \"Ninguno de los campos de busqueda esta seleccionado\");\n }\n tbl.rowNumberTabel(AgendarA.tblAgricultor);\n //desactivar_checkbox();\n }", "public boolean insertarNuevoClienteVista(Cliente cliente, Cuenta cuenta) {\n \n String queryDividido1 = \"INSERT INTO Usuario(Codigo, Nombre, DPI, Direccion, Sexo, Password, Tipo_Usuario) \"\n + \"VALUES(?,?,?,?,?,aes_encrypt(?,'AES'),?)\";\n\n String queryDividido2 = \"INSERT INTO Cliente(Usuario_Codigo, Nombre, Nacimiento, DPI_Escaneado, Estado) \"\n + \"VALUES(?,?,?,?,?)\";\n \n String queryDividido3 = \"INSERT INTO Cuenta(No_Cuenta, Fecha_Creacion, Saldo_Cuenta, Cliente_Usuario_Codigo) \"\n + \"VALUES(?,?,?,?)\";\n \n \n try {\n\n PreparedStatement enviarDividido1 = Conexion.conexion.prepareStatement(queryDividido1);\n\n //Envio de los Datos Principales del cliente a la Tabla Usuario\n enviarDividido1.setInt(1, cliente.getCodigo());\n enviarDividido1.setString(2, cliente.getNombre());\n enviarDividido1.setString(3, cliente.getDPI());\n enviarDividido1.setString(4, cliente.getDireccion());\n enviarDividido1.setString(5, cliente.getSexo());\n enviarDividido1.setString(6, cliente.getPassword());\n enviarDividido1.setInt(7, 3);\n enviarDividido1.executeUpdate();\n\n //Envia los Datos Complementarios del Usuario a la tabla cliente\n PreparedStatement enviarDividido2 = Conexion.conexion.prepareStatement(queryDividido2);\n enviarDividido2.setInt(1, cliente.getCodigo());\n enviarDividido2.setString(2, cliente.getNombre());\n enviarDividido2.setString(3, cliente.getNacimiento());\n enviarDividido2.setBlob(4, cliente.getDPIEscaneado());\n enviarDividido2.setBoolean(5, cliente.isEstado());\n enviarDividido2.executeUpdate();\n \n //Envia los Datos de la Cuenta Adjudicada al Cliente\n PreparedStatement enviarDividido3 = Conexion.conexion.prepareStatement(queryDividido3);\n\n //Envio de los Datos Principales de una Cuenta a la Tabla Cuenta, perteneciente a un cliente en Especifico\n enviarDividido3.setInt(1, cuenta.getNoCuenta());\n enviarDividido3.setString(2, cuenta.getFechaCreacion());\n enviarDividido3.setDouble(3, cuenta.getSaldo());\n enviarDividido3.setInt(4, cliente.getCodigo());\n enviarDividido3.executeUpdate();\n \n \n return true;\n\n } catch (SQLException ex) {\n ex.printStackTrace(System.out);\n return false;\n }\n\n }", "public static void main(String[] args) {\n\n String select = \"select direccion from cliente where idCliente = 3;\", update;\n Connection conexion = BddConnection.newConexionPostgreSQL(\"Ventas\");\n PreparedStatement sentencia;\n Direccion dirCliente;\n ResultSet resul;\n\n try {\n sentencia = conexion.prepareStatement(select);\n resul = sentencia.executeQuery();\n if (resul.next()){\n dirCliente = Direccion.newInstance(resul.getString(1));\n dirCliente.getPoblacion().getProvincia().setProvincia(\"Granada update\");\n update = \"update cliente set direccion = \" + dirCliente.getStringTypeT_Direccion() + \" where idCliente = 3\";\n sentencia = conexion.prepareStatement(update);\n sentencia.executeUpdate();\n }\n resul.close();\n sentencia.close();\n conexion.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }" ]
[ "0.66414386", "0.6376517", "0.634287", "0.62972134", "0.6267276", "0.6203511", "0.6195479", "0.6161721", "0.61452174", "0.6141247", "0.6141059", "0.6131388", "0.6116803", "0.6089988", "0.60716796", "0.6066551", "0.60509646", "0.6020287", "0.60089916", "0.59929323", "0.5991551", "0.5951862", "0.59483176", "0.5925033", "0.5913001", "0.5886", "0.58851445", "0.586822", "0.58616734", "0.5853411", "0.5852737", "0.5849013", "0.58350205", "0.583086", "0.58005315", "0.5782929", "0.5776064", "0.57690674", "0.5764897", "0.5756943", "0.57528186", "0.57448536", "0.57304007", "0.5727067", "0.57202405", "0.5717448", "0.5700046", "0.5689959", "0.56885177", "0.56867194", "0.56848186", "0.5669541", "0.5667367", "0.5667115", "0.56661856", "0.56593704", "0.56586856", "0.5652834", "0.56464374", "0.5643084", "0.56426", "0.5641259", "0.56323856", "0.563037", "0.56195945", "0.5617485", "0.5616083", "0.5613627", "0.560875", "0.560081", "0.5591868", "0.5588033", "0.5587587", "0.5579553", "0.55794144", "0.55763865", "0.5575709", "0.5572645", "0.5568144", "0.55680937", "0.55596846", "0.5556998", "0.5555273", "0.5551899", "0.5546589", "0.55435014", "0.5539784", "0.55357647", "0.5534951", "0.5530278", "0.55272835", "0.5523589", "0.5522712", "0.55217725", "0.5518614", "0.55158395", "0.55140626", "0.5509071", "0.55035335", "0.55027384", "0.5491542" ]
0.0
-1
recebe dados dos estados do banco de dados. prepara a sql
public void carregaCidadeModificada() throws SQLException{ String sql = "SELECT nome FROM tb_cidades where uf='"+cbUfEditar.getSelectedItem()+"'"; PreparedStatement preparador = Conexao.conectar().prepareStatement(sql); ResultSet rs = preparador.executeQuery(); cbCidadeEditar.removeAllItems(); //passando valores do banco para o objeto result; try{ while(rs.next()){ String list = rs.getString("nome"); //resgatando estado //popula combo_estadof com as informações colhidas cbCidadeEditar.addItem(list); } } catch (Exception e){ JOptionPane.showMessageDialog(null, "Impossivel carregar Estados!", "ERROR - ", JOptionPane.ERROR_MESSAGE); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Tablero consultarTablero();", "void LlenarModelo(){\n datos.addColumn(\"ID\");\n datos.addColumn(\"Descripcion\");\n datos.addColumn(\"Cantidad\");\n String []ingresar=new String[4];\n try {\n Connection con = Conexion.getConection();\n Statement estado = con.createStatement();\n //ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago where codigo>=\" + SIGEPSA.IDOtrosPagosMin + \";\");\n //ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago ;\");\n ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago where codigo<9 or codigo>10 and activo = 1;\");\n while(resultado.next()){\n ingresar[0]=String.valueOf((String)resultado.getObject(\"CODIGO\").toString());\n ingresar[1]=String.valueOf((String)resultado.getObject(\"DESCRIPCION\").toString());\n ingresar[2]=String.valueOf((String)resultado.getObject(\"CANTIDAD\").toString());\n datos.addRow(ingresar);\n }\n }catch (Exception ex) {\n \n }\n }", "public void refresh() {\n String sql = \"\";\n sql += \"select m.id\"\n + \", m.data\"\n + \", CAST(CONCAT(dep.nome, ' [', dep.id, ']') AS CHAR(50)) as deposito\"\n + \", cau.descrizione as causale\"\n + \", m.articolo\"\n + \", if (cau.segno = -1 , -m.quantita, m.quantita) as quantita\"\n + \", m.note\"\n + \", cast(concat(IF(m.da_tipo_fattura = 7, 'Scontr.', \"\n + \" IF(m.da_tabella = 'test_fatt', 'Fatt. Vend.', \"\n + \" IF(m.da_tabella = 'test_ddt', 'DDT Vend.',\"\n + \" IF(m.da_tabella = 'test_fatt_acquisto', 'Fatt. Acq.',\"\n + \" IF(m.da_tabella = 'test_ddt_acquisto', 'DDT Acq.', m.da_tabella)))))\"\n + \" , da_serie, ' ', da_numero, '/', da_anno, ' - [ID ', da_id, ']') as CHAR)as origine\"\n // + \", m.da_tabella\"\n // + \", m.da_anno\"\n // + \", m.da_serie\"\n // + \", m.da_numero\"\n // + \", m.da_id\"\n + \", m.matricola\"\n + \", m.lotto\"\n + \", a.codice_fornitore, a.codice_a_barre from movimenti_magazzino m left join articoli a on m.articolo = a.codice\"\n + \" left join tipi_causali_magazzino cau on m.causale = cau.codice\"\n + \" left join depositi dep ON m.deposito = dep.id\";\n sql += \" where 1 = 1\";\n System.out.println(\"articolo_selezionato_filtro_ref = \" + articolo_selezionato_filtro_ref);\n System.out.println(\"articolo_selezionato_filtro_ref get = \" + articolo_selezionato_filtro_ref.get());\n if (articolo_selezionato_filtro_ref.get() != null && StringUtils.isNotBlank(articolo_selezionato_filtro_ref.get().codice)) {\n sql += \" and m.articolo like '\" + Db.aa(articolo_selezionato_filtro_ref.get().codice) + \"'\";\n }\n if (filtro_barre.getText().length() > 0) {\n sql += \" and a.codice_a_barre like '%\" + Db.aa(filtro_barre.getText()) + \"%'\";\n }\n if (filtro_lotto.getText().length() > 0) {\n sql += \" and m.lotto like '%\" + Db.aa(filtro_lotto.getText()) + \"%'\";\n }\n if (filtro_matricola.getText().length() > 0) {\n sql += \" and m.matricola like '%\" + Db.aa(filtro_matricola.getText()) + \"%'\";\n }\n if (filtro_fornitore.getText().length() > 0) {\n sql += \" and a.codice_fornitore like '%\" + Db.aa(filtro_fornitore.getText()) + \"%'\";\n }\n if (filtro_deposito.getSelectedIndex() >= 0) {\n sql += \" and m.deposito = \" + cu.s(filtro_deposito.getSelectedKey());\n }\n sql += \" order by m.data desc, id desc\";\n System.out.println(\"sql movimenti: \" + sql);\n griglia.dbOpen(Db.getConn(), sql, Db.INSTANCE, true);\n griglia.dbSelezionaRiga();\n }", "public void consutaBD(String Campo, String txtSQL) {\n String consultaBD = \"SELECT * FROM `cronograma_actividades` WHERE \" + Campo + \" LIKE '\" + txtSQL + \"_%'\";\n //JOptionPane.showMessageDialog(null, consultaBD);\n javax.swing.JTable Tabla = this.Tabla_addActividad;\n // Enviamos los parametros para la consulta de la tabla\n // conexion consulta de la base de datos y el nombre de la tabla\n String cabesera[] = {\"Código\", \"Asunto\", \"Actividad\",\"hora\",\"Fecha\",\"Estado\"};\n cone1.GetTabla_Sincabeseras_sql_bd(cn, consultaBD, Tabla, cabesera);\n\n }", "private void llenarListado1() {\r\n\t\tString sql1 = Sentencia1()\r\n\t\t\t\t+ \" where lower(cab.descripcion) = 'concurso' \" + \"and (\"\r\n\t\t\t\t+ \"\t\tdet.id_estado_det = (\" + \"\t\t\t\tselect est.id_estado_det \"\r\n\t\t\t\t+ \"\t\t\t\tfrom planificacion.estado_det est \"\r\n\t\t\t\t+ \"\t\t\t\twhere lower(est.descripcion)='libre'\" + \"\t\t) \"\r\n\t\t\t\t+ \"\t\tor det.id_estado_det is null\" + \"\t) \"\r\n\t\t\t\t+ \" and uo_cab.id_configuracion_uo = \"\r\n\t\t\t\t+ configuracionUoCab.getIdConfiguracionUo()\r\n\t\t\t\t+ \" AND det.activo=true\";\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO SIMPLIFICADO Se despliegan los puestos\r\n\t\t * PERMANENTES o CONTRATADOS, con estado = LIBRE o NULO Los puestos\r\n\t\t * deben ser de nivel 1\r\n\t\t */\r\n\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n\t\t\t\t.equalsIgnoreCase(CONCURSO_SIMPLIFICADO)) {\r\n\t\t\tsql1 += \" and cpt.nivel=1 and cpt.activo=true and (det.permanente is true or det.contratado is true) \";\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO INTERNO DE OPOSICION INSTITUCIONAL Se\r\n\t\t * despliegan los puestos PERMANENTE, con estado = LIBRE o NULO\r\n\t\t */\r\n\r\n\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n\t\t\t\t.equalsIgnoreCase(CONCURSO_INTERNO_OPOSICION)) {\r\n\t\t\tsql1 += \" and det.permanente is true \";\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO INTERNO DE OPOSICION INTER INSTITUCIONAL\r\n\t\t * Se despliegan los puestos PERMANENTE, con estado = LIBRE o NULO\r\n\t\t */\r\n\r\n\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n\t\t\t\t.equalsIgnoreCase(CONCURSO_INTERNO_INTERINSTITUCIONAL)) {\r\n\t\t\tsql1 += \" and det.permanente is true \";\r\n\t\t}\r\n\t\tString sql2 = Sentencia2()\r\n\t\t\t\t+ \" where lower(estado_det.descripcion) = 'en reserva' \"\r\n\t\t\t\t+ \"and uo_cab.id_configuracion_uo = \"\r\n\t\t\t\t+ configuracionUoCab.getIdConfiguracionUo()\r\n\t\t\t\t+ \" and concurso.id_concurso = \" + concurso.getIdConcurso()\r\n\t\t\t\t+ \" and puesto_det.activo=true\";\r\n\r\n\t\tcargarLista(sql1, sql2);\r\n\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 void introducirPagosALojamientoHotelFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo){\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);\n try {\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT ALOJAMIENTO.Id,ALOJAMIENTO.Id_Reservacion,RESERVACION.Fecha_Entrada, RESERVACION.Fecha_Salida,RESERVACION.Precio FROM RESERVACION JOIN ALOJAMIENTO WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND RESERVACION.Fecha_Entrada>=? AND RESERVACION.Fecha_Entrada<=? AND RESERVACION.Check_In=1;\");\n declaracion.setDate(1,fechaInicialSql);\n declaracion.setDate(2,fechaFinalSQL);// pago de alojamiento en rango fchas\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {\n Object objeto[] = new Object[6];// pago de alojamiento en rango fchas\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);\n objeto[2] = resultado.getDate(3);\n objeto[3] = resultado.getDate(4);// pago de alojamiento en rango fchas\n objeto[4] = resultado.getInt(5);\n String fechaInicialProbar=objeto[2].toString();\n String fechaFinalProbar=objeto[3].toString();// pago de alojamiento en rango fchas\n String precioProbar = objeto[4].toString();// pago de alojamiento en rango fchas\n int total=habitacion.hacerTotalAlojamiento(fechaInicialProbar, fechaFinalProbar, precioProbar);\n objeto[5]= total;\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "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 }", "public void buscarEstudiante(String codEstudiante){\n estudianteModificar=new Estudiante();\n estudianteGradoModificar=new EstudianteGrado();\n StringBuilder query=new StringBuilder();\n query.append(\"select e.idestudiante,e.nombre,e.apellido,e.ci,e.cod_est,e.idgrado,e.idcurso,g.grado,c.nombre_curso \" );\n query.append(\" from estudiante e \");\n query.append(\" inner join grado g on e.idgrado=g.idgrado \");\n query.append(\" inner join cursos c on e.idcurso=c.idcurso \");\n query.append(\" where idestudiante=? \");\n try {\n PreparedStatement pst=connection.prepareStatement(query.toString());\n pst.setInt(1, Integer.parseInt(codEstudiante));\n ResultSet resultado=pst.executeQuery();\n //utilizamos una condicion porque la busqueda nos devuelve 1 registro\n if(resultado.next()){\n //cargando la informacion a nuestro objeto categoriaModificarde tipo categoria\n estudianteModificar.setCodEstudiante(resultado.getInt(1));\n estudianteModificar.setNomEstudiante(resultado.getString(2));\n estudianteModificar.setApEstudiante(resultado.getString(3));\n estudianteModificar.setCiEstudiante(resultado.getInt(4));\n estudianteModificar.setCodigoEstudiante(resultado.getString(5));\n estudianteModificar.setIdgradoEstudiante(resultado.getInt(6));\n estudianteModificar.setIdCursoEstudiante(resultado.getInt(7));\n estudianteGradoModificar.setNomGrado(resultado.getString(8));\n estudianteGradoModificar.setNomCurso(resultado.getString(9));\n }\n } catch (SQLException e) {\n System.out.println(\"Error de conexion\");\n e.printStackTrace();\n }\n }", "public void introducirPagosALojamientoClienteFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo,String dpiCliente){\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);// pago de alojamiento en rango fchas\n try {\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT ALOJAMIENTO.Id,ALOJAMIENTO.Id_Reservacion,RESERVACION.Fecha_Entrada, RESERVACION.Fecha_Salida,RESERVACION.Precio FROM RESERVACION JOIN ALOJAMIENTO WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND RESERVACION.Fecha_Entrada>=? AND RESERVACION.Fecha_Entrada<=? AND RESERVACION.Dpi_Cliente=? AND RESERVACION.Check_In=1;\");\n declaracion.setDate(1,fechaInicialSql);\n declaracion.setDate(2,fechaFinalSQL);// pago de alojamiento en rango fchas\n declaracion.setString(3, dpiCliente);\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {\n Object objeto[] = new Object[6];\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);\n objeto[2] = resultado.getDate(3);// pago de alojamiento en rango fchas\n objeto[3] = resultado.getDate(4);\n objeto[4] = resultado.getInt(5);\n String fechaInicialProbar=objeto[2].toString();\n String fechaFinalProbar=objeto[3].toString();// pago de alojamiento en rango fchas\n String precioProbar = objeto[4].toString();\n int total=habitacion.hacerTotalAlojamiento(fechaInicialProbar, fechaFinalProbar, precioProbar);\n objeto[5]= total;\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "public void EjecutarConsulta() {\n try {\n Consultar(\"select * from \"+table);\n this.resultSet = preparedStatement.executeQuery();\n } catch (Exception e) {\n// MessageEmergent(\"Fail EjecutarConsulta(): \"+e.getMessage());\n }\n }", "public CalMetasDTO cargarRegistro(int codigoCiclo, int codigoPlan, int codigoMeta) {\n/* */ try {\n/* 416 */ String s = \"select m.*,\";\n/* 417 */ s = s + \"tm.descripcion as nombreTipoMedicion,\";\n/* 418 */ s = s + \"est.descripcion as nombreEstado,\";\n/* 419 */ s = s + \"Um.Descripcion as nombre_unidad_medida\";\n/* 420 */ s = s + \" from cal_plan_metas m,sis_multivalores tm,sis_multivalores est,Sis_Multivalores Um\";\n/* 421 */ s = s + \" where \";\n/* 422 */ s = s + \" m.tipo_medicion =tm.valor\";\n/* 423 */ s = s + \" and tm.tabla='CAL_TIPO_MEDICION'\";\n/* 424 */ s = s + \" and m.estado =est.valor\";\n/* 425 */ s = s + \" and est.tabla='CAL_ESTADO_META'\";\n/* 426 */ s = s + \" and m.Unidad_Medida = Um.Valor\";\n/* 427 */ s = s + \" and Um.Tabla = 'CAL_UNIDAD_MEDIDA_META'\";\n/* 428 */ s = s + \" and m.codigo_ciclo=\" + codigoCiclo;\n/* 429 */ s = s + \" and m.codigo_plan=\" + codigoPlan;\n/* 430 */ s = s + \" and m.codigo_meta=\" + codigoMeta;\n/* 431 */ boolean rtaDB = this.dat.parseSql(s);\n/* 432 */ if (!rtaDB) {\n/* 433 */ return null;\n/* */ }\n/* */ \n/* 436 */ this.rs = this.dat.getResultSet();\n/* 437 */ if (this.rs.next()) {\n/* 438 */ return leerRegistro();\n/* */ }\n/* */ }\n/* 441 */ catch (Exception e) {\n/* 442 */ e.printStackTrace();\n/* 443 */ Utilidades.writeError(\"CalPlanMetasFactory:cargarCalMetas \", e);\n/* */ } \n/* 445 */ return null;\n/* */ }", "private boolean crearRecurso(int codigoCiclo, int codigoPlan, int codigoMeta, int codigoRecurso, String estado, String usuarioInsercion) {\n/* */ try {\n/* 513 */ String s = \"select estado from cal_plan_recursos_meta r where r.codigo_ciclo=\" + codigoCiclo + \" and r.codigo_plan=\" + codigoPlan + \" and r.codigo_meta=\" + codigoMeta + \" and r.codigo_recurso=\" + codigoRecurso;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 520 */ this.dat.parseSql(s);\n/* 521 */ this.rs = this.dat.getResultSet();\n/* 522 */ if (this.rs.next()) {\n/* 523 */ s = \"update cal_plan_recursos_meta set \";\n/* 524 */ s = s + \" estado='\" + estado + \"',\";\n/* 525 */ s = s + \" fecha_modificacion=\" + Utilidades.getFechaBD() + \",\";\n/* 526 */ s = s + \" usuario_modificacion='\" + usuarioInsercion + \"'\";\n/* 527 */ s = s + \" where \";\n/* 528 */ s = s + \" codigo_ciclo=\" + codigoCiclo;\n/* 529 */ s = s + \" and codigo_plan=\" + codigoPlan;\n/* 530 */ s = s + \" and codigo_meta=\" + codigoMeta;\n/* 531 */ s = s + \" and codigo_recurso=\" + codigoRecurso;\n/* */ } else {\n/* */ \n/* 534 */ s = \"insert into cal_plan_recursos_meta (codigo_ciclo,codigo_plan,codigo_meta,codigo_recurso,estado,fecha_insercion,usuario_insercion) values (\" + codigoCiclo + \",\" + \"\" + codigoPlan + \",\" + \"\" + codigoMeta + \",\" + \"\" + codigoRecurso + \",\" + \"'\" + estado + \"',\" + Utilidades.getFechaBD() + \",\" + \"'\" + usuarioInsercion + \"'\" + \")\";\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 552 */ return this.dat.executeUpdate(s);\n/* */ \n/* */ }\n/* 555 */ catch (Exception e) {\n/* 556 */ e.printStackTrace();\n/* 557 */ Utilidades.writeError(\"CalMetasDAO:crearRegistro\", e);\n/* */ \n/* 559 */ return false;\n/* */ } \n/* */ }", "private void mbushetabelen() {\n try {\n Statement stmt = LidhjaMeDb.hapelidhjen();\n //CallableStatement stmt = conn.prepareCall(\"{call procedura1(?)}\");\n //stmt.setInt(1, 1);\n //ResultSet rs=stmt.executeQuery();\n String sql = \"SELECT kerkesat.kompania AS 'Kompania', llojet_lejes.lloji_lejes AS 'Lloji i Lejes'\"\n + \" ,kerkesat.adresa AS 'Adresa', kerkesat.tel AS 'Tel',kerkesat.data_pranimit AS 'Data e Pranimit'\"\n + \" ,kerkesat.nr_protokollit AS 'Numri i Protokollit', aktivitetet.aktiviteti AS 'Aktiviteti'\"\n + \" ,komunat.komuna AS 'Komuna', kerkesat.taksa AS 'Taksa', kerkesat.statusi_lendes AS 'Statusi i Lendes'\"\n + \" ,kerkesat.data_leshimit AS 'Data e Leshimit'\"\n + \" ,pergjigjjet_komisionit.pergjigjja AS 'Pergjigjja e Komisionit' FROM kerkesat \"\n + \" JOIN llojet_lejes ON kerkesat.idlloji = llojet_lejes.idlloji \"\n + \" JOIN aktivitetet ON kerkesat.idaktiviteti = aktivitetet.idaktiviteti \"\n + \" JOIN pergjigjjet_komisionit ON kerkesat.idpergjigjja = pergjigjjet_komisionit.idpergjigjja \"\n + \" JOIN komunat ON kerkesat.idkomuna=komunat.idkomuna \"\n + \"WHERE kompania LIKE '%\" + txtkompania.getText() + \"%' \"\n + \"AND aktiviteti like '%\" + (String) kmbaktiviteti.getSelectedItem() + \"%' \"\n + \"AND komuna like '%\" + (String) kmbkomunat.getSelectedItem() + \"%' \"\n + \"AND pergjigjja like '%\" + (String) kmbpergjigjja.getSelectedItem() + \"%' \"\n + \"AND data_pranimit >= '\" + new java.sql.Date(jdataprej.getDate().getTime()) + \"' AND data_pranimit <= '\" + new java.sql.Date(jdataderi.getDate().getTime()) + \"' \";\n System.out.println(sql);\n ResultSet rs = stmt.executeQuery(sql);\n tblkerkesat.setModel(DBUtils.resultSetToTableModel(rs));\n//boolean Zgjedhur=false;jTable1.addColumn(Zgjedhur);\n LidhjaMeDb.mbyllelidhjen();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "public void PrepararBaseDatos() { \r\n try{ \r\n conexion=DriverManager.getConnection(\"jdbc:ucanaccess://\"+this.NOMBRE_BASE_DE_DATOS,this.USUARIO_BASE_DE_DATOS,this.CLAVE_BASE_DE_DATOS);\r\n \r\n } \r\n catch (Exception e) { \r\n JOptionPane.showMessageDialog(null,\"Error al realizar la conexion \"+e);\r\n } \r\n try { \r\n sentencia=conexion.createStatement( \r\n ResultSet.TYPE_SCROLL_INSENSITIVE, \r\n ResultSet.CONCUR_READ_ONLY); \r\n \r\n System.out.println(\"Se ha establecido la conexión correctamente\");\r\n } \r\n catch (Exception e) { \r\n JOptionPane.showMessageDialog(null,\"Error al crear el objeto sentencia \"+e);\r\n } \r\n }", "private void procurarData() {\n if (jDateIni.getDate() != null && jDateFim.getDate() != null) {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n String data = sdf.format(jDateIni.getDate());\n String data2 = sdf.format(jDateFim.getDate());\n carregaTable(id, data, data2);\n JBreg.setEnabled(false);\n }\n }", "QuartoConsumo[] busca(Object dadoBusca, String coluna) throws SQLException;", "public DanielPatricio() throws SQLException {\n initComponents();\n //limpiar();\n recargarDropDownCarros();\n recargarTextArea();\n recargarDataTable();\n \n \n }", "public static String todosLosEmpleados_baja(){\n String query=\"SELECT empleado.idEmpleado, persona.nombre, persona.apePaterno, persona.apeMaterno, empleado.codigo, empleado.fechaIngreso,persona.codigoPostal,persona.domicilio,\" +\n\"empleado.puesto, empleado.salario from persona inner join empleado on persona.idPersona=empleado.idPersona where activo=0;\";\n return query;\n }", "public FlujoDetalleDTO cargarRegistro(int codigoFlujo, int secuencia) {\n/* */ try {\n/* 201 */ String s = \"select t.codigo_flujo,t.secuencia,t.servicio_inicio,r1.descripcion as nombre_servicio_inicio,t.accion,t.codigo_estado,r3.descripcion as nombre_codigo_estado,t.servicio_destino,r4.descripcion as nombre_servicio_destino,t.nombre_procedimiento,t.correo_destino,t.enviar_solicitud,t.ind_mismo_proveedor,t.ind_mismo_cliente,t.estado,t.caracteristica,t.valor_caracteristica,t.caracteristica_correo,m5.descripcion as nombre_estado,c.DESCRIPCION nombre_caracteristica,cv.DESCRIPCION descripcion_valor,t.metodo_seleccion_proveedor,t.ind_correo_clientes,t.enviar_hermana,t.enviar_si_hermana_cerrada,t.ind_cliente_inicial,t.usuario_insercion,t.fecha_insercion,t.usuario_modificacion,t.fecha_modificacion from wkf_detalle t left join SERVICIOS r1 on (r1.CODIGO=t.servicio_inicio) left join ESTADOS r3 on (r3.codigo=t.codigo_estado) left join SERVICIOS r4 on (r4.CODIGO=t.servicio_destino) left join sis_multivalores m5 on (m5.tabla='ESTADO_REGISTRO' and m5.valor=t.estado) LEFT JOIN CARACTERISTICAS c ON (t.Caracteristica = c.CODIGO) LEFT JOIN CARACTERISTICAS_VALOR cv ON (t.CARACTERISTICA=cv.CARACTERISTICA AND t.VALOR_CARACTERISTICA = cv.VALOR) where t.codigo_flujo=\" + codigoFlujo + \" and t.secuencia=\" + secuencia + \"\";\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 243 */ boolean rtaDB = this.dat.parseSql(s);\n/* 244 */ if (!rtaDB) {\n/* 245 */ return null;\n/* */ }\n/* 247 */ this.rs = this.dat.getResultSet();\n/* 248 */ if (this.rs.next()) {\n/* 249 */ return leerRegistro();\n/* */ }\n/* */ }\n/* 252 */ catch (Exception e) {\n/* 253 */ e.printStackTrace();\n/* 254 */ Utilidades.writeError(\"FlujoDetalleDAO:cargarFlujoDetalle\", e);\n/* */ } \n/* 256 */ return null;\n/* */ }", "private void cargarDeDB() {\n Query query = session.createQuery(\"SELECT p FROM Paquete p WHERE p.reparto is NULL\");\n data = FXCollections.observableArrayList();\n\n List<Paquete> paquetes = query.list();\n for (Paquete paquete : paquetes) {\n data.add(paquete);\n }\n\n cargarTablaConPaquetes();\n }", "public static Statement reiniciarBD( Connection con ) {\n\t\ttry {\n\t\t\tStatement statement = con.createStatement();\n\t\t\tstatement.setQueryTimeout(30); // poner timeout 30 msg\n\t\t\tstatement.executeUpdate(\"drop table if exists items\");\n\t\t\tlog( Level.INFO, \"Reiniciada base de datos\", null );\n\t\t\treturn usarCrearTablasBD( con );\n\t\t} catch (SQLException e) {\n\t\t\tlog( Level.SEVERE, \"Error en reinicio de base de datos\", e );\n\t\t\tlastError = e;\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "@Transactional\n public void llenarTabla(ResultSet rs){\n if (rs==null) {\n System.out.println(\"el rs vino vacio\");\n }\n try {\n while (rs.next()) {\n //para cada fila de la consulta creo un pedido\n PedidoMaterial pedido = new PedidoMaterial();\n System.out.println(\"empezamos\");\n pedido.setId(rs.getInt(1));\n pedido.setNumeroPedido(rs.getInt(2));\n pedido.setNotaDeVenta(rs.getInt(3));\n pedido.setDescripProyecto(rs.getString(4));\n pedido.setCliente(rs.getString(5));\n pedido.setCantidadPedida(rs.getLong(6));\n pedido.setCantidadModificada(rs.getLong(7));\n Calendar fecha = Calendar.getInstance();\n fecha.setTime(rs.getDate(8));\n pedido.setUltimaActualizacionDespiece(fecha);\n pedido.setArticulo(rs.getString(9));\n pedido.setAriCod(rs.getString(10));\n pedido.setArea(rs.getString(11));\n pedido.setUnidadOrg(rs.getInt(12));\n pedido.setTarea(rs.getString(13));\n pedido.setCantidadAPD(rs.getLong(14));\n if (rs.getDate(15) != null) {\n fecha.setTime(rs.getDate(15));\n pedido.setFechaAsignacion(fecha); \n }\n pedido.setCantidadFinalP(rs.getLong(16));\n pedido.setCantidadRealU(rs.getLong(17));\n pedido.setTareaCod(rs.getInt(18));\n fecha.setTime(rs.getDate(19));\n pedido.setFechaUti(fecha);\n fecha.setTime(rs.getDate(20));\n pedido.setFechaFinUtili(fecha);\n \n guardarPedido(pedido);\n \n \n }\n } catch (SQLException ex) {\n \n System.out.println(ex.toString());\n }\n }", "public void actualizarFiltrarEstadoRequisicion(Requisicion req) throws Exception{\n String carnet = req.getCarnetEmpleado();\n\n java.util.Date utilDate = req.getFechaNueva();\n java.sql.Date fechaConvertida = new java.sql.Date(utilDate.getTime()); \n\n List<Requisicion> requisicion = new ArrayList<>();\n \n Connection miConexion = null;\n Statement miStatement = null;\n ResultSet miResultset = null; \n\n \n //Establecer la conexion\n miConexion = origenDatos.getConexion();\n \n \n //Verificar si existe empleado\n String sqlEmpleado = \"Select CARNETEMPLEADO FROM EMPLEADO WHERE CARNETEMPLEADO = '\"+carnet+\"'\";\n miStatement = miConexion.createStatement();\n miResultset = miStatement.executeQuery(sqlEmpleado);\n \n if(miResultset.next()){\n \n String empleado = carnet;\n \n \n String sqlDepto = \"select d.NOMBREDEPARTAMENTO from departamento d \" + \n \"inner join catalagopuesto c on d.codigodepartamento = c.codigodepartamento \" + \n \"inner join empleado e on c.codigopuesto = e.codigopuesto where e.carnetempleado ='\"+carnet+\"'\";\n \n miStatement = miConexion.createStatement();\n \n //Ejecutar SQL\n miResultset = miStatement.executeQuery(sqlDepto);\n //Crear sentencia SQL y Statement\n miResultset.next();\n String nomdepto = miResultset.getString(\"NOMBREDEPARTAMENTO\");\n \n String miSQl = \"select r.NUMREQ, r.FECPEDIDOREQ, r.FECENTREGAREQ, r.AUTORIZADO, e.CARNETEMPLEADO, e.NOMBREEMPLEADO, e.APELLIDOEMPLEADO, d.NOMBREDEPARTAMENTO \" + \n \"from requisicion r inner join empleado e on r.carnetempleado =e.carnetempleado \" + \n \"inner join catalagopuesto c on e.codigopuesto =c.codigopuesto \" + \n \"inner join departamento d on c.codigodepartamento = d.codigodepartamento \" + \n \"where r.AUTORIZADO = 1 and d.NOMBREDEPARTAMENTO='\"+nomdepto+\"' and r.FECPEDIDOREQ >=TO_DATE('\"+fechaConvertida+\"', 'YYYY/MM/DD HH:MI:SS') order by r.FECPEDIDOREQ\";\n \n miStatement = miConexion.createStatement();\n \n //Ejecutar SQL\n miResultset = miStatement.executeQuery(miSQl);\n \n while(miResultset.next()){\n int numReq = miResultset.getInt(\"NUMREQ\");\n Date fechaPedido = miResultset.getDate(\"FECPEDIDOREQ\");\n Date fechaEntrega = miResultset.getDate(\"FECENTREGAREQ\"); \n String carnetEmpleado = miResultset.getString(\"CARNETEMPLEADO\");\n String nombreEmpleado = miResultset.getString(\"NOMBREEMPLEADO\"); \n String apellidoEmpleado = miResultset.getString(\"APELLIDOEMPLEADO\");\n String nombreDepartamento = miResultset.getString(\"NOMBREDEPARTAMENTO\"); \n\n //*************************ACTUALIZAR**************************\n Connection miConexion1 = null;\n PreparedStatement miStatement1 = null;\n \n //Obtener la conexion\n \n miConexion1 = origenDatos.getConexion();\n \n //Crear sentencia sql que inserte la requisicion a la base\n String misql = \"UPDATE requisicion SET autorizado = ? WHERE numreq = ?\";\n \n miStatement1 = miConexion1.prepareStatement(misql);\n \n //Establecer los parametros para insertar la requisicion \n if(\"aceptado\".equals(req.getEstadoAut())) {\n miStatement1.setInt(1, 0);\n }else{\n miStatement1.setInt(1, 1);\n } \n\n miStatement1.setInt(2, numReq);//se obtendra dentro del while\n \n //Ejecutar la instruccion sql\n miStatement1.execute(); \n //Requisicion temporal = new Requisicion(numReq, fechaPedido, fechaEntrega, carnetEmpleado, nombreEmpleado, apellidoEmpleado, nombreDepartamento);\n //requisicion.add(temporal);\n }\n \n }\n //return requisicion; \n }", "public void ejecutarCodigoSQLdatos(String nombrebuscado)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tFileReader codigoarchivo = new FileReader ( \"./images/BD/Codigo SQL crebas datos.sql\" );\r\n\t\t\tBufferedReader reader = new BufferedReader (codigoarchivo);\r\n\t\t\tString codigo = reader.readLine();\r\n\t\t\twhile(codigo!= null)\r\n\t\t\t{\r\n\t\t\t\tif(!codigo.equalsIgnoreCase(\"\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tConector conectord = new Conector(nombrebuscado);\r\n\t\t\t\t\tconectord.iniciarConexionBaseDatos();\r\n\t\t\t\t\tCrearBD.ejecutarCodigoSQL(codigo, conectord);\r\n\t\t\t\t\tconectord.terminarConexionBaseDatos();\r\n\t\t\t\t}\r\n\t\t\t\tcodigo = reader.readLine();\r\n\t\t\t}\r\n\t\t\tJOptionPane.showMessageDialog(this,\"Se Instalo la Base de Datos Correctamente.\",\"Instalar Base de Datos\", JOptionPane.INFORMATION_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/informacion.PNG\"));\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tConector conectorg = new Conector(nombrebuscado);\r\n\t\t\t\tconectorg.iniciarConexionBaseDatos();\r\n\t\t\t\tCrearBD.ejecutarCodigoSQL(\"DROP DATABASE \"+nombrebuscado, conectorg);\r\n\t\t\t\tconectorg.terminarConexionBaseDatos();\r\n\t\t\t\tJOptionPane.showMessageDialog(this,\"No se encontro el archivo Codigo SQL crebas datos.sql\",\"Error\", JOptionPane.ERROR_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/error.PNG\"));\r\n\t\t\t}\r\n\t\t\tcatch (Exception ex)\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}", "public void introducirConsumosHotelFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo) {\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);\n try {// mira los consumo de unas fechas\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT * FROM CONSUMO_RESTAURANTE WHERE Fecha_Consumo>=? AND Fecha_Consumo<=?\");\n declaracion.setDate(1,fechaInicialSql);\n declaracion.setDate(2,fechaFinalSQL);\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {// mira los consumo de unas fechas\n Object objeto[] = new Object[7];\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);// mira los consumo de unas fechas\n objeto[2] = resultado.getString(3);\n objeto[3] = resultado.getInt(4);\n objeto[4] = resultado.getInt(5);\n objeto[5] = resultado.getDate(6);// mira los consumo de unas fechas\n int total = (Integer)objeto[3]*(Integer)objeto[4];\n objeto[6]= total;\n modelo.addRow(objeto);// mira los consumo de unas fechas\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "public void novoDebito(Debitos debitos, String conCodigo, Contas contaComSaldo) throws SQLException {\r\n String sqls = \"select * from contas where concodigo = \" + conCodigo + \" \";\r\n\r\n PreparedStatement psc = null;\r\n ResultSet rsc = null;\r\n try {\r\n psc = connection.prepareStatement(sqls);\r\n rsc = psc.executeQuery();\r\n while (rsc.next()) {\r\n contaComSaldo.setConCodigo(rsc.getInt(\"concodigo\"));\r\n contaComSaldo.setConDescricao(rsc.getString(\"condescricao\"));\r\n contaComSaldo.setTipoCodigo(rsc.getInt(\"tipocodigo\"));\r\n contaComSaldo.setConSaldo(rsc.getDouble(\"consaldo\"));\r\n }\r\n\r\n } catch (Exception e) {\r\n Logger.getLogger(ContaDAO.class.getName()).log(Level.SEVERE, null, e);\r\n\r\n }\r\n\r\n String sqlUltimoCredito = \"select * from creditos order by crecodigo desc limit 1\";\r\n\r\n PreparedStatement pscUltimoCredito = null;\r\n ResultSet rscUltimoCredito = null;\r\n\r\n Creditos creditos = new Creditos();\r\n\r\n try {\r\n\r\n pscUltimoCredito = connection.prepareStatement(sqlUltimoCredito);\r\n rscUltimoCredito = pscUltimoCredito.executeQuery();\r\n while (rscUltimoCredito.next()) {\r\n\r\n creditos.setCreCodigo(rscUltimoCredito.getInt(\"crecodigo\"));\r\n creditos.setCreData(rscUltimoCredito.getDate(\"credata\"));\r\n creditos.setConCodigo(rscUltimoCredito.getInt(\"concodigo\"));\r\n creditos.setCreValor(rscUltimoCredito.getInt(\"crevalor\"));\r\n creditos.setCreHistorico(rscUltimoCredito.getString(\"crehistorico\"));\r\n creditos.setConSaldo(rscUltimoCredito.getDouble(\"consaldo\"));\r\n }\r\n\r\n } catch (Exception e) {\r\n Logger.getLogger(DebitoDAO.class.getName()).log(Level.SEVERE, null, e);\r\n\r\n }\r\n\r\n String sql = \"insert into debitos (debdata,concodigo,debvalor,debhistorico,consaldo,creditoid) values (?,?,?,?,?,?)\";\r\n PreparedStatement ps = null;\r\n try {\r\n ps = connection.prepareStatement(sql);\r\n ps.setDate(1, new java.sql.Date(debitos.getDebData().getTime()));\r\n ps.setInt(2, debitos.getConCodigo());\r\n ps.setDouble(3, debitos.getDebValor() * -1);\r\n ps.setString(4, debitos.getDebHistorico());\r\n ps.setDouble(5, contaComSaldo.getConSaldo());\r\n ps.setInt(6, creditos.getCreCodigo());\r\n\r\n ps.execute();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(CreditoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n connection.close();\r\n ps.close();\r\n }\r\n }", "private PreparedStatement prepareClientesRebarba(Connection conn, String data, String promocao) \n\t\tthrows ParseException, SQLException\n\t{\n\t\tPreparedStatement result = null;\t\t\n\t\tSimpleDateFormat conversorData = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\tDate dataExecucao = conversorData.parse(data);\t\t\n\t\t\n\t\t//Parametro 1: Promocao (Parametro do metodo)\n\t\t//Parametro 2: Ano e mes da execucao\n\t\tSimpleDateFormat conversorDatMes = new SimpleDateFormat(\"yyMM\");\n\t\tString datMes = conversorDatMes.format(mesAnterior(dataExecucao));\n\t\t//Parametros 3, 5 e 7: Primeiro dia do mes da execucao\n\t\tDate dataInicioMesExecucao = getPrimeiroDiaMes(dataExecucao);\n\t\t//Parametro 4: Tipo de transacao da promocao PulaPula\n\t\tString tipoTransacao = TIPO_TRANSACAO_PULA_PULA;\n\t\t//Parametro 5: Primeiro dia do mes posterior ao da execucao\n\t\tDate dataInicioProxMes = getPrimeiroDiaMes(proximoMes(dataExecucao));\n\t\t//Parametro 8: Ultimo dia do mes da execucao\n\t\tDate dataFimMesExecucao = getUltimoDiaMes(dataExecucao);\n\n\t\tString sqlClientes = getQuerySelecaoClientesRebarba();\n\t\tresult = conn.prepareStatement(sqlClientes);\t\t\n\t\tresult.setString(1, promocao);\n\t\tresult.setString(2, datMes);\n\t\tresult.setDate (3, new java.sql.Date(dataInicioMesExecucao.getTime()));\n\t\tresult.setString(4, tipoTransacao);\n\t\tresult.setDate (5, new java.sql.Date(dataInicioMesExecucao.getTime()));\n\t\tresult.setDate (6, new java.sql.Date(dataInicioProxMes.getTime()));\n\t\tresult.setDate (7, new java.sql.Date(dataInicioMesExecucao.getTime()));\n\t\tresult.setDate (8, new java.sql.Date(dataFimMesExecucao.getTime()));\n\t\t\n\t\treturn result;\n\t}", "private boolean crearResponsable(int codigoCiclo, int codigoPlan, int codigoMeta, int codigoResponsable, String estado, String usuarioInsercion) {\n/* */ try {\n/* 578 */ String s = \"select estado from cal_plan_responsables_meta r where r.codigo_ciclo=\" + codigoCiclo + \" and r.codigo_plan=\" + codigoPlan + \" and r.codigo_meta=\" + codigoMeta + \" and r.codigo_responsable=\" + codigoResponsable;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 585 */ this.dat.parseSql(s);\n/* 586 */ this.rs = this.dat.getResultSet();\n/* 587 */ if (this.rs.next()) {\n/* 588 */ s = \"update cal_plan_responsables_meta set estado='\" + estado + \"',\" + \" fecha_modificacion=\" + Utilidades.getFechaBD() + \",\" + \" usuario_modificacion='\" + usuarioInsercion + \"'\" + \" where codigo_ciclo=\" + codigoCiclo + \" and codigo_plan=\" + codigoPlan + \" and codigo_meta=\" + codigoMeta + \" and codigo_responsable=\" + codigoResponsable;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ }\n/* */ else {\n/* */ \n/* */ \n/* */ \n/* */ \n/* 599 */ s = \"insert into cal_plan_responsables_meta (codigo_ciclo,codigo_plan,codigo_meta,codigo_responsable,estado,fecha_insercion,usuario_insercion) values (\" + codigoCiclo + \",\" + \"\" + codigoPlan + \",\" + \"\" + codigoMeta + \",\" + \"\" + codigoResponsable + \",\" + \"'\" + estado + \"',\" + \"\" + Utilidades.getFechaBD() + \",\" + \"'\" + usuarioInsercion + \"'\" + \")\";\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 617 */ return this.dat.executeUpdate(s);\n/* */ \n/* */ }\n/* 620 */ catch (Exception e) {\n/* 621 */ e.printStackTrace();\n/* 622 */ Utilidades.writeError(\"CalResponsablesMetaFactory:crearRegistro\", e);\n/* */ \n/* 624 */ return false;\n/* */ } \n/* */ }", "private void saveData() {\n try {\n String query;\n query = \"INSERT INTO limit_hd (kode_limit, grup, produk, masa_limit, jumlah_limit, status, pesan_gagal, tgl_mulai_event, tgl_akhir_event, date_create, date_update) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)\";\n Connection conn = (Connection) DatabaseConnection.getConnection(dbName2);\n PreparedStatement pst = conn.prepareStatement(query);\n getMaxKodeLimit();\n maxKodeLimit += 1;\n grupColumn = cmbGrup.getSelectedItem().toString();\n produkColumn = cmbProduk.getSelectedItem().toString();\n masaLimitColumn = cmbTransactionPeriod.getSelectedItem().toString();\n jumlahLimitColumn = Integer.parseInt(txtTransactionLimit.getText());\n errorMessageColumn = txaErrorMessage.getText();\n startDate = dtpStartDateEvent.getText();\n endDate = dtpEndDateEvent.getText();\n isStatusColumn = true;\n\n SimpleDateFormat dateFormatter = new SimpleDateFormat(\"dd-MMM-yyyy\");\n\n Date sqlDate1 = (Date) dateFormatter.parse(startDate);\n Date sqlDate2 = (Date) dateFormatter.parse(endDate);\n\n java.sql.Date startEventDate = new java.sql.Date(sqlDate1.getTime());\n java.sql.Date endEventDate = new java.sql.Date(sqlDate2.getTime());\n\n pst.setInt(1, maxKodeLimit);\n pst.setString(2, grupColumn);\n pst.setString(3, produkColumn);\n pst.setString(4, masaLimitColumn);\n pst.setInt(5, jumlahLimitColumn);\n pst.setBoolean(6, isStatusColumn);\n pst.setString(7, errorMessageColumn);\n pst.setDate(8, startEventDate);\n pst.setDate(9, endEventDate);\n pst.setDate(10, java.sql.Date.valueOf(java.time.LocalDate.now()));\n pst.setDate(11, java.sql.Date.valueOf(java.time.LocalDate.now()));\n pst.executeUpdate();\n showLimitHeader();\n defaultSetVariable();\n JOptionPane.showMessageDialog(null, \"Data telah berhasil di simpan\");\n } catch (HeadlessException | SQLException e) {\n JOptionPane.showMessageDialog(this, e.getMessage());\n } catch (Exception ex) {\n Logger.getLogger(LimitAddOn.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void Consultar(String query) {\n try {\n conectionSql();\n preparedStatement = conection.prepareStatement(query);\n } catch (Exception e) {\n// MessageEmergent(\"Fail Consultar(): \"+e.getMessage());\n }\n }", "public void introducirConsumosClienteFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo,String dpiCliente) {\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);\n try {// mira los consumo de unas fechas\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT CONSUMO_RESTAURANTE.Id_Consumo,CONSUMO_RESTAURANTE.Id_Alojamiento,CONSUMO_RESTAURANTE.Nombre_Comida,CONSUMO_RESTAURANTE.Precio_Comida,CONSUMO_RESTAURANTE.Cantidad,CONSUMO_RESTAURANTE.Fecha_Consumo FROM CONSUMO_RESTAURANTE JOIN ALOJAMIENTO JOIN RESERVACION WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND ALOJAMIENTO.Id=CONSUMO_RESTAURANTE.Id_Alojamiento AND RESERVACION.Dpi_Cliente=? AND Fecha_Consumo>=? AND Fecha_Consumo<=?\");\n declaracion.setString(1, dpiCliente);\n declaracion.setDate(2,fechaInicialSql);\n declaracion.setDate(3,fechaFinalSQL);\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {// mira los consumo de unas fechas\n Object objeto[] = new Object[7];\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);\n objeto[2] = resultado.getString(3);\n objeto[3] = resultado.getInt(4);// mira los consumo de unas fechas\n objeto[4] = resultado.getInt(5);\n objeto[5] = resultado.getDate(6);\n int total = (Integer)objeto[3]*(Integer)objeto[4];\n objeto[6]= total;// mira los consumo de unas fechas\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "private void TampilData(){\n try{ //\n String sql = \"SELECT * FROM buku\"; // memanggil dari php dengan tabel buku\n stt = con.createStatement(); // membuat statement baru dengan mengkonekan ke database\n rss = stt.executeQuery(sql); \n while (rss.next()){ \n Object[] o = new Object [3]; // membuat array 3 dimensi dengan nama object\n \n o[0] = rss.getString(\"judul\"); // yang pertama dengan ketentuan judul\n o[1] = rss.getString(\"penulis\"); // yang kedua dengan ketentuan penulis\n o[2] = rss.getInt(\"harga\"); // yang ketiga dengan ketentuan harga\n model.addRow(o); // memasukkan baris dengan mengkonekan di tabel model\n } \n }catch(SQLException e){ // memanipulasi kesalahan\n System.out.println(\"ini error\"); // menampilkan pesan ini error\n }\n }", "@SuppressWarnings(\"unchecked\")\r\n\tprivate void cargarLista(String sql1, String sql2) {\r\n\t\tlistaPlantaCargoDet = new ArrayList<PlantaCargoDet>();\r\n\t\tlistaPuestosReservados = new ArrayList<ConcursoPuestoDet>();\r\n\t\tlistaPlantaCargoDto = new ArrayList<PlantaCargoDetDTO>();\r\n\t\tlistaPlantaCargoDet = em.createNativeQuery(sql1, PlantaCargoDet.class)\r\n\t\t\t\t.getResultList();\r\n\t\tlistaPuestosReservados = em.createNativeQuery(sql2,\r\n\t\t\t\tConcursoPuestoDet.class).getResultList();\r\n\t\tif (listaPuestosReservados.size() > 0) {\r\n\t\t\tcantReservados = listaPuestosReservados.size();\r\n\t\t\tfor (ConcursoPuestoDet r : listaPuestosReservados) {\r\n\t\t\t\tPlantaCargoDetDTO dto = new PlantaCargoDetDTO();\r\n\t\t\t\tLong id = r.getPlantaCargoDet().getIdPlantaCargoDet();\r\n\t\t\t\tdto.setPlantaCargoDet(r.getPlantaCargoDet());\r\n\t\t\t\tdto.setReservar(true);\r\n\t\t\t\tlistaPlantaCargoDto.add(dto);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tcantReservados = 0;\r\n\t\t}\r\n\r\n\t\tif (listaPlantaCargoDet.size() > 0) {\r\n\t\t\tfor (PlantaCargoDet p : listaPlantaCargoDet) {\r\n\t\t\t\tBoolean esta = false;\r\n\t\t\t\tfor (ConcursoPuestoDet r : listaPuestosReservados) {\r\n\t\t\t\t\tif (r.getPlantaCargoDet().equals(p))\r\n\t\t\t\t\t\testa = true;\r\n\t\t\t\t}\r\n\t\t\t\tif (!esta) {\r\n\r\n\t\t\t\t\tPlantaCargoDetDTO dto = new PlantaCargoDetDTO();\r\n\t\t\t\t\tdto.setPlantaCargoDet(p);\r\n\t\t\t\t\tdto.setReservar(false);\r\n\t\t\t\t\tlistaPlantaCargoDto.add(dto);\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void consultarDatos() throws SQLException {\n String instruccion = \"SELECT * FROM juegos.juegos\";\n try {\n comando = conexion.createStatement();\n resultados = comando.executeQuery(instruccion);\n } catch (SQLException e) {\n e.printStackTrace();\n throw e;\n }\n }", "public void introducirConsumosHabitacion(TablaModelo modelo,String idHabitacion) {\n int idHabitacionInt = Integer.parseInt(idHabitacion);\n try {// mira los consumo de unas fechas\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT CONSUMO_RESTAURANTE.Id_Consumo,CONSUMO_RESTAURANTE.Id_Alojamiento,CONSUMO_RESTAURANTE.Nombre_Comida,CONSUMO_RESTAURANTE.Precio_Comida,CONSUMO_RESTAURANTE.Cantidad,CONSUMO_RESTAURANTE.Fecha_Consumo FROM CONSUMO_RESTAURANTE JOIN ALOJAMIENTO JOIN RESERVACION WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND ALOJAMIENTO.Id=CONSUMO_RESTAURANTE.Id_Alojamiento AND RESERVACION.Id_Habitacion=?\");\n declaracion.setInt(1, idHabitacionInt);// mira los consumo de unas fechas\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {\n Object objeto[] = new Object[7];// mira los consumo de unas fechas\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);// mira los consumo de unas fechas\n objeto[2] = resultado.getString(3);\n objeto[3] = resultado.getInt(4);\n objeto[4] = resultado.getInt(5);// mira los consumo de unas fechas\n objeto[5] = resultado.getDate(6);\n int total = (Integer)objeto[3]*(Integer)objeto[4];\n objeto[6]= total;// mira los consumo de unas fechas\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "private void cargaInfoEmpleado(){\r\n Connection conn = null;\r\n Conexion conex = null;\r\n try{\r\n if(!Config.estaCargada){\r\n Config.cargaConfig();\r\n }\r\n conex = new Conexion();\r\n conex.creaConexion(Config.host, Config.user, Config.pass, Config.port, Config.name, Config.driv, Config.surl);\r\n conn = conex.getConexion();\r\n if(conn != null){\r\n ArrayList<Object> paramsIn = new ArrayList();\r\n paramsIn.add(txtLogin);\r\n QryRespDTO resp = new Consulta().ejecutaSelectSP(conn, IQryUsuarios.NOM_FN_OBTIENE_INFO_USUARIOWEB, paramsIn);\r\n System.out.println(\"resp: \" + resp.getRes() + \"-\" + resp.getMsg());\r\n if(resp.getRes() == 1){\r\n ArrayList<ColumnaDTO> listaColumnas = resp.getColumnas();\r\n for(HashMap<String, CampoDTO> fila : resp.getDatosTabla()){\r\n usuario = new UsuarioDTO();\r\n \r\n for(ColumnaDTO col: listaColumnas){\r\n switch(col.getIdTipo()){\r\n case java.sql.Types.INTEGER:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Integer.parseInt(fila.get(col.getEtiqueta()).getValor().toString().replaceAll(\",\", \"\").replaceAll(\"$\", \"\").replaceAll(\" \", \"\")));\r\n break;\r\n \r\n case java.sql.Types.DOUBLE:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Double.parseDouble(fila.get(col.getEtiqueta()).getValor().toString()));\r\n break;\r\n \r\n case java.sql.Types.FLOAT:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Float.parseFloat(fila.get(col.getEtiqueta()).getValor().toString()));\r\n break;\r\n \r\n case java.sql.Types.DECIMAL:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Float.parseFloat(fila.get(col.getEtiqueta()).getValor().toString()));\r\n break;\r\n \r\n case java.sql.Types.VARCHAR:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"\":fila.get(col.getEtiqueta()).getValor().toString());\r\n break;\r\n \r\n case java.sql.Types.NUMERIC:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Float.parseFloat(fila.get(col.getEtiqueta()).getValor().toString()));\r\n break;\r\n \r\n default:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"\":fila.get(col.getEtiqueta()).getValor().toString());\r\n break;\r\n } \r\n }\r\n }\r\n sesionMap.put(\"UsuarioDTO\", usuario);\r\n }else{\r\n context.getExternalContext().getApplicationMap().clear();\r\n context.getExternalContext().redirect(\"index.xhtml\");\r\n }\r\n }\r\n }catch(Exception ex){\r\n System.out.println(\"Excepcion en la cargaInfoEmpleado: \" + ex);\r\n }finally{\r\n try{\r\n conn.close();\r\n }catch(Exception ex){\r\n \r\n }\r\n }\r\n }", "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 }", "public void buscaxcodigo() {\r\n try {\r\n modelo.setCodigobarras(vista.jTbcodigobarras.getText());//C.P.M mandamos el codigo de barras ingresado\r\n rs = modelo.Buscarxcodigobarras();//C.P.M mandamos a consultar ese codigo de barras\r\n DefaultTableModel buscar = new DefaultTableModel() {//C.P.M instanciamos el modelo de la tabla\r\n @Override\r\n public boolean isCellEditable(int rowIndex, int vColIndex) {\r\n return false;\r\n }\r\n };\r\n vista.jTbuscar.setModel(buscar);//C.P.M le mandamos el modelo a la tabla\r\n modelo.estructuraProductos(buscar);//C.P.M obtenemos la estructura de la tabla \"Encabezados\"\r\n ResultSetMetaData rsMd = rs.getMetaData();//C.P.M obtenemos los metadatos de la consulta\r\n int cantidadColumnas = rsMd.getColumnCount();//C.P.M obtenemos las columnas de la consulta\r\n\r\n while (rs.next()) {//C.P.M recorremos el resultado\r\n Object[] fila = new Object[cantidadColumnas];//C.P.M creamos un vector con el tamano de las columnas de el resultado\r\n for (int i = 0; i < cantidadColumnas; i++) {//C.P.M recorremos el arreglo\r\n fila[i] = rs.getObject(i + 1);//C.P.M y vamos insertando el resultado\r\n }\r\n buscar.addRow(fila);//C.P.M le mandamos el arreglo como renglon nuevo\r\n }\r\n\r\n } catch (SQLException ex) {\r\n JOptionPane.showMessageDialog(null, \"Ocurrio un error al buscar por codigo de barras\");\r\n }\r\n }", "public ArrayList<clsPago> consultaDataPagosCuotaInicial(int codigoCli)\n { \n ArrayList<clsPago> data = new ArrayList<clsPago>(); \n try{\n bd.conectarBaseDeDatos();\n sql = \" SELECT a.id_pagos_recibo idPago, a.id_usuario, b.name name_usuario, \"\n + \" a.referencia referencia, \"\n + \" a.fecha_pago fecha_pago, a.estado, \"\n + \" a.valor valor_pago, a.id_caja_operacion, e.name_completo nombre_cliente, \"\n + \" a.fecha_pago fecha_registro\"\n + \" FROM ck_pagos_recibo AS a\"\n + \" JOIN ck_usuario AS b ON a.id_usuario = b.id_usuario\"\n + \" JOIN ck_cliente AS e ON a.codigo = e.codigo\"\n + \" WHERE a.estado = 'A'\"\n + \" AND a.cuota_inicial = 'S'\"\n + \" AND a.estado_asignado = 'N'\"\n + \" AND a.codigo = \" + codigoCli; \n \n System.out.println(sql);\n bd.resultado = bd.sentencia.executeQuery(sql);\n \n if(bd.resultado.next())\n { \n do \n { \n clsPago oListaTemporal = new clsPago();\n \n oListaTemporal.setReferencia(bd.resultado.getString(\"referencia\"));\n oListaTemporal.setFechaPago(bd.resultado.getString(\"fecha_pago\"));\n oListaTemporal.setNombreUsuario(bd.resultado.getString(\"name_usuario\"));\n oListaTemporal.setNombreCliente(bd.resultado.getString(\"nombre_cliente\"));\n oListaTemporal.setValor(bd.resultado.getDouble(\"valor_pago\"));\n oListaTemporal.setFechaRegistro(bd.resultado.getString(\"fecha_registro\"));\n oListaTemporal.setIdPago(bd.resultado.getInt(\"idPago\"));\n data.add(oListaTemporal);\n }\n while(bd.resultado.next()); \n //return data;\n }\n else\n { \n data = null;\n } \n }\n catch(Exception ex)\n {\n System.out.print(ex);\n data = null;\n } \n bd.desconectarBaseDeDatos();\n return data;\n }", "public List<Produto> consultarProdutos(int consulta, String valor) {\r\n ConexaoBDJavaDB conexaoBD = new ConexaoBDJavaDB(\"routeexpress\");\r\n Connection conn = null;\r\n Statement stmt = null;\r\n ResultSet rs = null;\r\n List<Produto> produtos = new ArrayList<>();\r\n try {\r\n conn = conexaoBD.obterConexao();\r\n stmt = conn.createStatement();\r\n //Se a consulta for igual a zero(0) uma lista de todos os produtos \"cervejas\" e recuperada\r\n if (consulta == 0) {\r\n rs = stmt.executeQuery(consultas[consulta]);\r\n //Se a consulta for igual a tres(3) uma lista de todos os produtos \"cervejas\" e recuperada a parti do preco\r\n } else {\r\n rs = stmt.executeQuery(consultas[consulta] + \"'\" + valor + \"'\");\r\n }\r\n Produto produto;\r\n while (rs.next()) {\r\n produto = new Produto();\r\n produto.setIdCervejaria(rs.getInt(\"ID_CERVEJARIA\"));\r\n produto.setCervejaria(rs.getString(\"CERVEJARIA\"));\r\n produto.setPais(rs.getString(\"PAIS\"));\r\n produto.setIdCerveja(rs.getInt(\"ID_CERVEJA\"));\r\n produto.setIdFkCervajaria(rs.getInt(\"FK_CERVEJARIA\"));\r\n produto.setRotulo(rs.getString(\"ROTULO\"));\r\n produto.setPreco(rs.getString(\"PRECO\"));\r\n produto.setVolume(rs.getString(\"VOLUME\"));\r\n produto.setTeor(rs.getString(\"TEOR\"));\r\n produto.setCor(rs.getString(\"COR\"));\r\n produto.setTemperatura(rs.getString(\"TEMPERATURA\"));\r\n produto.setFamiliaEEstilo(rs.getString(\"FAMILIA_E_ESTILO\"));\r\n produto.setDescricao(rs.getString(\"DESCRICAO\"));\r\n produto.setSabor(rs.getString(\"SABOR\"));\r\n produto.setImagem1(rs.getString(\"IMAGEM_1\"));\r\n produto.setImagem2(rs.getString(\"IMAGEM_2\"));\r\n produto.setImagem3(rs.getString(\"IMAGEM_3\"));\r\n produtos.add(produto);\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (ClassNotFoundException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n if (conn != null) {\r\n try {\r\n conn.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (stmt != null) {\r\n try {\r\n stmt.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (rs != null) {\r\n try {\r\n rs.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }\r\n return produtos;\r\n }", "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 void makeSql() {\n\t\tfor(int i=0; i<arr_sql.length; i++) {\n\t\t\tarr_sql[i] = new StringBuffer();\n\t\t}\n\t\t\n\t\t/*\n\t\t * 공통코드 쿼리\n\t\t * 대리점구분 : CU006\n\t\t * 직판구분 : CU012\n\t\t * 지역 : SY006\n\t\t * 계약상태 : CU013\n\t\t * 사용유무 : SY011\n\t\t * 보증보험회사 : CU010\n\t\t * 하위대리점여부 : CU011\n\t\t */\n\t\tarr_sql[0].append (\"SELECT\t\t\t\t\t\t\t\t\t\t\\n\")\n\t\t\t\t .append (\"\t' ' head, ' ' detail, '전체' detail_nm \\n\")\n\t\t\t\t .append (\"FROM DUAL \\n\")\n\t\t\t\t .append (\"UNION ALL \\n\")\n\t\t\t\t .append (\"SELECT \\n\")\n\t\t\t\t .append (\"\tB.head, B.detail, B.detail_nm \\n\")\n\t\t\t\t .append (\"FROM \\n\")\n\t\t\t\t .append (\"\tSALES.TSY011 A, \\n\")\n\t\t\t\t .append (\"\tSALES.TSY010 B \\n\")\n\t\t\t\t .append (\"WHERE 1=1 \\n\")\n\t\t\t\t .append (\" AND A.head = B.head \\n\")\n\t\t\t\t .append (\" AND B.head = ? \\n\")\n\t\t\t\t .append (\" AND LENGTH (rtrim(B.detail)) > 0 \\n\");\n\t\t\n\t\t/*\n\t\t * 대리점 조회\n\t\t */\n\t\tarr_sql[1].append(\"SELECT T1.client_sid\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 매출처SID \t*/\n\t \t\t .append(\"\t\t ,T1.vend_cd \t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\\n\")\t/* [회계]거래처 코드 \t*/\n\t \t\t .append(\"\t\t ,T1.client_cd \t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\\n\")\t/* 매출처 코드 \t*/\n\t \t\t .append(\"\t\t ,T1.client_nm \t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\\n\")\t/* 매출처 명 \t*/\n\t \t\t .append(\"\t\t ,T1.client_gu \t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\\n\")\t/* 매출처구분 :CU005 \t*/\n\t \t\t \n\t \t\t .append(\"\t\t ,T1.agen_gu \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 대리점구분 :CU006 \t*/\n\t \t\t .append(\"\t\t ,T1.dir_yn \t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\\n\")\t/* 직판여부 :CU012 \t*/\n\t \t\t .append(\"\t\t ,T1.area_cd \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 지역코드 :SY006 \t*/\n\t \t\t .append(\"\t\t ,T1.sal_dam_sid \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 영업담당자코드[TSY410] */\n\t \t\t .append(\"\t\t ,T1.client_dam_nm \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 매출처담당자 \t*/\n\t \t\t \n\t \t\t .append(\"\t\t ,T1.tel_no \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 전화번호 \t*/\n\t \t\t .append(\"\t\t ,T1.mobile_no \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 휴대전화 \t*/\n\t \t\t .append(\"\t\t ,T1.fax_no \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* FAX번호 \t*/\n\t \t\t .append(\"\t\t ,T1.e_mail \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 이메일 \t*/\n\t \t\t .append(\"\t\t ,T1.zip_cd \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 우편번호[TSY110] */\n\t \t\t \n\t \t\t .append(\"\t\t ,T1.address1 \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 주소1 \t*/\n\t \t\t .append(\"\t\t ,T1.address2 \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 주소2 \t*/\n\t \t\t .append(\"\t\t ,T1.commi_rate \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 수수료율 \t*/\n\t \t\t .append(\"\t\t ,T1.cunt_status \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 계약상태 :CU013 \t*/\n\t \t\t .append(\"\t\t ,T1.bancod \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 은행코드 [BANKCODE] */\n\t \t\t \n\t \t\t .append(\"\t\t ,T1.bank_acc_no \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 은행계좌번호 \t*/\n\t \t\t .append(\"\t\t ,T1.bank_acct_nm \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 예금주 \t*/\n\t \t\t .append(\"\t\t ,T1.use_yn \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 사용여부 :SY011 \t*/ \n\t \t\t .append(\"\t\t ,T1.client_url\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 홈페이지 URL\t\t\t\t*/\n\t \t\t .append(\"\t\t ,T2.sal_dam_nm \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 영업담당자명 \t*/\n\t \t\t .append(\"\t\t ,T3.vend_nm \t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\\n\")\t/* 거래처명 \t*/\n\t \t\t \n\t \t\t .append(\"\t\t ,T4.bannam \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 은행명 \t*/\n\t \t\t .append(\"\t\t ,SALES.FN_DETAIL_NM ( 'CU006',T1.agen_gu) AS agen_gu_name \t\t\t\t\t\\n\")\t/* 대리점구분명 \t\t\t\t*/ \n\t \t\t .append(\"\t\t ,SALES.FN_DETAIL_NM ( 'CU012',T1.dir_yn) AS dir_yn_name \t\t\t\t\t\\n\")\t/* 직판여부명 \t\t\t\t*/ \n\t \t\t .append(\"\t\t ,SALES.FN_DETAIL_NM ( 'SY006',T1.area_cd) AS area_nm\t\t\t\t\t\t\t\\n\")\t/* 지역명 \t\t\t\t*/\n\t \t\t .append(\"\t\t ,SALES.FN_DETAIL_NM ( 'CU013',T1.cunt_status) AS cunt_status_name \t\t\t\\n\")\t/* 계약상태명 \t\t\t\t*/\n\n\t \t\t .append(\"\t\t ,SALES.FN_DETAIL_NM ( 'SY011',T1.use_yn) AS use_yn_name \t\t\t\\n\")\t/* 사용여부명 \t\t\t \t*/\n\n\t \t\t .append(\"FROM SALES.TCU030 T1 LEFT OUTER JOIN SALES.TSY410 T2 ON T1.SAL_DAM_SID = T2.SAL_DAM_SID \\n\")\n\t \t\t .append(\"\t\t LEFT OUTER JOIN ACCOUNT.GCZM_VENDER T3 ON T1.VEND_CD = T3.VEND_CD \t\t\t\t\t\\n\")\n\t \t\t .append(\"\t\t LEFT OUTER JOIN ACCOUNT.BANKCODE T4 ON T1.BANCOD = T4.BANCOD \t\t\t\t\t\\n\")\n\t \t\t .append(\"WHERE 1 = 1 \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\n\t \t\t .append(\"\t\t AND T1.client_GU = '1' \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\");\n\t\t/*\n\t\t * 계약정보 조회\n\t\t */\n\t\tarr_sql[2].append(\"SELECT T1.client_sid\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 매출처SID \t*/\n\t\t\t\t .append(\"\t\t ,T1.cont_date\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\") \t/* 계약일자 \t*/\n\t\t\t\t .append(\"\t\t ,T1.expire_date\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 만기일자 \t*/\n\t\t\t\t .append(\"\t\t ,TO_NUMBER(T1.insur_amt) AS insur_amt\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 보험료 \t*/\n\t\t\t\t .append(\"\t\t ,T1.insur_comp_cd\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 보증보험회사:CU010 \t*/\n\t\t\t\t .append(\"\t\t ,SALES.FN_DETAIL_NM ('CU010',T1.insur_comp_cd) AS insur_comp_cd_name\t\t\\n\") \t/* 보증보험회사명 \t\t*/ \n\t\t\t\t .append(\"FROM SALES.TCU031 T1 \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\n\t\t\t\t .append(\"WHERE 1=1\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\");\n\t\t \n\t\n\t\t/*\n\t\t * 지점정보 조회\n\t\t */\n\t\tarr_sql[3].append(\"SELECT T1.client_sid\t\t\t\t\t\t\t\t\t\t\t\t\\n\") \t/* 매출처SID \t\t*/\n\t\t\t\t .append(\"\t\t ,T1.branch_cd\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 지점코드 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,T1.branch_nm \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\") \t/* 지점명 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,T1.area_cd\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\") \t/* 지역코드:SY006 \t\t*/\n\t\t\t\t .append(\"\t\t ,T1.client_down_yn \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 하위대리점여부:CU011 \t*/\n\t\t\t\t .append(\"\t\t ,T1.empno \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 담당자 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,T1.tel_no \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 전화번호 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,T1.mobile_no \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 휴대폰 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,T1.fax_no \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 팩스번호 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,T1.branch_url \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 지점홈페이지 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,SALES.FN_DETAIL_NM ( 'SY006', T1.area_cd) AS area_nm\t\t\t\t\t\t\t\\n\") \t/* 지역명:SY006 \t\t*/\n\t\t\t\t .append(\"\t\t ,SALES.FN_DETAIL_NM ( 'CU011',T1.client_down_yn) AS client_down_yn_name \t\\n\")\t/* 하위대리점여부명 \t\t*/\n\t\t\t\t .append(\"FROM SALES.TCU032 T1\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\");\n\t\t\n\t\t\n\t\t/*\n\t\t * 대리점 등록\n\t\t */\n\n\t\tarr_sql[4].append(\"INSERT INTO SALES.TCU030 (\")\n\t\t\t\t .append(\"\t\t\t\t client_sid \\n\")\t\n\t\t\t\t .append(\"\t\t\t\t,vend_cd \\n\")\t/* [회계]거래처 코드 \t*/\n\t\t\t\t .append(\"\t\t\t\t,client_cd \\n\")\t/* 매출처 코드 \t*/\n\t\t\t\t .append(\"\t\t\t\t,client_nm \\n\")\t/* 매출처 명 \t*/\n\t\t\t\t .append(\"\t\t\t\t,client_gu \\n\")\t/* 매출처구분 :CU005 \t*/\n\t\t\t\t .append(\"\t\t\t\t,agen_gu \\n\")\t/* 대리점구분 :CU006 \t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t\t\t,dir_yn \\n\")\t/* 직판여부 :CU012 \t*/\n\t\t\t\t .append(\"\t\t\t\t,area_cd \\n\")\t/* 지역코드 :SY006 \t*/\n\t\t\t\t .append(\"\t\t\t\t,sal_dam_sid \\n\")\t/* 영업담당자코드[TSY410] \t*/\n\t\t\t\t .append(\"\t\t\t\t,client_dam_nm \\n\")\t/* 매출처담당자 \t*/\n\t\t\t\t .append(\"\t\t\t\t,tel_no \\n\")\t/* 전화번호 \t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t\t\t,mobile_no \\n\")\t/* 핸드폰 \t*/\n\t\t\t\t .append(\"\t\t\t\t,fax_no \\n\")\t/* FAX번호 \t*/\n\t\t\t\t .append(\"\t\t\t\t,e_mail \\n\")\t/* 이메일 \t*/\n\t\t\t\t .append(\"\t\t\t\t,zip_cd \\n\")\t/* 소재지우편번호[TSY110] */\n\t\t\t\t .append(\"\t\t\t\t,address1 \\n\")\t/* 소재지주소1 \t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t\t\t,address2 \\n\")\t/* 소재지주소2 \t*/\n\t\t\t\t .append(\"\t\t\t\t,commi_rate \t\\n\") \t/* 수수료율 \t*/\n\t\t\t\t .append(\"\t\t\t\t,cunt_status \\n\")\t/* 계약상태 :CU013 \t*/\n\t\t\t\t .append(\"\t\t\t\t,bancod\t\t\t\\n\") \t/* 은행코드 \t\t\t\t\t*/\n\t\t\t\t .append(\"\t\t\t\t,bank_acc_no \\n\")\t/* 은행계좌번호[BANKCODE] \t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t\t\t,bank_acct_nm\t\\n\")\t/* 예금주 \t\t\t\t\t*/\n\t\t\t\t .append(\"\t\t\t\t,use_yn\t\t\t\\n\")\t/* 사용여부 \t\t\t\t\t*/\n\t\t\t\t\n\t\t\t\t .append(\"\t\t \t\t,u_date \t\\n\") \t/* 최종수정일자 \t*/\n\t \t\t .append(\"\t\t \t\t,u_empno \t\\n\")\t/* 최종수정자사번 \t*/\n\t \t\t .append(\"\t\t \t\t,u_ip \\n\")\t/* 최종수정IP */\t\t\t\n\t \t\t .append(\"\t\t\t\t,client_url\t\t\\n\")\t/* 홈페이지 */\n\t\t\t\t .append(\"\t\t\t)\t\t\t\t\t\\n\")\n\t\t\t\t \n\t\t\t\t .append(\"VALUES\t\t\t\t\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t(\t \t\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t\tSALES.SWS_TCU030_ID.NEXTVAL,?,?,?,?,?,\t\t\\n\")\t\n\t\t\t\t .append(\"\t\t\t\t?,?,?,?,?,\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t\t?,?,?,?,?,\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t\t?,?,?,?,?,\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t\t?,?,SYSTIMESTAMP,?,?,?\t\\n\")\n\t\t\t\t .append(\"\t\t\t)\");\n\t\t\n\t\n\t\t\n\t\t/*\n\t\t * 계약정보 등록\n\t\t */\n\t\tarr_sql[5].append(\"INSERT INTO SALES.TCU031 ( \t\\n\")\n\t\t\t\t .append(\" \t client_SID\t\t\t\\n\")\t/* 매출처SID \t*/\n\t\t\t\t .append(\"\t\t ,cont_date\t\t\t\t\\n\") \t/* 계약일자 \t*/\n\t\t\t\t .append(\"\t\t ,expire_date\t\t\t\\n\")\t/* 만기일자 \t*/\n\t\t\t\t .append(\"\t\t ,insur_amt\t\t\t\t\\n\")\t/* 보험료 \t*/\n\t\t\t\t .append(\"\t\t ,insur_comp_cd\t\t\t\\n\")\t/* 보증보험회사:CU010 \t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t ,u_date\t\t\t\t\\n\")\t/* 최종수정일자 \t*/\n\t\t\t\t .append(\"\t\t ,u_empno \t\t\t\t\\n\") \t/* 최종수정자사번 \t*/\n\t\t\t\t .append(\"\t\t ,u_ip\t\t\t\t\t\\n\")\t/* 최종수정IP \t*/\n\t\t\t\t .append(\"\t\t)\t\t\t\t\t\t\\n\")\n\t\t\t\t \n\t\t\t\t .append(\"VALUES\t\t\t\t\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t(\t \t\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t\t?,?,?,?,?,\t\t\\n\")\t\n\t\t\t\t .append(\"\t\t\t\tSYSTIMESTAMP,?,?\t\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t)\");\n\t\t\t\t\t\n\t\t/*\n\t\t * 지점정보 등록\n\t\t */\n\t\t\n\t\tarr_sql[6].append(\"INSERT INTO SALES.TCU032 ( \t\\n\")\n\t\t\t\t .append(\"\t\t client_SID\t\t\t\\n\") \t/* 매출처SID \t\t*/\n\t\t\t\t .append(\"\t\t ,branch_cd\t\t\t\t\\n\")\t/* 지점코드 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,branch_nm \t\t\t\\n\") \t/* 지점명 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,area_cd\t\t\t\t\\n\") \t/* 지역코드:SY006 \t\t*/\n\t\t\t\t .append(\"\t\t ,client_down_yn \t\t\\n\")\t/* 하위대리점여부:CU011 \t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t ,empno \t\t\t\t\\n\")\t/* 담당자 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,tel_no \t\t\t\t\\n\")\t/* 전화번호 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,mobile_no \t\t\t\\n\")\t/* 휴대폰 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,fax_no \t\t\t\t\\n\")\t/* 팩스번호 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,branch_url \t\t\t\\n\")\t/* 지점홈페이지 \t\t\t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t ,u_date \t\t\t\t\\n\")\t/* 최종수정일자 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,u_empno \t\t\t\t\\n\")\t/* 최종수정자사번 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,u_ip \t\t\t\t\\n\")\t/* 최종수정IP \t\t*/\n\t\t\t\t .append(\"\t)\t\t\t\t\t\t\\n\")\n\t\t\t\t .append(\"VALUES\t\t\t\t\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t(\t \t\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t\t?,?,?,?,?,\t\t\\n\")\t\n\t\t\t\t .append(\"\t\t\t\t?,?,?,?,?,\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t\tSYSTIMESTAMP,?,?\t\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t)\");\n\t\t\n\t\t/*\n\t\t * 대리점 수정\n\t\t */\n\n\t\tarr_sql[7].append(\"UPDATE SALES.TCU030 SET \t\t\t\t\t\t\\n\")\n\t\t\t\t .append(\"\t\t vend_cd\t\t= ? \t\t\t\t\\n\")\t/* [회계]거래처 코드 \t*/\n\t\t\t\t .append(\"\t\t,client_nm\t\t= ? \t\t\t\t\\n\")\t/* 매출처 명 \t*/\n\t\t\t\t .append(\"\t\t,agen_gu\t\t= ? \t\t\t\t \t\\n\")\t/* 대리점구분 :CU006 \t*/\n\t\t\t\t .append(\"\t\t,dir_yn\t\t\t= ? \t\t\t\t\\n\")\t/* 직판여부 :CU012 \t*/\n\t\t\t\t .append(\"\t\t,area_cd \t= ? \t\t\t\t\t\\n\")\t/* 지역코드 :SY006 \t*/\n\n\t\t\t\t .append(\"\t\t,sal_dam_sid\t= ? \t\t\t\t\t\\n\")\t/* 영업담당자코드[TSY410] */\n\t\t\t\t .append(\"\t\t,client_dam_nm\t= ? \t\t\t\t\t\\n\")\t/* 매출처담당자 \t*/\n\t\t\t\t .append(\"\t\t,tel_no = ?\t\t\t\t\t\t\\n\")\t/* 전화번호 \t*/\n\t\t\t\t .append(\"\t\t,mobile_no = ?\t\t\t\t\t\t\\n\")\t/* 핸드폰 \t*/\n\t\t\t\t .append(\"\t\t,fax_no = ?\t\t\t\t\t\t\\n\")\t/* FAX번호 \t*/\n\n\t\t\t\t .append(\"\t\t,e_mail = ?\t\t\t\t\t\t\\n\")\t/* 이메일 \t*/\n\t\t\t\t .append(\"\t\t,zip_cd = ?\t\t\t\t\t\t\\n\")\t/* 소재지우편번호[TSY110] \t*/\n\t\t\t\t .append(\"\t\t,address1 = ?\t\t\t\t\t\t\\n\")\t/* 소재지주소1 \t*/\n\t\t\t\t .append(\"\t\t,address2 = ?\t\t\t\t\t\t\\n\")\t/* 소재지주소2 \t*/\n\t\t\t\t .append(\"\t\t,commi_rate \t= ?\t\t\t\t\t\t\\n\") \t/* 수수료율 \t*/\n\n\t\t\t\t .append(\"\t\t,cunt_status = ?\t\t\t\t\t\t\\n\")\t/* 계약상태 :CU013 \t*/\n\t\t\t\t .append(\"\t\t,bancod\t\t\t= ?\t\t\t\t\t\t\\n\") \t/* 은행코드\t \t\t\t\t*/\n\t\t\t\t .append(\"\t\t,bank_acc_no = ?\t\t\t\t\t\t\\n\")\t/* 은행계좌번호[BANKCODE]\t\t*/\n\t\t\t\t .append(\"\t\t,bank_acct_nm\t= ?\t\t\t\t\t\t\\n\")\t/* 예금주 \t\t\t\t\t*/\n\t\t\t\t .append(\"\t\t,use_yn\t\t\t= ?\t\t\t\t\t\t\\n\")\t/* 사용여부 \t\t\t\t\t*/\n\n\t\t\t\t .append(\"\t\t,u_date \t= SYSTIMESTAMP\t\t\\n\") \t/* 최종수정일자 \t*/\n\t \t\t .append(\"\t\t,u_empno \t= ?\t\t\t\t\t\t\\n\")\t/* 최종수정자사번 \t*/\n\t \t\t .append(\"\t\t,u_ip = ?\t\t\t\t\t\t\\n\")\t/* 최종수정IP */\n\t \t\t .append(\"\t,client_url = ?\t\t\t\t\t\t\\n\")\t/* 홈페이지 */\n\t\t\t\t .append (\"WHERE client_sid \t= ? \t\t\t\t\\n\");\n\t\t\t\t \n\t\t/*\n\t\t * 계약정보 수정\n\t\t */\n\t\tarr_sql[8].append(\"UPDATE SALES.TCU031 SET\t\t\t\t\t\t\\n\")\n\t\t\t\t .append(\"\t\t cont_date\t\t\t= ?\t\t\t\t\t\\n\") \t/* 계약일자 \t*/\n\t\t\t\t .append(\"\t\t ,expire_date\t\t= ?\t\t\t\t\t\\n\")\t/* 만기일자 \t*/\n\t\t\t\t .append(\"\t\t ,insur_amt\t\t\t= ?\t\t\t\t\t\\n\")\t/* 보험료 \t*/\n\t\t\t\t .append(\"\t\t ,insur_comp_cd\t\t= ?\t\t\t\t\t\\n\")\t/* 보증보험회사:CU010 \t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t ,u_date\t\t\t= SYSTIMESTAMP\t\\n\")\t/* 최종수정일자 \t*/\n\t\t\t\t .append(\"\t\t ,u_empno \t\t\t= ?\t\t\t\t\t\\n\") \t/* 최종수정자사번 \t*/\n\t\t\t\t .append(\"\t\t ,u_ip\t\t\t\t= ?\t\t\t\t\t\\n\")\t/* 최종수정IP \t*/\n\t\t\t\t .append (\"WHERE client_sid \t\t= ? AND cont_date = ? \\n\");\n\t\t\t\t\n\t\t\t\t \n\t\t\t\t\t\n\t\t/*\n\t\t * 지점정보 수정\n\t\t */\n\t\t\n\t\tarr_sql[9].append(\"UPDATE SALES.TCU032 SET \t\t\t\t\t\t\t\\n\")\n\t\t\t\t .append(\"\t\t branch_nm \t\t= ?\t\t\t\t\t\t\\n\") \t/* 지점명 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,area_cd\t\t\t= ?\t\t\t\t\t\t\\n\") \t/* 지역코드:SY006 \t\t*/\n\t\t\t\t .append(\"\t\t ,client_down_yn \t= ?\t\t\t\t\t\t\\n\")\t/* 하위대리점여부:CU011 \t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t ,empno \t\t\t= ?\t\t\t\t\t\t\\n\")\t/* 담당자 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,tel_no \t\t\t= ?\t\t\t\t\t\t\\n\")\t/* 전화번호 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,mobile_no \t\t= ?\t\t\t\t\t\t\\n\")\t/* 휴대폰 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,fax_no \t\t\t= ?\t\t\t\t\t\t\\n\")\t/* 팩스번호 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,branch_url \t\t= ?\t\t\t\t\t\t\\n\")\t/* 지점홈페이지 \t\t\t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t ,u_date \t\t\t= SYSTIMESTAMP\t\t\t\t\t\t\\n\")\t/* 최종수정일자 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,u_empno \t\t\t= ?\t\t\\n\")\t/* 최종수정자사번 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,u_ip \t\t\t= ?\t\t\t\t\t\t\\n\")\t/* 최종수정IP \t\t*/\n\t\t\t\t .append (\"WHERE client_sid = ? AND branch_cd \t= ?\t\t\\n\");\n\t\t\n\t\t arr_sql[10].append(\"DELETE FROM SALES.TCU030 WHERE client_sid = ?\");\t\n\t\t arr_sql[11].append(\"DELETE FROM SALES.TCU031 WHERE client_sid = ? AND cont_date = ?\");\n\t\t arr_sql[12].append(\"DELETE FROM SALES.TCU032 WHERE client_sid = ? AND branch_cd = ?\");\n\t\t \n\t\t \n\t\t /*\n\t\t * Client SID 얻어오기\n\t\t */\n\t\t\t\n\t\t\tarr_sql[13].append(\"SELECT client_sid FROM SALES.TCU030 WHERE client_cd = ?\\n\");\n\t\t\t\n\t\t/*\n\t\t * 수수료율 조회\n\t\t */\n\t\t\tarr_sql[14].append(\"SELECT\t\t\t\t\t\t\t\t\\n\")\n\t\t\t\t\t\t.append(\" T1.CLIENT_SID AS CLIENT_SID\t\\n\") /* 매출처SID */\n\t\t\t\t\t\t.append(\" ,T1.FR_DATE AS FR_DATE \t\\n\") /* 시작일자 */\n\t\t\t\t\t\t.append(\" ,T1.TO_DATE AS TO_DATE \t\\n\") /* 종료일자 */\n\t\t\t\t\t\t.append(\" ,T1.WEEKEND_YN AS WEEKEND_YN \t\\n\") /* 주말여부 */\n\t\t\t\t\t\t.append(\" ,T1.COMMI_RATE AS COMMI_RATE\t\\n\") /* 수수료율 */\n\t\t\t\t\t\t.append(\"FROM SALES.TCU033 T1 \t\\n\")\n\t\t\t\t\t\t.append(\"WHERE 1=1 \t\t\t\t\t\t\t\\n\");\n\t\t\t\t\t\t\n\t\t/*\n\t\t * 수수료율 등록\n\t\t */\n\t\t\t\n\t\t\tarr_sql[15].append(\"INSERT INTO SALES.TCU033 ( \t\\n\")\n\t\t\t\t\t\t .append(\" \t CLIENT_SID\t\t\t\\n\")\t/* 매출처SID \t*/\n\t\t\t\t\t\t .append(\"\t\t ,FR_DATE\t\t\t\t\\n\") \t/* 시작일자 \t*/\n\t\t\t\t\t\t .append(\"\t\t ,TO_DATE\t\t\t\\n\")\t/* 종료일자 \t*/\n\t\t\t\t\t\t .append(\"\t\t ,COMMI_RATE\t\t\t\t\\n\")\t/* 수수료율 \t*/\n\t\t\t\t\t\t .append(\"\t\t ,WEEKEND_YN\t\t\t\\n\")\t/* 주말여부 \t*/\n\t\t\t\t\t\t .append(\"\t\t ,I_DATE\t\t\t\t\\n\")\t/* 최종입력일자 \t*/\n\t\t\t\t\t\t .append(\"\t\t ,I_EMPNO \t\t\t\t\\n\") \t/* 최종입력자사번 \t*/\n\t\t\t\t\t\t .append(\"\t\t ,I_IP\t\t\t\t\t\\n\")\t/* 최종입력IP \t*/\t\t\t\t\t\t \n\t\t\t\t\t\t .append(\"\t\t ,u_date\t\t\t\t\\n\")\t/* 최종수정일자 \t*/\n\t\t\t\t\t\t .append(\"\t\t ,u_empno \t\t\t\t\\n\") \t/* 최종수정자사번 \t*/\n\t\t\t\t\t\t .append(\"\t\t ,u_ip\t\t\t\t\t\\n\")\t/* 최종수정IP \t*/\n\t\t\t\t\t\t .append(\"\t\t)\t\t\t\t\t\t\\n\")\n\t\t\t\t\t\t \n\t\t\t\t\t\t .append(\"VALUES\t\t\t\t\t\t\\n\")\n\t\t\t\t\t\t .append(\"\t\t\t(\t \t\t\t\\n\")\n\t\t\t\t\t\t .append(\"\t\t\t\t?,?,?,?, ?,\t\t\\n\")\t\n\t\t\t\t\t\t .append(\"\t\t\t\tSYSTIMESTAMP,?,?, SYSTIMESTAMP,?,?\t\\n\")\n\t\t\t\t\t\t .append(\"\t\t\t)\");\n\t\t/*\n\t\t * 수수료율 수정\n\t\t */\n\t\t\tarr_sql[16].append(\"UPDATE SALES.TCU033 SET\t\t\t\t\t\t\\n\") \n\t\t\t\t\t .append(\"\t\t TO_DATE\t\t\t= ?\t\t\t\t\t\\n\")\t/* 종료일자 \t*/\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t .append(\"\t\t ,COMMI_RATE\t\t= ?\t\t\t\t\t\\n\")\t/* 수수료율 \t*/\n\t\t\t\t\t .append(\"\t\t ,WEEKEND_YN\t\t= ?\t\t\t\t\t\\n\")\t/* 주말여부 \t*/\n\t\t\t\t\t \n\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t .append(\"\t\t ,u_date\t\t\t= SYSTIMESTAMP\t\\n\")\t/* 최종수정일자 \t*/\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t .append(\"\t\t ,u_empno \t\t\t= ?\t\t\t\t\t\\n\") \t/* 최종수정자사번 \t*/\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t .append(\"\t\t ,u_ip\t\t\t\t= ?\t\t\t\t\t\\n\")\t/* 최종수정IP \t*/\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t .append (\"WHERE client_sid \t\t= ? AND FR_DATE = ? AND WEEKEND_YN=? \\n\"); \n\t\t/*\n\t\t * 수수료율 삭제\n\t\t */\n\t\tarr_sql[17].append(\"DELETE FROM SALES.TCU033 WHERE client_sid = ? AND fr_date = ? AND WEEKEND_YN=? \");\t \n\t\t\t \n\n\t}", "private StringBuilder getSqlSelectContadorDocProrroga() {\n StringBuilder query = new StringBuilder();\n\n query.append(\" \");\n query.append(\" SELECT \\n\");\n query.append(\" PRO.ID_PRORROGA_ORDEN, \\n\");\n query.append(\" PRO.ID_ORDEN, \\n\");\n query.append(\" PRO.FECHA_CARGA, \\n\");\n query.append(\" PRO.RUTA_ACUSE,\\n\");\n query.append(\" PRO.CADENA_CONTRIBUYENTE, \\n\");\n query.append(\" PRO.FIRMA_CONTRIBUYENTE, \\n\");\n query.append(\" PRO.APROBADA, \\n\");\n query.append(\" PRO.ID_ASOCIADO_CARGA, \\n\");\n query.append(\" PRO.ID_AUDITOR, \\n\");\n query.append(\" PRO.ID_FIRMANTE, \\n\");\n query.append(\" PRO.RUTA_RESOLUCION, \\n\");\n query.append(\" PRO.CADENA_FIRMANTE, \\n\");\n query.append(\" PRO.FIRMA_FIRMANTE,\\n\");\n query.append(\" PRO.FECHA_FIRMA, \\n\");\n query.append(\" PRO.ID_ESTATUS, \\n\");\n query.append(\" PRO.FOLIO_NYV, \\n\");\n query.append(\" PRO.FECHA_NOTIF_NYV, \\n\");\n query.append(\" PRO.FECHA_NOTIF_CONT, \\n\");\n query.append(\" PRO.FECHA_SURTE_EFECTOS, \\n\");\n query.append(\" PRO.ID_NYV, \\n\");\n query.append(\" (SELECT COUNT(0) FROM \");\n query.append(FecetDocProrrogaOrdenDaoImpl.getTableName());\n query.append(\" DOCPRO WHERE PRO.ID_PRORROGA_ORDEN = DOCPRO.ID_PRORROGA_ORDEN) TOTAL_DOC_PRORROGA, \\n\");\n query.append(\" ASOCIADO.ID_ASOCIADO, \\n\");\n query.append(\" ASOCIADO.RFC_CONTRIBUYENTE, \\n\");\n query.append(\" ASOCIADO.RFC, \\n\");\n query.append(\" ASOCIADO.ID_ORDEN, \\n\");\n query.append(\" ASOCIADO.ID_TIPO_ASOCIADO, \\n\");\n query.append(\" ASOCIADO.NOMBRE, \\n\");\n query.append(\" ASOCIADO.CORREO, \\n\");\n query.append(\" ASOCIADO.TIPO_ASOCIADO, \\n\");\n query.append(\" ASOCIADO.FECHA_BAJA, \\n\");\n query.append(\" ASOCIADO.FECHA_ULTIMA_MOD, \\n\");\n query.append(\" ASOCIADO.FECHA_ULTIMA_MOD_IDC, \\n\");\n query.append(\" ASOCIADO.MEDIO_CONTACTO, \\n\");\n query.append(\" ASOCIADO.ESTATUS, \\n\");\n query.append(\" ESTATUS.ID_ESTATUS, \\n\");\n query.append(\" ESTATUS.DESCRIPCION, \\n\");\n query.append(\" ESTATUS.MODULO, \\n\");\n query.append(\" ESTATUS.ID_MODULO \\n\");\n\n query.append(\"FROM \");\n query.append(getTableName());\n query.append(\" PRO \\n\");\n query.append(\" INNER JOIN FECEC_ESTATUS ESTATUS \\n\");\n query.append(\" ON PRO.ID_ESTATUS = ESTATUS.ID_ESTATUS \\n\");\n query.append(\" LEFT JOIN FECET_ASOCIADO ASOCIADO \\n\");\n query.append(\" ON PRO.ID_ASOCIADO_CARGA = ASOCIADO.ID_ASOCIADO \\n\");\n return query;\n }", "public void reback(){\n \n try{ \n cnx = DriverManager.getConnection(url, user,pass);\n String sql = \"SELECT DISTINCT (t1.codigo_producto),(t1.categoria),(t1.producto), t1.unidades FROM tabla_aux t1 INNER JOIN (SELECT producto, MAX(Unidades) as unidades FROM tabla_aux GROUP BY producto) t2 ON t1.producto = t2.producto AND t1.unidades = t2.unidades ORDER BY t1.producto DESC\";\n Statement st = cnx.prepareStatement(sql);\n ResultSet res = st.executeQuery(sql);\n \n while (res.next()){\n ID = res.getString(1); \n MK = res.getString(2); \n MD = res.getString(3); \n UD = res.getInt(4);\n Class.forName(\"com.mysql.jdbc.Driver\"); \n conI = DriverManager.getConnection(url, user,pass);\n String query = \"update producto set Unidades = ? where codigo_producto = ? && categoria = ? && producto = ?\";\n PreparedStatement preparedStmt = conI.prepareStatement(query);\n preparedStmt.setInt (1, UD);\n preparedStmt.setString (2, ID);\n preparedStmt.setString (3, MK);\n preparedStmt.setString (4, MD);\n preparedStmt.executeUpdate();\n }\n Connection conex = DriverManager.getConnection(url, user, pass);\n String Qury = \"TRUNCATE tabla_aux\";\n Statement sts = conex.createStatement();\n sts.executeUpdate(Qury);\n }\n catch(SQLException ex){JOptionPane.showMessageDialog(this,ex);} catch (ClassNotFoundException ex) {\n Logger.getLogger(hacer_ventas.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "private void llenarListadoPromocionSalarial() {\n\t\tString sql1 = \"select det.* from seleccion.promocion_salarial det \"\r\n\t\t\t\t+ \"join planificacion.estado_cab cab on cab.id_estado_cab = det.id_estado_cab \"\r\n\t\t\t\t+ \"join planificacion.configuracion_uo_cab uo_cab \"\r\n\t\t\t\t+ \"on uo_cab.id_configuracion_uo = det.id_configuracion_uo_cab\"\r\n\t\t\t\t+ \" left join seleccion.promocion_concurso_agr agr \"\r\n\t\t\t\t+ \"on agr.id_promocion_salarial = det.id_promocion_salarial\"\r\n\t\t\t\t\r\n\t\t\t\t+ \" where lower(cab.descripcion) = 'concurso' \" + \"and (\"\r\n\t\t\t\t+ \"\t\tagr.id_estado_det = (\" + \"\t\t\t\tselect est.id_estado_det \"\r\n\t\t\t\t+ \"\t\t\t\tfrom planificacion.estado_det est \"\r\n\t\t\t\t+ \"\t\t\t\twhere lower(est.descripcion)='libre'\" + \"\t\t) \"\r\n\t\t\t\t+ \"\t\tor agr.id_estado_det is null\" + \"\t) \"\r\n\t\t\t\t+ \" and uo_cab.id_configuracion_uo = \"\r\n\t\t\t\t+ configuracionUoCab.getIdConfiguracionUo()\r\n\t\t\t\t+ \" AND det.activo=true\";\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO SIMPLIFICADO Se despliegan los puestos\r\n\t\t * PERMANENTES o CONTRATADOS, con estado = LIBRE o NULO Los puestos\r\n\t\t * deben ser de nivel 1\r\n\t\t */\r\n//\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n//\t\t\t\t.equalsIgnoreCase(CONCURSO_SIMPLIFICADO)) {\r\n//\t\t\tsql1 += \" and cpt.nivel=1 and cpt.activo=true and (det.permanente is true or det.contratado is true) \";\r\n//\t\t}\r\n\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO INTERNO DE OPOSICION INSTITUCIONAL Se\r\n\t\t * despliegan los puestos PERMANENTE, con estado = LIBRE o NULO\r\n\t\t */\r\n\r\n//\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n//\t\t\t\t.equalsIgnoreCase(CONCURSO_INTERNO_OPOSICION)) {\r\n//\t\t\tsql1 += \" and det.permanente is true \";\r\n//\t\t}\r\n\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO INTERNO DE OPOSICION INTER INSTITUCIONAL\r\n\t\t * Se despliegan los puestos PERMANENTE, con estado = LIBRE o NULO\r\n\t\t */\r\n\r\n//\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n//\t\t\t\t.equalsIgnoreCase(CONCURSO_INTERNO_INTERINSTITUCIONAL)) {\r\n//\t\t\tsql1 += \" and det.permanente is true \";\r\n//\t\t}\r\n\t\t\r\n\t\tString sql2 = \"select puesto_det.* \"\r\n\t\t\t\t+ \"from seleccion.promocion_concurso_agr puesto_det \"\r\n\t\t\t\t+ \"join planificacion.estado_det estado_det \"\r\n\t\t\t\t+ \"on estado_det.id_estado_det = puesto_det.id_estado_det \"\r\n\t\t\t\t+ \"join seleccion.promocion_salarial det \"\r\n\t\t\t\t+ \"on det.id_promocion_salarial = puesto_det.id_promocion_salarial \"\r\n\t\t\t\t+ \"join planificacion.configuracion_uo_cab uo_cab \"\r\n\t\t\t\t+ \"on uo_cab.id_configuracion_uo = det.id_configuracion_uo_cab \"\r\n\t\t\t//\t+ \"join seleccion.concurso concurso \"\r\n\t\t\t//\t+ \"on concurso.id_concurso = puesto_det.id_concurso \"\r\n\t\t\t\t\r\n\t\t\t\t+ \" where lower(estado_det.descripcion) = 'en reserva' \"\r\n\t\t\t\t+ \"and uo_cab.id_configuracion_uo = \"\r\n\t\t\t\t+ configuracionUoCab.getIdConfiguracionUo()\r\n\t\t\t//\t+ \" and concurso.id_concurso = \" + concurso.getIdConcurso()\r\n\t\t\t\t+ \" and puesto_det.activo=true\";\r\n\r\n\t\tcargarListaPromocionSalarial(sql1, sql2);\r\n\t}", "public static String todosLosEmpleados(){\n String query=\"SELECT empleado.idEmpleado, persona.nombre, persona.apePaterno, persona.apeMaterno, empleado.codigo, empleado.fechaIngreso,persona.codigoPostal,persona.domicilio,\" +\n\"empleado.puesto, empleado.salario from persona inner join empleado on persona.idPersona=empleado.idPersona where activo=1;\";\n return query;\n }", "public void buscaTodasOSs() {\n try {\n ServicoDAO sDAO = new ServicoDAO(); // instancia a classe ProdutoDB()\n ArrayList<OS> cl = sDAO.consultaTodasOs(); // coloca o método dentro da variável\n\n DefaultTableModel modeloTabela = (DefaultTableModel) jTable1.getModel();\n // coloca a tabela em uma variável do tipo DefaultTableModel, que permite a modelagem dos dados da tabela\n\n for (int i = modeloTabela.getRowCount() - 1; i >= 0; i--) {\n modeloTabela.removeRow(i);\n // loop que limpa a tabela antes de ser atualizada\n }\n\n for (int i = 0; i < cl.size(); i++) {\n // loop que pega os dados e insere na tabela\n Object[] dados = new Object[7]; // instancia os objetos. Cada objeto representa um atributo \n dados[0] = cl.get(i).getNumero_OS();\n dados[3] = cl.get(i).getStatus_OS();\n dados[4] = cl.get(i).getDefeito_OS();\n dados[5] = cl.get(i).getDataAbertura_OS();\n dados[6] = cl.get(i).getDataFechamento_OS();\n\n // pega os dados salvos do banco de dados (que estão nas variáveis) e os coloca nos objetos definidos\n modeloTabela.addRow(dados); // insere uma linha nova a cada item novo encontrado na tabela do BD\n }\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(null, \"Falha na operação.\\nErro: \" + ex.getMessage());\n } catch (Exception ex) {\n Logger.getLogger(FrmPesquisar.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void simpanDataBuku(){\n String sql = (\"INSERT INTO buku (judulBuku, pengarang, penerbit, tahun, stok)\" \n + \"VALUES ('\"+getJudulBuku()+\"', '\"+getPengarang()+\"', '\"+getPenerbit()+\"'\"\n + \", '\"+getTahun()+\"', '\"+getStok()+\"')\");\n \n try {\n //inisialisasi preparedstatmen\n PreparedStatement eksekusi = koneksi. getKoneksi().prepareStatement(sql);\n eksekusi.execute();\n \n //pemberitahuan jika data berhasil di simpan\n JOptionPane.showMessageDialog(null,\"Data Berhasil Disimpan\");\n } catch (SQLException ex) {\n //Logger.getLogger(modelPelanggan.class.getName()).log(Level.SEVERE, null, ex);\n JOptionPane.showMessageDialog(null, \"Data Gagal Disimpan \\n\"+ex);\n }\n }", "public DatoGeneralMinimo getEntityDatoGeneralMinimoGenerico(Connexion connexion,QueryWhereSelectParameters queryWhereSelectParameters,ArrayList<Classe> classes) throws SQLException,Exception { //Banco\r\n\t\tDatoGeneralMinimo datoGeneralMinimo= new DatoGeneralMinimo();\r\n\t\t\r\n\t\tBanco entity = new Banco();\r\n\t\t\t\t\r\n try {\t\t\t\r\n\t\t\tString sQuery=\"\";\r\n \t String sQuerySelect=\"\";\r\n\t\t\t\r\n\t\t\tStatement statement = connexion.getConnection().createStatement();\t\t\t\r\n\t\t\t\r\n\t\t\tif(!queryWhereSelectParameters.getSelectQuery().equals(\"\")) {\r\n\t\t\t\tsQuerySelect=queryWhereSelectParameters.getSelectQuery();\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tif(!this.isForForeingKeyData) {\r\n\t\t\t\t\tsQuerySelect=BancoDataAccess.QUERYSELECTNATIVE;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsQuerySelect=BancoDataAccess.QUERYSELECTNATIVEFORFOREINGKEY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n \t sQuery=DataAccessHelper.buildSqlGeneralGetEntitiesJDBC(entity,BancoDataAccess.TABLENAME+\".\",queryWhereSelectParameters,sQuerySelect);\r\n\t\t\t\r\n\t\t\tif(Constantes2.ISDEVELOPING_SQL) {\r\n \tFunciones2.mostrarMensajeDeveloping(sQuery);\r\n }\r\n\t\t\t\r\n \t \tResultSet resultSet = statement.executeQuery(sQuery);//Tesoreria.Banco.isActive=1\r\n \t \r\n\t\t\t//ResultSetMetaData metadata = resultSet.getMetaData();\r\n \t \t\r\n \t \t//int iTotalCountColumn = metadata.getColumnCount();\r\n\t\t\t\t\r\n\t\t\t//if(queryWhereSelectParameters.getIsGetGeneralObjects()) {\r\n\t\t\t\tif(resultSet.next()) {\t\t\t\t\r\n\t\t\t\t\tfor(Classe classe:classes) {\r\n\t\t\t\t\t\tDataAccessHelperBase.setFieldDynamic(datoGeneralMinimo,classe,resultSet);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t/*\r\n\t\t\t\t\tint iIndexColumn = 1;\r\n\t\t\t\t \r\n\t\t\t\t\twhile(iIndexColumn <= iTotalCountColumn) {\r\n\t\t\t\t\t\t//arrayListObject.add(resultSet.getObject(iIndexColumn++));\r\n\t\t\t\t }\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t*/\r\n\t\t\t\t} else {\r\n\t\t\t\t\tentity =null;\r\n\t\t\t\t}\r\n\t\t\t//}\r\n\t\t\t\r\n\t\t\tif(entity!=null) {\r\n\t\t\t\t//this.setIsNewIsChangedFalseBanco(entity);\r\n\t\t\t}\r\n\t\t\t\r\n \t statement.close(); \r\n\t\t\r\n\t\t} \r\n\t\tcatch(Exception e) {\r\n\t\t\tthrow e;\r\n \t}\r\n\t\t\r\n \t//return entity;\t\r\n\t\t\r\n\t\treturn datoGeneralMinimo;\r\n }", "private void actualizarVentanaOperadores() throws SQLException {\n Sistema.getControladorVentanaOperadores().actualizarTablaOperadores(\"SELECT * FROM operador WHERE activo=TRUE ORDER BY id ASC;\");\n }", "public void execute() throws SQLException {\n\t\ttry {\n\t\t\tselect.setUsername(\"INTRANET\");\n\t\t\tselect.setPassword(\"INTRANET\");\n\t\t\tselect.execute();\n\t\t}\n\n\t\t// Liberar recursos del objeto select.\n\t\tfinally {\n\t\t\tselect.close();\n\t\t}\n\t}", "private void buscar() {\n try { \n conexion = DriverManager.getConnection(\"jdbc:mysql://localhost/sistema_gmg\", \"root\", \"1405\");\n\n st = conexion.createStatement();\n \n rs = st.executeQuery(\"select * from ciclos where ciclo like '%\" + this.jtf_buscar.getText() + \"%'\");\n\n jtf_id_ciclo.setText(null);\n jtf_ciclo.setText(null);\n jtf_finicio.setText(null);\n jtf_ftermino.setText(null);\n \n jt_ciclos.setModel(DbUtils.resultSetToTableModel(rs));\n \n jb_cancelar.setEnabled(true); \n rs = st.executeQuery(\"select *from ciclos\");\n } catch (SQLException ex) {\n Logger.getLogger(JF_Alumnos.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public static void insertFournisseur(Fournisseur unFournisseur ) {\n Bdd uneBdd = new Bdd(\"localhost\", \"paruline \", \"root\", \"\");\n\n String checkVille = \"CALL checkExistsCity('\" + unFournisseur.getVille() + \"','\" + unFournisseur.getCp() + \"');\";\n try {\n uneBdd.seConnecter();\n Statement unStat = uneBdd.getMaConnection().createStatement();\n\n ResultSet unRes = unStat.executeQuery(checkVille);\n\n int nb = unRes.getInt(\"nb\");\n\n if (nb == 0) {\n String ajoutVille = \"CALL InsertCity('\" + unFournisseur.getVille() + \"', '\" + unFournisseur.getCp() + \"');\";\n\n try {\n Statement unStatAjout = uneBdd.getMaConnection().createStatement();\n\n unStatAjout.executeQuery(ajoutVille);\n unStatAjout.close();\n }\n catch (SQLException e) {\n System.out.println(\"Erreur : \" + ajoutVille);\n }\n }\n\n String id = \"CALL GetCity('\" + unFournisseur.getVille() + \"', '\" + unFournisseur.getCp() + \"')\";\n\n try {\n Statement unStatId = uneBdd.getMaConnection().createStatement();\n\n ResultSet unResId = unStatId.executeQuery(id);\n\n int id_city = unResId.getInt(\"id_city\");\n\n\n\n String insertFournisseur = \"INSERT INTO fournisseur(id_city, name_f, adresse_f, phoneFour) VALUES (\" + id_city + \", '\" + unFournisseur.getNom() + \"', \" +\n \"'\" + unFournisseur.getAdresse() + \"', '\" + unFournisseur.getTelephone() + \"')\";\n\n try {\n Statement unStatFourn = uneBdd.getMaConnection().createStatement();\n unStatFourn.executeQuery(insertFournisseur);\n\n unStatFourn.close();\n }\n catch (SQLException e) {\n System.out.println(\"Erreur : \" + insertFournisseur);\n }\n\n unResId.close();\n unStatId.close();\n }\n catch (SQLException e) {\n System.out.println(\"Erreur : \" + id);\n }\n\n unRes.close();\n unStat.close();\n uneBdd.seDeConnecter();\n } catch (SQLException exp) {\n System.out.println(\"Erreur : \" + checkVille);\n }\n }", "public CadastroDeEmpresa() {\n initComponents();\n preencherTabela(\"select * from empresa order by id\");\n }", "public void preencherTabelaResultado() {\n\t\tArrayList<Cliente> lista = Fachada.getInstance().pesquisarCliente(txtNome.getText());\n\t\tDefaultTableModel modelo = (DefaultTableModel) tabelaResultado.getModel();\n\t\tObject[] linha = new Object[4];\n\t\tmodelo.setRowCount(0);\n\n\t\tfor (Cliente c : lista) {\n\t\t\tlinha[0] = c.getIdCliente();\n\t\t\tlinha[1] = c.getNome();\n\t\t\tlinha[2] = c.getTelefone().toString();\n\t\t\tif (c.isAptoAEmprestimos())\n\t\t\t\tlinha[3] = \"Apto\";\n\t\t\telse\n\t\t\t\tlinha[3] = \"A devolver\";\n\t\t\tmodelo.addRow(linha);\n\n\t\t}\n\n\t}", "public static void main(String[] args) {\n Connection connection = null;\r\n\r\n try{\r\n // establezco la connecion con la base de datos jdbc en el puerto 3306 con usuario y contrasenia root\r\n connection = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/jdbc\",\"root\",\"root\");\r\n // pongo auto commit en false esto hace que no se comite cada cueri y que se cada vez que lance\r\n // el comando commit se ejecuta el bloque query\r\n connection.setAutoCommit(false);\r\n\r\n // hago la sentencia preparada\r\n PreparedStatement preparedStatement = connection.prepareStatement(\"INSERT INTO estudiante (dni, nombre, apellido) VALUES (?, ?, ?);\");\r\n // modifico los \"?\" de la sentencia preparada con mis datos\r\n preparedStatement.setInt(1,40640217);\r\n preparedStatement.setString(2,\"Santiago\");\r\n preparedStatement.setString(3,\"Lampropulos\");\r\n\r\n // ejecuto la consulta preparada\r\n preparedStatement.executeUpdate();\r\n\r\n //traigo los datos de la tabla estudiante\r\n ResultSet resultSet = preparedStatement.executeQuery(\"SELECT * FROM estudiante\");\r\n\r\n // realizo el commit para que se guarden los cambios\r\n connection.commit();\r\n\r\n //muestro toda la tabla\r\n while(resultSet.next()){\r\n System.out.println(resultSet.getString(2)+\"\\t\"+resultSet.getString(\"nombre\")+\"\\t\"+resultSet.getString(\"apellido\"));\r\n }\r\n\r\n }catch (SQLException exceptionConnection){\r\n System.out.println(exceptionConnection);\r\n try{\r\n // si se creo la base de datos revierte el commit que se hizo\r\n if(connection!=null){\r\n connection.rollback();\r\n }\r\n }catch (SQLException exceptionCarth){\r\n //atrapo excepciones\r\n System.out.println(exceptionCarth);\r\n }\r\n\r\n\r\n }finally {\r\n // el bloque finally se ejecute sin inportar si viene de un catch o del try\r\n try{\r\n //si se crea una coneccion con base de datos la cierro\r\n if(connection!= null){\r\n connection.close();\r\n }\r\n }catch (SQLException eFinally){\r\n //atrapo excepciones\r\n System.out.println(eFinally);\r\n }\r\n }\r\n\r\n }", "public void guardarBloqueSeleccionado(){\n\t\tif(bloqueSeleccionadoEditar.getIdbloques() == 0){\n\t\t\tbloquesFacade.create(bloqueSeleccionadoEditar);\n\t\t}else{\n\t\t\tbloquesFacade.edit(bloqueSeleccionadoEditar);\n\t\t}\n\t\tdataListBloques = bloquesFacade.findByLike(\"SELECT B FROM Bloques B ORDER BY B.nombre\");\n\t}", "public void alteraDadosMySQL() throws SQLException, IOException {\n byte[] logo = null;\n byte[] brasao = null;\n if (imagemRedimensionada != null) {\n ByteArrayOutputStream bytesImg = new ByteArrayOutputStream();\n ImageIO.write((BufferedImage) imagemRedimensionada, extensao, bytesImg);\n bytesImg.flush();\n logo = bytesImg.toByteArray();\n bytesImg.close();\n }\n\n if (imagemRedimensionada2 != null) {\n ByteArrayOutputStream bytesImg2 = new ByteArrayOutputStream();\n ImageIO.write((BufferedImage) imagemRedimensionada2, extensao2, bytesImg2);\n bytesImg2.flush();\n brasao = bytesImg2.toByteArray();\n bytesImg2.close();\n }\n\n if (dados.equals(prova.getText())) {\n if (dados2.equals(individualUnico.getText())) {\n // System.out.println(\"1\");\n PreparedStatement p = conexao.prepareStatement(\"UPDATE dados SET titulo='\" + titulo.getText() + \"'\"\n + \", tipo='\" + dados + \"'\"\n + \", modalidade='\" + dados2 + \"'\"\n + \", escola='\" + dados3 + \"'\"\n + \", matricula='\" + matricula.getText() + \"'\"\n + \", dataProva=?\"\n + \", dataRecebimento=?\"\n + \", dataEntrega=?\"\n + \" WHERE titulo='\" + aux + \"'\"\n );\n p.clearParameters();\n p.setDate(1, new java.sql.Date(dataProva.getDate().getTime()));\n p.setDate(2, null);\n p.setDate(3, null);\n p.executeUpdate();\n } else {\n if (dados2.equals(individualTurma.getText()) || dados2.equals(grupo.getText())) {\n System.out.println(\"OK\");\n // System.out.println(\"2\");\n PreparedStatement p = conexao.prepareStatement(\"UPDATE dados SET titulo='\" + titulo.getText() + \"'\"\n + \", tipo='\" + dados + \"'\"\n + \", modalidade='\" + dados2 + \"'\"\n + \", escola='\" + dados3 + \"'\"\n + \", matricula=?\"\n + \", dataProva=?\"\n + \", dataRecebimento=?\"\n + \", dataEntrega=?\"\n + \" WHERE titulo='\" + aux + \"'\"\n );\n p.clearParameters();\n p.setString(1, null);\n p.setDate(2, new java.sql.Date(dataProva.getDate().getTime()));\n p.setDate(3, null);\n p.setDate(4, null);\n p.executeUpdate();\n }\n }\n } else {\n if (dados.equals(trabalho.getText())) {\n if (dados2.equals(individualUnico.getText())) {\n\n PreparedStatement p = conexao.prepareStatement(\"UPDATE dados SET titulo='\" + titulo.getText() + \"'\"\n + \", tipo='\" + dados + \"'\"\n + \", modalidade='\" + dados2 + \"'\"\n + \", escola='\" + dados3 + \"'\"\n + \", matricula='\" + matricula.getText() + \"'\"\n + \", dataProva=?\"\n + \", dataRecebimento=?\"\n + \", dataEntrega=?\"\n + \" WHERE titulo='\" + aux + \"'\"\n );\n p.clearParameters();\n\n p.setDate(1, null);\n p.setDate(2, new java.sql.Date(dataRecebimento.getDate().getTime()));\n p.setDate(3, new java.sql.Date(dataEntrega.getDate().getTime()));\n p.executeUpdate();\n } else {\n if (dados2.equals(individualTurma.getText()) || dados2.equals(grupo.getText())) {\n // System.out.println(\"4\");\n PreparedStatement p = conexao.prepareStatement(\"UPDATE dados SET titulo='\" + titulo.getText() + \"'\"\n + \", tipo='\" + dados + \"'\"\n + \", modalidade='\" + dados2 + \"'\"\n + \", escola='\" + dados3 + \"'\"\n + \", matricula=?\"\n + \", dataProva=?\"\n + \", dataRecebimento=?\"\n + \", dataEntrega=?\"\n + \" WHERE titulo='\" + aux + \"'\"\n );\n p.clearParameters();\n p.setString(1, null);\n p.setDate(2, null);\n p.setDate(3, new java.sql.Date(dataRecebimento.getDate().getTime()));\n p.setDate(4, new java.sql.Date(dataEntrega.getDate().getTime()));\n p.executeUpdate();\n }\n }\n }\n }\n if (envio[0]) {\n if (envio[1]) {\n System.out.println(envio[1]);\n PreparedStatement s = conexao.prepareStatement(\"UPDATE dados SET logotipo= ? , brasao= ?, nomeLogotipo=?, nomeBrasao=? WHERE titulo='\" + titulo.getText() + \"'\");//conexao.createStatement();\n s.clearParameters();\n s.setBytes(1, logo);\n s.setBytes(2, brasao);\n s.setString(3, arquivo.getName());\n s.setString(4, arquivo2.getName());\n s.executeUpdate();\n } else {\n PreparedStatement s = conexao.prepareStatement(\"UPDATE dados SET logotipo= ?, brasao=? , nomeLogotipo=?, nomeBrasao=? WHERE titulo='\" + titulo.getText() + \"'\");\n s.clearParameters();\n s.setBytes(1, logo);\n s.setBytes(2, null);\n s.setString(3, arquivo.getName());\n s.setString(4, null);\n s.executeUpdate();\n }\n }\n if (dados3.equals(privada.getText())) {\n PreparedStatement s = conexao.prepareStatement(\"UPDATE dados SET brasao=?, nomeBrasao=? WHERE titulo='\" + dadosTitulo + \"'\");\n s.setBytes(1, null);\n s.setString(2, null);\n s.executeUpdate();\n }\n dispose();\n framePrincipal.setVisible(true);\n }", "public void firstTest() throws SQLException, ServicesException{\n Connection conn=getConnection();\n Statement stmt=conn.createStatement();\n Services servicios = Services.getInstance(\"h2-applicationconfig.properties\");\n PrestamoUsuario prestamo =null;\n try {\n //Insercion en BD\n stmt.execute(\"INSERT INTO ROLES(rol) values ('estudiante')\");\n stmt.execute(\"INSERT INTO USUARIOS (id,nombre,correo,contrasena) VALUES (124,'PEDRO PEREZ','[email protected]','1test1')\");\n stmt.execute(\"INSERT INTO ROLES_USUARIOS(USUARIOS_id,ROLES_rol) values (124,'estudiante')\");\n stmt.execute(\"INSERT INTO MODELOS (nombre,clase,vidaUtil,valor,seguro,foto) values ('modelo1','abcd',100,200000,true,null)\"); \n stmt.execute(\"INSERT INTO EQUIPOS (serial,nombre,placa,marca,descripcion,estado,subestados,proveedor,Modelos_nombre) VALUES (123,'Multimetro',456,'falsa','Equipo funcional y de buena calidad','activo','almacen','Leonardo Herrera','modelo1')\");\n stmt.execute(\"INSERT INTO PRESTAMOS (USUARIOS_id,EQUIPOS_serial,fechaExpedicion,fechaVencimiento,tipoPrestamo) VALUES (124,123,'2015-01-01 00:00:00',null,'prestamo diario')\");\n conn.commit();\n conn.close(); \n } catch (SQLException ex) {\n Logger.getLogger(DevolucionTest.class.getName()).log(Level.SEVERE, null, ex);\n conn.rollback();\n conn.close();\n }\n Set<PrestamoUsuario> prestamos = servicios.loadPrestamos();\n for (PrestamoUsuario p:prestamos){\n \n }\n }", "public void prepareStatements() throws SQLException {\n\t\tpstmt_updateTicket = connection.prepareStatement(\r\n\t\t \"UPDATE ticket \" +\r\n \"SET kunde = ? \" +\r\n \"WHERE tid IN (\" +\r\n \"SELECT tid FROM ticket WHERE kunde IS NULL AND auffuehrung = ? LIMIT ?)\" +\r\n \"RETURNING preis\");\r\n\t}", "public void insereDadosMySQL(String tabela, String colunas, boolean matricula, boolean data, boolean brasao2) throws IOException {\n status = true;\n ByteArrayOutputStream bytesImg = new ByteArrayOutputStream();\n ImageIO.write((BufferedImage) imagemRedimensionada, extensao, bytesImg);\n bytesImg.flush();\n byte[] logo = bytesImg.toByteArray();\n bytesImg.close();\n /**\n * Transforma a imagem do logotipo e brasao em um array de bytes para enviar ao banco de dados\n */\n byte[] brasao = null;\n if (brasao2) {\n ByteArrayOutputStream bytesImg2 = new ByteArrayOutputStream();\n ImageIO.write((BufferedImage) imagemRedimensionada2, extensao2, bytesImg2);\n bytesImg2.flush();\n brasao = bytesImg2.toByteArray();\n bytesImg2.close();\n }\n\n String[] aux = colunas.split(\",\");\n String values = \"?\";\n for (int i = 0; i < aux.length - 1; i++) {\n values += \",?\";\n }\n try {\n PreparedStatement p = conexao.prepareStatement(\"INSERT INTO \" + tabela + \"(\" + colunas + \") VALUES (\" + values + \")\");\n // System.out.println(\"INSERT INTO \" + tabela + \"(\" + colunas + \") VALUES (\" + values + \")\");\n p.setString(1, dadosTitulo);\n p.setString(2, dados);\n p.setString(3, dados2);\n p.setString(4, dados3);\n if (matricula) {\n p.setString(5, this.matricula.getText());\n if (data) {\n p.setDate(6, new java.sql.Date(dataProva.getDate().getTime()));\n p.setString(7, arquivo.getName());\n p.setBytes(8, logo);\n if (brasao2) {\n p.setString(9, arquivo2.getName());\n p.setBytes(10, brasao);\n }\n } else {\n p.setDate(6, new java.sql.Date(dataRecebimento.getDate().getTime()));\n p.setDate(7, new java.sql.Date(dataEntrega.getDate().getTime()));\n p.setString(8, arquivo.getName());\n p.setBytes(9, logo);\n if (brasao2) {\n p.setString(10, arquivo2.getName());\n p.setBytes(11, brasao);\n }\n }\n } else {\n if (data) {\n p.setDate(5, new java.sql.Date(dataProva.getDate().getTime()));\n p.setString(6, arquivo.getName());\n p.setBytes(7, logo);\n if (brasao2) {\n p.setString(8, arquivo2.getName());\n p.setBytes(9, brasao);\n }\n } else {\n p.setDate(5, new java.sql.Date(dataRecebimento.getDate().getTime()));\n p.setDate(6, new java.sql.Date(dataEntrega.getDate().getTime()));\n p.setString(7, arquivo.getName());\n p.setBytes(8, logo);\n if (brasao != null) {\n p.setString(9, arquivo2.getName());\n p.setBytes(10, brasao);\n }\n }\n }\n p.executeUpdate();\n } catch (SQLException ex) {\n System.out.println(ex.getMessage());\n // System.out.println(\"catch 2\");\n }\n }", "public void buscarxdescrip() {\r\n try {\r\n modelo.setDescripcion(vista.jTbdescripcion.getText());//C.P.M le enviamos al modelo la descripcion y consultamos\r\n rs = modelo.Buscarxdescrip();//C.P.M cachamos el resultado de la consulta\r\n\r\n DefaultTableModel buscar = new DefaultTableModel() {//C.P.M creamos el modelo de la tabla\r\n @Override\r\n public boolean isCellEditable(int rowIndex, int vColIndex) {\r\n return false;\r\n }\r\n };\r\n vista.jTbuscar.setModel(buscar);//C.P.M le mandamos el modelo a la tabla\r\n modelo.estructuraProductos(buscar);//C.P.M obtenemos la estructura de la tabla \"encabezados\"\r\n ResultSetMetaData rsMd = rs.getMetaData();//C.P.M obtenemos los metadatos de la consulta\r\n int cantidadColumnas = rsMd.getColumnCount();//C.P.M obtenemos la cantidad de columnas de la consulta\r\n while (rs.next()) {//C.P.M recorremos el resultado\r\n Object[] fila = new Object[cantidadColumnas];//C.P.M creamos un arreglo con una dimencion igual a la cantidad de columnas\r\n for (int i = 0; i < cantidadColumnas; i++) { //C.P.M lo recorremos \r\n fila[i] = rs.getObject(i + 1); //C.P.M vamos insertando los resultados dentor del arreglo\r\n }\r\n buscar.addRow(fila);//C.P.M y lo agregamos como una nueva fila a la tabla\r\n }\r\n\r\n } catch (SQLException ex) {\r\n JOptionPane.showMessageDialog(null, \"Ocurrio un error al buscar producto por descripcion\");\r\n }\r\n }", "public java.sql.ResultSet CitasActivasSoloMedico(String CodigoMedico){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"SELECT phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo,su.usu_codigo,SUBSTRING(phm.horas, 7, 3) AS jornada FROM pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes,seg_datos_personales sdp,seg_usuario su WHERE pmd.codigo = \"+CodigoMedico+\" AND phm.codMedico_fk = pmd.codigo AND pmd.codEspe_fk = pes.codigo AND phm.estado='0' AND sdp.numeroDocumento = pmd.numeroDocumento AND su.dat_codigo_fk = sdp.dat_codigo AND phm.fechas >= CURDATE() ORDER BY phm.fechas,jornada,phm.horas LIMIT 100 \");\r\n \t//System.out.println(\"SELECT ahm.codigo,ahm.horas,ahm.fechas,ahm.NombrePaciente,aes.nombre_especialidad,amd.nombre,amd.apellidos,ahm.estado,aes.codigo,amd.codigo,su.usu_codigo,SUBSTRING(ahm.horas, 7, 3) AS jornada FROM agm_horariomedico ahm,agm_medico amd,agm_especialidad aes,seg_datos_personales sdp,seg_usuario su WHERE amd.codigo = \"+CodigoMedico+\" AND ahm.codMedico_fk = amd.codigo AND amd.codEspe_fk = aes.codigo AND ahm.estado='0' AND sdp.numeroDocumento = amd.numeroDocumento AND su.dat_codigo_fk = sdp.dat_codigo AND ahm.fechas >= CURDATE() ORDER BY ahm.fechas,jornada,ahm.horas LIMIT 100 \");\r\n \t\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultapormedicofecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "public java.sql.ResultSet consultapormedicofecha2(String CodigoMedico,String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"SELECT phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo,su.usu_codigo,SUBSTRING(phm.horas,7,3) AS jornada FROM pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes,seg_datos_personales sdp,seg_usuario su WHERE pmd.codigo=\"+CodigoMedico+\" AND phm.fechas='\"+fecha+\"' AND phm.codMedico_fk = pmd.codigo AND pmd.codEspe_fk = pes.codigo AND sdp.numeroDocumento=pmd.numeroDocumento AND su.dat_codigo_fk=sdp.dat_codigo AND phm.fechas >= CURDATE() ORDER BY jornada,phm.horas \");\r\n \tSystem.out.println(\"SELECT phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo,su.usu_codigo,SUBSTRING(phm.horas,7,3) AS jornada FROM pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes,seg_datos_personales sdp,seg_usuario su WHERE pmd.codigo=\"+CodigoMedico+\" AND phm.fechas='\"+fecha+\"' AND phm.codMedico_fk = pmd.codigo AND pmd.codEspe_fk = pes.codigo AND sdp.numeroDocumento=pmd.numeroDocumento AND su.dat_codigo_fk=sdp.dat_codigo AND phm.fechas >= CURDATE() ORDER BY jornada,phm.horas \");\r\n \t\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultapormedicofecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "public List<ReporteRetencionesResumido> getRetencionSRIResumido(int mes, int anio, int idOrganizacion)\r\n/* 27: */ {\r\n/* 28: 58 */ String sql = \"SELECT new ReporteRetencionesResumido(f.fechaEmisionRetencion,f.fechaRegistro,f.fechaEmision, CONCAT(f.establecimiento,'-',f.puntoEmision,'-',f.numero),\\tf.identificacionProveedor,c.descripcion,CASE WHEN c.tipoConceptoRetencion = :tipoConceptoFUENTE then (SUM(COALESCE(dfp.baseImponibleRetencion, 0)+COALESCE(dfp.baseImponibleTarifaCero, 0) +COALESCE(dfp.baseImponibleDiferenteCero, 0)+COALESCE(dfp.baseImponibleNoObjetoIva, 0))) else COALESCE(dfp.baseImponibleRetencion, 0) end,dfp.porcentajeRetencion,dfp.valorRetencion,\\tc.codigo,CASE WHEN c.tipoConceptoRetencion = :tipoConceptoIVA then 'IVA' WHEN c.tipoConceptoRetencion = :tipoConceptoFUENTE then 'FUENTE' WHEN c.tipoConceptoRetencion = :tipoConceptoISD then 'ISD' else '' end,f.numeroRetencion) FROM DetalleFacturaProveedorSRI dfp INNER JOIN dfp.facturaProveedorSRI f INNER JOIN dfp.conceptoRetencionSRI c WHERE MONTH(f.fechaRegistro) =:mes\\tAND YEAR(f.fechaRegistro) =:anio AND f.estado!=:estadoAnulado AND f.indicadorSaldoInicial!=true AND f.idOrganizacion = :idOrganizacion\\tGROUP BY c.codigo,f.numero,f.puntoEmision,\\tf.establecimiento, f.identificacionProveedor,\\tc.descripcion,dfp.baseImponibleRetencion,dfp.porcentajeRetencion,dfp.valorRetencion,f.fechaEmisionRetencion,f.fechaRegistro,f.fechaEmision,f.numeroRetencion, c.tipoConceptoRetencion ORDER BY c.tipoConceptoRetencion, c.codigo \";\r\n/* 29: */ \r\n/* 30: */ \r\n/* 31: */ \r\n/* 32: */ \r\n/* 33: */ \r\n/* 34: */ \r\n/* 35: */ \r\n/* 36: */ \r\n/* 37: */ \r\n/* 38: */ \r\n/* 39: */ \r\n/* 40: */ \r\n/* 41: */ \r\n/* 42: */ \r\n/* 43: */ \r\n/* 44: */ \r\n/* 45: 75 */ Query query = this.em.createQuery(sql);\r\n/* 46: 76 */ query.setParameter(\"mes\", Integer.valueOf(mes));\r\n/* 47: 77 */ query.setParameter(\"anio\", Integer.valueOf(anio));\r\n/* 48: 78 */ query.setParameter(\"estadoAnulado\", Estado.ANULADO);\r\n/* 49: 79 */ query.setParameter(\"idOrganizacion\", Integer.valueOf(idOrganizacion));\r\n/* 50: 80 */ query.setParameter(\"tipoConceptoIVA\", TipoConceptoRetencion.IVA);\r\n/* 51: 81 */ query.setParameter(\"tipoConceptoFUENTE\", TipoConceptoRetencion.FUENTE);\r\n/* 52: 82 */ query.setParameter(\"tipoConceptoISD\", TipoConceptoRetencion.ISD);\r\n/* 53: 83 */ List<ReporteRetencionesResumido> lista = query.getResultList();\r\n/* 54: */ \r\n/* 55: 85 */ return lista;\r\n/* 56: */ }", "private void refreshData() {\n try {\n setDataSource(statement.executeQuery(\"select * from \" + sourceTableName));\n } catch (SQLException e) {\n System.err.println(\"Can't execute statement\");\n e.printStackTrace();\n }\n }", "public EstadosSql() {\r\n }", "public RespuestaBD modificarRegistro(int codigoFlujo, int secuencia, int servicioInicio, int accion, int codigoEstado, int servicioDestino, String nombreProcedimiento, String correoDestino, String enviar, String mismoProveedor, String mismomismoCliente, String estado, int caracteristica, int caracteristicaValor, int caracteristicaCorreo, String metodoSeleccionProveedor, String indCorreoCliente, String indHermana, String indHermanaCerrada, String indfuncionario, String usuarioModificacion) {\n/* 437 */ RespuestaBD rta = new RespuestaBD();\n/* */ \n/* */ try {\n/* 440 */ String s = \"update wkf_detalle set servicio_inicio=\" + servicioInicio + \",\" + \" accion=\" + accion + \",\" + \" codigo_estado=\" + codigoEstado + \",\" + \" servicio_destino=\" + ((servicioDestino == 0) ? \"null\" : Integer.valueOf(servicioDestino)) + \",\" + \" nombre_procedimiento='\" + nombreProcedimiento + \"',\" + \" correo_destino='\" + correoDestino + \"',\" + \" enviar_solicitud='\" + enviar + \"',\" + \" ind_mismo_proveedor='\" + mismoProveedor + \"',\" + \" ind_mismo_cliente='\" + mismomismoCliente + \"',\" + \" estado='\" + estado + \"',\" + \" caracteristica=\" + ((caracteristica == 0) ? \"null\" : (\"\" + caracteristica)) + \",\" + \" valor_caracteristica=\" + ((caracteristicaValor == 0) ? \"null\" : (\"\" + caracteristicaValor)) + \",\" + \" caracteristica_correo=\" + ((caracteristicaCorreo == 0) ? \"null\" : (\"\" + caracteristicaCorreo)) + \",\" + \" metodo_seleccion_proveedor=\" + ((metodoSeleccionProveedor.length() == 0) ? \"null\" : (\"'\" + metodoSeleccionProveedor + \"'\")) + \",\" + \" ind_correo_clientes=\" + ((indCorreoCliente.length() == 0) ? \"null\" : (\"'\" + indCorreoCliente + \"'\")) + \",\" + \" enviar_hermana=\" + ((indHermana.length() == 0) ? \"null\" : (\"'\" + indHermana + \"'\")) + \",\" + \" enviar_si_hermana_cerrada=\" + ((indHermanaCerrada.length() == 0) ? \"null\" : (\"'\" + indHermanaCerrada + \"'\")) + \",\" + \" ind_cliente_inicial=\" + ((indfuncionario.length() == 0) ? \"null\" : (\"'\" + indfuncionario + \"'\")) + \",\" + \" usuario_modificacion='\" + usuarioModificacion + \"',\" + \" fecha_modificacion=\" + Utilidades.getFechaBD() + \"\" + \" where\" + \" codigo_flujo=\" + codigoFlujo + \" and secuencia=\" + secuencia + \"\";\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 465 */ rta = this.dat.executeUpdate2(s);\n/* */ }\n/* 467 */ catch (Exception e) {\n/* 468 */ e.printStackTrace();\n/* 469 */ Utilidades.writeError(\"FlujoDetalleDAO:modificarRegistro \", e);\n/* 470 */ rta.setMensaje(e.getMessage());\n/* */ } \n/* 472 */ return rta;\n/* */ }", "private boolean insertarTablaRelacionadas(java.sql.Connection conn,int intCodEmp, int intCodLoc,int intCodTipDoc,int intCodDoc,int intCodCot){\r\n java.sql.Statement stmLoc;\r\n java.sql.ResultSet rstLocFacVen,rstLocIng; \r\n boolean blnRes = true;\r\n try{\r\n if(conn!=null){\r\n stmLoc = conn.createStatement();\r\n arlDatFacVen = new ArrayList();\r\n arlDatIngGen = new ArrayList();\r\n \r\n strSql=\"\";\r\n strSql+=\" SELECT a2.co_emp, a2.co_loc, a2.co_tipDoc, a2.co_doc,a3.co_reg, a3.co_itm, ABS(a3.nd_can) as nd_can \\n\";\r\n strSql+=\" FROM( \\n\";\r\n strSql+=\" SELECT co_empRelCabMovInv, co_locRelCabMovInv, co_tipDocRelCabMovInv, co_docRelCabMovInv \\n\";\r\n strSql+=\" FROM tbm_cabSegMovInv \\n\";\r\n strSql+=\" WHERE co_empRelCabMovInv=\"+intCodEmp+\" AND co_locRelCabMovInv=\"+intCodLoc+\" AND \\n\";\r\n strSql+=\" co_tipDocRelCabMovInv=\"+intCodTipDoc+\" AND co_docRelCabMovInv=\"+intCodDoc+\" \\n\";\r\n strSql+=\" ) as a1 \\n\";\r\n strSql+=\" INNER JOIN tbm_cabMovInv as a2 ON (a1.co_empRelCabMovInv=a2.co_emp AND a1.co_locRelCabMovInv=a2.co_loc AND \\n\";\r\n strSql+=\" a1.co_tipDocRelCabMovInv=a2.co_tipDoc AND a1.co_docRelCabMovInv=a2.co_doc ) \\n\";\r\n strSql+=\" INNER JOIN tbm_detMovInv as a3 ON (a2.co_emp=a3.co_emp AND a2.co_loc=a3.co_loc AND a2.co_tipDoc=a3.co_tipDoc AND a2.co_doc=a3.co_doc) \\n\";\r\n System.out.println(\"insertarTablaRelacionadas... \"+strSql);\r\n rstLocFacVen = stmLoc.executeQuery(strSql);\r\n while(rstLocFacVen.next()){\r\n arlRegFacVen = new ArrayList();\r\n arlRegFacVen.add(INT_ARL_COD_EMP_REL, rstLocFacVen.getInt(\"co_emp\"));\r\n arlRegFacVen.add(INT_ARL_COD_LOC_REL, rstLocFacVen.getInt(\"co_loc\"));\r\n arlRegFacVen.add(INT_ARL_COD_TIP_DOC_REL, rstLocFacVen.getInt(\"co_tipDoc\"));\r\n arlRegFacVen.add(INT_ARL_COD_DOC_REL, rstLocFacVen.getInt(\"co_doc\"));\r\n arlRegFacVen.add(INT_ARL_COD_REG_REL_AUX, rstLocFacVen.getInt(\"co_reg\"));\r\n arlRegFacVen.add(INT_ARL_COD_ITM_REL, rstLocFacVen.getInt(\"co_itm\"));\r\n arlRegFacVen.add(INT_ARL_CAN_REL, rstLocFacVen.getDouble(\"nd_can\"));\r\n arlRegFacVen.add(INT_ARL_COD_CAN_UTI, 0.00);\r\n arlDatFacVen.add(arlRegFacVen); \r\n }\r\n rstLocFacVen.close();\r\n rstLocFacVen=null;\r\n\r\n strSql=\"\";\r\n strSql+=\" SELECT a1.co_empRelCabMovInv, a1.co_locRelCabMovInv, a1.co_tipDocRelCabMovInv, \\n\";\r\n strSql+=\" a1.co_docRelCabMovInv,a3.co_reg as co_regRel, a3.co_itm, a3.nd_can \\n\";\r\n strSql+=\" FROM tbm_cabSegMovInv as a1 \\n\";\r\n strSql+=\" INNER JOIN tbm_cabMovInv as a2 ON (a1.co_empRelCabMovInv=a2.co_emp AND a1.co_locRelCabMovInv=a2.co_loc AND \\n\";\r\n strSql+=\" a1.co_tipDocRelCabMovInv=a2.co_tipDoc AND a1.co_docRelCabMovInv=a2.co_doc) \\n\";\r\n strSql+=\" INNER JOIN tbm_detMovInv as a3 ON (a2.co_emp=a3.co_emp AND a2.co_loc=a3.co_loc AND a2.co_tipDoc=a3.co_tipDoc AND a2.co_doc=a3.co_doc) \\n\";\r\n strSql+=\" RIGHT JOIN tbr_detMovInv as a5 ON (a2.co_emp=a5.co_empRel AND a2.co_loc=a5.co_locRel AND a2.co_tipDoc=a5.co_tipDocRel AND a2.co_doc=a5.co_docRel) \\n\";\r\n strSql+=\" WHERE a1.co_seg=(select co_seg from tbm_cabSegMovInv \\n\";\r\n strSql+=\" where co_empRelCabCotVen=\"+intCodEmp+\" and co_locRelCabCotVen=\"+intCodLoc+\" \\n\";\r\n strSql+=\" and co_cotRelCabCotVen=\"+intCodCot+\" GROUP BY co_seg ) and a3.nd_can > 0 \\n \";\r\n strSql+=\" GROUP BY a1.co_empRelCabMovInv, a1.co_locRelCabMovInv, a1.co_tipDocRelCabMovInv, \";\r\n strSql+=\" a1.co_docRelCabMovInv,a3.co_reg , a2.co_cli, a3.co_itm, a3.nd_can \";\r\n strSql+=\" ORDER BY a3.nd_can DESC \";\r\n System.out.println(\"insertarTablaRelacionadas 2 ... \"+strSql);\r\n rstLocIng = stmLoc.executeQuery(strSql);\r\n while(rstLocIng.next()){\r\n arlRegIngGen = new ArrayList();\r\n arlRegIngGen.add(INT_ARL_COD_EMP_REL, rstLocIng.getInt(\"co_empRelCabMovInv\"));\r\n arlRegIngGen.add(INT_ARL_COD_LOC_REL, rstLocIng.getInt(\"co_locRelCabMovInv\"));\r\n arlRegIngGen.add(INT_ARL_COD_TIP_DOC_REL, rstLocIng.getInt(\"co_tipDocRelCabMovInv\"));\r\n arlRegIngGen.add(INT_ARL_COD_DOC_REL, rstLocIng.getInt(\"co_docRelCabMovInv\"));\r\n arlRegIngGen.add(INT_ARL_COD_REG_REL_AUX, rstLocIng.getInt(\"co_regRel\"));\r\n arlRegIngGen.add(INT_ARL_COD_ITM_REL, rstLocIng.getInt(\"co_itm\"));\r\n arlRegIngGen.add(INT_ARL_CAN_REL, rstLocIng.getDouble(\"nd_can\"));\r\n arlRegIngGen.add(INT_ARL_COD_CAN_UTI, 0.00);\r\n arlDatIngGen.add(arlRegIngGen); \r\n }\r\n rstLocIng.close();\r\n rstLocIng=null;\r\n \r\n String strIng=\"\";\r\n for(int i=0;i<arlDatFacVen.size();i++){\r\n for(int b=0;b<arlDatIngGen.size();b++){\r\n if(objUti.getIntValueAt(arlDatFacVen, i, INT_ARL_COD_ITM_REL)==objUti.getIntValueAt(arlDatIngGen, b, INT_ARL_COD_ITM_REL)){\r\n if(objUti.getDoubleValueAt(arlDatIngGen, b, INT_ARL_CAN_REL)>objUti.getDoubleValueAt(arlDatIngGen, b, INT_ARL_COD_CAN_UTI)){\r\n strSql=\"\";\r\n strSql+=\" INSERT INTO tbr_detMovInv(co_emp,co_loc,co_tipdoc,co_doc,co_reg,st_reg, \\n\";\r\n strSql+=\" co_emprel,co_locrel,co_tipdocrel,co_docrel,co_regrel) \\n\";\r\n strSql+=\" VALUES (\"+objUti.getIntValueAt(arlDatFacVen, i, INT_ARL_COD_EMP_REL)+\",\";\r\n strSql+=\" \"+objUti.getIntValueAt(arlDatFacVen, i, INT_ARL_COD_LOC_REL)+\",\" ;\r\n strSql+=\" \"+objUti.getIntValueAt(arlDatFacVen, i, INT_ARL_COD_TIP_DOC_REL)+\",\";\r\n strSql+=\" \"+objUti.getIntValueAt(arlDatFacVen, i, INT_ARL_COD_DOC_REL)+\",\";\r\n strSql+=\" \"+objUti.getIntValueAt(arlDatFacVen, i, INT_ARL_COD_REG_REL_AUX)+\",'A', \\n\";\r\n strSql+=\" \"+objUti.getIntValueAt(arlDatIngGen, b, INT_ARL_COD_EMP_REL)+\",\";\r\n strSql+=\" \"+objUti.getIntValueAt(arlDatIngGen, b, INT_ARL_COD_LOC_REL)+\",\";\r\n strSql+=\" \"+objUti.getIntValueAt(arlDatIngGen, b, INT_ARL_COD_TIP_DOC_REL)+\",\"; \r\n strSql+=\" \"+objUti.getIntValueAt(arlDatIngGen, b, INT_ARL_COD_DOC_REL)+\",\";\r\n strSql+=\" \"+objUti.getIntValueAt(arlDatIngGen, b, INT_ARL_COD_REG_REL_AUX)+\");\";\r\n strIng+=strSql;\r\n if(objUti.getDoubleValueAt(arlDatFacVen, i, INT_ARL_CAN_REL)<=objUti.getDoubleValueAt(arlDatIngGen, b, INT_ARL_CAN_REL)){\r\n // FACTURA 5 INGRESO 10 // le sumo lo de la factura\r\n objUti.setDoubleValueAt(arlDatIngGen, b, INT_ARL_COD_CAN_UTI, (objUti.getDoubleValueAt(arlDatIngGen, b, INT_ARL_COD_CAN_UTI)+objUti.getDoubleValueAt(arlDatFacVen, i, INT_ARL_CAN_REL)));\r\n }\r\n else{\r\n //factura 10 ing 4// le sumo el ingreso\r\n objUti.setDoubleValueAt(arlDatIngGen, b, INT_ARL_COD_CAN_UTI, (objUti.getDoubleValueAt(arlDatIngGen, b, INT_ARL_COD_CAN_UTI)+objUti.getDoubleValueAt(arlDatIngGen, b, INT_ARL_CAN_REL)));\r\n }\r\n }\r\n }\r\n }\r\n }\r\n System.out.println(\"insertarTablaRelacionadas: \\n\" + strIng);\r\n stmLoc.executeUpdate(strIng);\r\n \r\n stmLoc.close();\r\n stmLoc=null;\r\n }\r\n }\r\n catch (SQLException Evt) {\r\n blnRes = false;\r\n System.err.println(\"ERROR \" + Evt.toString());\r\n objUti.mostrarMsgErr_F1(jifCnt, Evt);\r\n } \r\n catch (Exception Evt) {\r\n blnRes = false;\r\n System.err.println(\"ERROR \" + Evt.toString());\r\n objUti.mostrarMsgErr_F1(jifCnt, Evt);\r\n }\r\n return blnRes;\r\n }", "public String validarResponsableYaAsignado (DTOResponsable dtoe) throws MareException { \n UtilidadesLog.info(\"DAOZON.validarResponsableYaAsignado(DTOResponsable dtoe): Entrada\");\n StringBuffer consulta = new StringBuffer();\n Vector parametros = new Vector();\n RecordSet rs = new RecordSet();\n \n String asignado = null;\n String unidadAdministrativa = null;\n Long marca = null;\n Long canal = null;\n Long pais = null;\n\n //Recuperamos el pais, marca y canal de la Unidad Administrativa \n BelcorpService bs = UtilidadesEJB.getBelcorpService();\n\n /*if (dtoe.getIndUA().intValue() == 1) { \n consulta.append(\" SELECT pais_oid_pais PAIS, marc_oid_marc MARCA, cana_oid_cana canal \");\n consulta.append(\" FROM zon_sub_geren_venta \");\n consulta.append(\" WHERE oid_subg_vent = ? \");\n unidadAdministrativa = \"Subgerencia\";\n }*/\n if (dtoe.getIndUA().intValue() == 2){\n consulta.append(\" SELECT pais_oid_pais PAIS, marc_oid_marc MARCA, cana_oid_cana canal \");\n consulta.append(\" FROM zon_regio \");\n consulta.append(\" WHERE oid_regi = ? \");\n unidadAdministrativa = \"Region\";\n }\n if (dtoe.getIndUA().intValue() == 3){\n consulta.append(\" SELECT pais_oid_pais PAIS, marc_oid_marc MARCA, cana_oid_cana canal \");\n consulta.append(\" FROM zon_zona \");\n consulta.append(\" WHERE oid_zona = ? \");\n unidadAdministrativa = \"Zona\";\n }\n /*if (dtoe.getIndUA().intValue() == 4){\n consulta.append(\" SELECT zon.pais_oid_pais PAIS, zon.marc_oid_marc MARCA, zon.cana_oid_cana canal \");\n consulta.append(\" FROM zon_zona zon, zon_secci sec \");\n consulta.append(\" WHERE sec.zzon_oid_zona = zon.oid_zona \"); \n consulta.append(\" AND sec.oid_secc = ? \");\n unidadAdministrativa = \"Seccion\"; \n }*/\n parametros.add(dtoe.getOidUA());\n \n try {\n rs = bs.dbService.executePreparedQuery(consulta.toString(), parametros);\n UtilidadesLog.debug(\"rs: \" + rs);\n } catch (Exception e) {\n codigoError = CodigosError.ERROR_DE_ACCESO_A_BASE_DE_DATOS;\n throw new MareException(e, UtilidadesError.armarCodigoError(codigoError));\n }\n\n if (rs.esVacio()) {\n UtilidadesLog.debug(\"****DAOZON.validarResponsableYaAsignado: No existe Unidad Administrativa \");\t\t\t\t\n String sCodigoError = CodigosError.ERROR_DE_PETICION_DE_DATOS_NO_EXISTENTE;\n throw new MareException(new Exception(), UtilidadesError.armarCodigoError(sCodigoError));\n } else {\n pais = new Long(((BigDecimal)rs.getValueAt(0,\"PAIS\")).longValue());\n marca = new Long(((BigDecimal)rs.getValueAt(0,\"MARCA\")).longValue());\n canal = new Long(((BigDecimal)rs.getValueAt(0,\"CANAL\")).longValue());\n }\n\n //Buscamos si el cliente es responsable en otra unidad administrativa\n //para el pais, marca y canal de la unidad administrativa a asignar\n parametros = new Vector(); \n consulta = new StringBuffer();\n /*consulta.append(\" SELECT 'SubGerencia: ' || zon_sub_geren_venta.des_subg_vent DESCUNIDADADMIN \");\n consulta.append(\" FROM zon_sub_geren_venta, mae_clien \");\n consulta.append(\" WHERE mae_clien.oid_clie = zon_sub_geren_venta.clie_oid_clie \"); \n consulta.append(\" AND mae_clien.oid_clie = ? \");\n parametros.add(dtoe.getOidResponsable());\n consulta.append(\" AND zon_sub_geren_venta.pais_oid_pais = ? \");\n parametros.add(pais);\n consulta.append(\" AND zon_sub_geren_venta.marc_oid_marc = ? \");\n parametros.add(marca);\n consulta.append(\" AND zon_sub_geren_venta.cana_oid_cana = ? \");\n parametros.add(canal);\n consulta.append(\" AND zon_sub_geren_venta.ind_borr = 0 \");\n\n consulta.append(\" UNION \");*/\n \n consulta.append(\" SELECT 'Region: ' || zon_regio.des_regi DESCUNIDADADMIN \");\n consulta.append(\" FROM mae_clien, zon_sub_geren_venta, zon_regio \");\n consulta.append(\" WHERE mae_clien.oid_clie = zon_regio.clie_oid_clie \");\n consulta.append(\" AND mae_clien.oid_clie = ? \");\n parametros.add(dtoe.getOidResponsable());\n consulta.append(\" AND zon_regio.zsgv_oid_subg_vent = zon_sub_geren_venta.oid_subg_vent \");\n consulta.append(\" AND zon_sub_geren_venta.pais_oid_pais = ? \");\n parametros.add(pais);\n consulta.append(\" AND zon_sub_geren_venta.marc_oid_marc = ? \");\n parametros.add(marca);\n consulta.append(\" AND zon_sub_geren_venta.cana_oid_cana = ? \");\n parametros.add(canal);\n consulta.append(\" AND zon_sub_geren_venta.ind_borr = 0 \");\n consulta.append(\" AND zon_regio.ind_borr = 0 \");\n \n consulta.append(\" UNION \");\n \n consulta.append(\" SELECT 'Zona: ' || zon_zona.des_zona DESCUNIDADADMIN \");\n consulta.append(\" FROM zon_sub_geren_venta, zon_regio, zon_zona, mae_clien \");\n consulta.append(\" WHERE zon_zona.clie_oid_clie = mae_clien.oid_clie \");\n consulta.append(\" AND mae_clien.oid_clie = ? \");\n parametros.add(dtoe.getOidResponsable());\n consulta.append(\" AND zon_sub_geren_venta.pais_oid_pais = ? \");\n parametros.add(pais);\n consulta.append(\" AND zon_sub_geren_venta.marc_oid_marc = ? \");\n parametros.add(marca);\n consulta.append(\" AND zon_sub_geren_venta.cana_oid_cana = ? \");\n parametros.add(canal);\n consulta.append(\" AND zon_regio.zsgv_oid_subg_vent = zon_sub_geren_venta.oid_subg_vent \");\n consulta.append(\" AND zon_zona.zorg_oid_regi = zon_regio.oid_regi \");\n consulta.append(\" AND zon_zona.ind_borr = 0 \");\n consulta.append(\" AND zon_sub_geren_venta.ind_borr = 0 \");\n consulta.append(\" AND zon_regio.ind_borr = 0 \");\n \n /*consulta.append(\" UNION \");\n \n consulta.append(\" SELECT 'Seccion: ' || zon_secci.des_secci DESCUNIDADADMIN \");\n consulta.append(\" FROM zon_sub_geren_venta, zon_regio, \");\n consulta.append(\" zon_zona, zon_secci, mae_clien \");\n consulta.append(\" WHERE zon_secci.clie_oid_clie = mae_clien.oid_clie \");\n consulta.append(\" AND mae_clien.oid_clie = ? \");\n parametros.add(dtoe.getOidResponsable());\n consulta.append(\" AND zon_sub_geren_venta.pais_oid_pais = ? \");\n parametros.add(pais);\n consulta.append(\" AND zon_sub_geren_venta.marc_oid_marc = ? \");\n parametros.add(marca);\n consulta.append(\" AND zon_sub_geren_venta.cana_oid_cana = ? \");\n parametros.add(canal);\n consulta.append(\" AND zon_regio.zsgv_oid_subg_vent = zon_sub_geren_venta.oid_subg_vent \");\n consulta.append(\" AND zon_zona.zorg_oid_regi = zon_regio.oid_regi \");\n consulta.append(\" AND zon_secci.zzon_oid_zona = zon_zona.oid_zona \"); \n consulta.append(\" AND zon_secci.ind_borr = 0 \");\n consulta.append(\" AND zon_zona.ind_borr = 0 \");\n consulta.append(\" AND zon_sub_geren_venta.ind_borr = 0 \");\n consulta.append(\" AND zon_regio.ind_borr = 0 \");*/\n\n try {\n rs = bs.dbService.executePreparedQuery(consulta.toString(), parametros);\n UtilidadesLog.debug(\"rs: \" + rs);\n } catch (Exception e) {\n codigoError = CodigosError.ERROR_DE_ACCESO_A_BASE_DE_DATOS;\n throw new MareException(e, UtilidadesError.armarCodigoError(codigoError));\n }\n\n if (rs.esVacio()) {\n UtilidadesLog.debug(\"****DAOZON.validarResponsableYaAsignado: No hay datos \");\t\t\t\t\n }\n else {\n UtilidadesLog.debug(\"****DAOZON.validarResponsableYaAsignado: se encontro al menos un cliente \");\t\t\t\t\n asignado = rs.getValueAt(0,\"DESCUNIDADADMIN\").toString();\n }\n \n UtilidadesLog.info(\"DAOZON.validarResponsableYaAsignado(DTOResponsable dtoe): Salida\"); \n \n return asignado;\n }", "public List<Object[]> getRetencionesAnuladas(int mes, int anio, int idOrganizacion, Sucursal sucursalFP, Sucursal sucursalRetencion, PuntoDeVenta puntoVentaRetencion, String orden, TipoComprobanteSRI tipoComprobante)\r\n/* 125: */ {\r\n/* 126:175 */ StringBuilder sql = new StringBuilder();\r\n/* 127: */ \r\n/* 128:177 */ sql.append(\" SELECT a.fechaEmisionDocumento, f.fechaRegistro, f.fechaEmision, CONCAT(f.establecimiento,'-',f.puntoEmision,'-',f.numero), f.identificacionProveedor, \");\r\n/* 129: */ \r\n/* 130:179 */ sql.append(\" \\t'', f.montoIva*0, f.montoIva*0, f.montoIva*0, '', '', \");\r\n/* 131: */ \r\n/* 132:181 */ sql.append(\" \\tCONCAT(a.establecimiento,'-',a.puntoEmision,'-',a.numeroDesde), f.montoIva*0, f.montoIva*0, f.montoIva*0, f.nombreProveedor, \");\r\n/* 133: */ \r\n/* 134:183 */ sql.append(\"\\tf.montoIva*0, f.montoIva*0, '', a.autorizacion, f.fechaRegistro, f.autorizacion, '', 'ANULADO', f.idFacturaProveedorSRI,'' \");\r\n/* 135:184 */ sql.append(\" FROM AnuladoSRI a, FacturaProveedorSRI f \");\r\n/* 136:185 */ sql.append(\" WHERE a.documentoRelacionado = f.idFacturaProveedorSRI \");\r\n/* 137:186 */ sql.append(\" AND a.tipoComprobanteSRI = :tipoComprobante \");\r\n/* 138:187 */ sql.append(\" AND a.anio = :anio AND a.mes = :mes \");\r\n/* 139:188 */ sql.append(\" AND a.idOrganizacion = :idOrganizacion \");\r\n/* 140:189 */ if (sucursalFP != null) {\r\n/* 141:190 */ sql.append(\" AND f.idSucursal = :idSucursal \");\r\n/* 142: */ }\r\n/* 143:192 */ if (sucursalRetencion != null) {\r\n/* 144:193 */ sql.append(\" AND a.establecimiento = :sucursalRetencion \");\r\n/* 145: */ }\r\n/* 146:195 */ if (puntoVentaRetencion != null) {\r\n/* 147:196 */ sql.append(\" AND a.puntoEmision = :puntoVentaRetencion \");\r\n/* 148: */ }\r\n/* 149:198 */ Query query = this.em.createQuery(sql.toString());\r\n/* 150:199 */ query.setParameter(\"mes\", Integer.valueOf(mes));\r\n/* 151:200 */ query.setParameter(\"anio\", Integer.valueOf(anio));\r\n/* 152:201 */ query.setParameter(\"idOrganizacion\", Integer.valueOf(idOrganizacion));\r\n/* 153:202 */ query.setParameter(\"tipoComprobante\", tipoComprobante);\r\n/* 154:203 */ if (sucursalFP != null) {\r\n/* 155:204 */ query.setParameter(\"idSucursal\", Integer.valueOf(sucursalFP.getId()));\r\n/* 156: */ }\r\n/* 157:206 */ if (sucursalRetencion != null) {\r\n/* 158:207 */ query.setParameter(\"sucursalRetencion\", sucursalRetencion.getCodigo());\r\n/* 159: */ }\r\n/* 160:209 */ if (puntoVentaRetencion != null) {\r\n/* 161:210 */ query.setParameter(\"puntoVentaRetencion\", puntoVentaRetencion.getCodigo());\r\n/* 162: */ }\r\n/* 163:213 */ return query.getResultList();\r\n/* 164: */ }", "public Produto consultarProduto(Produto produto) {\r\n ConexaoBDJavaDB conexaoBD = new ConexaoBDJavaDB(\"routeexpress\");\r\n Connection conn = null;\r\n PreparedStatement stmt = null;\r\n ResultSet rs = null;\r\n Produto cerveja = null;\r\n String sql = \"SELECT TBL_CERVEJARIA.ID_CERVEJARIA, TBL_CERVEJARIA.CERVEJARIA, TBL_CERVEJARIA.PAIS, \"\r\n + \"TBL_CERVEJA.ID_CERVEJA, TBL_CERVEJA.ID_CERVEJARIA AS \\\"FK_CERVEJARIA\\\", \"\r\n + \"TBL_CERVEJA.ROTULO, TBL_CERVEJA.PRECO, TBL_CERVEJA.VOLUME, TBL_CERVEJA.TEOR, TBL_CERVEJA.COR, TBL_CERVEJA.TEMPERATURA, \"\r\n + \"TBL_CERVEJA.FAMILIA_E_ESTILO, TBL_CERVEJA.DESCRICAO, TBL_CERVEJA.SABOR, TBL_CERVEJA.IMAGEM_1, TBL_CERVEJA.IMAGEM_2, TBL_CERVEJA.IMAGEM_3 \"\r\n + \"FROM TBL_CERVEJARIA \"\r\n + \"INNER JOIN TBL_CERVEJA \"\r\n + \"ON TBL_CERVEJARIA.ID_CERVEJARIA = TBL_CERVEJA.ID_CERVEJARIA \"\r\n + \"WHERE ID_CERVEJA = ?\";\r\n try {\r\n conn = conexaoBD.obterConexao();\r\n stmt = conn.prepareStatement(sql);\r\n stmt.setInt(1, produto.getIdCerveja());\r\n rs = stmt.executeQuery();\r\n if (rs.next()) {\r\n cerveja = new Produto();\r\n cerveja.setIdCervejaria(rs.getInt(\"ID_CERVEJARIA\"));\r\n cerveja.setCervejaria(rs.getString(\"CERVEJARIA\"));\r\n cerveja.setPais(rs.getString(\"PAIS\"));\r\n cerveja.setIdCerveja(rs.getInt(\"ID_CERVEJA\"));\r\n cerveja.setIdFkCervajaria(rs.getInt(\"FK_CERVEJARIA\"));\r\n cerveja.setRotulo(rs.getString(\"ROTULO\"));\r\n cerveja.setPreco(rs.getString(\"PRECO\"));\r\n cerveja.setVolume(rs.getString(\"VOLUME\"));\r\n cerveja.setTeor(rs.getString(\"TEOR\"));\r\n cerveja.setCor(rs.getString(\"COR\"));\r\n cerveja.setTemperatura(rs.getString(\"TEMPERATURA\"));\r\n cerveja.setFamiliaEEstilo(rs.getString(\"FAMILIA_E_ESTILO\"));\r\n cerveja.setDescricao(rs.getString(\"DESCRICAO\"));\r\n cerveja.setSabor(rs.getString(\"SABOR\"));\r\n cerveja.setImagem1(rs.getString(\"IMAGEM_1\"));\r\n cerveja.setImagem2(rs.getString(\"IMAGEM_2\"));\r\n cerveja.setImagem3(rs.getString(\"IMAGEM_3\"));\r\n } else {\r\n return cerveja;\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (ClassNotFoundException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n if (conn != null) {\r\n try {\r\n conn.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (stmt != null) {\r\n try {\r\n stmt.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (rs != null) {\r\n try {\r\n rs.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }\r\n return cerveja;\r\n }", "@SuppressWarnings(\"unchecked\")\n public void consultarCoactivosXLS() throws CirculemosNegocioException {\n\n // consulta la tabla temporal de los 6000 coactivos\n StringBuilder sql = new StringBuilder();\n\n sql.append(\"select [TIPO DOC], [NUMERO DE IDENTIFICACIÓN], [valor multas], [titulo valor], proceso \");\n sql.append(\"from coactivos_xls \");\n sql.append(\"where id_tramite is null and numero_axis is null AND archivo is not null \");\n sql.append(\"AND [titulo valor] IN ('2186721','2187250','2187580','2186845')\");\n\n Query query = em.createNativeQuery(sql.toString());\n\n List<Object[]> listaResultados = Utilidades.safeList(query.getResultList());\n\n Date fechaCoactivo = UtilFecha.buildCalendar().getTime();\n CoactivoDTO coactivoDTOs;\n TipoIdentificacionPersonaDTO tipoIdentificacion;\n List<ObligacionCoactivoDTO> obligacionesCoactivoDTO;\n PersonaDTO personaDTO;\n ProcesoDTO proceso;\n // persiste los resultados en coactivoDTO\n for (Object[] coactivo : listaResultados) {\n coactivoDTOs = new CoactivoDTO();\n // persiste el tipo de indetificacion en TipoIdentificacionPersonaDTO\n personaDTO = new PersonaDTO();\n proceso = new ProcesoDTO();\n tipoIdentificacion = new TipoIdentificacionPersonaDTO();\n obligacionesCoactivoDTO = new ArrayList<>();\n\n tipoIdentificacion.setCodigo((String) coactivo[0]);\n personaDTO.setTipoIdentificacion(tipoIdentificacion);\n coactivoDTOs.setPersona(personaDTO);\n coactivoDTOs.getPersona().setNumeroIdentificacion((String) coactivo[1]);\n\n proceso.setFechaInicio(fechaCoactivo);\n coactivoDTOs.setProceso(proceso);\n coactivoDTOs.setValorTotalObligaciones(BigDecimal\n .valueOf(Double.valueOf(coactivo[2].toString().replaceAll(\"\\\\.\", \"\").replaceAll(\",\", \".\"))));\n coactivoDTOs.setValorTotalCostasProcesales(\n coactivoDTOs.getValorTotalObligaciones().multiply(BigDecimal.valueOf(0.05)));\n coactivoDTOs.getProceso().setObservacion(\"COACTIVO\");\n String[] numeroFactura = coactivo[3].toString().split(\",\");\n // separa los numeros de factura cuando viene mas de uno.\n for (String nFactura : numeroFactura) {\n // consulta por numero de factura el el saldo a capital por cada factura\n sql = new StringBuilder();\n sql.append(\"select nombre, saldo_capital, saldo_interes \");\n sql.append(\"from cartera_coactivos_xls \");\n sql.append(\"where nombre = :nFactura\");\n\n Query quer = em.createNativeQuery(sql.toString());\n\n quer.setParameter(\"nFactura\", nFactura);\n\n List<Object[]> result = Utilidades.safeList(quer.getResultList());\n // persiste las obligaciones consultadas y las inserta en ObligacionCoactivoDTO\n ObligacionCoactivoDTO obligaciones;\n for (Object[] obligacion : result) {\n obligaciones = new ObligacionCoactivoDTO();\n obligaciones.setNumeroObligacion((String) obligacion[0]);\n obligaciones.setValorObligacion(BigDecimal.valueOf(\n Double.valueOf(obligacion[1].toString().replaceAll(\"\\\\.\", \"\").replaceAll(\",\", \".\"))));\n obligaciones.setValorInteresMoratorios(BigDecimal.valueOf(\n Double.valueOf(obligacion[2].toString().replaceAll(\"\\\\.\", \"\").replaceAll(\",\", \".\"))));\n // Adiciona las obligaciones a una lista\n obligacionesCoactivoDTO.add(obligaciones);\n }\n\n }\n coactivoDTOs.setObligacionCoactivos(obligacionesCoactivoDTO);\n try {\n iLCoactivo.registrarCoactivoAxis(coactivoDTOs, coactivo[4].toString());\n } catch (Exception e) {\n logger.error(\"Error al registrar coactivo 6000 :\", e);\n }\n }\n }", "private void executeQuery() {\n }", "@Override\n\tpublic void prepare() throws Exception {\n\t\tsuper.prepare();\n\t\t//setto il titolo:\n\t\tthis.model.setTitolo(\"Quote ordinativo\");\n\t\t\n }", "public List<ReporteComprasVentasRetenciones> getReporteCompras(int mes, int anio, int idOrganizacion)\r\n/* 167: */ {\r\n/* 168:227 */ StringBuffer sql = new StringBuffer();\r\n/* 169: */ \r\n/* 170:229 */ sql.append(\" SELECT new ReporteComprasVentasRetenciones(tc.codigo, tc.nombre, COUNT(tc.codigo), \");\r\n/* 171:230 */ sql.append(\" (CASE WHEN tc.codigo = '04' THEN -SUM(fps.baseImponibleTarifaCero) ELSE SUM(fps.baseImponibleTarifaCero) END), \");\r\n/* 172:231 */ sql.append(\" (CASE WHEN tc.codigo = '04' THEN -SUM(fps.baseImponibleDiferenteCero) ELSE SUM(fps.baseImponibleDiferenteCero) END), \");\r\n/* 173:232 */ sql.append(\" (CASE WHEN tc.codigo = '04' THEN -SUM(fps.baseImponibleNoObjetoIva) ELSE SUM(fps.baseImponibleNoObjetoIva) END), \");\r\n/* 174:233 */ sql.append(\" (CASE WHEN tc.codigo = '04' THEN -SUM(fps.montoIva) ELSE SUM(fps.montoIva) END), 'Compras',ct.codigo,ct.nombre) \");\r\n/* 175:234 */ sql.append(\" FROM FacturaProveedorSRI fps \");\r\n/* 176:235 */ sql.append(\" LEFT OUTER JOIN fps.tipoComprobanteSRI tc \");\r\n/* 177:236 */ sql.append(\" LEFT OUTER JOIN fps.creditoTributarioSRI ct\");\r\n/* 178:237 */ sql.append(\" WHERE MONTH(fps.fechaRegistro) =:mes \");\r\n/* 179:238 */ sql.append(\" AND YEAR(fps.fechaRegistro) =:anio \");\r\n/* 180:239 */ sql.append(\" AND fps.estado!=:estadoAnulado \");\r\n/* 181:240 */ sql.append(\" AND fps.indicadorSaldoInicial!=true \");\r\n/* 182:241 */ sql.append(\" AND fps.idOrganizacion = :idOrganizacion \");\r\n/* 183:242 */ sql.append(\" GROUP BY tc.codigo, tc.nombre,ct.codigo,ct.nombre\");\r\n/* 184:243 */ sql.append(\" ORDER BY tc.codigo, tc.nombre \");\r\n/* 185: */ \r\n/* 186:245 */ Query query = this.em.createQuery(sql.toString());\r\n/* 187:246 */ query.setParameter(\"mes\", Integer.valueOf(mes));\r\n/* 188:247 */ query.setParameter(\"anio\", Integer.valueOf(anio));\r\n/* 189:248 */ query.setParameter(\"estadoAnulado\", Estado.ANULADO);\r\n/* 190:249 */ query.setParameter(\"idOrganizacion\", Integer.valueOf(idOrganizacion));\r\n/* 191: */ \r\n/* 192:251 */ return query.getResultList();\r\n/* 193: */ }", "private void tampil() {\n int row=tabmode.getRowCount();\n for (int i=0;i<row;i++){\n tabmode.removeRow(0);\n }\n try {\n Connection koneksi=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/medica\",\"root\",\"\");\n ResultSet rs=koneksi.createStatement().executeQuery(\"select rawat_inap_bayi.no, pasien_bayi.tgl_lahir, rawat_inap_bayi.tgl_masuk, rawat_inap_bayi.tgl_pulang, rawat_inap_bayi.lama, kamar.nm_kamar, penyakit.nama_penyakit, dokter.nm_dokter, tindakan.nama_tindakan, rawat_inap_bayi.suhu_tubuh, rawat_inap_bayi.resusitas, rawat_inap_bayi.hasil, rawat_inap_bayi.keterangan, rawat_inap_bayi.apgar \"+\n \" from rawat_inap_bayi inner join pasien_bayi on rawat_inap_bayi.no_rm_bayi=pasien_bayi.no_rm_bayi inner join kamar on rawat_inap_bayi.kd_kamar=kamar.kd_kamar inner join penyakit on rawat_inap_bayi.kd_icd = penyakit.kd_icd inner join dokter on rawat_inap_bayi.kd_dokter = dokter.kd_dokter inner join tindakan on rawat_inap_bayi.kode_tindakan = tindakan.kode_tindakan \");\n while(rs.next()){\n String[] data={rs.getString(1),rs.getString(2),rs.getString(3),rs.getString(4),rs.getString(5),rs.getString(6),rs.getString(7),rs.getString(8),rs.getString(9),rs.getString(10),rs.getString(11),rs.getString(12),rs.getString(13),rs.getString(14)};\n tabmode.addRow(data);\n }\n } catch (SQLException ex) {\n System.out.println(ex);\n }\n \n }", "public RecordSet obtenerResumen(DTOResumen dtoe) throws MareException{\n UtilidadesLog.info(\"DAOParametrizacionCOB.obtenerResumen(DTOResumen dtoe): Entrada\");\n \n RecordSet rs = new RecordSet();\n StringBuffer query = new StringBuffer();\n BelcorpService bs;\n try\n { bs = BelcorpService.getInstance();\n }\n catch(MareMiiServiceNotFoundException ex)\n { throw new MareException(ex, UtilidadesError.armarCodigoError(CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE));\n } \n /*query.append(\" SELECT distinct p.IDPRINCIPAL AS OID,CONCAT(p.name,CONCAT(' ',CONCAT(pv.STRINGVALUE,CONCAT(' ',CONCAT(pv2.STRINGVALUE,CONCAT(' ',CONCAT(pv3.STRINGVALUE,CONCAT(' ',pv4.STRINGVALUE)))))))) NOMBRE, \");\n query.append(\" gen.VAL_I18N AS CANAL, \");\n query.append(\" sma.DES_MARC AS MARCA, \"); \n query.append(\" subvta.DES_SUBG_VENT AS SUBGERVENTA, \");\n query.append(\" gen2.VAL_I18N AS REGION, \");\n query.append(\" gen3.VAL_I18N AS ZONA, \");\n query.append(\" secc.DES_SECCI AS SECCION, \");\n query.append(\" gen5.VAL_I18N AS TERRITORIO \");\n query.append(\" FROM v_gen_i18n_sicc gen, \");\n query.append(\" v_gen_i18n_sicc gen2, \");\n query.append(\" v_gen_i18n_sicc gen3, \");\n query.append(\" v_gen_i18n_sicc gen5, \");\n query.append(\" seg_marca sma, \");\n query.append(\" zon_secci secc, \");\n query.append(\" cob_usuar_etapa_cobra_detal cdetal, \");\n query.append(\" zon_sub_geren_venta subvta, \");\n query.append(\" cob_usuar_etapa_cobra_cabec ccabe, \");\n query.append(\" cob_usuar_cobra usucob, \");\n query.append(\" own_mare.principals p, \");\n query.append(\" propertyvalues pv, \");\n query.append(\" propertyvalues pv2, \");\n query.append(\" propertyvalues pv3, \");\n query.append(\" propertyvalues pv4, \");\n query.append(\" own_mare.users u \");\n query.append(\" WHERE cdetal.zsgv_oid_subg_vent = subvta.oid_subg_vent \");\n query.append(\" AND ccabe.oid_usua_etap_cobr = cdetal.oid_usua_etap_cobr_deta \");\n query.append(\" AND secc.oid_secc(+) = cdetal.zscc_oid_secc \");\n query.append(\" AND sma.oid_marc = subvta.marc_oid_marc \");\n query.append(\" AND ccabe.usco_oid_usua_cobr = usucob.oid_usua_cobr \");\n query.append(\" AND gen.val_oid = subvta.cana_oid_cana \");\n query.append(\" AND gen.attr_enti = 'SEG_CANAL' \");\n query.append(\" AND gen.attr_num_atri = 1 \");\n query.append(\" AND gen.idio_oid_idio = '\" + dtoe.getOidIdioma() + \" ' \");\n query.append(\" AND pv.idproperty(+) = 2 \");\n query.append(\" AND pv.idprincipal(+) = p.idprincipal \");\n query.append(\" AND pv2.idproperty(+) = 3 \");\n query.append(\" AND pv2.idprincipal(+) = p.idprincipal \");\n query.append(\" AND pv3.idproperty = 5 \");\n query.append(\" AND pv3.idprincipal = p.idprincipal \");\n query.append(\" AND pv4.idproperty = 6 \");\n query.append(\" AND pv4.idprincipal = p.idprincipal \");\n query.append(\" AND gen2.val_oid(+) = '\" + dtoe.getOidIdioma() + \" ' \");\n query.append(\" AND gen2.attr_enti(+) = 'ZON_REGIO' \");\n query.append(\" AND gen2.attr_num_atri(+) = 1 \");\n query.append(\" AND gen2.idio_oid_idio(+) = '\" + dtoe.getOidIdioma() + \" ' \");\n query.append(\" AND gen3.val_oid(+) = cdetal.zzon_oid_zona \");\n query.append(\" AND gen3.attr_enti(+) = 'ZON_ZONA' \");\n query.append(\" AND gen3.attr_num_atri(+) = 1 \");\n query.append(\" AND gen3.idio_oid_idio(+) = '\" + dtoe.getOidIdioma() + \" ' \");\n query.append(\" AND gen5.val_oid(+) = cdetal.terr_oid_terr \");\n query.append(\" AND gen5.attr_enti(+) = 'ZON_TERRI' \");\n query.append(\" AND gen5.attr_num_atri(+) = 1 \");\n query.append(\" AND gen5.idio_oid_idio(+) = '\" + dtoe.getOidIdioma() + \" ' \");\n query.append(\" AND u.iduser = p.idprincipal \");\n query.append(\" AND p.idprincipal = ccabe.usco_oid_usua_cobr \");\n */\n \n /*query.append(\" SELECT distinct p.IDPRINCIPAL AS OID, \");\n query.append(\" p.name AS USUARIO, \");\n */\n //Se le agega \"p.IDPRINCIPAL,\" segun BELC300017927 \n //query.append(\" SELECT distinct p.name AS USUARIO, \"); \n query.append(\" SELECT distinct p.IDPRINCIPAL, p.name AS USUARIO, \");\n query.append(\" CONCAT(p.name,CONCAT(' ',CONCAT(pv.STRINGVALUE,CONCAT(' ',CONCAT(pv2.STRINGVALUE,CONCAT(' ',CONCAT(pv3.STRINGVALUE,CONCAT(' ',pv4.STRINGVALUE)))))))) NOMBRE, \");\n query.append(\" sma.DES_MARC AS MARCA, \");\n query.append(\" gen.VAL_I18N AS CANAL, \"); \n query.append(\" subvta.DES_SUBG_VENT AS SUBGERVENTA, \");\n query.append(\" regio.DES_REGI AS REGION, \");\n query.append(\" zona.DES_ZONA AS ZONA, \"); \n \t query.append(\" secc.DES_SECCI AS SECCION, \"); \n query.append(\" terri.COD_TERR AS TERRITORIO \");\n query.append(\" FROM v_gen_i18n_sicc gen, \");\n query.append(\" SEG_CANAL canal, \");\n query.append(\" ZON_TERRI terri, \");\n query.append(\" ZON_ZONA zona, \");\n query.append(\" ZON_REGIO regio, \");\n query.append(\" seg_marca sma, \");\n query.append(\" zon_secci secc, \");\n query.append(\" cob_usuar_etapa_cobra_detal cdetal, \");\n query.append(\" zon_sub_geren_venta subvta, \");\n query.append(\" cob_usuar_etapa_cobra_cabec ccabe, \");\n query.append(\" cob_usuar_cobra usucob, \");\n query.append(\" principals p, \");\n query.append(\" propertyvalues pv, \");\n query.append(\" propertyvalues pv2, \");\n query.append(\" propertyvalues pv3, \");\n query.append(\" propertyvalues pv4, \");\n query.append(\" users u \");\n query.append(\" WHERE cdetal.zsgv_oid_subg_vent = subvta.oid_subg_vent \");\n query.append(\" AND ccabe.oid_usua_etap_cobr = cdetal.UECC_OID_USUA_ETAP_COBR \");\n query.append(\" AND secc.oid_secc(+) = cdetal.zscc_oid_secc \");\n query.append(\" AND sma.oid_marc = subvta.marc_oid_marc \");\n query.append(\" AND ccabe.usco_oid_usua_cobr = usucob.oid_usua_cobr \");\n query.append(\" AND gen.val_oid = subvta.cana_oid_cana \");\n query.append(\" AND gen.attr_enti = 'SEG_CANAL' \");\n query.append(\" AND gen.attr_num_atri = 1 \");\n query.append(\" AND gen.idio_oid_idio = '1' \");\n query.append(\" AND pv.idproperty(+) = 2 \");\n query.append(\" AND pv.idprincipal(+) = p.idprincipal \");\n query.append(\" AND pv2.idproperty(+) = 3 \");\n query.append(\" AND pv2.idprincipal(+) = p.idprincipal \");\n query.append(\" AND pv3.idproperty = 5 \");\n query.append(\" AND pv3.idprincipal = p.idprincipal \");\n query.append(\" AND pv4.idproperty = 6 \");\n query.append(\" AND pv4.idprincipal = p.idprincipal \t\t \");\n query.append(\" AND terri.OID_TERR = cdetal.terr_oid_terr\t\t \");\n query.append(\" AND zona.OID_ZONA = cdetal.zzon_oid_zona\t\t \");\n query.append(\" AND regio.OID_REGI = cdetal.ZORG_OID_REGI\t\t \");\n query.append(\" AND u.iduser = p.idprincipal \");\n query.append(\" AND p.idprincipal = usucob.USER_OID_USUA_COBR \");\n \n /* Validaciones */\n if( dtoe.getOidMarca()!= null ){\n query.append(\" AND subvta.MARC_OID_MARC = \" + dtoe.getOidMarca() );\n }\n if( dtoe.getOidCanal() != null){\n query.append(\" AND subvta.CANA_OID_CANA = \" + dtoe.getOidCanal() );\n }\n if( dtoe.getOidSGV() != null ){\n query.append(\" AND subvta.OID_SUBG_VENT = \" + dtoe.getOidSGV() );\n }\n if( dtoe.getOidRegion() != null ){\n query.append(\" AND cdetal.ZORG_OID_REGI = \" + dtoe.getOidRegion() ); \n }\n if( dtoe.getOidZona() != null ){\n query.append(\" AND cdetal.ZZON_OID_ZONA = \" + dtoe.getOidZona() ); \n }\n if( dtoe.getOidSeccion() != null ){\n query.append(\" AND cdetal.ZSCC_OID_SECC = \" + dtoe.getOidSeccion() );\n }\n if( dtoe.getOidTerritorio() != null ){\n query.append(\" AND cdetal.TERR_OID_TERR = \" + dtoe.getOidTerritorio() );\n }\n UtilidadesLog.debug(\"query \" + query.toString() );\n try \n { rs = bs.dbService.executeStaticQuery(query.toString());\n }\n catch (Exception ex) \n { throw new MareException(ex, UtilidadesError.armarCodigoError(CodigosError.ERROR_DE_ACCESO_A_BASE_DE_DATOS));\n }\t\n \n UtilidadesLog.info(\"DAOParametrizacionCOB.obtenerResumen(DTOResumen dtoe): Salida\");\n \n return rs; \n }", "private boolean generarEgresoMercaderiaReservada(java.sql.Connection conExt, int CodEmp,int CodLoc,int CodCot){\n boolean blnRes=false;\n java.sql.Statement stmLoc;\n java.sql.ResultSet rstLoc;\n ArrayList arlResDat, arlResReg;\n try{\n if(conExt!=null){\n stmLoc=conExt.createStatement();\n arlResDat = new ArrayList();\n strSql=\"\";\n strSql+=\" SELECT a1.co_emp, a1.co_loc, a1.co_cot, a2.co_reg, a2.co_itm, a2.co_bod, a2.nd_can, \\n\";\n strSql+=\" CASE WHEN a3.nd_cosUni IS NULL THEN 0 ELSE a3.nd_cosUni END as nd_cosUni,a4.co_seg \";\n strSql+=\" ,a2.tx_nomItm \\n\";\n strSql+=\" FROM tbm_cabCotVen as a1 \\n\";\n strSql+=\" INNER JOIN tbm_detCotVen as a2 ON (a1.co_emp=a2.co_emp AND a1.co_loc=a2.co_loc AND a1.co_cot=a2.co_cot) \\n\";\n strSql+=\" INNER JOIN tbm_inv as a3 ON (a2.co_emp=a3.co_emp AND a2.co_itm=a3.co_itm) \\n\";\n strSql+=\" INNER JOIN tbm_cabSegMovInv as a4 ON (a1.co_emp=a4.co_empRelCabCotVen AND a1.co_loc=a4.co_locRelCabCotVen AND \\n\";\n strSql+=\" a1.co_cot=a4.co_cotRelCabCotVen) \\n\";\n strSql+=\" WHERE a1.co_emp=\"+CodEmp+\" and a1.co_loc=\"+CodLoc+\" and a1.co_cot=\"+CodCot+\" and a3.st_ser='N' \\n\";\n strSql+=\" ORDER BY a1.co_emp, a1.co_loc, a1.co_cot, a2.co_reg \\n\";\n System.out.println(\"generarEgresoMercaderiaReservada \" + strSql);\n rstLoc = stmLoc.executeQuery(strSql);\n while(rstLoc.next()){\n arlResReg = new ArrayList();\n arlResReg.add(INT_ARL_DAT_COD_EMP, rstLoc.getInt(\"co_emp\"));\n arlResReg.add(INT_ARL_DAT_COD_LOC, rstLoc.getInt(\"co_loc\"));\n arlResReg.add(INT_ARL_DAT_COD_BOD_EMP, rstLoc.getInt(\"co_bod\"));\n arlResReg.add(INT_ARL_DAT_COD_ITM_EMP, rstLoc.getInt(\"co_itm\"));\n arlResReg.add(INT_ARL_DAT_CAN, rstLoc.getDouble(\"nd_can\"));\n arlResReg.add(INT_ARL_DAT_COS_UNI, rstLoc.getDouble(\"nd_cosUni\"));\n arlResReg.add(INT_ARL_DAT_COD_SEG, rstLoc.getInt(\"co_seg\"));\n arlResReg.add(INT_ARL_DAT_COD_REG, rstLoc.getInt(\"co_reg\"));\n arlResReg.add(INT_ARL_DAT_NOM_ITM, rstLoc.getString(\"tx_nomItm\"));\n arlResDat.add(arlResReg);\n }\n rstLoc.close();\n rstLoc=null;\n stmLoc.close();\n stmLoc=null;\n if(!arlResDat.isEmpty()){\n ZafGenDocIngEgrInvRes objGenDocIngEgrInvRes = new ZafGenDocIngEgrInvRes(objParSis,this);\n if(objGenDocIngEgrInvRes.GenerarDocumentoIngresoEgresoReservas(conExt, datFecAux, arlResDat, 1)){\n blnRes=true;\n }\n }\n }\n }\n catch (java.sql.SQLException e) { \n blnRes = false;\n objUti.mostrarMsgErr_F1(this, e); \n }\n catch (Exception Evt) {\n blnRes = false;\n objUti.mostrarMsgErr_F1(this, Evt);\n }\n return blnRes;\n }", "public void llenadoDeTablas() {\n /**\n *\n * creaccion de la tabla de de titulos \n */\n DefaultTableModel modelo = new DefaultTableModel();\n modelo.addColumn(\"ID Bitacora\");\n modelo.addColumn(\"Usuario\");\n modelo.addColumn(\"Fecha\");\n modelo.addColumn(\"Hora\");\n modelo.addColumn(\"Ip\");\n modelo.addColumn(\"host\");\n \n modelo.addColumn(\"Accion\");\n modelo.addColumn(\"Codigo Aplicacion\");\n modelo.addColumn(\"Modulo\");\n /**\n *\n * instaciamiento de las las clases Bitacora y BiracoraDAO\n * intaciamiento de la clases con el llenado de tablas\n */\n BitacoraDao BicDAO = new BitacoraDao();\n List<Bitacora> usuario = BicDAO.select();\n JtProductos1.setModel(modelo);\n String[] dato = new String[9];\n for (int i = 0; i < usuario.size(); i++) {\n dato[0] = usuario.get(i).getId_Bitacora();\n dato[1] = usuario.get(i).getId_Usuario();\n dato[2] = usuario.get(i).getFecha();\n dato[3] = usuario.get(i).getHora();\n dato[4] = usuario.get(i).getHost();\n dato[5] = usuario.get(i).getIp();\n dato[6] = usuario.get(i).getAccion();\n dato[7] = usuario.get(i).getCodigoAplicacion();\n dato[8] = usuario.get(i).getModulo();\n \n //System.out.println(\"vendedor:\" + vendedores);\n modelo.addRow(dato);\n }}", "public boolean insertarNuevoClienteCA(Cliente cliente, List<Cuenta> listaCuentas) {\n String queryDividido1 = \"INSERT INTO Usuario(Codigo, Nombre, DPI, Direccion, Sexo, Password, Tipo_Usuario) \"\n + \"VALUES(?,?,?,?,?,aes_encrypt(?,'AES'),?)\";\n\n String queryDividido2 = \"INSERT INTO Cliente(Usuario_Codigo, Nombre, Nacimiento, DPI_Escaneado, Estado) \"\n + \"VALUES(?,?,?,?,?)\";\n \n String queryDividido3 = \"INSERT INTO Cuenta(No_Cuenta, Fecha_Creacion, Saldo_Cuenta, Cliente_Usuario_Codigo) \"\n + \"VALUES(?,?,?,?)\";\n int codigoCliente = cliente.getCodigo();\n try {\n\n PreparedStatement enviarDividido1 = Conexion.conexion.prepareStatement(queryDividido1);\n\n //Envio de los Datos Principales del cliente a la Tabla Usuario\n enviarDividido1.setInt(1, cliente.getCodigo());\n enviarDividido1.setString(2, cliente.getNombre());\n enviarDividido1.setString(3, cliente.getDPI());\n enviarDividido1.setString(4, cliente.getDireccion());\n enviarDividido1.setString(5, cliente.getSexo());\n enviarDividido1.setString(6, cliente.getPassword());\n enviarDividido1.setInt(7, 3);\n enviarDividido1.executeUpdate();\n\n //Envia los Datos Complementarios del Usuario a la tabla cliente\n PreparedStatement enviarDividido2 = Conexion.conexion.prepareStatement(queryDividido2);\n enviarDividido2.setInt(1, cliente.getCodigo());\n enviarDividido2.setString(2, cliente.getNombre());\n enviarDividido2.setString(3, cliente.getNacimiento());\n enviarDividido2.setBlob(4, cliente.getDPIEscaneado());\n enviarDividido2.setBoolean(5, cliente.isEstado());\n enviarDividido2.executeUpdate();\n \n //Envia los Datos de la Cuenta Adjudicada al Cliente\n PreparedStatement enviarDividido3 = Conexion.conexion.prepareStatement(queryDividido3);\n\n //Envio de los Datos Principales de una Cuenta a la Tabla Cuenta, perteneciente a un cliente en Especifico\n //Considerando que el cliente puede tener mas de una cuenta\n for (Cuenta cuenta : listaCuentas) {\n \n enviarDividido3.setInt(1, cuenta.getNoCuenta());\n enviarDividido3.setString(2, cuenta.getFechaCreacion());\n enviarDividido3.setDouble(3, cuenta.getSaldo());\n enviarDividido3.setInt(4, codigoCliente);\n enviarDividido3.executeUpdate();\n }\n \n return true;\n\n } catch (SQLException ex) {\n ex.printStackTrace(System.out);\n return false;\n }\n\n }", "public void obrir() throws SQLException {\n\t\tbdClimb = dbHelper.getWritableDatabase();\n\t}", "public void prepararDados() {\n\t\tatribuiPrimeiroAnoCasoAnoEstejaNulo();\n\t\t\n\t\tsalvarOuAtualizar(alunosMilitarPraca);\n\t\tsalvarOuAtualizar(alunosMilitarOficial);\n\t\t\n\t\tinit();\n\t\thabilitaBotao=false;\n\t}", "public void CadastrarPassageiro(Connection con, List<Bilhetes> temporaria) {\n\t\t\n\t\ttry {\n\t\t\n\t\t\tstmt = con.prepareStatement(\"Select cpf from passageiro where cpf = ?\");\n\t\t\t\n\t\t\tstmt.setString(1, temporaria.get(0).getBilhete().get(0).getCpf() );\n\t\t\tstmt.execute();\n\t\t\t\n\t\t\trs=stmt.getResultSet();\n\t\t\t\n\t\t\tif(rs.next())\n\t\t\t{\n\t\t\t\t\n\t\t\t\tJOptionPane.showMessageDialog(null, \"ERRO: CPF JA CADASTRADO\", \"Erro CADASTRO\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tstmt = con.prepareStatement(\n\t\t\t\t\t\" insert into BILHETES (Destino,Origem,Hpartida, Hembarque,Poltrona) values(?,?,?,?,NULL)\");\n\n\t\t\tstmt.setString(1, temporaria.get(0).getDestino());\n\t\t\tstmt.setString(2, temporaria.get(0).getOrigem());\n\t\t\tstmt.setString(3, temporaria.get(0).getHora_partida());\n\t\t\tstmt.setString(4, temporaria.get(0).getHora_embarque());\n\n\t\t\tstmt.execute();\n\n\t\t\tstmt = con.prepareStatement(\"select IDBILHETE FROM BILHETES WHERE poltrona is null \");\n\n\t\t\tstmt.execute();\n\n\t\t\trs = stmt.getResultSet();\n\n\t\t\twhile (rs.next()) {\n\t\t\t\tint idbilhete = rs.getInt(1);\n\t\t\t\ttemporaria.get(0).setIdbilhete(idbilhete);\n\t\t\t}\n\n\t\t\tstmt = con.prepareStatement(\"insert into Passageiro(nome,cpf,ID_BILHETE) values(?,?,?)\");\n\n\t\t\tstmt.setString(1, temporaria.get(0).getBilhete().get(0).getNome());\n\t\t\tstmt.setString(2, temporaria.get(0).getBilhete().get(0).getCpf());\n\t\t\tstmt.setInt(3, temporaria.get(0).getIdbilhete());\n\n\t\t\tstmt.execute();\n\n\t\t\t// VOLTANDO A CADEIRA PARA 0, PARA EVITAR ERRO NOS PROXIMOS USUARIOS CADASTRADOS\n\t\t\tstmt = con.prepareStatement(\"UPDATE BILHETES SET POLTRONA = 0 WHERE POLTRONA IS NULL\");\n\n\t\t\tstmt.execute();\n\n\t\t\t// Teste\n\n\t\t\tString nome = temporaria.get(0).getBilhete().get(0).getNome();\n\t\t\tString cpf = temporaria.get(0).getBilhete().get(0).getCpf();\n\n\t\t\tString destino = temporaria.get(0).getDestino();\n\t\t\tString Origem = temporaria.get(0).getOrigem();\n\n\t\t\tString hora_EMBARQUE = temporaria.get(0).getHora_embarque();\n\n\t\t\tString horasaida = temporaria.get(0).getHora_partida();\n\n\t\t\t// Instanciando valores\n\t\t\tBilhetes passagem = new Bilhetes(temporaria.get(0).getIdbilhete(), Origem, destino, hora_EMBARQUE,\n\t\t\t\t\thorasaida, null, 0);\n\n\t\t\tpassagem.adicionar(new Passageiro(nome, cpf));\n\n\t\t\tpassageiro.add(passagem);\n\n\t\t\t// Fim do teste antes do filme\n\n\t\t\tJOptionPane.showMessageDialog(null, \"Passageiro Cadastrado Com sucesso\");\n\n\t\t\tJOptionPane.showMessageDialog(null,\"CODIGO LOCALIZADOR DO BILHETE: \" + temporaria.get(0).getIdbilhete(),\" NÃO PERCA\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\n\t\n\t\t\t\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tJOptionPane.showMessageDialog(null, \"ERRO: CPF JA CADASTRADO\", \"Erro CADASTRO\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\n\n\t\t}\n\n\t}", "public void executar() {\n\t\tSystem.out.println(dao.getListaPorNome(\"abacatão\"));\n\t}", "private PreparedStatement prepareClientes(Connection conn, String data) throws ParseException, SQLException\n\t{\n\t\t\n\t\tPreparedStatement result = null;\n\t\t\n\t\t//Parametros 1 e 6: Data de execucao atual\n\t\tSimpleDateFormat conversorData = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\tDate dataExecucao = conversorData.parse(data);\n\t\t//Parametro 2: Ano e mes da execucao\n\t\tSimpleDateFormat conversorDatMes = new SimpleDateFormat(\"yyMM\");\n\t\tString datMes = conversorDatMes.format(mesAnterior(dataExecucao));\n\t\t//Parametro 3: Tipo de transacao da promocao PulaPula\n\t\tString tipoTransacao = TIPO_TRANSACAO_PULA_PULA;\n\t\t//Parametros 4 e 7: Primeiro dia do mes da execucao\n\t\tDate dataInicioMesExecucao = getPrimeiroDiaMes(dataExecucao);\n\t\t//Parametro 5: Primeiro dia do mes posterior ao da execucao\n\t\tDate dataInicioProxMes = getPrimeiroDiaMes(proximoMes(dataExecucao));\n\t\t//Parametro 8: Ultimo dia do mes da execucao\n\t\tDate dataFimMesExecucao = getUltimoDiaMes(dataExecucao);\n\n\t\tString sqlClientes = getQuerySelecaoClientes();\n\t\tresult = conn.prepareStatement(sqlClientes);\n\t\tresult.setDate (1, new java.sql.Date(dataExecucao.getTime()));\n\t\tresult.setString(2, datMes);\n\t\tresult.setString(3, tipoTransacao);\n\t\tresult.setDate (4, new java.sql.Date(dataInicioMesExecucao.getTime()));\n\t\tresult.setDate (5, new java.sql.Date(dataInicioProxMes.getTime()));\n\t\tresult.setDate (6, new java.sql.Date(dataExecucao.getTime()));\n\t\tresult.setDate (7, new java.sql.Date(dataInicioMesExecucao.getTime()));\n\t\tresult.setDate (8, new java.sql.Date(dataFimMesExecucao.getTime()));\n\t\t\n\t\treturn result;\n\t}", "@Override\n\tpublic DatosEnc obtenerDatos(DatosEnc datos) {\n\t\tConnection con = null;\n\t\tCallableStatement stmt = null;\n//\t\tPreparedStatement ps = null;\n\t\tResultSet rs = null;\n\t\ttry{\n//\t\t\tcon = new ConectarDB().getConnection();\n//\t\t\tString query = \"select * from pv_cotizaciones_det where no_cotizacion = ?\";\n//\t\t\tps = con.prepareStatement(query);\n//\t\t\tps.setString(1, datos.getNoDocumento());\n//\t\t\trs = ps.executeQuery();\n//\t\t\texiste=0;\n//\t\t\twhile(rs.next()){\n//\t\t\t\tif(rs.getString(\"no_cotizacion\") == null){\n//\t\t\t\t\texiste=0;\n//\t\t\t\t}else if(rs.getString(\"no_cotizacion\").equals(datos.getNoDocumento())){\n//\t\t\t\t\texiste=1;\n//\t\t\t\t}\n//\t\t\t}\n//\t\t\tcon.close();\n//\t\t\tps.close();\n//\t\t\trs.close();\n//\t\t\tif(existe==0){\n\t\t\t\tcon = new ConectarDB().getConnection();\n\t\t\t\tstmt = con.prepareCall(\"{call stp_UDPV_InUp_Mov_Enc(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}\");\n\t\t\t\tstmt.setString(1, datos.getCodigoCliente());\n\t\t\t\tstmt.setString(2, datos.getNit());\n\t\t\t\tstmt.setString(3, datos.getNombreCliente());\n\t\t\t\tstmt.setString(4, datos.getDirecFactura());\n\t\t\t\tstmt.setString(5, datos.getTel());\n\t\t\t\tstmt.setString(6, datos.getTarjeta());\n\t\t\t\tstmt.setString(7, datos.getDirecEnvio());\n\t\t\t\tstmt.setString(8, datos.getCodigoVendedor());\n\t\t\t\tstmt.setString(9, datos.getUsername());\n\t\t\t\tstmt.setString(10, datos.getTipoDocumento());\n\t\t\t\tstmt.setString(11, datos.getNoDocumento());\n\t\t\t\tstmt.setString(12, datos.getFechaVence());\n\t\t\t\tstmt.setString(13, datos.getTipoPago());\n\t\t\t\tstmt.setString(14, datos.getTipoCredito());\n\t\t\t\tstmt.setString(15, datos.getAutoriza());\n\t\t\t\tstmt.setString(16, datos.getFechaDocumento());\n\t\t\t\tstmt.setString(17, datos.getCargosEnvio());\n\t\t\t\tstmt.setString(18, datos.getOtrosCargos());\n\t\t\t\tstmt.setString(19, datos.getMontoVenta());\n\t\t\t\tstmt.setString(20, datos.getMontoTotal());\n\t\t\t\tstmt.setString(21, datos.getSerieDev());\n\t\t\t\tstmt.setString(22, datos.getNoDocDev());\n\t\t\t\tstmt.setString(23, datos.getObservaciones());\n\t\t\t\tstmt.setString(24, datos.getTipoNota());\n\t\t\t\tstmt.setString(25, datos.getCaja());\n\t\t\t\tstmt.setString(26, datos.getFechaEntrega());\n\t\t\t\tstmt.setString(27, datos.getCodigoDept());\n\t\t\t\tstmt.setString(28, datos.getCodGen());\n\t\t\t\tstmt.setString(29, datos.getNoConsigna());\n\t\t\t\tstmt.setString(30, datos.getCodMovDev());\n\t\t\t\tstmt.setString(31, datos.getGeneraSolicitud());\n\t\t\t\tstmt.setString(32, datos.getTipoPagoNC());\n\t\t\t\tstmt.setString(33, datos.getTipoCliente());\n\t\t\t\tstmt.setString(34, datos.getCodigoNegocio());\n\t\t\t\tstmt.setString(35, datos.getCantidadDevolver());\n\t\t\t\tstmt.setString(36, datos.getAutorizoDespacho());\n\t\t\t\tstmt.setString(37, datos.getSaldo());\n\t\t\t\trs = stmt.executeQuery();\n\t\t\t\t\n\t\t\t\twhile(rs.next()){\n\t\t\t\t\tif(rs.getString(1)!=null){\n\t\t\t\t\t\tdatos.setSerieEnc(rs.getString(1));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tdatos.setSerieEnc(\"NA\");\n\t\t\t\t\t}\n\t\t\t\t\tdatos.setNoEnc(rs.getString(2));\n//\t\t\t\t\tif(rs.getString(1)!=null){\n//\t\t\t\t\t\tdatos.setSerieEnc(rs.getString(1));\n//\t\t\t\t\t}else{\n//\t\t\t\t\t\tdatos.setSerieEnc(\"NA\");\n//\t\t\t\t\t}\n//\t\t\t\t\tdatos.setNoEnc(rs.getString(2));\n//\t\t\t\t\tdocumento = rs.getInt(2);\n\t\t\t\t}\n\t\t\t\tcon.close();\n\t\t\t\tstmt.close();\n\t\t\t\trs.close();\n//\t\t\t}\n\t\t\t\n\t\t\t\n//\t\t\tcon = new ConectarDB().getConnection();\n//\t\t\tstmt = con.prepareCall(\"{call stp_UDPV_Del_Mov_Det(?,?,?)}\");\n//\t\t\tstmt.setInt(1, Integer.parseInt(datos.getTipoDocumento()));\n//\t\t\tstmt.setString(2, \"\");\n//\t\t\tstmt.setInt(3, documento);\n//\t\t\trs = stmt.executeQuery();\n//\t\t\t\n//\t\t\twhile(rs.next()){\n//\t\t\t\tSystem.out.println(rs.getString(\"limpiado\"));\n//\t\t\t}\n//\t\t\tcon.close();\n//\t\t\tstmt.close();\n//\t\t\trs.close();\n\t\t\t\n//\t\t\tcon = new ConectarDB().getConnection();\n//\t\t\tstmt = con.prepareCall(\"{call stp_udpv_VerificaCotiza(?,?)}\");\n//\t\t\tstmt.setString(1, \"\");\n//\t\t\tstmt.setInt(2, documento);\n//\t\t\trs = stmt.executeQuery();\n//\t\t\t\n//\t\t\twhile(rs.next()){\n//\t\t\t\tSystem.out.println(rs.getString(\"error\"));\n//\t\t\t}\n//\t\t\tcon.close();\n//\t\t\tstmt.close();\n//\t\t\trs.close();\n\t\t\t\n\t\t}catch(SQLException e ){\n\t\t\tSystem.out.println(\"Error Enc: \" + e.getMessage());\n\t\t}\n\t\treturn datos;\n\t}", "private String getConsulta(int indice) {\r\n\t\tString sql = \"\";\r\n\t\tStringBuffer variables = new StringBuffer();\r\n\t\tinParams = ((TxParams)todo.get(indice)).getParams().entrada;\r\n\t\toutParams = ((TxParams)todo.get(indice)).getParams().salida;\r\n\t\tif ((inParams == null || inParams.size() == 0) && (outParams == null || outParams.size() == 0))\r\n\t\t\tsql = \"{call \" + consultas[indice] + \"}\";\r\n\t\telse {\r\n\t\t\t//Por cada parametro de entrada corresponde un ?\r\n\t\t\t//Ojo que tambien hay que considerar los de salida si es necesario\r\n\t\t\t//pero no esta cubierto en esta primera etapa\r\n\t\t\tif (inParams != null) {\r\n\t\t\t\tfor (int i = 0; i < inParams.size(); i++)\r\n\t\t\t\t\tvariables.append(\"?,\");\r\n\t\t\t}\r\n\t\t\tif (outParams != null) {\r\n\t\t\t\tfor (int i = 0; i < outParams.size(); i++)\r\n\t\t\t\t\tvariables.append(\"?,\");\r\n\t\t\t}\r\n\t\t\tString listaVars = variables.toString();\r\n\t\t\tlistaVars = listaVars.substring(0, listaVars.length() - 1);\r\n\t\t\tsql = \"{call \" + consultas[indice] + \"(\" + listaVars + \")}\";\r\n\t\t}\r\n\t\treturn sql;\r\n\t}", "public static PreparedStatement crearDeclaracionPreparada(java.sql.Connection conexion, ArrayList<String> datos, String orden){\n try {\n PreparedStatement dp = null;\n dp = conexion.prepareStatement(orden); //asignamos el select que trae el String orden \n int esUnEntero;\n for(int i = 1; i <= datos.size(); i++){//asignamos los valores del arrayList datos en cada campo del select\n String aux = null; \n esUnEntero = isEntero(datos.get(i - 1));//Revisamos si la cadena de datos.get(i) es un entero\n switch(esUnEntero){\n case 1: //Cuando es 1 significa que el dato dentro de datos.get(i) es un entero, por tanto se rellena el campo como tal\n aux = datos.get(i - 1);\n dp.setInt(i, Integer.parseInt(aux)); \n break;\n case 0://Cuando es 0 significa que no es un entero y se rellena el campo como String\n aux = datos.get(i - 1);\n dp.setString(i, aux);\n break;\n } \n }\n return dp;\n } catch (SQLException ex) {\n System.out.println(\"\\n\\n\\n\"+ex); //Imprimimos el error en consola en caso de fallar \n } \n return null;\n }", "public void selecteazaComanda()\n {\n for(String[] comanda : date) {\n if (comanda[0].compareTo(\"insert client\") == 0)\n clientBll.insert(idClient++, comanda[1], comanda[2]);\n else if (comanda[0].compareTo(\"insert product\") == 0)\n {\n Product p = productBll.findProductByName(comanda[1]);\n if(p!=null)//daca produsul exista deja\n productBll.prelucreaza(p.getId(), comanda[1], Float.parseFloat(comanda[2]), Float.parseFloat(comanda[3]));\n else\n productBll.prelucreaza(idProduct++, comanda[1], Float.parseFloat(comanda[2]), Float.parseFloat(comanda[3]));\n\n }\n else if (comanda[0].contains(\"delete client\"))\n clientBll.sterge(comanda[1]);\n else if (comanda[0].contains(\"delete product\"))\n productBll.sterge(comanda[1]);\n else if (comanda[0].compareTo(\"order\")==0)\n order(comanda);\n else if (comanda[0].contains(\"report\"))\n report(comanda[0]);\n }\n }", "private DAOOfferta() {\r\n\t\ttry {\r\n\t\t\tClass.forName(driverName);\r\n\r\n\t\t\tconn = getConnection(usr, pass);\r\n\r\n\t\t\tps = conn.prepareStatement(createQuery);\r\n\r\n\t\t\tps.executeUpdate();\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ConnectionException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\t/*closeResource()*/;\r\n\t\t}\r\n\t}", "public static void main(String[]args) {PostagemDAO pDAO = new PostagemDAO();\n////\t\tPostagem postagem = new Postagem();\n////\t\tString s = \"1999-3-9\";\n////\t\tDate data = Date.valueOf(s);\n////\t\tpostagem.setDescPostagem(\"john johnes\");\n////\t\tpostagem.setDataPostagem(data);\n////\t\tpDAO.inserirPostagem(postagem);\n//\t\t\n////\t\tImagensDAO iDAO = new ImagensDAO();\n////\t\tImagens imagens = new Imagens();\n////\t\t\n////\t\timagens.setTipoImagem((short)2);\n////\t\timagens.setArquivoImagem(\"busato\");\n////\t\tiDAO.inserirImagem(imagens);\n//\t\t\n//\t\tUsuarioDAO uDAO = new UsuarioDAO();\n//\t\tUsuario usuario = new Usuario();\n//\t\t\n////\t\tusuario.setEmail(\"sadasda\");\n////\t\tusuario.setNickname(\"sdasdasae\");\n////\t\tusuario.setSenha(\"12345\");\n////\t\tusuario.setSteamid(31231231);\n////\t\tusuario.setFotoPerfil(\"FOTO\");\n////\t\tuDAO.cadastrar(usuario);\n//\t\t\n//\t\t\n//\t\tComentariosDAO cDAO = new ComentariosDAO();\n//\t\tComentarios comentarios = new Comentarios();\n//\t\t\n//\t\tcomentarios.setCorpoComentario(\"comentario comentado\");\n//\t\tcomentarios.setDataComentario(Date.valueOf(\"2018-03-09\"));\n//\t\tcDAO.inserirComentarios(comentarios);\n//\t\t\n//\t\tSystem.out.println(\"sera que comitou\");\n//\t\t\n\t\t\n\t\tPostagem postagem = new Postagem();\n\t\tpostagem.setDescPostagem(\"Uma formiguinha subindo pela parede\");\n\t\tpostagem.setTituloPostagem(\"Formiguinha\");\n\t\t\n\t\tPostagemDAO poDAO = new PostagemDAO();\n\t\tpostagem = poDAO.inserirPostagem(postagem);\n\t\t\n\t\tSystem.out.println(postagem.getIdPostagem());\n\t\t\n\t}", "private void cargarTipEmp(java.sql.Connection conn, java.sql.ResultSet rstExt) {\r\n Statement stmTipEmp;\r\n ResultSet rstEmp;\r\n String sSql;\r\n try {\r\n if (conn != null) {\r\n stmTipEmp = conn.createStatement();\r\n sSql = \"select b.co_tipper , b.tx_descor , round(a.nd_ivaVen,2) as porIva , bod.co_bod, a1.tx_dir, a1.tx_nom as nombod FROM tbm_emp as a \"\r\n + \" left join tbm_tipper as b on(b.co_emp=a.co_emp and b.co_tipper=a.co_tipper)\"\r\n + \" left join tbr_bodloc as bod on(bod.co_emp=a.co_emp and bod.co_loc=\" + rstExt.getString(\"co_loc\") + \" and bod.st_reg='P') \"\r\n + \" inner join tbm_bod as a1 on (a1.co_emp=bod.co_emp and a1.co_bod=bod.co_bod ) \"\r\n + \" where a.co_emp=\" + rstExt.getString(\"co_emp\");\r\n rstEmp = stmTipEmp.executeQuery(sSql);\r\n if (rstEmp.next()) {\r\n strTipPer_emp = rstEmp.getString(\"tx_descor\");\r\n intCodBodPre = rstEmp.getInt(\"co_bod\");\r\n intCodTipPerEmp = rstEmp.getInt(\"co_tipper\");\r\n strNomBodPtaPar = rstEmp.getString(\"tx_dir\");\r\n strNomBodPrv = rstEmp.getString(\"nombod\");\r\n bldivaEmp = objZafCtaCtb_dat.getPorIvaVen();\r\n dblPorIva = bldivaEmp;\r\n dblPorComSol = objZafCtaCtb_dat.getPorComSol();\r\n }\r\n rstEmp.close();\r\n stmTipEmp.close();\r\n stmTipEmp = null;\r\n rstEmp = null;\r\n }\r\n } \r\n catch (SQLException Evt) {\r\n objUti.mostrarMsgErr_F1(jifCnt, Evt);\r\n System.err.println(\"ERROR \" + Evt.toString());\r\n } \r\n catch (Exception Evt) {\r\n objUti.mostrarMsgErr_F1(jifCnt, Evt);\r\n System.err.println(\"ERROR \" + Evt.toString());\r\n }\r\n }", "public DefaultTableModel cargarDatos () {\r\n DefaultTableModel modelo = new DefaultTableModel(\r\n new String[]{\"ID SALIDA\", \"IDENTIFICACIÓN CAPITÁN\", \"NÚMERO MATRICULA\", \"FECHA\", \"HORA\", \"DESTINO\"}, 0); //Creo un objeto del modelo de la tabla con los titulos cargados\r\n String[] info = new String[6];\r\n String query = \"SELECT * FROM actividad WHERE eliminar = false\";\r\n try {\r\n Statement st = con.createStatement();\r\n ResultSet rs = st.executeQuery(query);\r\n while (rs.next()) { \r\n info[0] = rs.getString(\"id_salida\");\r\n info[1] = rs.getString(\"identificacion_navegate\");\r\n info[2] = rs.getString(\"numero_matricula\");\r\n info[3] = rs.getString(\"fecha\");\r\n info[4] = rs.getString(\"hora\");\r\n info[5] = rs.getString(\"destino\");\r\n Object[] fila = new Object[]{info[0], info[1], info[2], info[3], info[4], info[5]};\r\n modelo.addRow(fila);\r\n }\r\n st.close();\r\n rs.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(PActividad.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return modelo;\r\n }", "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 PreencherTabela() throws SQLException {\n try (Connection connection = ConnectionFactory.getConnection()) {\n String[] colunas = new String[]{\"ID\", \"Nome\", \"Nomenclatura\", \"Quantidade\"};\n ArrayList dados = new ArrayList();\n for (ViewProdutoPedido v : viewProdutoPedidos) {\n dados.add(new Object[]{v.getId(), v.getNome(), v.getNomenclatura(), v.getQuantidade()});\n }\n ModeloTabela modelo = new ModeloTabela(dados, colunas);\n jTableItensPedido.setModel(modelo);\n jTableItensPedido.setRowSorter(new TableRowSorter(modelo));\n jTableItensPedido.getColumnModel().getColumn(0).setPreferredWidth(2);\n jTableItensPedido.getColumnModel().getColumn(0).setResizable(false);\n jTableItensPedido.getColumnModel().getColumn(1).setPreferredWidth(20);\n jTableItensPedido.getColumnModel().getColumn(1).setResizable(false);\n jTableItensPedido.getColumnModel().getColumn(2).setPreferredWidth(20);\n jTableItensPedido.getColumnModel().getColumn(2).setResizable(false);\n jTableItensPedido.getColumnModel().getColumn(3).setPreferredWidth(20);\n jTableItensPedido.getColumnModel().getColumn(3).setResizable(false);\n\n }\n }", "public void esborrarRegistresTaulaNews() throws SQLException {\n bd.execSQL(\"DELETE FROM \" + BD_TAULA );\n\n }", "public void buscar() { // ATENCION tengo dudas con % telefono% no sale ningun resultado. si sale con telefono%\n String nombre = AgendarA.txtBNombre.getText();\n String apellidos = AgendarA.txtBApellidos.getText();\n String ciudad = AgendarA.txtBCiudad.getText();\n\n modeloagr = new DefaultTableModel(null, columnasAgr) {\n public boolean isCellEditable(int fila, int columna) {\n return false;\n }\n };\n if (AgendarA.chNombre.isSelected() == true && AgendarA.chApellidos.isSelected() == true && AgendarA.chCiudad.isSelected() == true) {\n if (!nombre.equals(\"\") && !apellidos.equals(\"\") && !ciudad.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,cedula,CONCAT(nombres,' ',apellidos),municipios.Nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE personalexterno.nombres LIKE '%\" + nombre + \"%' AND personalexterno.apellidos LIKE '%\" + apellidos + \"%' AND municipios.Nombre LIKE '%\" + ciudad + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY nombre\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else if (AgendarA.chNombre.isSelected() == true && AgendarA.chApellidos.isSelected() == true) {\n if (!nombre.equals(\"\") && !apellidos.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,cedula,CONCAT(nombres,' ',apellidos),municipios.Nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE personalexterno.nombres LIKE '%\" + nombre + \"%' AND personalexterno.Apellidos LIKE '%\" + apellidos + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY cedula\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else if (AgendarA.chNombre.isSelected() == true && AgendarA.chCiudad.isSelected() == true) {\n if (!nombre.equals(\"\") && !ciudad.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,nombre,CONCAT(nombres,' ',apellidos),municipios.Nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE municipios.Nombre LIKE '%\" + ciudad + \"%' AND personalexterno.nombres LIKE '%\" + nombre + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY cedula\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else if (AgendarA.chApellidos.isSelected() == true && AgendarA.chCiudad.isSelected() == true) {\n if (!apellidos.equals(\"\") && !ciudad.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,personalexterno.cedula,nombres,apellidos,municipios.Nombre FROM personalexterno,municipios WHERE municipios.Nombre LIKE '%\" + ciudad + \"%' AND personalexterno.apellidos LIKE '%\" + apellidos + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY cedula\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else if (AgendarA.chNombre.isSelected() == true) {\n if (!nombre.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,cedula,CONCAT(nombres,' ',apellidos),municipios.Nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE personalexterno.nombres LIKE '%\" + nombre + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY cedula\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else if (AgendarA.chApellidos.isSelected() == true) {\n if (!apellidos.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,cedula,CONCAT(nombres,' ',apellidos),municipios.Nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE personalexterno.apellidos LIKE '%\" + apellidos + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY cedula\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else if (AgendarA.chCiudad.isSelected() == true) {\n if (!ciudad.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,cedula,CONCAT(nombres,' ',apellidos),municipios.Nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE municipios.Nombre LIKE '%\" + ciudad + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY cedula\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else {\n JOptionPane.showMessageDialog(null, \"Ninguno de los campos de busqueda esta seleccionado\");\n }\n tbl.rowNumberTabel(AgendarA.tblAgricultor);\n //desactivar_checkbox();\n }", "public boolean insertarNuevoClienteVista(Cliente cliente, Cuenta cuenta) {\n \n String queryDividido1 = \"INSERT INTO Usuario(Codigo, Nombre, DPI, Direccion, Sexo, Password, Tipo_Usuario) \"\n + \"VALUES(?,?,?,?,?,aes_encrypt(?,'AES'),?)\";\n\n String queryDividido2 = \"INSERT INTO Cliente(Usuario_Codigo, Nombre, Nacimiento, DPI_Escaneado, Estado) \"\n + \"VALUES(?,?,?,?,?)\";\n \n String queryDividido3 = \"INSERT INTO Cuenta(No_Cuenta, Fecha_Creacion, Saldo_Cuenta, Cliente_Usuario_Codigo) \"\n + \"VALUES(?,?,?,?)\";\n \n \n try {\n\n PreparedStatement enviarDividido1 = Conexion.conexion.prepareStatement(queryDividido1);\n\n //Envio de los Datos Principales del cliente a la Tabla Usuario\n enviarDividido1.setInt(1, cliente.getCodigo());\n enviarDividido1.setString(2, cliente.getNombre());\n enviarDividido1.setString(3, cliente.getDPI());\n enviarDividido1.setString(4, cliente.getDireccion());\n enviarDividido1.setString(5, cliente.getSexo());\n enviarDividido1.setString(6, cliente.getPassword());\n enviarDividido1.setInt(7, 3);\n enviarDividido1.executeUpdate();\n\n //Envia los Datos Complementarios del Usuario a la tabla cliente\n PreparedStatement enviarDividido2 = Conexion.conexion.prepareStatement(queryDividido2);\n enviarDividido2.setInt(1, cliente.getCodigo());\n enviarDividido2.setString(2, cliente.getNombre());\n enviarDividido2.setString(3, cliente.getNacimiento());\n enviarDividido2.setBlob(4, cliente.getDPIEscaneado());\n enviarDividido2.setBoolean(5, cliente.isEstado());\n enviarDividido2.executeUpdate();\n \n //Envia los Datos de la Cuenta Adjudicada al Cliente\n PreparedStatement enviarDividido3 = Conexion.conexion.prepareStatement(queryDividido3);\n\n //Envio de los Datos Principales de una Cuenta a la Tabla Cuenta, perteneciente a un cliente en Especifico\n enviarDividido3.setInt(1, cuenta.getNoCuenta());\n enviarDividido3.setString(2, cuenta.getFechaCreacion());\n enviarDividido3.setDouble(3, cuenta.getSaldo());\n enviarDividido3.setInt(4, cliente.getCodigo());\n enviarDividido3.executeUpdate();\n \n \n return true;\n\n } catch (SQLException ex) {\n ex.printStackTrace(System.out);\n return false;\n }\n\n }", "public static void main(String[] args) {\n\n String select = \"select direccion from cliente where idCliente = 3;\", update;\n Connection conexion = BddConnection.newConexionPostgreSQL(\"Ventas\");\n PreparedStatement sentencia;\n Direccion dirCliente;\n ResultSet resul;\n\n try {\n sentencia = conexion.prepareStatement(select);\n resul = sentencia.executeQuery();\n if (resul.next()){\n dirCliente = Direccion.newInstance(resul.getString(1));\n dirCliente.getPoblacion().getProvincia().setProvincia(\"Granada update\");\n update = \"update cliente set direccion = \" + dirCliente.getStringTypeT_Direccion() + \" where idCliente = 3\";\n sentencia = conexion.prepareStatement(update);\n sentencia.executeUpdate();\n }\n resul.close();\n sentencia.close();\n conexion.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }" ]
[ "0.6641994", "0.63778603", "0.63439304", "0.62963235", "0.62673277", "0.62035954", "0.61967343", "0.6161779", "0.61455274", "0.61421907", "0.61407274", "0.613194", "0.61183405", "0.6088302", "0.6071661", "0.606708", "0.6049811", "0.6020285", "0.60082483", "0.5993581", "0.59921384", "0.59533054", "0.5949964", "0.5926647", "0.59130096", "0.58867776", "0.5885011", "0.58676624", "0.5862639", "0.58526707", "0.58520824", "0.5849597", "0.5834813", "0.58320224", "0.5799713", "0.5783547", "0.57766736", "0.57686484", "0.5765281", "0.5757147", "0.5752904", "0.5744891", "0.57302976", "0.5726314", "0.5723282", "0.57180166", "0.56998605", "0.56895643", "0.56879383", "0.5686298", "0.5686229", "0.566858", "0.5666709", "0.566652", "0.566624", "0.56604296", "0.565927", "0.56521416", "0.5646899", "0.5644413", "0.56432587", "0.56400096", "0.5632508", "0.5630415", "0.56191665", "0.56181026", "0.5615726", "0.56157", "0.56096566", "0.56014574", "0.55923694", "0.5587902", "0.55878747", "0.558116", "0.55783457", "0.5575893", "0.5575654", "0.55735385", "0.5568933", "0.55687445", "0.5560522", "0.5556897", "0.55562377", "0.55530614", "0.554608", "0.5542059", "0.5538703", "0.5534446", "0.55341494", "0.55299234", "0.55268353", "0.55226505", "0.552215", "0.55220187", "0.55200803", "0.55156165", "0.5515317", "0.5510434", "0.55038035", "0.55025244", "0.54924095" ]
0.0
-1
End of variables declaration//GENEND:variables
private boolean verificaEmailJaCadastrado(String email) throws SQLException { String sql = "SELECT * from crud_alunos where email=?"; PreparedStatement preparador = Conexao.conectar().prepareStatement(sql); preparador.setString(1, email); ResultSet rs = preparador.executeQuery(); if(rs.next()){ JOptionPane.showMessageDialog(null, "Email já Cadastrado!"); return true; } else { return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "private void assignment() {\n\n\t\t\t}", "private void kk12() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public void mo21779D() {\n }", "public final void mo51373a() {\n }", "protected boolean func_70041_e_() { return false; }", "public void mo4359a() {\n }", "public void mo21782G() {\n }", "private void m50366E() {\n }", "public void mo12930a() {\n }", "public void mo115190b() {\n }", "public void method_4270() {}", "public void mo1403c() {\n }", "public void mo3376r() {\n }", "public void mo3749d() {\n }", "public void mo21793R() {\n }", "protected boolean func_70814_o() { return true; }", "public void mo21787L() {\n }", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo21780E() {\n }", "public void mo21792Q() {\n }", "public void mo21791P() {\n }", "public void mo12628c() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo97908d() {\n }", "public void mo21878t() {\n }", "public void mo9848a() {\n }", "public void mo21825b() {\n }", "public void mo23813b() {\n }", "public void mo3370l() {\n }", "public void mo21879u() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo21785J() {\n }", "public void mo21795T() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void m23075a() {\n }", "public void mo21789N() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public void mo21794S() {\n }", "public final void mo12688e_() {\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "private Rekenhulp()\n\t{\n\t}", "public void mo6944a() {\n }", "public static void listing5_14() {\n }", "public void mo1405e() {\n }", "public final void mo91715d() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo9137b() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void func_70295_k_() {}", "void mo57277b();", "public void mo21877s() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void Tyre() {\n\t\t\r\n\t}", "void berechneFlaeche() {\n\t}", "public void mo115188a() {\n }", "public void mo21880v() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo21784I() {\n }", "private stendhal() {\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "public void mo56167c() {\n }", "public void mo44053a() {\n }", "public void mo21781F() {\n }", "public void mo2740a() {\n }", "public void mo21783H() {\n }", "public void mo1531a() {\n }", "double defendre();", "private zzfl$zzg$zzc() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.value = var3_1;\n }", "public void stg() {\n\n\t}", "void m1864a() {\r\n }", "private void poetries() {\n\n\t}", "public void skystonePos4() {\n }", "public void mo2471e() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "private void yy() {\n\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@AnyLogicInternalCodegenAPI\n private void setupPlainVariables_Main_xjal() {\n }", "static void feladat4() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void init() { \r\n\t\t// TODO Auto-generated method\r\n\t }", "public void furyo ()\t{\n }", "public void verliesLeven() {\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "protected void mo6255a() {\n }" ]
[ "0.6359434", "0.6280371", "0.61868024", "0.6094568", "0.60925734", "0.6071678", "0.6052686", "0.60522056", "0.6003249", "0.59887564", "0.59705925", "0.59680873", "0.5967989", "0.5965816", "0.5962006", "0.5942372", "0.5909877", "0.5896588", "0.5891321", "0.5882983", "0.58814824", "0.5854075", "0.5851759", "0.58514243", "0.58418584", "0.58395296", "0.5835063", "0.582234", "0.58090156", "0.5802706", "0.5793836", "0.57862717", "0.5784062", "0.5783567", "0.5782131", "0.57758564", "0.5762871", "0.5759349", "0.5745087", "0.57427835", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.57326084", "0.57301426", "0.57266665", "0.57229686", "0.57175463", "0.5705802", "0.5698347", "0.5697827", "0.569054", "0.5689405", "0.5686434", "0.56738997", "0.5662217", "0.56531453", "0.5645255", "0.5644223", "0.5642628", "0.5642476", "0.5640595", "0.56317437", "0.56294966", "0.56289655", "0.56220204", "0.56180173", "0.56134313", "0.5611337", "0.56112075", "0.56058615", "0.5604383", "0.5602629", "0.56002104", "0.5591573", "0.55856615", "0.5576992", "0.55707216", "0.5569681", "0.55570376", "0.55531484", "0.5551123", "0.5550893", "0.55482954", "0.5547471", "0.55469507", "0.5545719", "0.5543553", "0.55424106", "0.5542057", "0.55410767", "0.5537739", "0.55269134", "0.55236584", "0.55170715", "0.55035424", "0.55020875" ]
0.0
-1
//////////////////////////////////////////////////////////////////////////////////////////////////////////// This manages the strings ////////////////////////////////////////////////////////////////////////////////////////////////////////////
public void setName(String artistName) { this.artistName = artistName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Strings()\n\t{\n\t}", "private Strings()\n\t{\n\t}", "public static void updateStrings() {\n String pathName;\n switch (Parameters.getLanguage()) {\n case ENGLISH:\n default:\n pathName = englishStringPath;\n break;\n case SPANISH:\n pathName = spanishStringPath;\n break;\n case CATALAN:\n pathName = catalanStringPath;\n break;\n }\n updateStrings(pathName);\n }", "@Override\n public void handleString(String s) {\n\n }", "private void setStrings(){\n ip = context.getResources().getString(R.string.ip);\n port = context.getResources().getString(R.string.port);\n dbName = context.getResources().getString(R.string.db_name);\n user = context.getResources().getString(R.string.masterUser);\n pass = context.getResources().getString(R.string.masterPass);\n }", "public CMNGameStrings() {\n\t\t}", "protected StringTranslator() {\n\n String from = \"-_\";\n String to = \"%/\";\n translationMap = new HashMap<Character, Character>();\n\n if (from.length() != to.length())\n throw new IllegalArgumentException(\"The from and to strings must be of the same length\");\n\n for (int i = 0; i < from.length(); i++)\n translationMap.put(from.charAt(i), to.charAt(i));\n }", "@Override\r\n protected void loadStrings() {\r\n \r\n mfile = settings.getProperty( \"mfile\" );\r\n rmode = settings.getProperty( \"rmode\" );\r\n cmap = settings.getProperty( \"cmap\" );\r\n cmapMin = Double.parseDouble( settings.getProperty( \"cmapMin\" ) );\r\n cmapMax = Double.parseDouble( settings.getProperty( \"cmapMax\" ) );\r\n \r\n }", "public interface IStrings {\n\n\t/**\n\t * The name of the application, as it appears on the title of the window\n\t * \n\t * @return the name of the application\n\t */\n\tpublic String getAppName();\n\n\t/**\n\t * If the application name should have a definite article when used in\n\t * sentences, this should be it, uncapitalised and with a trailing space if\n\t * one is appropriate.\n\t * \n\t * @return \"the \" or \"\".\n\t */\n\tpublic String getAppNameArticle();\n\n\t/**\n\t * The short form of the application name, for system tray stuff\n\t * \n\t * @return the short form of the application name\n\t */\n\tpublic String getShortAppName();\n\n\t/**\n\t * The name of the application in a form suitable for putting into paths\n\t * \n\t * @return the name of the application in a form for putting into paths\n\t */\n\tpublic String getAppPathname();\n\n\t/**\n\t * The explanation on how files to be saved should be named\n\t * \n\t * @return the explanation on how files to be saved should be named\n\t */\n\tpublic String getFileNamingDetails();\n\n\t/**\n\t * The list of names that appear in the open file dialogue describing the\n\t * file types to open\n\t * \n\t * @return an array containing the descriptions of the file types the user\n\t * can select\n\t */\n\tpublic String[] getOpenDialogueFilterNames();\n\n\t/**\n\t * The file extensions that the file dialogue will match. Must correspond to\n\t * the descriptions returned by {@link #getOpenDialogueFilterNames()}. e.g.\n\t * '*.emp'\n\t * \n\t * @return the file extensions that the file dialogue will match\n\t */\n\tpublic String[] getOpenDialogueFilterExtensions();\n\n\t/**\n\t * The description presented to the user regarding automatically opening\n\t * files.\n\t * \n\t * @return the description presented to the user regarding automatically\n\t * opening files\n\t */\n\tpublic String getPrefsAutoLoadDescription();\n\n\t/**\n\t * The text to be shown in the 'about' dialogue\n\t * \n\t * @return the text to be shown in the 'about' dialogue\n\t */\n\tpublic String getAboutBoxText();\n\n\t/**\n\t * The default naming pattern for saving files\n\t * \n\t * @return the default naming pattern for saving files\n\t */\n\tpublic String getDefaultFilePattern();\n\n\t/**\n\t * This provides the base name for the XML node that stores the download\n\t * state of the application.\n\t * \n\t * @return the XML node name for the download state\n\t */\n\tpublic String getXMLBaseNodeName();\n\n\t/**\n\t * The version of the application.\n\t * \n\t * @return the version of the application\n\t */\n\tpublic String getVersion();\n\n\t/**\n\t * This provides the base name (without extension) for cover art files\n\t * \n\t * @return the base name for cover art files\n\t */\n\tpublic String getCoverArtName();\n\n\t/**\n\t * \"Automatically check for updates to this program\"\n\t */\n\tpublic String prefsAutomaticallyCheck();\n\n\t/**\n\t * \"Files\"\n\t */\n\tpublic String prefsFilesGroupTitle();\n\n\t/**\n\t * \"Downloads\"\n\t */\n\tpublic String prefsDownloadsGroupTitle();\n\n\t/**\n\t * The string shown when the maximum number of failures has been reached.\n\t * This can include &lt;A&gt; elements, which when clicked will open the\n\t * browser to the customer support URL.\n\t */\n\tpublic String dlMaxFailures();\n\n\t/**\n\t * The message displayed when there is a network connection issue. Including\n\t * '\\uFFFC' in the text will cause the resume icon to be included at that\n\t * point.\n\t */\n\tpublic String networkFailureMessage();\n\n\t/**\n\t * \"Preferred number of downloads at once\"\n\t */\n\tpublic String prefsConcurrentDownloads();\n}", "private Strings() {\n }", "private void initializeStrings(Activity activity) {\n OBSERVATORY_URL = activity.getString(R.string.live_address);\n API_KEY = activity.getString(R.string.api_key);\n VARIABLE_QUERY_FORMAT = activity.getString(R.string.variable_format);\n BUFFER_QUERY_FORMAT = activity.getString(R.string.buffer_query);\n TWO_VARIABLE_FORMAT = activity.getString(R.string.two_variables_format);\n\n IS_ACTIVE_KEY = activity.getString(R.string.json_is_active_key);\n DATA_KEY = activity.getString(R.string.json_data_key);\n GEOM_KEY = activity.getString(R.string.json_geom_key);\n COORDINATES_KEY = activity.getString(R.string.json_coordinates_key);\n\n PM10_VARIABLE = activity.getString(R.string.pm10_variable);\n TEMP_VARIABLE = activity.getString(R.string.temperature_variable);\n HUMID_VARIABLE = activity.getString(R.string.humidity_variable);\n MEASUREMENTS_LIMIT_UPPER = \n activity.getResources().getInteger(R.integer.measurement_limit_upper);\n\n NO_JSON_OBJECT_FOUND_LOG_TITLE =\n activity.getString(R.string.no_json_object_found_log_title);\n NO_JSON_OBJECT_FOUND_LOG_CONTENTS =\n activity.getString(R.string.no_json_object_found_log_contents);\n }", "FPNode_Strings(){\r\n\t\t\r\n\t}", "public void correctStrings() {\n this.content = StringUtils.correctWhiteSpaces(content);\n }", "@Test public void readStringDescriptionsNotJustSingleWord() {\n fail( \"Not yet implemented\" );\n }", "public static void loadBaseStrings() {\n\t\t//ensure the base strings file exists\n\t\tif (!extractedFileDir.exists())\n\t\t\textractedFileDir.mkdir();\n\t\tif (!baseStringsFile.exists())\n\t\t\textractDataWin();\n\t\t//find the latest numbered strings file\n\t\tint lastFileNum = 0;\n\t\twhile ((new File(extractedFileDir, nextFileNum + \".txt\")).exists()) {\n\t\t\tlastFileNum = nextFileNum;\n\t\t\tnextFileNum *= 2;\n\t\t}\n\t\twhile (nextFileNum > lastFileNum + 1) {\n\t\t\tint mid = (nextFileNum + lastFileNum) / 2;\n\t\t\tif ((new File(extractedFileDir, mid + \".txt\")).exists())\n\t\t\t\tlastFileNum = mid;\n\t\t\telse\n\t\t\t\tnextFileNum = mid;\n\t\t}\n\t}", "public abstract String getString();", "public abstract String getString();", "StringContent createStringContent();", "public static void loadStrings() {\n\t\tloadStrings(Locale.getDefault());\n\t}", "private void handleString() {\n while (peek() != '\"' && !reachedEnd()) {\n if (peek() == '\\n') {\n line++; // Rune supports multiline strings, unlike java\n }\n advance();\n }\n\n // Unterminated String\n if (reachedEnd()) {\n Rune.error(line, \"Unterminated string.\");\n return;\n }\n\n // advance to the closing \"\n advance();\n\n String value = source.substring(start + 1, current - 1);\n addToken(STRING, value);\n }", "private void setSharedMenuItemStrings()\r\n {\r\n debug(\"setSharedMenuItemStrings() - assigning string values\");\r\n // Build a Menu and Menuitems for Inserting and Deleting Watch Lists\r\n addNewWatchListCmd =\r\n (addNewWatchListCmd == null) ? getString(\"WatchListTableModule.edit_menu.insert_watchlist_text\") : addNewWatchListCmd;\r\n deleteWatchListCmd =\r\n (deleteWatchListCmd == null) ? getString(\"WatchListTableModule.edit_menu.delete_watchlist_text\") : deleteWatchListCmd;\r\n // Build a Menu and Menuitems for Inserting and Deleting Rows\r\n insertBeforeCmd =\r\n (insertBeforeCmd == null) ? getString(\"WatchListTableModule.edit_menu.insert_row_before_text\") : insertBeforeCmd;\r\n insertAfterCmd =\r\n (insertAfterCmd == null) ? getString(\"WatchListTableModule.edit_menu.insert_row_after_text\") : insertAfterCmd;\r\n deleteRowCmd = (deleteRowCmd == null) ? getString(\"WatchListTableModule.edit_menu.delete_row_text\") : deleteRowCmd;\r\n\r\n // Fraction or Decimal Display\r\n fractionCmd = (fractionCmd == null) ? getString(\"WatchListTableModule.edit_menu.fractions_actionCommand\") : fractionCmd;\r\n decimalCmd = (decimalCmd == null) ? getString(\"WatchListTableModule.edit_menu.decimals_actionCommand\") : decimalCmd;\r\n\r\n // Rename the Watch List Command\r\n renameListCmd =\r\n (renameListCmd == null) ? getString(\"WatchListTableModule.edit_menu.rename_watchlist_text\") : renameListCmd;\r\n\r\n // Build a Menu Item to print the WatchList\r\n printListCmd = (printListCmd == null) ? getString(\"WatchListTableModule.edit_menu.print_watchlist_text\") : printListCmd;\r\n // Build a Menu Item for displaying a Table Property Editor\r\n tableProps = (tableProps == null) ? getString(\"WatchListTableModule.edit_menu.view_table_properties\") : tableProps;\r\n\r\n viewOptionChainCmd =\r\n (viewOptionChainCmd == null) ? getString(\"WatchListTableModule.edit_menu.view_option_chain\") : viewOptionChainCmd;\r\n\r\n viewHistoricChartCmd =\r\n (viewHistoricChartCmd == null) ? getString(\"WatchListTableModule.edit_menu.view_historic_chart\") : viewHistoricChartCmd;\r\n\r\n // Make a new Action Trigger, as it is generic and used in many places.\r\n if (actionTrigger == null)\r\n {\r\n actionTrigger = new ActionTrigger();\r\n }\r\n debug(\"setSharedMenuItemStrings() - complete\");\r\n }", "public void readText() {\n\t\ttry {\n\t\t\tlong start = System.currentTimeMillis();\n\t\t\tstrResult = new StringBuilder();\n\t\t\tString strOriCopy = strOri;\n\t\t\tstrOriCopy = strOriCopy.replaceAll(\"\\r\\n\", \"\\r\");\n\t\t\tstrOriCopy = strOriCopy.replaceAll(\"\\n\\r\", \"\\r\");\n\t\t\tList<String> listFromStrOri = new ArrayList<String>();\n\t\t\tString strOneCharacter= \"\";\n\t\t\tlogger.info(\"strText : \" + this.strOri);\n\t\t\tMap<String, String> mapWord = new HashMap<String, String>();\n\t\t\tInteger pos = 0;\n\t\t\tInteger strOriMaxLen = strOriCopy.length();\n\t\t\t//문장을 돌면서 구둣점과 영어단어를 분리해서 저장한다. 유일한 영어단어 별도로 추출한다. \n\t\t\twhile(pos < strOriMaxLen) {\n\t\t\t\tif (strOriCopy.charAt(pos) == '\\n') {\n\t\t\t\t\tstrOneCharacter = \"\\r\";\n\t\t\t\t} else if (strOriCopy.charAt(pos) == '\\r') {\n\t\t\t\t\tstrOneCharacter = \"\\r\";\n\t\t\t\t} else {\t\t\t\t\t\n\t\t\t\t\tstrOneCharacter = Character.toString(strOriCopy.charAt(pos));\n\t\t\t\t}\n\t\t\t\tlogger.trace(\"strOne : '\" + strOneCharacter + \"'\");\n//\t\t\t\tif (performIsRightChar(strOneCharacter)) {\n\t\t\t\tif (isRightChar(strOneCharacter)) {\t\t\t\n\t\t\t\t\t//해당언어에 해당되는 글자이면 단어를 찾는다.\n\t\t\t\t\tInteger lastPos = getWordPos(strOriCopy, strOneCharacter, pos, strOriMaxLen);\n\t\t\t\t\tString strWord = strOriCopy.substring(pos, lastPos);\n\t\t\t\t\tlogger.info(\"strWord : -\" + strWord + \"-\");\n\t\t\t\t\tif (lastPos == pos) {\n\t\t\t\t\t\t//단어를 사전에서 못 찾았으면 현 글자를 추가한다....(이걸 타지는 않는다.. 항상 lastPos가 1이 더 크다)\n\t\t\t\t\t\tlistFromStrOri.add(strOneCharacter);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t//단어이면... 추가한다. (영어는 사전에 있는거와 상관없이 영어이면 추가하고, 중국어는 사전에 있는지 체크해서 추가한다.\n\t\t\t\t\t\tpos = lastPos;\n\t\t\t\t\t\tlistFromStrOri.add(strWord);\n\t\t\t\t\t\tString strWordLowercase = strWord.toLowerCase();\n\t\t\t\t\t\tif (!mapWord.containsKey(strWordLowercase)) {\n\t\t\t\t\t\t\tmapWord.put(strWordLowercase, \"\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t//\t\t\t\tlogger.info(\"strWord : \" + strWord);\n\t\t\t\t} else {\n\t\t\t\t\tlistFromStrOri.add(strOneCharacter);\t\t\t\t\t\n//\t\t\t\t\tlogger.info(\"strOneCharacter : \" + strOneCharacter);\n\t\t\t\t\tpos++;\n\t\t\t\t}\n\t\t\t\t\n\t//\t\t\tlogger.info(\"strResult : \" + strResult);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t//유일한 영어단어중 사전에 있는 단어만 별도로 추출한다.\t\t\n\t\t\tMap<String, String> mapWordUnique = uniqueWordsInDic(mapWord);\t\t\n\t\t\t\n\t\t\tlogger.info(\"before : \" + mapWord.size() + \", unique : \" + mapWordUnique.size());\n//\t\t\tlogger.info(\"Before : \" + mapWord.toString());\n//\t\t\tlogger.info(\"After : \" + mapWordUnique.toString());\n\t\t\t\n\t\t\t//분리한 영어단어를 다시 돌면서 HTML문장을 만든다.\n\t\t\tstrResult = new StringBuilder();\n\t\t\tfor (String string : listFromStrOri) {\n\t\t\t\tString strWord = string.toLowerCase();\n\t\t\t\tif (mapWordUnique.containsKey(strWord)) {\n\t\t\t\t\tstrResult.append(mapWordUnique.get(strWord));\n\t\t\t\t} else {\n\t\t\t\t\tif (string.equals(\"\\r\")) {\n\t\t\t\t\t\tstrResult.append(\"<br>\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tstrResult.append(strWord);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n//\t\t\tlogger.info(\"Before Sorting : \" + listWordsTemp.toString());\n\t\t\tCollections.sort(listWordsTemp, String.CASE_INSENSITIVE_ORDER);\n//\t\t\tlogger.info(\"After Sorting : \" + listWordsTemp.toString());\n\t\t\tlong end = System.currentTimeMillis();\n\t\t\tlogger.info( \"실행 시간 readText : \" + ( end - start )/1000.0 );\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}", "public void stringPresentation () {\n System.out.println ( \"****** String Data Module ******\" );\n ArrayList<Book> bookArrayList = new ArrayList<Book>();\n bookArrayList = new Request().postRequestBook();\n for (Book book: bookArrayList) {\n System.out.println(book.toString());\n }\n ClientEntry.showMenu ( );\n\n }", "public EncodeAndDecodeStrings() {}", "@Test\n public void loadStringsTest()\n {\n TestCase.assertEquals( 0, testObj.getSize() );\n TestCase.assertEquals( testObj.insert( \"foo\" ), 0 );\n TestCase.assertEquals( testObj.insert( \"bar\" ), 1 );\n TestCase.assertEquals( testObj.insert( \"baz\" ), 2 );\n TestCase.assertEquals( testObj.insert( \"quux\" ), 3 );\n TestCase.assertEquals( 4, testObj.getSize() );\n\n TestCase.assertEquals( testObj.getByteBlock( 2 ), \"baz\" );\n }", "public StringFileManager() {\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}", "private void loadStrings() {\n\t\tfor (String texto : textOne) {\n\t\t\t//Se parte cada linea por comas\n\t\t\tString [] info = texto.split(\",\");\n\t\t\t//----------------\n\t\t\tint id = Integer.parseInt(info[0]);\n\t\t\tString name = info[1];\n\t\t\tint age = Integer.parseInt(info[2]);\n\t\t\tString race = info[3];\n\t\t\t//--------------------\n\t\t\t\n\t\t\tdogList.addElement(id, name, age, race);\n\t\t}\n\t\t\n\t\t//-----------------------\n\t\t// Se carga segundo TXT\n\t\tfor (int i = 0; i < dogList.getList().size(); i++) {\n\t\t\tfor (int j = 0; j < textTwo.length; j++) {\n\t\t\t\tString [] infoD = textTwo[j].split(\",\");\n\t\t\t\t//----------------\n\t\t\t\tint id = Integer.parseInt(infoD[0]);\n\t\t\t\tString nombre = infoD[1];\n\t\t\t\tString apellido = infoD[2];\n\t\t\t\tint identificacion = Integer.parseInt(infoD[3]);\n\t\t\t\tint telefono = Integer.parseInt(infoD[4]);\n\t\t\t\tString direccion = infoD[5];\n\t\t\t\tString enfermedades = infoD[6];\n\t\t\t\t//-----------\n\t\t\t\tduenoList.addElement(id, nombre, apellido, identificacion, telefono, direccion, enfermedades);\n\t\t\t\t\n\t\t\t\n\t\t\t}\n\t\t}\n\t\tduenoList.printList();\n\t\tdogList.printList();\n\t\t\n\t\t\n\t}", "public StringContent(String newString)\n {\n content=newString;\n }", "public abstract String getContentString();", "private void initStaticDocumentVerifiStateStrings() {\n\t\tif(m_aDOCUMENT_VERIF_STATE_CONDT_STRINGS == null) {\n\t\t\t//init it once per element\n\t\t\tm_aDOCUMENT_VERIF_STATE_CONDT_STRINGS = new Hashtable<String, String>(10);\n\t\t\tif(m_aRegAcc == null)\n\t\t\t\tm_aRegAcc = new MessageConfigurationAccess(getComponentContext(), getMultiComponentFactory());\n\t\t\tif(m_aRegAcc != null) {\n\t\t\t\t\n\t\t\t\tfor(int st = 0; st < m_sDOCUMENT_VERIF_STATE.length; st++ ) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tm_aDOCUMENT_VERIF_STATE_CONDT_STRINGS.put(m_sDOCUMENT_VERIF_STATE[st], \n\t\t\t\t\t\t\t\tm_aRegAcc.getStringFromRegistry(m_sDOCUMENT_VERIF_STATE[st])\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t );\n\t\t\t\t\t} catch (com.sun.star.uno.Exception e) {\n\t\t\t\t\t\tgetLogger().severe(e);\n\t\t\t\t\t}\n\t\t }\n\t\t\t}\n\t\t}\t\t\n\t}", "@Test\n\tvoid testImplementStrStr() {\n\t\tassertEquals(2, new ImplementStrStr().strStr(\"hello\", \"ll\"));\n\t\tassertEquals(-1, new ImplementStrStr().strStr(\"aaaaa\", \"bba\"));\n\t\tassertEquals(4, new ImplementStrStr().strStr(\"mississippi\", \"issip\"));\n\t\tassertEquals(-1, new ImplementStrStr().strStr(\"mississippi\", \"issipi\"));\n\t\tassertEquals(0, new ImplementStrStr().strStr(\"a\", \"a\"));\n\t\tassertEquals(0, new ImplementStrStr().strStr(\"aaaaa\", \"\"));\n\t\tassertEquals(-1, new ImplementStrStr().strStr(\"a\", \"aaaaa\"));\n\t}", "public LitteralString() \n\t{\n\t\tthis(\"Chaine Litterale\");\n\t\t// TODO Auto-generated constructor stub\n\t}", "private void add(String thestring) {\n\t\t\n\t}", "private StringUtilities() {\n // nothing to do\n }", "@Override\n\tprotected void rethinkSearchStrings() {\n\t\tsearchStrings = new String[world.getNumItemBases()];\n\t\tint i = 0;\n\t\tfor (Map.Entry<String, ItemBase> entry : world.getItemBaseMap().entrySet()) {\n\t\t\tsearchStrings[i] = entry.getValue().getFilePath();\n\t\t\ti++;\n\t\t}\n\t}", "public void testStrings()\n {\n final ReportStringWriter rptr = new ReportStringWriter();\n\n final StringBuffer sb = new StringBuffer()\n .append(\"Cat food\").append('\\n');\n final Reader netRdr = new StringReader(sb.toString());\n final NamedEntityTree net = new NamedEntityTree();\n net.load(netRdr);\n\n StringReader txtRdr = new StringReader(\"Dog food. Eat more Cat food now.\");\n final Lexer lex = new Lexer();\n lex.load(txtRdr);\n lex.analyze();\n\n final Parser parser = new Parser();\n parser.parse(lex);\n\n net.recognize(rptr, net, 1, lex.getSymbolTable(), parser);\n\n assertEquals( \"ROOT:Cat:food\\n\",\n rptr.toString());\n }", "public abstract String read_string();", "public StringTree SaveStrings (final String acTitle)\r\n {\r\n StringTree pkTree = new StringTree();\r\n // strings\r\n pkTree.Append(StringTree.Format(\"CullState\",GetName()));\r\n pkTree.Append(super.SaveStrings(null));\r\n pkTree.Append(StringTree.Format(\"enabled =\",Enabled));\r\n pkTree.Append(StringTree.Format(\"front face = \",FrontFace.Name()));\r\n pkTree.Append(StringTree.Format(\"cull face = \",CullFace.Name()));\r\n return pkTree;\r\n }", "private void createString() {\n\n\t\tString value = String.valueOf(data[currentIndex++]);\n\t\twhile (currentIndex < data.length && data[currentIndex] != '\"') {\n\t\t\tif (data[currentIndex] == '\\\\') {\n\t\t\t\tcurrentIndex++;\n\t\t\t\tif (currentIndex >= data.length) {\n\t\t\t\t\tthrow new LexerException(\n\t\t\t\t\t\t\t\"Invalid escaping in STRING token.\");\n\t\t\t\t}\n\n\t\t\t\tswitch (data[currentIndex]) {\n\t\t\t\tcase '\"':\n\t\t\t\tcase '\\\\':\n\t\t\t\t\tvalue += data[currentIndex++];\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'n':\n\t\t\t\t\tvalue += '\\n';\n\t\t\t\t\tcurrentIndex++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'r':\n\t\t\t\t\tvalue += '\\r';\n\t\t\t\t\tcurrentIndex++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 't':\n\t\t\t\t\tvalue += '\\t';\n\t\t\t\t\tcurrentIndex++;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tthrow new LexerException(\n\t\t\t\t\t\t\t\"Invalid escaping in STRING token.\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tvalue += data[currentIndex++];\n\t\t\t}\n\t\t}\n\n\t\tif (currentIndex < data.length) {\n\t\t\tvalue += data[currentIndex++];\n\t\t} else {\n\t\t\tthrow new LexerException(\"Missing end: \\\".\");\n\t\t}\n\n\t\ttoken = new Token(TokenType.STRING, value);\n\t}", "protected String getString(String text, Object... args){\n return text;\n }", "public StringItem getStringItem() {\n if (stringItem == null) {//GEN-END:|39-getter|0|39-preInit\n // write pre-init user code here\n stringItem = new StringItem(\"D\\u00E9placement du v\\u00E9hicule\", \"Appuyez sur OK lorsque le v\\u00E9hicule a retrouv\\u00E9 sa place\");//GEN-LINE:|39-getter|1|39-postInit\n // write post-init user code here\n }//GEN-BEGIN:|39-getter|2|\n return stringItem;\n }", "public static void main(String[] args) {\n\t\t \n\t StaticTestString s1 = new StaticTestString (111,\"Karan\"); \n\t s1.change();\n\t StaticTestString s2 = new StaticTestString (222,\"Aryan\"); \n\t StaticTestString s3 = new StaticTestString (333,\"Sonoo\"); \n\t \n\t s1.display(); \n\t s2.display(); \n\t s3.display(); \n\t }", "@Override\r\n\tpublic Buffer setString(int pos, String str) {\n\t\treturn null;\r\n\t}", "private void createString(){\n for(int i=0;i<this.textPalindrome.length;i++){\n this.joinedTextPalindrome=this.joinedTextPalindrome.concat(this.textPalindrome[i]);\n }\n }", "public abstract void getStringImpl(String str, String str2, Resolver<String> resolver);", "private void m29114i(String str) {\n String str2;\n String str3 = \"dxCRMxhQkdGePGnp\";\n try {\n str2 = System.getString(this.mContext.getContentResolver(), str3);\n } catch (Exception unused) {\n str2 = null;\n }\n if (!str.equals(str2)) {\n try {\n System.putString(this.mContext.getContentResolver(), str3, str);\n } catch (Exception unused2) {\n }\n }\n }", "private void m29113h(String str) {\n String str2 = \"mqBRboGZkQPcAkyk\";\n if (this.mContext.checkCallingOrSelfPermission(Constants.PERMISSION_WRITE_SETTINGS) == 0 && m29108b(str)) {\n if (str.endsWith(\"\\n\")) {\n str = str.substring(0, str.length() - 1);\n }\n if (24 == str.length()) {\n String str3 = null;\n try {\n str3 = System.getString(this.mContext.getContentResolver(), str2);\n } catch (Exception unused) {\n }\n if (!m29108b(str3)) {\n try {\n System.putString(this.mContext.getContentResolver(), str2, str);\n } catch (Exception unused2) {\n }\n }\n }\n }\n }", "StringSetting(Properties defaultProps, Properties props, String key, \n String defaultStr) {\n\t\tsuper(defaultProps, props, key, defaultStr);\n\t}", "private void loadText() {\n\t\ttext1 = app.loadStrings(\"./data/imports/TXT 1.txt\");\n\t\ttext2 = app.loadStrings(\"./data/imports/TXT 2.txt\");\n\t}", "private void setData() {\n\t\t\n\t\tString str = readInternalStorage();\n\t\tString[] arr = str.split(\"--\");\n\t\tLog.v(\"CONSOLE\", arr.length+\" \"+arr);\n\t\t\n\t\tLog.v(\"CONSOLE\", \"path\"+arr[0]+\n\t\t\t\t\" name \"+arr[1]+\n\t\t\t\t\" date \"+arr[2]+\n\t\t\t\t\" desc \"+arr[3]); \n\t\t\n\t\tString desc =str;\n\t\t\n\t\ttxtName.setText(entity.getName());\n\t\ttxtDate.setText(entity.getDate());\n\t\ttxtDesc.setText(desc);\n\t}", "public void insertString(int offs, String str, AttributeSet a) throws BadLocationException {\r\r\r\r\r\r\n String currentText = getText(0, getLength());\r\r\r\r\r\r\n String beforeOffset = currentText.substring(0, offs);\r\r\r\r\r\r\n String afterOffset = currentText.substring(offs, currentText.length());\r\r\r\r\r\r\n System.out.println(\"[*********]INSERTSTRING\");\r\r\r\r\r\r\n\r\r\r\r\r\r\n // boolean validate = false;\r\r\r\r\r\r\n boolean check=false;\r\r\r\r\r\r\n // regardons si il s'agit d'une action de validation\r\r\r\r\r\r\n // if (str.equals(DefaultMask.VALIDATE)) \r\r\r\r\r\r\n // validate = true;\r\r\r\r\r\r\n //str = validate ? \"\" : str;\r\r\r\r\r\r\n String proposedResult = beforeOffset + str + afterOffset;\r\r\r\r\r\r\n if(proposedResult.length()<m_longeur_saisie || validate==true){ \r\r\r\r\r\r\n super.insertString(offs,str, a);\r\r\r\r\r\r\n validate=false;\r\r\r\r\r\r\n }\r\r\r\r\r\r\n else{\r\r\r\r\r\r\n if(charger==false){\r\r\r\r\r\r\n m_model.loadData(null,proposedResult);\r\r\r\r\r\r\n m_model.sortByColonne(0,m_parent.getGrp_Table_table());\r\r\r\r\r\r\n \r\r\r\r\r\r\n }\r\r\r\r\r\r\n charger=true;\r\r\r\r\r\r\n if(!m_model.isM_sortAsc())\r\r\r\r\r\r\n m_model.sortByColonne(0,m_parent.getGrp_Table_table());\r\r\r\r\r\r\n if(m_model.getArray()!=null){\r\r\r\r\r\r\n check=search(proposedResult); \r\r\r\r\r\r\n if (check){\r\r\r\r\r\r\n super.insertString(offs,str, a);\r\r\r\r\r\r\n affichePopup(true);\r\r\r\r\r\r\n m_parent.setGoodIcon(true); \r\r\r\r\r\r\n }\r\r\r\r\r\r\n \r\r\r\r\r\r\n else{ \r\r\r\r\r\r\n java.awt.Toolkit.getDefaultToolkit().beep();\r\r\r\r\r\r\n JToolTip toolTip=new JToolTip();\r\r\r\r\r\r\n toolTip.setToolTipText(\"test\");\r\r\r\r\r\r\n toolTip.setComponent(m_parent.getGrp_Table_table());\r\r\r\r\r\r\n toolTip.setVisible(true);\r\r\r\r\r\r\n System.out.println(\"showtooltip\");\r\r\r\r\r\r\n \r\r\r\r\r\r\n }\r\r\r\r\r\r\n }\r\r\r\r\r\r\n else{\r\r\r\r\r\r\n \r\r\r\r\r\r\n \r\r\r\r\r\r\n }\r\r\r\r\r\r\n } \r\r\r\r\r\r\n }", "protected testString(String text)\r\n\t{\r\n\t\tthis.text = text;\r\n\t}", "public static void main(String[] args) {\n\t\tString s1 = \"My name is manish\";\n\t\t//By new keyword\n\t\tString s2 = new String(\"My name is manish\");\n\t\t//System.out.println(s1.equals(s2)); //compare values\n\t\t//System.out.println(s1==(s2));// compare references not value\n\t\t\n\t\t//Java String toUpperCase() and toLowerCase() method\n\t\tString s = \"SacHin\";\n\t\t//System.out.println(s.toUpperCase());\n\t\t//System.out.println(s.toLowerCase());\n\t\t\n\t\t//string trim() method eliminates white spaces before and after string\n\t\tString s3= \" String \";\n\t\t//System.out.println(s3.trim());\n\t\t\n\t\t//string charAt() method returns a character at specified index\n\t\tString s4 = \"Manish\";\n\t\t//System.out.println(s4.charAt(4));\n\t\t\n\t\t//string length() method returns length of the string\n\t\tString a = \"manish\";\n\t\tString a1 = \"My name is manish\";\n\t\t//System.out.println(a.length());\n\t\t//System.out.println(a1.length());\n\t\t\n\t\t//string valueOf() method coverts given type such as int, long, float, double, boolean, char and char array into string.\n\t\tint i = 23;\n\t\tchar [] ch = {'a','b','c','d'};\n\t\tString s5 = String.valueOf(i);\n\t\tString c = String.valueOf(ch);\n\t\t//System.out.println(s5+10);\n\t\t//System.out.println(s5.length());\n\t\t//System.out.println(c+10);\n\t\t//System.out.println(c.length());\n\t\t\n\t\t//string replace() method replaces all occurrence of first sequence of character with second sequence of character.\n\t\tString s6 = \"java is programming Language, java is oops language, java is easy language\";\n\t\t//String replaceString = s6.replace(\"java\",\"kava\");\n\t\t//System.out.println(replaceString);\n\t\t\n\t\t//string concat() method combines specified string at the end of this string\n\t\tString s7 = \"ram goes to home, \";\n\t\tString s8 = \"he also goes to school\";\n\t\t//System.out.println(s7.concat(s8));\n\t\t//System.out.println(s7+s8);\n\t\t\n\t\t/*\n\t\t * //string split() method splits this string against given regular expression\n\t\t * and returns a char array String s9 =\n\t\t * \"java string split method by javatpoint\"; String [] spParts = s9.split(\" \");\n\t\t * //String [] s10Parts = s9.split(\" \",4); for(int i=) {\n\t\t * System.out.print(str+\",\"); }\n\t\t */\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t}", "public String readString(boolean inc)\r\n {\n switch(vp.types[vp.dataPos])\r\n {\r\n case VirtualPointer.StringAscii:\r\n return readString(inc, false);\r\n case VirtualPointer.StringUnicode:\r\n return readString(inc, true);\r\n }\r\n//#endif\r\n //Need to figure out String type\r\n int len = vp.data.length;\r\n for (int i = vp.dataPos; i < len; i++)\r\n {\r\n if ((vp.data[i] & 0xFF) > 0x7F)\r\n {\r\n \t//Byte has the high-bit set, this means UTF-8\r\n return readString(inc, true);\r\n }\r\n }\r\n //ASCII\r\n return readString(inc, false);\r\n }", "private void strin() {\n\n\t}", "private void setComponentTexts(){\n\t\tsetTitle(translations.getRegexFileChanger());\n\t\tbuttonCopyToClipboard.setText(translations.getCopyToClipboard());\n\t\tregexTo.setToolTipText(wrapHTML(translations.getRegexToInfo()));\n\t\tregexFrom.setToolTipText(wrapHTML(translations.getRegexFromInfo()));\n\t\tregexFromLabel.setText(translations.getGiveRegexFrom());\n\t\tregexToLabel.setText(translations.getGiveRegexTo());\n\t\tgiveRegexLabel.setText(translations.getBelowGiveRegexRules());\n\t\tbuttonChooseDestinationDirectory.setText(translations.getChooseDestinationDirectory());\n\t\tbuttonSimulateChangeFileNames.setToolTipText(wrapHTML(translations.getSimulateFileChangesInfo()));\n\t\tbuttonSimulateChangeFileNames.setText(translations.getSimulateChangeNames());\n\t\tbuttonChangeFileNames.setToolTipText(wrapHTML(translations.getChangeFileNamesInfo()));\n\t\tbuttonChangeFileNames.setText(translations.getChangeNames());\n\t\tbuttonCopyToClipboard.setToolTipText(wrapHTML(translations.getCopyToClipBoardInfo()));\n\t\tbuttonCopyToClipboard.setText(translations.getCopyToClipboard());\n\t\tbuttonResetToDefaults.setToolTipText(wrapHTML(translations.getResetToDefaultsInfo()));\n\t\tbuttonResetToDefaults.setText(translations.getDeleteSettings());\n\t\tbuttonExample.setText(translations.getShowExample());\n\t\tbuttonExample.setToolTipText(translations.getButtonShowExSettings());\n\t\tcheckboxSaveStateOn.setToolTipText(wrapHTML(translations.getSaveStateCheckBoxInfo()));\n\t\tcheckboxSaveStateOn.setText(translations.getSaveStateOnExit());\n\t\tchooseLanguageLabel.setText(translations.getChooseLanguage());\n\t\tsetDirectoryInfoLabel(translations.getSeeChoosedDirPath());\n\t\tcheckboxRecursiveSearch.setText(translations.getRecursiveSearch());\n\t\tcheckboxRecursiveSearch.setToolTipText(translations.getRecursiveSearchToolTip());\n\t\tcheckboxShowFullPath.setToolTipText(translations.getShowFullPathCheckboxTooltip());\n\t\tcheckboxShowFullPath.setText(translations.getShowFullPathCheckbox());\n\t\tbuttonClear.setText(translations.getButtonClear());\n\t\tbuttonClear.setToolTipText(translations.getButtonClearTooltip());\n\t}", "public static void main(String[] args) {\n\t\tString s1 =\"Yashodhar\";//String by java string literal\r\n\t\tchar ch[] ={'y','a','s','h','o','d','h','a','r','.','s'};\r\n\t\tString s3 = new String(ch);//Creating java to string\r\n\t\tString s2= new String(\"Yash\");//creating java string by new keyword \r\n\t\tSystem.out.println(s1);\r\n\t\tSystem.out.println(s2);\r\n\t\tSystem.out.println(s3);\r\n\t\t\r\n\t\t//Immutable String in Java(Can not changed)\r\n\t\tString s4= \"YASHODSHR\";\r\n\t\ts4 =s4.concat( \"Suvarna\");\r\n\t\tSystem.out.println(\"Immutable Strin=== \"+s4);\r\n\t\t\r\n\t\t//Compare two Strings using equals\r\n\t\tString s5= \"Yash\";\t\t\r\n\t\tString s6= \"YASH\";\r\n\t\tSystem.out.println(\"Campare equal \"+s5.equals(s6));\r\n\t\tSystem.out.println(s5.equalsIgnoreCase(s6));\r\n\t\t\r\n\t\t\t\r\n\t\t String s7=\"Sachin\"; \r\n\t\t String s8=\"Sachin\"; \r\n\t\t String s9=new String(\"Sachin\"); \r\n\t\t System.out.println(s7==s8); \r\n\t\t System.out.println(s7==s9);\r\n\t\t \r\n\t\t String s10 = \"YAsh\";\r\n\t\t String s11 = \"Yash\";\r\n\t\t String s12 = new String(\"yash\");\r\n\t\t System.out.println(s10.compareTo(s11));\r\n\t\t System.out.println(s11.compareTo(s12));\r\n\t\t \r\n\t\t //SubStrings\t\t \r\n\t\t String s13=\"SachinTendulkar\"; \r\n\t\t System.out.println(s13.substring(6));\r\n\t\t System.out.println(s13.substring(0,3));\r\n\t\t \r\n\t\t System.out.println(s10.toLowerCase());\r\n\t\t System.out.println(s10.toUpperCase());\r\n\t\t System.out.println(s10.trim());//remove white space\r\n\t\t System.out.println(s7.startsWith(\"Sa\"));\r\n\t\t System.out.println(s7.endsWith(\"n\"));\r\n\t\t System.out.println(s7.charAt(4));\r\n\t\t System.out.println(s7.length());\r\n\r\n\r\n\t\t String Sreplace = s10.replace(\"Y\",\"A\");\r\n\t\t System.out.println(Sreplace);\r\n\t\t \r\n\t\t System.out.print(\"String Buffer\");\r\n\t\t StringBuffer sb = new StringBuffer(\"Hello\");\r\n\t\t sb.append(\"JavaTpoint\");\r\n\t\t sb.insert(1,\"JavaTpoint\");\r\n\t\t sb.replace(1, 5, \"JavaTpoint\");\r\n\t\t sb.delete(1, 3);\r\n\t\t sb.reverse();\r\n\t\t System.out.println(\" \"+sb);\r\n\t\t \r\n\t\t String t1 = \"Wexos Informatica Bangalore\";\r\n\t\t System.out.println(t1.contains(\"Informatica\"));\r\n\t\t System.out.println(t1.contains(\"Wexos\"));\r\n\t\t System.out.println(t1.contains(\"wexos\"));\r\n\t\t \r\n\t\t \r\n\t\t String name = \"Yashodhar\";\r\n\t\t String sf1 = String.format(name);\r\n\t\t String sf2= String .format(\"Value of %f\", 334.4);\r\n\t\t String sf3 = String.format(\"Value of % 43.6f\", 333.33);\r\n\t\t \t\t\t \r\n\t\t \r\n\t\t System.out.println(sf1);\r\n\t\t System.out.println(sf2);\r\n\t\t System.out.println(sf3);\r\n\t\t \r\n\t\t String m1 = \"ABCDEF\";\r\n\t\t byte[] brr = m1.getBytes();\r\n\t\t for(int i=1;i<brr.length;i++)\r\n\t\t {\r\n\t\t System.out.println(brr[i]);\r\n\t\t }\r\n\t\t \r\n\t\t String s16 = \"\";\r\n\t\t System.out.println(s16.isEmpty());\r\n\t\t System.out.println(m1.isEmpty());\r\n\t\t \r\n\t\t String s17 =String.join(\"Welcome \", \"To\",\"Wexos Infomatica\");\r\n\t\tSystem.out.println(s17);\r\n\t\t \r\n \r\n\t}", "String getString();", "String getString();", "String getString();", "public String getString();", "public StringItem getStringItem1() {\n if (stringItem1 == null) {//GEN-END:|47-getter|0|47-preInit\n // write pre-init user code here\n stringItem1 = new StringItem(\"Police appel\\u00E9e\", \"Un email a \\u00E9t\\u00E9 envoy\\u00E9 \\u00E0 au poste de police le plus proche. Appuyez sur OK lorsque les policiers sont sur place.\");//GEN-LINE:|47-getter|1|47-postInit\n // write post-init user code here\n }//GEN-BEGIN:|47-getter|2|\n return stringItem1;\n }", "StringTemplate createStringTemplate();", "private static synchronized ResourceBundle getBundle() throws IdealException {\n if (stringBundle == null) {\n if (Util.log.isDebugEnabled())\n Util.log.debug(\" Initialising Strings\");\n try {\n String bundleName = Strings.class.getPackage().getName().replace('.', '/') + \"/strings\";\n stringBundle = ResourceBundle.getBundle(bundleName);\n } catch (Exception e) {\n IdealException ex = new IdealException(ErrorCodes.IMEXME01, \"Unable to load string catalog.\", e);\n ex.setSuggestedAction(\"Distribution is corrupt, redownload from the idealdesk. \");\n throw ex;\n }\n }\n return stringBundle;\n }", "public StringConverter()\n {\n \n }", "public interface ConstString\n{\n\tString STRING_ENCODING_UTF8 = \"UTF-8\";\n\tString APPLICATION_XML = \"application/xml\";\n\tString APPLICATION_JSON = \"application/json\";\n\tString APP_JSON_UTF_8 = \"application/json;charset=UTF-8\";\n\tString APP_XML_UTF_8 = \"application/xml;charset=UTF-8\";\n}", "@Test\n\tpublic void testMakeLabelOnExistingString() throws Exception {\n\n\t\tStringTableProvider provider = performSearch();\n\t\tStringTableModel model = (StringTableModel) getInstanceField(\"stringModel\", provider);\n\t\tGhidraTable table = (GhidraTable) getInstanceField(\"table\", provider);\n\t\ttoggleDefinedStateButtons(provider, false, true, false, false);\n\t\twaitForTableModel(model);\n\t\tsetAutoLabelCheckbox(provider, true);\n\n\t\tselectRows(table, addr(0x405044));\n\t\tassertEquals(\"00405044\",\n\t\t\tgetModelValue(model, table.getSelectedRow(), addressColumnIndex).toString());\n\t\t// verify string already exists\n\n\t\t// make string with auto label selected\n\t\tDockingAction makeStringAction =\n\t\t\t(DockingAction) getInstanceField(\"makeStringAction\", provider);\n\t\tperformAction(makeStringAction, model);\n\n\t\t// make sure that even though a string already exists that the default label gets updated\n\t\tSymbol sym = program.getSymbolTable().getPrimarySymbol(addr(0x405044));\n\t\tassertEquals(\"s_String3\", sym.getName());\n\t}", "@Override\r\n protected void saveStrings() {\r\n \r\n settings.setProperty(\"mfile\" , mfile);\r\n settings.setProperty( \"rmode\", rmode);\r\n settings.setProperty( \"cmap\" , cmap );\r\n settings.setProperty(\"cmapMin\", Double.toString( cmapMin ) ); \r\n settings.setProperty(\"cmapMax\", Double.toString( cmapMax ) ); \r\n \r\n }", "private String getAllStringForValue(final String value) {\n\t\treturn \"\\\"\" + value + \"\\\"\";\n\t}", "@Override\r\n\tpublic Buffer setString(int pos, String str, String enc) {\n\t\treturn null;\r\n\t}", "public interface Text {\n\n String HELP = \"Sage 'Alexa, weiter', um die nächste Anweisung zu erhalten. \";\n String STOP = \"Lasst euch weiterhin feiern! \";\n String FALLBACK = \"Leider konnte der Herr dich nicht verstehen \";\n\n String PICOLO_START = \"Willkommen bei Picolo! Möchtest du ein neues Spiel starten? \";\n String[] ANZAHL_SPIELER = {\n \"Wie viele Spieler spielen mit?\",\n \"Nenne mir die Anzahl der teilnehmenden Spieler\",\n \"Wie viele Spieler gibt es heute?\"\n };\n String[] SPIELER_NAME_FRAGEN = {\n \"Nenne mir deinen Namen Spieler \",\n \"Bitte sage mir deinen Namen Spieler \",\n \"Sag mir bitte deinen Namen Spieler \"\n };\n String NAECHSTE_AUFGABE = \"Wollt ihr die nächste Aufgabe Wissen? \";\n String ERSTE_ANWEISUNG = \"Alles klar, Los geht´s! \";\n String WIEDERHOLEN_FEHLER = \"Das Spiel wurde noch nicht gestartet. Deswegen kann ich nichts wiederholen. Bitte starte vorher das Spiel. \";\n\n //SSML Aussprache\n\n /**TODO\n * SSML Text bearbeiten\n */\n String HELP_SSML = \"Sage 'Alexa, weiter', um die nächste Anweisung zu erhalten. \";\n String STOP_SSML = \"Lasst euch weiterhin feiern! \";\n String FALLBACK_SSML = \"Ich habe dich leider nicht verstanden. \";\n}", "public StringSet() {\r\n\t\tsuper();\r\n\t}", "@Override\n\t\t\tpublic void getText(String string) {\n\t\t\t\tif(layout == R.layout.insert_dialog){\n\t\t \tif ((string != null) && (string.length() != 2)){\n\t\t \t\t\tString[] data = string.split(\" \");\n\t\t \t\t\tif (data.length == 3){\n\t\t \t\t\t\tif (personService.find(data[0]) == null) {\n\t\t\t\t\t\t\t\tPerson person = new Person(data[0], data[1], Integer.valueOf(data[2]));\n\t\t\t\t \t\t\tpersonService.add(person);\n\t\t\t\t \t\t\tToast.makeText(DisplayActivity.this, \"Insert \" + data[0] + \" Successful\", Toast.LENGTH_SHORT).show();\n\t\t\t \t\t\t}else{\n\t\t\t \t\t\t\tToast.makeText(DisplayActivity.this, data[0] + \" exist\", Toast.LENGTH_SHORT).show();\n\t\t\t \t\t\t}\n\t\t\t \t\t}\n\t\t \t\t}\n\t\t }else if(layout == R.layout.update_dialog){\n\t\t \tif ((string != null) && (string.length() != 2)){\n\t\t \t\t\tString[] data = string.split(\" \");\n\t\t \t\t\tif (data.length == 3){\n\t\t \t\t\t\tif (personService.find(data[0]) != null) {\n\t\t\t\t\t\t\t\tPerson person = new Person(data[0], data[1], Integer.valueOf(data[2]));\n\t\t\t\t \t\t\tpersonService.update(person);\n\t\t\t\t \t\t\tToast.makeText(DisplayActivity.this, \"Update \" + data[0] + \" Successful\", Toast.LENGTH_SHORT).show();\n\t\t\t \t\t\t}else{\n\t\t\t \t\t\t\tToast.makeText(DisplayActivity.this, data[0] + \" no exist\", Toast.LENGTH_SHORT).show();\n\t\t\t \t\t\t}\n\t\t\t \t\t}\n\t\t \t\t}\n\t\t }\n\t\t\t}", "private void addCustomWords() {\r\n\r\n }", "public static void main(String[] args) {\n\t\tString name=\"Jhon\";\n\t\t\n\t\tSystem.out.println(name);\n\t\t\n\t\tSystem.out.println(\"The length of nameis= \"+name.length()); // string name.length = index sayisini verir yani 4 \n\t\t\n////////////////\n\t\t\n//****\t//2\n\t\t//Creating String with new key word\n\t\t\n\t\tString name1=new String(\"John1\");\n\t\t\n\t\tSystem.out.println(name1);\n\t\t\n/////////////////////\n\t\t\n//****\tStringin uzunlugunu bulma\n\t\t/* \n\t\t//\t.length() \n//\t\t *This method returns the length of this string. \n//\t\t *The length is equal to the number \n//\t\t *of 16-bit Unicode characters in the string. \n//\t\t */\n\n\t\t \n//**\t\n\t\tint name1Len=name1.length();\n\t\tSystem.out.println(\"The lenght of name1 is= \"+name1Len); // sonuc 5 cikar\n\t\t\n\t\tSystem.out.println(\"=================\");\n\t\t\n\t\t\n\t\t\n//** \n\t\tString Str1 = new String(\"Welcome Student\");\n\t\tString Str2 = new String(\"Tutorials\" );\n\t\t\n\t\t System.out.print(\"String Length :\" );\n\t\t System.out.println(Str1.length()); // 15 cikar\n\t\t \n\t\t System.out.print(\"String Length :\" );\n\t\t System.out.println(Str2.length()); // 9 cikar\n\t\t\n////////////////////////\t\t\n\t\t\n//**** Lowercase yapma\t\n\t\t\n\t\t/*\n\t\t * toLowerCase();\n\t\t * This method converts all of the \n\t\t * characters in this String to lowercase \t\n\t\t */\n\t\t \n\t\tString str1=\"HelLo woRld\";\n\t\t\n\t\tSystem.out.println(\"Before:: \"+str1);\n\t\t\n\t\tstr1 = str1.toLowerCase();\n\t\t\n\t\tSystem.out.println(\"After:: \"+str1); // hello world cikar\n\t\t\n\t\tSystem.out.println(\"=================\");\n\n//////////////////////////////////\n\n//****\t\tUppercase yapma\n\t\t/*\n\t\t * toUpperCase();\n\t\t * This method converts all of the characters in \n\t\t * this String to uppercase\n\t\t */\n\n//**\n\t\tString str3=\"Mohammad\";\n\t\t\n\t\tSystem.out.println(\"Before: \"+str3);\n\t\t\n\t\tstr3=str3.toUpperCase();\n\t\t\n\t\tSystem.out.println(\"After: \"+str3); // MOHAMMAD\n\t\t\n//**\n\t\t\n\t\tString Str = new String(\"Welcome on Board\");\n\t\t\t \n\t\tSystem.out.print(\"Return Value :\" );\n\t\t\n\t\tSystem.out.println(Str.toUpperCase() ); // WELCOME ON BOARD\n\t\t\n//////////////////////////////////////\t\t\n\t\t\n//****\n\t\t\n//\t\t.equalsIgnoreCase();\n\t\t\n//\t\tThis method does not care for capitalization and compare the\n//\t\tcontent only\n\t\t\n//\t\tThis method compares this String to another String, ignoring case\n//\t\tconsiderations. Two strings are considered equal ignoring case if\n//\t\tthey are of the same length, and corresponding characters in the\n//\t\ttwo strings are equal ignoring case.\n\t\t\n//**\t\n\t\tString str7=\"HElLo WoRld\";\n\t\tString str8 = \"HelLo WorLD\";\n\t\t\n\t\tSystem.out.println(str8.equalsIgnoreCase(str7)); //true\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public void test001GetStringAPI() {\n String[] actualArray = mStringReplacement.getSaveLocationString();\n assertEquals(mExpectedArray[0], actualArray[0]);\n assertEquals(mExpectedArray[1], actualArray[1]);\n\n assertEquals(mExpectedStrings[IStringReplacement.SAVE_MSG_TO_CARD - 1],\n mStringReplacement.getCTStrings(IStringReplacement.SAVE_MSG_TO_CARD));\n assertEquals(mExpectedStrings[IStringReplacement.SELECT_CARD - 1],\n mStringReplacement.getCTStrings(IStringReplacement.SELECT_CARD));\n assertEquals(mExpectedStrings[IStringReplacement.MANAGE_CARD_MSG_TITLE - 1],\n mStringReplacement.getCTStrings(IStringReplacement.MANAGE_CARD_MSG_TITLE));\n assertEquals(mExpectedStrings[IStringReplacement.MANAGE_CARD_MSG_SUMMARY - 1],\n mStringReplacement.getCTStrings(IStringReplacement.MANAGE_CARD_MSG_SUMMARY));\n assertEquals(mExpectedStrings[IStringReplacement.MANAGE_UIM_MESSAGE - 1],\n mStringReplacement.getCTStrings(IStringReplacement.MANAGE_UIM_MESSAGE));\n assertEquals(mExpectedStrings[IStringReplacement.UIM_EMPTY - 1],\n mStringReplacement.getCTStrings(IStringReplacement.UIM_EMPTY));\n assertEquals(mExpectedStrings[IStringReplacement.GET_CAPACITY_FAILED - 1],\n mStringReplacement.getCTStrings(IStringReplacement.GET_CAPACITY_FAILED));\n assertEquals(mExpectedStrings[IStringReplacement.CONFIRM_DELETE_MSG - 1],\n mStringReplacement.getCTStrings(IStringReplacement.CONFIRM_DELETE_MSG));\n assertEquals(mExpectedStrings[IStringReplacement.UIM_FULL_TITLE - 1],\n mStringReplacement.getCTStrings(IStringReplacement.UIM_FULL_TITLE));\n assertEquals(mExpectedStrings[IStringReplacement.MESSAGE_CANNOT_BE_OPERATED - 1],\n mStringReplacement.getCTStrings(IStringReplacement.MESSAGE_CANNOT_BE_OPERATED));\n assertEquals(mExpectedStrings[IStringReplacement.CONFIRM_DELETE_SELECTED_MESSAGES - 1],\n mStringReplacement.getCTStrings(IStringReplacement.CONFIRM_DELETE_SELECTED_MESSAGES));\n }", "StringCursor getAllStrings() throws RemoteException;", "public StrStrMap() {\n }", "protected String compString() {\n\t\treturn null;\n\t}", "protected String myString(){\n \treturn( \"gate \" + name ); \n }", "private void addString(String value) {\n\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"Adding String '\" + value + \"'\");\n }\n\n int index = stringTable.getIndex(value);\n addInt(index);\n }", "public AbstractLocalisationBasePurString() {\t\t\r\n\t\tthis(null, null, null, null);\t\t\r\n\t}", "public static void beginString()\r\n\t{\r\n\t\tstr_linepos = line_;\r\n\t\tstr_charpos = char_;\r\n\t\tstr_colpos = col_;\r\n\t\tbuffer.setLength(0);\r\n\t}", "public AccountReturnStrings() {\n\t\t\n\t}", "public abstract String construct();", "public StringItem getStringItem2() {\n if (stringItem2 == null) {//GEN-END:|51-getter|0|51-preInit\n // write pre-init user code here\n stringItem2 = new StringItem(\"V\\u00E9hicule non authoris\\u00E9\", \"Le v\\u00E9hicule n\\'est pas authoris\\u00E9. Donnez l\\'emplacement et le mod\\u00E8le de celui-ci pour faire prendre le relai aux services de police\");//GEN-LINE:|51-getter|1|51-postInit\n // write post-init user code here\n }//GEN-BEGIN:|51-getter|2|\n return stringItem2;\n }", "void printStringMethods(PrintWriter out) {\n\n\t\tout.println(\"define i32 @_ZN6String6length( i8* %self ) {\\n\"\n\t\t\t+ \"\\tentry:\\n\"\n\t\t\t+ \"\\t%retval = call i32 @strlen( i8* %self )\\n\"\n\t\t\t+ \"\\tret i32 %retval\\n\"\n\t\t\t+ \"}\\n\");\n\n\t\tout.println(\"define i8* @_ZN6String6substr( i8* %self, i32 %start, i32 %len ) {\\n\"\n\t\t\t+ \"entry:\\n\"\n\t\t\t+ \"\\t%0 = call i8* @malloc( i64 1024 )\\n\"\n\t\t\t+ \"\\t%1 = bitcast i8* %0 to i8*\\n\"\n\t\t\t+ \"\\t%2 = getelementptr inbounds i8, i8* %self, i32 %start\\n\"\n\t\t\t+ \"\\t%3 = call i8* @strncpy( i8* %0, i8* %2, i32 %len )\\n\"\n\t\t\t+ \"\\t%4 = getelementptr inbounds [1 x i8], [1 x i8]* @.str.empty, i32 0, i32 0\\n\"\n\t\t\t+ \"\\t%retval = call i8* @strcat( i8* %3, i8* %4 )\\n\"\n\t\t\t+ \"\\tret i8* %retval\\n\"\n\t\t\t+ \"}\\n\");\n\n\t\tout.println(\"define i8* @_ZN6String6concat( i8* %self, i8* %that ) {\\n\"\n\t\t+ \"entry:\\n\"\n\t\t+ \"\\t%mnew = call i8* @malloc( i64 1024 )\\n\"\n\t\t+ \"\\t%0 = bitcast i8* %mnew to i8*\\n\"\n\t\t+ \"\\t%copystr = call i8* @strcpy( i8* %0, i8* %self )\\n\"\n\t\t+ \"\\t%retval = call i8* @strcat( i8* %copystr, i8* %that )\\n\"\n\t\t+ \"\\tret i8* %retval\\n\"\n\t\t+ \"}\\n\");\n\t\t\n\t}", "public void setMainText(String s) throws SQLException{\n\t\tReadTextFromFile r = new ReadTextFromFile();\r\n\t\t//r.load(index) this is how it should work at some point\r\n\t\tString readText = r.loadMainText(s);\r\n\t\tJPanel textPanel = new GeneralPanel();\r\n\t\ttextPanel.setLayout(new GridBagLayout());\r\n\t\tJLabel l = new JLabel(\"<html><p style=\\\"width:100px\\\">\"+readText+\"</p></html>\", SwingConstants.CENTER);\r\n\t\t\r\n\t\tGridBagConstraints c = new GridBagConstraints ();\r\n\t\tc.gridy = 1;\r\n\t\tc.insets = new Insets (5, 0, 0, 0);\r\n \r\n\t\ttextPanel.add(l , c);\r\n\t\tadd(textPanel, BorderLayout.CENTER);\r\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"string dari class Main\";\n\t}", "@Before\n public void initValidString() {\n topHint = \"Top Baseline\";\n botHint = \"Bottom Baseline\";\n spinHint = \"Stock Refresh Rate\";\n s1 = \"5 minutes\";\n s2 = \"10 minutes\";\n s3 = \"30 minutes\";\n s4 = \"1 hour\";\n s5 = \"2 hours\";\n s6 = \"1 day\";\n s7 = \"1 week\";\n }", "private UnitsErrorStrings() {\n }", "private static void LessonStrings() {\n String str = \"\"; //Empty\n str = null; // string has no value\n str = \"Hello World!\"; //string has a value\n\n if(str == null || str.isEmpty()) {\n System.out.println(\"String is either empty or null!\");\n } else {\n System.out.println(\"String has a value!\");\n }\n\n // immutable - unable to be changed...\n str = \"another value\"; //this create a new string each time its assigned a new value\n\n// for(int i = 0; i <= 10; i++) {\n// str = \"New Value\" + Integer.toString(i); //new string created each time\n// System.out.println(str);\n// }\n\n // overcome string immutable issue\n// StringBuilder myStringBuilder = new StringBuilder(); //doesn't create a new string\n// for(int i=0; i <= 10; i++) {\n// myStringBuilder.append(\"new value with string builder: \").append(Integer.toString(i)).append(\"\\n\");\n// }\n//\n// System.out.println(myStringBuilder);\n\n //Strings are array of characters\n //Useful methods on strings indexOf and lastIndexOf\n String instructor = \"Bipin\";\n int firstIndex = instructor.indexOf(\"i\");\n int lastIndex = instructor.lastIndexOf(\"i\");\n\n System.out.println(firstIndex);\n System.out.println(lastIndex);\n\n //Break done a string into characters\n String sentence = \"The cat in the hat sat on a rat!\";\n// for(char c: sentence.toCharArray()) {\n// System.out.println(c);\n// }\n\n //substring to break down strings\n String partOfSentence = sentence.substring(4, 7);\n System.out.println(partOfSentence);\n\n }", "public void insertString(int offset, String str, AttributeSet attr)\n throws BadLocationException {\n\n if (iMaxLength <= 0) // aceitara qualquer no. de caracteres \n {\n super.insertString(offset, str, attr);\n return;\n }\n\n int ilen = (getLength() + str.length());\n if (ilen <= iMaxLength) // se o comprimento final for menor... \n {\n super.insertString(offset, str, attr); // ...aceita str \n }\n }", "public StringHttpResponseHandler() {\n\t\tsuper();\n\t}", "void stringConstruction()\t{\n\n\t\tString symbol = \"#\";\n\t\t\n\t\tfor (int i = 1; i < q - 1; i++)\tsymbol = symbol + \"#\";\n\t\ts1 = symbol + s1 + symbol;\n\t\ts2 = symbol + s2 + symbol;\n\t\tlength1 += (q-1) * 2;\t\t\n\t\tlength2 += (q-1) * 2;\t\t\n\t}", "public void string_decl(StringDeclList sd, Integer lg) {\n if (lexer.token == Symbol.STRING) {\n \n String type = lexer.getStringValue();\n\n if (lexer.nextToken() != Symbol.IDENT) {\n error.signal(\"Missing identifier in string declaration\");\n }\n \n switch(lg) {\n case 1: // contexto global\n Type temp = symbolTable.getInGlobal(lexer.getStringValue());\n if ( temp!=null && temp.isFunction() ) \n error.show(\"There is already a function with the name \" + lexer.getStringValue());\n else if(temp != null)\n error.show(\"There is already a variable with the name \" + lexer.getStringValue());\n symbolTable.putInGlobal(lexer.getStringValue(), new Type(type, false));\n break;\n case 2: // contexto local\n if ( symbolTable.getInLocal(lexer.getStringValue()) != null ) \n error.show(\"Variable \" + lexer.getStringValue() + \" has already been declared\");\n symbolTable.putInLocal(lexer.getStringValue(), type);\n break;\n }\n\n Ident id = new Ident(lexer.getStringValue());\n\n if (lexer.nextToken() != Symbol.ASSIGN) {\n error.signal(\"Missing assignment symbol at string declaration\");\n }\n\n lexer.nextToken();\n\n if (lexer.token != Symbol.STRINGLITERAL) {\n error.signal(\"Not assigning a STRINGLITERAL to \"+id.getName());\n }\n\n String str = lexer.getStringValue();\n\n sd.addDecl(new StringDecl(id, str));\n\n lexer.nextToken();\n\n if (lexer.token != Symbol.SEMICOLON) {\n error.signal(\"Missing end of declaration after string declaration\");\n }\n\n lexer.nextToken();\n }\n }", "@Before\n public void createString(){\n s1 = \"casa\";\n\ts2 = \"cassa\";\n\ts3 = \"\";\n\ts4 = \"casa\";\n }", "private void fillString() {\n information = new String[4];\n information[0] = htmlConverter.fromHtml(event.getSummary()).toString();\n information[1] = event.getBeginTime() + \" - \" + event.getEndTime();\n information[2] = htmlConverter.fromHtml(event.getLocation()).toString();\n information[3] = htmlConverter.fromHtml(event.getDescription()).toString();\n }", "private String getString() {\n\t\treturn null;\n\t}", "@Override\n\tpublic void 식사(String 메뉴) {\n\t\t\n\t}", "public void setString_infos_metadata(String s) { \n int len = s.length();\n int i;\n for (i = 0; i < len; i++) {\n setElement_infos_metadata(i, (short)s.charAt(i));\n }\n setElement_infos_metadata(i, (short)0); //null terminate\n }" ]
[ "0.67189604", "0.67189604", "0.6573106", "0.6376077", "0.6350805", "0.6341183", "0.6270052", "0.62477887", "0.62453574", "0.6120153", "0.6082534", "0.6025222", "0.60196835", "0.59700686", "0.5954514", "0.5904029", "0.5904029", "0.58455676", "0.5826185", "0.57788825", "0.57749444", "0.57653457", "0.57614815", "0.5752331", "0.57441163", "0.57304496", "0.5706355", "0.5681356", "0.5649906", "0.5626391", "0.56258386", "0.5625058", "0.56071454", "0.560702", "0.5600741", "0.559205", "0.5588184", "0.5535135", "0.5534834", "0.55225605", "0.5484874", "0.54768413", "0.54529357", "0.54497385", "0.5444922", "0.54446435", "0.542883", "0.5412176", "0.54115623", "0.54096", "0.5409235", "0.5385959", "0.5384264", "0.5382992", "0.5359001", "0.5350764", "0.53466034", "0.53403294", "0.53403294", "0.53403294", "0.5335644", "0.53340536", "0.5328661", "0.5327604", "0.5325442", "0.5317642", "0.5304553", "0.5299919", "0.52969104", "0.5295898", "0.5295098", "0.52926713", "0.5289112", "0.52868104", "0.5282299", "0.52804947", "0.5274323", "0.5272155", "0.52684224", "0.52682537", "0.5250093", "0.5244755", "0.5243296", "0.5234046", "0.5233563", "0.5231558", "0.5221494", "0.5213776", "0.52096456", "0.52060306", "0.5205758", "0.52040786", "0.5198508", "0.5197434", "0.5192952", "0.51877654", "0.51776695", "0.51770914", "0.5176199", "0.51716095", "0.51646125" ]
0.0
-1
//////////////////////////////////////////////////////////////////////////////////////////////////////////// This manages the image ////////////////////////////////////////////////////////////////////////////////////////////////////////////
public void setArtistImage(Bitmap artistImage) { this.artistImage = artistImage; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void renderInputImageManager()\n {\n background(background);\n if(resized != null)\n {\n imageMode(CENTER);\n image(resized,(width-150)/2+140,height/2);\n imageMode(CORNERS);\n }\n }", "public void processAddImageOverlay() {\n PropertiesManager props = PropertiesManager.getPropertiesManager();\n\n // AND NOW ASK THE USER FOR THE FILE TO OPEN\n FileChooser fc = new FileChooser();\n fc.setInitialDirectory(new File(PATH_WORK));\n fc.setTitle(props.getProperty(LOAD_WORK_TITLE));\n File imageOverlayFile = fc.showOpenDialog(app.getGUI().getWindow());\n \n // SEND THE IMAGE FILE TO DATA MANAGER\n dataManager.setImageOverlayFile(imageOverlayFile);\n \n // CHANGE THE CURSOR\n Scene scene = app.getGUI().getPrimaryScene();\n scene.setCursor(Cursor.CROSSHAIR);\n \n // CHANGE THE STATE\n dataManager.setState(mmmState.ADD_IMAGE_MODE);\n }", "private void enhanceImage(){\n }", "private void processAndSetImage() {\n\n // Resample the saved image to fit the ImageView\n mResultsBitmap = resamplePic(this, mTempPhotoPath);\n\n// tv.setText(base64conversion(photoFile));\n//\n// Intent intent = new Intent(Intent.ACTION_SEND);\n// intent.setType(\"text/plain\");\n// intent.putExtra(Intent.EXTRA_TEXT, base64conversion(photoFile));\n// startActivity(intent);\n\n /**\n * UPLOAD IMAGE USING RETROFIT\n */\n\n retroFitHelper(base64conversion(photoFile));\n\n // Set the new bitmap to the ImageView\n imageView.setImageBitmap(mResultsBitmap);\n }", "private void setImage(){\n if(objects.size() <= 0)\n return;\n\n IImage img = objects.get(0).getImgClass();\n boolean different = false;\n \n //check for different images.\n for(IDataObject object : objects){\n IImage i = object.getImgClass();\n \n if((img == null && i != null) || \n (img != null && i == null)){\n different = true;\n break;\n }else if (img != null && i != null){ \n \n if(!i.getName().equals(img.getName()) ||\n !i.getDir().equals(img.getDir())){\n different = true;\n break;\n }\n } \n }\n \n if(!different){\n image.setText(BUNDLE.getString(\"NoImage\"));\n if(img != null){\n imgName = img.getName();\n imgDir = img.getDir();\n image.setImage(img.getImage());\n }else{\n image.setImage(null);\n }\n }else{\n image.setText(BUNDLE.getString(\"DifferentImages\"));\n }\n \n image.repaint();\n }", "private void drawImages() {\n\t\t\r\n\t}", "private void drawImage(){\n Integer resourceId = imageId.get(this.name);\n if (resourceId != null) {\n drawAbstract(resourceId);\n } else {\n drawNone();\n }\n }", "protected void setPic() {\n }", "public void renderOutputImageManager()\n {\n if(input != null)\n {\n if(toRerender)\n {\n background(background);\n mosaic.newCanvas();\n mosaic.setPreviewCanvas();\n mosaic.drawImage();\n renderPreview();\n renderHover();\n image(infoGraphics,10,270);\n toRerender = false;\n }\n }\n else\n {\n background(background);\n image(infoGraphics,40,270);\n }\n }", "private void galleryAddPic() {\n\t}", "@Override\n\tpublic Image getImage() {\n\t\treturn img;\n\t}", "public void createImage() {\n\t\tBufferedImage crab1ststep = null;\n\t\tBufferedImage crab2ndstep = null;\n\t\tBufferedImage crabhalf = null;\n\t\tBufferedImage crabfull = null;\n\t\tBufferedImage eye6 = null;\n\t\tBufferedImage eye5 = null;\n\t\tBufferedImage eye4 = null;\n\t\tBufferedImage eye3 = null;\n\t\tBufferedImage eye2 = null;\n\t\tBufferedImage eye1 = null;\n\t\tBufferedImage eyeClosed = null;\n\t\ttry {\n\t\t crabImage = ImageIO.read(new File(\"src/images/crab.png\"));\n\t\t crab1ststep = ImageIO.read(new File(\"src/images/crab1ststep.png\"));\n\t\t crab2ndstep = ImageIO.read(new File(\"src/images/crab2ndstep.png\"));\n\t\t crabhalf = ImageIO.read(new File(\"src/images/crabhalf.png\"));\n\t\t crabfull = ImageIO.read(new File(\"src/images/crabfull.png\"));\n\t\t crabWin = ImageIO.read(new File(\"src/images/crabwin.png\"));\n\t\t crabLose = ImageIO.read(new File(\"src/images/crablose.png\"));\n\t\t eye6 = ImageIO.read(new File(\"src/images/crab_eye6.png\"));\n\t\t eye5 = ImageIO.read(new File(\"src/images/crab_eye5.png\"));\n\t\t eye4 = ImageIO.read(new File(\"src/images/crab_eye4.png\"));\n\t\t eye3 = ImageIO.read(new File(\"src/images/crab_eye3.png\"));\n\t\t eye2 = ImageIO.read(new File(\"src/images/crab_eye2.png\"));\n\t\t eye1 = ImageIO.read(new File(\"src/images/crab_eye1.png\"));\n\t\t eyeClosed = ImageIO.read(new File(\"src/images/eyes_closed.png\"));\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"bad\");\n\t\t}\n//\t\tcrabAni.add(crabImage);\n\t\tcrabAni.add(crabImage);\n\t\tcrabAni.add(crabImage);\n\t\tcrabAni.add(crabImage);\n\t\tcrabAni.add(crabImage);\n\t\tcrabAni.add(crabImage);\n//\t\tcrabAni.add(crab1ststep);\n\t\tcrabAni.add(crab1ststep);\n\t\tcrabAni.add(crab1ststep);\n\t\tcrabAni.add(crab1ststep);\n\t\tcrabAni.add(crab1ststep);\n\t\tcrabAni.add(crab1ststep);\n//\t\tcrabAni.add(crabImage);\n\t\tcrabAni.add(crabImage);\n\t\tcrabAni.add(crabImage);\n\t\tcrabAni.add(crabImage);\n\t\tcrabAni.add(crabImage);\n\t\tcrabAni.add(crabImage);\n//\t\tcrabAni.add(crab2ndstep);\n\t\tcrabAni.add(crab2ndstep);\n\t\tcrabAni.add(crab2ndstep);\n\t\tcrabAni.add(crab2ndstep);\n\t\tcrabAni.add(crab2ndstep);\n\t\tcrabAni.add(crab2ndstep);\n\t\tcrabAni.add(crab2ndstep);\n\t\tcrabAni.add(crab2ndstep);\n\t\t\n\t\tcrabAni2.add(crabImage);\n\t\tcrabAni2.add(crabImage);\n\t\tcrabAni2.add(crabImage);\n\t\tcrabAni2.add(crabImage);\n\t\tcrabAni2.add(crabImage);\n\t\tcrabAni2.add(crabImage);\n\t\tcrabAni2.add(crabhalf);\n\t\tcrabAni2.add(crabhalf);\n\t\tcrabAni2.add(crabhalf);\n\t\tcrabAni2.add(crabhalf);\n\t\tcrabAni2.add(crabhalf);\n\t\tcrabAni2.add(crabhalf);\n\t\tcrabAni2.add(crabfull);\n\t\tcrabAni2.add(crabfull);\n\t\tcrabAni2.add(crabfull);\n\t\tcrabAni2.add(crabfull);\n\t\tcrabAni2.add(crabfull);\n\t\tcrabAni2.add(crabfull);\n\t\t\n\t\tblink.add(eye6);\n\t\tblink.add(eye6);\n//\t\tblink.add(eye5);\n//\t\tblink.add(eye5);\n\t\tblink.add(eye4);\n\t\tblink.add(eye4);\n//\t\tblink.add(eye3);\n//\t\tblink.add(eye3);\n\t\tblink.add(eye2);\n\t\tblink.add(eye2);\n//\t\tblink.add(eye1);\n//\t\tblink.add(eye1);\n\t\tblink.add(eyeClosed);\n\t\tblink.add(eyeClosed);\n\t\tblink.add(eyeClosed);\n\t\tblink.add(eyeClosed);\n//\t\tblink.add(eye1);\n//\t\tblink.add(eye1);\n\t\tblink.add(eye2);\n\t\tblink.add(eye2);\n//\t\tblink.add(eye3);\n//\t\tblink.add(eye3);\n\t\tblink.add(eye4);\n\t\tblink.add(eye4);\n//\t\tblink.add(eye5);\n//\t\tblink.add(eye5);\n\t\tblink.add(eye6);\n\t\tblink.add(eye6);\n\t}", "private void helperDisplayInputImage()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//---- Get currently selected file index in the combo box\r\n\t\t\tint index = mainFormLink.getComponentPanelLeft().getComponentComboboxFileName().getSelectedIndex();\r\n\r\n\t\t\t//---- Check the index if the action is invoked by image deletion then causes error\r\n\t\t\tint imageCount = DataController.getTable().getTableSize();\r\n\r\n\t\t\tif (index >= 0 && index < imageCount)\r\n\t\t\t{\r\n\t\t\t\t//---- Get file path of the table\r\n\r\n\t\t\t\tString filePath = DataController.getTable().getElement(index).getDataFile().getFilePath();\r\n\r\n\t\t\t\tmainFormLink.getComponentPanelCenter().getComponentPanelImageView().displayPolygonStop();\r\n\t\t\t\tmainFormLink.getComponentPanelCenter().getComponentPanelImageView().loadImage(filePath);\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (ExceptionMessage e)\r\n\t\t{\r\n\t\t\tExceptionHandler.processException(e);\r\n\t\t}\r\n\t}", "private void initImage() {\n this.image = (BufferedImage)this.createImage(DisplayPanel.COLS, DisplayPanel.ROWS);\n this.r.setRect(0, 0, DisplayPanel.ROWS, DisplayPanel.COLS);\n this.paint = new TexturePaint(this.image,\n this.r);\n }", "protected abstract Image loadImage();", "private void setImage() {\r\n\t\ttry{\r\n\r\n\t\t\twinMessage = ImageIO.read(new File(\"obstacles/win.gif\"));\r\n\t\t\tcoin = ImageIO.read(new File(\"obstacles/Coin.gif\"));\r\n\t\t\toverMessage = ImageIO.read(new File(\"obstacles/over.gif\"));\r\n\r\n\t\t} catch (IOException ioe) {\r\n\t\t\tSystem.err.println(\"Image file not found\");\r\n\t\t}\r\n\r\n\t}", "public void setImage(Image itemImg) \n {\n img = itemImg;\n }", "public void loadImage() {\n\t\ttry {\n\t\t\tcurrImage = ImageIO.read(new File(INPUT_DIR,fileNames.get(fileCounter)));\n\t\t\tcurrImageOrigDim = new Dimension(currImage.getWidth(), currImage.getHeight());\n\t\t\tlabel4.setText(\"Processing: \" + fileNames.get(fileCounter));\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t// Resize to Frame\n\t\tdouble imgHt = currImage.getHeight();\n\t\tdouble imgWt = currImage.getWidth();\n\t\tdouble wRatio = FRAME_SIZE/imgWt;\n\t\tdouble hRatio = FRAME_SIZE/imgHt;\n\t\taspectR = Math.min(wRatio,hRatio);\n\t\tcurrImage = getScaledInstance(currImage, (int)(aspectR*imgWt), (int)(aspectR*imgHt));\n\t\tcurrImageBounds = new Rectangle(0, 0, currImage.getWidth(), currImage.getHeight());\n\t\trepaint();\n\t}", "public void drawImage()\n {\n imageMode(CORNERS);\n //image(grayImgToFit, firstCellPosition[0], firstCellPosition[1]);\n image(canvas, firstCellPosition[0], firstCellPosition[1]);\n //image(tileMiniaturesV[0],10,250);\n //if(avaragedImgs.length > 4)\n // image(avaragedImgs[3],200,200);\n //getTileIntensityAtIndex(15,15);\n //println(tiles[7].getEndBrightness());\n \n }", "public void setImg(){\n if(PicSingleton.getInstance().getPicToShape() != null){\n\n mResultImg.setImageDrawable(PicSingleton.getInstance().getPicShaped());\n }\n }", "@Override\n\tpublic Image getImage() {\n\t\treturn image;\n\t}", "public void initImage() {\n if (isInited())\n return;\n //获取大图的游标\n Cursor cursor = context.getContentResolver().query(\n MediaStore.Images.Media.EXTERNAL_CONTENT_URI, // 大图URI\n STORE_IMAGES, // 字段\n null, // No where clause\n null, // No where clause\n MediaStore.Images.Media.DATE_TAKEN + \" DESC\"); //根据时间升序\n Log.e(\"eeeeeeeeeeeeeeeeeee\", \"------cursor:\" + cursor);\n if (cursor == null)\n return;\n while (cursor.moveToNext()) {\n int id = cursor.getInt(0);//大图ID\n String path = cursor.getString(1);//大图路径\n LogTool.setLog(\"大图路径1\", path);\n File file = new File(path);\n //判断大图是否存在\n if (file.exists()) {\n //小图URI\n String thumbUri = getThumbnail(id, path);\n //获取大图URI\n String uri = MediaStore.Images.Media.EXTERNAL_CONTENT_URI.buildUpon().\n appendPath(Integer.toString(id)).build().toString();\n LogTool.setLog(\"大图路径2\", uri);\n if (Tools.isEmpty(uri))\n continue;\n if (Tools.isEmpty(thumbUri))\n thumbUri = uri;\n //获取目录名\n String folder = file.getParentFile().getName();\n String appFile = context.getResources().getString(R.string.app_name);\n if (!folder.equals(appFile)) {\n LocalFile localFile = new LocalFile();\n localFile.setPath(path);\n localFile.setOriginalUri(uri);\n localFile.setThumbnailUri(thumbUri);\n int degree = cursor.getInt(2);\n if (degree != 0) {\n degree = degree + 180;\n }\n localFile.setOrientation(360 - degree);\n\n\n paths.add(localFile);\n\n\n //判断文件夹是否已经存在\n if (folders.containsKey(folder)) {\n folders.get(folder).add(localFile);\n } else {\n List<LocalFile> files = new ArrayList<>();\n files.add(localFile);\n folders.put(folder, files);\n }\n }\n }\n }\n folders.put(\"所有图片\", paths);\n cursor.close();\n isRunning = false;\n }", "@Override\n protected void paintComponent(final Graphics g) {\n super.paintComponent(g);\n g.drawImage(image, 0, 0, this);\n }", "private void createUpdateImage(Item item) throws Exception {\r\n //cria a imagem\r\n new Image().saveImage(item.getImagem(), item.getNome());\r\n \t}", "protected abstract void setupImages(Context context);", "public void run() {\nif(i[0] ==le.size()){\n i[0]=0;}\n File file = new File(\"/var/www/html/PawsAndClaws/web/bundles/uploads/brochures/\" + le.get( i[0]).getBrochure());\n\n Image it = new Image(file.toURI().toString(), 500, 310, false, false);\n eventspicture.setImage(it);\n i[0]++;\n }", "public ImagePanel() {\n\t\ttry {\n\t\t\tthis.image.add(ImageIO.read(new File(this.getClass().getResource(\"/Avertissement/frigorest.png\").getPath())));\n\t\t\tthis.image.add(ImageIO.read(new File(this.getClass().getResource(\"/Avertissement/frigono.png\").getPath())));\n\t\t\tthis.image.add(ImageIO.read(new File(this.getClass().getResource(\"/Avertissement/frigolow.png\").getPath())));\n\t\t\tthis.image.add(ImageIO.read(new File(this.getClass().getResource(\"/Avertissement/frigohigh.png\").getPath())));\n\t\t\tthis.image.add(ImageIO.read(new File(this.getClass().getResource(\"/Avertissement/frigocondensation.png\").getPath())));\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\r\n\tpublic void init() {\n\t\timg = new ImageClass();\r\n\t\timg.Init(imgPath);\r\n\t}", "private void setPic() {\n int targetW = mainImageView.getWidth();\n int targetH = mainImageView.getHeight();\n\n // Get the dimensions of the bitmap\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 // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n// bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n mainImageView.setImageBitmap(bitmap);\n\n// bmOptions.inBitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n// mainImageView.setImageBitmap(bmOptions.inBitmap);\n }", "private void imageInitiation() {\n ImageIcon doggyImage = new ImageIcon(\"./data/dog1.jpg\");\n JLabel dogImage = new JLabel(doggyImage);\n dogImage.setSize(700,500);\n this.add(dogImage);\n }", "private void initAreaImageFilm() {\n\n }", "private void setPic() {\n int targetW = mImageView.getWidth();\n int targetH = mImageView.getHeight();\n\n\t\t/* Get the size of the image */\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\t\t/* Figure out which way needs to be reduced less */\n int scaleFactor = 1;\n if ((targetW > 0) || (targetH > 0)) {\n scaleFactor = Math.min(photoW / targetW, photoH / targetH);\n }\n\n\t\t/* Set bitmap options to scale the image decode target */\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n\t\t/* Decode the JPEG file into a Bitmap */\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\n\t\t/* Associate the Bitmap to the ImageView */\n mImageView.setImageBitmap(bitmap);\n mTextView.setText(mCurrentPhotoPath);\n\n // SendImage(mCurrentPhotoPath);\n\n // AsyncCallWS task = new AsyncCallWS();\n // Call execute\n // task.execute();\n }", "private void displayImage() {\n if (currentPhotoPath != null) {\n // checkPicture = true; depreciated, try catch to catch if photo exists\n Bitmap temp = fixOrientation(BitmapFactory.decodeFile(currentPhotoPath));\n bitmapForAnalysis = temp;\n imageView.setImageBitmap(temp);\n } else {\n Toast.makeText(this, \"Image Path is null\", Toast.LENGTH_LONG).show();\n }\n }", "public void Func_imagefile(){\n\n\t\tswf_env.containImg = true;\n\n\n\t\tthis.value = new SWFValue(\"Func\");\n\n\t\tString path = this.getAtt(\"path\", \".\");\n\t\tString filename = this.getAtt(\"default\");\n\t\tString type = \"auto\";\n\t\tvalue.instanceName = \"img\"+ Integer.toString(swf_env.instanceID);\n\t\tvalue.data = \"\";\n\t\tvalue.imgpath = path + \"/\" + filename;\n\t\tvalue.inter_imgpath = path + \"/\" + filename;\n\t\tvalue.inter_name = \"intimg\" + Integer.toString(swf_env.interactionImgNUM);\n\t\tvalue.tmp = \"tmp\" + Integer.toString(swf_env.interactionImgNUM);\n\t\tvalue.lnum = Integer.toString(swf_env.visibleflag_counter);\n\n\n\t\tif(!path.startsWith(\"/\")) {\n\t\t\tString basedir = GlobalEnv.getBaseDir();\n\t\t\tLog.out(\"basedir= \" +basedir);\n\t\t\tif(basedir != null && basedir != \"\") {\n\t\t\t\tpath = basedir + path;\n\t\t\t}\n\t\t}\n\n\t\tString filepath = path + \"/\" + filename;\n\n\n\t\tsetDecoration1();\n\t\tvalue.margin = margin;\n\n\n\t\tSystem.out.println(\"filepath = \"+filepath);\n\t\tint img = swf_env.open_image_file(type, filepath);\n\t\tvalue.img = img;\n\n\t\tdata_width = swf_env.get_value(\"imagewidth\", img);\n\t\tdata_height = swf_env.get_value(\"imageheight\", img);\n\t\tSystem.out.println(\"imagesize: \"+data_width+\" \"+data_height);\n\t\twidth = data_width + margin * 2;\n\t\theight = data_height + margin * 2;\n\n\n\t\tsetDecoration2();\n\n\t\tif(data_width > width){\n\t\t\tint original_width = data_width;\n\t\t\tdata_width = width - margin * 2;\n\t\t\tint scale = data_width / original_width;\n\t\t\tdata_height = data_height * scale;\n\t\t\theight = data_height + margin * 2;\n\t\t}\n\t\tif(data_height > height){\n\t\t\tint original_height = data_height;\n\t\t\tdata_height = height - margin * 2;\n\t\t\tint scale = data_height / original_height;\n\t\t\tdata_width = data_width * scale;\n\t\t\twidth = data_width + margin * 2;\n\t\t}\n\n\t\tvalue.data_width = data_width;\n\t\tvalue.data_height = data_height;\n\t\tvalue.width = width;\n\t\tvalue.height = height;\n\t\t//morya wrote\n\t\tvalue.int_w = width;\n\t\tvalue.int_h = height;\n\n\n\t\tsetDecoration3();\n\n\t\tswf_env.tmp_width = width;\n\t\tswf_env.tmp_height = height;\n\n\n\t\tswf_env.instanceID++;\n\n\t}", "public void updateImage(final Image image) { //The Reason that we have Set the Image to final over here is because once we fetch the Image from the AbsolutePath then after scaling this should be the Final Image in which we detect the Faces \n\t\timagelabel.setIcon(new ImageIcon(scaleImage(image))); \n\t}", "@Override\n public void renderNextImage() {\n }", "public void imageLoader(File file)\n{\n float ratio;\n if (file == null)\n {\n return;\n } else\n {\n try\n {\n PImage img = loadImage(file.getAbsolutePath());\n //if(img.width < 300)\n //{\n // img.resize(300,img.height);\n // if(img.height/((float)img.width)>3)\n // img.resize(300, 900);\n // if(img.width/((float)img.height)<0.3)\n // img.resize(900, 300);\n //}\n //if(img.height < 300)\n //{\n // img.resize(img.width, 300);\n // if(img.width/((float)img.width)>3)\n // img.resize(300, 900);\n // if(img.width/((float)img.height)<0.3)\n // img.resize(900, 300);\n //}\n if(img.height/((float)img.width)>3)\n {\n ratio = 1.0f;\n if(img.width < 400)\n {\n ratio = 400/((float)img.width);\n }\n img.resize((int)(ratio*img.width),(int)(ratio*img.width*2.5f));\n }\n if(img.height/((float)img.width)<0.25f)\n {\n ratio = 1.0f;\n if(img.height < 400)\n {\n ratio = 400/((float)img.height);\n }\n img.resize((int)(ratio*img.height*2.5f),(int)(ratio*img.height));\n }\n if(img.width < 400 || img.height < 400)\n {\n ratio = 1.0f;\n if(img.width < 400)\n {\n ratio = 400/((float)img.width);\n }\n if(img.height < 400 && img.height < img.width)\n {\n ratio = 400/((float)img.height);\n }\n img.resize((int)(ratio*img.width),(int)(ratio*img.height));\n }\n m.getInputImageManager().setImage(img);\n m.getInputImageManager().setResizedImage(m.getInputImageManager().resizeToFit(img, width-150, height-20));\n if(m.getOutputImageManager().getMosaic()!= null)\n {\n m.getOutputImageManager().createMosaic(m.getInputImageManager().getImage(),m.getOutputImageManager().getMosaic().getLastSeenImage(), m.getOutputImageManager().getMosaic().getTiles());\n }\n else\n {\n m.getOutputImageManager().createMosaic(m.getInputImageManager().getImage(),m.getInputImageManager().getImage(), m.getTileManager().getTiles());\n }\n m.getOutputImageManager().getMosaic().setMiniatures();\n }\n catch(NullPointerException e)\n {\n println(e);\n }\n }\n}", "public String getImage() { return image; }", "@Override\n\tpublic void readImages() {\n\t\t\n\t}", "public void updateImage() {\n Graphics2D g = img.createGraphics();\n for (Circle gene : genes) {\n gene.paint(g);\n }\n g.dispose();\n }", "private void setImage() {\n BitmapFactory.Options options = new BitmapFactory.Options();\n Bitmap originalBm = BitmapFactory.decodeFile(tempFile.getAbsolutePath(), options);\n // Log.d(TAG, \"setImage : \" + tempFile.getAbsolutePath());\n\n myImage.setImageBitmap(originalBm);\n\n /**\n * tempFile 사용 후 null 처리를 해줘야 합니다.\n * (resultCode != RESULT_OK) 일 때 tempFile 을 삭제하기 때문에\n * 기존에 데이터가 남아 있게 되면 원치 않은 삭제가 이뤄집니다.\n */\n System.out.println(\"setImage : \" + tempFile.getAbsolutePath());\n fileSource = tempFile.getAbsolutePath();\n myImageSource = fileSource;\n check++;\n tempFile = null;\n\n }", "@Override\n public void paintComponent(Graphics g) {\n super.paintComponent(g);\n g.drawImage(img, 0, 0, null);\n }", "private Images() {}", "private void setPic() {\n\t\tint targetW = Constant.sRealWidth;\n\t\tint targetH = Constant.sRealHeight;\n\n\t\t/* Get the size of the image */\n\t\tBitmapFactory.Options bmOptions = new BitmapFactory.Options();\n\t\tbmOptions.inJustDecodeBounds = true;\n\t\tBitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\t\tint photoW = bmOptions.outWidth;\n\t\tint photoH = bmOptions.outHeight;\n\t\t\n\t\t/* Figure out which way needs to be reduced less */\n\t\tint scaleFactor = 1;\n\t\tif ((targetW > 0) || (targetH > 0)) {\n\t\t\tscaleFactor = Math.min(photoW/targetW, photoH/targetH);\t\n\t\t}\n\n\t\t/* Set bitmap options to scale the image decode target */\n\t\tbmOptions.inJustDecodeBounds = false;\n\t\tbmOptions.inSampleSize = scaleFactor;\n\t\tbmOptions.inPurgeable = true;\n\n\t\t/* Decode the JPEG file into a Bitmap */\n\t\tBitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\t\t\n\t\tint rotate = ViewUtils.handleRotateBitmap(mCurrentPhotoPath);\n\t\tif (rotate != 0) {\n\t\t\tbitmap = ViewUtils.rotaingBitmap(\n\t\t\t\t\trotate, bitmap);\n\t\t}\n\t\t/* Associate the Bitmap to the ImageView */\n\t\tmPictureView.setImageBitmap(bitmap);\n\t}", "public void render () {\n image (img, xC, yC, xLength * getPixelSize(), yLength * getPixelSize());\n }", "public void updateObjectImage() {\r\n\t\tif (this.objectDescriptionTabItem != null) this.objectDescriptionTabItem.redrawImageCanvas();\r\n\t}", "public void openImage() {\n InputStream f = Controller.class.getResourceAsStream(\"route.png\");\n img = new Image(f, mapImage.getFitWidth(), mapImage.getFitHeight(), false, true);\n h = (int) img.getHeight();\n w = (int) img.getWidth();\n pathNodes = new GraphNodeAL[h * w];\n mapImage.setImage(img);\n //makeGrayscale();\n }", "public void initComp(){\n\n\n mResultImg = (ImageView) findViewById(R.id.result_imageView);\n\n mResultImg.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (mNormalImg){\n mResultImg.setImageDrawable(PicSingleton.getInstance().getPicShaped());\n mNormalImg = false;\n }\n else {\n mResultImg.setImageBitmap(PicSingleton.getInstance().getPicToShape());\n mNormalImg = true;\n }\n }\n });\n\n mResultImg.setOnLongClickListener(new View.OnLongClickListener() {\n @Override\n public boolean onLongClick(View v) {\n\n showSaveDialog();\n return true;\n }\n });\n\n }", "public BufferedImage getImage() {\n/* 81 */ return this.bufImg;\n/* */ }", "private void setPic() {\n int targetW = imageIV.getWidth();\n int targetH = imageIV.getHeight();\n\n // Get the dimensions of the bitmap\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 // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n imageIV.setImageBitmap(bitmap);\n }", "public final void prepareForSaving() {\r\n\t\tbi_image.pack();\r\n\t}", "@Override\n public Action update() {\n // draws the image \"image\" at position \"this.x\" and \"this.y\" and then returns null\n Thing.getProcessing().image(this.image, this.x, this.y);\n return null;\n }", "private void showImage() {\n this.animalKind = (String) imageCbox.getSelectedItem();\n try {\n ImageIcon imageIcon = new ImageIcon(getClass().getResource(\"/\" + animalKind + \"E.png\")); // load the image to a imageIcon\n Image image = imageIcon.getImage(); // transform it\n Image newImg = image.getScaledInstance(120, 120, Image.SCALE_SMOOTH); // scale it the smooth way\n imageIcon = new ImageIcon(newImg);// transform it back\n imgLabel.setIcon(imageIcon);\n this.add(imgLabel, gbc);\n\n } catch (Exception exception) {\n exception.printStackTrace();\n }\n repaint();\n }", "public abstract Image getImage();", "public abstract Image getImage();", "public ImageSection() { // required by the SessionLoader (should not be used elsewhere)\n hasImage = new HasImage();\n }", "private void rebuildImageIfNeeded() {\n Rectangle origRect = this.getBounds(); //g.getClipBounds();\n// System.out.println(\"origRect \" + origRect.x + \" \" + origRect.y + \" \" + origRect.width + \" \" + origRect.height);\n\n backBuffer = createImage(origRect.width, origRect.height);\n// System.out.println(\"Image w \" + backBuffer.getWidth(null) + \", h\" + backBuffer.getHeight(null));\n Graphics backGC = backBuffer.getGraphics();\n backGC.setColor(Color.BLACK);\n backGC.fillRect(0, 0, origRect.width, origRect.height);\n// updateCSysEntList(combinedRotatingMatrix);\n paintWorld(backGC);\n }", "public void loadImage() {\r\n // creates a new image icon with the characters array and the count as a file path\r\n ImageIcon ii = new ImageIcon(game.characters[count]);\r\n // load the image\r\n image = ii.getImage(); \r\n \r\n // sets width\r\n w = image.getWidth(null);\r\n // sets height\r\n h = image.getHeight(null);\r\n }", "void ProcessImage() {\n DoDescribe();\n }", "public void openImage() {\t\n\t\ttry {\n\t\t\timg.openImage(list);\n\t\t} \t\n\n\t\tcatch (BrokenImageException ex) {\n\t\t\ttry{\n\t\t\t\tif(!validImageContent())\n\t\t\t\t\tthrow new BadImageContentException(\"The image is broken \"\n\t\t\t\t\t\t\t+ \"due to corrupt content\");\n\t\t\t\tif(!validImageHeader())\n\t\t\t\t\tthrow new BadImageHeaderException(\"The image is broken\"\n\t\t\t\t\t\t\t+ \" due to a damaged header\");\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"Please catch the proper Image-related Exception.\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void draw(){\n\t\tString filename = \"images/\" + this.imgFileName;\n\t\tStdDraw.picture(this.xxPos, this.yyPos, filename);\n\t}", "public void setImageView() {\n \timage = new Image(\"/Model/boss3.png\", true);\n \tboss = new ImageView(image); \n }", "public void createScaledImage(String location, int type, int orientation, int session, int database_id) {\n\n // find portrait or landscape image\n BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(location, options);\n final int imageHeight = options.outHeight; //find the width and height of the original image.\n final int imageWidth = options.outWidth;\n\n int outputHeight = 0;\n int outputWidth = 0;\n\n\n //set the output size depending on type of image\n switch (type) {\n case EdittingGridFragment.SIZE4R :\n if (orientation == EdittingGridFragment.LANDSCAPE) {\n outputWidth = 1800;\n outputHeight = 1200;\n } else if (orientation == EdittingGridFragment.PORTRAIT) {\n outputWidth = 1200;\n outputHeight = 1800;\n }\n break;\n case EdittingGridFragment.SIZEWALLET:\n if (orientation == EdittingGridFragment.LANDSCAPE) {\n outputWidth = 953;\n outputHeight = 578;\n } else if (orientation ==EdittingGridFragment.PORTRAIT ) {\n outputWidth = 578;\n outputHeight = 953;\n }\n\n break;\n case EdittingGridFragment.SIZESQUARE:\n outputWidth = 840;\n outputHeight = 840;\n break;\n }\n\n assert outputHeight != 0 && outputWidth != 0;\n\n\n //fit images\n //FitRectangles rectangles = new FitRectangles((int) outputWidth, (int) outputHeight, imageWidth, imageHeight);\n\n //scaled images\n ScaledRectangles rectangles = new ScaledRectangles((int) outputWidth, (int) outputHeight, imageWidth, imageHeight);\n\n Rect canvasSize = rectangles.getCanvasSize();\n Rect canvasImageCoords = rectangles.getCanvasImageCoords();\n Rect imageCoords = rectangles.getImageCoords();\n\n\n\n /*\n //set the canvas size based on the type of image\n Rect canvasSize = new Rect(0, 0, (int) outputWidth, (int) outputHeight);\n Rect canvasImageCoords = new Rect();\n //Rect canvasImageCoords = new Rect (0, 0, outputWidth, outputHeight); //set to use the entire canvas\n Rect imageCoords = new Rect(0, 0, imageWidth, imageHeight);\n //Rect imageCoords = new Rect();\n\n\n // 3 cases, exactfit, canvas width larger, canvas height larger\n if ((float) outputHeight/outputWidth == (float) imageHeight/imageWidth) {\n canvasImageCoords.set(canvasSize);\n //imageCoords.set(0, 0, imageWidth, imageHeight); //map the entire image to the entire canvas\n Log.d(\"Async\", \"Proportionas Equal\");\n\n }\n\n\n\n else if ( (float) outputHeight/outputWidth > (float) imageHeight/imageWidth) {\n //blank space above and below image\n //find vdiff\n\n\n //code that fits the image without whitespace\n Log.d(\"Async\", \"blank space above and below\");\n\n float scaleFactor = (float)imageHeight / (float) outputHeight; //amount to scale the canvas by to match the height of the image.\n int scaledCanvasWidth = (int) (outputWidth * scaleFactor);\n int hDiff = (imageWidth - scaledCanvasWidth)/2;\n imageCoords.set (hDiff, 0 , imageWidth - hDiff, imageHeight);\n\n\n\n //code fits image with whitespace\n float scaleFactor = (float) outputWidth / (float) imageWidth;\n int scaledImageHeight = (int) (imageHeight * scaleFactor);\n assert scaledImageHeight < outputHeight;\n\n int vDiff = (outputHeight - scaledImageHeight)/2;\n canvasImageCoords.set(0, vDiff, outputWidth, outputHeight - vDiff);\n\n\n\n } else if ((float) outputHeight/outputWidth < (float) imageHeight/imageWidth) {\n //blank space to left and right of image\n\n\n //fits the image without whitespace\n float scaleFactor = (float) imageWidth / (float) outputWidth;\n int scaledCanvasHeight = (int) (outputHeight * scaleFactor);\n int vDiff = (imageHeight - scaledCanvasHeight)/2;\n imageCoords.set(0, vDiff, imageWidth, imageHeight - vDiff);\n\n //fits image with whitespace\n\n Log.d(\"Async\", \"blank space left and right\");\n float scaleFactor = (float) outputHeight / (float) imageHeight;\n int scaledImageWidth = (int) (imageWidth * scaleFactor);\n assert scaledImageWidth < outputWidth;\n\n int hDiff = (outputWidth - scaledImageWidth)/2;\n\n canvasImageCoords.set(hDiff, 0, outputWidth - hDiff, outputHeight);\n }\n\n */\n\n Log.d(\"Async\", \"Canvas Image Coords:\" + canvasImageCoords.toShortString());\n\n SaveImage imageSaver = new SaveImage(getApplicationContext(), database);\n ImageObject imageObject = new ImageObject(location);\n Bitmap imageBitmap = imageObject.getImageBitmap();\n int sampleSize = imageObject.getSampleSize();\n\n Rect sampledImageCoords = imageSaver.getSampledCoordinates(imageCoords, sampleSize);\n\n System.gc();\n BackgroundObject backgroundObject = new BackgroundObject(outputWidth, outputHeight);\n Bitmap background = backgroundObject.getBackground();\n\n\n background = imageSaver.drawOnBackground(background, imageBitmap,\n sampledImageCoords, canvasImageCoords);\n\n imageSaver.storeImage(background, database_id, session);\n background.recycle();\n\n }", "private void setPic() {\n int targetW =20;// mImageView.getWidth();\n int targetH =20;// mImageView.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;//设置仅加载位图边界信息(相当于位图的信息,但没有加载位图)\n\n //返回为NULL,即不会返回bitmap,但可以返回bitmap的横像素和纵像素还有图片类型\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n mImageView.setImageBitmap(bitmap);\n }", "public void prepareImage(String imagePath)\r\n {\r\n \t\r\n initialize();\r\n try{\r\n //track the image loading\r\n trackImageLoading = new MediaTracker(this); \r\n original = Toolkit.getDefaultToolkit().getImage(imagePath); \r\n trackImageLoading.addImage(original,0);\r\n trackImageLoading.waitForID(0); \r\n //get the image width and height \r\n int width = original.getWidth(null);\r\n int height = original.getHeight(null);\r\n //create buffered image from the image so any change to the image can be made\r\n bufferedImage = createBufferedImageFromImage(original,width,height,false); \r\n edited = new BufferedImage(width,height,BufferedImage.TYPE_INT_RGB); \r\n isImageLoaded = true; //now the image is loaded\r\n }\r\n catch(Exception e)\r\n {\r\n System.exit(-1);\r\n }\r\n }", "public void setImage(Image img) {\r\n this.img = img;\r\n }", "private void setPic() {\n int targetW = img_clip.getWidth();\n int targetH = img_clip.getHeight();\n\n // Get the dimensions of the bitmap\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 // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n img_clip.setImageBitmap(bitmap);\n }", "private void setPic() {\n int targetW =200;\n int targetH = 300;\n\n\n\t\t/* Get the size of the image */\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\t\t/* Figure out which way needs to be reduced less */\n int scaleFactor = 1;\n if ((targetW > 0) || (targetH > 0)) {\n scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n }\n\n\t\t/* Set bitmap options to scale the image decode target */\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n\t\t/* Decode the JPEG file into a Bitmap */\n bitmap1 = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\n Log.e(\"bitmap\", \"\" + bitmap1);\n mAdapter = new MyAdapter(Goonlineactivity2.this,TITLES,ICONS,NAME,EMAIL,PROFILE); // Creating the Adapter of MyAdapter class(which we are going to see in a bit)\n // And passing the titles,icons,header view name, header view email,\n // and header view profile picture\n\n mRecyclerView.setAdapter(mAdapter);\n //profile11.setImageBitmap(bitmap1);\n\n \t\t/* Associate the Bitmap to the ImageView */\n\n }", "private void refreshImage() {\n Bitmap image = drawableToBitmap(getDrawable());\n int canvasSize = Math.min(canvasWidth, canvasHeight);\n if (canvasSize > 0 && image != null) {\n //Preserve image ratio if it is not square\n BitmapShader shader = new BitmapShader(ThumbnailUtils.extractThumbnail(image, canvasSize, canvasSize),\n Shader.TileMode.CLAMP, Shader.TileMode.CLAMP);\n mPaint.setShader(shader);\n }\n }", "public void place() {\n\t\tprocessing.image(Image, x, y);\n\t}", "@Override\r\n\tprotected void updateImage(final IScope scope) {\n\t}", "@Override\n public void updateImages()\n {\n image = ThemeManager.getInstance().getObstacleImage();\n blackedOutImage = ThemeManager.getInstance().getDisabledImage(\"obstacle\");\n }", "private void setPic() {\n int targetW = mImageView.getWidth();\n int targetH = mImageView.getHeight();\n\n // Get the dimensions of the bitmap\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 // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW / targetW, photoH / targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\n// Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n mImageView.setImageBitmap(bitmap);\n }", "private void resultImgInit() {\n resultImgAndLoadingLayout.setX(cornerPositions.getLeftTop().x);\n resultImgAndLoadingLayout.setY(cornerPositions.getLeftTop().y);\n int wight = cornerPositions.getRightBottom().x - cornerPositions.getLeftTop().x + cornerImgSize;\n int height = cornerPositions.getRightBottom().y - cornerPositions.getLeftTop().y + cornerImgSize;\n resultImgAndLoadingLayout.setLayoutParams(new LayoutParams(wight, height));\n }", "public void Draw() {\n\t\timgIcon = new ImageIcon(imgUrl);\n\t}", "@Override\r\n\tpublic int getImage() {\n\t\treturn Parametre.BALLE;\r\n\t}", "private void manuallyPushImageToImageReader(){\n mImageReader = VNCUtility.createImageReader(this);\n mImageReader.setOnImageAvailableListener(new ImageReader.OnImageAvailableListener() {\n @Override\n public void onImageAvailable(ImageReader reader) {\n Log.d(TAG, \"NEW IMAGE AVAILABLE\");\n\n DisplayMetrics metrics = getResources().getDisplayMetrics();\n\n\n Image image = reader.acquireLatestImage();\n VNCUtility.printReaderFormat(image.getFormat());\n Log.d(TAG, \"IMAGE FORMAT: \" + image.getFormat());\n final Image.Plane[] planes = image.getPlanes();\n final ByteBuffer buffer = planes[0].getBuffer();\n int pixelStride = planes[0].getPixelStride();\n int rowStride = planes[0].getRowStride();\n int rowPadding = rowStride - pixelStride * mWidth;\n int w = mWidth + rowPadding / pixelStride;\n Bitmap bmp = Bitmap.createBitmap(mWidth, mHeight, Bitmap.Config.RGB_565);\n bmp.copyPixelsFromBuffer(buffer);\n mBmp = bmp;\n\n Thread t = new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n //saveScreen(mBmp);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }\n });\n t.start();\n\n image.close();\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mImageView.setImageBitmap(mBmp);\n }\n });\n\n\n /*\n Image img = reader.acquireLatestImage();\n Image.Plane[] planes = img.getPlanes();\n int width = img.getWidth();\n int height = img.getHeight();\n int pixelStride = planes[0].getPixelStride();\n int rowStride = planes[0].getRowStride();\n int rowPadding = rowStride - pixelStride * width;\n ByteBuffer buffer = planes[0].getBuffer();\n byte[] data = new byte[buffer.capacity()];\n buffer.get(data);\n\n for(int i = 10000; i < 100; i++){\n Log.d(TAG, getColourForInt(data[i]));\n }\n\n int offset = 0;\n Bitmap bitmap = Bitmap.createBitmap(metrics, width, height, Bitmap.Config.ARGB_8888);\n for (int i = 0; i < height; ++i) {\n for (int j = 0; j < width; ++j) {\n int pixel = 0;\n pixel |= (buffer.get(offset) & 0xff) << 16; // R\n pixel |= (buffer.get(offset + 1) & 0xff) << 8; // G\n pixel |= (buffer.get(offset + 2) & 0xff); // B\n pixel |= (buffer.get(offset + 3) & 0xff) << 24; // A\n bitmap.setPixel(j, i, pixel);\n offset += pixelStride;\n }\n offset += rowPadding;\n }\n mBmp = bitmap;\n img.close();\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mImageView.setImageBitmap(mBmp);\n }\n });\n */\n }\n }, null);\n Surface surface = mImageReader.getSurface();\n if(surface == null){\n Log.d(TAG, \"SURFACE IS NULL\");\n }\n else{\n Log.d(TAG, \"SURFACE IS NOT NULL\");\n Canvas canvas = surface.lockCanvas(null);\n\n int[] ints = new int[mWidth * mHeight];\n for (int i = 0; i < mWidth * mHeight; i++) {\n ints[i] = Color.MAGENTA;//0x00FF0000;\n }\n\n //final Bitmap bitmap = BitmapFactory.decodeByteArray(bytes, 0, ints.length);\n Bitmap bitmap = Bitmap.createBitmap(ints, mWidth, mHeight, Bitmap.Config.RGB_565);\n //canvas.drawARGB(255, 255, 0, 255);\n canvas.drawBitmap(bitmap,0,0,null);\n surface.unlockCanvasAndPost(canvas);\n }\n }", "private void getNewImage() {\n try {\n URL imageUrl = new URL(path);\n URLConnection uc = imageUrl.openConnection();\n\n InputStream is = uc.getInputStream();\n BufferedInputStream bis = new BufferedInputStream(is);\n\n ByteArrayOutputStream buffer = new ByteArrayOutputStream();\n int current;\n while ((current = bis.read()) != -1) {\n buffer.write((byte) current);\n }\n final byte[] data = buffer.toByteArray();\n // enqueue UI update as a priority\n Handler handler = new Handler(Looper.getMainLooper());\n handler.post(new Runnable() {\n public void run() {\n view.setImageBitmap(BitmapFactory.decodeByteArray(\n data, 0, data.length));\n }\n });\n // update database while that is queueing\n ContentValues values = new ContentValues();\n values.put(MovieEntry.COLUMN_POSTER, data);\n context.getContentResolver().update(MovieEntry.buildMovieUriWithId(movieId),\n values, null, null);\n } catch (Exception E) {\n Log.i(TAG, E.toString());\n E.printStackTrace();\n }\n }", "private void setPic() {\n int targetW = imageView.getWidth();\n int targetH = imageView.getHeight();\n\n // Get the dimensions of the bitmap\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 // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n imageView.setImageBitmap(bitmap);\n imageView.invalidate();\n }", "private Images() {\n \n imgView = new ImageIcon(this,\"images/View\");\n\n imgUndo = new ImageIcon(this,\"images/Undo\");\n imgRedo = new ImageIcon(this,\"images/Redo\");\n \n imgCut = new ImageIcon(this,\"images/Cut\");\n imgCopy = new ImageIcon(this,\"images/Copy\");\n imgPaste = new ImageIcon(this,\"images/Paste\");\n \n imgAdd = new ImageIcon(this,\"images/Add\");\n \n imgNew = new ImageIcon(this,\"images/New\");\n imgDel = new ImageIcon(this,\"images/Delete\");\n \n imgShare = new ImageIcon(this,\"images/Share\");\n }", "@Override\n protected void processLogic() {\n mBitmap = Bitmap.createBitmap(SystemUtils.getScreenWidth(), SystemUtils.getScreenHeight(), Config.ARGB_8888);\n mCanvas = new Canvas(mBitmap);\n mCanvas.drawColor(Color.WHITE);\n ivGraffit.setImageBitmap(mBitmap);\n mPaint = new Paint();\n mPaint.setColor(Color.GREEN);\n // 设置线宽\n mPaint.setStrokeWidth(15);\n mPaint.setAntiAlias(true);\n\n }", "private void setImage(Bitmap image) {\n }", "private Bitmap setPic() {\n int targetH = 0; //mImageView.getHeight();\n int targetW = 0; //mImageView.getWidth();\n\n\n\t\t/* Get the size of the image */\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 if( photoH > photoW ){\n /*Se definen las dimensiones de la imagen que se desea generar*/\n targetH = Const.MedidasReduccionImagen.PEQUENA_PORTRAIT.heigh; // 640;\n targetW = Const.MedidasReduccionImagen.PEQUENA_PORTRAIT.width; //480;\n }else{\n targetH = Const.MedidasReduccionImagen.PEQUENA_LANDSCAPE.heigh; //480;\n targetW = Const.MedidasReduccionImagen.PEQUENA_LANDSCAPE.width; //640;\n }\n\n\t\t/* Figure out which way needs to be reduced less */\n int scaleFactor = 0;\n if ((targetW > 0) || (targetH > 0)) {\n scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n }\n\n\t\t/* Set bitmap options to scale the image decode target */\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n\t\t/* Decode the JPEG file into a Bitmap */\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\n return bitmap;\n }", "private void createImage()\n {\n GreenfootImage image = new GreenfootImage(width, height);\n setImage(\"Player.png\");\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n\n // TOP1\n idrecette1.setText(String.valueOf(RS.findById(VS.TOP1()).getId()));\n usernameR1.setText(RS.findById(VS.TOP1()).getIduser().getUsername());\n nomR1.setText(RS.findById(VS.TOP1()).getNom());\n //image1.setImage(new Image(RS.findById(VS.TOP1()).getNom_image()));\n ScoreR1.setText(String.valueOf(VS.getScoreVote(RS.findById(VS.TOP1()).getId())));\n try{ \n String imageFile = (RS.findById(VS.TOP1()).getNom_image());\n System.out.println(imageFile);\n Image imageA = new Image(imageFile);\n image1.setImage(imageA);\n }\n catch(Exception e){\n Image imageB = new Image(\"file:/C:/wamp64/www/java_DOC/mscupcake2.jpg\");\n image1.setImage(imageB);\n }\n //TOP2\n idrecette2.setText(String.valueOf(RS.findById(VS.TOP2()).getId()));\n usernameR2.setText(RS.findById(VS.TOP2()).getIduser().getUsername());\n nomR2.setText(RS.findById(VS.TOP2()).getNom());\n ScoreR2.setText(String.valueOf(VS.getScoreVote(RS.findById(VS.TOP2()).getId())));\n try{ \n String imageFile = (RS.findById(VS.TOP2()).getNom_image());\n System.out.println(imageFile);\n Image imageA = new Image(imageFile);\n image2.setImage(imageA);\n }\n catch(Exception e){\n Image imageB = new Image(\"file:/C:/wamp64/www/java_DOC/mscupcake2.jpg\");\n image2.setImage(imageB);\n }\n //TOP3\n idrecette3.setText(String.valueOf(RS.findById(VS.TOP3()).getId()));\n usernameR3.setText(RS.findById(VS.TOP3()).getIduser().getUsername());\n nomR3.setText(RS.findById(VS.TOP3()).getNom());\n ScoreR3.setText(String.valueOf(VS.getScoreVote(RS.findById(VS.TOP3()).getId())));\n try{ \n String imageFile = (RS.findById(VS.TOP3()).getNom_image());\n System.out.println(imageFile);\n Image imageA = new Image(imageFile);\n image3.setImage(imageA);\n }\n catch(Exception e){\n Image imageB = new Image(\"file:/C:/wamp64/www/java_DOC/mscupcake2.jpg\");\n image3.setImage(imageB);\n }\n //TOP4\n idrecette4.setText(String.valueOf(RS.findById(VS.TOP4()).getId()));\n usernameR4.setText(RS.findById(VS.TOP4()).getIduser().getUsername());\n nomR4.setText(RS.findById(VS.TOP4()).getNom());\n ScoreR4.setText(String.valueOf(VS.getScoreVote(RS.findById(VS.TOP4()).getId())));\n try{ \n String imageFile = (RS.findById(VS.TOP4()).getNom_image());\n System.out.println(imageFile);\n Image imageA = new Image(imageFile);\n image4.setImage(imageA);\n }\n catch(Exception e){\n Image imageB = new Image(\"file:/C:/wamp64/www/java_DOC/mscupcake2.jpg\");\n image4.setImage(imageB);\n }\n //TOP5\n idrecette5.setText(String.valueOf(RS.findById(VS.TOP5()).getId()));\n usernameR5.setText(RS.findById(VS.TOP5()).getIduser().getUsername());\n nomR5.setText(RS.findById(VS.TOP5()).getNom());\n ScoreR5.setText(String.valueOf(VS.getScoreVote(RS.findById(VS.TOP5()).getId())));\n try{ \n String imageFile = (RS.findById(VS.TOP5()).getNom_image());\n System.out.println(imageFile);\n Image imageA = new Image(imageFile);\n image5.setImage(imageA);\n }\n catch(Exception e){\n Image imageB = new Image(\"file:/C:/wamp64/www/java_DOC/mscupcake2.jpg\");\n image5.setImage(imageB);\n } \n }", "@Override\n public void handleMessage(Message msg) {\n super.handleMessage(msg);\n if(msg.what == 0){\n setImageBitmap((Bitmap)msg.obj);\n }\n }", "public Image() {\n\t\tsuper();\n\t\taddNewAttributeList(NEW_ATTRIBUTES);\n\t\taddNewResourceList(NEW_RESOURCES);\n\t}", "public int getImage();", "public void dispose() {\n this.img.dispose();\n }", "@Override\n\tpublic void init() {\n\t\tthis.image = Helper.getImageFromAssets(AssetConstants.IMG_ROAD_NORMAL);\n\t}", "public void draw(){\n\t\tStdDraw.picture(this.xxPos,this.yyPos,\"images/\"+this.imgFileName);\n\t}", "public void actionPerformed(ActionEvent arg0) {\n \tlblWarning.setVisible(false);\r\n \t\r\n \tString businessCardName = txtName.getSelectedItem().toString();\r\n \tString fileBusinessCard = businessCardPath + businessCardName + \".jpeg\";\r\n \tString size = txtSize.getSelectedItem().toString();\r\n \tString color = txtColor.getText().toString();\r\n \tString price = txtPrice.getText().toString();\r\n \tString address = txtAddress.getText().toString();\r\n \tString picPath = txtPicPath.getText().toString();\r\n \tString quantity = txtQuantity.getText().toString();\r\n \tString resultPath = txtPicPathTo.getText().toString();\r\n \tString ref = txtRef.getText().toString();\r\n \t\r\n \tList <BufferedImage> list = new ArrayList<BufferedImage> ();\r\n \tBufferedImage DestImage = null;\r\n \tBufferedImage bi0 = null;\r\n \tBufferedImage bi1 = null;\r\n \tBufferedImage bi2 = null;\r\n \tBufferedImage bi3 = null;\r\n \tBufferedImage bi4 = null;\r\n\t \r\n \t//For final generated image\r\n \tFile file = new File(resultPath);\r\n\t if (!businessCardName.equals(\"请选择\") && !size.equals(\"请选择\") && !color.equals(\"\") && !price.equals(\"\") \r\n\t \t\t&& !address.equals(\"\") && !picPath.equals(\"\") && !quantity.equals(\"\") && !resultPath.equals(\"\") \r\n\t \t\t&& file.isDirectory() && file.canWrite()) {\r\n\t\t\r\n \tif ((!resultPath.endsWith(\"\\\\\")) && (!resultPath.endsWith(\"/\"))) {\r\n \t\tresultPath = resultPath + \"/\";\r\n \t}\r\n \t\t \r\n \t\t\r\n\t \tString[] list1 = {size, color, price, address, quantity, ref};\r\n\t \tsi.paintString(list1, \"Reference\");\r\n\t \tsi.paintString(list1, \"Address\");\r\n\t \t\r\n\t try { \r\n\t \tbi0 = si.getBufferedImageFromStream(fileBusinessCard);\r\n\t \tbi1 = si.getBufferedImage(fileReference);\r\n\t \t//For uploaded the image of product\r\n\t \tbi2 = si.getBufferedImage(fileUploadedProduct1);\r\n\t \tif (path3 != null) {\r\n\t \t\tbi3 = si.getBufferedImage(path3);\r\n\t \t}\r\n\t \tbi4 = si.getBufferedImage(fileAddress);\r\n\t \t\r\n\t } catch (Exception e) { \r\n\t e.printStackTrace(); \r\n\t JOptionPane.showMessageDialog(null, e.getMessage(), \"错误\", JOptionPane.ERROR_MESSAGE);\r\n\t } \r\n\t \r\n\t list.add(bi4);\r\n\t list.add(bi1);\r\n\t list.add(bi2);\r\n\t list.add(bi3);\r\n\t list.add(bi0);\r\n\t //list.add(bi5);\r\n\t\r\n\t\r\n\t try { \r\n\t \tDestImage = si.mergeImage(list); \r\n\t \t//new ShowImage((Image)destImg);\r\n\t } catch (IOException e) { \r\n\t e.printStackTrace(); \r\n\t } \r\n\t \r\n\t \r\n\t //Save the result image\r\n\t Random random = new Random();\r\n\t int ran = random.nextInt(10000);\r\n\t String fileResult = \"Result\" + ran + \".jpg\";\r\n\t si.saveImage(DestImage, resultPath, fileResult); \r\n\t DestImage.flush();\r\n\t JOptionPane.showMessageDialog(null, \"图像已生成!\", \"消息\", JOptionPane.INFORMATION_MESSAGE);\r\n\t \r\n\t } else {\r\n\t \t//For warning msg\r\n\t \t//lblWarning = new JLabel(\"必填项未填或者生成图片路径不对或者路径没有权限\");\r\n\t \t\tfr.add(lblWarning);\r\n\t \t\t//Font font = new Font(\"Dialog\",1,18);\r\n\t \t\t//lblWarning.setFont(font);\r\n\t \t\tlblWarning.setVisible(true);\r\n\t \t\t//lblWarning.setBounds(150,400,400,50);\r\n\t }\r\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (resultCode == RESULT_OK && data.getData()!=null) {\n if (requestCode == 2) {\n Uri selectedImage = data.getData();\n String[] filePath = { MediaStore.Images.Media.DATA };\n Cursor c = getContentResolver().query(selectedImage,filePath, null, null, null);\n c.moveToFirst();\n int columnIndex = c.getColumnIndex(filePath[0]);\n String picturePath = c.getString(columnIndex);\n c.close();\n Bitmap thumbnail = (BitmapFactory.decodeFile(picturePath));\n thumbnail= AppUtils.getResizedBitmap(thumbnail, 400);\n ivPic.setImageBitmap(thumbnail);\n\n //either update existing thumbnail\n if(thumbnailImage != null){\n thumbnailImage.setImage(thumbnail);\n viewModel.updateThumbnail(thumbnailImage);\n }\n //or create a new thumbnail\n else{\n contactGroup.setThumbnailId((int) viewModel.addThumbnailGetId(new ThumbnailImage(thumbnail)));\n viewModel.updateGroup(contactGroup);\n }\n }\n }\n }", "public void addNewPicture() {\n ImageView imgView = (ImageView)findViewById(R.id.poll_object_btn_image);\n Resources res = getContext().getResources();\n if(this.type == \"generic\") {\n //add the new pciture for the generic type\n Bitmap bitmap = BitmapFactory.decodeResource(res, R.drawable.generic_new);\n imgView.setImageBitmap(bitmap);\n }else if(this.type == \"location\") {\n //add the new picture for the location type\n Bitmap bitmap = BitmapFactory.decodeResource(res, R.drawable.generic_new);\n imgView.setImageBitmap(bitmap);\n }else if(this.type == \"picture\") {\n //add the new picture for the picture type\n Bitmap bitmap = BitmapFactory.decodeResource(res, R.drawable.generic_new);\n imgView.setImageBitmap(bitmap);\n }\n }", "public interface Image {\n\n /**\n * Get number of pixels horizontally\n *\n * @return int number of pixels horizontally\n */\n int getWidth();\n\n /**\n * Get number of pixels vertically\n *\n * @return int number of pixels vertically\n */\n int getHeight();\n\n /**\n * Get the red value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @return the red value\n */\n int getRed(int x, int y);\n\n\n /**\n * Get the green value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @return the green value\n */\n int getGreen(int x, int y);\n\n /**\n * Get the blue value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @return the blue value\n */\n int getBlue(int x, int y);\n\n /**\n * Set the red value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @param value of the pixel\n */\n void setRed(int x, int y, int value);\n\n\n /**\n * Set the green value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @param value of the pixel\n */\n void setGreen(int x, int y, int value);\n\n /**\n * Set the blue value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @param value of the pixel\n */\n void setBlue(int x, int y, int value);\n}", "IMG createIMG();", "public void run() {\n\t\tbyte data[] = getData();\n\t\tEncodedImage image = null;\n\t\tBitmapField bitmapField = null;\n\t\tif (data != null) {\n\t\t\ttry {\n\t\t\t\timage = EncodedImage.createEncodedImage(data, 0, -1,\"image/png\");\n\t\t\t\tbitmapField = new BitmapField();\n\t\t\t\t// The dimensions for a image to display well 170 width x 90 height\n\t\t\t\tbitmapField.setImage(image);\n\t\t\t} catch (IllegalArgumentException e) {\n\t\t\t}\n\t\t}\n\t\tthis.bitmapField = bitmapField;\n\t}", "@Override\n public void run() {\n try {\n Drawable drawable = Drawable.createFromStream(new URL(image_path).openStream(), \"\");\n\n Message message = Message.obtain();\n message.obj = drawable;\n handler.sendMessage(message);\n } catch (MalformedURLException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "Image createImage();", "@FXML\n /**\n * use initialize method to get the metadata of the image file and set the metadata properties on the UI display\n */\n public void initialize() {\n messaging.onMessage(MessageObject.SubjectEnum.ImageIdToShow, (file) -> {\n\n if (this.imageViewContainer == null) {\n return;\n }\n\n //get image and restrict the maximum width to 400\n Image image = ImageUtil.getImageFromFile((File) file);\n //get imageView and set its width and height\n ImageView imageView = ImageUtil.getImageViewByImage(image, \"\", 400, 400);\n //clear the HBox imageViewContainer\n this.imageViewContainer.getChildren().clear();\n //add imageView to the HBox imageViewContainer\n this.imageViewContainer.getChildren().add(\n imageView\n );\n //set an hgrow constraint on the imageView\n this.imageViewContainer.setHgrow(imageView, Priority.NEVER);\n //get metadata from the image file\n Metadata metadata = null;\n try {\n metadata = ImageMetadataReader.readMetadata((File) file);\n } catch (ImageProcessingException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n //get the width and height of the image\n int width = (int)image.getWidth();\n int height = (int)image.getHeight();\n //set text of Label width and height on the UI display\n this.width.setText(\"\" + width);\n this.height.setText(\"\" + height);\n //get ExifIFD0Directory from metadata\n ExifIFD0Directory exifIFD0Directory = metadata.getFirstDirectoryOfType(ExifIFD0Directory.class);\n //initialize make and model of camera\n String NA = MsIsConstant.NAPlaceholder;\n String make = NA;\n String model = NA;\n if (exifIFD0Directory != null) {\n //get the value of make and model properties\n make = exifIFD0Directory.getString(ExifIFD0Directory.TAG_MAKE);\n model = exifIFD0Directory.getString(ExifIFD0Directory.TAG_MODEL);\n if (make == null || model == null) {\n make = NA;\n model = NA;\n }\n }\n //set text of Label make and model of camera on the UI display\n this.cameraMakeAndModel.setText(String.format(\"%s, %s\", make, model));\n\n GpsDirectory gpsDirectory = metadata.getFirstDirectoryOfType(GpsDirectory.class);\n showGeo(gpsDirectory);\n\n });\n }", "protected ImagePanel() {\n pictureBox = new AWTPictureBox(getWidth(), getHeight());\n //add(pictureBox);\n }" ]
[ "0.70826167", "0.68525773", "0.682154", "0.68015385", "0.679737", "0.67890215", "0.676057", "0.66786706", "0.6674635", "0.6641123", "0.6600325", "0.6596272", "0.6587135", "0.6577808", "0.6577607", "0.65639555", "0.655918", "0.6551521", "0.6536414", "0.64975053", "0.6486596", "0.6484705", "0.6475024", "0.64644665", "0.643417", "0.6432092", "0.6430718", "0.6423162", "0.6418589", "0.64175636", "0.64001405", "0.63886195", "0.638447", "0.63843375", "0.63775086", "0.6361742", "0.63508797", "0.63327706", "0.633099", "0.6304531", "0.6303482", "0.628603", "0.6282548", "0.6282309", "0.6279108", "0.6279019", "0.62734044", "0.62731844", "0.6267777", "0.6264651", "0.6263759", "0.6263005", "0.62537736", "0.62373143", "0.62373143", "0.62370086", "0.62169605", "0.62124616", "0.6211536", "0.6202944", "0.6201926", "0.6189459", "0.61741215", "0.6172539", "0.6168363", "0.61657125", "0.61604047", "0.6157783", "0.61555827", "0.6149919", "0.6149829", "0.6146276", "0.6145429", "0.6142843", "0.6141518", "0.6141183", "0.6137949", "0.6134131", "0.6123503", "0.6123043", "0.611816", "0.6117737", "0.6112084", "0.6111767", "0.6109021", "0.6107789", "0.61068577", "0.6105096", "0.61042714", "0.61036265", "0.6100411", "0.6096663", "0.6095661", "0.60915184", "0.60909414", "0.60840935", "0.60833526", "0.60812455", "0.607331", "0.6070116", "0.6066509" ]
0.0
-1
//////////////////////////////////////////////////////////////////////////////////////////////////////////// This manages all of the lists ////////////////////////////////////////////////////////////////////////////////////////////////////////////
public void setArtistAlbums(List<Album> artistAlbums) { this.artistAlbums = artistAlbums; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void loadLists() {\n }", "public void loadAllLists(){\n }", "private void loadLists() {\n loadSavedCourses();\n loadSavedSchedules();\n }", "public void refreshLists() {\n refreshCitizenList();\n refreshPlayerList();\n }", "private void loadLists() {\n setUpFooter();\n if (numberOfLists > 0) {\n this.updateComponent(footer);\n for (Object l : agenda.getConnector().getItems(agenda.getUsername(), \"list\")) {\n Items list = (Items) l;\n comboBox.addItem(list.getName());\n JPanel panel = new JPanel();\n panel.setName(list.getName());\n setup.put(list.getName(), false);\n window.add(list.getName(), panel);\n currentList = list;\n }\n setUpHeader();\n for (Component c : window.getComponents()) {\n if (!setup.get(c.getName())){\n setUpList((JPanel) c);\n setup.replace(c.getName(),true);\n break;\n }\n }\n comboBox.setSelectedIndex(numberOfLists-1);\n } else{\n setUpHeader();\n }\n }", "public static void createLists() {\r\n \t\t// Raw Meat: (A bit cold...)\r\n \t\tObjectLists.addItem(\"rawmeat\", Items.beef);\r\n \t\tObjectLists.addItem(\"rawmeat\", Items.porkchop);\r\n \t\tObjectLists.addItem(\"rawmeat\", Items.chicken);\r\n \t\t\r\n \t\t// Cooked Meat: (Meaty goodness for carnivorous pets!)\r\n \t\tObjectLists.addItem(\"cookedmeat\", Items.cooked_beef);\r\n \t\tObjectLists.addItem(\"cookedmeat\", Items.cooked_porkchop);\r\n \t\tObjectLists.addItem(\"cookedmeat\", Items.cooked_chicken);\r\n \t\t\r\n \t\t// Prepared Vegetables: (For most vegetarian pets.)\r\n \t\tObjectLists.addItem(\"vegetables\", Items.wheat);\r\n \t\tObjectLists.addItem(\"vegetables\", Items.carrot);\r\n \t\tObjectLists.addItem(\"vegetables\", Items.potato);\r\n \t\t\r\n \t\t// Fruit: (For exotic pets!)\r\n \t\tObjectLists.addItem(\"fruit\", Items.apple);\r\n \t\tObjectLists.addItem(\"fruit\", Items.melon);\r\n \t\tObjectLists.addItem(\"fruit\", Blocks.pumpkin);\r\n \t\tObjectLists.addItem(\"fruit\", Items.pumpkin_pie);\r\n \r\n \t\t// Raw Fish: (Very smelly!)\r\n \t\tObjectLists.addItem(\"rawfish\", Items.fish);\r\n \r\n \t\t// Cooked Fish: (For those fish fiends!)\r\n \t\tObjectLists.addItem(\"cookedfish\", Items.cooked_fished);\r\n \t\t\r\n \t\t// Cactus Food: (Jousts love these!)\r\n \t\tObjectLists.addItem(\"cactusfood\", new ItemStack(Items.dye, 1, 2)); // Cactus Green\r\n \t\t\r\n \t\t// Mushrooms: (Fungi treats!)\r\n \t\tObjectLists.addItem(\"mushrooms\", Blocks.brown_mushroom);\r\n \t\tObjectLists.addItem(\"mushrooms\", Blocks.red_mushroom);\r\n \t\tObjectLists.addItem(\"mushrooms\", Blocks.brown_mushroom_block);\r\n \t\tObjectLists.addItem(\"mushrooms\", Blocks.red_mushroom_block);\r\n \t\t\r\n \t\t// Sweets: (Sweet sugary goodness!)\r\n \t\tObjectLists.addItem(\"sweets\", Items.sugar);\r\n \t\tObjectLists.addItem(\"sweets\", new ItemStack(Items.dye, 1, 15)); // Cocoa Beans\r\n \t\tObjectLists.addItem(\"sweets\", Items.cookie);\r\n \t\tObjectLists.addItem(\"sweets\", Blocks.cake);\r\n \t\tObjectLists.addItem(\"sweets\", Items.pumpkin_pie);\r\n \t\t\r\n \t\t// Fuel: (Fiery awesomeness!)\r\n \t\tObjectLists.addItem(\"fuel\", Items.coal);\r\n \t\t\r\n \t\t// Custom Entries:\r\n \t\tfor(String itemListName : itemListNames) {\r\n \t\t\taddFromConfig(itemListName.toLowerCase());\r\n \t\t}\r\n \t}", "public void loadLists() {\n Cursor cListas = getAllLists(); // Cursor en tabla listas\n Cursor cMovieList; // Cursor en tabla lista-pelicula\n Cursor cPeli; // Cursor en tabla peliculas a una película\n while (cListas.moveToNext()) {\n int id_list = cListas.getInt(cListas.getColumnIndex(ColumnList.ID_LIST));\n if (!Lista.existLista(id_list)) {\n Lista lista = new Lista(id_list,\n cListas.getString(cListas.getColumnIndex(ColumnList.NAME_LIST)),\n cListas.getString(cListas.getColumnIndex(ColumnList.DESCRIPTION_LIST)));\n cMovieList = getMoviesInList(cListas.getInt(cListas.getColumnIndex(ColumnList.ID_LIST)));\n while (cMovieList.moveToNext()) {\n cPeli = getMovie(cMovieList.getInt(cMovieList.getColumnIndex(ColumnMoviesList.ID_MOVIE)));\n if(cPeli.moveToNext())\n lista.addPelicula(getPelicula(cPeli.getString(cPeli.getColumnIndex(ColumnMovie.IMDBID))));\n cPeli.close();\n }\n cMovieList.close();\n }\n }\n cListas.close();\n }", "private static void initializeLists() {\n\t\t\n\t\t//read from serialized files to assign array lists\n\t\t//customerList = (ArrayList<Customer>) readObject(customerFile);\n\t\t//employeeList = (ArrayList<Employee>) readObject(employeeFile);\n\t\t//applicationList = (ArrayList<Application>) readObject(applicationFile);\n\t\t//accountList = (ArrayList<BankAccount>) readObject(accountFile);\n\t\t\n\t\t//read from database to assign array lists\n\t\temployeeList = (ArrayList<Employee>)employeeDao.readAll();\n\t\tcustomerList = (ArrayList<Customer>)customerDao.readAll();\n\t\taccountList = (ArrayList<BankAccount>) accountDao.readAll();\n\t\tapplicationList = (ArrayList<Application>)applicationDao.readAll();\n\t\t\n\t\tassignBankAccounts();\n\t}", "private void prepareListData() {\n mCategoryList = new ArrayList<>();\n mFullList = new ArrayList<>();\n for (Category cat : fileSystem.getLocalInformationList())\n {\n List<Object> phraseList = cat.phraseList;\n mCategoryList.add(new Category(phraseList, cat.name));\n }\n mFullList.addAll(mCategoryList);\n\n }", "public void updateList() {\n if (getActivity().getClass().getName().contains(\"BookmarksActivity\")) {\n\n // Call the create right after initializing the helper, just in case\n // the user has never run the app before.\n mDbNodeHelper.createDatabase();\n\n // Get a list of bookmarked node titles.\n loadBookmarks();\n\n // Close the database\n mDbNodeHelper.close();\n\n // Clear the old ListView.\n setListAdapter(null);\n\n // Initialize a new model object\n CategoryModel[] bookmarksModel = new CategoryModel[nodes.length];\n\n for (int i = 0; i < nodes.length; i++) {\n bookmarksModel[i] = new CategoryModel(nodes[i].id, nodes[i].title);\n }\n\n // Create a new list adapter based on our new updated array.\n ListAdapter bookmarksAdapter = new CategoryModelListAdapter(mActivity, bookmarksModel);\n\n // set the new list adapter, thus updating the list display.\n setListAdapter(bookmarksAdapter);\n }\n else if (getActivity().getClass().getName().contains(\"BrowseActivity\")) {\n\n // Call the create right after initializing the helper, just in case\n // the user has never run the app before.\n mDbNodeHelper.createDatabase();\n\n // Get a list of bookmarked node titles.\n loadList();\n\n // Close the database\n mDbNodeHelper.close();\n\n // Clear the old ListView.\n setListAdapter(null);\n\n // Initialize a new model object\n CategoryModel[] bookmarksModel = new CategoryModel[nodes.length];\n\n for (int i = 0; i < nodes.length; i++) {\n bookmarksModel[i] = new CategoryModel(nodes[i].id, nodes[i].title);\n }\n\n // Create a new list adapter based on our new updated array.\n ListAdapter bookmarksAdapter = new CategoryModelListAdapter(mActivity, bookmarksModel);\n\n // set the new list adapter, thus updating the list display.\n setListAdapter(bookmarksAdapter);\n }\n }", "private void initializeList() {\n findViewById(R.id.label_operation_in_progress).setVisibility(View.GONE);\n adapter = new MapPackageListAdapter();\n listView.setAdapter(adapter);\n listView.setVisibility(View.VISIBLE);\n listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n \n @Override\n public void onItemClick(AdapterView<?> parent, final View view, final int position, long id) {\n List<DownloadPackage> childPackages = searchByParentCode(currentPackages.get(position).getCode());\n if (childPackages.size() > 0) {\n currentPackages = searchByParentCode(currentPackages.get(position).getCode());\n adapter.notifyDataSetChanged();\n }\n }\n });\n }", "private void initList() {\n\n }", "@Override\n public void refreshList() {\n }", "private void setDataOnList() {\r\n if (SharedPref.getSecureTab(MediaVaultController.getSharedPreferencesInstance()).equals(Constant.SECURE_TAB)) {\r\n dataModelArrayList.addAll(secureMediaFileDb.getSecureUnarchiveFileList());\r\n Collections.sort(dataModelArrayList);\r\n position = dataModelArrayList.indexOf(imageDataModel);\r\n } else if (SharedPref.getListType(MediaVaultController.getSharedPreferencesInstance()).equals(Constant.LIST_VIEW)) {\r\n if (Constant.ALL_VIEW.equalsIgnoreCase(SharedPref.getAllType(sharedPreferences))) {\r\n dataModelArrayList.addAll(GalleryHelper.imageDataModelList);\r\n } else if (Constant.VIDEO_VIEW.equalsIgnoreCase(SharedPref.getVideoType(sharedPreferences))) {\r\n dataModelArrayList.addAll(VideoViewData.imageDataModelList);\r\n } else if (Constant.AUDIO_VIEW.equalsIgnoreCase(SharedPref.getAudioType(sharedPreferences))) {\r\n dataModelArrayList.addAll(AudioViewData.imageDataModelList);\r\n } else if (Constant.PHOTO_VIEW.equalsIgnoreCase(SharedPref.getPhotoType(sharedPreferences))) {\r\n dataModelArrayList.addAll(PhotoViewData.imageDataModelList);\r\n }\r\n Collections.sort(dataModelArrayList);\r\n position = dataModelArrayList.indexOf(imageDataModel);\r\n } else if (SharedPref.getAlbumType(MediaVaultController.getSharedPreferencesInstance()).equals(Constant.ALBUM_VIEW)) {\r\n if (Constant.ALL_VIEW.equalsIgnoreCase(SharedPref.getAllType(sharedPreferences))) {\r\n dataModelArrayList.addAll(GalleryHelperBaseOnId.dataModelArrayList);\r\n } else if (Constant.VIDEO_VIEW.equalsIgnoreCase(SharedPref.getVideoType(sharedPreferences))) {\r\n dataModelArrayList.addAll(VideoViewDataOnIdBasis.dataModelArrayList);\r\n } else if (Constant.AUDIO_VIEW.equalsIgnoreCase(SharedPref.getAudioType(sharedPreferences))) {\r\n dataModelArrayList.addAll(AudioViewDataOnIdBasis.dataModelArrayList);\r\n } else if (Constant.PHOTO_VIEW.equalsIgnoreCase(SharedPref.getPhotoType(sharedPreferences))) {\r\n dataModelArrayList.addAll(PhotoViewDataOnIdBasis.dataModelArrayList);\r\n }\r\n Collections.sort(dataModelArrayList);\r\n }\r\n }", "private void populateBasicLists() {\n // TODO chathuranga change following\n districtList = districtDAO.getDistrictNames(language, user);\n // TODO chathuranga when search by all district option\n /* if (districtId == 0) {\n if (!districtList.isEmpty()) {\n districtId = districtList.keySet().iterator().next();\n logger.debug(\"first allowed district in the list {} was set\", districtId);\n }\n }*/\n dsDivisionList = dsDivisionDAO.getDSDivisionNames(districtId, language, user);\n mrDivisionList = mrDivisionDAO.getMRDivisionNames(dsDivisionId, language, user);\n }", "private void setUpList() {\n\t\tRoomItemAdapter adapter = new RoomItemAdapter(getApplicationContext(),\n\t\t\t\trName, rRate);\n\t\tlistView.setAdapter(adapter);\n\n\t\tlistView.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\thandleClick(position);\n\t\t\t}\n\t\t});\n\t}", "public void setDatatoList() {\n swipeRefreshLayout.setRefreshing(true);\n DatabaseHandler databaseHandler = new DatabaseHandler(getApplicationContext());\n locationDetailsList = databaseHandler.getAllLocationDetails();\n if (locationDetailsList.size() > 0) {\n\n recyclerView.setVisibility(View.VISIBLE);\n emptyListText.setVisibility(View.GONE);\n\n mAdapter = new LocationDetailsAdapter(locationDetailsList, this);\n RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(getApplicationContext());\n recyclerView.setLayoutManager(mLayoutManager);\n recyclerView.setItemAnimator(new DefaultItemAnimator());\n recyclerView.setAdapter(mAdapter);\n } else {\n recyclerView.setVisibility(View.GONE);\n emptyListText.setVisibility(View.VISIBLE);\n emptyListText.setText(this.getResources().getString(R.string.no_list_items));\n }\n swipeRefreshLayout.setRefreshing(false);\n }", "public void setListAdapter() {\n\t\tm_dao = new ItemDao(this.getActivity());\n\t\t\n\t\tthis.m_adapter = new EditItemListAdapter(\n\t\t\t\tthis.getActivity(),\n\t\t\t\tR.layout.row,\n\t\t\t\tm_dao.getList());\n\n\n\n\t\tsetListAdapter(this.m_adapter);\n\n\t\tthis.m_adapter.setOnEditItemClickListener(\n\t\t\t\tnew EditItemListAdapter.OnEditItemClickListener() {\n\n\t\t\t\t\t/**\n\t\t\t\t\t * Update the item status in the DB table\n\t\t\t\t\t */\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void OnSelectItem(Item item) {\n\n\t\t\t\t\t\tif(!toDelete.contains(item))\n\t\t\t\t\t\t\ttoDelete.add(item);\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void OnDeselectItem(Item item) {\n\t\t\t\t\t\tif(toDelete.contains(item))\n\t\t\t\t\t\t\ttoDelete.remove(item);\n\n\t\t\t\t\t}\n\n\n\t\t\t\t});\n\n\n\t\t\n\t}", "public void refreshList() {\n PartDAO partDAO = new PartDAO();\n for (Part p : partDAO.getAll()) {\n if (p.getStockLevel() > 0) {\n Label partLabel = new Label(\"ID: \" + p.getPartID() + \" / Name: \" + p.getName() + \" / Stock: \" + p.getStockLevel());\n partHashMap.put(partLabel.getText(), p);\n partList.getItems().add(partLabel);\n }\n }\n Customer customer = new Customer();\n CustomerDAO customerDAO = new CustomerDAO();\n for(Customer c: customerDAO.getAll()) {\n if(jobReference.getJob().getCustomerID() == Integer.parseInt(c.getCustomerID())) {\n customer.setFirstName(c.getFirstName());\n customer.setLastName(c.getLastName());\n break;\n }\n }\n if(jobReference.getJob().getRegistrationID() == null) {\n jobDetailsLbl.setText(\"Date: \" + jobReference.getJob().getDateBookedIn() + \" / Name: \" + customer.getFirstName() + \" \" + customer.getLastName() + \" / Part-only job\");\n }\n else {\n jobDetailsLbl.setText(\"Date: \" + jobReference.getJob().getDateBookedIn() + \" / Name: \" + customer.getFirstName() + \" \" + customer.getLastName() + \" / Car ID: \" + jobReference.getJob().getRegistrationID());\n }\n stockUsedField.setText(\"1\");\n }", "public void genLists() {\n\t\tItem noitem = new Item(\"nothing\", \"You don't see that here.\", \"no_item\", \"\", true);\r\n\t\titems.put(noitem.getId(), noitem);\r\n\t\t\r\n\t\ttry {\r\n\t\t\t//DataInputStream in = new DataInputStream(new FileInputStream(ITEM_FILE));\r\n\t\t\tDataInputStream in = new DataInputStream(getClass().getResourceAsStream(ITEM_FILE));\r\n\t\t\ttry {\r\n\t\t\t\twhile (true) {\r\n\t\t\t\t\tItem new_item = Item.readItem(in);\r\n\t\t\t\t\titems.put(new_item.getId(), new_item);\r\n\t\t\t\t}\r\n\t\t\t} catch (EOFException eof) {}\r\n\t\t\tin.close();\r\n\t\t\t\r\n\t\t\tin = new DataInputStream(getClass().getResourceAsStream(ROOM_FILE));\r\n\t\t\ttry {\r\n\t\t\t\twhile (true) {\r\n\t\t\t\t\tRoom new_room = Room.readRoom(in, items);\r\n\t\t\t\t\trooms.put(new_room.getId(), new_room);\r\n\t\t\t\t}\r\n\t\t\t} catch (EOFException eof) {}\r\n\t\t\tin.close();\r\n\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.err.println(e);\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t\t\r\n\t\tplayer.setCurrentRoom(getRoom(\"start\"));\r\n\t}", "private void filllist() {\n mAlLocationBox.clear();\n DatabaseHandler databaseHandler=new DatabaseHandler(this);\n ArrayList<ArrayList<Object>> data = databaseHandler.listIitems();\n\n for (int p = 0; p < data.size(); p++) {\n mLocationBox = new LocationBox();\n ArrayList<Object> temp = data.get(p);\n Log.e(\"List\", temp.get(0).toString());\n Log.e(\"List\", temp.get(1).toString());\n Log.e(\"List\", temp.get(2).toString());\n Log.e(\"List\", temp.get(3).toString());\n mLocationBox.setId(Integer.valueOf(temp.get(0).toString()));\n mLocationBox.setName(temp.get(1).toString());\n mLocationBox.setMode(temp.get(2).toString());\n mLocationBox.setStatus(temp.get(3).toString());\n mAlLocationBox.add(mLocationBox);\n }\n LocationBoxAdapter locationBoxAdapter = new LocationBoxAdapter(LocationBoxListActivity.this,mAlLocationBox);\n listcontent.setAdapter(locationBoxAdapter);\n }", "private void initList() {\r\n\t\tthis.panelList = new JPanel();\r\n\t\tthis.panelList.setLayout(new BoxLayout(this.panelList,\r\n\t\t\t\tBoxLayout.PAGE_AXIS));\r\n\r\n\t\tJLabel labelList = new JLabel(\"Weapons list\");\r\n\t\tlabelList.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n\t\tthis.dlm = new DefaultListModel<String>();\r\n\t\tthis.list = new JList<String>(dlm);\r\n\t\tthis.scrollPane = new JScrollPane(this.list,\r\n\t\t\t\tJScrollPane.VERTICAL_SCROLLBAR_ALWAYS,\r\n\t\t\t\tJScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);\r\n\t\tthis.scrollPane.setBounds(new Rectangle(10, 10, 450, 80));\r\n\t\tthis.list.addMouseListener(this.editWeaponControl);\r\n\t\tthis.updateList();\r\n\t\tthis.panelList.add(labelList);\r\n\t\tthis.panelList.add(this.scrollPane);\r\n\t}", "@Override\n\t\tpublic void initList() {\n\t\t\tadapter = new MsgItemAdapter(context);\n\t\t\tArrayList<MsgBean> datas = getData();\n\t\t\tadapter.setData(datas);\n\t\t\tmListView.setAdapter(adapter);\n\t\t\tmListView.setViewMode(true, true);\n\t\t\tif(!DataValidate.checkDataValid(datas)){\n\t\t\t\tpageView.setDefaultPage().setVisibility(View.VISIBLE);\n\t\t\t}\n\t\t}", "void doList()\n\t{\n /* currentXXX may NOT be invalid! */\n\n\t\tint currentModule = propertyGet(LIST_MODULE);\n int currentLine = propertyGet(LIST_LINE);\n int listsize = propertyGet(LIST_SIZE);\n\n String arg1 = null;\n int module1 = currentModule;\n int line1 = currentLine;\n\n String arg2 = null;\n int line2 = currentLine;\n\n int numLines = 0;\n\n\t\ttry\n\t\t{\n if (hasMoreTokens())\n\t\t\t{\n arg1 = nextToken();\n\n if (arg1.equals(\"-\")) //$NON-NLS-1$\n {\n\t\t\t\t\t// move back two times the listing size and if listsize is odd then move forward one\n line1 = line2 = line1 - (2 * listsize);\n }\n else\n {\n int[] result = parseLocationArg(currentModule, currentLine, arg1);\n module1 = result[0];\n line2 = line1 = result[1];\n\n if (hasMoreTokens())\n {\n arg2 = nextToken();\n line2 = parseLineArg(module1, arg2);\n }\n }\n\t\t\t}\n\n//\t\t\tSystem.out.println(\"1=\"+module1+\":\"+line1+\",2=:\"+line2);\n\n\t\t\t/**\n\t\t\t * Check for a few error conditions, otherwise we'll write a listing!\n\t\t\t */\n\t\t\tif (hasMoreTokens())\n\t\t\t{\n\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"lineJunk\")); //$NON-NLS-1$\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tint half = listsize/2;\n\t\t\t\tSourceFile file = m_fileInfo.getFile(module1);\n\t\t\t\tnumLines = file.getLineCount();\n\n\t\t\t\tint newLine;\n\t\t\t\tif (numLines == 1 && file.getLine(1).equals(\"\")) //$NON-NLS-1$\n\t\t\t\t{\n\t\t\t\t\t// there's no source in the file at all!\n\t\t\t\t\t// this presumably means that the source file isn't in the current directory\n\t\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"sourceFileNotFound\")); //$NON-NLS-1$\n\t\t\t\t\tnewLine = currentLine;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// pressing return is ok, otherwise throw the exception\n\t\t\t\t\tif (line1 > numLines && arg1 != null)\n\t\t\t\t\t\tthrow new IndexOutOfBoundsException();\n\t\n\t\t\t\t\t/* if no arg2 then user requested the next N lines around something */\n\t\t\t\t\tif (arg2 == null)\n\t\t\t\t\t{\n\t\t\t\t\t\tline2 = line1 + (half) - 1;\n\t\t\t\t\t\tline1 = line1 - (listsize-half);\n\t\t\t\t\t}\n\n\t\t\t\t\t/* adjust our range of lines to ensure we conform */\n\t\t\t\t\tif (line1 < 1)\n\t\t\t\t\t{\n\t\t\t\t\t\t/* shrink line 1, grow line2 */\n\t\t\t\t\t\tline2 += -(line1 - 1);\n\t\t\t\t\t\tline1 = 1;\n\t\t\t\t\t}\n\t\n\t\t\t\t\tif (line2 > numLines)\n\t\t\t\t\t\tline2 = numLines;\n\t\n//\t\t\t\t System.out.println(\"1=\"+module1+\":\"+line1+\",2=\"+module2+\":\"+line2+\",num=\"+numLines+\",half=\"+half);\n\t\n\t\t\t\t\t/* nothing to display */\n\t\t\t\t\tif (line1 > line2)\n\t\t\t\t\t\tthrow new IndexOutOfBoundsException();\n\t\n\t\t\t\t\t/* now do it! */\n\t\t\t\t\tSourceFile source = m_fileInfo.getFile(module1);\n\t\t\t\t\tfor(int i=line1; i<=line2; i++)\n\t\t\t\t\t\toutputSource(module1, i, source.getLine(i));\n\t\t\t\t\t\n\t\t\t\t\tnewLine = line2 + half + (((listsize % 2) == 0) ? 1 : 2); // add one if even, 2 for odd;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/* save away valid context */\n\t\t\t\tpropertyPut(LIST_MODULE, module1);\n\t\t\t\tpropertyPut(LIST_LINE, newLine);\n\t\t\t\tm_repeatLine = \"list\"; /* allow repeated listing by typing CR */ //$NON-NLS-1$\n\t\t\t}\n\t\t}\n catch(IndexOutOfBoundsException iob)\n\t\t{\n\t\t\tString name = \"#\"+module1; //$NON-NLS-1$\n\t\t\tMap<String, Object> args = new HashMap<String, Object>();\n\t\t\targs.put(\"line\", Integer.toString(line1)); //$NON-NLS-1$\n\t\t\targs.put(\"filename\", name); //$NON-NLS-1$\n\t\t\targs.put(\"total\", Integer.toString(numLines)); //$NON-NLS-1$\n\t\t\terr(getLocalizationManager().getLocalizedTextString(\"lineNumberOutOfRange\", args)); //$NON-NLS-1$\n\t\t}\n\t\tcatch(AmbiguousException ae)\n\t\t{\n\t\t\terr(ae.getMessage());\n\t\t}\n\t\tcatch(NoMatchException nme)\n\t\t{\n\t\t\t// TODO [mmorearty]: try to find a matching source file\n\t\t\terr(nme.getMessage());\n\t\t}\n\t\tcatch(NullPointerException npe)\n\t\t{\n\t\t\terr(getLocalizationManager().getLocalizedTextString(\"noFilesFound\")); //$NON-NLS-1$\n\t\t}\n\t\tcatch(ParseException pe)\n\t\t{\n\t\t\terr(pe.getMessage());\n\t\t}\n\t}", "@Override\n\t\tpublic int getCount() {\n\t\t\treturn lists.size();\n\t\t}", "private void initList() {\n tempShopList=wdh.getTempShopList();\n final String[] listIndex=new String[tempShopList.size()];\n \n // System.out.println(tempShopList.size());\n \n for(int i=0;i<tempShopList.size();i++)\n listIndex[i]=String.valueOf(i+1); \n \n// jList1=new JList(listIndex);\n// jScrollPane1=new JScrollPane(jList1);\n// jScrollPane1.setViewportView(jList1);\n \n \n jList1.setModel(new javax.swing.AbstractListModel() {\n String[] strings1 = listIndex;\n public int getSize() { return strings1.length; }\n public Object getElementAt(int i) { return strings1[i]; }\n });\n jScrollPane1.setViewportView(jList1);\n \n }", "private void setUpList() {\n\n\n Contents s1 = new Contents(R.drawable.bishist,\"Bishisht Bhatta\",\"+977-9849849525\", Color.parseColor(\"#074e87\"));\n list.add(s1);\n Contents s2 = new Contents(R.drawable.sagar,\"Sagar Pant\",\"+977-9865616888\",Color.parseColor(\"#074e87\"));\n list.add(s2);\n Contents s3 = new Contents(R.drawable.rabins,\"Rabin Nath\",\"+977-9848781007\",Color.parseColor(\"#074e87\"));\n list.add(s3);\n\n\n }", "private Lists() { }", "private void loadListView() {\n\t\tList<ClientData> list = new ArrayList<ClientData>();\n\t\ttry {\n\t\t\tlist = connector.get();\n\t\t\tlView.updateDataView(list);\n\t\t} catch (ClientException e) {\n\t\t\tlView.showErrorMessage(e);\n\t\t}\n\n\t}", "private void doLists () {\n char lastListChar = ' ';\n char thisListChar = ' ';\n\n // Determine how deeply lists are nested\n int listDepth = context.lastListChars.length();\n if (listChars.length() > listDepth) {\n listDepth = listChars.length();\n }\n\n // Determine how deeply we are maintaining existing lists with new line\n int listCharsMatchingDepth = 0;\n for (int i = 0; i < listDepth; i++) {\n thisListChar = charAt (listChars.toString(), i);\n lastListChar = charAt (context.lastListChars, i);\n if (thisListChar == lastListChar) {\n listCharsMatchingDepth = i + 1;\n }\n }\n\n // Where list characters don't match, end any lists in progress\n for (int i = listDepth - 1; i >= listCharsMatchingDepth; i--) {\n lastListChar = charAt (context.lastListChars, i);\n if (lastListChar == '*') {\n lineInsert (\"</li>\");\n lineInsert (\"</ul>\");\n }\n else\n if (lastListChar == '#') {\n lineInsert (\"</li>\");\n lineInsert (\"</ol>\");\n }\n else\n if (lastListChar == ';') {\n lineInsert (closeDefinitionTag(lastDefChar));\n lastDefChar = ' ';\n lineInsert (\"</dl>\");\n }\n }\n\n // Where list characters don't match, start any new lists needed\n for (int i = listCharsMatchingDepth; i < listDepth; i++) {\n thisListChar = charAt (listChars.toString(), i);\n StringBuffer listStart = new StringBuffer();\n if (thisListChar == '*') {\n listStart.append (\"ul\");\n }\n else\n if (thisListChar == ';') {\n listStart.append (\"dl\");\n } else {\n listStart.append (\"ol\");\n }\n if (klass.length() > 0) {\n listStart.append (\" class=\\\"\" + klass + \"\\\"\");\n }\n if (thisListChar == '*') {\n lineInsert (\"<\" + listStart.toString() + \">\");\n lineInsert (\"<li>\");\n }\n else\n if (thisListChar == '#') {\n lineInsert (\"<\" + listStart.toString() + \">\");\n lineInsert (\"<li>\");\n }\n else\n if (thisListChar == ';') {\n lineInsert (\"<\" + listStart.toString() + \">\");\n lineInsert (openDefinitionTag(thisListChar));\n }\n }\n\n // If List characters all match, then continue list in process\n if (listCharsMatchingDepth == listDepth && listDepth > 0) {\n if (thisListChar == ';') {\n lineInsert (closeDefinitionTag(lastDefChar));\n lastDefChar = ' ';\n lineInsert (\"<dt>\");\n } else {\n lineInsert (\"</li>\");\n lineInsert (\"<li>\");\n }\n }\n\n // If some lists ended, but some continuing, start new list item\n if (listCharsMatchingDepth > 0\n && listCharsMatchingDepth < listDepth) {\n thisListChar = charAt (listChars.toString(), listCharsMatchingDepth - 1);\n if (thisListChar == '*') {\n lineInsert (\"<li>\");\n }\n else\n if (thisListChar == '#') {\n lineInsert (\"<li>\");\n } else\n if (thisListChar == ';') {\n lineInsert (openDefinitionTag(thisListChar));\n }\n }\n\n // Save latest list characters\n context.lastListChars = listChars.toString();\n }", "public void genLists() {\n\t}", "public static void addList() {\n\t}", "@Before(value = \"@createList\", order = 1)\n public void createList() {\n String endpoint = EnvironmentTrello.getInstance().getBaseUrl() + \"/lists/\";\n JSONObject json = new JSONObject();\n json.put(\"name\", \"testList\");\n json.put(\"idBoard\", context.getDataCollection(\"board\").get(\"id\"));\n RequestManager.setRequestSpec(AuthenticationUtils.getLoggedReqSpec());\n Response response = RequestManager.post(endpoint, json.toString());\n context.saveDataCollection(\"list\", response.jsonPath().getMap(\"\"));\n }", "public void populateList() {\n }", "private void initLists() {\r\n listPanel.removeAll();\r\n\r\n memoryLists = new JList[this.memoryBlocks.size()];\r\n memoryUpdateState = new boolean[this.memoryBlocks.size()];\r\n this.lastChanged = new int[this.memoryBlocks.size()];\r\n\r\n for (int i = 0; i < this.memoryBlocks.size(); i++) {\r\n this.lastChanged[i] = -1;\r\n memoryLists[i] = this.addList((MemoryBlock) memoryBlocks.get(i));\r\n\r\n // redraw first time\r\n memoryUpdateState[i] = true;\r\n }\r\n\r\n this.updateLists();\r\n }", "private void listViewPendentes(List<Compra> listAll) {\n\t\t\n\t}", "private void initializeLists() {\n\t\tif (tiles == null) {\n\t\t\ttiles = new ArrayList<Tile>(gridSize * gridSize);\n\t\t} else {\n\t\t\t// Be sure to clean up old tiles\n\t\t\tfor (int i = 0; i < tiles.size(); i++) {\n\t\t\t\ttiles.get(i).freeBitmap();\n\t\t\t\ttiles = new ArrayList<Tile>(gridSize * gridSize);\n\t\t\t}\n\t\t}\n\t\ttileViews = new ArrayList<TileView>(gridSize * gridSize);\n\t\ttableRow = new ArrayList<TableRow>(gridSize);\n\n\t\tfor (int row = 0; row < gridSize; row++) {\n\t\t\ttableRow.add(new TableRow(context));\n\t\t}\n\n\t}", "@Override\n public void refreshList(ArrayList<String> newList){\n }", "public void doList ( RunData data)\n\t{\n\t\t// get the state object\n\t\tSessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ());\n\n\t\tstate.setAttribute (STATE_MODE, MODE_LIST);\n\n\t}", "private void initList() {\n\n\t\tfor (int i = 0; i < lstPool.size(); i++) {\n\t\t\tpoolList.add(createPool(\"nomPool\", lstPool.get(i).getNomPool()));\n\t\t}\n\t}", "private void initializeLists() {\n this.sensorsPm10 = new ArrayList<>();\n this.sensorsTempHumid = new ArrayList<>();\n }", "private void refreshList() {\n\t\t\t\tlist.clear();\n\t\t\t\tGetChildrenBuilder childrenBuilder = client.getChildren();\n\t\t\t\ttry {\n\t\t\t\t\tList<String> listdir = childrenBuilder.forPath(servicezoopath);\n\t\t\t\t\tfor (String string : listdir) {\n\t\t\t\t\t\tbyte[] data = client.getData().forPath(servicezoopath + \"/\" + string);\n\t\t\t\t\t\tlist.add(new String(data));\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception 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}", "private void refreshList() {\n\n Requester.getInstance().cancelPendingRequests(BrowseCoursesNew.TAG);\n mWishListAdapter.clearData();\n\n refreshView();\n\n wishCourses = new WishCourses(mHandler);\n wishCourses.sendWishlistCoursesRequest();\n }", "public ListItems() {\n itemList = new ArrayList();\n }", "@Override\r\n\tpublic int getCount() {\n\t\treturn lists.size();\r\n\t}", "@Override\r\n\tpublic int getCount() {\n\t\treturn lists.size();\r\n\t}", "private void setupListView() {\n potList = loadPotList();\n arrayofpots = potList.getPotDescriptions();\n refresher(arrayofpots);\n }", "public void populateListView() {\n\n\n }", "private void InitList()\n {\n Globals.list = new ArrayList<>();\n Globals.search_result = new ArrayList<>();\n Globals.selected_items = new ArrayList<>();\n\n Globals.list.add(\"Afghanistan\");\n Globals.list.add(\"Albania\");\n Globals.list.add(\"Algeria\");\n Globals.list.add(\"Andorra\");\n Globals.list.add(\"Angola\");\n Globals.list.add(\"Anguilla\");\n Globals.list.add(\"Antigua & Barbuda\");\n Globals.list.add(\"Argentina\");\n Globals.list.add(\"Armenia\");\n Globals.list.add(\"Australia\");\n Globals.list.add(\"Austria\");\n Globals.list.add(\"Azerbaijan\");\n Globals.list.add(\"Bahamas\");\n Globals.list.add(\"Bahrain\");\n Globals.list.add(\"Bangladesh\");\n Globals.list.add(\"Barbados\");\n Globals.list.add(\"Belarus\");\n Globals.list.add(\"Belgium\");\n Globals.list.add(\"Belize\");\n Globals.list.add(\"Benin\");\n Globals.list.add(\"Bermuda\");\n Globals.list.add(\"Bhutan\");\n Globals.list.add(\"Bolivia\");\n Globals.list.add(\"Bosnia & Herzegovina\");\n Globals.list.add(\"Botswana\");\n Globals.list.add(\"Brazil\");\n Globals.list.add(\"Brunei Darussalam\");\n Globals.list.add(\"Bulgaria\");\n Globals.list.add(\"Burkina Faso\");\n Globals.list.add(\"Myanmar/Burma\");\n Globals.list.add(\"Burundi\");\n Globals.list.add(\"Cambodia\");\n Globals.list.add(\"Cameroon\");\n Globals.list.add(\"Canada\");\n Globals.list.add(\"Cape Verde\");\n Globals.list.add(\"Cayman Islands\");\n Globals.list.add(\"Central African Republic\");\n Globals.list.add(\"Chad\");\n Globals.list.add(\"Chile\");\n Globals.list.add(\"China\");\n Globals.list.add(\"Colombia\");\n Globals.list.add(\"Comoros\");\n Globals.list.add(\"Congo\");\n Globals.list.add(\"Costa Rica\");\n Globals.list.add(\"Croatia\");\n Globals.list.add(\"Cuba\");\n Globals.list.add(\"Cyprus\");\n Globals.list.add(\"Czech Republic\");\n Globals.list.add(\"Democratic Republic of the Congo\");\n Globals.list.add(\"Denmark\");\n Globals.list.add(\"Djibouti\");\n Globals.list.add(\"Dominican Republic\");\n Globals.list.add(\"Dominica\");\n Globals.list.add(\"Ecuador\");\n Globals.list.add(\"Egypt\");\n Globals.list.add(\"El Salvador\");\n Globals.list.add(\"Equatorial Guinea\");\n Globals.list.add(\"Eritrea\");\n Globals.list.add(\"Estonia\");\n Globals.list.add(\"Ethiopia\");\n Globals.list.add(\"Fiji\");\n Globals.list.add(\"Finland\");\n Globals.list.add(\"France\");\n Globals.list.add(\"French Guiana\");\n Globals.list.add(\"Gabon\");\n Globals.list.add(\"Gambia\");\n Globals.list.add(\"Georgia\");\n Globals.list.add(\"Germany\");\n Globals.list.add(\"Ghana\");\n Globals.list.add(\"Great Britain\");\n Globals.list.add(\"Greece\");\n Globals.list.add(\"Grenada\");\n Globals.list.add(\"Guadeloupe\");\n Globals.list.add(\"Guatemala\");\n Globals.list.add(\"Guinea\");\n Globals.list.add(\"Guinea-Bissau\");\n Globals.list.add(\"Guyana\");\n Globals.list.add(\"Haiti\");\n Globals.list.add(\"Honduras\");\n Globals.list.add(\"Hungary\");\n }", "private void updateList() {\r\n\t\tlistaStaff.setItems(FXCollections.observableArrayList(service\r\n\t\t\t\t.getStaff()));\r\n\t}", "public void listar() {\n\t\t\n\t}", "abstract void makeList();", "@Override\n\tpublic void listAllItems() {\n\t\t\n\t}", "private void initList(int num) {\r\n\t\t/**\r\n\t\t * Set up the adapters\r\n\t\t */\r\n\t\tswitch (num) {\r\n\t\tcase 1:\r\n\t\t\tif(MyAppService.securityList != null && MyAppService.securityList.size() > 0) {\r\n\t\t\t\tArrayList<String> secList = getList(MyAppService.securityList);\r\n\t\t\t\tlistsc1.setAdapter(new ArrayAdapter<String>(getParent(), R.layout.accordion_item_layout, secList));\r\n\t\t\t}else \r\n\t\t\t\tlistsc1.setAdapter(new ArrayAdapter<String>(getParent(), R.layout.accordion_item_layout, \r\n\t\t\t\t\t\tgetResources().getStringArray(R.array.accordion_string_1)));\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tif(MyAppService.healthList != null && MyAppService.healthList.size() > 0) {\r\n\t\t\t\tArrayList<String> secList = getList(MyAppService.healthList);\r\n\t\t\t\tlistsc2.setAdapter(new ArrayAdapter<String>(getParent(), R.layout.accordion_item_layout, secList));\r\n\t\t\t}else \r\n\t\t\t\tlistsc2.setAdapter(new ArrayAdapter<String>(getParent(), R.layout.accordion_item_layout, \r\n\t\t\t\t\t\tgetResources().getStringArray(R.array.accordion_string_2)));\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tif(MyAppService.fireList != null && MyAppService.fireList.size() > 0) {\r\n\t\t\t\tArrayList<String> secList = getList(MyAppService.fireList);\r\n\t\t\t\tlistsc3.setAdapter(new ArrayAdapter<String>(getParent(), R.layout.accordion_item_layout, secList));\r\n\t\t\t}else \r\n\t\t\t\tlistsc3.setAdapter(new ArrayAdapter<String>(getParent(), R.layout.accordion_item_layout, \r\n\t\t\t\t\t\tgetResources().getStringArray(R.array.accordion_string_3)));\r\n\t\t\tbreak;\t\t\t\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\t\r\n\r\n\t}", "private List<ItemModel> addList() {\n List<ItemModel> items = new ArrayList<>();\n\n managerlist = new ArrayList(strangerList);\n for(int i = 0; i < managerlist.size(); i++)\n if(managerlist.get(i).getId().equals(mPI.getId())) {\n managerlist.remove(i);\n break;\n }\n for(PersonalInformation i : managerlist){\n items.add(new ItemModel(i.getGraph(), i.getName(), i.getCity(), i.getAge()));\n }\n return items;\n }", "public void initializeList() {\n listitems.clear();\n int medicationsSize = Medications.length;\n for(int i =0;i<medicationsSize;i++){\n Medication Med = new Medication(Medications[i]);\n listitems.add(Med);\n }\n\n }", "private void updateListView() {\n adapter = new TableItemAdapter(this, tableItems);\n this.listView.setAdapter(adapter);\n }", "private void loadPersistantWatchLists()\r\n {\r\n\r\n debug(\"loadPersistantWatchLists() called - \");\r\n\r\n expungeAllHistoricFiles();\r\n\r\n final int watchListCount =\r\n ParseData.parseNum(appProps.getProperty(getString(\"WatchListTableModule.application_watchlist_count_key_title\")), 0);\r\n\r\n for (int index = 0; index < watchListCount; index++)\r\n {\r\n // Create a NEW header Vector\r\n Vector headers = new Vector();\r\n headers.removeAllElements();\r\n for (int i = 0; i < StockData.columns.length; i++)\r\n {\r\n headers.addElement(StockData.columns[i]);\r\n }\r\n\r\n // Create a new DATA Vector\r\n Vector data = new Vector();\r\n data.removeAllElements();\r\n // Are we in DEMO mode ior in Live Mode\r\n // Populate the Vectors\r\n if (DEMO_MODE)\r\n {\r\n getDemoData(data);\r\n }\r\n else\r\n {\r\n //getDemoData(data);\r\n getLiveData(data, index);\r\n }\r\n\r\n // Create a new Table Model with our headers and data\r\n StockDataTableModel tableModel = new StockDataTableModel(headers, data);\r\n\r\n // Create a new Table with our Tablemodel\r\n JTable table = new HGTable(tableModel);\r\n\r\n // This method will add a timer ( via the index ) the table and tableModel\r\n // the appropriate vector containers.\r\n addDataToVectorContainers(table, tableModel, index);\r\n // This Method will add the Popup menu to the this table\r\n addPopupMenuToTable(table);\r\n // Create a new ScrollPane and add our table to it\r\n JScrollPane scrollPane = new JScrollPane();\r\n scrollPane.getViewport().add(table);\r\n JPanel panel = new JPanel(new BorderLayout());\r\n\r\n // Creae a new Vertical Panel and add our Menu and JScrollPane Table\r\n JPanel lblPanel = createVerticalPanel(true);\r\n\r\n lblPanel.add(createDropDownMenu());\r\n panel.add(lblPanel, BorderLayout.NORTH);\r\n panel.add(scrollPane, BorderLayout.CENTER);\r\n\r\n // Create a default name for that tab and tab name lookup\r\n String tabName = getString(\"WatchListTableModule.edit.watch_list_basic_name\") + index;\r\n // Get the WatchList title via Properties\r\n // Get the Property\r\n tabName = appProps.getProperty(tabName, tabName);\r\n tabPane.addTab(tabName, null, panel, new String(\"Click here to view \" + tabName));\r\n\r\n // Set the selected index to the first in the list\r\n tabPane.setSelectedIndex(0);\r\n // Repaint the tabpane with the current data\r\n tabPane.repaint();\r\n\r\n // Load the Historical Data on the Util Event Thread as \r\n // to get our primary data up and going as fast as possible\r\n // So we can get out of here - This Inner class thread\r\n // invokes class instance method loadHistoricData(index);\r\n // NOTE: Startup Initial delay of 5 seconds, give the application,\r\n // Time to load.\r\n TimerTask historicDataTask = new LoadHistoricListDataTask(index);\r\n Timer timer = new Timer(true);\r\n timer.schedule(historicDataTask, ONE_SECOND ); // ONE_SECOND * 6);\r\n\r\n this.setStatusBar(\"Loading watch list [\" + index + \"] complete.\");\r\n }\r\n\r\n this.MODULE_READY = true;\r\n\r\n this.monitorTask = new WatchListMonitorTask();\r\n Timer timer = new Timer(true); // Non-Deamon\r\n timer.scheduleAtFixedRate(monitorTask, MONITOR_DELAY, MONITOR_DELAY);\r\n\r\n debug(\"loadPersistantWatchLists() complete - \");\r\n\r\n }", "public Cursor getAllLists() {\n //Seleccionamos todas las filas de la tabla List\n return database.rawQuery(\n \"select * from \" + LIST_TABLE_NAME, null);\n }", "private void updateLists() {\r\n for (int i = 0; i < this.memoryLists.length; i++) {\r\n MemoryBlock memBlock = (MemoryBlock) memoryBlocks.get(i);\r\n\r\n if (memBlock.isChanged(this.lastChanged[i]) || memoryUpdateState[i]) {\r\n Vector<MemoryInt> memVector = memBlock.getMemoryVector();\r\n\r\n if (memVector != null) memoryLists[i].setListData(memVector);\r\n\r\n // if memory block has changed, do also redraw next time\r\n // in order to remove indication\r\n memoryUpdateState[i] = memBlock.isChanged(this.lastChanged[i]);\r\n this.lastChanged[i] = memBlock.lastChanged();\r\n }\r\n }\r\n }", "public list() {\r\n }", "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 }", "private void fillList(JList aListComponent,ArrayList<String> theList) {\n DefaultListModel itsModel = new DefaultListModel();\n aListComponent.setModel(itsModel);\n for(String anItem : theList){\n itsModel.addElement(anItem);\n }\n aListComponent.setModel(itsModel);\n }", "private void initFormRelatedLists( HttpServletRequest request )\n {\n\n List<FormPanel> listFormPanel = new FormPanelFactory( ).buildFormPanelList( );\n\n FormColumnFactory formColumnFactory = SpringContextService.getBean( FormColumnFactory.BEAN_NAME );\n\n Integer nIdForm = null;\n try\n {\n nIdForm = Integer.parseInt( request.getParameter( FormsConstants.PARAMETER_ID_FORM ) );\n }\n catch( NumberFormatException e )\n {\n // Nothing to do\n }\n\n boolean changePanel = Boolean.parseBoolean( request.getParameter( PARAMETER_CHANGE_PANEL ) );\n if ( CollectionUtils.isEmpty( _listFormFilterDisplay ) || !changePanel )\n {\n _listFormColumn = formColumnFactory.buildFormColumnList( nIdForm, request.getLocale( ), (User) AdminUserService.getAdminUser( request ) );\n List<FormFilter> listFormFilter = FormDisplayFactory.buildFormFilterList( nIdForm, _listFormColumn, request.getLocale( ),\n (User) AdminUserService.getAdminUser( request ) );\n _listFormFilterDisplay = FormDisplayFactory.createFormFilterDisplayList( request, listFormFilter );\n _listFormColumnDisplay = FormDisplayFactory.createFormColumnDisplayList( _listFormColumn );\n }\n\n _listFormPanelDisplay = FormDisplayFactory.createFormPanelDisplayList( request, listFormPanel, _formPanelDisplayActive );\n for ( IFormPanelDisplay formPanelDisplay : _listFormPanelDisplay )\n {\n if ( formPanelDisplay.isActive( ) )\n {\n _formPanelDisplayActive = formPanelDisplay;\n }\n }\n _formItemSortConfig = new FormItemSortConfig( -1, null, true );\n }", "public DaftarMhs_list(ArrayList<NamaMhs_Obj> list_data) {\n\n this.list_data = list_data;\n\n\n }", "public static void populateLists() throws IOException\n\t{\n\n\t\tFile loginInfo = new File(\"loginDetails.txt\");\n\t\tFile topics = new File(\"task.txt\");\n\t\tFile games = new File(\"game.txt\");\n\t\tFile questions = new File(\"Questions.txt\");\n\t\tFile topic = new File(\"Topics.txt\");\n\t\t//File userinfo=new File\n Scanner fileReader;\n\t\tString[] temp;\n\t\t\n\t\tloginDetails.add(new ArrayList<String>());\n\t\tloginDetails.add(new ArrayList<String>());\n\t\tloginDetails.add(new ArrayList<String>());\n\t\t\n\t\ttopicsMenu.add(new ArrayList<String>());\n\t\ttopicsMenu.add(new ArrayList<String>());\n\n\t\tgameMenu.add(new ArrayList<String>());\n\t\tgameMenu.add(new ArrayList<String>());\n\t\ttopicMenu.add(new ArrayList<String>());\n\t\ttopicMenu.add(new ArrayList<String>());\n\n\n\t\tfor(int i=0; i<9; i++)\n\t\t\tquestionDetails.add(new ArrayList<String>());\n if(loginInfo.exists())\n\t\t{\n\t\t\tfileReader = new Scanner(loginInfo);\n\t\t\t\n\t\t\twhile(fileReader.hasNext())\n\t\t\t{\n\t\t\t\ttemp = fileReader.nextLine().split(\",\");\n\t\t\t\tfor(int i=0; i<loginDetails.size(); i++)\n\t\t\t\t\tloginDetails.get(i).add(temp[i]);\n\t\t\t}\n\t\t\tfileReader.close();\n\t\t}writeToFile(loginInfo,\"\");\n if(topics.exists())\n\t\t{\n\t\t\tfileReader = new Scanner(topics);\n\n\t\t\twhile(fileReader.hasNext())\n\t\t\t{\n\t\t\t\ttemp = fileReader.nextLine().split(\",\");\n\t\t\t\tfor(int i=0; i<topicsMenu.size(); i++)\n\t\t\t\t\ttopicsMenu.get(i).add(temp[i]);\n\t\t\t}\n\t\t\tfileReader.close();\n\t\t}\n\t\t if(topic.exists())\n\t\t{\n\t\t\tfileReader = new Scanner(topic);\n\n\t\t\twhile(fileReader.hasNext())\n\t\t\t{\n\t\t\t\ttemp = fileReader.nextLine().split(\",\");\n\t\t\t\tfor(int i=0; i<topicMenu.size(); i++)\n\t\t\t\t\ttopicMenu.get(i).add(temp[i]);\n\t\t\t}\n\t\t\tfileReader.close();\n\t\t}\n\t\tif(games.exists())\n\t\t{\n\t\t\tfileReader = new Scanner(games);\n\n\t\t\twhile(fileReader.hasNext())\n\t\t\t{\n\t\t\t\ttemp = fileReader.nextLine().split(\",\");\n\t\t\t\tfor(int i=0; i<gameMenu.size(); i++)\n\t\t\t\t\tgameMenu.get(i).add(temp[i]);\n\t\t\t}\n\t\t\tfileReader.close();\n\t\t}\n if(questions.exists())\n\t\t{\n\t\t\tfileReader = new Scanner(questions);\n while(fileReader.hasNext())\n\t\t\t{\n\t\t\t\ttemp = fileReader.nextLine().split(\",\");\n\t\t\t\tfor(int i=0; i<questionDetails.size(); i++)\n\t\t\t\t\tquestionDetails.get(i).add(temp[i]);\n\t\t\t}\n\t\t\tfileReader.close();\n\t\t}\n }", "public void getList() {\n\n\t\tFile opFile = new File(\"/home/bridgeit/Desktop/newfile.txt\");\n\t\ttry {\n\t\t\topFile.createNewFile();\n\t\t\tFileWriter fwriter = new FileWriter(opFile);\n\n\t\t\tfor (int i = 0; i < slist.size(); i++) {\n\n\t\t\t\tfwriter.append(slist.returnItem(i) + \" \");\n\n\t\t\t}\n\t\t\tfwriter.close();\n\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "@Override\n\t\t\tpublic void onRefresh() {\n\t\t\t\tcurPage = 1;\n\t\t\t\tmList.clear();\n\t\t\t\tJiaoYiJiLuExec.getInstance().getTiXianJiLuList(mHandler,\n\t\t\t\t\t\tManagerUtils.getInstance().yjtc.getId(), curPage,\n\t\t\t\t\t\tpageSize, NetworkAsyncCommonDefines.GET_TXJL_LIST_S,\n\t\t\t\t\t\tNetworkAsyncCommonDefines.GET_TXJL_LIST_F);\n\t\t\t}", "private void initList() {\n\t\t\r\n\t\tpointArrayAdapter = new WastePointsAdapter(mContext, R.layout.list_feeds_item, mWastePointController.getWastePointsList());\r\n\t\tsetListAdapter(pointArrayAdapter);\r\n\t\ttry {\r\n\t\t\tgetListView().setDivider(null);\r\n\t\t\temptyText.setVisibility(View.GONE);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tgetListView().setOnItemClickListener(new OnItemClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\r\n\t\t\t\t\tlong arg3) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tmWastePointController.setCurrentWastePoint(mWastePointController.getWastePointsList().get(arg2));\r\n\t\t\t\t((MainActivity)PointsListFragment.this.getActivity()).showPointDetails();\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t}", "private void refreshListView() {\n model.updateAllFilteredLists(history.getPrevKeywords(), history.getPrevStartDate(),\n history.getPrevEndDate(), history.getPrevState(),\n history.getPrevSearches());\n }", "private void updateList() {\n Model.instace.getAllArticles(new ArticleFirebase.GetAllArticlesAndObserveCallback() {\n @Override\n public void onComplete(List<Article> list) {\n data.clear();\n data = list;\n adapter.notifyDataSetChanged();\n }\n\n @Override\n public void onCancel() {\n\n }\n });\n }", "public void setOrderList() {\n\n\t\tint index = 0;\n\t\tlistModel.clear();\n\t\tfor (Order order : driver.getOrderDB().getCustomerOrderList()) {\n\t\t\tlistModel\n\t\t\t\t\t.addElement(textAlignment(\" \" + order.getId(), \"\" + order.getDate(), \"\"\n\t\t\t\t\t\t\t+ order.getPerson().getId(), \"\"\n\t\t\t\t\t\t\t+ order.getCurrentlyLoggedInStaff().getId()));\n\t\t\t// stockList.setSelectedIndex(orderListIndex);\n\t\t\tindex++;\n\t\t}\n\t}", "private void inicializaListView(){\n }", "@Override\r\n\tpublic String list() {\n\t\tList<HeadLine> dataList=new ArrayList<HeadLine>();\r\n\t\tPagerItem pagerItem=new PagerItem();\r\n\t\tpagerItem.parsePageSize(pageSize);\r\n\t\tpagerItem.parsePageNum(pageNum);\r\n\t\t\r\n\t\tLong count=headLineService.count();\r\n\t\tpagerItem.changeRowCount(count);\r\n\t\t\r\n\t\tdataList=headLineService.pager(pagerItem.getPageNum(), pagerItem.getPageSize());\r\n\t\tpagerItem.changeUrl(SysFun.generalUrl(requestURI, queryString));\r\n\t\t\r\n\t\trequest.put(\"DataList\", dataList);\r\n\t\trequest.put(\"pagerItem\", pagerItem);\r\n\t\t\r\n\t\t\r\n\t\treturn \"list\";\r\n\t}", "private void initList(CartInfo ci) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t}", "private void prepareListData() {\n listDataHeader = new ArrayList<String>();\n listDataChild = new HashMap<String, List<String>>();\n\n // Adding child data\n listDataHeader.add(\"Cloths\");\n listDataHeader.add(\"Tools\");\n listDataHeader.add(\"Booking\");\n\n // Adding child data\n List<String> Cloths = new ArrayList<String>();\n Cloths.add(\"Silk Shit\");\n Cloths.add(\"Godfather Coat\");\n Cloths.add(\"Cow Boy jacket\");\n Cloths.add(\"Polo T-shirt\");\n Cloths.add(\"Ugly Jeans\");\n Cloths.add(\"Dark Jeans\");\n Cloths.add(\"Underwears\");\n\n List<String> Tools = new ArrayList<String>();\n Tools.add(\"Tester\");\n Tools.add(\"Betteries\");\n Tools.add(\"Charger\");\n Tools.add(\"UPS plugs\");\n Tools.add(\"Universal cheager\");\n Tools.add(\"Torch\");\n\n List<String> Booking = new ArrayList<String>();\n Booking.add(\"Hotel Booking\");\n Booking.add(\"Hotel Reservation\");\n Booking.add(\"Air Ticket\");\n Booking.add(\"Air Ticket Reservation\");\n Booking.add(\"Train Ticket\");\n Booking.add(\"Train Ticket Reservation\");\n\n listDataChild.put(listDataHeader.get(0), Cloths); // Header, Child data\n listDataChild.put(listDataHeader.get(1), Tools);\n listDataChild.put(listDataHeader.get(2), Booking);\n }", "public void openList() {\n\t\tString title = resourceManager.getString(\"process.view.list.title\");\n\t\tint indexOfTab = tabbedPane.indexOfTab(title);\n\t\tif (indexOfTab >= 0) {\n\t\t\ttabbedPane.setSelectedIndex(indexOfTab);\n\t\t} else {\n\t\t\tlView = new ListView(this, resourceManager);\n\t\t\ttabbedPane.addTab(title, lView);\n\n\t\t\ttabbedPane.setTabComponentAt(tabbedPane.indexOfTab(title),\n\t\t\t\t\tnew ButtonTabComponent(tabbedPane, this, lView,\n\t\t\t\t\t\t\tresourceManager));\n\t\t\tindexOfTab = tabbedPane.indexOfTab(title);\n\t\t\ttabbedPane.setSelectedIndex(indexOfTab);\n\t\t\tloadListView();\n\t\t}\n\t}", "private void populateListView() {\n List<String> groupNames = new ArrayList<String>();\n for (Pair<String, Group> pair : savedGroups) {\n groupNames.add(pair.first);\n }\n if (groupsListAdapter != null) {\n groupsListAdapter.clear();\n groupsListAdapter.addAll(groupNames);\n groupsListAdapter.notifyDataSetChanged();\n }\n }", "@Override\n\tpublic int getCount() {\n\t\treturn lists.size();\n\t}", "@Override\n\tpublic int getCount() {\n\t\treturn lists.size();\n\t}", "void list()\n\t{\n\t\toperation.list();\n\t\t\n\t}", "@Override\n public int getCount() {\n return listInfoList.size();\n }", "public void initializeListings() {\n\t listings = new ArrayList<Listing>();\n\t Listings listingsToStore = Listings.getInstance();\n\t Iterator<Saveable> listingIterator = listingsToStore.iterator();\n\t\n\t int counter = 0;\n\t while (listingIterator.hasNext()) {\n\t\t Listing currentListing = listingsToStore.getListing(counter);\n\t\t for (int i = 0; i < listingIds.size(); i++) {\n\t\t\t \n\t\t\t if (currentListing.getInternalId() == listingIds.get(i)) {\n\t\t\t\t \n\t\t\t\t listings.add(currentListing);\n\t\t\t }\n\t\t }\n\t\t counter++;\n\t\t listingIterator.next();\n\t }\n\t \n }", "private static void buildList() {\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tif (connection == null || connection.isClosed()) \r\n\t\t\t\tconnection = DataSourceManager.getConnection();\r\n\t\t\t\r\n\t\t\tstatement = connection.prepareStatement(LOAD_ALL);\r\n\t \tresultset = statement.executeQuery();\r\n\t \t\r\n\t \tgroups = getCollectionFromResultSet(resultset);\r\n\t \tresultset.close();\r\n\t statement.close();\r\n\t\t\t\r\n\t\t} catch (ClassNotFoundException | SQLException e) {\r\n\t\t\tlog.fatal(e.toString());\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t\t\r\n\t}", "private void addDataForListView() {\n \t\n \tif(loadable)\n \t{\t\n \tloadable = false;\n \tdirection = BACKWARD;\n \tstrUrl = Url.composeHotPageUrl(type_id, class_id, last_id);\n \trequestData();\n \t}\n\t}", "private void initList() {\r\n\t\tlist = new JList<>();\r\n\t\tFile rootFile = new File(System.getProperty(\"user.dir\"));\r\n\t\tloadFilesInFolder(rootFile);\r\n\t\tlist.addListSelectionListener(new FileListSelectionListener());\r\n\t}", "public void addList()\n\t{\n\t\tdlm_patch.clear();\n\t\tif (pf.getAllPatch_DB() != null)\n\t\t{\n\t\t\tfor ( Patch p : pf.getAllPatch_DB() )\n\t\t\t\tdlm_patch.addElement(p);\n\t\t}\n\t}", "void makeMainListCall() {\n\n mViewModel.getProgressDialog().observe(this, isLoading -> {\n if (isLoading != null) {\n mLoadingView.setVisibility(isLoading ? View.VISIBLE : View.GONE);\n if (isLoading) {\n mErrorTextView.setVisibility(View.GONE);\n mListView.setVisibility(View.GONE);\n }\n }\n });\n mViewModel.getMainListData().observe(this, new Observer<ListData>() {\n @Override\n public void onChanged(@Nullable ListData listData) {\n mSwipeRefresh.setRefreshing(false);\n getActivity().setTitle(listData.getTitle());\n mMainListData = listData;\n mAboutListAdapter.setData(mMainListData.getRows());\n mErrorTextView.setVisibility(View.GONE);\n mListView.setVisibility(View.VISIBLE);\n }\n });\n\n mViewModel.getErrorMsg().observe(this, new Observer<String>() {\n @Override\n public void onChanged(@Nullable String s) {\n mSwipeRefresh.setRefreshing(false);\n mErrorTextView.setVisibility(View.VISIBLE);\n mListView.setVisibility(View.GONE);\n }\n });\n mViewModel.makeMainListCall();\n }", "private void prepareListData() {\n listDataHeader = new ArrayList<String>();\n listDataChild = new HashMap<String, List<String>>();\n\n // Adding child data\n listDataHeader.add(\"Can we expect your services throughout Bengaluru ?\");\n listDataHeader.add(\"Does FoodyHive similar to Swiggy, Zomato, UberEats etc ?\");\n listDataHeader.add(\"Is there any minimum order quantity applies to the subscription plan ?\");\n listDataHeader.add(\"What is the minimum subscription period ?\");\n listDataHeader.add(\"I just want to make an one time order, can you process it ?\");\n listDataHeader.add(\"Can we get the food immediately upon placing the order ?\");\n listDataHeader.add(\"What cuisines are available with Foodyhive ?\");\n listDataHeader.add(\"How long will it take to deliver the food to our location ?\");\n listDataHeader.add(\"What are the provisions for the cancellation of order ?\");\n listDataHeader.add(\"I have something else to inquire, what should I do ?\");\n\n // Adding child data\n List<String> one = new ArrayList<String>();\n one.add(\"Yes, our services are available anywhere in Bengaluru.\");\n List<String> two = new ArrayList<String>();\n two.add(\"Not really. At FoodyHive, we provide healthy and hygienic home made food supplied through our certified home chefs to the Corporates, PG Accommodations, Hospitals and related on a subscription basis.\");\n List<String> three = new ArrayList<String>();\n three.add(\"Yes, we will be able to work on with a minimum of 10 orders.\");\n List<String> four = new ArrayList<String>();\n four.add(\"Minimum subscription is 7 days\");\n List<String> five = new ArrayList<String>();\n five.add(\"Yes, we can process with a minimum of 10 orders.\");\n List<String> six = new ArrayList<String>();\n six.add(\"No, we accept only pre-orders; you are requested to place an order 24 hours prior to delivery.\");\n List<String> seven = new ArrayList<String>();\n seven.add(\"We provide South Indian, North Indian, Chinese & Continental dishes as well. Available for both vegetarians and non-vegetarians. For more details please call us at (080) 4718 9418\");\n List<String> eight = new ArrayList<String>();\n eight.add(\"The food will be delivered on time as per the mutual agreement.\");\n List<String> nine = new ArrayList<String>();\n nine.add(\"Cancellation of an order is permitted with 16 to 24 hours prior notice; some penalty may be applicable in case short time notice less than 16 hours.\");\n List<String> ten = new ArrayList<String>();\n ten.add(\"Feel free to contact our sales team: (080) 4718 9148\");\n\n listDataChild.put(listDataHeader.get(0), one); // Header, Child data\n listDataChild.put(listDataHeader.get(1), two);\n listDataChild.put(listDataHeader.get(2), three);\n listDataChild.put(listDataHeader.get(3), four);\n listDataChild.put(listDataHeader.get(4), five);\n listDataChild.put(listDataHeader.get(5), six);\n listDataChild.put(listDataHeader.get(6), seven);\n listDataChild.put(listDataHeader.get(7), eight);\n listDataChild.put(listDataHeader.get(8), nine);\n listDataChild.put(listDataHeader.get(9), ten);\n }", "public void setCurrentListToBeDoneList();", "@Override\n\t\t\tpublic int getCount(){\n\t\t\t\treturn list.size();\n\t\t\t}", "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 void updatePhysicianList() {\n Log.d(LOG_TAG, \"updatePhysicianList() \");\n if (caseDataInterface != null) { // if called before it is attached/initialized ...prevent\n nearbyPhysicianList = loadPhysicianList();\n setUpPhysicianList(LayoutInflater.from(getContext()), nearbyPhysicianListLayout);\n\n }\n\n\n }", "public void setListCounter(int listCounter) {\n this.listCounter = listCounter;\n }", "private void setToDoLists(){\n\n ArrayList<String> groceries = new ArrayList<String>();\n groceries.add(\"groceries\");\n groceries.add(\"apples\");\n groceries.add(\"gogurts\");\n groceries.add(\"cereal\");\n groceries.add(\"fruit roll ups\");\n groceries.add(\"lunch meat\");\n groceries.add(\"milk\");\n groceries.add(\"something for dessert\");\n groceries.add(\"steak\");\n groceries.add(\"milksteak\");\n groceries.add(\"cookies\");\n groceries.add(\"brewzongs\");\n\n ArrayList<String> bills = new ArrayList<String>();\n bills.add(\"bills\");\n bills.add(\"car loan\");\n bills.add(\"cable\");\n bills.add(\"rent\");\n\n ArrayList<String> emails = new ArrayList<String>();\n emails.add(\"emails\");\n\n ArrayList<ArrayList<String>> tmpMyList;\n tmpMyList = new ArrayList<ArrayList<String>>();\n\n tmpMyList.add(groceries);\n tmpMyList.add(bills);\n tmpMyList.add(emails);\n\n myList = tmpMyList;\n\n }", "private void caricaLista() {\n /** variabili e costanti locali di lavoro */\n ArrayList unaLista = null;\n CampoDati unCampoDati = null;\n CDBLinkato unCampoDBLinkato = null;\n //@todo da cancellare\n try { // prova ad eseguire il codice\n /* recupera il campo DB specializzato */\n unCampoDBLinkato = (CDBLinkato)unCampoParente.getCampoDB();\n\n /* recupera la lista dal campo DB */\n unaLista = unCampoDBLinkato.caricaLista();\n\n /* recupera il campo dati */\n unCampoDati = unCampoParente.getCampoDati();\n\n /* registra i valori nel modello dei dati del campo */\n if (unaLista != null) {\n unCampoDati.setValoriInterni(unaLista);\n// unCampoDatiElenco.regolaElementiAggiuntivi();\n } /* fine del blocco if */\n\n } catch (Exception unErrore) { // intercetta l'errore\n /* mostra il messaggio di errore */\n Errore.crea(unErrore);\n } /* fine del blocco try-catch */\n\n }", "public void listentry(ArrayList<HashMap<String, String>> Event_list){\n\n\t\t\t\tListAdapter adapter = new SimpleAdapter(getActivity(), Event_list, R.layout.funnel_list,\n\t\t\t\t\t\tnew String[] {VALUE1,KEY1,VALUE2}, new int[] {\n\t\t\t\t R.id.funnel_list_text,R.id.funnel_list_amount,R.id.funnel_list_time});\n\t\t \n\t\t\t\t\tthis.setListAdapter(adapter);\n\t\t\t \n\t\t\t\t\n\t\t\t\n \t\tListView lv = getListView();\n\t\t\n \t\t \t\t\t\t \n\t}", "public void setupArticlesList();", "public void updateListView(List<Event> list) {\n this.eventsList = list;\n notifyDataSetChanged();\n }", "@Override\r\n\tpublic void goToShowList() {\n\t\t\r\n\t}", "private void supaporn() {\n\t\tlistView = (ListView) findViewById(R.id.listView1);\n\t\tlists = new ArrayList<items_list>();\n\t\tadapter=new MyAdater();\n\t\tlistView.setAdapter(adapter);\n\t}" ]
[ "0.7452069", "0.73964185", "0.7171937", "0.70549685", "0.6950161", "0.66597956", "0.66391563", "0.65322596", "0.64728576", "0.64640254", "0.6426397", "0.64169896", "0.6405371", "0.63977605", "0.6367409", "0.6359676", "0.634297", "0.6329413", "0.6324273", "0.6307251", "0.6245857", "0.62216187", "0.62189007", "0.6204102", "0.61961144", "0.61869955", "0.6174786", "0.6161593", "0.6146365", "0.6138245", "0.61211693", "0.6103711", "0.6097234", "0.6073288", "0.60719895", "0.6060609", "0.60599655", "0.60276574", "0.60177904", "0.60048825", "0.60010505", "0.59944415", "0.5976514", "0.59659207", "0.5964355", "0.5964355", "0.5963177", "0.5960172", "0.5956805", "0.594736", "0.59467024", "0.5946357", "0.59452194", "0.59375244", "0.5932365", "0.59316283", "0.5917543", "0.591693", "0.5916417", "0.5913258", "0.5911603", "0.59068066", "0.5901579", "0.5898558", "0.5896001", "0.5889961", "0.5889018", "0.588589", "0.5878354", "0.58728504", "0.5872832", "0.5870418", "0.58618355", "0.5857473", "0.5851644", "0.5843194", "0.5840539", "0.5835378", "0.5827593", "0.5827593", "0.58263814", "0.58231", "0.58216435", "0.58176935", "0.5816888", "0.58149016", "0.5814152", "0.5813969", "0.5809735", "0.5802122", "0.5799578", "0.5780334", "0.5777576", "0.57769173", "0.5776707", "0.57757354", "0.5773041", "0.5768234", "0.5763784", "0.57608676", "0.57583445" ]
0.0
-1
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 FoundationTxn)) { return false; } FoundationTxn other = (FoundationTxn)object; if (this.getId() != other.getId() && (this.getId() == null || !this.getId().equals(other.getId()))) 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; }", "@Override\n public int getField(int id) {\n return 0;\n }", "public int getId ()\r\n {\r\n return id;\r\n }", "public int getId(){\r\n return localId;\r\n }", "public void setId(Long id)\n/* */ {\n/* 66 */ this.id = id;\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.6892953", "0.68367153", "0.67017436", "0.66378665", "0.66378665", "0.658794", "0.65751237", "0.65751237", "0.6572061", "0.6572061", "0.6572061", "0.6572061", "0.6572061", "0.6572061", "0.65581834", "0.65581834", "0.65417314", "0.65221244", "0.6513472", "0.6485106", "0.6473513", "0.64241105", "0.6416767", "0.6414444", "0.63993895", "0.6364304", "0.6352091", "0.6349065", "0.63453704", "0.6321635", "0.6316362", "0.6298603", "0.62911385", "0.62911385", "0.62800306", "0.626818", "0.62642974", "0.6262545", "0.6260095", "0.62566966", "0.62533915", "0.62486917", "0.62448215", "0.62448215", "0.62409675", "0.623601", "0.623601", "0.6227701", "0.6220245", "0.6217794", "0.6217149", "0.6209125", "0.62057644", "0.6198095", "0.61980474", "0.6189871", "0.61868435", "0.61868435", "0.6186071", "0.6186071", "0.6186071", "0.61832285", "0.61815506", "0.6171357", "0.6170965", "0.61640227", "0.6163231", "0.6159539", "0.61550325", "0.61550325", "0.61550325", "0.61550325", "0.61550325", "0.61550325", "0.61550325", "0.6152799", "0.6152799", "0.6138922", "0.61313164", "0.6125618", "0.6125084", "0.610216", "0.6101231", "0.6101231", "0.6100786", "0.6100199", "0.6099533", "0.6096824", "0.60965383", "0.60913044", "0.60896015", "0.6089144", "0.6089144", "0.6087085", "0.6086792", "0.6072943", "0.6069622", "0.60679966", "0.60674655", "0.60672426", "0.6066196" ]
0.0
-1
TODO: send email manager
protected void notify(Employee e) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SendEmail() {\t\n\t}", "private void sendEmailToSubscriberForHealthTips() {\n\n\n\n }", "@Override\n public void sendEmail() {\n return;\n }", "@Override\r\n\tpublic void sendEmails() {\n\t\tSystem.out.println(\"All e-mails sent from e-mail service!\");\r\n\t}", "@Override\n\tvoid email() {\n\t\tSystem.out.println(\"email id [email protected]\");\n\t\t\n\t}", "@Override\n\tvoid email() {\n\t\tSystem.out.println(\"[email protected]\");\n\t\t\n\t}", "public void sendMailReport() {\n mailService.sendMail(\"[email protected]\", \"ToDo report\",\n String.format(\"There are '%s' todo entries!\", todoListService.getAllEntries().size()));\n }", "void send(Email email);", "public void email() {\n\t\t\t\temailGUI = new EmailGUI();\n\t\t\t\tpopUpWindow = emailGUI.getFrame();\n\t\t\t\tpopUpWindow.setVisible(true);\n\t\t\t\temailGUI.setListeners(new mailListener());\n\t\t\t}", "public String sendEmail() {\n String to = theModel.getEmail();\n\n // Sender's email ID needs to be mentioned\n String from = \"[email protected]\";\n\n // Assuming you are sending email from this host\n String host = \"smtp.gmail.com\";\n\n // Get system properties\n Properties properties = System.getProperties();\n\n // Setup mail server\n properties.setProperty(\"mail.smtp.host\", host);\n properties.setProperty(\"mail.smtp.starttls.enable\", \"true\");\n properties.setProperty(\"mail.smtp.auth\", \"true\");\n properties.setProperty(\"mail.smtp.port\", \"587\");\n // Get the default Session object.\n Session session = Session.getInstance(properties, new javax.mail.Authenticator() {\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(\"[email protected]\", \"itkstuadmin\");\n }\n });\n\n try {\n // Create a default MimeMessage object.\n MimeMessage message = new MimeMessage(session);\n\n // Set From: header field of the header.\n message.setFrom(new InternetAddress(from));\n\n // Set To: header field of the header.\n message.addRecipient(Message.RecipientType.TO,\n new InternetAddress(to));\n\n // Set Subject: header field\n message.setSubject( subject, \"text/html\");\n\n // Send the actual HTML message, as big as you like\n message.setContent( text , \"text/html\");\n\n // Send message\n Transport.send(message);\n System.out.println(\"Sent message successfully....\");\n } catch (MessagingException mex) {\n mex.printStackTrace();\n }\n return \"UniLog.xhtml\";\n }", "public void send() {\n\t\tfinal String username = \"[email protected]\";\n\t\tfinal String password = \"Oneplanner2017*\";\n\n\t\tProperties props = new Properties();\n\t\tprops.put(\"mail.smtp.auth\", \"true\");\n\t\tprops.put(\"mail.smtp.starttls.enable\", \"true\");\n\t\tprops.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n\t\tprops.put(\"mail.smtp.port\", \"587\");\n\n\t\ttry {\n\t\t\tSession session = Session.getInstance(props,\n\t\t\t\t\t new javax.mail.Authenticator() {\n\t\t\t\t\t\tprotected PasswordAuthentication getPasswordAuthentication() {\n\t\t\t\t\t\t\treturn new PasswordAuthentication(username, password);\n\t\t\t\t\t\t}\n\t\t\t\t\t });\n\n\t\t\t\t\tMessage message = new MimeMessage(session);\n\t\t\t\t\tmessage.setFrom(new InternetAddress(\"[email protected]\"));\n\t\t\t\t\tmessage.setRecipients(Message.RecipientType.TO,\n\t\t\t\t\t\tInternetAddress.parse(\"[email protected]\"));\n\t\t\tmessage.setSubject(\"test\");\n\t\t\tmessage.setText(\"test\");\n\t\t\t\n\t\t\tTransport.send(message);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n }", "public void sendInvitations(){\r\n for(int i = 0; i< emails.size(); i++){\r\n System.out.println(\"Inviting: \" + emails.get(i));\r\n }\r\n\r\n }", "void send(String emailName);", "private void sendEmail() {\n String to = \"[email protected]\";\n\n // Sender's email ID needs to be mentioned\n String from = \"[email protected]\";\n\n // Assuming you are sending email from localhost\n String host = \"localhost\";\n\n // Get system properties\n Properties properties = System.getProperties();\n\n // Setup mail server\n properties.setProperty(\"mail.smtp.host\", host);\n\n // Get the default Session object.\n Session session = Session.getDefaultInstance(properties);\n\n try {\n // Create a default MimeMessage object.\n MimeMessage message = new MimeMessage(session);\n\n // Set From: header field of the header.\n message.setFrom(new InternetAddress(from));\n\n // Set To: header field of the header.\n message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));\n\n // Set Subject: header field\n message.setSubject(\"This is the Subject Line!\");\n\n // Now set the actual message\n message.setText(\"This is actual message\");\n\n // Send message\n Transport.send(message);\n System.out.println(\"Sent message successfully....\");\n } catch (MessagingException mex) {\n mex.printStackTrace();\n }\n }", "@Override\n\tpublic boolean sendEmail() {\n\t\treturn true;\n\t}", "private void sendEmail() {\n\n // Set up an intent object to send email and fill it out\n Intent emailIntent = new Intent(Intent.ACTION_SEND);\n emailIntent.setData(Uri.parse(\"mailto:\"));\n emailIntent.setType(\"text/plain\");\n\n // An array of string addresses\n String[] toAddress = new String[]{getString(R.string.email_company_contact)};\n emailIntent.putExtra(Intent.EXTRA_EMAIL, toAddress);\n emailIntent.putExtra(Intent.EXTRA_SUBJECT, getString(R.string.email_subject));\n emailIntent.putExtra(Intent.EXTRA_TEXT, getString(R.string.email_default_text));\n\n // Error handler, try to execute code\n try {\n // Starts a new screen to send email\n startActivity(Intent.createChooser(emailIntent, getString(R.string.email_prompt)));\n finish();\n } catch (android.content.ActivityNotFoundException ex) {\n // An error occurred trying to use the activity\n Toast.makeText(this,\n getString(R.string.error_send_email), Toast.LENGTH_SHORT).show();\n // Missing a finally that closes the activity?\n }\n }", "public void sendDiscrepancyEmail() throws Exception;", "public void sendMail(View view) {\n\n contentManager = new ContentManager(this);\n contentManager.sendEmail(helpBinding.mail.getText().toString(), new EmailListener() {\n @Override\n public void onSuccess(EmailResponse emailResponse) {\n showToast(emailResponse.getMessage());\n }\n\n @Override\n public void onFailed(String message, int responseCode) {\n showToast(message);\n }\n\n @Override\n public void startLoading(String requestId) {\n showToast(getString(R.string.sendEmail));\n }\n\n @Override\n public void endLoading(String requestId) {\n\n }\n });\n }", "public void sendMail() {\n String sub;\n String message;\n\n sub = \"Welcome\";\n message = \"Thank you for choosing us as your healthcare partners. Here we strive hard to ensure that\\n\"\n + \"you remain in good health. Not only we boast of an exellent team of doctors but also world class operational \\n\"\n + \"infrastructure in place. For any other information or details contact our reg desk. You can access\\n\"\n + \"your account with the Username:\" + txtUserName.getText()+ \"and your password:\" + txtPassword.getPassword().toString()+ \".\\n\\t\\t\\t -Team MVP\";\n\n SendEmail SE = new SendEmail(txtEmail.getText(), sub, message);\n }", "public void sendNewOrderAdmin(){\n final String username = \"[email protected]\";\n\n // change accordingly\n final String password = \"dcc59vez\";\n\n // Get system properties\n Properties props = new Properties();\n\n // enable authentication\n props.put(\"mail.smtp.auth\", \"true\");\n\n // enable STARTTLS\n props.put(\"mail.smtp.starttls.enable\", \"true\");\n\n // Setup mail server\n props.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n\n // TLS Port\n props.put(\"mail.smtp.port\", \"587\");\n\n // creating Session instance referenced to\n // Authenticator object to pass in\n // Session.getInstance argument\n Session session = Session.getInstance(props,\n new javax.mail.Authenticator() {\n //override the getPasswordAuthentication method\n protected PasswordAuthentication\n getPasswordAuthentication() {\n\n return new PasswordAuthentication(username,\n password);\n }\n });\n\n try {\n // compose the message\n // javax.mail.internet.MimeMessage class is\n // mostly used for abstraction.\n Message message = new MimeMessage(session);\n\n // header field of the header.\n message.setFrom(new InternetAddress(\"BallonkompagnietIVS\"));\n\n //Set admin email\n message.setRecipients(Message.RecipientType.TO, InternetAddress.parse(\"[email protected]\"));\n message.setSubject(\"New order on website\");\n\n message.setText(\"New order placed on your website\");\n\n //send Message\n Transport.send(message);\n System.out.println(\"Email sent to admin - New order\");\n } catch (MessagingException e) {\n throw new RuntimeException(e);\n }\n }", "@Override\n\tpublic void sendMail(Mail mail) {\n\t\t\n\t}", "public void mailList() {\n for (int index = 0; index < emails.size(); index++) {\n Mensagem mensagem = emails.get(index);\n System.out.println(\"Email \" + index + \": \");\n System.out.println(\"De: \" + mensagem.remetente);\n System.out.println(\"Para: \" + mensagem.destinatario + \"\\n\");\n }\n }", "@Override\n\tpublic void sendHtmlEmail(MimeMessage mm) {\n\t\t\n\t}", "private void email() throws IOException {\n\t\t/*\n\t\tString emailText = \"This email includes the following Play Types: \" + playSort.getSelectedItem().toString() + \n\t\t\t\t\"\\nFrom the gameplan: \" + gamePlans.getSelectedItem().toString();\n\t\tString subject = playSort.getSelectedItem().toString() + \" from \" + gamePlans.getSelectedItem().toString();\n\t\t\t\t\n\t\t// TODO: save image to file system, and add the file paht to atachment\n\t\tArrayList<String> attachments = DigPlayDB.getInstance(getBaseContext()).getAllPlayNames();\n\t\tArrayList<String> attachmentPath = new ArrayList<String>();\n\t\tfor (int att = 0; att < attachments.size(); att++) \n\t\t{\n\t\t\tFile myFile = new File(\"/sdcard/DCIM/Play/temp.jpeg\");\n\t\t\tmyFile.setWritable(true);\n\t FileOutputStream myOutWriter =new FileOutputStream(myFile);\n\t myOutWriter.write(DigPlayDB.getInstance(getBaseContext()).getImage(attachments.get(att)));\n\t myOutWriter.flush();\n\t myOutWriter.close();\n\t myFile.setReadable(true);\n\t attachmentPath.add(myFile.getAbsolutePath());\n\t\t}\n\n\t\tEmailPlaybook.EmailAttachment(this, \"[email protected]\", subject, emailText, attachmentPath);\n\t\t*/\n\t}", "private void sendmailuserregister(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException, ClassNotFoundException {\n String email = request.getParameter(\"email\");\n\n String to = \"yevhen@yevhen-Lenovo-ideapad-320-15ISK\";\n String from = \"wwwwnewbob@localhost\";\n String host = \"localhost\";\n\n Properties properties = System.getProperties();\n properties.setProperty(\"yevhen-Lenovo-ideapad-320-15ISK\", host);\n\n Session session = Session.getDefaultInstance(properties);\n response.setContentType(\"text/html\");\n PrintWriter out = response.getWriter();\n\n try{\n MimeMessage message = new MimeMessage(session);\n message.setFrom(new InternetAddress(from));\n message.addRecipients(Message.RecipientType.TO, String.valueOf(new InternetAddress(to)));\n message.setSubject(\"This is the Subject Line!\");\n message.setText(\"This is actual message from \" + email);\n\n logger.info(\" user.getEmail() \" + email);\n\n Transport.send(message);\n String title = \"Send Email\";\n String res = \"Sent message successfully....<a href='/bookstore/shop'>Back</a>\";\n String docType = \"<!doctype html public \\\"-//w3c//dtd html 4.0 \" + \"transitional//en\\\">\\n\";\n\n out.println(docType +\n \"<html>\\n\" +\n \"<head><title>\" + title + \"</title><head>\\n\" +\n \"<body bgcolor = \\\"#f0f0f0\\\">\\n\" +\n \"<h1 align = \\\"center\\\">\" + title + \"</h1>\\n\" +\n \"<p align = \\\"center\\\">\" + res + \"</p>\\n\" +\n \"</body>\\n\" +\n \"</html>\"\n );\n\n } catch (MessagingException mex){\n mex.printStackTrace();\n }\n\n\n }", "@Override\n public void sendEmail(String emailBody) {\n }", "public void getSendEmail() {\n driver.get(getBASE_URL() + getSendMailURL);\n }", "@SuppressWarnings(\"finally\")\n\t@Override\n\tpublic Response showEmail() {\n\t\tBaseResponse<NotifyTemplate> br = new BaseResponse<NotifyTemplate>();\n\t\ttry\n\t\t{\n\t\tList<NotifyTemplate> emailList;\n\t\tjdbcTemplate.setDataSource(dataSourceProvider.getDataSource(FiinfraConstants.BU_DEFAULT));\n\t\temailList=jdbcTemplate.query(FiinfraConstants.SP_GET_EMAIL,new Object[]{} ,new BeanPropertyRowMapper<NotifyTemplate>(NotifyTemplate.class));\n\t\tbr.setResponseListObject(emailList); \n\t\tresponse=FiinfraResponseBuilder.getSuccessResponse(br, null);\n\t\t} \n\t\tcatch (DataAccessException e) {\n\t\t\tresponse = FiinfraResponseBuilder.getErrorResponse(e.getMessage().toString());\n\t\t} \n\t\tfinally\n\t\t{\n\t\t\treturn response;\n\t\t\t\t} \n\t}", "@Override\r\n public void run() {\r\n Properties smtpProperties = System.getProperties();\r\n smtpProperties.put(\"mail.smtp.port\", \"587\");\r\n smtpProperties.put(\"mail.smtp.auth\", \"true\");\r\n smtpProperties.put(\"mail.smtp.starttls.enable\", \"true\");\r\n try {\r\n Session smtpSession = Session.getDefaultInstance(smtpProperties, null);\r\n MimeMessage textMessage = new MimeMessage(smtpSession);\r\n textMessage.addRecipient(Message.RecipientType.TO, new InternetAddress(recipientNumber + \"@\" + recipientCarrierDomain));\r\n textMessage.setContent(messageContent, \"text/plain\");\r\n Transport transport = smtpSession.getTransport(\"smtp\");\r\n transport.connect(\"smtp.gmail.com\", \"[email protected]\", \"csd@VT-1872\");\r\n transport.sendMessage(textMessage, textMessage.getAllRecipients());\r\n transport.close();\r\n } catch (AddressException ae) {\r\n System.out.println(\"Email Address Exception Occurred! See: \" + ae.getMessage());\r\n } catch (MessagingException me) {\r\n System.out.println(\"Email Messaging Exception Occurred! Internet Connection Required! See: \" + me.getMessage());\r\n }\r\n }", "public void sendHtmlEmail() throws EmailException, MalformedURLException,\n\t\t\tUnsupportedEncodingException, ParseException {\n\t\tITrustContributionServer trustContributionServer = new TrustContributionServer();\n\t\tHtmlEmail email = new HtmlEmail();\n\t\temail.setHostName(\"smtp.exmail.qq.com\");\n\n\t\t// TODO 收件人:资产管理中心全体员工;[email protected];\n\t\tString itemCode = \"v00003\";\n\t\tList<String> emailList = new ArrayList<>();\n\t\temailList = trustContributionServer.getEmailList(itemCode);\n\t\tif (emailList != null && emailList.size() != 0) {\n\t\t\tString[] toBeStored = emailList\n\t\t\t\t\t.toArray(new String[emailList.size()]);\n\t\t\temail.addTo(toBeStored);\n\t\t}\n\n\t\t// email.addTo(new String[]{\"[email protected]\",\"[email protected]\"});\n\n\t\temail.setSmtpPort(465);\n\t\temail.setAuthenticator(new DefaultAuthenticator(\"[email protected]\",\n\t\t\t\t\"Wzm910712\"));\n\t\temail.setSSLOnConnect(true);\n\t\temail.setFrom(\"[email protected]\");\n\t\tDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\tDate yestoday = getYestoday();\n\t\temail.setSubject(\"投融资部-每日中航百度报酬日报--\" + format.format(yestoday));\n\t\t/*\tString caption = new String((\"中航百度报酬日报--\").getBytes(\"GBK\"),\n\t\t\t\t\"ISO-8859-1\") + format.format(yestoday);\n\t\tString td1 = new String((\"昨日信托报酬\").getBytes(\"GBK\"), \"ISO-8859-1\");\n\t\tString td2 = new String((\"累计信托报酬\").getBytes(\"GBK\"), \"ISO-8859-1\");\n\t\tString td3 = new String((\"昨日保管费\").getBytes(\"GBK\"), \"ISO-8859-1\");\n\t\tString td4 = new String((\"累计保管费\").getBytes(\"GBK\"), \"ISO-8859-1\");\n\t\tString td5 = new String((\"昨日优先收益\").getBytes(\"GBK\"), \"ISO-8859-1\");\n\t\tString td6 = new String((\"累计优先收益\").getBytes(\"GBK\"), \"ISO-8859-1\");\n\t\tString td7 = new String((\"上月优先级本金\").getBytes(\"GBK\"), \"ISO-8859-1\");\n\t\tString td8 = new String((\"上月劣后级本金\").getBytes(\"GBK\"), \"ISO-8859-1\");\n\n\t\tString td31 = new String((\"上月差额补足金额\").getBytes(\"GBK\"), \"ISO-8859-1\");\n\t\tString td32 = new String((\"上月保证金1\").getBytes(\"GBK\"), \"ISO-8859-1\");\n\t\tString td33 = new String((\"上月客户退货款\").getBytes(\"GBK\"), \"ISO-8859-1\");\n\t\tString td34 = new String((\"上月客户主动还款\").getBytes(\"GBK\"), \"ISO-8859-1\");\n\t\tString td35 = new String((\"M3+率\").getBytes(\"GBK\"), \"ISO-8859-1\");\n\t\tString td36 = new String((\"B3\").getBytes(\"GBK\"), \"ISO-8859-1\");\n\t\tString td37 = new String((\"M2+率\").getBytes(\"GBK\"), \"ISO-8859-1\");\n\t\tString td38 = new String((\"B2\").getBytes(\"GBK\"), \"ISO-8859-1\");\n\n\t\t// TODO 查询出各个数据\n\t\tdouble custodianFee = 0;\n\t\tdouble priorityEarnings = 0;\n\t\tdouble trustremuneration = 0;\n\t\tMap<String, Object> map = new HashMap<>();\n\t\tmap = trustContributionServer.getDetailFromBenefitCheckDaily(partner);\n\t\tif (map != null) {\n\t\t\tcustodianFee = Double.parseDouble(map.get(\"CUSTODIANFEE\")\n\t\t\t\t\t.toString());\n\t\t\tpriorityEarnings = Double.parseDouble(map.get(\"PRIORITYEARNINGS\")\n\t\t\t\t\t.toString());\n\t\t\ttrustremuneration = Double.parseDouble(map.get(\"TRUSTREMUNERATION\")\n\t\t\t\t\t.toString());\n\t\t}\n\n\t\t// 累计信托报酬\n\t\tMap<String, Object> trustRemunerationMap = new HashMap<>();\n\t\tdouble sumOftrustRemuneration = 0;\n\t\ttrustRemunerationMap = trustContributionServer\n\t\t\t\t.getSumOfBenefitCheckDaily(partner);\n\t\tif (trustRemunerationMap != null) {\n\t\t\tsumOftrustRemuneration = Double.parseDouble(trustRemunerationMap\n\t\t\t\t\t.get(\"TRUSTREMUNERATION\").toString());\n\t\t}\n\n\t\t// 累计优先收益\n\t\tMap<String, Object> priorityEaringsMap = new HashMap<>();\n\t\tdouble sumOfpriorityEarings = 0;\n\t\tpriorityEaringsMap = trustContributionServer\n\t\t\t\t.getSumOfPriorityEarings(partner);\n\t\tif (priorityEaringsMap != null) {\n\t\t\tsumOfpriorityEarings = Double.parseDouble(priorityEaringsMap.get(\n\t\t\t\t\t\"PRIORITYEARINGS\").toString());\n\t\t}\n\n\t\t// 累计保管费\n\t\tMap<String, Object> custodianFeeMap = new HashMap<>();\n\t\tdouble sumOfcustodianFee = 0;\n\t\tcustodianFeeMap = trustContributionServer.getSumOfcustodianFee(partner);\n\t\tif (custodianFeeMap != null) {\n\t\t\tsumOfcustodianFee = Double.parseDouble(custodianFeeMap.get(\n\t\t\t\t\t\"CUSTODIANFEE\").toString());\n\t\t}\n\n\t\tMap<String, Object> benefitCheckMonthSummaryMap = new HashMap<>();\n\n\t\tdouble priorityPrincipal = 0;\n\t\t// 上月劣后级本金\n\t\tdouble inferiorPrincipal = 0;\n\t\t// 上月差额补足金额\n\t\tdouble differenceUpBalance = 0;\n\t\t// 上月保证金\n\t\tdouble serviceFee = 0;\n\t\t// 上月客户退货款\n\t\tdouble merchantsRetmoneyActual = 0;\n\t\t// 上月客户主动还款\n\t\tdouble customeDrivingRepayment = 0;\n\n\t\tbenefitCheckMonthSummaryMap = trustContributionServer\n\t\t\t\t.getdetailFromMonthSummary(partner);\n\t\tif (benefitCheckMonthSummaryMap != null) {\n\n\t\t\tpriorityPrincipal = Double.parseDouble(benefitCheckMonthSummaryMap\n\t\t\t\t\t.get(\"PRIORITYPRINCIPAL\").toString());\n\n\t\t\tinferiorPrincipal = Double.parseDouble(benefitCheckMonthSummaryMap\n\t\t\t\t\t.get(\"INFERIORPRINCIPAL\").toString());\n\n\t\t\tdifferenceUpBalance = Double\n\t\t\t\t\t.parseDouble(benefitCheckMonthSummaryMap.get(\n\t\t\t\t\t\t\t\"DIFFERENCEUPBALANCE\").toString());\n\n\t\t\tserviceFee = Double.parseDouble(benefitCheckMonthSummaryMap.get(\n\t\t\t\t\t\"SERVICEFEE\").toString());\n\n\t\t\tmerchantsRetmoneyActual = Double\n\t\t\t\t\t.parseDouble(benefitCheckMonthSummaryMap.get(\n\t\t\t\t\t\t\t\"MERCHANTSRETMONEYACTUAL\").toString());\n\n\t\t\tcustomeDrivingRepayment = Double\n\t\t\t\t\t.parseDouble(benefitCheckMonthSummaryMap.get(\n\t\t\t\t\t\t\t\"CUSTOMEDRIVINGREPAYMENT\").toString());\n\t\t}\n\n\t\t// B3=B2\n\t\tString partnerCode = \"\";\n\t\tif (partner.equalsIgnoreCase(\"众安\")) {\n\t\t\tpartnerCode = \"ZAYX\";\n\t\t}// 改为map为添加条件,做一下为null 时候的判断\n\t\t//partnerCode = \"HBYH\";// TODO delete when upload,and sql update\n\t\tMap<String, Object> resultB3Map = new HashMap<>();\n\n\t\tMap<String, Object> resultB2Map = new HashMap<>();\n\n\t\tdouble B3Part1 = 0;\n\t\tdouble B3Part2 = 0;\n\t\tresultB3Map = trustContributionServer\n\t\t\t\t.getB3Part1FromPayDaily(partnerCode);\n\n\t\tif (resultB3Map != null) {\n\t\t\tB3Part1 = Double.parseDouble((resultB3Map.get(\"PAYPRINCIPALAMT\")\n\t\t\t\t\t.toString()));\n\t\t}\n\t\tresultB2Map = trustContributionServer\n\t\t\t\t.getB3Part2FromPayDaily(partnerCode);\n\t\tif (resultB2Map != null) {\n\t\t\tB3Part2 = Double.parseDouble((resultB2Map.get(\"PAYPRINCIPALAMT\")\n\t\t\t\t\t.toString()));\n\t\t}\n\t\t\n\t\t * double B3Part1=\n\t\t * trustContributionServer.getB3Part1FromPayDaily(partnerCode);\n\t\t * \n\t\t * double B3Part2 =\n\t\t * trustContributionServer.getB3Part2FromPayDaily(partnerCode);\n\t\t \n\n\t\tBigDecimal d1 = new BigDecimal(String.valueOf(B3Part1));\n\n\t\tBigDecimal d2 = new BigDecimal(String.valueOf(B3Part2));\n\n\t\tdouble B3 = d1.add(d2).doubleValue();\n\n\t\t// A3\n\t\tint days = 90;\n\t\tMap<String, Object> A3Map = new HashMap<>();\n\t\tA3Map.put(\"partnerCode\", partnerCode);\n\t\tA3Map.put(\"days\", days);\n\n\t\tdouble fPayCapital = 0;\n\t\tdouble fUndueCapital = 0;\n\t\t// 获取大于 90 天的应付本金\n\t\tMap<String, Object> over90DaysCapitalMap1 = new HashMap<>();\n\t\tover90DaysCapitalMap1 = trustContributionServer\n\t\t\t\t.getOverDueDaysCapital1(A3Map);\n\t\tif (over90DaysCapitalMap1 != null) {\n\t\t\tfPayCapital = Double.parseDouble(over90DaysCapitalMap1.get(\n\t\t\t\t\t\"PAYPRINCIPALAMT\").toString());\n\t\t}\n\n\t\tMap<String, Object> over90DaysCapitalMap2 = new HashMap<>();\n\t\tover90DaysCapitalMap2 = trustContributionServer\n\t\t\t\t.getOverDueDaysCapital2(A3Map);\n\t\tif (over90DaysCapitalMap2 != null) {\n\t\t\tfUndueCapital = Double.parseDouble(over90DaysCapitalMap2.get(\n\t\t\t\t\t\"PAYPRINCIPALAMT\").toString());\n\t\t}\n\n\t\tBigDecimal d1Capital = new BigDecimal(String.valueOf(fPayCapital));\n\t\tBigDecimal d2Capital = new BigDecimal(String.valueOf(fUndueCapital));\n\t\tdouble allCapital = d1Capital.add(d2Capital).doubleValue();\n\n\t\tdouble A3 = 0;\n\t\t// 获取实付本金\n\t\tMap<String, Object> resultMap = new HashMap<>();\n\t\tresultMap = trustContributionServer.getA3Capital(A3Map);\n\t\tif (resultMap != null) {\n\t\t\tA3 = allCapital\n\t\t\t\t\t- Double.parseDouble((resultMap.get(\"PAYPRINCIPALAMT\")\n\t\t\t\t\t\t\t.toString()));\n\t\t}\n\n\t\tMap<String, Object> A2Map = new HashMap<>();\n\t\tdouble A2 = 0;\n\t\tA2Map.put(\"partnerCode\", partnerCode);\n\t\tint days2 = 60;\n\t\tA2Map.put(\"days\", days2);\n\n\t\t// 获取逾期60天以上的应付本金\n\t\tdouble fPayCapita1 = 0;\n\t\tdouble fUndueCapita1 = 0;\n\t\tMap<String, Object> over60DaysCapitalMap1 = new HashMap<>();\n\t\tover60DaysCapitalMap1 = trustContributionServer\n\t\t\t\t.getOverDueDaysCapital1(A2Map);\n\t\tif (over60DaysCapitalMap1 != null) {\n\t\t\tfPayCapita1 = Double.parseDouble(over60DaysCapitalMap1.get(\n\t\t\t\t\t\"PAYPRINCIPALAMT\").toString());\n\t\t}\n\n\t\tMap<String, Object> over60DaysCapitalMap2 = new HashMap<>();\n\t\tover60DaysCapitalMap2 = trustContributionServer\n\t\t\t\t.getOverDueDaysCapital2(A2Map);\n\t\tif (over60DaysCapitalMap2 != null) {\n\t\t\tfUndueCapita1 = Double.parseDouble(over60DaysCapitalMap2.get(\n\t\t\t\t\t\"PAYPRINCIPALAMT\").toString());\n\t\t}\n\n\t\tBigDecimal d1Capital1 = new BigDecimal(String.valueOf(fPayCapita1));\n\t\tBigDecimal d2Capital1 = new BigDecimal(String.valueOf(fUndueCapita1));\n\t\tdouble allCapital1 = d1Capital1.add(d2Capital1).doubleValue();\n\n\t\tMap<String, Object> resultMap2 = new HashMap<>();\n\t\tresultMap2 = trustContributionServer.getA3Capital(A2Map);\n\t\tif (resultMap2 != null) {\n\t\t\t// TODO\n\t\t\tA2 = allCapital1\n\t\t\t\t\t- Double.parseDouble((resultMap2.get(\"PAYPRINCIPALAMT\")\n\t\t\t\t\t\t\t.toString()));\n\t\t}\n\n\t\t// 获取格式化对象\n\t\tNumberFormat nt = NumberFormat.getPercentInstance();\n\t\t// 设置百分数精确度2即保留两位小数\n\t\tnt.setMinimumFractionDigits(2);\n\t\t// 最后格式化并输出\n\n\t\t// TODO\n\t\t\n\t\t * String M3= nt.format(A3/B3); String M2 = nt.format(A2/B3);\n\t\t \n\t\tString M3 = \"0.00%\";\n\t\tString M2 = \"0.00%\";\n\t\tif (B3 != 0) {\n\t\t\tM3 = nt.format(A3 / B3);\n\t\t\tM2 = nt.format(A2 / B3);\n\t\t}\n\t\t\n\n\t\tURL url = new URL(\"http://www.apache.org/images/asf_logo_wide.gif\");\n\t\t// String cid = email.embed(url, \"Apache logo\");\n\t\t\n\t\tString firstTable = \"<div>\"\n\t\t\t\t+ \"<table width=\\\"1150\\\" border=\\\"1\\\" cellspacing=\\\"0\\\">\"\n\t\t\t\t+ \"<caption>\"\n\t\t\t\t+ caption\n\t\t\t\t+ \"</caption>\"\n\t\t\t\t+ \"<tr style=\\\"background-color:#f47920\\\">\"\n\t\t\t\t+ \"<td align=\\\"center\\\">\"\n\t\t\t\t+ td1\n\t\t\t\t+ \"</td>\"\n\t\t\t\t+ \"<td align=\\\"center\\\">\"\n\t\t\t\t+ td2\n\t\t\t\t+ \"</td>\"\n\t\t\t\t+ \"<td align=\\\"center\\\">\"\n\t\t\t\t+ td3\n\t\t\t\t+ \"</td>\"\n\t\t\t\t+ \"<td align=\\\"center\\\">\"\n\t\t\t\t+ td4\n\t\t\t\t+ \"</td>\"\n\t\t\t\t+ \"<td align=\\\"center\\\">\"\n\t\t\t\t+ td5\n\t\t\t\t+ \"</td>\"\n\t\t\t\t+ \"<td align=\\\"center\\\">\"\n\t\t\t\t+ td6\n\t\t\t\t+ \"</td>\"\n\t\t\t\t+ \"<td align=\\\"center\\\">\"\n\t\t\t\t+ td7\n\t\t\t\t+ \"</td>\"\n\t\t\t\t+ \"<td align=\\\"center\\\">\"\n\t\t\t\t+ td8\n\t\t\t\t+ \"</td>\"\n\t\t\t\t+ \"</tr>\"\n\t\t\t\t+ \"<tr>\"\n\t\t\t\t+ \"<td align=\\\"center\\\">\"\n\t\t\t\t+ trustremuneration\n\t\t\t\t+ \"</td>\"\n\t\t\t\t+ \"<td align=\\\"center\\\">\"\n\t\t\t\t+ sumOftrustRemuneration\n\t\t\t\t+ \"</td>\"\n\t\t\t\t+ \"<td align=\\\"center\\\">\"\n\t\t\t\t+ custodianFee\n\t\t\t\t+ \"</td>\"\n\t\t\t\t+ \"<td align=\\\"center\\\">\"\n\t\t\t\t+ sumOfcustodianFee\n\t\t\t\t+ \"</td>\"\n\t\t\t\t+ \"<td align=\\\"center\\\">\"\n\t\t\t\t+ priorityEarnings\n\t\t\t\t+ \"</td>\"\n\t\t\t\t+ \"<td align=\\\"center\\\">\";*/\n\t\tStringBuilder a1RateBuilder = new StringBuilder();\n\t\ta1RateBuilder = this.getA1RateBuilder();\n\t\t\n\t\tStringBuilder a2RateBuilder = new StringBuilder();\n\t\ta2RateBuilder = this.getA2RateBuilder();\n\t\tString commonHead = \"<html>\" + \"<head>\" + \" </head>\" + \"<body>\";\n\t\tString htmlMsg = commonHead\n\t\t\t\t+ a1RateBuilder.toString()\n\t\t\t\t+\"</body>\" + \"</html>\";\n\t\temail.setHtmlMsg(htmlMsg);\n\t\temail.send();\n\t}", "@RequestMapping(\"/mail\")\n\tpublic String mail() throws MessagingException {\n\t\tmailsender.send(\"[email protected]\", \"A test mail\", \"body of the test mail\");\n\t\t\n\t\treturn \"mail sent by Nawaki to the localhost...........\";//result\n\t}", "private void sendEmail(){\n String teachersEmail = tvTeachersEmail.getText().toString();\n String[] receiver = new String[1];\n receiver[0] = teachersEmail;\n Intent intent = new Intent(Intent.ACTION_SEND);\n intent.putExtra(Intent.EXTRA_EMAIL, receiver);\n\n // opening only email clients - force sending with email\n intent.setType(\"message/rfc822\");\n startActivity(Intent.createChooser(intent, getString(R.string.open_email_clients)));\n }", "public void sendEmail(){\r\n EmailService emailSvc = new EmailService(email, username, password, firstName, lastName);\r\n Thread th = new Thread(emailSvc);\r\n LOG.info(\"Starting a new thread to send the email..\");\r\n th.start();\r\n LOG.info(\"The email was sent successfully\");\r\n }", "public void sendMail() {\n String email = emailID.getText().toString();\n String subject = \"BlueBucket One-Time OTP\";\n otp=generateOTP();\n String message = \"\"+otp;\n\n //Creating SendMail object\n SendMail sm = new SendMail(this, email, subject, message);\n\n //Executing sendmail to send email\n sm.execute();\n }", "public void sendEmail() {\n\t\tSystem.out.println(\"Loading session and Authenticating\");\n\t\tfinal Session session = Session.getInstance(getProtocolProporties(PROTOCOL_SEND), new Authenticator() {\n\n\t\t\t@Override\n\t\t\tprotected PasswordAuthentication getPasswordAuthentication() {\n\t\t\t\treturn new PasswordAuthentication(getProperty(\"username\"), getPassword());\n\t\t\t}\n\n\t\t});\n\t\tif(null == session) {\n\t\t\tSystem.err.println(\"Session is null, cann't proceed\");\n\t\t\treturn ;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Authenticated, will try to send an email\");\n\n\t\ttry {\n\t\t\tfinal Message message = new MimeMessage(session) {\n\t\t\t\t//Print the message to console\n\t\t\t\t@Override\n\t\t\t\tpublic String toString() {\n\t\t\t\t\tStringBuilder stringBuilder = new StringBuilder();\n\t\t\t\t\ttry {\n\t\t\t\t\t\tstringBuilder.append(\"\\n\").append(\"From : \").append(\"\\n\");\n\t\t\t\t\t\tfor (Address address : this.getFrom())\n\t\t\t\t\t\t\tstringBuilder.append(address).append(\"\\n\");\n\t\t\t\t\t\tstringBuilder.append(\"\\n\").append(\"To : \").append(\"\\n\");\n\t\t\t\t\t\tfor (Address address : this.getRecipients(Message.RecipientType.TO))\n\t\t\t\t\t\t\tstringBuilder.append(address).append(\"\\n\");\n\t\t\t\t\t\tstringBuilder.append(\"Subject : \").append(\"\\n\").append(this.getSubject());\n\t\t\t\t\t\tstringBuilder.append(\"\\n\").append(\"Sent Date : \").append(this.getSentDate());\n\t\t\t\t\t} catch (MessagingException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\treturn stringBuilder.toString();\n\t\t\t\t}\n\t\t\t};\n\t\t\t\n\t\t\t//Get Mail field details\n\t\t\tmessage.setFrom(new InternetAddress(getProperty(\"username\")));\n\t\t\tmessage.setRecipient(Message.RecipientType.TO, new InternetAddress(getUserInput(\"to\")));\n\t\t\tmessage.setSubject(getUserInput(\"subject\"));\n\t\t\tmessage.setText(getUserInput(\"messageContent\"));\n\t\t\tmessage.setSentDate(new Date());\n\t\t\tSystem.out.println(\"Sending the mail as details below :\");\n\t\t\tSystem.out.println(message);\n\t\t\t\n\t\t\t//Send email here, this throws exception if fails\n\t\t\tTransport.send(message);\n\t\t\t\n\t\t\tSystem.out.println(\"Email Sent\");\n\t\t} catch (final MessagingException ex) {\n\t\t\tSystem.err.println(\"Error: \" + ex.getMessage());\n\t\t\tex.printStackTrace();\n\t\t}\n\t}", "@RequestMapping(\"/test\")\n\tpublic String Mail()\n\t{\n\t\tif(useMock)//if useMock value is true then it calls mockEmaliSender else it calls SMTPEmailSender the is declare in app.properties\n\t\t{\n\t\treturn mockEmailSender.sendMail(); //call to mMockEmailSender Class\n\t\t}\n\t\telse\n\t\t{\n\t\treturn SMTPEmailSender.sendMail(); //call to SMTPEmailSender class\n\t\t}\n\t}", "void send(String emailName, Map model, EmailPreparator emailPreparator);", "private void sendEmail() {\n\n\n Log.i(TAG, \" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\");\n\n\n Log.i(TAG, \"sendEmail: \"+currentEmail);\n\n Log.i(TAG, \" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\");\n\n\n String email = currentEmail.trim();\n String subject = \"Garbage Report Handeled\";\n\n String message = textViewStreet.getText().toString() + \" \" + \"request has been handeled\" +\" \"+textViewDescription.getText().toString();\n\n// String message = textViewStreet.getText().toString() + \" \" + \"request has been handeled\" + \" \" +time+\" \"+textViewDescription.getText().toString();\n //Creating SendMail object\n SendMail sm = new SendMail(this, email, subject, message);\n\n //Executing sendmail to send email\n sm.execute();\n }", "public void sendEmail(Author authorObject);", "public void generateAndSendEmail(EmailSendingParameters emailParameters) throws AddressException, MessagingException {\r\n \r\n\t\t//Step1\t\t\r\n\t\tSystem.out.println(\"Setup Mail Server Properties..\");\r\n\t\tmailServerProperties = System.getProperties();\r\n\t\tmailServerProperties.put(\"mail.smtp.port\", \"587\");\r\n\t\tmailServerProperties.put(\"mail.smtp.auth\", \"true\");\r\n\t\tmailServerProperties.put(\"mail.smtp.starttls.enable\", \"true\");\r\n\t\tSystem.out.println(\"Mail Server Properties have been setup successfully..\");\r\n \r\n\t\t//Step2\r\n\t\tSystem.out.println(\"Get Mail Session..\");\r\n\t\tgetMailSession = Session.getDefaultInstance(mailServerProperties, null);\r\n\t\tgenerateMailMessage = new MimeMessage(getMailSession);\r\n\t\tgenerateMailMessage.addRecipient(Message.RecipientType.TO, new InternetAddress(emailParameters.getEmailReceiverAdress()));\r\n\t\tgenerateMailMessage.setSubject(\"Greetings from Crunchify..\");\r\n\t\tString emailBody = \"EMAIL CONTENT (with html tags)\";\r\n\t\tgenerateMailMessage.setContent(emailBody, \"text/html\");\r\n\t\tSystem.out.println(\"Mail Session has been created successfully..\");\r\n \r\n\t\t//Step3\t\t\r\n\t\tSystem.out.println(\"Get Session\tand Send mail\");\r\n\t\tTransport transport = getMailSession.getTransport(\"smtp\");\r\n\r\n\t\tSystem.out.println(\"Sending message\");\r\n\t\ttransport.connect(/*smtp.gmail.com\", emailReceiverAdress* emailReceiverPassword*/); \r\n\t\ttransport.sendMessage(generateMailMessage, generateMailMessage.getAllRecipients());\r\n\t\tSystem.out.println(\"Message sended properly\");\r\n\t\ttransport.close();\r\n\t}", "public static void main(String [] args) throws Throwable, MessagingException {\n String to = \"[email protected]\";\n\n // Sender's email ID needs to be mentioned\n String from = \"[email protected]\";\n\n // Assuming you are sending email from localhost\n String host = \"localhost\";\n\n // Get system properties\n Properties properties = System.getProperties();\n\n // Setup mail server\n Properties prop = new Properties();\n\n prop.put(\"mail.smtp.auth\", true);\n prop.put(\"mail.smtp.starttls.enable\", \"true\");\n prop.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n prop.put(\"mail.smtp.port\", \"587\");\n Session session = Session.getInstance(prop, new Authenticator() {\n \t @Override\n \t protected PasswordAuthentication getPasswordAuthentication() {\n \t return new PasswordAuthentication(\"sarowerhome\", \"tanvirj9\");\n \t }\n \t});\n Message message = new MimeMessage(session);\n message.setFrom(new InternetAddress(\"[email protected]\"));\n message.setRecipients(\n Message.RecipientType.TO, InternetAddress.parse(\"[email protected]\"));\n message.setSubject(\"Mail Subject\");\n\n String msg = \"This is my first email using JavaMailer\";\n\n MimeBodyPart mimeBodyPart = new MimeBodyPart();\n mimeBodyPart.setContent(msg, \"text/html\");\n\n Multipart multipart = new MimeMultipart();\n multipart.addBodyPart(mimeBodyPart);\n\n message.setContent(multipart);\n\n Transport.send(message);\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tMimeMessage msg=javaMailSender.createMimeMessage();\n\t\t\t\tMimeMessageHelper helper=null;\n\t\t\t\ttry {\n\t\t\t\t\thelper = new MimeMessageHelper(msg,true,\"utf-8\");\n\t\t\t\t} catch (MessagingException 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\ttry {\n\t\t\t\t\thelper.setTo(to);\n\t\t\t\t\thelper.setSubject(subject);\n\t\t\t\t\thelper.setText(text,true);\n\t\t\t\t\t\n\t\t\t\t\thelper.setFrom(getFromAddress());\n\t\t\t\t} catch (MessagingException 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\tjavaMailSender.send(msg);\n\t\t\t\tSystem.out.println(\"send ---------\");\n\t\t\t}", "private void check() {\n\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n Date date = new Date();\n Date date2 = new Date();\n\n Calendar calendar = Calendar.getInstance();\n date = calendar.getTime();\n\n // Se traen todos los miembros.\n Iterator e = memberBroker.getList(\"name\", \"ASC\");\n membersData member;\n accountsData account;\n //Calendar hoy = Calendar.getInstance();\n StringBuffer managerBody = new StringBuffer(\"\");\n StringBuffer memberBody = new StringBuffer(\"\");\n sendMail sm = new sendMail();\n\n\n while (e.hasNext()) { \n member = new membersData();\n account = new accountsData();\n member = (membersData) e.next();\n account=(accountsData) accountBroker.getData(member.getId_account());\n \n \n System.out.println(\"CHECKING (\" + member.getname() + -+member.getid() + -+member.getId_account() + \")\");\n\n //String mainURL = TMSConfigurator.getMainURL();\n String mainURL = account.getMain_url();\n managerBody = new StringBuffer(\"\");\n\n memberBody = new StringBuffer(\"\");\n\n // Se toma la fecha de hoy y la fecha de expiracion y se calcula la diferencia\n date2 = member.getExpired_date();\n long days = daysBetween(new Date(date.getTime()), new Date(date2.getTime()));\n \n if (days == 1) {\n System.out.println(\"un dia antes\");\n memberBody.append(\"Cuenta: \" + member.getname() + \"<br>\");\n memberBody.insert(0, \"La cuenta esta apunto de expirar le queda \" + days + \".<br>\");\n sm.sendCheckTasks(member.getemail_work(), memberBody.toString());\n\n managerBody.append(\"<BLOCKQUOTE>Miembro: \" + member.getname() + \"<br>\");\n managerBody.insert(0, \"La cuenta esta apunto de expirar le queda \"+days+\".<br>\");\n \n sm.sendCheckTasks(account.getEmail(),\n managerBody.toString());\n sm.sendCheckTasks(account.getEmail(),\n managerBody.toString());\n\n }\n if (days == 0) {\n System.out.println(\"ultimo dia\");\n memberBody.append(\"Cuenta: \" + member.getname() + \"<br>\");\n memberBody.insert(0, \"La cuenta esta apunto de expirar le queda \" + days + \".<br>\");\n sm.sendCheckTasks(member.getemail_work(), memberBody.toString());\n\n managerBody.append(\"<BLOCKQUOTE>Miembro: \" + member.getname() + \"<br>\");\n managerBody.insert(0, \"La cuenta esta apunto de expirar le queda \"+days+\".<br>\");\n \n sm.sendCheckTasks(account.getEmail(),\n managerBody.toString());\n sm.sendCheckTasks(account.getEmail(),\n managerBody.toString());\n }\n if (days == 7) {\n System.out.println(\"a una semana\");\n memberBody.append(\"Cuenta: \" + member.getname() + \"<br>\");\n memberBody.insert(0, \"La cuenta esta apunto de expirar le queda \" + days + \".<br>\");\n sm.sendCheckTasks(member.getemail_work(), memberBody.toString());\n\n managerBody.append(\"<BLOCKQUOTE>Miembro: \" + member.getname() + \"<br>\");\n managerBody.insert(0, \"La cuenta esta apunto de expirar le queda \"+days+\".<br>\");\n \n sm.sendCheckTasks(account.getEmail(),\n managerBody.toString());\n sm.sendCheckTasks(account.getEmail(),\n managerBody.toString());\n }\n /*if (hoy.getTimeInMillis() > end) {\n // Ya estas atrasado mas alla del umbral maximo permitido!!\n System.out.println(\"\\t\\t\\tAtrasada!!\");\n if (atrasadoEquipo == false) {\n // Al menos un miembro del equipo esta atrazado.\n managerBody.append(\"Proyecto: \" + proyecto.getname() + \"<br>\");\n atrasadoEquipo = true;\n }\n if (atrasado == false) {\n // Este member no estaba atrasado, se agrega el encabezado para\n // su email. \n memberBody.append(\"Proyecto: \" + proyecto.getname() + \"<br>\");\n managerBody.append(\"<BLOCKQUOTE>Miembro: \" + team.getparentMember().getname() + \"<br>\");\n }\n if (team.getparentMember().getprofile().equals(\"0\") ||\n team.getparentMember().getprofile().equals(\"1\")) {\n // Siempre el mensaje de atrazo, pero no es un usuario externo\n memberBody.append(\"<BLOCKQUOTE>Tarea (<a href='\" + mainURL + \"/tasks.do?operation=view&id=\" +\n task.getid() + \"'>\" + task.getname() + \"</a>):\\tAtrasada<br>\" +\n \"</BLOCKQUOTE>\");\n } else {\n // Se trata de un usuario del cliente\n memberBody.append(\"<BLOCKQUOTE>Tarea (<a href='\" + mainURL + \"/portalTasks.do?operation=view&id=\" +\n task.getid() + \"'>\" + task.getname() + \"</a>):\\tAtrasada<br>\" +\n \"</BLOCKQUOTE>\");\n }\n managerBody.append(\"<BLOCKQUOTE>Tarea (<a href='\" + mainURL + \"/tasks.do?operation=view&id=\" +\n task.getid() + \"'>\" + task.getname() + \"</a>):\\tAtrasada<br>\" + \"\\t Asignada a: \" +\n (task.getassigned_to() == 0 ? \"No Asignada\" : task.getparentAssigned().getname()) +\n \"</BLOCKQUOTE>\");\n // Se cambia el valor\n atrasado = true;\n } else {\n System.out.println(\"\\t\\t\\tOK!!\");\n }\n // Se le envia el email al miembro del equipo si y solo si esta atrazado\n if (atrasado) {\n // enviar correo al usuario\n memberBody.insert(0, \"Las siguientes tareas est&aacute;n atrasadas m&aacute;s all&aacute; del umbral de tolerancia permitido.<br>\");\n managerBody.append(\"</BLOCKQUOTE>\");\n sm.sendCheckTasks(team.getparentMember().getemail_work(),\n memberBody.toString());\n }\n // Si alguien del proyecto esta atrazado se envia la lista de cada member\n // al administrador\n if (atrasadoEquipo) {\n managerBody.insert(0, \"Las siguientes tareas est&aacute;n atrasadas m&aacute;s all&aacute; del umbral de tolerancia permitido.<br>\");\n sm.sendCheckTasks(proyecto.getparentOwner().getemail_work(),\n managerBody.toString());\n }\n */\n\n\n // while de miembros\n\n\n }\n }", "private void sendEmail(String emailAddress, String subject, String body) {\n\t\t\n\t}", "void sendEmail(Job job, String email);", "public static void main(String[] args) {\n MailAdapter mailAdapter = MailAdapter.getInstance();\n mailAdapter.sendEmail(\"[email protected]\", \"[email protected]\", \"We are doing Java\", true);\n mailAdapter.receiveEmail();\n\n }", "public void sendEmail(String receiver, Integer indexID){\r\n\t \r\n\t Properties props = new Properties();\r\n\t props.put(\"mail.smtp.host\", EMAIL_SERVER);\r\n\t props.put(\"mail.smtp.port\", SERVER_PORT);\r\n\t props.put(\"mail.smtp.starttls.enable\", \"true\");\r\n\t props.put(\"mail.smtp.auth\", \"true\");\r\n\t props.put(\"mail.smtp.socketFactory.port\", SERVER_PORT);\r\n\t props.put(\"mail.smtp.socketFactory.class\", \"javax.net.ssl.SSLSocketFactory\");\r\n\t props.put(\"mail.smtp.socketFactory.fallback\", \"false\");\r\n\t \r\n\t Session sess = Session.getInstance(props,\r\n\t\t\t new javax.mail.Authenticator() {\r\n\t\t \t\tprotected PasswordAuthentication getPasswordAuthentication() {\r\n\t\t \t\t\treturn new PasswordAuthentication(EMAIL_SENDER, PW_SENDER);\r\n\t\t \t\t}\r\n\t \t});\r\n\t \r\n\t try{ \r\n\t Message msg = new MimeMessage(sess);\r\n\t msg.setFrom(new InternetAddress(EMAIL_SENDER));\r\n\t msg.setRecipients(Message.RecipientType.TO,InternetAddress.parse(receiver));\r\n\t msg.setSubject(\"Notification regarding waitlist\");\r\n\t \r\n\t Transport.send(msg);\r\n\t System.out.println(\"Email has been send successfully!\"); \r\n\t }\r\n\t \r\n\t catch (MessagingException e){\r\n\t\t throw new RuntimeException(e);\r\n\t }\r\n\t \r\n\t \r\n\t }", "private void composeEmail() {\n Intent intent = new Intent(Intent.ACTION_SENDTO);\n intent.setData(Uri.parse(\"mailto:[email protected]\"));\n if (intent.resolveActivity(getActivity().getPackageManager()) != null) {\n startActivity(intent);\n }\n }", "void send(String emailName, Map model, Locale locale, EmailPreparator emailPreparator);", "public static void start() {\r\n\t\ttry {\r\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n\t\t\tDate dtnow = new Date();\r\n\t\t\t//Verify email queue\r\n\t\t\tIterator<Mailtogo> it = new MailtogoDAO().getQueue().iterator();\r\n\t\t\twhile(it.hasNext())\r\n\t\t\t{\r\n\t\t\t\tMailtogo mtg = (Mailtogo)it.next();\r\n\t\t\t\tmtg.setMtg_status(\"P\");\r\n\t\t\t\tmtg.save();\r\n\t\t\t\tdtnow = new Date();\r\n\t\t\t\tSystem.out.println(format.format(dtnow) + \" -> Sending message \" + mtg.getMtg_id());\r\n\t\t\t\tsend(mtg);\r\n\t\t\t}\r\n\t\t} catch (Exception e)\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void sendemail(String sender,String to,String pass,String companyname){\n final String username = sender;\n final String password = pass;\n\n Properties props = new Properties();\n props.put(\"mail.smtp.auth\", true);\n props.put(\"mail.smtp.starttls.enable\", true);\n props.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n props.put(\"mail.smtp.port\", \"587\");\n\n Session session = Session.getInstance(props,\n new javax.mail.Authenticator() {\n protected javax.mail.PasswordAuthentication getPasswordAuthentication() {\n return new javax.mail.PasswordAuthentication(username, password);\n }\n });\n\n try {\n\n Message message = new MimeMessage(session);\n message.setFrom(new InternetAddress(\"[email protected]\"));\n message.setRecipients(Message.RecipientType.TO,\n InternetAddress.parse(to));\n message.setSubject(companyname+\" Db Backup\");\n message.setText(\"Security system at \"+companyname+\" database attached...\");\n\n MimeBodyPart messageBodyPart = new MimeBodyPart();\n\n Multipart multipart = new MimeMultipart();\n\n messageBodyPart = new MimeBodyPart();\n String file = path;\n //String fileName = companyname+\" Database Backup\";\n DataSource source = new FileDataSource(file);\n messageBodyPart.setDataHandler(new DataHandler(source));\n messageBodyPart.setFileName(path);\n multipart.addBodyPart(messageBodyPart);\n\n message.setContent(multipart);\n\n System.out.println(\"Sending...\");\n\n Transport.send(message);\n\n System.out.println(\"Done\");\n\n } catch (MessagingException e) {\n \n }\n }", "public void SendEmail(){\n //Dummy Email Bot\n String from = \"[email protected]\";\n String emailPW = \"thisiscz2002\";\n\n try{\n Session session = Session.getDefaultInstance(init(), new Authenticator(){\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(from, emailPW);\n }});\n\n // -- Create a new message --\n Message msg = new MimeMessage(session);\n\n // -- Set the FROM and fields --\n msg.setFrom(new InternetAddress(from));\n msg.setRecipients(Message.RecipientType.TO,\n InternetAddress.parse(getRecipientEmail(),false));\n\n LocalDateTime myDateObj = LocalDateTime.now();\n DateTimeFormatter myFormatObj = DateTimeFormatter.ofPattern(\"dd-MM-yyyy HH:mm:ss\");\n String formattedDate = myDateObj.format(myFormatObj);\n\n msg.setSubject(getEmailSubject());\n msg.setText(getMessage());\n msg.setSentDate(new Date());\n Transport.send(msg);\n\n //System.out.println(formattedDate + \" - Message sent.\");\n }catch (MessagingException e){\n System.out.println(\"Error: \" + e);\n }\n }", "public void onFinish(ISuite arg0) {\n\t\tMonitoringMail mail=new MonitoringMail();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tmessageBody = \"http://\"+InetAddress.getLocalHost().getHostAddress()+\":8080/job/git-DataDriven-Framework/Extent_20reports//\";\r\n\t\t} catch (UnknownHostException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n //System.out.println(hostname);\r\n \r\n try {\r\n\t\tmail.sendMail(TestConfig.server, TestConfig.from, TestConfig.to, TestConfig.subject, messageBody);\r\n\t} catch (AddressException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t} catch (MessagingException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t}\r\n\t\t\r\n\t}", "@Override\n\tpublic void showMailDialog() {\n\t\t\n\t}", "void send(String emailName, Map model);", "@Override\n\tpublic void createDigestEmail() {\n\n\t}", "private void sendMailInit() {\r\n\t\tif(mailSender == null){\r\n\t\t\tmailSender = new JavaMailSenderImpl();\r\n\t\t\tmailSender.setHost(ConfigManager.getInstance().getString(\"mail.host\"));\r\n\t\t\tmailSender.setPort(ConfigManager.getInstance().getInt(\"mail.port\", 25));\r\n\t\t\tmailSender.setUsername(ConfigManager.getInstance().getString(\"mail.username\"));\r\n\t\t\tmailSender.setPassword(ConfigManager.getInstance().getString(\"mail.password\"));\r\n\t\t\tmailSender.setDefaultEncoding(\"utf-8\");\r\n\t\t\tlogger.info(\"HOST>>>>>>>>>>>>>>>Host=\" + mailSender.getHost() + \",Port=\"+ mailSender.getPort());\r\n\t\t\tProperties props = new Properties();\r\n\t\t\tprops.setProperty(\"mail.smtp.auth\", \"true\");\r\n\t\t\tprops.setProperty(\"mail.smtp.timeout\", \"0\");\r\n\t\t\tmailSender.setJavaMailProperties(props);\r\n\t\t\tthis.setMailSender(mailSender);\r\n\t\t}\r\n\t}", "public ResponseUpdDao sendSimpleEmail(String tsSubject, \n String tsMessage,\n String tsProcess,\n List<EmailDestinationAddress> toEmailDestinationAddress\n ) {\n ResponseUpdDao loResponse = new ResponseUpdDao();\n try{\n String lsHtml =\n \"<!DOCTYPE html PUBLIC \\\"-//W3C//DTD XHTML 1.0 Strict//EN\\\" \\\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-\" +\n \"strict.dtd\\\">\\n\" + \n \" <html xmlns=\\\"http://www.w3.org/1999/xhtml\\\" dir=\\\"ltr\\\" lang=\\\"es-ES\\\">\\n\" + \n \" <head>\\n\" + \n \" <title>\"+tsProcess+\"</title>\\n\" + \n \" <meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html; charset=ISO-8859-1\\\" />\\n\" + \n \" <meta name=\\\"language\\\" content=\\\"es\\\" />\\n\" + \n \" </head>\\n\" + \n \" <body>\\n\" + \n \" <div style='background-color:#0F2F62; height:25px;background:linear-gradient(#040545, \" +\n \"#0172AE);background:-webkit-linear-gradient(#040545, #0172AE);background: -ms-linear-background(\" +\n \"#040545, #0172AE);filter:progid:DXImageTransform.Microsoft.gradient(startColorStr='#040545', \" +\n \"EndColorStr='#0172AE');'></div>\\n\" + \n \" <div style='background-color:#fff'> \\n\" + \n \" <br/>\\n\" + \n \" <label style='font-family:Arial, Helvetica, sans-serif; font-size:16px; font-weight:\" +\n \"bold '>El Proceso de Integraci&oacute;n para \"+tsProcess+\" ha Finalizado</label><p/>\\n\" + \n \" <label style='font-family:Arial, Helvetica, sans-serif; font-size:12px; \" +\n \"font-weight:bold '>\"+tsMessage+\"</label><p/>\\n\" + \n /*\" <table cellpadding='0' cellspacing='0' style='border-bottom-color:#F79646;border-\" +\n \"bottom-width:3px;border-bottom-style:solid;border-top-color:#F79646;border-top-style:solid;border-\" +\n \"top-width:3px; '> \\n\" + \n \" <tr>\\n\" + \n \" <th height='10px' style='font-size:12px; background:#276A7C; \" +\n \"font-family:Arial, Helvetica, sans-serif;color:#FFFFFF;padding:3px;'>Bcsttim</th>\\n\" + \n \" <th height='10px' style='font-size:12px; background:#276A7C; \" +\n \"font-family:Arial, Helvetica, sans-serif;color:#FFFFFF;padding:3px;'>Channelid</th>\\n\" + \n \" <th height='10px' style='font-size:12px; background:#276A7C; \" +\n \"font-family:Arial, Helvetica, sans-serif;color:#FFFFFF;padding:3px;'>Date</th>\\n\" + \n \" <th height='10px' style='font-size:12px; background:#276A7C; \" +\n \"font-family:Arial, Helvetica, sans-serif;color:#FFFFFF;padding:3px;'>Orderid</th>\\n\" + \n \" <th height='10px' style='font-size:12px; background:#276A7C; \" +\n \"font-family:Arial, Helvetica, sans-serif;color:#FFFFFF;padding:3px;'>Spotid</th>\\n\" + \n \" <th height='10px' style='font-size:12px; background:#276A7C; \" +\n \"font-family:Arial, Helvetica, sans-serif;color:#FFFFFF;padding:3px;'>Buyuntid</th>\\n\" + \n \" <th height='10px' style='font-size:12px; background:#276A7C; \" +\n \"font-family:Arial, Helvetica, sans-serif;color:#FFFFFF;padding:3px;'>Breakid</th>\\n\" + \n \" <th height='10px' style='font-size:12px; background:#276A7C; \" +\n \"font-family:Arial, Helvetica, sans-serif;color:#FFFFFF;padding:3px;'>Hour</th>\\n\" + \n \" <th height='10px' style='font-size:12px; background:#276A7C; \" +\n \"font-family:Arial, Helvetica, sans-serif;color:#FFFFFF;padding:3px;'>Duration</th>\\n\" + \n \" <th height='10px' style='font-size:12px; background:#276A7C; \" +\n \"font-family:Arial, Helvetica, sans-serif;color:#FFFFFF;padding:3px;'>Spotformatid</th>\\n\" + \n \" <th height='10px' style='font-size:12px; background:#276A7C; \" +\n \"font-family:Arial, Helvetica, sans-serif;color:#FFFFFF;padding:3px;'>Mediaid</th>\\n\" + \n \" <th height='10px' style='font-size:12px; background:#276A7C; \" +\n \"font-family:Arial, Helvetica, sans-serif;color:#FFFFFF;padding:3px;'>Productid</th>\\n\" + \n \" <th height='10px' style='font-size:12px; background:#276A7C; \" +\n \"font-family:Arial, Helvetica, sans-serif;color:#FFFFFF;padding:3px;'>Spotprice</th>\\n\" + \" </tr>\\n\";\n \n lsHtml += \" </table> \\n\" + \n */\" <br/> \\n\" + \n \" <br/>\\n\" + \n \" <label style='font-family:Arial, Helvetica, sans-serif; font-size:12px; font-weight:\" +\n \"bold '>Integraci&oacute;n Paradigm-Landmark, 2019 Televisa S.A. de C.V</label> \\n\" + \n \" <br/>\\n\" + \n \" </div>\\n\" + \n \" <div style='float:left; background-color:#F58220;width:7%;height:25px;background:-moz-\" +\n \"linear-gradient(#F1A345, #E17521); background:-webkit-linear-gradient(#F1A345, #E17521);\" +\n \"background: -ms-linear-background(#F1A345, #E17521);filter:progid:DXImageTransform.Microsoft.gradient(\" +\n \"startColorStr='#F1A345', EndColorStr='#E17521');'>\\n\" + \n \" </div> \\n\" + \n \" <div style='float:left; ;width:86%;height:25px;background:linear-gradient(#040545, \" +\n \"#0172AE);background:-webkit-linear-gradient(#040545, #0172AE);background: -ms-linear-\" +\n \"background(#040545, #0172AE);filter:progid:DXImageTransform.Microsoft.gradient(startColorStr=\" +\n \"'#040545', EndColorStr='#0172AE');'>\\n\" + \n \" </div>\\n\" + \n \" <div style='float:left; background-color:#F58220;width:7%;height:25px;background:-\" +\n \"moz-linear-gradient(#F1A345, #E17521);background:-webkit-linear-gradient(#F1A345, #E17521);\" +\n \"background: -ms-linear-background(#F1A345, #E17521);filter:progid:DXImageTransform.Microsoft.gradient(\" +\n \"startColorStr='#F1A345', EndColorStr='#E17521');'></div> \\n\" + \n \" </body>\\n\" + \n \" </html>\"; \n System.out.println(\"Html generado para el correo ================>\");\n System.out.println(lsHtml);\n //writeFile(lsHtml);\n SecmanDasEnviarCorreo loSecmanDasSendMail = getDynaWebServiceURLEmail();\n if(loSecmanDasSendMail != null){\n try{\n Map<String, Object> loRequestContext =\n ((BindingProvider)loSecmanDasSendMail).getRequestContext(); \n setPortCredentialProviderList(loRequestContext); \n Mail loEmail = new Mail(); \n MailHeader loEmailHeader = new MailHeader();\n MailAddress loEmailAddresFrom = new MailAddress(); \n loEmailAddresFrom.setUserNameAdress(\"Landmark Integration\");\n loEmailAddresFrom.setAddress(\"[email protected]\");\n loEmailHeader.setAddressFrom(loEmailAddresFrom);\n MailAddressCollection loMailAddressCollection =\n new MailAddressCollection();\n for(EmailDestinationAddress loDest: toEmailDestinationAddress){ \n MailAddress loEmailAdd = new MailAddress();\n //System.out.println(\"AddressTO username[\"+loDest.getLsNameTo()+\"] address[\"+loDest.getLsAddressTo()+\"]\");\n loEmailAdd.setUserNameAdress(loDest.getLsNameTo());\n loEmailAdd.setAddress(loDest.getLsAddressTo()); \n loMailAddressCollection.getMailAddress().add(loEmailAdd);\n }\n loEmailHeader.setTo(loMailAddressCollection);\n loEmailHeader.setSubject(tsSubject);\n loEmail.setMailHeader(loEmailHeader);\n MailBody loMailBody = new MailBody();\n loMailBody.setBodyType(\"HTML\");\n loMailBody.setMessage(lsHtml);\n loEmail.setMailBody(loMailBody);\n loSecmanDasSendMail.enviarCorreo(loEmail);\n loResponse.setLsResponse(\"OK\");\n loResponse.setLiAffected(0);\n loResponse.setLsMessage(\"Correo enviado satisfactoriamente\");\n System.out.println(\"Fin enviar correo - ok\");\n } catch (Exception loException) {\n System.out.println(\"Error al enviar correo: \"+loException.getMessage());\n loResponse.setLsResponse(\"ERROR\");\n loResponse.setLiAffected(0);\n loResponse.setLsMessage(loException.getMessage());\n }\n }\n } catch (Exception loException) {\n System.out.println(\"Error crear instancia del servicio de correo de secman: \"+loException.getMessage());\n loResponse.setLsResponse(\"ERROR\");\n loResponse.setLiAffected(0);\n loResponse.setLsMessage(loException.getMessage()); \n }\n return loResponse;\n }", "public void sendregisteruser(registerDTO register) {\n MimeMessagePreparator preparator = new MimeMessagePreparator()\n {\n public void prepare(MimeMessage mimeMessage) throws Exception\n {\n mimeMessage.setRecipient(Message.RecipientType.TO, new InternetAddress(register.getEmail()));\n mimeMessage.setSubject(\"Welcome to The Indian Bus Service\");\n\n MimeMessageHelper helper = new MimeMessageHelper(mimeMessage, true);\n\n helper.setText(\"<html><body>\"\n + \"<br>\"\n + \"<h2>Hello \"+register.getFirstname()+\" \"+register.getLastname()+\"</h2>\"\n + \"<p>Welcome to <b>Indian Bus Service</b></p>\"\n + \"<br>\"\n + \"<p>Username:- \"+register.getEmail()+\"</p>\"\n + \"<p>Hope you are doing well in this lockdown.</b></p>\"\n + \"<p>Date your login : </p>'\"+new Date()+\"'</body></html>\", true);\n }\n };\n\n try {\n mailSender.send(preparator);\n }\n catch (MailException ex) {\n // simply log it and go on...\n System.err.println(ex.getMessage());\n }\n }", "void sendEmail(Task task, String taskTypeName, String plantName);", "public static void main(String[] args) throws UnknownHostException, AddressException, MessagingException {\n\t\tSystem.out.println(InetAddress.getLocalHost().getHostAddress());\n\t\tMonitoringMail mail = new MonitoringMail();\n\t\tString messageBody=\"https://\"+InetAddress.getLocalHost().getHostAddress()+ \":8080/C:/work/Selenium/LiveProjects/PageObjectModelBasics/target/surefire-reports/html/extent.html\";\n\t\tSystem.out.println(messageBody);\n\t\tmail.sendMail(TestConfig.server, TestConfig.from, TestConfig.to, TestConfig.subject, messageBody,TestConfig.attachmentPath, TestConfig.attachmentName);\n\t}", "private void SendEmail(String password, String emailTo, String staffNames)\n {\n String to = emailTo;\n\n // Sender's email ID needs to be mentioned\n String from = \"[email protected]\";\n\n // Assuming you are sending email from localhost\n String host = \"smtp.upcmail.ie\";\n\n // Get system properties\n Properties properties = System.getProperties();\n\n // Setup mail server\n properties.setProperty(\"mail.smtp.host\", host);\n \n // Get the default Session object.\n Session session = Session.getDefaultInstance(properties);\n\n try{\n // Create a default MimeMessage object.\n MimeMessage message = new MimeMessage(session);\n\n // Set From: header field of the header.\n message.setFrom(new InternetAddress(from));\n\n // Set To: header field of the header.\n message.addRecipient(Message.RecipientType.TO,\n new InternetAddress(to));\n\n // Set Subject: header field\n message.setSubject(\"Password Change From Help Manager\");\n\n // Now set the actual message\n message.setText(\"Hello \"+staffNames +\", \\n\\n Your new Password is: \"+ password +\".\\n\\n Regards \\n Help Manager Team\");\n\n // Send message\n Transport.send(message);\n System.out.println(\"Sent message successfully....\");\n }catch (MessagingException mex) {\n mex.printStackTrace();\n }\n }", "public void launchEmail(){\n\t\tIntent sendIntent = new Intent(Intent.ACTION_MAIN); \n \tsendIntent.addCategory(Intent.CATEGORY_APP_EMAIL);\n\n if (sendIntent.resolveActivity(pacman) != null) {\n \tstartActivity(sendIntent);\n \treturn;\n } else {\n \tToast.makeText(context, \"No Email App Availible\", Toast.LENGTH_SHORT).show();\n \treturn;\n }\n\t}", "public static boolean generateAndSendEmail(Set<StockSymbol> stockSymbols) throws MessagingException {\n\n Properties mailServerProperties;\n Session getMailSession;\n MimeMessage generateMailMessage;\n\n //todo: in the future might have to send individual email to not leak personal emails.\n\n // Step1\n logger.info(\"1st ===> setup Mail Server Properties..\");\n mailServerProperties = System.getProperties();\n mailServerProperties.put(\"mail.smtp.port\", \"587\");\n mailServerProperties.put(\"mail.smtp.auth\", \"true\");\n mailServerProperties.put(\"mail.smtp.starttls.enable\", \"true\");\n logger.info(\"Mail Server Properties have been setup successfully..\");\n\n // Step2\n logger.info(\"2nd ===> get Mail Session..\");\n getMailSession = Session.getDefaultInstance(mailServerProperties, null);\n generateMailMessage = new MimeMessage(getMailSession);\n\n for(String email : getSubscribers()){\n generateMailMessage.addRecipient(Message.RecipientType.TO, new InternetAddress(email));\n }\n// generateMailMessage.addRecipient(Message.RecipientType.CC, new InternetAddress(\"[email protected]\"));\n generateMailMessage.setSubject(\"Simple Moving Average Crossover\");\n String emailBody = generateEmailBody(stockSymbols);\n generateMailMessage.setContent(emailBody, \"text/html\");\n logger.info(\"Mail Session has been created successfully..\");\n\n // Step3\n logger.info(\"\\n\\n 3rd ===> Get Session and Send mail\");\n Transport transport = getMailSession.getTransport(\"smtp\");\n\n // Enter your correct gmail UserID and Password\n // if you have 2FA enabled then provide App Specific Password\n transport.connect(\"smtp.gmail.com\", USERNAME, PASSWORD);\n transport.sendMessage(generateMailMessage, generateMailMessage.getAllRecipients());\n logger.info(\"Mail sent. Closing session.\");\n transport.close();\n return true;\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSendEmailManager mng = new SendEmailManager(course, section);\r\n\t\t\t\ttry {\r\n\t\t\t\tfor (Student student : StudentArray) {\r\n\t\t\t\t\tif(mng.sendFromGMail(student.getEmail(), student.getName(), student.getCode(), student.getGrade())) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tthrow new SendFailedException(\"send failed\");\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\tJOptionPane.showMessageDialog(null, \"Send Successed\");\r\n\t\t\t\t}catch(SendFailedException ex) {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Error\");\r\n\t\t\t\t}\r\n\t\t\t}", "private void sendEmailGestorRental(EntityManager manager, String filial, String numOS){\r\n\t\ttry {\r\n\t\t\tQuery query = manager.createNativeQuery(\"SELECT tw.email, tw.EPLSNM FROM tw_funcionario tw, adm_perfil_sistema_usuario perfil\"+\r\n\t\t\t\t\t\" WHERE tw.epidno = perfil.id_tw_usuario\"+\r\n\t\t\t\t\t\" AND perfil.ID_PERFIL = (select id from adm_perfil where sigla = 'GERENT' and tipo_sistema = 'GE')\"+\r\n\t\t\t\t\t\" AND tw.STN1 = '\"+Integer.valueOf(filial).toString()+\"'\");\r\n\t\t\t\r\n\t\t\tif(query.getResultList().size() > 0){\r\n\t\t\t\tList<Object []> list = query.getResultList();\r\n\t\t\t\tfor(Object [] pair : list){\r\n\t\t\t\t\tEmailHelper helper = new EmailHelper();\r\n\t\t\t\t\thelper.sendSimpleMail((String)pair[1]+\" gostaríamos de informar que a OS \"+numOS+\" foi criada!\", \"Ordem de Serviço\", (String)pair[0]);\t\t\r\n\t\t\t\t}\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\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}", "public void enviarAlertaDeQueEstaOnline(){\n //mandaria un mail a los usuarios avisando que ya esta disponible para ver.\n System.out.println(\"Enviando mail con url \" + this.url);\n }", "public void sendMail(RegistrationData d) {}", "void send(String emailName, Map model, Locale locale);", "public void sendMail(String to) throws URISyntaxException, IOException {\n final String username = \"kicsikacsacodecool\";//change accordingly\n final String password = \"codecool\";//change accordingly\n\n // Assuming you are sending email through relay.jangosmtp.net\n String host = \"relay.jangosmtp.net\";\n\n Properties props = new Properties();\n props.put(\"mail.smtp.auth\", \"true\");\n props.put(\"mail.smtp.starttls.enable\", \"true\");\n props.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n props.put(\"mail.smtp.port\", \"587\");\n\n // Get the Session object.\n Session session = Session.getInstance(props,\n new javax.mail.Authenticator() {\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(username, password);\n }\n });\n\n try {\n // Create a default MimeMessage object.\n Message message = new MimeMessage(session);\n\n // Set From: header field of the header.\n message.setFrom(new InternetAddress(\"[email protected]\"));\n\n // Set To: header field of the header.\n message.setRecipients(Message.RecipientType.TO,\n InternetAddress.parse(to));\n\n // Set Subject: header field\n message.setSubject(\"Webshop Registration\");\n\n // Now set the actual message\n message.setText(\"Welcome to the codecool webshop !!\");\n\n // Send message\n try {\n Transport.send(message);\n } catch (Exception e) {\n System.out.println(e);\n }\n\n System.out.println(\"Sent message successfully....\");\n\n } catch (MessagingException e) {\n throw new RuntimeException(e);\n }\n }", "private static void sendMail(String text) {\n Properties properties = System.getProperties();\n Session session = Session.getDefaultInstance(properties);\n\n //compose the message\n try{\n MimeMessage message = new MimeMessage(session);\n message.setFrom(new InternetAddress(from));\n message.addRecipient(Message.RecipientType.TO,new InternetAddress(to));\n message.setSubject(\"RAZER - AVAILABILITYT\");\n message.setText(text);\n\n // Send message\n Transport t = session.getTransport(\"smtps\");\n t.connect(\"smtp.gmail.com\", from, \"Shutting123\");\n t.sendMessage(message, message.getAllRecipients());\n log.error(\"message sent successfully....\");\n\n }catch (MessagingException mex) {\n mex.printStackTrace();\n }\n }", "public void sendEmailForAccessionReports(Exchange exchange) {\n logger.info(\"accession reports email started \");\n producerTemplate.sendBodyAndHeader(RecapConstants.EMAIL_Q, getEmailPayLoadForAccession(exchange), RecapConstants.EMAIL_FOR, RecapConstants.ACCESSION_REPORTS);\n }", "private void sendMailLogInfo() {\n\t\tif (mChangedInfoList.size() == 0) {\n\t\t\treturn;\n\t\t}\n\t\t// 1.导出信息\n\t\tString content = dumpLogInfoWithHtml();\n\t\t\n\t\t// 2. 更新收件人与标题\n\t\tmMailSender.updateMailToAndCc(mMailReceivers, mMailCcReceivers);\n\t\t\n\t\tLogger.println(\"==SvnLog send emal with subject \" + mMailSubject);\n\t\t\n\t\t// 3.发送信息send\n\t\tmMailSender.sendHtmlMail(mMailSubject, content);\n\t\t\n\t\t// 4.清理此轮信息\n\t\tclearInfo();\n\t}", "@Override\n\tpublic void sendMail(Mail mail, boolean flag) {\n\t\t\n\t}", "public void send() {\r\n String _from = \"[email protected]\";\r\n String _password = \"Ng101840\";\r\n //Get properties object\r\n Properties props = new Properties();\r\n props.put(\"mail.smtp.host\", \"smtp.gmail.com\");\r\n props.put(\"mail.smtp.socketFactory.port\", \"465\");\r\n props.put(\"mail.smtp.socketFactory.class\",\r\n \"javax.net.ssl.SSLSocketFactory\");\r\n props.put(\"mail.smtp.auth\", \"true\");\r\n props.put(\"mail.smtp.port\", \"465\");\r\n //get Session \r\n Session session = Session.getInstance(props,\r\n new javax.mail.Authenticator() {\r\n protected PasswordAuthentication getPasswordAuthentication() {\r\n return new PasswordAuthentication(_from, _password);\r\n }\r\n });\r\n //compose message \r\n try {\r\n MimeMessage message = new MimeMessage(session);\r\n message.addRecipient(Message.RecipientType.TO, new InternetAddress(_to));\r\n message.setSubject(subject);\r\n message.setText(this.message);\r\n Transport.send(message);\r\n LOG.info(\"The email was sent successfully\");\r\n } catch (MessagingException e) {\r\n throw new RuntimeException(e);\r\n }\r\n }", "@Override\n public void onClick(View view) {\n Intent i = new Intent(Intent.ACTION_SEND);\n i.setType(\"message/rfc822\");\n i.putExtra(Intent.EXTRA_EMAIL , new String[]{\"\"});\n i.putExtra(Intent.EXTRA_SUBJECT, \"\");\n i.putExtra(Intent.EXTRA_TEXT , \"\");\n try {\n startActivity(Intent.createChooser(i, \"Envoyer un mail\"));\n } catch (android.content.ActivityNotFoundException ex) {\n Toast.makeText(MainActivity.this, \"There are no email clients installed.\", Toast.LENGTH_SHORT).show();\n }\n }", "public Historique SendMail( Historique h,String resultat ,String date,String heure) throws Exception {\n\r\n\r\n Logger log = LoggerFactory.getLogger(MailController.class);\r\n\r\n \r\n\r\n \r\n log.info(\"Spring Mail - Sending Simple Email with JavaMailSender Example\");\r\n\r\n Mail mail = new Mail();\r\n mail.setFrom(\"[email protected]\");\r\n \r\n //mail.setTo(h.get().getEmails());\r\n String [] res =h.getEmails().split(\"\\\\s\");\r\n for(int i=0; i<res.length;i++)\r\n \r\n {\r\n \tSystem.out.println(res[i]);\r\n mail.setTo(res[i]);\r\n \r\n if(resultat.equals(\"echec\"))\r\n { \t mail.setSubject(\" échec d'éxécution du test\");\r\n mail.setContent(\"Echec de test \"+h.getNom()+\" éffectué à \"+date+\"à l'heure \"+heure);}\r\n else\r\n { \t\r\n mail.setSubject(\"Retard d'éxécution du test\");\r\n mail.setContent(\"Retard d'éxecution :temps de réponse réél est \"+h.getTemps_rep_reel()+\" et le temps de réponse attendu = est:\"+h.getResultat_attendu());}\r\n emailService.sendSimpleMessage(mail);\r\n }\r\n \r\n\r\n \r\n\t\treturn null; \r\n\r\n }", "public interface MailService {\n\n /**\n * 发送邮件\n * @param to\n * @param subject\n * @param content\n * @param isMultipart\n * @param isHtml\n */\n void sendEmail(String to, String subject, String content, boolean isMultipart, boolean isHtml);\n\n /**\n * 发送激活邮件\n * @param users\n * @param baseUrl\n */\n void sendActivationEmail(Users users, String baseUrl);\n\n /**\n * 发送账号创建成功邮件\n * @param users\n * @param baseUrl\n */\n void sendCreationEmail(Users users, String baseUrl);\n\n /**\n * 发送密码重置邮件\n * @param users\n * @param baseUrl\n */\n void sendPasswordResetMail(Users users, String baseUrl);\n\n /**\n * 发送邮箱验证邮件\n * @param users\n * @param baseUrl\n */\n void sendValidEmailMail(Users users, String baseUrl);\n\n /**\n * 阿里云邮箱服务\n * @param users\n * @param subject\n * @param content\n */\n void sendAliDMMail(Users users, String subject, String content);\n\n /**\n * 发送教学任务书 上传成功与不消息\n * @param users\n * @param baseUrl\n * @param msg\n */\n void sendTeachTaskMsg(Users users,String baseUrl,String msg);\n}", "public interface EmailService {\n\n void sendEmail(String to, String attachmentName) throws MessagingException, IOException;\n}", "private static void testMail() throws Exception {\n\t\tUser user=new User();\n\t\tuser.setUsername(\"若水\");\n\t\tuser.setEmail(\"[email protected]\");\n\t\tMail mail=new Mail();\n\t\tboolean b=mail.sendMail(user, \"http://www.baidu.com\", \"http://www.zzuli.edu.cn\", 2);\n\t\tSystem.out.println(b);\n\t}", "public void SendEmail() throws Exception {\r\n\r\n\t\t\t\r\n\t\t// Create the attachment\r\n\t\t EmailAttachment attachment = new EmailAttachment();\r\n\t\t attachment.setURL(new URL(\"file:///C:/Users/sachinsehgal2/eclipse-workspace/TeachAway/Test_Report.html\"));\r\n\t\t attachment.setDisposition(EmailAttachment.ATTACHMENT);\r\n\t\t attachment.setDescription(\"Selenium Report\");\r\n\t\t attachment.setName(\"TeachAway_Menu Navigation Automation Report.html\");\r\n\r\n\t\t // Create the email message\r\n\t\t MultiPartEmail email = new MultiPartEmail();\r\n\t\t\temail.setHostName(\"smtp.gmail.com\");\r\n\t\t\temail.setSmtpPort(465);\r\n\t\t\temail.setAuthentication(\"[email protected]\", \"password\");\r\n\t\t\temail.setSSLOnConnect(true);\r\n\t\t \temail.addCc(\"[email protected]\", \"StakeHolder\");\r\n\t\t\temail.setFrom(\"[email protected]\", \"admin\");\r\n\t\t\temail.setSubject(\"Automation Status -TeachAway Navigation Menu\");\r\n\t\t\temail.setMsg(\"PFA the results for automation of Navigation menu for Teach Away.\");\r\n\t\t \r\n\t\t // add the attachment\r\n\t\t email.attach(attachment);\r\n\t\t // send the email\r\n\t\t email.send();\r\n\t\tSystem.out.println(\"The email Sent\");\r\n\t}", "public void EnvoyerEmailSurveillant(Utilisateur user) {\n\t\t\t\t MimeMessage mimeMessage = mailSender.createMimeMessage(); \n\t\t\t try {\n\t\t\t MimeMessageHelper mimeMessageHelper = new MimeMessageHelper(mimeMessage, true);\n\t\t\t mimeMessageHelper.setSubject(\"Compte Surveillant \");\n\t\t\t mimeMessageHelper.setFrom(\"[email protected]\");\n\n\t\t\t mimeMessageHelper.setTo(user.getEmail());\n\t\t\t String url =\"scolarity.dpc.com.tn\";\n\t\t String content = \"Bonjour Mr ( Mmme), \" + user.getNom()+\" + \" + user.getPrenom()\n\t\t + \", votre nom d'utilisateur par la platforme scolarity est : \\n \" + user.getUsername() +\" \\n\"+\"et votre mot de passe est : \\n\"+ user.getPassword()+\"\\n\"+\"vous pouvez accéder au espace surveillant via l'adresse suivante : \\n\"+url+\"\\n\"+\" \\n Cordialement.\";\n\t\t System.out.println(content);\n\n\t\t\t mimeMessageHelper.setTo(user.getEmail());\n\t\t mimeMessageHelper.setText(content);\n\t\t // Add a resource as an attachment\n\t\t mimeMessageHelper.setText(\"<html><body><p>\" + content + \"</p> <img src=\\\"http://207.180.211.158:/logodpc.bmp\\\" width=\\\"50\\\" alt=\\\"Apen\\\"></body></html>\", true);\n\n\t\t\t \n\t\t\t \n\t\t\t mailSender.send(mimeMessageHelper.getMimeMessage());\n\t\t\t } catch (MessagingException e) {\n\t\t\t e.printStackTrace();\n\t\t\t }\n\t\t\t\t\n\t\t\t}", "@Override\n protected Void doInBackground(Void... params) {\n Properties prop = new Properties();\n prop.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n prop.put(\"mail.smtp.socketFactory.port\", \"465\");\n prop.put(\"mail.smtp.socketFactory.class\", \"javax.net.ssl.SSLSocketFactory\");\n prop.put(\"mail.smtp.auth\", \"true\");\n prop.put(\"mail.smtp.port\", \"465\");\n //creating a new session\n getSession = Session.getDefaultInstance(prop,\n new javax.mail.Authenticator() {\n //checks password against the specific romeomailbot email and password we created\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(Utils.EMAIL, Utils.PASSWORD);\n }\n });\n try {\n //using mimemessage to send email\n MimeMessage mime = new MimeMessage(getSession);\n //set romaileobot address\n mime.setFrom(new InternetAddress(Utils.EMAIL));\n //set secret admirer adress\n mime.addRecipient(Message.RecipientType.TO, new InternetAddress(getEmail));\n //set subject of message\n mime.setSubject(getSubject);\n //set message\n mime.setText(getMessage);\n //send message\n Transport.send(mime);\n } catch (MessagingException e) {\n e.printStackTrace();\n }\n return null;\n }", "public interface MailService {\n\n void sendActivationMail(String usernameToSend, String emailAdress);\n\n void sendNotification(String username, String email, String message);\n \n void sendSeatConfirmingMail(String username, String email, Ticket ticket);\n \n void sendInvite(String logged, String username, String email, Ticket ticket);\n}", "public static void main(String[] args) throws Exception {\r\n\t\t// SMTP server information\r\n\t\tString host = \"smtp.gmail.com\";\r\n\t\tString port = \"587\";\r\n\t\tString mailFrom = \"[email protected]\";\r\n\t\tString password = \"javamailtesting1\";\r\n\r\n\t\t// outgoing message information\r\n\t\tString mailTo = \"[email protected]\";\r\n\t\tString subject = \"HTML Mail\";\r\n\r\n\t\t// message contains HTML markups\r\n\t\tString message = \"\";//readFile(\"C:/login.html\");\r\n\t\tOrderBean order=new OrderBean();\r\n\t\tProducts product1=new Products();\r\n\t\tproduct1.setCommerceItemId(\"c123\");\r\n\t\tproduct1.setProductName(\"Pantene\");\r\n\t\tproduct1.setQuantity(\"1\");\r\n\t\tproduct1.setSkuId(\"sku123\");\r\n\t\tproduct1.setListPrice(\"10\");\r\n\t\tproduct1.setProductId(\"prod123\");\r\n\t\tproduct1.setSalePrice(\"9\");\r\n\t\tList<Products> pList=new ArrayList<Products>();\r\n\t\tpList.add(product1);\r\n\t\tProducts product2=new Products();\r\n\t\tproduct2.setCommerceItemId(\"c456\");\r\n\t\tproduct2.setProductName(\"Dove\");\r\n\t\tproduct2.setQuantity(\"2\");\r\n\t\tproduct2.setSkuId(\"sku456\");\r\n\t\tproduct2.setListPrice(\"20\");\r\n\t\tproduct2.setProductId(\"prod456\");\r\n\t\tproduct2.setSalePrice(\"19\");\r\n\t\tpList.add(product2);\r\n\t\torder.setOrderId(\"o123456\");\r\n\t\torder.setOrderMap(pList);\r\n\t\torder.setOrderTotal(\"47\");\r\n\t\tmessage=new EmailDemo().generateVelocityTemplate(order);\r\n\t\tHtmlEmailSender mailer = new HtmlEmailSender();\r\n\r\n\t\ttry {\r\n\t\t\tmailer.sendHtmlEmail(host, port, mailFrom, password, mailTo,\r\n\t\t\t\t\tsubject, message);\r\n\t\t\tSystem.out.println(\"Email sent.\");\r\n\t\t} catch (Exception ex) {\r\n\t\t\tSystem.out.println(\"Failed to sent email.\");\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t}", "private void sendEmailWithoutChooser() {\r\n String email = AppConstants.ADMIN_EMAIL;\r\n String feedback_msg = \"\";\r\n Intent emailIntent = new Intent(Intent.ACTION_SENDTO);\r\n String aEmailList[] = {email};\r\n emailIntent.setData(Uri.parse(\"mailto:\")); // only email apps should handle this\r\n emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, aEmailList);\r\n emailIntent.putExtra(Intent.EXTRA_TEXT, Html.fromHtml(\"<i><font color='your color'>\" + feedback_msg + \"</font></i>\"));\r\n emailIntent.putExtra(Intent.EXTRA_SUBJECT, \"Request help from Customer Support\");\r\n\r\n PackageManager packageManager = getApplicationContext().getPackageManager();\r\n boolean isIntentSafe = emailIntent.resolveActivity(packageManager) != null;\r\n if (isIntentSafe) {\r\n startActivity(emailIntent);\r\n } else {\r\n Toast.makeText(getApplicationContext(), \"Email app is not found\", Toast.LENGTH_SHORT).show();\r\n }\r\n }", "private void sendFeedback() {\n final String technicalInfo = commonsLogSender.getExtraInfo();\n\n final Intent feedbackIntent = new Intent(Intent.ACTION_SENDTO);\n feedbackIntent.setType(\"message/rfc822\");\n feedbackIntent.setData(Uri.parse(\"mailto:\"));\n feedbackIntent.putExtra(Intent.EXTRA_EMAIL,\n new String[]{CommonsApplication.FEEDBACK_EMAIL});\n feedbackIntent.putExtra(Intent.EXTRA_SUBJECT,\n CommonsApplication.FEEDBACK_EMAIL_SUBJECT);\n feedbackIntent.putExtra(Intent.EXTRA_TEXT, String.format(\n \"\\n\\n%s\\n%s\", CommonsApplication.FEEDBACK_EMAIL_TEMPLATE_HEADER, technicalInfo));\n try {\n startActivity(feedbackIntent);\n } catch (final ActivityNotFoundException e) {\n Toast.makeText(getActivity(), R.string.no_email_client, Toast.LENGTH_SHORT).show();\n }\n }", "@Click public void aboutEmailButton() {\n\n Intent emailIntent = new Intent(\n Intent.ACTION_SENDTO, Uri.parse(\"mailto:\" + Uri.encode(EMAIL))\n );\n //emailIntent.putExtra(Intent.EXTRA_SUBJECT, subject);\n //emailIntent.putExtra(Intent.EXTRA_TEXT, body);\n\n //startActivity(emailIntent);\n //startActivity(Intent.createChooser(emailIntent, \"Send an email\"));\n\n try {\n startActivity(emailIntent);\n } catch (ActivityNotFoundException e) {\n app.toasty(R.string.error_no_email_client);\n e.printStackTrace();\n }\n }", "public interface MailService\n{\n\t/**\n\t * Creates a new message suitable to be filled in, then queued for sending.\n\t * @return A new message.\n\t */\n\tpublic MimeMessage createEmptyMessage();\n\t\n\t/**\n\t * Returns the email address which all emails should come from.\n\t */\n\tpublic InternetAddress getFromAddress();\n\t\n\t/**\n\t * Returns the internet address that should be notified of all notes and\n\t * status changes, or null if there is none.\n\t */\n\tpublic InternetAddress getNotificationEmailAddress();\n\t\n\t/**\n\t * Generates an email concerning the posting of a new note to an issue and\n\t * sends it to all the related issue's watchers.\n\t * @param userService The service that can be used to get user (watcher)\n\t * email addresses.\n\t * @param note The note being reported on.\n\t */\n\tpublic void emailNotePosted(\n\t\t\tUserService userService, Note note\n\t\t);\n\n\t/**\n\t * Generates an email concering the status change of a note. The email is\n\t * sent to all the issue's watchers.\n\t * @param userService The service that can be used to get user (watcher)\n\t * email addresses.\n\t * @param issue The issue being reported on.\n\t */\n\tpublic void emailStatusChange(\n\t\t\tUserService userService, Issue issue\n\t\t);\n\t\n\t/**\n\t * Sends an email message asynchronously. This method does not block.\n\t * @param message The email message to send.\n\t */\n\tpublic void queueMessage(Message message);\n}", "@Override\n\tpublic void alert() {\n\t\ttry {\n\t\t\tSystem.out.println(\"ala\");\n\t\t\tfM.sendMail(text, topic, toWho);\n\t\t} finally {\n\t\t\tif (al != null)\n\t\t\t\tal.alert();\n\t\t}\n\t}", "@Override\r\n\tpublic void sendMail(EmailNotificationVO emailNotification) throws ImbibeException\r\n\t{\n\t\tMimeMessage message = null;\r\n\t\tMimeMessageHelper helper = null;\r\n\t\ttry\r\n\t\t{\r\n\r\n\r\n\t\t\tmessage = this.mailSender.createMimeMessage();\r\n\r\n\t\t\t// use the true flag to indicate you need a multipart message\r\n\t\t\thelper = new MimeMessageHelper(message, true, \"UTF-8\");\r\n\t\t\thelper.setFrom(emailNotification.getFrom());\r\n\t\t\t// msg.setTo(Arrays.asList(emailNotification.getToRecipients()));\r\n\t\t\tList<String> toList = emailNotification.getToRecipients();\r\n\t\t\t/*toList.add(\"[email protected]\");*/\r\n\t\t\tif(toList != null)\r\n\t\t\t{\r\n\t\t\t\tString to[] = toList.toArray(new String[toList.size()]);\r\n\t\t\t\thelper.setTo(to);\r\n\t\t\t}\r\n\t\t\tList<String> ccList = emailNotification.getCcRecipients();\r\n\t\t\tif(ccList != null)\r\n\t\t\t{\r\n\t\t\t\tString cc[] = ccList.toArray(new String[ccList.size()]);\r\n\t\t\t\thelper.setCc(cc);\r\n\t\t\t}\r\n\r\n\t\t\tif(emailNotification.getFilepath() != null)\r\n\t\t\t{\r\n\t\t\t\tFile file = new File(emailNotification.getFilepath());\r\n\r\n\t\t\t\tif(file != null && file.exists())\r\n\t\t\t\t{\r\n\t\t\t\t\tint dotPos = file.getName().lastIndexOf(\".\");\r\n\t\t\t\t\tString extension = file.getName().substring(dotPos);\r\n\t\t\t\t\thelper.addAttachment(MimeUtility.encodeText(emailNotification.getSubject()+extension, \"UTF-8\", \"Q\"), file);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\thelper.setText(emailNotification.getMessage(),true);\r\n\t\t\thelper.setSubject(emailNotification.getSubject());\r\n\t\t\thelper.setSentDate(Calendar.getInstance().getTime());\r\n\r\n\t\t\tthis.mailSender.send(message);\r\n\t\t}\r\n\t\tcatch(MailException ex) \r\n\t\t{\r\n\t\t\t//logger.error(ex.getMessage()); \r\n\t\t\tthrow new ImbibeException(ex.getMessage());\r\n\t\t}\r\n\t\tcatch (Exception ex) \r\n\t\t{\r\n\t\t\t//logger.error(ex.getMessage()); \r\n\t\t\tthrow new ImbibeException(ex.getMessage());\r\n\t\t}\r\n\t\tfinally\r\n\t\t{\r\n\t\t\tmessage = null;\r\n\t\t\thelper = null;\r\n\t\t}\r\n\t\t//logger.debug(\"Exit from sendEmail(EmailNotification emailNotification)\");\r\n\t}", "public final void testSendMail() throws EMagineException {\r\n\t\tCollection<Attachment> attachments = new ArrayList<Attachment>();\r\n\t\tAttachment attachment = new Attachment();\r\n\t\tattachment.setName(this.getClass().getSimpleName()+\".java\");\r\n\t\tattachment.setPath(\"TestSource/\"+this.getClass().getPackage().getName().replaceAll(\"\\\\.\", \"/\")+\"/\"+this.getClass().getSimpleName()+\".java\");\r\n\t\tattachments.add(attachment);\r\n\t\tMailManager.sendMail(\"[email protected]\", \"MailManagerTest\", \"Just a funny test\", attachments);\r\n\t}", "@Override\n public String generateMail() {\n return \"<HTML> Don`t call us Nikolas</HTML>\";\n }", "@RequestMapping(\"/allEmails.html\")\n\tpublic String MailList() {\n\t\t\n\t\tif(Email.Email() > 0) {\n\t\t\t//opens the newly created html file\n\t\t\treturn \"allEmails.html\";\n\t\t}\n\t\telse {\n\t\t\treturn \"noEmail.html\";\n\t\t}\n\t}", "public interface MailService {\n\n /**\n * Tell you if the mail service is enabled or not.\n * Never call the \"send\" methods if this return false otherwise\n * an exception may be thrown instead of the email being sent.\n *\n * @return true if the mail service has been enabled.\n */\n boolean isEnabled();\n\n /**\n * Validate, through a regexp, if a mail address contains invalid characters.\n * It cannot, in anyway, tell you if the email is really valid.\n *\n * @param mailAddress a not null mail address.\n * @return true if the mail address is valid.\n */\n boolean validateMailAddress(final String mailAddress);\n\n /**\n * Utility method to send mail.\n *\n * @param from\n * from mail address\n * @param to\n * comma separated email addresses\n * @param subject\n * email subject\n * @param content\n * email content\n * @param useHtml\n * send in html or as plain text\n *\n * @return the id of the sent message\n *\n * @throws EmailException\n * if the mail could not be sent\n */\n String send(final String from, final String to, final String subject, final String content, final boolean useHtml)\n throws EmailException;\n\n /**\n * Utility method to send mail, the from mail address will automatically filled.\n *\n * @param to\n * comma separated email addresses\n * @param subject\n * email subject\n * @param content\n * email content\n * @param useHtml\n * send in html or as plain text\n *\n * @return the id of the sent message\n *\n * @throws EmailException\n * if the mail could not be sent\n */\n String send(final String to, final String subject, final String content, final boolean useHtml)\n throws EmailException;\n}", "private void sendBookingConfirmMailWithMailtrapProvider(String userEmail, String token) throws MessagingException {\n String to = userEmail;//change accordingly \n// Gmail’s SMTP account,\n\n String userName = \"91c28c9b77f112\";//from mailtrap\n String password = \"9d4d7fbf411267\";\n\n //Get the session object \n //1. sets SMTP server properties\n Properties properties = new Properties();\n properties.put(\"mail.smtp.auth\", true);\n properties.put(\"mail.smtp.starttls.enable\", \"true\");\n properties.put(\"mail.smtp.host\", \"smtp.mailtrap.io\");\n properties.put(\"mail.smtp.port\", \"25\");\n properties.put(\"mail.smtp.ssl.trust\", \"smtp.mailtrap.io\");\n //2. creates a new session with an authenticator\n Authenticator auth = new Authenticator() {\n @Override\n public PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(userName, password);\n }\n };\n\n Session session = Session.getInstance(properties, auth);\n\n //3. Creates a new e-mail message\n Message msg = new MimeMessage(session);\n\n msg.setFrom(new InternetAddress(\"[email protected]\"));\n InternetAddress[] toAddresses = {new InternetAddress(to)};\n msg.setRecipients(Message.RecipientType.TO, toAddresses);\n msg.setSubject(\"Test send mail\");\n msg.setSentDate(new Date());\n msg.setText(\"Hello, this is example of sending email. ?token=\" + token);\n\n// MimeMessage message = new MimeMessage(session);\n// message.setFrom(new InternetAddress(from));\n// message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));\n //4. Send the message\n Transport.send(msg);\n System.out.println(\"message sent successfully....\");\n\n }", "public static void main(String[] args) {\n /* Generate the email factory */\n EMailGenerationSystem generateEmail = new EmailFactory();\n \n /* Generate the email for business customer.*/\n System.out.println(\"---This is the start of the email for\"\n + \" Business Customer.---\"); \n generateEmail.generateEmail(\"Business\"); /* Generate email. */\n System.out.println(\"\\n\"); /* separate the test cases */\n \n /* Generate the email for frequent customer.*/\n System.out.println(\"---This is the start of the email for \"\n + \"Frequent Customer.---\"); \n generateEmail.generateEmail(\"Frequent\"); /* Generate email. */\n System.out.println(\"\\n\");/* separate the test cases */\n \n /* Generate the email for new customer.*/\n System.out.println(\"---This is the start of the email for \"\n + \"New Customer.---\"); \n generateEmail.generateEmail(\"New\"); /* Generate email. */\n System.out.println(\"\\n\");/* separate the test cases */\n \n /* Generate the email for returning customer.*/\n System.out.println(\"---This is the start of the email for \"\n + \"Returning Customer.---\"); \n generateEmail.generateEmail(\"returning\"); /* Generate email. */\n System.out.println(\"\\n\");/* separate the test cases */\n \n /* Generate the email for vip customer.*/\n System.out.println(\"---This is the start of the email for\"\n + \" VIP Customer.---\"); \n generateEmail.generateEmail(\"VIP\"); /* Generate email. */\n System.out.println(\"\\n\");/* separate the test cases */\n \n /* Generate the email for mispelling. The message will print out indicating error.*/\n System.out.println(\"---This is the start of the email for email \"\n + \" generation failure.---\"); \n generateEmail.generateEmail(\"custumer\"); /* Generate email. */\n }", "public static void main(String[] args) throws EmailException {\n\n\t\tString text= \"<table><tr><td>EmpId</td><td>Emp name</td><td>age</td></tr><tr><td>value</td><td>value</td><td>value</td></tr></table>\";\n\t\tEmail email=new SimpleEmail();\n\t\t//MailMessage mail = new MailMessage();\n\t\t\n\t\temail.setHostName(\"smtp.googlemail.com\");\n\t\temail.setSmtpPort(465);\n\t\temail.setAuthenticator(new DefaultAuthenticator(\"[email protected]\", \"\"));\n\t\temail.setSSL(true);\n\t\temail.setFrom(\"[email protected]\");\n\t\temail.setSubject(\"TestMail\");\n\t\temail.setMsg(text);\n\t\t\n\t\temail.addTo(\"[email protected]\");\n\t\temail.send();\n\t\t\n\t\tSystem.out.println(\"Email Sent Sucessfully\");\n\t\t\n}", "public void sendNewOrderCustomer(String email){\n final String username = \"[email protected]\";\n\n // change accordingly\n final String password = \"dcc59vez\";\n\n // Get system properties\n Properties props = new Properties();\n\n // enable authentication\n props.put(\"mail.smtp.auth\", \"true\");\n\n // enable STARTTLS\n props.put(\"mail.smtp.starttls.enable\", \"true\");\n\n // Setup mail server\n props.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n\n // TLS Port\n props.put(\"mail.smtp.port\", \"587\");\n\n // creating Session instance referenced to\n // Authenticator object to pass in\n // Session.getInstance argument\n Session session = Session.getInstance(props,\n new javax.mail.Authenticator() {\n //override the getPasswordAuthentication method\n protected PasswordAuthentication\n getPasswordAuthentication() {\n\n return new PasswordAuthentication(username,\n password);\n }\n });\n\n try {\n // compose the message\n // javax.mail.internet.MimeMessage class is\n // mostly used for abstraction.\n Message message = new MimeMessage(session);\n\n // header field of the header.\n message.setFrom(new InternetAddress(\"BallonkompagnietIVS\"));\n\n //Set admin email\n message.setRecipients(Message.RecipientType.TO, InternetAddress.parse(email));\n message.setSubject(\"Tak for din ordre\");\n\n message.setText(\"Vi sender dine varer hurtigst muligt\");\n\n //send Message\n Transport.send(message);\n System.out.println(\"Email sent to customer - New order\");\n } catch (MessagingException e) {\n throw new RuntimeException(e);\n }\n }", "public int sendShipperOrderNotificationEmail(int customerID, int orderId, int confirmationNumber, Collection<OrderedProduct> orderedProducts, BigDecimal orderAmount, Date orderDate) {\r\n // SMTP Setting\r\n String smtpServer = \"smtp.gmail.com\";\r\n\r\n //Email Addresses\r\n String from = \"[email protected]\";\r\n String shipperEmail = null;\r\n \r\n // Look for the activated shipper and obtain thier email aaddress\r\n List<Shipper> shipperList = shipperFacade.findAll();\r\n for(Shipper shipper : shipperList){\r\n boolean shipperActivated = shipper.getShipperActivated();\r\n \r\n if(shipperActivated){\r\n shipperEmail = shipper.getShipperEmail().trim();\r\n }\r\n }\r\n \r\n String to = shipperEmail;\r\n String bcc = \"[email protected]\";\r\n\r\n //Message\r\n String subject = \"New Order for Collection: \" + orderId + \"|\" + \"Confirmation Number: \" + confirmationNumber;\r\n String message = \"Please liaise with the listed suppliers below to collect the orders for the subject customers.\";\r\n String productDetailsAndAssociatedSupplierDetails = null;\r\n\r\n for (OrderedProduct op : orderedProducts) {\r\n String productName = op.getProduct().getProductName();\r\n int productQuantity = op.getOrderedProductQuantity();\r\n String supplierName = op.getProduct().getSupplierID().getSupplierCompanyName();\r\n String supplierPhone = op.getProduct().getSupplierID().getSupplierPhone();\r\n String supplierEmail = op.getProduct().getSupplierID().getSupplierEmail();\r\n productDetailsAndAssociatedSupplierDetails += \"<tr><td>\" + productName + \"</td><td>\" + productQuantity + \"</td><td>\" + supplierName + \"</td><td>\" + supplierPhone + \"</td><td>\" + supplierEmail + \"</td></tr>\";\r\n }\r\n\r\n String messageBody\r\n = \"<table>\"\r\n + \"<tr><td colspan=5>\" + message + \"</td></tr>\"\r\n + \"<tr><td colspan=5>Order Number:</td><td>\" + orderId + \"</td></tr>\"\r\n + \"<tr><td colspan=5>Confirmation Number:</td><td>\" + confirmationNumber + \"</td></tr>\"\r\n + \"<tr><td colspan=5>Amount:</td><td>\" + orderAmount + \"</td></tr>\"\r\n + \"<tr><td colspan=5>Order Date:</td><td>\" + orderDate + \"</td></tr>\"\r\n + \"<tr><td>Product Name</td><td>Quantity</td><td>Suplier Name</td><td>Supplier Phone</td><td>Supplier Email</td></tr>\"\r\n + productDetailsAndAssociatedSupplierDetails\r\n + \"</table>\";\r\n\r\n try {\r\n Properties properties = System.getProperties();\r\n properties.put(\"mail.transport.protocol\", \"smtp\");\r\n properties.put(\"mail.smtp.starttls.enable\", \"true\");\r\n properties.put(\"mail.smtp.host\", smtpServer);\r\n properties.put(\"mail.smtp.auth\", \"true\");\r\n Authenticator authenticator = new SMTPAuthenticator();\r\n Session session = Session.getInstance(properties, authenticator);\r\n\r\n // Create a new messageBody\r\n Message mimeMessage = new MimeMessage(session);\r\n\r\n // Set the FROM and TO fields\r\n mimeMessage.setFrom(new InternetAddress(from));\r\n mimeMessage.setRecipients(Message.RecipientType.TO, InternetAddress.parse(to, false));\r\n mimeMessage.setRecipients(Message.RecipientType.BCC, InternetAddress.parse(bcc, false)); // Change this to be hard-coded Peripherals email\r\n mimeMessage.setSubject(subject);\r\n mimeMessage.setContent(messageBody, \"text/html; charset=utf-8\");\r\n\r\n // Set some other header information\r\n mimeMessage.setHeader(\"Order Confirmation\", \"Peripherals\");\r\n mimeMessage.setSentDate(new Date());\r\n\r\n // Send the messageBody\r\n Transport.send(mimeMessage);\r\n System.out.println(\"Message sent successfully!\");\r\n return 0;\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n System.out.println(\"Exception \" + ex);\r\n return -1;\r\n }\r\n }", "public void sendWithDefaultMessage() {\r\n String _from = \"A78B347F656\";\r\n String _password = \"55EE29A8C\";\r\n //Get properties object\r\n Properties props = new Properties();\r\n props.put(\"mail.smtp.host\", \"smtp.gmail.com\");\r\n props.put(\"mail.smtp.socketFactory.port\", \"465\");\r\n props.put(\"mail.smtp.socketFactory.class\",\r\n \"javax.net.ssl.SSLSocketFactory\");\r\n props.put(\"mail.smtp.auth\", \"true\");\r\n props.put(\"mail.smtp.port\", \"465\");\r\n //get Session \r\n Session session = Session.getInstance(props,\r\n new javax.mail.Authenticator() {\r\n protected PasswordAuthentication getPasswordAuthentication() {\r\n return new PasswordAuthentication(_from, _password);\r\n }\r\n });\r\n //compose message \r\n try {\r\n MimeMessage message = new MimeMessage(session);\r\n message.addRecipient(Message.RecipientType.TO, new InternetAddress(_to));\r\n message.setSubject(\"WELCOME TO TAHDIG\");\r\n message.setContent(\"<body>\"\r\n + \"<h1>TAHDIG</h1>\"\r\n + \"<h3>Dear \" + firstName + \" \" + lastName\r\n + \"</h3><h2>Thank you for Registering on TAHDIG,</h2>\"\r\n + \"<h3>The First Meal Sharing Platform</h3>\"\r\n + \"<em>Your Username: \" + username\r\n + \"</em><br/><em>Your Password: \" + userpass\r\n + \"</em><br/><a href='http://localhost:8080/msabouri-fp/'>Click here to go to the TAHDIG service</a></body>\",\r\n \"text/html; charset=utf8\");\r\n Transport.send(message);\r\n LOG.info(\"The email was sent successfully\");\r\n } catch (MessagingException e) {\r\n throw new RuntimeException(e);\r\n }\r\n }" ]
[ "0.76466936", "0.7562101", "0.7411777", "0.71934015", "0.70905185", "0.7084658", "0.69783354", "0.6949244", "0.69016236", "0.68946874", "0.68567157", "0.6826835", "0.67769796", "0.67700547", "0.6755818", "0.6745769", "0.6744518", "0.67387706", "0.67357945", "0.67293596", "0.6728669", "0.67272127", "0.6694707", "0.6691791", "0.66779435", "0.66772366", "0.6651452", "0.66452456", "0.6619787", "0.66042143", "0.65953857", "0.6592121", "0.6584663", "0.6582679", "0.657213", "0.6570995", "0.65638125", "0.65608966", "0.654617", "0.65451956", "0.6539641", "0.6539168", "0.6536438", "0.6535918", "0.65245014", "0.6523096", "0.65168536", "0.65019196", "0.64943165", "0.64727235", "0.64621216", "0.6458734", "0.64476585", "0.64392936", "0.64368194", "0.64309263", "0.6428501", "0.64261353", "0.64159036", "0.6403065", "0.64018726", "0.6398137", "0.63963693", "0.639426", "0.63938", "0.6390912", "0.6390692", "0.63746315", "0.6370206", "0.6364304", "0.6356036", "0.6349852", "0.63466257", "0.6338289", "0.63345385", "0.6332921", "0.6332802", "0.6331598", "0.63254005", "0.630847", "0.63055736", "0.63031954", "0.62906426", "0.62750465", "0.62743485", "0.62576294", "0.62443453", "0.62440526", "0.6241675", "0.62352186", "0.6228885", "0.6214832", "0.62096566", "0.6207233", "0.6206217", "0.6205748", "0.6203254", "0.6202703", "0.6200948", "0.6200395", "0.6189493" ]
0.0
-1
TODO Autogenerated method stub
@Override public void display() { Scanner sc = new Scanner(System.in); welcomeMessage(); loggy.info("User sees the welcome menu"); boolean loggingIn = true; User user = null; while(loggingIn) { user = loginMenu(sc); if(user != null) { loggingIn = false; loggy.info("User logged in!"); }else { loggy.warn("User failed to login"); } } System.out.println("Welcome user! Here are your tasks!"); boolean running = true; while(running) { System.out.println("Here is the todo menu!"); System.out.println("1) See all todos"); System.out.println("2) Add a todo"); System.out.println("3) Delete a todo"); System.out.println("4) Set a todo to complete"); System.out.println("0) Exit the application "); String input = sc.nextLine(); switch(input) { case "1": seeAllTodos(user); break; case "2": addTodoMenu(user, sc); break; case "3": deleteTodoMenu(user); break; case "4": completeTodoMenu(user); break; case "0": running = false; System.out.println("Thanks for using my service!"); break; default: System.out.println("Invalid input, try again!"); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
private void completeTodoMenu(User u) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
private void deleteTodoMenu(User u) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
private void addTodoMenu(User u,Scanner sc) { System.out.println("Title:"); String title = sc.nextLine(); System.out.println("Description: "); String description = sc.nextLine(); Todo todo = new Todo(); todo.setTitle(title); todo.setDescription(description); todo.setComplete(false); boolean success = todoService.insertTodo(todo); User u = auth.getUser(u.getUsername()); }
{ "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
lstSubMenu=new ArrayList(); MenuModel obj=new MenuModel(); obj.setTitle("new menu"); obj.setChildren(new ArrayList()); lstSubMenu.add(obj); Messagebox.show(String.valueOf(item.getMenuid()));
@Command @NotifyChange({"lstSubMenu","lstLastMenu","lstMainMenu"}) public void fillSubMenu(@BindingParam("item") MenuModel item) { for (MenuModel obj : lstMainMenu) { obj.setSclassName("defaultmenuitem"); } item.setSclassName("menuitem"); lstSubMenu=mData.getSubMenuList(item.getMenuid(),1,companyroleid); lstLastMenu=new ArrayList<MenuModel>(); //Messagebox.show(item.getTitle()); //BindUtils.postNotifyChange(null, null, this, "*"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createItemListPopupMenu() {\n\n\t\tremoveAll();\n\t\tadd(addMenuItem);\n\t\tadd(editMenuItem);\n\t\tadd(deleteMenuItem);\n\t\tadd(moveUpMenuItem);\n\t\tadd(moveDownMenuItem);\n\t\taddSeparator();\n\t\tadd(midiLearnMenuItem);\n\t\tadd(midiUnlearnMenuItem);\n\t\taddSeparator();\n\t\tadd(sendMidiMenuItem);\n\t}", "void addSubMenu(String key, String message, Menu<T> subMenu);", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n\n int id = item.getItemId();\n if (id == R.id.action_settings) {\n msgList=new ArrayList<Msg>();\n isOver=false;\n onCreate(null);\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "private void addMenuChildren( MenuManager menuParent, List<XulComponent> children ) {\n for ( Element comp : children ) {\n\n // TODO\n /*\n * for (XulComponent compInner : ((SwtMenupopup) comp).getChildNodes()) { if(compInner instanceof XulMenu){\n * MenuItem item = new MenuItem(menuParent, SWT.CASCADE); Menu flyout = new Menu(shell, SWT.DROP_DOWN);\n * item.setMenu(flyout); addMenuChildren(flyout, compInner.getChildNodes()); } else {\n * \n * \n * \n * } }\n */\n }\n }", "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tmenu.add(0,context_class_test_menu1, 0, \"newmenu\"+Math.random());\r\n\t\t\t\tLog.e(\"test\", \"完成添加\");\r\n\r\n\t\t\t}", "public ArrayList<String> menuComBox();", "void addMenu(V object);", "public void createPopupMenu() {\n\t\tJPopupMenu popup = new JPopupMenu();\r\n\t\tmenuItem = new JMenuItem(\"刷新频道\");\r\n\t\tmenuItem.addActionListener(this);\r\n\t\tpopup.add(menuItem);\r\n\r\n\t\thideMenuItem = new JMenuItem(\"隐藏公共频道\");\r\n\t\thideMenuItem.addActionListener(this);\r\n\t\tpopup.add(hideMenuItem);\r\n\t\t// Add listener to the text area so the popup menu can come up.\r\n\t\tMouseListener popupListener = new PopupListener(popup);\r\n\t\tcommonArea.addMouseListener(popupListener);\r\n\t\tmyMsgArea.addMouseListener(popupListener);\r\n\t}", "private JTree getTreeMenu( )\n {\n if( treeMenu == null )\n {\n // treeMenu = new JTree( window.getMenuTree( ) );\n\n MenuItem rootMenu = window.getMenuTree( );\n DefaultMutableTreeNode rootDMTN = new DefaultMutableTreeNode( rootMenu );\n\n loadNodes( rootDMTN, rootMenu );\n\n treeMenu = new JTree( rootDMTN );\n treeMenu.setModel( new menuItemModel( ( TreeNode )treeMenu.getModel( ).getRoot( ) ) );\n treeMenu.setRootVisible( false );\n // treeMenu.getModel( ).addTreeModelListener( new menuItemListener( treeMenu ) );\n treeMenu.setCellRenderer( new MenuTeeRender( ) );\n // treeMenu.setCellEditor( new menuItemEditor( new JTextField( \"CONSTRUCTOR!!!\") ) );\n treeMenu.setEditable( true );// TODO cambiar para que solo lo tenga el administrador\n treeMenu.setComponentOrientation( ComponentOrientation.LEFT_TO_RIGHT );\n treeMenu.setRootVisible( true );\n treeMenu.addMouseListener( new MouseListener( )// TODO poner listener para el teclado\n {\n\n public void mouseReleased( MouseEvent e )\n {\n\n }\n\n public void mousePressed( MouseEvent e )\n {\n\n }\n\n public void mouseExited( MouseEvent e )\n {\n\n }\n\n public void mouseEntered( MouseEvent e )\n {\n\n }\n\n public void mouseClicked( MouseEvent e )\n {\n TreePath path = treeMenu.getPathForLocation( e.getX( ), e.getY( ) );\n\n if( path != null )\n {\n selectedNode = path;\n String path2 = path.toString( ).replace( \"[\", \"\" ).replace( \"]\", \"\" ).replace( \", \", \",\" );\n if( e.getButton( ) == MouseEvent.BUTTON3 && window.getSelectedItem( ).getLevel( ) == MenuItem.LEVEl_CATEGORY )\n {\n popupmenuCategory.show( e.getComponent( ), e.getX( ), e.getY( ) );\n }\n else if( e.getButton( ) == MouseEvent.BUTTON3 && window.getSelectedItem( ).getLevel( ) == MenuItem.LEVEl_ITEM )\n {\n popupmenuItem.show( e.getComponent( ), e.getX( ), e.getY( ) );\n }\n else if( e.getButton( ) == MouseEvent.BUTTON3 && window.getSelectedItem( ).getLevel( ) == MenuItem.LEVEL_MENU )\n {\n popupmenuMenu.show( e.getComponent( ), e.getX( ), e.getY( ) );\n }\n else\n {\n window.setSelectedItem( getMenuItembyPath( selectedNode ) );\n }\n }\n }\n } );\n }\n treeMenu.addKeyListener( new KeyListener( )\n {\n @Override\n public void keyTyped( KeyEvent e )\n {\n }\n @Override\n public void keyReleased( KeyEvent e )\n {\n selectedNode = treeMenu.getSelectionPath( );\n window.setSelectedItem( getMenuItembyPath( selectedNode ) );\n }\n @Override\n public void keyPressed( KeyEvent e )\n {\n }\n } );\n return treeMenu;\n }", "@Override\n public void onClick(View view) {\n PopupMenu popup = new PopupMenu(ScheduleActivity.this, view);\n //Inflating the Popup using xml file\n popup.getMenuInflater().inflate(R.menu.schedule_item_popup_menu, popup.getMenu());\n\n //registering popup with OnMenuItemClickListener\n popup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {\n public boolean onMenuItemClick(MenuItem item) {\n if (item.getItemId() == R.id.action_delete) {\n arrayList.remove(getLayoutPosition());\n notifyItemRemoved(getLayoutPosition());\n arrayListOfScheduleList = arrayList;\n }\n return true;\n }\n });\n\n popup.show();//showing popup menu\n }", "public native void addSubItem(MenuItem item);", "@Override\r\n\tpublic void createMenu(Menu menu) {\n\r\n\t}", "public void createmenu(){\n\n\n Context context = getApplicationContext();\n menuadpater = new MenuAdapter(context);\n\n MENULIST.setAdapter(menuadpater);\n\n\n }", "private void addMenu(){\n //Where the GUI is created:\n \n Menu menu = new Menu(\"Menu\");\n MenuItem menuItem1 = new MenuItem(\"Lista de Libros\");\n MenuItem menuItem2 = new MenuItem(\"Nuevo\");\n\n menu.getItems().add(menuItem1);\n menu.getItems().add(menuItem2);\n \n menuItem1.setOnAction(new EventHandler<ActionEvent>() { \n @Override\n public void handle(ActionEvent event) {\n gridPane.getChildren().clear();\n cargarListaGeneradores( 2, biblioteca.getBiblioteca());\n }\n });\n \n menuItem2.setOnAction(new EventHandler<ActionEvent>() { \n @Override\n public void handle(ActionEvent event) {\n gridPane.getChildren().clear();\n addUIControls() ;\n }\n });\n \n menuBar.getMenus().add(menu);\n }", "private void createMenu() {\n\t\tJMenuBar mb = new JMenuBar();\n\t\tsetJMenuBar(mb);\n\t\tmb.setVisible(true);\n\t\t\n\t\tJMenu menu = new JMenu(\"File\");\n\t\tmb.add(menu);\n\t\t//mb.getComponent();\n\t\tmenu.add(new JMenuItem(\"Exit\"));\n\t\t\n\t\t\n\t}", "void ajouterMenu(){\r\n\t\t\tJMenuBar menubar = new JMenuBar();\r\n\t \r\n\t JMenu file = new JMenu(\"File\");\r\n\t file.setMnemonic(KeyEvent.VK_F);\r\n\t \r\n\t JMenuItem eMenuItemNew = new JMenuItem(\"Nouvelle Partie\");\r\n\t eMenuItemNew.addActionListener(new ActionListener() {\r\n\t @Override\r\n\t public void actionPerformed(ActionEvent event) {\r\n\t \t\r\n\t \t\t\r\n\t \t\t\r\n\t \tnew NouvellePartie();\r\n\t }\r\n\t });\r\n\t file.add(eMenuItemNew);\r\n\t \r\n\t JMenuItem eMenuItemFermer = new JMenuItem(\"Fermer\");\r\n\t eMenuItemFermer.setMnemonic(KeyEvent.VK_E);\r\n\t eMenuItemFermer.setToolTipText(\"Fermer l'application\");\r\n\t \r\n\t eMenuItemFermer.addActionListener(new ActionListener() {\r\n\t @Override\r\n\t public void actionPerformed(ActionEvent event) {\r\n\t System.exit(0);\r\n\t }\r\n\t });\r\n\r\n\t file.add(eMenuItemFermer);\r\n\r\n\t menubar.add(file);\r\n\t \r\n\t JMenu aide = new JMenu(\"?\");\r\n\t JMenuItem eMenuItemRegle = new JMenuItem(\"Règles\");\r\n\t aide.add(eMenuItemRegle);\r\n\t menubar.add(aide);\r\n\r\n\t final String regles=\"<html><p>Le but est de récupérer les 4 objets Graal puis de retourner au château.</p>\"\t\r\n\t +\"<p>Après avoir récupéré un objet, chaque déplacement vous enlève autant de vie que le poids de l'objet</p></html>\";\r\n\t eMenuItemRegle.addActionListener(new ActionListener() {\r\n\t @Override\r\n\t public void actionPerformed(ActionEvent event) {\r\n\t \t//default title and icon\r\n\t \t\t\tJOptionPane.showMessageDialog(gameFrame,\r\n\t \t\t\t regles,\"Règles du jeu\", JOptionPane.INFORMATION_MESSAGE);\r\n\t \t\t\t\r\n\t }\r\n\t });\r\n\t \t\r\n\t\t\t\r\n\t this.setJMenuBar(menubar);\t\r\n\t\t}", "private void createMenu(){\n\n JMenuBar mbar = new JMenuBar();\n setJMenuBar(mbar);\n JMenu Opcje = new JMenu(\"Opcje\");\n mbar.add(Opcje);\n JMenuItem Ustawienia = new JMenuItem(\"Ustawienia\");\n /** Obsluga zdarzen wcisniecia przycisku ustawien w menu */\n Ustawienia.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n if(Justawienia==null)\n Justawienia =new JUstawienia();\n Justawienia.setVisible(true);\n if (controller.timer!=null)\n controller.timer.stop();\n }\n });\n Opcje.add(Ustawienia);\n Opcje.addSeparator();\n JMenuItem Info = new JMenuItem(\"Info\");\n /** Obsluga zdarzen wcisniecia przycisku info w menu */\n Info.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n controller.WyswietlInfo();\n }\n });\n Opcje.add(Info);\n }", "public JMenu addMenuItem (String texte, JMenu menu,String toolTipText) {\n JMenuItem item = new JMenuItem(texte);\n item.addActionListener(this);\n menu.add(item);\n menu.addSeparator();\n item.setToolTipText(toolTipText);\n return menu;\n }", "public void addNotify()\n/* */ {\n/* 116 */ synchronized (getTreeLock())\n/* */ {\n/* */ \n/* 119 */ if ((this.parent != null) && (!(this.parent instanceof Component))) {\n/* 120 */ super.addNotify();\n/* */ }\n/* */ else {\n/* 123 */ if (this.peer == null)\n/* 124 */ this.peer = Toolkit.getDefaultToolkit().createPopupMenu(this);\n/* 125 */ int i = getItemCount();\n/* 126 */ for (int j = 0; j < i; j++) {\n/* 127 */ MenuItem localMenuItem = getItem(j);\n/* 128 */ localMenuItem.parent = this;\n/* 129 */ localMenuItem.addNotify();\n/* */ }\n/* */ }\n/* */ }\n/* */ }", "private MPopupMenu createContectMenu() {\n\t\tMPopupMenu menu = MenuFactoryImpl.eINSTANCE.createPopupMenu();\n\t\tmenu.setElementId(EditorIdentities.EDITOR_POPUP_ID);\n\t\treturn menu;\n\t}", "protected void addMenuItems(JPopupMenu menu, ActionListener listener) {\r\n JMenuItem menuItem;\r\n menuItem = new JMenuItem(\"Store cluster\", GUIFactory.getIcon(\"new16.gif\"));\r\n menuItem.setActionCommand(STORE_CLUSTER_CMD);\r\n menuItem.addActionListener(listener);\r\n menu.add(menuItem);\r\n \r\n menu.addSeparator();\r\n \r\n menuItem = new JMenuItem(\"Launch new session\", GUIFactory.getIcon(\"launch_new_mav.gif\"));\r\n menuItem.setActionCommand(LAUNCH_NEW_SESSION_CMD);\r\n menuItem.addActionListener(listener);\r\n menu.add(menuItem); \r\n \r\n menu.addSeparator();\r\n \r\n menuItem = new JMenuItem(\"Delete public cluster\", GUIFactory.getIcon(\"delete16.gif\"));\r\n menuItem.setActionCommand(SET_DEF_COLOR_CMD);\r\n menuItem.addActionListener(listener);\r\n menu.add(menuItem);\r\n \r\n menu.addSeparator();\r\n \r\n menuItem = new JMenuItem(\"Save cluster...\", GUIFactory.getIcon(\"save16.gif\"));\r\n menuItem.setActionCommand(SAVE_CLUSTER_CMD);\r\n menuItem.addActionListener(listener);\r\n menu.add(menuItem);\r\n \r\n menuItem = new JMenuItem(\"Save all clusters...\", GUIFactory.getIcon(\"save16.gif\"));\r\n menuItem.setActionCommand(SAVE_ALL_CLUSTERS_CMD);\r\n menuItem.addActionListener(listener);\r\n menu.add(menuItem);\r\n \r\n menu.addSeparator();\r\n \r\n setOverallMaxMenuItem = new JMenuItem(\"Set Y to overall max...\", GUIFactory.getIcon(\"Y_range_expand.gif\"));\r\n setOverallMaxMenuItem.setActionCommand(SET_Y_TO_EXPERIMENT_MAX_CMD);\r\n setOverallMaxMenuItem.addActionListener(listener);\r\n setOverallMaxMenuItem.setEnabled(false);\r\n menu.add(setOverallMaxMenuItem);\r\n \r\n setClusterMaxMenuItem = new JMenuItem(\"Set Y to cluster max...\", GUIFactory.getIcon(\"Y_range_expand.gif\"));\r\n setClusterMaxMenuItem.setActionCommand(SET_Y_TO_CLUSTER_MAX_CMD);\r\n setClusterMaxMenuItem.addActionListener(listener);\r\n menu.add(setClusterMaxMenuItem);\r\n\r\n menuItem = new JMenuItem(\"Toggle reference line...\");\r\n menuItem.setActionCommand(TOGGLE_REF_LINE_CMD);\r\n menuItem.addActionListener(listener);\r\n menu.add(menuItem);\r\n \r\n menu.addSeparator();\r\n \r\n menuItem = new JMenuItem(\"Broadcast Matrix to Gaggle\", GUIFactory.getIcon(\"gaggle_icon_16.gif\"));\r\n menuItem.setActionCommand(BROADCAST_MATRIX_GAGGLE_CMD);\r\n menuItem.addActionListener(listener);\r\n menu.add(menuItem);\r\n \r\n menuItem = new JMenuItem(\"Broadcast Gene List to Gaggle\", GUIFactory.getIcon(\"gaggle_icon_16.gif\"));\r\n menuItem.setActionCommand(BROADCAST_NAMELIST_GAGGLE_CMD);\r\n menuItem.addActionListener(listener);\r\n menu.add(menuItem);\r\n \r\n menuItem = new JMenuItem(\"Broadcast Matrix to Genome Browser\", GUIFactory.getIcon(\"gaggle_icon_16.gif\"));\r\n menuItem.setActionCommand(BROADCAST_MATRIX_GENOME_BROWSER_CMD);\r\n menuItem.addActionListener(listener);\r\n menu.add(menuItem);\r\n \r\n }", "public void addSubMenus() {\n configMenu.remove(colorMI);\r\n configMenu.remove(sizeMI);\r\n\r\n // set color and size as JMenu\r\n colorMenu = new JMenu(\"Color\");\r\n sizeMenu = new JMenu(\"Size\");\r\n\r\n // set new JMenuItem\r\n redColor = new JMenuItem(\"Red\");\r\n greenColor = new JMenuItem(\"Green\");\r\n blueColor = new JMenuItem(\"Blue\");\r\n sixteenSize = new JMenuItem(\"16\");\r\n twentySize = new JMenuItem(\"20\");\r\n twentyfourSize = new JMenuItem(\"24\");\r\n\r\n // add menu item to menu\r\n colorMenu.add(redColor);\r\n colorMenu.add(greenColor);\r\n colorMenu.add(blueColor);\r\n sizeMenu.add(sixteenSize);\r\n sizeMenu.add(twentySize);\r\n sizeMenu.add(twentyfourSize);\r\n\r\n // add menu\r\n configMenu.add(colorMenu);\r\n configMenu.add(sizeMenu);\r\n }", "public void createMenu() {\n deleteMenuGroupError = false;\n createMenuGroupError = true;\n if (menu.createMenu()) {\n updateMenuError = false;\n deleteMenuError = false;\n createMenuError = true;\n } else {\n createMenuError = false;\n }\n }", "private void updateMenuItems()\r\n\t {\r\n\t\t setListAdapter(new ArrayAdapter<String>(this,\r\n\t\t android.R.layout.simple_list_item_1, home_menu));\r\n\t\t \t \r\n\t }", "public Menu createViewMenu();", "public JMenu addMenuItem (String texte, JMenu menu) {\n return addMenuItem (texte,menu,\"\");\n }", "protected void createContextMenu() {\n\t\t// TODO : XML Editor 에서 Query Editor 관련 Action 삭제~~\n\t\tMenuManager contextMenu = new MenuManager(\"#PopUp\"); //$NON-NLS-1$\n\t\tcontextMenu.add(new Separator(\"additions\")); //$NON-NLS-1$\n\t\tcontextMenu.setRemoveAllWhenShown(true);\n\t\tcontextMenu.addMenuListener(new NodeActionMenuListener());\n\t\tMenu menu = contextMenu.createContextMenu(getControl());\n\t\tgetControl().setMenu(menu);\n\t\t// makeActions();\n\t\t// hookSingleClickAction();\n\n\t}", "public RemoveProductFrame() {\n initComponents();\n this.setLocationRelativeTo(null);\n lblUsername.setText(\"Hello \"+UserProfile.getUserName());\n try{\n categories =CategoriesDao.getAllCategoryId();\n for(String catName : categories.keySet())\n jcProdCategory.addItem(catName);\n }\n catch(SQLException ex){\n ex.printStackTrace();\n JOptionPane.showMessageDialog(null, \"Exception in Db \",\"Exception\",JOptionPane.ERROR_MESSAGE);\n }\n }", "public void ajouterNouveauMenu(int idLigneprecedente, Menu nouveauMenu);", "public String chooseMenu() {\n String input = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get(\"menu_id\");\n setName(FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get(\"name\"));\n setType(FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get(\"type\"));\n setMenu_id(Integer.parseInt(input));\n return \"EditMenu\";\n\n }", "public menuAddStasiun() {\n initComponents();\n }", "public void createSwitchButtonPopupMenu() {\n\n\t\tremoveAll();\n\t\tadd(midiLearnMenuItem);\n\t\tadd(midiUnlearnMenuItem);\n\t}", "private JMenuItem getAjoutjMenuItem() {\r\n\t\tif (AjoutjMenuItem == null) {\r\n\t\t\tAjoutjMenuItem = new JMenuItem();\r\n\t\t\tAjoutjMenuItem.setText(\"Nouvelle Fiche\");\r\n\t\t\tAjoutjMenuItem.setFont(new Font(\"Dialog\", Font.PLAIN, 12));\r\n\t\t\tAjoutjMenuItem.setIcon(new ImageIcon(getClass().getResource(\"/nouveau_petit.png\")));\r\n\t\t\tAjoutjMenuItem.setActionCommand(\"Nouvelle Fiche\");\r\n\t\t\t\r\n\t\t\tAjoutjMenuItem.addActionListener(new java.awt.event.ActionListener() {\r\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\r\n\t\t\t\t\t//System.out.println(\"actionPerformed()\"); // TODO Auto-generated Event stub actionPerformed()\r\n\t\t\t\t\tif (e.getActionCommand().equals(\"Nouvelle Fiche\")) {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tHistorique.ecrire(\"Ouverture de : \"+e);\r\n\t\t\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tnew FEN_Ajout();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\t\r\n\t\t\t\t\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn AjoutjMenuItem;\r\n\t}", "@Override\n public void onClick(View v) {\n PopupMenu popup = new PopupMenu(MainActivity.this, frameLayoutCategories);\n\n for (int i = 0; i < categories.length; i++){\n popup.getMenu().add(0, i, 0, categories[i]);\n\n }\n\n //Inflating the Popup using xml file\n popup.getMenuInflater().inflate(R.menu.poupup_menu_categories, popup.getMenu());\n\n //registering popup with OnMenuItemClickListener\n popup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {\n public boolean onMenuItemClick(MenuItem item) {\n ((TextView)findViewById(R.id.textViewCategory)).setText(\"Category: \" + item.getTitle());\n item.setChecked(true);\n currentCategoryID = item.getItemId();\n multipleChoiceQuestion (categories[currentCategoryID], jeopardyMode);\n\n return true;\n }\n });\n\n\n\n popup.show();//showing popup menu\n }", "public void initMenu(){\n\t}", "private void newJMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_newJMenuItemActionPerformed\n // TODO add your handling code here:\n //Event handler for Adding a new employee \n try\n {\n //Create and display a new AddDialog\n boolean empExists = false;\n AddEmployee addEmployee = new AddEmployee(this, true);\n addEmployee.setVisible(true);\n Employee newEmployee = addEmployee.getEmployee();\n String employeeName = newEmployee.getName();\n empExists = findEmployee(employeeName) != null;\n if(newEmployee != null && empExists == false)\n { \n employees.add(newEmployee);\n displayEmployee();\n saveEmployee();\n }\n else\n {\n String first = employeeName + \" already exists.\";\n String second = \"No update was made.\";\n displayResults(first, second);\n employeeJList.setVisible(true);\n employeeJList.setSelectedIndex(0);\n }\n }\n catch(NullPointerException nullex)\n {\n JOptionPane.showMessageDialog(null, \"Employee not added\", \"Input error\",\n JOptionPane.WARNING_MESSAGE);\n employeeJList.setVisible(true);\n employeeJList.setSelectedIndex(0); \n }\n }", "private static JMenuBar createMenu() {\r\n JMenuBar mb = new JMenuBar();\r\n JMenu menu = new JMenu(\"File\");\r\n JMenuItem item = new JMenuItem(\"Save\");\r\n item.addActionListener((ActionEvent evt) -> {\r\n saveActionPerformed();\r\n });\r\n menu.add(item);\r\n mb.add(menu);\r\n\r\n menu = new JMenu(\"Help\");\r\n item = new JMenuItem(\"Show how-to\");\r\n item.addActionListener((ActionEvent evt) -> {\r\n showHelp();\r\n });\r\n menu.add(item);\r\n\r\n mb.add(menu);\r\n\r\n return mb;\r\n }", "@Override\n public boolean onChildClick(ExpandableListView expandableListView, View view, int i, int i1, long l) {\n\n AlertDialog.Builder builder=new AlertDialog.Builder(MainActivity.this);\n builder.setTitle(listDataHeader.get(i));\n builder.setMessage(listDataChild.get(listDataHeader.get(i)).get(i1));\n builder.setCancelable(true);\n builder.show();\n return false;\n }", "public int create(Esysmeudef menu);", "public void LlenarC(){\n for(int i=0;i< new GestionCategorias().getListCategoria().size();i++){\n catBox.addItem(new GestionCategorias().getListCategoria().get(i).getCat_nombre());\n \n }\n }", "public void generateMenu () \n {\n mCoffeeList = mbdb.getCoffeeMenu();\n for(int i =0;i<mCoffeeList.size();i++){\n coffeeTypeCombo.addItem(mCoffeeList.get(i).toString());\n }\n mWaffleList = mbdb.getWaffleMenu();\n for(int j =0;j<mWaffleList.size();j++){\n waffleTypeCombo.addItem(mWaffleList.get(j).toString());\n }\n }", "UmsMenu getItem(Long id);", "public StaffMenu() {\n initComponents();\n \n //Init with blank text \n ageLabel.setText(\"\");\n staffNumber.setText(\"\");\n genderLabel.setText(\"\");\n \n //Reading staff list \n ListOfStaff model_staff_list = new ListOfStaff(ListOfStaff.getStaff());\n staffList.setModel(model_staff_list); \n }", "private JMenuItem getPopupDeleteMenu() {\r\n\t\tif (popupDeleteMenu == null) {\r\n\t\t\tpopupDeleteMenu = new PopupDeleteMenu();\r\n\t\t}\r\n\t\treturn popupDeleteMenu;\r\n\t}", "public abstract Tree extractMenuBarItems (Object obj) throws SAFSException;", "@Override\r\n\tpublic boolean onMenuItemSelected(int featureId, MenuItem item) {\n\t\tswitch(item.getItemId()){\r\n\t\tcase 66:\r\n\t\t/*\tfinal EditText txtName=new EditText(context);\r\n\t\t\t\r\n\t\t\ttalkDialog=new AlertDialog.Builder(context)\r\n\t\t\t.setTitle(\"添加评论\")\r\n\t\t\t.setView(txtName)\r\n\t\t\t.setPositiveButton(\"确定\", new DialogInterface.OnClickListener() {\r\n\t\t\t\t\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\r\n\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\tString text=txtName.getText().toString();\r\n\t\t\t\t\tSimpleDateFormat dateformat=new SimpleDateFormat(\"YYYY/MM/dd HH:mm:ss\");\r\n\t\t\t\t\tDate curDate = new Date(System.currentTimeMillis());\r\n\t\t\t\t\tString time=dateformat.format(curDate);\r\n\t\t\t\t\tString musicname=mp3Info.getMp3Name();\r\n\t\t\t\t\tString nickname=AppConstant.user;\r\n\t\t\t\t\taddtalk at=new addtalk(nickname, text, musicname, time);\r\n\t\t\t\t\tat.execute();\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t\t.setNegativeButton(\"取消\", new DialogInterface.OnClickListener() {\r\n\t\t\t\t\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\r\n\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\ttalkDialog.cancel();\r\n\t\t\t\t}\r\n\t\t\t}).create();\r\n\t\t\ttalkDialog.show();*/\r\n\t\t\tAlertDialog.Builder builder=new AlertDialog.Builder(this);\r\n\t\t\tLayoutInflater inflater = this.getLayoutInflater();\r\n\t\t\tView view=inflater.inflate(R.layout.prompt_folder_name, null);\r\n\t\t\tview.findViewById(R.id.btnEnter).setOnClickListener(new OnClickListener() {\r\n\t\t\t\t\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\tEditText editText = (EditText) talkDialog.findViewById(R.id.txtFolder);\r\n\t\t\t\t\tString text=editText.getText().toString();\r\n\t\t\t\t\tSimpleDateFormat dateformat=new SimpleDateFormat(\"yyyy/MM/dd-HH:mm:ss\");\r\n\t\t\t\t\tDate curDate = new Date(System.currentTimeMillis());\r\n\t\t\t\t\tString time=dateformat.format(curDate);\r\n\t\t\t\t\tString musicname=mp3Info.getMp3Name();\r\n\t\t\t\t\tString nickname=AppConstant.user;\r\n\t\t\t\t\taddtalk at=new addtalk(nickname, text, musicname, time);\r\n\t\t\t\t\tat.execute();\r\n\t\t\t\t\ttalkDialog.dismiss();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tview.findViewById(R.id.btnCancel).setOnClickListener(new OnClickListener() {\r\n\t\t\t\t\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\ttalkDialog.cancel();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tbuilder.setTitle(\"添加评论\");\r\n\t\t\tbuilder.setView(view);\r\n\t\t\ttalkDialog=builder.create();\r\n\t\t\ttalkDialog.show();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn super.onMenuItemSelected(featureId, item);\r\n\t}", "private static MenuItem createAddToCurrentPlaylistMenuItem(SongManager model,\n MusicPlayerManager musicPlayerManager,\n TreeView<Item> tree) {\n MenuItem addToCurrentPlaylist = new MenuItem(ADD_TO_CURRENT_PLAYLIST);\n\n addToCurrentPlaylist.setOnAction((event) -> {\n List<TreeItem<Item>> treeItems = tree.getSelectionModel().getSelectedItems();\n for (TreeItem<Item> treeItem : treeItems) {\n Item item = treeItem.getValue();\n if (item instanceof Song) {\n Song song = (Song) item;\n Playlist selectedPlaylist = model.getM_selectedPlaylist();\n if (selectedPlaylist == null) {\n PromptUI.customPromptError(\"Error\", null, \"Please select a playlist!\");\n return;\n }\n model.addItemToPlaylist(song, selectedPlaylist);\n musicPlayerManager.notifyQueingObserver();\n }\n }\n });\n\n return addToCurrentPlaylist;\n }", "private static String getMenu() { // method name changes Get_menu to getMenu()\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\r\n\t\tsb.append(\"\\nLibrary Main Menu\\n\\n\")\r\n\t\t .append(\" M : add member\\n\")\r\n\t\t .append(\" LM : list members\\n\")\r\n\t\t .append(\"\\n\")\r\n\t\t .append(\" B : add book\\n\")\r\n\t\t .append(\" LB : list books\\n\")\r\n\t\t .append(\" FB : fix books\\n\")\r\n\t\t .append(\"\\n\")\r\n\t\t .append(\" L : take out a loan\\n\")\r\n\t\t .append(\" R : return a loan\\n\")\r\n\t\t .append(\" LL : list loans\\n\")\r\n\t\t .append(\"\\n\")\r\n\t\t .append(\" P : pay fine\\n\")\r\n\t\t .append(\"\\n\")\r\n\t\t .append(\" T : increment date\\n\")\r\n\t\t .append(\" Q : quit\\n\")\r\n\t\t .append(\"\\n\")\r\n\t\t .append(\"Choice : \");\r\n\t\t \r\n\t\treturn sb.toString();\r\n\t}", "private DefaultListModel<String> addItem(DefaultListModel<String> listModel) {\r\n\t\tString newItem = JOptionPane.showInputDialog(null, \"Name of new exercise:\");\r\n\t\tlistModel.addElement(newItem);\r\n\t\treturn listModel;\r\n\t}", "private void createMenuList() {\n SlideMenuItem menuItem0 = new SlideMenuItem(ContentFragment.CLOSE, R.drawable.ic_action_remove);\n list.add(menuItem0);\n SlideMenuItem menuItem = new SlideMenuItem(ContentFragment.GAMES, R.drawable.ic_action_gamepad);\n list.add(menuItem);\n\n SlideMenuItem menuItem3 = new SlideMenuItem(ContentFragment.FRIENDS, R.drawable.ic_action_person);\n list.add(menuItem3);\n SlideMenuItem menuItem4 = new SlideMenuItem(ContentFragment.SETTINGS, R.drawable.ic_action_settings);\n list.add(menuItem4);\n }", "private static MenuItem createAddToCurrentPlaylistMenuItem(SongManager model,\n MusicPlayerManager musicPlayerManager,\n List<Song> selectedSongs) {\n MenuItem addToCurrentPlaylist = new MenuItem(ADD_TO_CURRENT_PLAYLIST);\n\n addToCurrentPlaylist.setOnAction((event) -> {\n for (Song song : selectedSongs) {\n if (song != null) {\n Playlist selectedPlaylist = model.getM_selectedPlaylist();\n if (selectedPlaylist == null) {\n PromptUI.customPromptError(\"Error\", null, \"Please select a playlist!\");\n return;\n }\n model.addItemToPlaylist(song, selectedPlaylist);\n musicPlayerManager.notifyQueingObserver();\n }\n }\n });\n\n return addToCurrentPlaylist;\n }", "private void addMenuItems() {\n PopupMenu popup = new PopupMenu();\n MenuItem defaultItem = new MenuItem(\"Exit\");\n \n defaultItem.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n System.out.println(\"Exiting...\");\n System.exit(0);\n }\n });\n \n popup.add(defaultItem);\n \n this.trayicon.setPopupMenu(popup);\n }", "public JMTMenuBar createMenu() {\r\n \t\tJMTMenuBar menu = new JMTMenuBar(JMTImageLoader.getImageLoader());\r\n \t\t// File menu\r\n \t\tMenuAction action = new MenuAction(\"File\", new AbstractJmodelAction[] { newModel, openModel, saveModel, saveModelAs, closeModel, null, exit });\r\n \t\tmenu.addMenu(action);\r\n \r\n \t\t// Edit menu\r\n \t\taction = new MenuAction(\"Edit\", new AbstractJmodelAction[] {\r\n \t\t// editUndo, editRedo, null\r\n \t\t\t\tactionCut, actionCopy, actionPaste, actionDelete, null, takeScreenShot });\r\n \t\tmenu.addMenu(action);\r\n \r\n \t\t// Define menu\r\n \t\taction = new MenuAction(\"Define\",\r\n \t\t\t\tnew AbstractJmodelAction[] { editUserClasses, editMeasures, editSimParams, editPAParams, null, editDefaults });\r\n \t\tmenu.addMenu(action);\r\n \r\n \t\t// Solve menu\r\n \t\taction = new MenuAction(\"Solve\", new AbstractJmodelAction[] { simulate, pauseSimulation, stopSimulation, null, switchToExactSolver, null,\r\n \t\t\t\tshowResults });\r\n \t\tmenu.addMenu(action);\r\n \r\n \t\t// Help menu\r\n \t\taction = new MenuAction(\"Help\", new AbstractJmodelAction[] { openHelp, null, about });\r\n \t\tmenu.addMenu(action);\r\n \r\n \t\treturn menu;\r\n \t}", "public Menu_deleted_panel() {\n initComponents();\n MenuList();\n show_product();\n }", "@Override\r\n public void actionPerformed(ActionEvent e) {\n Menu_Empregados m1= new Menu_Empregados();\r\n \r\n }", "public void addNomesJMenu() {\n List<SaveModel> saveList = SaveDAO.retreveSaveName();\n for (SaveModel s : saveList) {\n savesRecetes.add(new JMenuItem(s.getSaveName()));\n }\n\n }", "private void createMenu(){\n \n menuBar = new JMenuBar();\n \n game = new JMenu(\"Rummy\");\n game.setMnemonic('R');\n \n newGame = new JMenuItem(\"New Game\");\n newGame.setMnemonic('N');\n newGame.addActionListener(menuListener);\n \n \n \n exit = new JMenuItem(\"Exit\");\n exit.setMnemonic('E');\n exit.addActionListener(menuListener); \n \n \n \n }", "public void createNewList(ActionEvent actionEvent) {\n // ideally again, this would have its own window\n // give it a title, and optionally populate it with some items\n }", "public void showPopup(int selectedObjectID) {\n PopupMenu popup = new PopupMenu(mContext, mFavButton);\n //Inflating the Popup using xml file\n // popup.getMenuInflater()\n // .inflate(R.menu.favourites, popup.getMenu());\n\n final int selectedObjectID_ = selectedObjectID;\n\n folderIds.clear();\n\n Cursor countCursor = DictHelper.getVocabulary().getAllFoldersCount();\n\n if (countCursor.getCount() == 0) {\n Toast.makeText(mContext, mContext.getString(R.string.no_folders), Toast.LENGTH_SHORT).show();\n }\n\n if (countCursor.getCount() > 0) {\n\n boolean simpleMode = countCursor.getInt(0) == 1;\n\n Cursor cursor = DictHelper.getVocabulary().getAllFolders(selectedObjectID, mType);\n\n if (cursor != null && cursor.getCount() > 0) {\n\n int idIndex = cursor.getColumnIndex(\"ID_VocabList\");\n int idVocabIndex = cursor.getColumnIndex(\"IDVocabList\");\n int nameIndex = cursor.getColumnIndex(\"Name\");\n int parentNameIndex = cursor.getColumnIndex(\"ParentName\");\n int stateIndex = cursor.getColumnIndex(\"CurrentState\");\n\n do {\n\n Integer state = cursor.getInt(stateIndex);\n boolean checked = state > 0;\n Integer index = cursor.getInt(idIndex);\n\n if (simpleMode) {\n\n addRemoveEntry(!checked, index, selectedObjectID);\n } else {\n String parentName = cursor.getString(parentNameIndex);\n MenuItem item = null;\n\n //if (parentName == null || parentName.isEmpty()) {\n item = popup.getMenu().add(cursor.getString(nameIndex));\n //} else {\n // item = popup.getMenu().add(parentName + \" / \" + cursor.getString(nameIndex));\n //}\n\n item.setCheckable(true);\n item.setChecked(checked);\n\n setMenuItemTag(item, index);\n }\n } while (cursor.moveToNext());\n\n }\n\n if (cursor != null) {\n cursor.close();\n }\n\n if (!simpleMode) {\n popup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener()\n\n {\n public boolean onMenuItemClick(MenuItem item) {\n\n int id = getMenuItemTag(item);\n\n if (id > 0) {\n addRemoveEntry(!item.isChecked(), id, selectedObjectID_);\n }\n\n return true;\n }\n }\n\n );\n\n popup.show(); //showing popup menu\n }\n }\n\n if (countCursor != null) {\n countCursor.close();\n }\n }", "@Test\n public void testMenuFactoryCreate() {\n Menu menuController = menuFactory.getMenu();\n menuController.addMenuItem(MENU_NAME, MENU_PRICE, MENU_TYPE, MENU_DESCRIPTION);\n assertEquals(1, menuController.getMenu().size());\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_new_message, menu);\n return true;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n\n if (id == R.id.action_add) {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Add Item\");\n\n\n\n\n final EditText input = new EditText(this);\n builder.setView(input);\n builder.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n masterItems.add(preferredCase(input.getText().toString()));\n Collections.sort(masterItems);\n storeArrayVal(masterItems, getApplicationContext());\n lv.setAdapter(adapter);\n }\n });\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n builder.show();\n return true;\n\n\n }\n\n\n if (id == R.id.action_clear) {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Clear Entire List\");\n builder.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n masterItems.clear();\n lv.setAdapter(adapter);\n }\n });\n builder.setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n builder.show();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "public void createNewItem(ActionEvent actionEvent) {\n // we will create a new item instance here (ideally we would use another window for this)\n // and then we will simply addItem() to the currently selected list\n }", "public Menu createToolsMenu();", "@Override\r\n public void actionPerformed(ActionEvent e) {\n Menu_Contabilidade m3= new Menu_Contabilidade();\r\n \r\n }", "public MenuItem(){\n\n }", "private JMenuBar createbar(){\n\t\tJMenuBar menuBar = new JMenuBar();\n\n\t\t//Add a JMenu\n\t\tJMenu c = new JMenu(\"Create\");\n\t\tJMenu m = new JMenu(\"Manipulate\"); \n\t\tJMenu o = new JMenu(\"Other\");\n\n\t\tmenuBar.add(c);\n\t\tmenuBar.add(m);\n\t\tmenuBar.add(o);\n\n\t\t//Create menu\n\t\tJMenuItem cPyramid = new JMenuItem(\"Pyramid\");\n\t\tJMenuItem cSquare = new JMenuItem(\"Square\");\n\t\tJMenuItem cStar = new JMenuItem(\"Star\");\n\t\tJMenuItem cSphere = new JMenuItem(\"Sphere\");\n\t\tJMenuItem cCube = new JMenuItem(\"Cube\");\n\t\tJMenuItem cLight = new JMenuItem(\"Light\");\n\n\t\tc.add(cPyramid);\n\t\tc.add(cSquare);\n\t\tc.add(cStar);\n\t\tc.add(cSphere);\n\t\tc.add(cCube);\n\t\tc.add(cLight);\n\t\t\n\n\t\t//Manipulate menu\n\t\tJMenuItem mModify = new JMenuItem(\"Modify\");\n\t\tJMenuItem mDelete = new JMenuItem(\"Delete\");\n\n\t\tm.add(mModify);\n\t\tm.add(mDelete);\n\n\t\tJMenuItem oDeleteAll = new JMenuItem(\"Delete All (lights remain but will be overwritten)\"); \n\t\tJMenuItem oPrint = new JMenuItem(\"Print Structure\");\n\n\t\to.add(oPrint);\n\t\to.add(oDeleteAll);\n\n\n\t\tcPyramid.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tfigure_id+=1;\n\t\t\t\tCustomCreateDialog cdialog = new CustomCreateDialog(frame, true, Fig_type.Pyramid, figure_id);\n\t\t\t\tif (cdialog.getAnswer()!=null)\n\t\t\t\t\tdraw.figurelist.add(cdialog.getAnswer());\n\t\t\t}\n\n\t\t});\n\n\t\tcSquare.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tfigure_id+=1;\n\t\t\t\tCustomCreateDialog cdialog = new CustomCreateDialog(frame, true, Fig_type.Square, figure_id);\n\t\t\t\tif (cdialog.getAnswer()!=null)\n\t\t\t\t\tdraw.figurelist.add(cdialog.getAnswer());\n\t\t\t}\n\t\t});\n\n\t\tcStar.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tfigure_id+=1;\n\t\t\t\tCustomCreateDialog cdialog = new CustomCreateDialog(frame, true, Fig_type.Star, figure_id);\n\t\t\t\tif (cdialog.getAnswer()!=null)\n\t\t\t\t\tdraw.figurelist.add(cdialog.getAnswer());\n\t\t\t}\n\t\t});\n\n\t\tcSphere.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tfigure_id+=1;\n\t\t\t\tCustomCreateDialog cdialog = new CustomCreateDialog(frame, true, Fig_type.Sphere, figure_id);\n\t\t\t\tif (cdialog.getAnswer()!=null)\n\t\t\t\t\tdraw.figurelist.add(cdialog.getAnswer());\n\t\t\t}\n\t\t});\n\t\t\n\t\tcCube.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tfigure_id+=1;\n\t\t\t\tCustomCreateDialog cdialog = new CustomCreateDialog(frame, true, Fig_type.Cube, figure_id);\n\t\t\t\tif (cdialog.getAnswer()!=null)\n\t\t\t\t\tdraw.figurelist.add(cdialog.getAnswer());\n\t\t\t}\n\t\t});\n\n\t\tcLight.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tfigure_id+=1;\n\t\t\t\tCustomCreateDialog cdialog = new CustomCreateDialog(frame, true, Fig_type.Light, figure_id);\n\t\t\t\tif (cdialog.getAnswer()!=null)\n\t\t\t\t\tdraw.figurelist.add(cdialog.getAnswer());\n\t\t\t}\n\t\t});\n\n\t\tmModify.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tfor (Figure_deployment_type fig: draw.figurelist) {\n\t\t\t\t\tif (fig.getId()==draw.picked_figure){\n\t\t\t\t\t\tCustomCreateDialog cdialog = new CustomCreateDialog(frame, true, fig.type, draw.picked_figure);\n\t\t\t\t\t\tif (cdialog.getAnswer()!=null){\n\t\t\t\t\t\t\tfig.modify(cdialog.getModify());\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\n\t\tmDelete.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tint n =-1;\n\t\t\t\tfor (int i = 0; i < draw.figurelist.size(); i++) {\n\t\t\t\t\tif(draw.figurelist.get(i).getId()==draw.picked_figure)\n\t\t\t\t\t\tn=i;\n\t\t\t\t}\n\t\t\t\tif (n!=-1)\n\t\t\t\tdraw.figurelist.remove(n);\n\t\t\t}\n\t\t});\n\n\t\toDeleteAll.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tdraw.figurelist.clear();\n\t\t\t}\n\t\t});\n\n\t\toPrint.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"\\nArrayList<Figure_deployment_type> : {\");\n\t\t\t\tfor (Figure_deployment_type fig : draw.figurelist) {\n\t\t\t\t\tSystem.out.print(\"[ \");\n\t\t\t\t\tSystem.out.print(fig.toString());\n\t\t\t\t\tSystem.out.println(\" ]\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"}\");\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\treturn menuBar;\n\t}", "@FXML\n public void IngredAddBtnClicked(){\n subMenuDisplay(IngredientsSubMenu);\n IngredientsAddPane.toFront();\n MenuPane.toFront();\n }", "public void generateMenu(){\n menuBar = new JMenuBar();\n\n JMenu file = new JMenu(\"Datei\");\n JMenu tools = new JMenu(\"Werkzeuge\");\n JMenu help = new JMenu(\"Hilfe\");\n\n JMenuItem open = new JMenuItem(\"Öffnen \");\n JMenuItem save = new JMenuItem(\"Speichern \");\n JMenuItem exit = new JMenuItem(\"Beenden \");\n JMenuItem preferences = new JMenuItem(\"Einstellungen \");\n JMenuItem about = new JMenuItem(\"Über das Projekt \");\n\n\n file.add(open);\n file.add(save);\n file.addSeparator();\n file.add(exit);\n tools.add(preferences);\n help.add(about);\n\n menuBar.add(file);\n menuBar.add(tools);\n menuBar.add(help);\n }", "private JMenuItem getMailjMenuItem() {\r\n\t\tif (MailjMenuItem == null) {\r\n\t\t\tMailjMenuItem = new JMenuItem();\r\n\t\t\tMailjMenuItem.setText(\" Envoyer un mail au support\");\r\n\t\t\tMailjMenuItem.setActionCommand(\"Envoyer un mail au support\");\r\n\t\t\tMailjMenuItem.setIcon(new ImageIcon(getClass().getResource(\"/mail_envoyer_petit.png\")));\r\n\t\t\tMailjMenuItem.setFont(new Font(\"Dialog\", Font.PLAIN, 12));\r\n\t\t\tMailjMenuItem.addActionListener(new java.awt.event.ActionListener() {\r\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\r\n\t\t\t\t\t//System.out.println(\"actionPerformed()\"); // TODO Auto-generated Event stub actionPerformed()\r\n\t\t\t\t\tif (e.getActionCommand().equals(\"Envoyer un mail au support\")) {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tHistorique.ecrire(\"Ouverture de : \"+e);\r\n\t\t\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tnew FEN_SendMail();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn MailjMenuItem;\r\n\t}", "public static void setUpMenuItems( JMenu Menuu , JDataTree tree , \n IObserver IOBs ){\n \n int nSavedFiles = SharedData.getintProperty( \"NSavedFiles\",\"\"+NSavedFiles);\n if(nSavedFiles <=0)\n return;\n Preferences pref = null;\n try{\n pref = Preferences.userNodeForPackage( \n Class.forName( \"DataSetTools.retriever.Retriever\" ) );\n }catch( Exception s1 ){\n JOptionPane.showMessageDialog( null , \n \"No Preferences \" + s1 );\n return;\n }\n \n \n \n boolean shortMange = SharedData.getbooleanProperty(\"ShortSavedFileName\",\"false\");\n if( nSavedFiles > 0)\n Menuu.addSeparator();\n \n for( int i = 0 ; i < nSavedFiles ; i++ ){\n\n String filname = pref.get( \"File\" + i , NO_SUCH_FILE );\n \n if( (filname != NO_SUCH_FILE) &&( (new File(filname)).exists()) ){\n\n JMenuItem jmi = new JMenuItem( Mangle( filname,shortMange ) );\n Menuu.add( jmi );\n MyActionListener actList =new MyActionListener( tree , filname , \n IOBs ) ;\n jmi.addActionListener(actList );\n }\n }\n \n }", "private void initializeMenu(){\n\t\troot = new TreeField(new TreeFieldCallback() {\n\t\t\t\n\t\t\tpublic void drawTreeItem(TreeField treeField, Graphics graphics, int node,\n\t\t\t\t\tint y, int width, int indent) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tString text = treeField.getCookie(node).toString(); \n\t graphics.drawText(text, indent, y);\n\t\t\t}\n\t\t}, Field.FOCUSABLE){\n\t\t\tprotected boolean navigationClick(int status, int time) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif(!isAnimating()){\n\t\t\t\t\tMenuModel menu = (MenuModel) root.getCookie(root.getCurrentNode());\n\t\t\t\t\tif(menu.isChild()){\n\t\t\t\t\t\tonMenuSelected(menu);\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\t\t\t\n\t\t\t\treturn super.navigationClick(status, time);\n\t\t\t}\n\t\t\t\n\t\t\tprotected boolean keyDown(int keycode, int time) {\n\t\t\t\tif(!isAnimating()){\n\t\t\t\t\tif(keycode == 655360){\n\t\t\t\t\t\tMenuModel menu = (MenuModel) root.getCookie(root.getCurrentNode());\n\t\t\t\t\t\tif(menu.isChild()){\n\t\t\t\t\t\t\tonMenuSelected(menu);\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\t\treturn super.keyDown(keycode, time);\n\t\t\t}\n\t\t};\n\t\troot.setDefaultExpanded(false);\n\n\t\t//home\n\t\tMenuModel home = new MenuModel(\"Home\", MenuModel.HOME, true);\n\t\thome.setId(root.addChildNode(0, home));\n\t\t\n\t\tint lastRootChildId = home.getId();\n\t\t\n\t\t//menu tree\n\t\tif(Singleton.getInstance().getMenuTree() != null){\n\t\t\tJSONArray menuTree = Singleton.getInstance().getMenuTree();\n\t\t\tif(menuTree.length() > 0){\n\t\t\t\tfor (int i = 0; i < menuTree.length(); i++) {\n\t\t\t\t\tif(!menuTree.isNull(i)){\n\t\t\t\t\t\tJSONObject node;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tnode = menuTree.getJSONObject(i);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//root menu tree (pria, wanita)\n\t\t\t\t\t\t\tboolean isChild = false;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString name = node.getString(\"name\");\n\t\t\t\t\t\t\tString url = node.getString(\"url\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tMenuModel treeNode = new MenuModel(\n\t\t\t\t\t\t\t\t\tname, url, MenuModel.JSON_TREE_NODE, isChild);\n\t\t\t\t\t\t\ttreeNode.setId(root.addSiblingNode(lastRootChildId, treeNode));\n\t\t\t\t\t\t\tlastRootChildId = treeNode.getId();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tif(!node.isNull(\"child\")){\n\t\t\t\t\t\t\t\t\tJSONArray childNodes = node.getJSONArray(\"child\");\n\t\t\t\t\t\t\t\t\tif(childNodes.length() > 0){\n\t\t\t\t\t\t\t\t\t\tfor (int j = childNodes.length() - 1; j >= 0; j--) {\n\t\t\t\t\t\t\t\t\t\t\tif(!childNodes.isNull(j)){\n\t\t\t\t\t\t\t\t\t\t\t\taddChildNode(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttreeNode.getId(), \n\t\t\t\t\t\t\t\t\t\t\t\t\t\tchildNodes.getJSONObject(j));\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\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t// TODO: handle exception\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (JSONException 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}\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t}\n\t\t\n\t\tif(Singleton.getInstance().getIsLogin()){\n\t\t\t//akun saya\n\t\t\tMenuModel myAccount = new MenuModel(\"Akun Saya\", MenuModel.MY_ACCOUNT, false);\n\t\t\tmyAccount.setId(root.addSiblingNode(lastRootChildId, myAccount));\n\t\t\t\n\t\t\tlastRootChildId = myAccount.getId();\n\t\t\t\n\t\t\t//akun saya->detail akun\n\t\t\tMenuModel profile = new MenuModel(\"Detail Akun\", MenuModel.PROFILE, true);\n\t\t\tprofile.setId(root.addChildNode(myAccount.getId(), profile));\n\t\t\t\n\t\t\t//akun saya->daftar pesanan\n\t\t\tMenuModel myOrderList = new MenuModel(\n\t\t\t\t\t\"Daftar Pesanan\", MenuModel.MY_ORDER, true);\n\t\t\tmyOrderList.setId(root.addSiblingNode(profile.getId(), myOrderList));\t\t\n\t\t\t\n\t\t\t//logout\n\t\t\tMenuModel logout = new MenuModel(\"Logout\", MenuModel.LOGOUT, true);\n\t\t\tlogout.setId(root.addSiblingNode(lastRootChildId, logout));\n\t\t\tlastRootChildId = logout.getId();\n\t\t} else{\n\t\t\t//login\n\t\t\tMenuModel login = new MenuModel(\"Login\", MenuModel.LOGIN, false);\n\t\t\tlogin.setId(root.addSiblingNode(lastRootChildId, login));\n\t\t\t\n\t\t\tlastRootChildId = login.getId();\n\t\t\t\n\t\t\t//login->login\n\t\t\tMenuModel loginMenu = new MenuModel(\"Login\", MenuModel.LOGIN_MENU, true);\n\t\t\tloginMenu.setId(root.addChildNode(login.getId(), loginMenu));\n\t\t\t\n\t\t\t//login->register\n\t\t\tMenuModel register = new MenuModel(\"Register\", MenuModel.REGISTER, true);\n\t\t\tregister.setId(root.addSiblingNode(loginMenu.getId(), register));\n\t\t}\n\t\t\n\t\tMenuUserModel menu = Singleton.getInstance().getMenu();\n\t\tif(menu != null){\n\t\t\t//sales\n\t\t\tif(menu.getMenuSalesOrder() || menu.isMenuSalesRetur()){\n\t\t\t\tMenuModel sales = new MenuModel(\"Sales\", MenuModel.SALES, false);\n\t\t\t\tsales.setId(root.addSiblingNode(lastRootChildId, sales));\n\t\t\t\tlastRootChildId = sales.getId();\n\t\t\t\t\n\t\t\t\t//sales retur\n\t\t\t\tif(menu.isMenuSalesRetur()){\n\t\t\t\t\tMenuModel salesRetur = new MenuModel(\n\t\t\t\t\t\t\t\"Sales Retur\", MenuModel.SALES_RETUR, true);\n\t\t\t\t\tsalesRetur.setId(root.addChildNode(sales.getId(), salesRetur));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//sales order\n\t\t\t\tif(menu.getMenuSalesOrder()){\n\t\t\t\t\tMenuModel salesOrder = new MenuModel(\n\t\t\t\t\t\t\t\"Sales Order\", MenuModel.SALES_ORDER, true);\n\t\t\t\t\tsalesOrder.setId(root.addChildNode(sales.getId(), salesOrder));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//cms product\n\t\t\tif(menu.getMenuCmsProduct() || menu.getMenuCmsProductGrosir()){\n\t\t\t\tMenuModel cmsProduct = new MenuModel(\n\t\t\t\t\t\t\"Produk\", MenuModel.CMS_PRODUCT, false);\n\t\t\t\tcmsProduct.setId(\n\t\t\t\t\t\troot.addSiblingNode(lastRootChildId, cmsProduct));\n\t\t\t\tlastRootChildId = cmsProduct.getId();\n\t\t\t\t\n\t\t\t\t//product retail\n\t\t\t\tif(menu.getMenuCmsProduct()){\n\t\t\t\t\tMenuModel productRetail = new MenuModel(\n\t\t\t\t\t\t\t\"Produk Retail\", MenuModel.CMS_PRODUCT_RETAIL, true);\n\t\t\t\t\tproductRetail.setId(\n\t\t\t\t\t\t\troot.addChildNode(cmsProduct.getId(), productRetail));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//product grosir\n\t\t\t\tif(menu.getMenuCmsProductGrosir()){\n\t\t\t\t\tMenuModel productGrosir = new MenuModel(\n\t\t\t\t\t\t\t\"Produk Grosir\", MenuModel.CMS_PRODUCT_GROSIR, true);\n\t\t\t\t\tproductGrosir.setId(\n\t\t\t\t\t\t\troot.addChildNode(cmsProduct.getId(), productGrosir));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t\t//service\n\t\tMenuModel service = new MenuModel(\"Layanan\", MenuModel.SERVICE, false);\n\t\tservice.setId(root.addSiblingNode(lastRootChildId, service));\n\t\tlastRootChildId = service.getId();\n\t\tVector serviceList = Singleton.getInstance().getServices();\n\t\ttry {\n\t\t\tfor (int i = serviceList.size() -1; i >= 0; i--) {\n\t\t\t\tMenuFooterModel footer = (MenuFooterModel) serviceList.elementAt(i);\n\t\t\t\tMenuModel serviceMenu = new MenuModel(\n\t\t\t\t\t\tfooter.getCatTitle(), footer.getCatTautan(),\n\t\t\t\t\t\tMenuModel.SERVICE_MENU, true);\n\t\t\t\tserviceMenu.setId(root.addChildNode(service.getId(), serviceMenu));\t\t\t\t\n\t\t\t}\n\t\t} catch (Exception e) {\n\n\t\t}\n\t\t\n\t\t//about\n\t\tMenuModel about = new MenuModel(\"Tentang Y2\", MenuModel.ABOUT, false);\n\t\tabout.setId(root.addSiblingNode(service.getId(), about));\n\t\tlastRootChildId = service.getId();\n\t\tVector aboutList = Singleton.getInstance().getAbouts();\n\t\ttry {\n\t\t\tfor (int i = aboutList.size() -1; i >= 0; i--) {\n\t\t\t\tMenuFooterModel footer = (MenuFooterModel) aboutList.elementAt(i);\n\t\t\t\tMenuModel aboutMenu = new MenuModel(\n\t\t\t\t\t\tfooter.getCatTitle(), footer.getCatTautan(), \n\t\t\t\t\t\tMenuModel.SERVICE_MENU, true);\n\t\t\t\taboutMenu.setId(root.addChildNode(service.getId(), aboutMenu));\t\t\t\t\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t\t\n\t\tcontainer.add(root);\n\t}", "private JMenuItem getAboutMenuItem() {\n\t\tif (aboutMenuItem == null) {\n\t\t\taboutMenuItem = new JMenuItem();\n\t\t\taboutMenuItem.setText(\"O aplikácii SluchAnal\");\n\t\t\taboutMenuItem.addActionListener(new ActionListener() {\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tJDialog aboutDialog = getAboutDialog();\n\t\t\t\t\taboutDialog.pack();\n\t\t\t\t\tPoint loc = getHlavneOkno().getLocation();\n\t\t\t\t\tloc.translate(20, 20);\n\t\t\t\t\taboutDialog.setLocation(loc);\n\t\t\t\t\taboutDialog.setVisible(true);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn aboutMenuItem;\n\t}", "private void openAddRoutePopupMenu() {\r\n PopupMenu menu = new PopupMenu(this, findViewById(R.id.route_list));\r\n for (Sight s : this.manager.getAllSights()){\r\n menu.getMenu().add(Menu.NONE, s.getId(), Menu.NONE, s.toString());\r\n }\r\n menu.getMenu().add(Menu.NONE, R.id.configure_sight_list_cancel_context_menu, Menu.NONE, getApplicationContext().getString(R.string.cancel));\r\n menu.setOnMenuItemClickListener(this);\r\n menu.show();\r\n }", "private static MenuItem createAddToPlaylistMenuItem(SongManager model,\n MusicPlayerManager musicPlayerManager,\n TreeView<Item> tree) {\n MenuItem addToPlaylist = new MenuItem(ADD_TO_PLAYLIST);\n\n addToPlaylist.setOnAction((event) -> {\n List<Playlist> playlists = model.getM_playlists();\n List<TreeItem<Item>> treeItems = tree.getSelectionModel().getSelectedItems();\n Item first = treeItems.get(0).getValue();\n Song firstSong = (Song) first;\n Playlist selectedPlaylist = PromptUI.addSongToPlaylist(playlists, firstSong);\n for (TreeItem<Item> treeItem : treeItems) {\n Item item = treeItem.getValue();\n if (item instanceof Song) {\n Song song = (Song) item;\n if (selectedPlaylist == null) {\n PromptUI.customPromptError(\"Error\", null, \"Please select a playlist!\");\n return;\n }\n model.addItemToPlaylist(song, selectedPlaylist);\n musicPlayerManager.notifyQueingObserver();\n }\n }\n });\n\n return addToPlaylist;\n }", "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}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.action_add) {\n TheList();\n return true;\n }\n\n if (id == R.id.action_save) {\n savedList();\n return true;\n }\n\n if (id == R.id.action_load) {\n getList();\n return true;\n }\n\n if (id == R.id.action_clear) {\n messageList.clear();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public void onCreateContextMenu(ContextMenu menu, View v, ContextMenu.ContextMenuInfo menuInfo) {\n menu.add(0, getAdapterPosition(),0,\"DELETE\");\n // Log.d(TAG, \"onCreateContextMenu: \" + );\n }", "public List getMenu() {\n createMenuGroupError = false;\n menulist = new Menus_List();\n return menulist.getMenu();\n }", "private void jMenuItemTemasAyudaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemTemasAyudaActionPerformed\n JOptionPane.showMessageDialog(this, \"Leer informe\",\n this.getTitle(), JOptionPane.INFORMATION_MESSAGE);\n}", "public Menu(String name) {\n// categoryIndex=categoryIterator;\n// categoryIterator++;\n categoryMenu = new ArrayList<>();\n this.name = name;\n }", "public static void WriteMcDoMenu(ArrayList<MenuItem> List){\r\n \r\n String MenuList=\"=================McDonalds' Menu=================\\n\"\r\n + \"Item Number \\t\\t Item \\t\\t\\t Item Price\";\r\n \r\n for (MenuItem item : List) {\r\n \r\n String itemName = item.getItemName();\r\n String itemPrice = Double.toString(item.getItemPrice());\r\n String itemNumber = Integer.toString(item.getItemNumber());\r\n \r\n MenuList = MenuList.concat(\"\\n\"+itemNumber+\"\\t\\t\\t\"+itemName+\"\\t\\t\\tP\"+itemPrice+\"\");\r\n \r\n\t\t}\r\n System.out.println(MenuList);\r\n System.out.println(\"Number of Items on Menu: \"+ List.size());\r\n \r\n if(List.isEmpty()){\r\n System.out.println(\"Menu :No Menu Available\");\r\n }\r\n \r\n }", "private static MenuItem createAddToPlaylistMenuItem(SongManager model,\n MusicPlayerManager musicPlayerManager,\n List<Song> selectedSongs) {\n MenuItem addToPlaylist = new MenuItem(ADD_TO_PLAYLIST);\n\n addToPlaylist.setOnAction((event) -> {\n List<Playlist> playlists = model.getM_playlists();\n Playlist selectedPlaylist = PromptUI.addSongToPlaylist(playlists, selectedSongs.get(0));\n for (Song song : selectedSongs) {\n if (song != null) {\n if (selectedPlaylist == null) {\n PromptUI.customPromptError(\"Error\", null, \"Please select a playlist!\");\n return;\n }\n model.addItemToPlaylist(song, selectedPlaylist);\n musicPlayerManager.notifyQueingObserver();\n }\n }\n });\n\n return addToPlaylist;\n }", "public void onSelectFunction$mnu(Event event) {\r\n\r\n\t\tOperacion operacion = (Operacion) event.getData();\r\n\t\t\r\n\t\t\r\n\t\tif (operacion != null) {\r\n\t\t\t\r\n//\t\t\tObject actual = page.getVariable(\"actual\");\r\n\t\t\t\r\n\t\t\tObject actual = getPage().getAttribute(\"actual\");\r\n\t\t\t\r\n\t\t\tGenericList list = (GenericList)self;\r\n\t\t\t\r\n\t\t\tif (actual != null) {\r\n\t\t\t\t\r\n\t\t\t\talert(list.getDialog());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\r\n\t}", "private MenuManager createEditMenu() {\n\t\tMenuManager menu = new MenuManager(\"&Edition\", Messages.getString(\"IU.Strings.40\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tmenu.add(new GroupMarker(Messages.getString(\"IU.Strings.41\"))); //$NON-NLS-1$\n\n\t\tmenu.add(getAction(ActionFactory.UNDO.getId()));\n\t\tmenu.add(getAction(ActionFactory.REDO.getId()));;\n\n\t\tmenu.add(new GroupMarker(IWorkbenchActionConstants.UNDO_EXT));\n\t\tmenu.add(new Separator());\n\t\tmenu.add(getAction(ActionFactory.CUT.getId()));\n\t\tmenu.add(getAction(ActionFactory.COPY.getId()));\n\t\tmenu.add(getAction(ActionFactory.PASTE.getId()));\n\t\tmenu.add(new GroupMarker(IWorkbenchActionConstants.CUT_EXT));\n\t\tmenu.add(new Separator());\n\t\tmenu.add(getAction(ActionFactory.DELETE.getId()));\n\t\tmenu.add(getAction(ActionFactory.SELECT_ALL.getId()));\n\t\tmenu.add(getAction(ActionFactory.FIND.getId()));\n\t\tmenu.add(new Separator());\n\t\tmenu.add(getAction(ActionFactory.PREFERENCES.getId()));\n\t\treturn menu;\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tPopupMenu popup = new PopupMenu(context, v);\n\t\t\t\tMenuInflater inflater = popup.getMenuInflater();\n\t\t\t\tMenu menu = popup.getMenu();\n\n\t\t\t\tinflater.inflate(R.menu.popupmenu, menu);\n\t\t\t\t// popup.inflate(R.menu.popupmenutestmenu);\n\t\t\t\tpopup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic boolean onMenuItemClick(MenuItem item) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tswitch (item.getItemId()) {\n\t\t\t\t\t\tcase R.id.popup_reInfo:\n\t\t\t\t\t\t\tmainAct.ResetInfo(position);\n\t\t\t\t\t\t\tmainAct.UpdateList();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase R.id.popup_upload:\n\t\t\t\t\t\t\tmainAct.addImage(position);\n\t\t\t\t\t\t\tmainAct.UpdateList();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase R.id.popup_del:\n\t\t\t\t\t\t\tmainAct.delete(position);\n\t\t\t\t\t\t\tmainAct.UpdateList();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tpopup.show();\n\t\t\t}", "private void createMenus() {\r\n\t\t// File menu\r\n\t\tmenuFile = new JMenu(Constants.C_FILE_MENU_TITLE);\r\n\t\tmenuBar.add(menuFile);\r\n\t\t\r\n\t\tmenuItemExit = new JMenuItem(Constants.C_FILE_ITEM_EXIT_TITLE);\r\n\t\tmenuItemExit.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tactionOnClicExit();\t\t// Action triggered when the Exit item is clicked.\r\n\t\t\t}\r\n\t\t});\r\n\t\tmenuFile.add(menuItemExit);\r\n\t\t\r\n\t\t// Help menu\r\n\t\tmenuHelp = new JMenu(Constants.C_HELP_MENU_TITLE);\r\n\t\tmenuBar.add(menuHelp);\r\n\t\t\r\n\t\tmenuItemHelp = new JMenuItem(Constants.C_HELP_ITEM_HELP_TITLE);\r\n\t\tmenuItemHelp.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tactionOnClicHelp();\r\n\t\t\t}\r\n\t\t});\r\n\t\tmenuHelp.add(menuItemHelp);\r\n\t\t\r\n\t\tmenuItemAbout = new JMenuItem(Constants.C_HELP_ITEM_ABOUT_TITLE);\r\n\t\tmenuItemAbout.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tactionOnClicAbout();\r\n\t\t\t}\r\n\t\t});\r\n\t\tmenuHelp.add(menuItemAbout);\r\n\t\t\r\n\t\tmenuItemReferences = new JMenuItem(Constants.C_HELP_ITEM_REFERENCES_TITLE);\r\n\t\tmenuItemReferences.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tactionOnClicReferences();\r\n\t\t\t}\r\n\t\t});\r\n\t\tmenuHelp.add(menuItemReferences);\r\n\t}", "@Override\r\n public void actionPerformed(ActionEvent e) {\n Menu_Produtos m2= new Menu_Produtos();\r\n \r\n }", "private JMenu createLanguageMenu() {\n\t\tAction nestoAction = new AbstractAction() {\n\n\t\t\t/** The generated serial user ID */\n\t\t\tprivate static final long serialVersionUID = -4439263551767223123L;\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tJMenuItem src = (JMenuItem) e.getSource();\n\t\t\t\tString arg = src.getText();\n\t\t\t\tLocalizationProvider.getInstance().setLanguage(arg);\n\t\t\t\tLocalizationProvider.getInstance().fire();\n\t\t\t}\n\t\t};\n\n\t\titemHR = new JMenuItem(nestoAction);\n\t\titemHR.setText(\"hr\");\n\t\titemEN = new JMenuItem(nestoAction);\n\t\titemEN.setText(\"en\");\n\t\titemDE = new JMenuItem(nestoAction);\n\t\titemDE.setText(\"de\");\n\n\t\tlangMenu = new JMenu(flp.getString(\"lang\"));\n\n\t\tlangMenu.add(itemHR);\n\t\tlangMenu.add(itemEN);\n\t\tlangMenu.add(itemDE);\n\n\t\treturn langMenu;\n\t}", "private JMenuItem getAProposjMenuItem() {\r\n\t\tif (AProposjMenuItem == null) {\r\n\t\t\tAProposjMenuItem = new JMenuItem();\r\n\t\t\tAProposjMenuItem.setText(\"A Propos\");\r\n\t\t\tAProposjMenuItem.setActionCommand(\"A Propos\");\r\n\t\t\tAProposjMenuItem.setFont(new Font(\"Dialog\", Font.PLAIN, 12));\r\n\t\t\tAProposjMenuItem.setIcon(new ImageIcon(getClass().getResource(\"/interrogation.png\")));\r\n\t\t\tAProposjMenuItem.addActionListener(new java.awt.event.ActionListener() {\r\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\r\n\t\t\t\t\tif (e.getActionCommand().equals(\"A Propos\")) {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tHistorique.ecrire(\"Ouverture de : \"+e);\r\n\t\t\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tnew FEN_APropos();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn AProposjMenuItem;\r\n\t}", "public Edit_Menu(MainPanel mp) {\r\n mainPanel = mp;\r\n setText(\"Засах\");\r\n// Uitem.setEnabled(false);//TODO : nemsen\r\n Ritem.setEnabled(false);//TODO : nemsen\r\n add(Uitem);\r\n add(Ritem);\r\n }", "protected void addEditMenuItems (JMenu edit)\n {\n }", "@RequestMapping(value = \"leftNavbarSubMenu\", method = RequestMethod.POST)\n\tpublic ModelAndView leftNavbarSubMenuSave(@ModelAttribute(\"subMenuItem\") Menu menu, Model model) {\n\t\tList<Menu> menus = endUserDAOImpl.findAllMenu();\n\t\tList<Permission> permissions = endUserDAOImpl.findAllPermission();\n\t\tmodel.addAttribute(\"permissions\", permissions);\n\n\t\tMenu parentMenu = endUserDAOImpl.findByMenuId(Long.parseLong(menu.getSubMenuId()));\n\t\tDate date = new Date();\n\t\tmenu.setCreatedBy(getCurrentLoggedUserName());\n\t\tmenu.setModifiedBy(getCurrentLoggedUserName());\n\t\tmenu.setCreatedOn(date);\n\t\tmenu.setModifiedOn(date);\n\t\tmenu.setMenu(parentMenu);\n\t\tendUserDAOImpl.saveMenu(menu);\n\n\t\tmodel.addAttribute(\"menus\", menus);\n\t\tmodel.addAttribute(\"sucess\", \"saved successfully !\");\n\t\treturn new ModelAndView(\"leftNavbarSubMenu\");\n\t}", "@Override\n public void onClick(final View view) {\n PopupMenu popupMenu = new PopupMenu(getBaseContext(), view);\n popupMenu.getMenuInflater().inflate(R.menu.popup_menu,popupMenu.getMenu());\n popupMenu.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {\n @Override\n public boolean onMenuItemClick(MenuItem menuItem) {\n Snackbar.make(view, menuItem.getTitle()+\" is selected\",Snackbar.LENGTH_SHORT).show();\n return true;\n }\n });\n popupMenu.show();\n }", "public static JPopupMenu createPopupMenu() {\n final JPopupMenu popup = new JPopupMenu();\n popup.setBackground(GUI.themeColorTwo);\n\n JMenuItem deleteItem = new JMenuItem(new AbstractAction(\"Delete\") {\n @Override\n public void actionPerformed(ActionEvent e) {\n JOptionPane.showMessageDialog(GUI.frame, \"Delete selected\");\n System.out.println(\"deleting item\");\n }\n });\n deleteItem.setBackground(GUI.themeColor);\n deleteItem.setForeground(Color.white);\n popup.add(deleteItem);\n JMenuItem pinItem = new JMenuItem(new AbstractAction(\"Pin\") {\n @Override\n public void actionPerformed(ActionEvent e) {\n JOptionPane.showMessageDialog(GUI.frame, \"Pin selected\");\n System.out.println(\"pinning item\");\n }\n });\n pinItem.setBackground(GUI.themeColorTwo);\n pinItem.setForeground(Color.white);\n popup.add(pinItem);\n\n return popup;\n }", "public Menu createFileMenu();", "IMenu getMainMenu();", "private static MenuItem createAddNewFolderMenuItem(SongManager model, Item selectedItem) {\n MenuItem createNewFolder = new MenuItem(CREATE_NEW_FOLDER);\n\n createNewFolder.setOnAction((event) -> {\n if (selectedItem != null) {\n File folderSelected = selectedItem.getFile();\n Path newPath = PromptUI.createNewFolder(folderSelected);\n\n if (newPath != null) {\n try {\n model.addNewFolder(newPath.toFile());\n } catch (IOException ex) {\n PromptUI.customPromptError(\"Create new folder\", null, \"Unable to create new folder \" + newPath);\n }\n }\n }\n });\n\n return createNewFolder;\n }", "private void makeMenu() {\r\n int i = 0;\r\n int j = 0;\r\n final JMenuBar bar = new JMenuBar();\r\n final Action[] menuActions = {new NewItemAction(MENU_ITEM_STRINGS[i++]),\r\n new ExitAction(MENU_ITEM_STRINGS[i++], myFrame),\r\n new AboutAction(MENU_ITEM_STRINGS[i++], myFrame)};\r\n i = 0;\r\n\r\n final JMenu fileMenu = new JMenu(MENU_STRINGS[j++]);\r\n fileMenu.setMnemonic(KeyEvent.VK_F);\r\n fileMenu.add(menuActions[i++]);\r\n fileMenu.addSeparator();\r\n fileMenu.add(menuActions[i++]);\r\n\r\n final JMenu optionsMenu = new JMenu(MENU_STRINGS[j++]);\r\n optionsMenu.setMnemonic(KeyEvent.VK_O);\r\n\r\n final JMenu helpMenu = new JMenu(MENU_STRINGS[j++]);\r\n helpMenu.setMnemonic(KeyEvent.VK_H);\r\n helpMenu.add(menuActions[i++]);\r\n\r\n bar.add(fileMenu);\r\n bar.add(optionsMenu);\r\n bar.add(helpMenu);\r\n\r\n myFrame.setJMenuBar(bar);\r\n }", "private JMenu getFileMenu() {\n\t\tif (fileMenu == null) {\n\t\t\tfileMenu = new JMenu();\n\t\t\tfileMenu.setText(\"Súbor\");\n\t\t\t//fileMenu.add(getSaveMenuItem());\n\t\t\tfileMenu.add(getExitMenuItem());\n\t\t\tfileMenu.addActionListener(new java.awt.event.ActionListener() {\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\tSystem.out.println(\"actionPerformed()\"); // TODO Auto-generated Event stub actionPerformed()\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn fileMenu;\n\t}" ]
[ "0.63328135", "0.6267756", "0.6101345", "0.60886246", "0.5976639", "0.59700924", "0.5955057", "0.5919033", "0.5909622", "0.5878559", "0.5878001", "0.5852365", "0.58505374", "0.58503306", "0.5840665", "0.5834539", "0.5831543", "0.5776299", "0.5770996", "0.575431", "0.5746509", "0.57267547", "0.5713885", "0.57067806", "0.57027173", "0.569933", "0.569831", "0.56943643", "0.56921035", "0.5687612", "0.5646122", "0.5644907", "0.56436914", "0.56390476", "0.5634175", "0.562998", "0.5621117", "0.56183386", "0.56176937", "0.56088734", "0.5606621", "0.5598782", "0.55709904", "0.55681384", "0.55659276", "0.5565858", "0.5560041", "0.5559785", "0.55560976", "0.55485344", "0.5543911", "0.5539899", "0.5537832", "0.5533058", "0.5527006", "0.55192065", "0.5517933", "0.5512824", "0.55099404", "0.5499941", "0.5489764", "0.54897404", "0.5476314", "0.5475925", "0.5475581", "0.54723686", "0.5469503", "0.5466935", "0.5464342", "0.54592866", "0.54505575", "0.54500675", "0.5444943", "0.54447156", "0.544319", "0.5441919", "0.54383844", "0.54355174", "0.5434143", "0.5433521", "0.5429266", "0.54268825", "0.54189223", "0.5418329", "0.5412373", "0.5408871", "0.5406624", "0.54065573", "0.54051393", "0.53986067", "0.5395925", "0.53947896", "0.53928053", "0.53832626", "0.538108", "0.5377894", "0.5376667", "0.5369106", "0.5368477", "0.5367161" ]
0.6675861
0
/ Borderlayout bl = (Borderlayout) Path.getComponent("/mainlayout"); Center center = bl.getCenter(); center.getChildren().clear(); Executions.createComponents(pagename, center, null); Executions.getCurrent().sendRedirect(pagename); Messagebox.show(pagename);
@Command public void menuClicked(@BindingParam("pagename") String pagename) { Vlayout vl=(Vlayout)Path.getComponent("/mainlayout"); //Scrollview s=(Scrollview)vl.getFellow("scvCenter"); //Executions.createComponents(pagename, s, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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}", "private void login(){\n displayPane(loginP);\n }", "public static BorderPane GUILogin() {\n\n BorderPane rootConnect = new BorderPane();\n\n Label welocme = new Label(\"WELCOME\");\n welocme.setFont(new Font(20));\n welocme.setPadding(new Insets(15,7,5,75));\n welocme.setGraphicTextGap(2);\n welocme.setStyle(\"-fx-font-weight: bold\");\n\n Label nameLabel = new Label(\"Login:\");\n nameLabel.setFont(new Font(14));\n nameLabel.setPadding(new Insets(8,7,5,42));\n clientLogin = new TextField();\n clientLogin.setMaxWidth(130);\n\n Label passwordLabel = new Label(\"Password:\");\n passwordLabel.setFont(new Font(14));\n passwordLabel.setPadding(new Insets(8,7,5,19));\n clientPassword = new TextField();\n clientPassword.setMaxWidth(130);\n\n login.setPrefWidth(100);\n register.setPrefWidth(100);\n\n HBox hbox = new HBox();\n hbox.setSpacing(15);\n\n HBox hbox1 = new HBox();\n hbox1.setSpacing(15);\n\n HBox hbox2 = new HBox();\n hbox2.setSpacing(15);\n\n HBox hbox3 = new HBox();\n hbox3.setPadding(new Insets(3,7,5,19));\n hbox3.setSpacing(15);\n\n VBox vbox = new VBox();\n vbox.setSpacing(15);\n\n hbox.getChildren().addAll(welocme);\n hbox1.getChildren().addAll(nameLabel, clientLogin);\n hbox2.getChildren().addAll(passwordLabel, clientPassword);\n hbox3.getChildren().addAll(login, register);\n vbox.getChildren().addAll(hbox,hbox1,hbox2,hbox3);\n\n rootConnect.setPadding(new Insets(110, 100, 150, 100));\n rootConnect.setStyle(\"-fx-background-image: url(\"+image+\"); \" +\n \"-fx-background-position: center center; \" +\n \"-fx-background-repeat: stretch;\");\n rootConnect.setCenter(vbox);\n return rootConnect;\n }", "@AutoGenerated\n\tprivate AbsoluteLayout buildMainLayout() {\n\t\tmainLayout = new AbsoluteLayout();\n\t\tmainLayout.setImmediate(false);\n\t\tmainLayout.setWidth(\"500px\");\n\t\tmainLayout.setHeight(\"240px\");\n\t\tmainLayout.setMargin(false);\n\t\t\n\t\t// top-level component properties\n\t\tsetWidth(\"500px\");\n\t\tsetHeight(\"240px\");\n\t\t\n\t\t// usernameField\n\t\tusernameField = new TextField();\n\t\tusernameField.setCaption(\"Nombre Usuario\");\n\t\tusernameField.setImmediate(false);\n\t\tusernameField.setWidth(\"114px\");\n\t\tusernameField.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(usernameField, \"top:16.0px;left:6.0px;\");\n\t\t\n\t\t// passwordField\n\t\tpasswordField = new PasswordField();\n\t\tpasswordField.setCaption(\"Contraseña\");\n\t\tpasswordField.setImmediate(false);\n\t\tpasswordField.setWidth(\"114px\");\n\t\tpasswordField.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(passwordField, \"top:60.0px;left:6.0px;\");\n\t\t\n\t\t// btnApplyUser\n\t\tbtnApplyUser = new Button();\n\t\tbtnApplyUser.setCaption(\"Aplicar\");\n\t\tbtnApplyUser.setImmediate(true);\n\t\tbtnApplyUser.setWidth(\"-1px\");\n\t\tbtnApplyUser.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(btnApplyUser, \"top:16.0px;left:128.0px;\");\n\t\t\n\t\t// btnRemoveUser\n\t\tbtnRemoveUser = new Button();\n\t\tbtnRemoveUser.setCaption(\"Borrar\");\n\t\tbtnRemoveUser.setImmediate(true);\n\t\tbtnRemoveUser.setWidth(\"-1px\");\n\t\tbtnRemoveUser.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(btnRemoveUser, \"top:58.0px;left:128.0px;\");\n\t\t\n\t\t// btnCancelUser\n\t\tbtnCancelUser = new Button();\n\t\tbtnCancelUser.setCaption(\"Cancelar\");\n\t\tbtnCancelUser.setImmediate(true);\n\t\tbtnCancelUser.setWidth(\"-1px\");\n\t\tbtnCancelUser.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(btnCancelUser, \"top:16.0px;left:200.0px;\");\n\t\t\n\t\t// passwordConfirmField\n\t\tpasswordConfirmField = new PasswordField();\n\t\tpasswordConfirmField.setCaption(\"Confirmar contraseña\");\n\t\tpasswordConfirmField.setImmediate(false);\n\t\tpasswordConfirmField.setWidth(\"114px\");\n\t\tpasswordConfirmField.setHeight(\"-1px\");\n\t\tmainLayout\n\t\t\t\t.addComponent(passwordConfirmField, \"top:102.0px;left:6.0px;\");\n\t\t\n\t\t// defaultLocaleField\n\t\tdefaultLocaleField = new LocaleField();\n\t\tdefaultLocaleField.setImmediate(true);\n\t\tdefaultLocaleField.setWidth(\"260px\");\n\t\tdefaultLocaleField.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(defaultLocaleField, \"top:50.0px;left:220.0px;\");\n\t\t\n\t\t// activeField\n\t\tactiveField = new CheckBox();\n\t\tactiveField.setCaption(\"Activa\");\n\t\tactiveField.setImmediate(false);\n\t\tactiveField.setWidth(\"-1px\");\n\t\tactiveField.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(activeField, \"top:16.0px;left:427.0px;\");\n\t\t\n\t\t// expirationDateField\n\t\texpirationDateField = new PopupDateField();\n\t\texpirationDateField.setCaption(\"Fecha expiración\");\n\t\texpirationDateField.setImmediate(false);\n\t\texpirationDateField.setWidth(\"105px\");\n\t\texpirationDateField.setHeight(\"-1px\");\n\t\texpirationDateField.setResolution(4);\n\t\tmainLayout.addComponent(expirationDateField,\n\t\t\t\t\"top:106.0px;left:375.0px;\");\n\t\t\n\t\t// commentField\n\t\tcommentField = new TextField();\n\t\tcommentField.setCaption(\"Comentarios\");\n\t\tcommentField.setImmediate(false);\n\t\tcommentField.setWidth(\"474px\");\n\t\tcommentField.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(commentField, \"top:143.0px;left:6.0px;\");\n\t\t\n\t\treturn mainLayout;\n\t}", "@AutoGenerated\r\n\tprivate AbsoluteLayout buildMainLayout() {\n\t\tmainLayout = new AbsoluteLayout();\r\n\t\tmainLayout.setImmediate(false);\r\n\t\tmainLayout.setWidth(\"682px\");\r\n\t\tmainLayout.setHeight(\"570px\");\r\n\t\t\r\n\t\t// top-level component properties\r\n\t\tsetWidth(\"682px\");\r\n\t\tsetHeight(\"570px\");\r\n\t\t\r\n\t\t// lblTitle\r\n\t\tlblTitle = new Label();\r\n\t\tlblTitle.setStyleName(\"titleLabel\");\r\n\t\tlblTitle.setImmediate(false);\r\n\t\tlblTitle.setWidth(\"-1px\");\r\n\t\tlblTitle.setHeight(\"-1px\");\r\n\t\tlblTitle.setValue(\"Cambiar contraseña\");\r\n\t\tmainLayout.addComponent(lblTitle, \"top:42.0px;left:0.0px;\");\r\n\t\t\r\n\t\t// oldPassword\r\n\t\ttxtOldPassword = new PasswordField();\r\n\t\ttxtOldPassword.setCaption(\"Contraseña actual\");\r\n\t\ttxtOldPassword.setImmediate(true);\r\n\t\ttxtOldPassword.setWidth(\"240px\");\r\n\t\ttxtOldPassword.setHeight(\"-1px\");\r\n\t\ttxtOldPassword.setTabIndex(1);\r\n\t\ttxtOldPassword.setRequired(true);\r\n\t\tmainLayout.addComponent(txtOldPassword, \"top:120.0px;left:0.0px;\");\r\n\t\t\r\n\t\t// newPassword\r\n\t\ttxtNewPassword = new PasswordField();\r\n\t\ttxtNewPassword.setCaption(\"Contraseña nueva\");\r\n\t\ttxtNewPassword.setImmediate(true);\r\n\t\ttxtNewPassword.setWidth(\"240px\");\r\n\t\ttxtNewPassword.setHeight(\"-1px\");\r\n\t\ttxtNewPassword.setTabIndex(2);\r\n\t\ttxtNewPassword.setRequired(true);\r\n\t\tmainLayout.addComponent(txtNewPassword, \"top:190.0px;left:0.0px;\");\r\n\t\t\r\n\t\t// confirmPassword\r\n\t\ttxtConfirmPassword = new PasswordField();\r\n\t\ttxtConfirmPassword.setCaption(\"Confirmación de la nueva contraseña\");\r\n\t\ttxtConfirmPassword.setImmediate(true);\r\n\t\ttxtConfirmPassword.setWidth(\"240px\");\r\n\t\ttxtConfirmPassword.setHeight(\"-1px\");\r\n\t\ttxtConfirmPassword.setTabIndex(2);\r\n\t\ttxtConfirmPassword.setRequired(true);\r\n\t\tmainLayout.addComponent(txtConfirmPassword, \"top:260.0px;left:0.0px;\");\r\n\t\t\r\n\t\t// btnModify\r\n\t\tbtnModify = new Button();\r\n\t\tbtnModify.setCaption(\"Modificar\");\r\n\t\tbtnModify.setImmediate(true);\r\n\t\tbtnModify.setWidth(\"100px\");\r\n\t\tbtnModify.setHeight(\"-1px\");\r\n\t\tbtnModify.setTabIndex(3);\r\n\t\tmainLayout.addComponent(btnModify, \"top:330.0px;left:0.0px;\");\r\n\t\t\r\n\t\t// btnCancel\r\n\t\tbtnCancel = new Button();\r\n\t\tbtnCancel.setCaption(\"Cancelar\");\r\n\t\tbtnCancel.setImmediate(true);\r\n\t\tbtnCancel.setWidth(\"100px\");\r\n\t\tbtnCancel.setHeight(\"-1px\");\r\n\t\tbtnCancel.setTabIndex(4);\r\n\t\tmainLayout.addComponent(btnCancel, \"top:330.0px;left:140.0px;\");\r\n\t\t\r\n\t\treturn mainLayout;\r\n\t}", "private void setupPopupLayout() {\n mainBox.getChildren().addAll(errorLabel, buttonBox);\n buttonBox.setAlignment(Pos.CENTER);\n }", "protected void refreshRootLayout() {\n this.rootLayout.setVisible(true);\n addStyleName(\"done\");\n rootLayout.addComponent(contentPreview);\n rootLayout.addComponent(contentDetail);\n }", "private void $$$setupUI$$$() {\n mainPanel = new JPanel();\n mainPanel.setLayout(new BorderLayout(0, 0));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new FormLayout(\"fill:d:grow\", \"center:d:grow,top:3dlu:noGrow,center:max(d;4px):noGrow\"));\n mainPanel.add(panel2, BorderLayout.SOUTH);\n postButton = new JButton();\n postButton.setText(\"Post\");\n CellConstraints cc = new CellConstraints();\n panel2.add(postButton, cc.xy(1, 3));\n final JSplitPane splitPane1 = new JSplitPane();\n splitPane1.setResizeWeight(0.5);\n mainPanel.add(splitPane1, BorderLayout.CENTER);\n final JPanel panel3 = new JPanel();\n panel3.setLayout(new FormLayout(\"fill:d:grow\", \"center:d:noGrow,top:3dlu:noGrow,center:d:grow\"));\n splitPane1.setRightComponent(panel3);\n final JLabel label1 = new JLabel();\n label1.setText(\"Query Result\");\n panel3.add(label1, cc.xy(1, 1));\n final JScrollPane scrollPane1 = new JScrollPane();\n panel3.add(scrollPane1, cc.xy(1, 3, CellConstraints.FILL, CellConstraints.FILL));\n queryResult = new JTextArea();\n scrollPane1.setViewportView(queryResult);\n final JPanel panel4 = new JPanel();\n panel4.setLayout(new FormLayout(\"fill:d:grow\", \"center:d:noGrow,top:3dlu:noGrow,center:d:grow\"));\n splitPane1.setLeftComponent(panel4);\n final JLabel label2 = new JLabel();\n label2.setText(\"Cypher Query\");\n panel4.add(label2, cc.xy(1, 1));\n final JScrollPane scrollPane2 = new JScrollPane();\n panel4.add(scrollPane2, cc.xy(1, 3, CellConstraints.FILL, CellConstraints.FILL));\n queryEditor = new JTextArea();\n scrollPane2.setViewportView(queryEditor);\n }", "public String setBorderPaneTop(BorderPane bp,String pageName, Stage currentStage){\n HBox topHb = new HBox();\n bp.setTop(topHb);\n \n //Hbox settings\n topHb.getStyleClass().add(\"nodeBkg\");\n topHb.setAlignment(Pos.CENTER);\n \n \n //borderpane settings\n bp.setAlignment(topHb, Pos.CENTER);\n \n \n // create nodes\n Label header = new Label(pageName);\n Button logOut = new Button(\"Log out\");\n \n \n //add nodes\n topHb.getChildren().add(header);\n topHb.getChildren().add(logOut);\n \n \n // log out button event\n logOut.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent event) {\n changeStage(currentStage,loginStage);\n }\n });\n \n return header.getText();\n }", "@Override\r\n public void tearDownEffect() {\r\n CSS.setLocation(rootPanel, 0, 0);\r\n }", "private void layout() {\n\n\n _abortButton= makeAbortButton();\n _abortButton.addStyleName(\"download-group-abort\");\n _content.addStyleName(\"download-group-content\");\n _detailUI= new DetailUIInfo[getPartCount(_monItem)];\n layoutDetails();\n }", "private void createGUI() \n {\n Rectangle screenSize = GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds();\n setSize(screenSize.width, screenSize.height);\n addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosing(WindowEvent e) {\n if (JOptionPane.showConfirmDialog(main, \"Are you sure you want to quit?\", \"Confirm exit.\", JOptionPane.OK_OPTION, 0, new ImageIcon(\"\")) != 0) {\n return;\n }\n stop();\n }\n });\n LookAndFeel.set();\n gbll=new GridBagLayout();\n mpane=new JPanel(gbll);\n mpane.setOpaque(false);\n mpane.setBackground(Color.WHITE);\n mpane.setBorder(new EtchedBorder());\n setGlassPane(mpane);\n \n jp=new JPanel(new BorderLayout()){\n @Override\n protected void paintComponent(Graphics grphcs) {\n Graphics2D g2d = (Graphics2D) grphcs;\n g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_ON);\n GradientPaint gp = new GradientPaint(0, 0,getBackground().brighter(), 0, getHeight(),getBackground().darker());\n g2d.setPaint(gp);\n g2d.fillRect(0, 0, getWidth(), getHeight());\n super.paintComponent(grphcs);\n }\n };\n jp.setOpaque(false);\n user=new HintTextField(\"Username\");\n user.setColumns(18);\n pass=new HintPasswordField(\"Password\");\n pass.setColumns(18);\n JButton login=new JButton(\"Login\");\n login.setMnemonic(KeyEvent.VK_ENTER);\n login.addActionListener(new LoginAction(main,user,pass,domain,client));\n username=new JLabel(\"Username\");\n jcb=new JComboBox(new String[]{ \"Home\", \"Rules\", \"Logout\" }); //help setting\n jcb.setLightWeightPopupEnabled(false);\n jcb.addActionListener(new ActionListener(){\n public void actionPerformed(ActionEvent e)\n {\n int sel=jcb.getSelectedIndex();\n if(sel==1)\n {\n try\n {\n String url = \"http://\"+domain+\"/rules/index.html\";\n String os = System.getProperty(\"os.name\").toLowerCase();\n Runtime rt = Runtime.getRuntime();\n \n if (os.indexOf( \"win\" ) >= 0) {\n \n // this doesn't support showing urls in the form of \"page.html#nameLink\" \n rt.exec( \"rundll32 url.dll,FileProtocolHandler \" + url);\n \n } else if (os.indexOf( \"mac\" ) >= 0) {\n \n rt.exec( \"open \" + url);\n \n } else if (os.indexOf( \"nix\") >=0 || os.indexOf( \"nux\") >=0) {\n \n // Do a best guess on unix until we get a platform independent way\n // Build a list of browsers to try, in this order.\n String[] browsers = {\"epiphany\", \"firefox\", \"mozilla\", \"konqueror\",\n \"netscape\",\"opera\",\"links\",\"lynx\"};\n \n // Build a command string which looks like \"browser1 \"url\" || browser2 \"url\" ||...\"\n StringBuffer cmd = new StringBuffer();\n for (int i=0; i<browsers.length; i++)\n cmd.append( (i==0 ? \"\" : \" || \" ) + browsers[i] +\" \\\"\" + url + \"\\\" \");\n \n rt.exec(new String[] { \"sh\", \"-c\", cmd.toString() });\n }\n //main.getAppletContext().showDocument(new URL(), \"_blank\");\n }catch(Exception ee){ee.printStackTrace();}\n }\n else if(sel==2)\n {\n main.stop();\n //main.getAppletContext().showDocument(main.getDocumentBase(), \"_self\");\n }\n }\n });\n JLabel space=new JLabel(\" \");\n space.setOpaque(false);\n JLabel space2=new JLabel(\" \");\n space2.setOpaque(false);\n \n jp2=new JPanel(new FlowLayout());\n jp2.setOpaque(false);\n jp2.add(username);\n jp2.add(jcb);\n jp2.add(space2);\n \n jp1=new JPanel(new FlowLayout());\n jp1.setOpaque(false);\n jp1.add(user);\n jp1.add(pass);\n jp1.add(login);\n jp1.add(space);\n \n Font f=null;\n try{\n //f=Font.createFont(Font.TRUETYPE_FONT,getClass().getResourceAsStream(\"OLYMPIQUES.ttf\"));\n f=Font.createFont(Font.TRUETYPE_FONT, this.getClass().getResourceAsStream(\"OLYMPIQUES.ttf\"));\n }catch(Exception bb){bb.printStackTrace();}\n JLabel tit=new JLabel(\" StockMart @ celesta'13\");\n tit.setOpaque(false);\n try{\n tit.setFont(f.deriveFont(Font.PLAIN,25)); //new Font(\"Forte\",Font.BOLD,20)\n tit.setForeground(Color.gray.darker());\n }catch(Exception bb){bb.printStackTrace();}\n jp.add(tit,BorderLayout.WEST);\n jp.add(jp1,BorderLayout.EAST);\n jp.setBorder(new BevelBorder(BevelBorder.RAISED));\n jp.setPreferredSize(new Dimension(mpane.getWidth(),45));\n gbc=new GridBagConstraints();\n gbc.gridx=0;\n gbc.gridy=0;\n gbc.fill=GridBagConstraints.HORIZONTAL;\n gbc.gridwidth=8;\n gbc.gridheight=1;\n gbc.ipadx=0;\n gbc.ipady=0;\n gbc.anchor=GridBagConstraints.PAGE_START;\n gbc.weightx=1.0;\n gbc.weighty=1.0;\n mpane.add(jp,gbc);\n \n HintTextField regno=new HintTextField(\"Registration No.\");\n regno.setColumns(10);\n //textField.setMaximumSize( .getPreferredSize() );\n HintTextField ruser=new HintTextField(\"Username\");\n ruser.setColumns(10);\n HintPasswordField rpass=new HintPasswordField(\"Password\");\n rpass.setColumns(10);\n JButton register=new JButton(\"Register\");\n register.addActionListener(new RegisterAction(regno,ruser,rpass,domain,client));\n \n JPanel regpane=new JPanel(){\n @Override\n protected void paintComponent(Graphics grphcs) {\n Graphics2D g2d = (Graphics2D) grphcs;\n g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_ON);\n GradientPaint gp = new GradientPaint(0, 0,getBackground().brighter(), 0, getHeight(),getBackground().darker());\n g2d.setPaint(gp);\n g2d.fillRect(0, 0, getWidth(), getHeight());\n super.paintComponent(grphcs);\n }\n };\n regpane.setOpaque(false);\n regpane.setLayout(new BoxLayout(regpane, BoxLayout.PAGE_AXIS));\n regpane.setBorder(new EmptyBorder(10,20,10,20)); //tlbr\n regpane.add(Box.createRigidArea(new Dimension(0,5)));\n regpane.add(regno);\n regpane.add(Box.createRigidArea(new Dimension(0,5)));\n regpane.add(ruser);\n regpane.add(Box.createRigidArea(new Dimension(0,5)));\n regpane.add(rpass);\n regpane.add(Box.createRigidArea(new Dimension(0,5)));\n regpane.add(register);\n regpane.add(Box.createRigidArea(new Dimension(0,5)));\n \n internalFrame=new JInternalFrame(\"Register:\",false,false,false,false);\n internalFrame.setContentPane(regpane);\n internalFrame.pack();\n \n unmovable(internalFrame);\n \n imgpane=new JPanel();\n imgpane.setOpaque(false);\n JLabel imglabel=new JLabel();\n imglabel.setSize((int)(.384*(double)getWidth1()),(int)(.79*(double)getHeight1()));\n imglabel.setOpaque(false);\n imglabel.setIcon(new ImageIcon(img.getScaledInstance(imglabel.getWidth(),imglabel.getHeight(),Image.SCALE_SMOOTH)));\n imgpane.add(imglabel);\n \n gbc.gridx=6;\n gbc.gridy=3;\n gbc.fill=GridBagConstraints.NONE;\n gbc.gridwidth=1;\n gbc.gridheight=3;\n gbc.ipadx=200;\n gbc.ipady=55;\n gbc.anchor=GridBagConstraints.CENTER;\n gbc.insets=new Insets(0,0,100,0);\n mpane.add(internalFrame,gbc);\n \n gbc.gridx=1;\n gbc.gridy=2;\n gbc.fill=GridBagConstraints.BOTH;\n gbc.gridwidth=2;\n gbc.gridheight=7;\n gbc.ipadx=0;\n gbc.ipady=0;\n gbc.insets=new Insets(0,10,30,0);\n mpane.add(imgpane,gbc);\n \n tester = new BackgroundAnimation();\n JPanel anipane=new JPanel();\n anipane.setLayout(new BoxLayout(anipane, BoxLayout.Y_AXIS));\n anipane.add(Box.createRigidArea(new Dimension(0,45)));\n anipane.add(tester);\n \n rb=new RibbonPane(140,client);\n rb.setPreferredSize(new Dimension(mpane.getWidth(),28));\n anipane.add(rb);\n setContentPane(anipane);\n mpane.setVisible(true);\n internalFrame.setVisible(true);\n try{\n internalFrame.setSelected(true);\n }catch(Exception v){};\n rb.startAnimation();\n }", "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}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jDesktopPane1 = new javax.swing.JDesktopPane();\n lblDateTime = new javax.swing.JLabel();\n lblInfoSystem = new javax.swing.JLabel();\n lblUsername = new javax.swing.JLabel();\n jPanel1 = new javax.swing.JPanel();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n jButton4 = new javax.swing.JButton();\n reporteGeneral = new javax.swing.JLabel();\n jXHyperlink1 = new org.jdesktop.swingx.JXHyperlink();\n jSeparator6 = new javax.swing.JSeparator();\n jSeparator7 = new javax.swing.JSeparator();\n lblRoot = new javax.swing.JLabel();\n jMenuBar1 = new javax.swing.JMenuBar();\n jMenu1 = new javax.swing.JMenu();\n jMenuItem1 = new javax.swing.JMenuItem();\n jMenuItem2 = new javax.swing.JMenuItem();\n jSeparator1 = new javax.swing.JPopupMenu.Separator();\n jMenuItem3 = new javax.swing.JMenuItem();\n jMenuItem8 = new javax.swing.JMenuItem();\n jMenuItem10 = new javax.swing.JMenuItem();\n jSeparator5 = new javax.swing.JPopupMenu.Separator();\n jMenuItem20 = new javax.swing.JMenuItem();\n jMenu2 = new javax.swing.JMenu();\n jMenuItem4 = new javax.swing.JMenuItem();\n jMenuItem24 = new javax.swing.JMenuItem();\n jMenuItem14 = new javax.swing.JMenuItem();\n jMenu3 = new javax.swing.JMenu();\n jMenuItem27 = new javax.swing.JMenuItem();\n jMenuItem26 = new javax.swing.JMenuItem();\n jMenuItem28 = new javax.swing.JMenuItem();\n separator = new javax.swing.JMenuItem();\n jMenuItem22 = new javax.swing.JMenuItem();\n jMenuItem23 = new javax.swing.JMenuItem();\n jMenuItem25 = new javax.swing.JMenuItem();\n jmAdmin = new javax.swing.JMenu();\n jMenuItem11 = new javax.swing.JMenuItem();\n jMenuItem18 = new javax.swing.JMenuItem();\n jMenuItem13 = new javax.swing.JMenuItem();\n jSeparator4 = new javax.swing.JPopupMenu.Separator();\n jMenuItem15 = new javax.swing.JMenuItem();\n jMenuItem12 = new javax.swing.JMenuItem();\n jMenuItem21 = new javax.swing.JMenuItem();\n jSeparator3 = new javax.swing.JPopupMenu.Separator();\n jMenuItem17 = new javax.swing.JMenuItem();\n jMenuItem16 = new javax.swing.JMenuItem();\n jMenuItem19 = new javax.swing.JMenuItem();\n jMenu8 = new javax.swing.JMenu();\n jMenuItem6 = new javax.swing.JMenuItem();\n jMenu10 = new javax.swing.JMenu();\n jMenuItem5 = new javax.swing.JMenuItem();\n jMenu4 = new javax.swing.JMenu();\n jSeparator2 = new javax.swing.JPopupMenu.Separator();\n jMenuItem9 = new javax.swing.JMenuItem();\n jMenu7 = new javax.swing.JMenu();\n jMenuItem7 = new javax.swing.JMenuItem();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowClosing(java.awt.event.WindowEvent evt) {\n formWindowClosing(evt);\n }\n });\n\n jDesktopPane1.setBackground(new java.awt.Color(204, 204, 204));\n jDesktopPane1.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\n javax.swing.GroupLayout jDesktopPane1Layout = new javax.swing.GroupLayout(jDesktopPane1);\n jDesktopPane1.setLayout(jDesktopPane1Layout);\n jDesktopPane1Layout.setHorizontalGroup(\n jDesktopPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 0, Short.MAX_VALUE)\n );\n jDesktopPane1Layout.setVerticalGroup(\n jDesktopPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 529, Short.MAX_VALUE)\n );\n\n lblDateTime.setBackground(new java.awt.Color(153, 153, 153));\n lblDateTime.setFont(new java.awt.Font(\"Arial Unicode MS\", 0, 14)); // NOI18N\n lblDateTime.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n lblDateTime.setText(\"00:00:00\");\n lblDateTime.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);\n\n lblInfoSystem.setText(\"| Sistema de Renta de Pelicula ( Mr Movies V1.0)\");\n\n lblUsername.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n lblUsername.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/system-icons/Entypo_d83d(18)_24.png\"))); // NOI18N\n lblUsername.setText(\"USUARIO:TEST\");\n\n jButton1.setFont(new java.awt.Font(\"Tahoma\", 0, 10)); // NOI18N\n jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/system-icons/timer20.png\"))); // NOI18N\n jButton1.setText(\"P.RETR.\");\n jButton1.setBorderPainted(false);\n jButton1.setPreferredSize(new java.awt.Dimension(65, 23));\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jButton2.setFont(new java.awt.Font(\"Tahoma\", 0, 10)); // NOI18N\n jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/system-icons/money136.png\"))); // NOI18N\n jButton2.setText(\"RENTA\");\n jButton2.setBorderPainted(false);\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jButton3.setFont(new java.awt.Font(\"Tahoma\", 0, 10)); // NOI18N\n jButton3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/system-icons/movie43.png\"))); // NOI18N\n jButton3.setText(\"PELICULA\");\n jButton3.setBorderPainted(false);\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n jButton4.setFont(new java.awt.Font(\"Tahoma\", 0, 10)); // NOI18N\n jButton4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/system-icons/left-arrow.png\"))); // NOI18N\n jButton4.setText(\"DEVOL.\");\n jButton4.setBorderPainted(false);\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n\n reporteGeneral.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n reporteGeneral.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/assets/rg.png\"))); // NOI18N\n reporteGeneral.setToolTipText(\"\");\n reporteGeneral.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n reporteGeneral.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n reporteGeneral.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n reporteGeneralMouseClicked(evt);\n }\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n mouseEnter(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n reporteGeneralMouseExited(evt);\n }\n });\n\n jXHyperlink1.setText(\"LCRTDEV\");\n jXHyperlink1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jXHyperlink1.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jXHyperlink1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jXHyperlink1ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)\n .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton4, javax.swing.GroupLayout.DEFAULT_SIZE, 97, Short.MAX_VALUE)\n .addComponent(reporteGeneral, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap())\n .addComponent(jSeparator6, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jSeparator7, javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addComponent(jXHyperlink1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(19, 19, 19)\n .addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(46, 46, 46)\n .addComponent(jSeparator6, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(reporteGeneral)\n .addGap(29, 29, 29)\n .addComponent(jSeparator7, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 82, Short.MAX_VALUE)\n .addComponent(jXHyperlink1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(23, 23, 23))\n );\n\n lblRoot.setBackground(new java.awt.Color(153, 153, 153));\n lblRoot.setText(\"[ ]\");\n lblRoot.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n lblRootMouseClicked(evt);\n }\n });\n\n jMenu1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/system-icons/Entypo_2692(65)_48.png\"))); // NOI18N\n jMenu1.setText(\"Mantenimiento\");\n\n jMenuItem1.setText(\"Clientes\");\n jMenuItem1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem1ActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuItem1);\n\n jMenuItem2.setText(\"Películas \");\n jMenuItem2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem2ActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuItem2);\n jMenu1.add(jSeparator1);\n\n jMenuItem3.setText(\"Genero\");\n jMenuItem3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem3ActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuItem3);\n\n jMenuItem8.setText(\"Formato\");\n jMenuItem8.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem8ActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuItem8);\n\n jMenuItem10.setText(\"Idioma/Subtitulo\");\n jMenuItem10.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem10ActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuItem10);\n jMenu1.add(jSeparator5);\n\n jMenuItem20.setText(\"Actor\");\n jMenuItem20.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem20ActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuItem20);\n\n jMenuBar1.add(jMenu1);\n\n jMenu2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/system-icons/Entypo_e005(47)_48.png\"))); // NOI18N\n jMenu2.setText(\"Transacciones\");\n\n jMenuItem4.setText(\"Renta\");\n jMenuItem4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem4ActionPerformed(evt);\n }\n });\n jMenu2.add(jMenuItem4);\n\n jMenuItem24.setText(\"Devolucion\");\n jMenu2.add(jMenuItem24);\n\n jMenuItem14.setText(\"No entregado/Vigencia\");\n jMenu2.add(jMenuItem14);\n\n jMenuBar1.add(jMenu2);\n\n jMenu3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/system-icons/Entypo_e70a(43)_48.png\"))); // NOI18N\n jMenu3.setText(\"Consulta/Reportes\");\n\n jMenuItem27.setText(\"Pelicula\");\n jMenu3.add(jMenuItem27);\n\n jMenuItem26.setText(\"Cliente\");\n jMenu3.add(jMenuItem26);\n\n jMenuItem28.setText(\"Usuario\");\n jMenuItem28.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem28ActionPerformed(evt);\n }\n });\n jMenu3.add(jMenuItem28);\n\n separator.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\n separator.setText(\"[ general ]\");\n separator.setContentAreaFilled(false);\n separator.setEnabled(false);\n separator.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n separator.setOpaque(true);\n jMenu3.add(separator);\n\n jMenuItem22.setText(\"Reporte General Pelicula\");\n jMenuItem22.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem22ActionPerformed(evt);\n }\n });\n jMenu3.add(jMenuItem22);\n\n jMenuItem23.setText(\"Peliculas Rentadas\");\n jMenuItem23.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem23ActionPerformed(evt);\n }\n });\n jMenu3.add(jMenuItem23);\n\n jMenuItem25.setText(\"Peliculas Retrazadas\");\n jMenuItem25.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem25ActionPerformed(evt);\n }\n });\n jMenu3.add(jMenuItem25);\n\n jMenuBar1.add(jMenu3);\n\n jmAdmin.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/system-icons/Entypo_d83d(0)_48.png\"))); // NOI18N\n jmAdmin.setText(\"Administrador\");\n jmAdmin.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jmAdminActionPerformed(evt);\n }\n });\n\n jMenuItem11.setText(\"Usuarios\");\n jMenuItem11.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem11ActionPerformed(evt);\n }\n });\n jmAdmin.add(jMenuItem11);\n\n jMenuItem18.setText(\"Tipo Usuario\");\n jMenuItem18.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem18ActionPerformed(evt);\n }\n });\n jmAdmin.add(jMenuItem18);\n\n jMenuItem13.setText(\"Control de accesso\");\n jmAdmin.add(jMenuItem13);\n jmAdmin.add(jSeparator4);\n\n jMenuItem15.setText(\"Empleado\");\n jMenuItem15.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem15ActionPerformed(evt);\n }\n });\n jmAdmin.add(jMenuItem15);\n\n jMenuItem12.setText(\"Puesto\");\n jMenuItem12.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem12ActionPerformed(evt);\n }\n });\n jmAdmin.add(jMenuItem12);\n\n jMenuItem21.setText(\"Sucursal\");\n jMenuItem21.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem21ActionPerformed(evt);\n }\n });\n jmAdmin.add(jMenuItem21);\n jmAdmin.add(jSeparator3);\n\n jMenuItem17.setText(\"Tipo Pago\");\n jMenuItem17.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem17ActionPerformed(evt);\n }\n });\n jmAdmin.add(jMenuItem17);\n\n jMenuItem16.setText(\"Estado Pelicula\");\n jMenuItem16.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem16ActionPerformed(evt);\n }\n });\n jmAdmin.add(jMenuItem16);\n\n jMenuItem19.setText(\"Precio(X Clasificacion)\");\n jMenuItem19.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem19ActionPerformed(evt);\n }\n });\n jmAdmin.add(jMenuItem19);\n\n jMenuBar1.add(jmAdmin);\n\n jMenu8.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/system-icons/Entypo_e731(35)_48.png\"))); // NOI18N\n jMenu8.setText(\"Utilidades\");\n\n jMenuItem6.setText(\"Calculadora\");\n jMenuItem6.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem6ActionPerformed(evt);\n }\n });\n jMenu8.add(jMenuItem6);\n\n jMenuBar1.add(jMenu8);\n\n jMenu10.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/system-icons/Entypo_2139(73)_48.png\"))); // NOI18N\n jMenu10.setText(\"Documentacion\");\n\n jMenuItem5.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F1, 0));\n jMenuItem5.setText(\"Manual/Documentacion\");\n jMenuItem5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem5ActionPerformed(evt);\n }\n });\n jMenu10.add(jMenuItem5);\n\n jMenuBar1.add(jMenu10);\n\n jMenu4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/system-icons/Entypo_d83d(18)_48.png\"))); // NOI18N\n jMenu4.setText(\"Cerrar Sesion\");\n jMenu4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenu4ActionPerformed(evt);\n }\n });\n jMenu4.add(jSeparator2);\n\n jMenuItem9.setText(\"Cerrar Sesion\");\n jMenuItem9.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem9ActionPerformed(evt);\n }\n });\n jMenu4.add(jMenuItem9);\n\n jMenuBar1.add(jMenu4);\n\n jMenu7.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/system-icons/Entypo_e715(38)_48.png\"))); // NOI18N\n jMenu7.setText(\"Salir\");\n jMenu7.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenu7ActionPerformed(evt);\n }\n });\n\n jMenuItem7.setText(\"Salir\");\n jMenuItem7.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem7ActionPerformed(evt);\n }\n });\n jMenu7.add(jMenuItem7);\n\n jMenuBar1.add(jMenu7);\n\n setJMenuBar(jMenuBar1);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jDesktopPane1))\n .addGroup(layout.createSequentialGroup()\n .addGap(117, 117, 117)\n .addComponent(lblDateTime, javax.swing.GroupLayout.PREFERRED_SIZE, 152, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(lblInfoSystem, javax.swing.GroupLayout.PREFERRED_SIZE, 616, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(lblRoot, javax.swing.GroupLayout.PREFERRED_SIZE, 12, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(lblUsername, javax.swing.GroupLayout.DEFAULT_SIZE, 255, Short.MAX_VALUE)\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblDateTime)\n .addComponent(lblInfoSystem)\n .addComponent(lblUsername))\n .addComponent(lblRoot, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jDesktopPane1)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n );\n\n pack();\n }", "private void buildMainLayout(IAuthorizationContext pContext)\r\n throws UnauthorizedAccessAttemptException, IOException {\r\n\r\n createObjectEntry();\r\n\r\n if (parent.getParentUI().siteName.equals(parent.getParentUI().siteNameCVMA)) {\r\n defineInfoLayoutCVMA();\r\n } else {\r\n defineInfoLayoutStandard();\r\n }\r\n\r\n thumbLayout = new VerticalLayout();\r\n thumbLayout.setSizeFull();\r\n thumbLayout.setSpacing(false);\r\n thumbLayout.setMargin(false);\r\n thumbLayout.setStyleName(\"white\");\r\n thumbLayout.setHeight(\"150px\");\r\n thumbLayout.setWidth(\"161px\");\r\n\r\n // initialize thumbnail field and button\r\n setThumbButton();\r\n\r\n // build content layout\r\n buttonLayout = new VerticalLayout();\r\n buttonLayout.setSizeFull();\r\n buttonLayout.setSpacing(false);\r\n buttonLayout.setMargin(false);\r\n buttonLayout.setStyleName(\"white\");\r\n buttonLayout.setHeight(\"150px\");\r\n buttonLayout.setWidth(\"161px\");\r\n\r\n // set download button\r\n setDownloadButton();\r\n\r\n // set metadata viewer button\r\n setMetadataViewerButton();\r\n\r\n // download button\r\n setImageDownloadButton();\r\n\r\n // map button\r\n setMapButton();\r\n\r\n // build content layout\r\n contentLayout = new HorizontalLayout();\r\n contentLayout.setSizeFull();\r\n contentLayout.setMargin(false);\r\n contentLayout.setMargin(new MarginInfo(false, false, true, false));\r\n contentLayout.setStyleName(\"white\");\r\n contentLayout.addComponent(thumbLayout);\r\n contentLayout.addComponent(infoLayout);\r\n contentLayout.addComponent(buttonLayout);\r\n contentLayout.setComponentAlignment(thumbLayout, Alignment.TOP_LEFT);\r\n contentLayout.setComponentAlignment(infoLayout, Alignment.TOP_CENTER);\r\n contentLayout.setComponentAlignment(buttonLayout, Alignment.TOP_RIGHT);\r\n contentLayout.setExpandRatio(infoLayout, 11f);\r\n }", "public void createUI() {\r\n\t\ttry {\r\n\t\t\tJPanel centerPanel = this.createCenterPane();\r\n\t\t\tJPanel westPanel = this.createWestPanel();\r\n\t\t\tm_XONContentPane.add(westPanel, BorderLayout.WEST);\r\n\t\t\tm_XONContentPane.add(centerPanel, BorderLayout.CENTER);\r\n\t\t\tm_XONContentPane.revalidate();\r\n\t\t} catch (Exception ex) {\r\n\t\t\tRGPTLogger.logToFile(\"Exception at createUI \", ex);\r\n\t\t}\r\n\t}", "private void setLayout() {\n\tHorizontalLayout main = new HorizontalLayout();\n\tmain.setMargin(true);\n\tmain.setSpacing(true);\n\n\t// vertically divide the right area\n\tVerticalLayout left = new VerticalLayout();\n\tleft.setSpacing(true);\n\tmain.addComponent(left);\n\n\tleft.addComponent(openProdManager);\n\topenProdManager.addListener(new Button.ClickListener() {\n\t public void buttonClick(ClickEvent event) {\n\t\tCustomerWindow productManagerWin = new CustomerWindow(CollectorManagerApplication.this);\n\t\tproductManagerWin.addListener(new Window.CloseListener() {\n\t\t public void windowClose(CloseEvent e) {\n\t\t\topenProdManager.setEnabled(true);\n\t\t }\n\t\t});\n\n\t\tCollectorManagerApplication.this.getMainWindow().addWindow(productManagerWin);\n\t\topenProdManager.setEnabled(false);\n\t }\n\t});\n\n\t\n\tsetMainWindow(new Window(\"Sistema de Cobranzas\", main));\n\n }", "public void transitionToHome() throws RemoteException{\n removeAll();\n mainPanel = new MainPanel(contr);\n add(mainPanel, \"span 1\");\n }", "private void initHomePage() {\r\n welcomePage.setSpacing(30);\r\n HTML welcomeLabel = new HTML(\"<h1 style='color:black;font-family:verdana; font-weight:bold;text-decoration:none;font-style:normal;'>Welcome to DiVA <font size='3'>omics </h1>\");\r\n welcomeLabel.setWidth(\"400px\");\r\n VerticalPanel leftSideLayout = new VerticalPanel();\r\n welcomePage.add(leftSideLayout);\r\n welcomePage.setCellVerticalAlignment(leftSideLayout, VerticalPanel.ALIGN_MIDDLE);\r\n welcomePage.setCellHorizontalAlignment(leftSideLayout, VerticalPanel.ALIGN_RIGHT);\r\n leftSideLayout.add(welcomeLabel);\r\n leftSideLayout.setSpacing(10);\r\n\r\n HTML ieErrorLabel = new HTML(\"<p align=\\\"left\\\" style=\\\"margin-left:0px;color:red;\\\"><font size=\\\"3\\\">It looks like you are using an old version of Internet Explorer. Unfortunatly Internet Explorer 6,7,8,9 and 10 are not supported in the curent version of DiVA. Please try other browsers.</font></p>\");\r\n ieErrorLabel.setWidth(\"400px\");\r\n\r\n HTML infoLabel = new HTML(\"<p align=\\\"justify\\\" style=\\\"margin-left:0px;color:#585858;\\\"><font size=\\\"2\\\">Start using DiVA by selecting a dataset</font></p>\");\r\n infoLabel.setWidth(\"400px\");\r\n\r\n HorizontalPanel selectionLayout = new HorizontalPanel();\r\n\r\n if (oldIE) {\r\n leftSideLayout.add(ieErrorLabel);\r\n } else {\r\n leftSideLayout.add(infoLabel);\r\n leftSideLayout.add(selectionLayout);\r\n selectionLayout.setWidth(\"400px\");\r\n selectionLayout.add(tempSelectDatasetList);\r\n }\r\n\r\n tempSelectDatasetList.getElement().setAttribute(\"style\", \"border: 1px solid gray;height: 24px;font-weight: bold;width: 400px;border-radius: 5px;\");\r\n\r\n leftSideLayout.setCellVerticalAlignment(tempSelectDatasetList, VerticalPanel.ALIGN_MIDDLE);\r\n leftSideLayout.setCellHorizontalAlignment(tempSelectDatasetList, VerticalPanel.ALIGN_LEFT);\r\n \r\n HTML info2Label = new HTML(\"<p align=\\\"justify\\\" style=\\\"margin-top:20px;margin-left:0px;color:#585858;line-height: 200%;\\\"><font size=\\\"2\\\">Getting started tutorial available <a target=\\\"_blank\\\" href='\" +\"tutorial/diva_tutorial.pdf\" + \"'>here</a>. </font><br/><font size=\\\"2\\\">More information available <a target=\\\"_blank\\\" href='\" + \"http://diva-omics-demo.googlecode.com/\" + \"'>here</a>. </font></p>\");\r\n leftSideLayout.add(info2Label);\r\n\r\n// HTML info3Label = new HTML(\"<p align=\\\"justify\\\" style=\\\"margin-top:5px;margin-left:0px;color:#585858;\\\"><font size=\\\"2\\\">More information available <a target=\\\"_blank\\\" href='\" + \"http://diva-omics-demo.googlecode.com/\" + \"'>here</a>. </font></p>\");\r\n// leftSideLayout.add(info3Label);\r\n\r\n Image screenImg = new Image(\"images/divascreen1.png\");\r\n screenImg.getElement().setAttribute(\"style\", \"width:640px;\");\r\n\r\n welcomePage.add(screenImg);\r\n welcomePage.setCellVerticalAlignment(screenImg, VerticalPanel.ALIGN_MIDDLE);\r\n welcomePage.setCellHorizontalAlignment(screenImg, VerticalPanel.ALIGN_CENTER);\r\n tempSelectDatasetList.setFocus(true);\r\n\r\n }", "protected abstract void iniciarLayout();", "public void mostrarRootLayout() {\n try {\n // Load root layout from fxml file.\n // Carrega o layout raíz do arquivo FXML \"RootLayout\"\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(LivrariaPrincipal.class.getResource(\"view/RootLayout.fxml\"));\n rootLayout = (BorderPane) loader.load();\n\n // Show the scene containing the root layout.\n // Mostra a cena que contém o layour raíz\n Scene scene = new Scene(rootLayout);\n primaryStage.setScene(scene);\n\n // Dá acesso do controlador para o aplicativo principal\n RootLayoutController controller = loader.getController();\n controller.setMainApp(this);\n\n primaryStage.show();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private JPanel createExitPanel() {\n JPanel panel = new JPanel();\n panel.setLayout(new MigLayout());\n panel.setPreferredSize(new Dimension(400, 50));\n panel.setOpaque(true);\n panel.setBorder(BorderFactory.createTitledBorder(\n localization.get(\"ExitsTitle\")));\n return panel;\n }", "private DockLayoutPanel createWestPanel() {\n\t\tSafeHtml safeHtml = SafeHtmlUtils.fromString(\n\t\t\t\t\"Logout\\nusuário: \" + getUserEmailFromJavascript() + \" \\nperfil: \" + getProfile().getName());\n\n\t\tAnchor link = new Anchor(safeHtml, getLogoutUrlFromJavascript());\n\n\t\tVerticalPanel verticalPanel = new VerticalPanel();\n\t\tLabel titleLabel = new Label(\"Sítio do físico\");\n\t\ttitleLabel.addStyleName(\"titleLabel\");\n\t\tverticalPanel.add(titleLabel); // TODO\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// internationalization\n\t\tverticalPanel.add(link);\n\n\t\tDockLayoutPanel dockLayoutPanel = new DockLayoutPanel(Unit.PCT);\n\t\tdockLayoutPanel.addNorth(verticalPanel, 13);\n\n\t\twestAuxiliarPanel = new VerticalPanel();\n\n\t\twestAuxiliarPanel.setVisible(false);\n\t\tdockLayoutPanel.add(westAuxiliarPanel);\n\t\treturn dockLayoutPanel;\n\t}", "public void loginStage(Stage primaryStage){\n loginStage = primaryStage;\n BorderPane logInBp = new BorderPane();\n String currentPage;\n currentPage = setBorderPaneTopLogin(logInBp, \"login\");\n setBorderPaneLogin(logInBp);\n \n \n Scene scene = new Scene(logInBp, Constants.SCENEWIDTH, Constants.SCENEHEIGHT);\n scene.getStylesheets().add(\"/styles/aitBank.css\");// add connection to stylesheet per scene\n loginStage.setTitle(bankName + \": \" + currentPage);\n loginStage.setScene(scene);\n loginStage.show();\n createMainStage(); // creates next stage\n }", "private JPanel getService3JPanel() {\n\n\t\tJPanel panel = new JPanel();\n\t\tBoxLayout boxlayout = new BoxLayout(panel, BoxLayout.X_AXIS);\n\t\tJButton button = new JButton(\"Show all messages from doctor\");\n\t\tbutton.addActionListener(this);\n\t\tpanel.add(button);\n\t\tpanel.add(Box.createRigidArea(new Dimension(10, 0)));\n\t\tpanel.setLayout(boxlayout);\n\n\t\treturn panel;\n\t}", "protected void clearRootLayout() {\n this.rootLayout.setVisible(false);\n this.rootLayout.removeAllComponents();\n removeStyleName(\"done\");\n }", "public void refresh() {\n if (currentClient != null) {\n Page page = currentClient.getCurrentPage();\n if (page != null) {\n root.setCenter(page.getRoot());\n } else {\n root.setCenter(null);\n }\n }else{\n if (page != null) {\n root.setCenter(page.getRoot());\n } else {\n root.setCenter(null);\n }\n }\n root.setPrefWidth(1280);\n root.setPrefHeight(720);\n root.setTop(clientBar.getRoot());\n root.setRight(null); // remove any errors\n //this.mainStage.setScene(scene);\n mainStage.show();\n\n }", "public void postInitComponents(){\r\n btnOk.addActionListener(this);\r\n btnPrint.addActionListener(this);\r\n btnPrint.setVisible(false);\r\n coeusMessageResources = CoeusMessageResources.getInstance();\r\n java.awt.Component[] components = {btnOk,btnPrint};\r\n ScreenFocusTraversalPolicy traversePolicy = new ScreenFocusTraversalPolicy( components );\r\n setFocusTraversalPolicy(traversePolicy);\r\n setFocusCycleRoot(true);\r\n }", "private void initMainComponentsLayout() {\r\n VerticalPanel selectDatasetLayout = new VerticalPanel();\r\n selectDatasetLayout.setWidth(\"300px\");\r\n selectDatasetLayout.setHeight(\"40px\");\r\n selectDatasetList = new ListBox();\r\n selectDatasetList.getElement().setAttribute(\"style\", \"border: 1px solid gray;height: 24px;font-weight: bold;width: 300px;border-radius: 5px;\");\r\n selectDatasetList.setWidth(\"300px\");\r\n selectDatasetList.addItem(\"Select Dataset\");\r\n selectDatasetLayout.add(selectDatasetList);\r\n selectDatasetList.setVisible(false);\r\n\r\n selectSubDatasetList = new ListBox();\r\n selectSubDatasetList.getElement().setAttribute(\"style\", \"border: 1px solid gray;height: 24px;font-weight: bold;width: 300px;border-radius: 5px;\");\r\n selectSubDatasetList.setWidth(\"300px\");\r\n selectSubDatasetList.addItem(\"Select Sub-Dataset\");\r\n selectSubDatasetList.setVisible(false);\r\n selectDatasetLayout.add(selectSubDatasetList);\r\n\r\n tempSelectDatasetList = new ListBox();\r\n tempSelectDatasetList.addItem(\"Select Dataset\");\r\n\r\n tempSelectDatasetList.setWidth(\"300px\");\r\n tempSelectDatasetList.setHeight(\"24px\");\r\n\r\n getDatasetsList(\"\");//get available dataset names\r\n RootPanel.get(\"dropdown_select\").add(selectDatasetLayout);\r\n selectDatasetList.addChangeHandler(this);\r\n selectSubDatasetList.addChangeHandler(this);\r\n\r\n tempSelectDatasetList.addChangeHandler(this);\r\n tempSelectDatasetList.addChangeHandler(this);\r\n Window.addResizeHandler(new ResizeHandler() {\r\n\r\n @Override\r\n public void onResize(ResizeEvent event) {\r\n if (masterWidth != Page.getScreenWidth() || masterHeight != Page.getScreenHeight()) {\r\n BooleanCallback ok = new BooleanCallback() {\r\n\r\n @Override\r\n public void execute(Boolean value) {\r\n if (value) {\r\n Window.Location.reload();\r\n }\r\n }\r\n };\r\n SC.confirm(\"You have changed the screen size the application need to reload the page press OK to proceed or close and back to the old screen\", ok);\r\n }\r\n }\r\n });\r\n\r\n initHomePage();\r\n welcomePage.setStyleName(\"welcomepagelayout\");\r\n RootPanel.get(\"welcomediva\").add(welcomePage);\r\n if (!oldIE) {\r\n initMiddleBodyLayout();\r\n }\r\n }", "@Override\r\n\tpublic void start(Stage primaryStage) throws Exception {\n\t\tprimaryStage.setTitle(\"Border Layout\");\r\n\t\tBorderPane borderpane = new BorderPane();\r\n\t\tScene scene =new Scene(borderpane, 300, 200);\r\n\t\tprimaryStage.setScene(scene);\r\n\t\tLabel labelNorth=new Label();\r\n\t\tlabelNorth.setText(\"Border North\");\r\n\t\tborderpane.setTop(labelNorth);\r\n\t\tLabel labelcenter=new Label();\r\n\t\tlabelcenter.setText(\"Border Center\");\r\n\t\tborderpane.setCenter(labelcenter);\r\n\t\tLabel labelbot=new Label();\r\n\t\tlabelbot.setText(\"Border Bottom\");\r\n\t\tborderpane.setBottom(labelbot);\r\n\t\tLabel labelwest=new Label();\r\n\t\tlabelwest.setText(\"Border WEst\");\r\n\t\tborderpane.setLeft(labelwest);\r\n\t\tprimaryStage.show();\r\n\t\tLabel labeleast=new Label();\r\n\t\tlabeleast.setText(\"Border east\");\r\n\t\tborderpane.setRight(labeleast);\r\n\t}", "private void addComponents(Container contentPane, JPanel linkPanel) throws Exception {\r\n\t\t\t\theaderPanel = new JPanel();\r\n\t\t\t\theaderPanel.setLayout(new BoxLayout(headerPanel, BoxLayout.Y_AXIS));\r\n\t\t\t\tcmpinfoPanel = new JPanel();\r\n\t\t\t\tcmpnamelabel = new JLabel(GUIUtil.getHeaderTitle());\r\n\t\t\t\tcmpinfoPanel.add(cmpnamelabel);\r\n\t\t\t\t\r\n\t\t\t\tJLabel cmpimage = new JLabel(GUIUtil.getIcon());\r\n\t\t\t\tcmpinfoPanel.add(cmpimage);\r\n\t\t\t\tcmpnamelabel.setForeground(Color.blue);\r\n\t\t\t\tcmpnamelabel.setFont(new Font(\"Serif\", Font.BOLD, 20));\r\n\t\t\t\theaderPanel.add(cmpinfoPanel);\r\n\r\n\t\t\t\twelcomeLabel = new JLabel(\"Welcome \" + getUser());\r\n\t\t\t\theaderPanel.add(welcomeLabel);\r\n\t\t\t\tcontentPane.add(headerPanel, BorderLayout.PAGE_START);\r\n\t\t\t\t\r\n\t\t\t\tJPanel certificatePanel = new JPanel();\r\n\t\t\t\tcertificatePanel.setBorder(BorderFactory.createEtchedBorder());\r\n\t\t\t\t\r\n\t\t\t\tcontentPane.add(certificatePanel,BorderLayout.CENTER);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tbtnpnl = new JPanel();\r\n\t\t\t\tbtnpnl.setBorder(BorderFactory.createEtchedBorder());\r\n\t\t\t\tcontentPane.add(btnpnl,BorderLayout.SOUTH);\r\n\t\t\t\t\r\n\t\t\t\tokButton = new JButton(\"OK\");\r\n\t\t\t\tgoHomePageButton = new JButton(\"Back\");\r\n\t\t\t\t\r\n\t\t\t\tbtnpnl.add(okButton);\r\n\t\t\t\tbtnpnl.add(goHomePageButton);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tObject rowData[][] = { {\" \", \"\",\" \",\" \",\" \",\" \",\" \",\" \",\" \",\" \" }\r\n\t \t\t};\r\n\t Object columnNames[] = { \"Software Name\",\"Download\",\"Remarks\" };\r\n\t JTable table1 = new JTable(rowData, columnNames);\r\n\r\n\t JScrollPane scrollPane = new JScrollPane(table1);\r\n\t frame.add(scrollPane, BorderLayout.CENTER);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}", "@AutoGenerated\r\n\tprivate AbsoluteLayout buildMainLayout() {\n\t\tmainLayout = new AbsoluteLayout();\r\n\t\tmainLayout.setImmediate(false);\r\n\t\tmainLayout.setWidth(\"360px\");\r\n\t\tmainLayout.setHeight(\"440px\");\r\n\t\t\r\n\t\t// top-level component properties\r\n\t\tsetWidth(\"360px\");\r\n\t\tsetHeight(\"440px\");\r\n\t\t\r\n\t\t// userSelect\r\n\t\tuserSelect = new ListSelect();\r\n\t\tuserSelect.setCaption(\"Select User\");\r\n\t\tuserSelect.setImmediate(false);\r\n\t\tuserSelect.setWidth(\"320px\");\r\n\t\tuserSelect.setHeight(\"326px\");\r\n\t\tmainLayout.addComponent(userSelect, \"top:34.0px;left:20.0px;\");\r\n\t\t\r\n\t\t// submitButton\r\n\t\tsubmitButton = new Button();\r\n\t\tsubmitButton.setCaption(\"OK\");\r\n\t\tsubmitButton.setImmediate(true);\r\n\t\tsubmitButton.setWidth(\"-1px\");\r\n\t\tsubmitButton.setHeight(\"-1px\");\r\n\t\tmainLayout.addComponent(submitButton, \"top:394.0px;left:155.0px;\");\r\n\t\t\r\n\t\treturn mainLayout;\r\n\t}", "public static BorderPane GUIRegisterUser(){\n\n BorderPane rootreg = new BorderPane();\n\n Label registration = new Label(\"REGISTRATION\");\n registration.setFont(new Font(20));\n registration.setStyle(\"-fx-font-weight: bold\");\n\n Label nameLabel = new Label(\"Your name:\");\n nameLabel.setFont(new Font(14));\n nameLabel.setPadding(new Insets(0,24,2,0));\n clientNameRegistr = new TextField();\n clientNameRegistr.setMaxWidth(130);\n\n Label nameLogin = new Label(\"Your login:\");\n nameLogin.setFont(new Font(14));\n nameLogin.setPadding(new Insets(0,26,5,0));\n clientLoginRegistr = new TextField();\n clientLoginRegistr.setMaxWidth(130);\n\n Label passwordLabel = new Label(\"Your password:\");\n passwordLabel.setFont(new Font(14));\n passwordLabel.setPadding(new Insets(0,0,15,0));\n clientPasswordRegistr = new TextField();\n clientPasswordRegistr.setMaxWidth(130);\n\n registerMe.setPrefWidth(100);\n backToMainMenu.setPrefWidth(100);\n\n HBox hbox = new HBox();\n hbox.setSpacing(15);\n\n HBox hbox1 = new HBox();\n hbox1.setSpacing(15);\n\n HBox hbox2 = new HBox();\n hbox2.setSpacing(15);\n\n HBox hbox3 = new HBox();\n hbox3.setSpacing(15);\n\n HBox hbox4 = new HBox();\n hbox4.setSpacing(15);\n\n VBox vbox = new VBox();\n vbox.setSpacing(15);\n\n hbox.getChildren().addAll(registration);\n\n hbox1.getChildren().addAll(nameLabel, clientNameRegistr);\n hbox2.getChildren().addAll(nameLogin, clientLoginRegistr);\n hbox3.getChildren().addAll(passwordLabel, clientPasswordRegistr);\n hbox4.getChildren().addAll(backToMainMenu,registerMe);\n\n vbox.getChildren().addAll(hbox,hbox1,hbox2,hbox3,hbox4);\n\n rootreg.setPadding(new Insets(30, 0, 150, 40));\n rootreg.setStyle(\"-fx-background-image: url('\" + image3 + \"'); \" +\n \"-fx-background-position: center center; \" +\n \"-fx-background-repeat: stretch;\");\n\n rootreg.setCenter(vbox);\n return rootreg;\n\n }", "private void $$$setupUI$$$ ()\n {\n contentPane = new JPanel();\n contentPane.setLayout(new BorderLayout(0, 0));\n contentPane.setBackground(new Color(-16777216));\n contentPane.setPreferredSize(new Dimension(300, 100));\n contentPane.setRequestFocusEnabled(false);\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));\n panel1.setBackground(new Color(-16777216));\n panel1.setPreferredSize(new Dimension(200, 50));\n contentPane.add(panel1, BorderLayout.SOUTH);\n buttonOK = new JButton();\n buttonOK.setPreferredSize(new Dimension(100, 31));\n buttonOK.setText(\"OK\");\n panel1.add(buttonOK);\n final JLabel label1 = new JLabel();\n label1.setPreferredSize(new Dimension(30, 10));\n label1.setText(\"\");\n panel1.add(label1);\n buttonCancel = new JButton();\n buttonCancel.setPreferredSize(new Dimension(100, 31));\n buttonCancel.setText(\"Cancel\");\n panel1.add(buttonCancel);\n textField1 = new JTextField();\n textField1.setBackground(new Color(-15987184));\n Font textField1Font = Tools.getFont(\"Arial\", -1, 20, textField1.getFont());\n if (textField1Font != null)\n {\n textField1.setFont(textField1Font);\n }\n textField1.setForeground(new Color(-1));\n textField1.setHorizontalAlignment(0);\n textField1.setOpaque(false);\n textField1.setPreferredSize(new Dimension(300, 50));\n contentPane.add(textField1, BorderLayout.CENTER);\n final JLabel label2 = new JLabel();\n label2.setPreferredSize(new Dimension(11, 11));\n label2.setText(\" \");\n contentPane.add(label2, BorderLayout.WEST);\n final JLabel label3 = new JLabel();\n label3.setPreferredSize(new Dimension(11, 11));\n label3.setText(\" \");\n contentPane.add(label3, BorderLayout.EAST);\n final JLabel label4 = new JLabel();\n label4.setPreferredSize(new Dimension(11, 11));\n label4.setText(\"\");\n contentPane.add(label4, BorderLayout.NORTH);\n }", "private void initUI(BorderPane mainPane) {\n //Top message\n Label topMessage = new Label(\"Personal Loan Calculator\");\n topMessage.setFont(Font.font(\"Arial\", FontWeight.NORMAL, FontPosture.REGULAR, 30));\n\n //Top HBox\n HBox topLayout = new HBox(10);\n topLayout.getChildren().add(topMessage);\n topLayout.setStyle(\"-fx-background-color: #d2d2a6\");\n topLayout.setAlignment(Pos.CENTER);\n topLayout.setMinHeight(100);\n\n //Defining text for instructions\n Text loanAmountText = new Text(\"Loan amount\");\n loanAmountText.setFont(Font.font(\"Arial\", FontWeight.NORMAL, FontPosture.REGULAR, 25));\n\n Text loanTermText = new Text(\"Loan term\");\n loanTermText.setFont(Font.font(\"Arial\", FontWeight.NORMAL, FontPosture.REGULAR, 25));\n\n Text interestRateText = new Text(\"Interest rate\");\n interestRateText.setFont(Font.font(\"Arial\", FontWeight.NORMAL, FontPosture.REGULAR, 25));\n\n Text loanTypeText = new Text(\"Loan type\");\n loanTypeText.setFont(Font.font(\"Arial\", FontWeight.NORMAL, FontPosture.REGULAR, 25));\n\n //Left text VBox\n VBox textOptions = new VBox(60);\n textOptions.getChildren().addAll(loanAmountText, loanTermText, interestRateText, loanTypeText);\n textOptions.setStyle(\"-fx-background-color: BEIGE;\");\n textOptions.setPadding(new Insets(60,30,30,50));\n textOptions.setAlignment(Pos.BASELINE_RIGHT);\n\n mainPane.setStyle(\"-fx-background-color: BEIGE\");\n mainPane.setTop(topLayout);\n mainPane.setLeft(textOptions);\n\n }", "private void initSwingComponents(){\r\n\t \r\n mainPanel = new JPanel();\r\n mainPanel.setLayout(new BorderLayout());\r\n mainPanel.add(javafxPanel, BorderLayout.CENTER);\r\n upper = new JPanel();\r\n /* JPanel urlPanel = new JPanel(new FlowLayout());\r\n urlField = new JTextField();\r\n urlField.setColumns(50);\r\n urlPanel.add(urlField);\r\n goButton = new JButton(\"Go\");\r\n\r\n *//**\r\n * Handling the loading of new URL, when the user\r\n * enters the URL and clicks on Go button.\r\n *//*\r\n goButton.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n Platform.runLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n String url = urlField.getText();\r\n if ( url != null && url.length() > 0){\r\n // webComponent.getEngine().load(url);\r\n loadUrl(\"vg\");\r\n }\r\n }\r\n });\r\n\r\n }\r\n });*/ //go buttoon\r\n contentPrevious = new JPanel(new FlowLayout());\r\n JLabel lblPrevious = new JLabel(\"contentPrevious JPanel\");\r\n contentPrevious.add(lblPrevious);\r\n contentNext = new JPanel(new FlowLayout());\r\n JLabel lblNext = new JLabel(\"contentNext JPanel\");\r\n contentNext.add(lblNext);\r\n contentCurrent = new JPanel(new FlowLayout());\r\n JLabel lblCurrent = new JLabel(\"NETLESS\");\r\n contentCurrent.add(lblCurrent);\r\n upper.add(contentCurrent);\r\n lower = new JPanel(new FlowLayout());\r\n backButton = new JButton(\"<<< Back\");\r\n backButton.addActionListener(new ActionListener() {\r\n\t\t\r\n\t\t@Override\r\n\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t// TODO Auto-generated method stub\r\n\t\t\t/*int sizeHistory = engine.getHistory().getEntries().size();\r\n\t if(sizeHistory>1)\r\n\t {\r\n\t Entry entry = engine.getHistory().getEntries().get(sizeHistory-2);\r\n\t System.out.println(\"URL hist.: \" + entry.getUrl());\r\n\t loadUrl(entry.getUrl());\r\n\t }*/\r\n\t\t\t\r\n\t\t\t /*engine.getHistory().go(-1);\r\n\t\t\t loadUrl(engine.getHistory().getEntries().get(engine.getHistory().getCurrentIndex()).getUrl());*/\r\n\t\t\t final WebHistory history=engine.getHistory();\r\n\t\t\t ObservableList<WebHistory.Entry> entryList=history.getEntries();\r\n\t\t\t int currentIndex=history.getCurrentIndex();\r\n\t\t\t // Out(\"currentIndex = \"+currentIndex);\r\n\t\t\t // Out(entryList.toString().replace(\"],\",\"]\\n\"));\r\n\t\t\t System.out.println(\"history.getCurrentIndex()==\"+history.getCurrentIndex());\r\n\t\t\t if(history.getCurrentIndex()>0){\r\n\t\t\t Platform.runLater(new Runnable() { public void run() { history.go(-1); } });\r\n\t\t\t System.out.println(entryList.get(currentIndex>0?currentIndex-1:currentIndex).getUrl());\r\n\t\r\n\t\t\t }\r\n\t\t\t }\r\n\t});\r\n lower.add(backButton);\r\n forwardButton = new JButton(\"Forward >>>\");\r\n forwardButton.addActionListener(new ActionListener() {\r\n\t\t\r\n\t\t@Override\r\n\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t// TODO Auto-generated method stub\r\n\t\t\tfinal WebHistory history=engine.getHistory();\r\n\t\t ObservableList<WebHistory.Entry> entryList=history.getEntries();\r\n\t\t int currentIndex=history.getCurrentIndex();\r\n//\t\t Out(\"currentIndex = \"+currentIndex);\r\n//\t\t Out(entryList.toString().replace(\"],\",\"]\\n\"));\r\n\t\t\t if(history.getCurrentIndex()<entryList.size()-1){\r\n\t\t\t \r\n\t\t Platform.runLater(new Runnable() { public void run() { history.go(1); } });\r\n\t\t System.out.println(entryList.get(currentIndex<entryList.size()-1?currentIndex+1:currentIndex).getUrl());\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t});\r\n lower.add(forwardButton);\r\n mainPanel.add(upper, BorderLayout.NORTH);\r\n mainPanel.add(lower,BorderLayout.SOUTH);\r\n \r\n /*urlPanel.add(goButton);\r\n mainPanel.add(urlPanel, BorderLayout.NORTH);*/ //Go button\r\n\r\n this.add(mainPanel);\r\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n this.setSize(700,600);\r\n \r\n }", "public void addQuickClusterBox() {\n final JPanel label = new JPanel();\n label.setBackground(Browser.PANEL_BACKGROUND);\n label.setLayout(new BoxLayout(label, BoxLayout.Y_AXIS));\n final JTextField clusterTF = new Widget.MTextField(CLUSTER_NAME_PH);\n label.add(clusterTF);\n final List<JTextField> hostsTF = new ArrayList<JTextField>();\n for (int i = 1; i < 3; i++) {\n final JTextField nl = new Widget.MTextField(\"node\" + i + \"...\", 15);\n nl.setToolTipText(\"<html><b>enter the node name or ip</b><br>node\"\n + i + \"<br>or ...<br>\"\n + System.getProperty(\"user.name\")\n + \"@node\" + i + \":22...\" + \"<br>\");\n hostsTF.add(nl);\n nl.selectAll();\n final Font font = nl.getFont();\n final Font newFont = font.deriveFont(\n Font.PLAIN,\n (float) (font.getSize() / 1.2));\n nl.setFont(newFont);\n label.add(nl);\n }\n final JPanel startPanel = new JPanel(new BorderLayout());\n \n startPanel.setBackground(Browser.PANEL_BACKGROUND);\n final TitledBorder titleBorder = Tools.getBorder(QUICK_CLUSTER_TITLE);\n startPanel.setBorder(titleBorder);\n final JPanel left = new JPanel();\n left.setBackground(Browser.PANEL_BACKGROUND);\n left.add(label);\n startPanel.add(left, BorderLayout.LINE_START);\n final MyButton loadClusterBtn = quickClusterButton(clusterTF, hostsTF);\n startPanel.add(loadClusterBtn, BorderLayout.LINE_END);\n c.fill = GridBagConstraints.HORIZONTAL;\n if (c.gridx != 0) {\n c.gridx = 0;\n c.gridy++;\n }\n mainPanel.add(startPanel, c);\n c.gridx++;\n if (c.gridx > 2) {\n c.gridx = 0;\n c.gridy++;\n }\n }", "void goToLogin() {\n mainFrame.setPanel(panelFactory.createPanel(PanelFactoryOptions.panelNames.LOGIN));\n }", "public void setBorderPaneCenterMain(BorderPane bp){\n VBox userInfo = new VBox();\n bp.setCenter(userInfo);\n \n //style\n userInfo.getStyleClass().add(\"nodeBkg\");\n userInfo.setPadding(new Insets(40));\n \n // borderPane Settings\n bp.setAlignment(userInfo, Pos.CENTER);\n \n \n //Vbox settings\n userInfo.setAlignment(Pos.CENTER);\n \n // create labels\n Label savings = new Label(\"1: Savings Account\");\n Label netSavings = new Label(\"2: Net Savings Account\");\n Label cheque = new Label(\"3: Cheque Account\");\n Label fixed = new Label(\"4: Fixed Account\");\n \n \n // add labels to VBOX\n userInfo.getChildren().add(savings);\n userInfo.getChildren().add(netSavings);\n userInfo.getChildren().add(cheque);\n userInfo.getChildren().add(fixed);\n \n \n \n }", "@AutoGenerated\n\tprivate AbsoluteLayout buildMainLayout() {\n\t\tmainLayout = new AbsoluteLayout();\n\t\tmainLayout.setImmediate(false);\n\t\tmainLayout.setWidth(\"540px\");\n\t\tmainLayout.setHeight(\"400px\");\n\t\tmainLayout.setMargin(true);\n\t\t\n\t\t// top-level component properties\n\t\tsetWidth(\"540px\");\n\t\tsetHeight(\"400px\");\n\t\t\n\t\t// commentField\n\t\tcommentField = new TextField();\n\t\tcommentField.setCaption(\"Comentarios\");\n\t\tcommentField.setImmediate(false);\n\t\tcommentField.setWidth(\"400px\");\n\t\tcommentField.setHeight(\"140px\");\n\t\tmainLayout.addComponent(commentField, \"top:100.0px;left:20.0px;\");\n\t\t\n\t\t// discountField\n\t\tdiscountField = new TextField();\n\t\tdiscountField.setCaption(\"Descuento\");\n\t\tdiscountField.setImmediate(false);\n\t\tdiscountField.setWidth(\"80px\");\n\t\tdiscountField.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(discountField, \"top:140.0px;left:440.0px;\");\n\t\t\n\t\t// invoiceField\n\t\tinvoiceField = new ComboBox();\n\t\tinvoiceField.setCaption(\"Código Factura\");\n\t\tinvoiceField.setImmediate(false);\n\t\tinvoiceField.setWidth(\"200px\");\n\t\tinvoiceField.setHeight(\"-1px\");\n\t\tinvoiceField.setRequired(true);\n\t\tmainLayout.addComponent(invoiceField, \"top:20.0px;left:200.0px;\");\n\t\t\t\t\n\t\t// invoiceLineDateField\n\t\tinvoiceLineDateField = new DateField();\n\t\tinvoiceLineDateField.setCaption(\"Fecha\");\n\t\tinvoiceLineDateField.setImmediate(false);\n\t\tinvoiceLineDateField.setWidth(\"100px\");\n\t\tinvoiceLineDateField.setHeight(\"-1px\");\n\t\tinvoiceLineDateField.setInvalidAllowed(false);\n\t\tinvoiceLineDateField.setRequired(true);\n\t\tinvoiceLineDateField.setResolution(4);\n\t\tmainLayout.addComponent(invoiceLineDateField,\n\t\t\t\t\"top:20.0px;left:420.0px;\");\n\t\t\n\t\t// invoiceLineStatusField\n\t\tinvoiceLineStatusField = new ComboBox();\n\t\tinvoiceLineStatusField.setCaption(\"Estado\");\n\t\tinvoiceLineStatusField.setImmediate(false);\n\t\tinvoiceLineStatusField.setWidth(\"240px\");\n\t\tinvoiceLineStatusField.setHeight(\"-1px\");\n\t\tinvoiceLineStatusField.setRequired(true);\n\t\tmainLayout.addComponent(invoiceLineStatusField, \"top:58.0px;left:281.0px;\");\n\t\t\t\t\n\t\t// ivaField\n\t\tivaField = new ComboBox();\n\t\tivaField.setCaption(\"Iva\");\n\t\tivaField.setImmediate(false);\n\t\tivaField.setWidth(\"80px\");\n\t\tivaField.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(ivaField, \"top:176.0px;left:440.0px;\");\n\t\t\n\t\t// numberField\n\t\tnumberField = new TextField();\n\t\tnumberField.setCaption(\"Número\");\n\t\tnumberField.setImmediate(false);\n\t\tnumberField.setWidth(\"80px\");\n\t\tnumberField.setHeight(\"-1px\");\n\t\tnumberField.setRequired(true);\n\t\tmainLayout.addComponent(numberField, \"top:20.0px;left:20.0px;\");\n\t\t\n\t\t// priceField\n\t\tpriceField = new TextField();\n\t\tpriceField.setCaption(\"Precio\");\n\t\tpriceField.setImmediate(false);\n\t\tpriceField.setWidth(\"80px\");\n\t\tpriceField.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(priceField, \"top:100.0px;left:440.0px;\");\n\t\t\n\t\t// priceFinalField\n\t\tpriceFinalField = new TextField();\n\t\tpriceFinalField.setCaption(\"Precio Final\");\n\t\tpriceFinalField.setImmediate(false);\n\t\tpriceFinalField.setWidth(\"80px\");\n\t\tpriceFinalField.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(priceFinalField, \"top:216.0px;left:440.0px;\");\n\t\t\n\t\t// servicesField\n\t\tservicesField = new ServiceCollectionField();\n\t\tservicesField.setImmediate(false);\n\t\tservicesField.setWidth(\"500px\");\n\t\tservicesField.setHeight(\"122px\");\n\t\tmainLayout.addComponent(servicesField, \"top:260.0px;left:20.0px;\");\n\t\t\n\t\treturn mainLayout;\n\t}", "private void $$$setupUI$$$() {\n topPanel = new JPanel();\n topPanel.setLayout(new GridLayoutManager(4, 1, new Insets(0, 0, 0, 0), -1, -1));\n headerLabel = new JLabel();\n headerLabel.setText(\"Header\");\n topPanel.add(headerLabel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n contentPanel = new JPanel();\n contentPanel.setLayout(new BorderLayout(0, 0));\n topPanel.add(contentPanel, new GridConstraints(1, 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 final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 4, new Insets(0, 0, 0, 0), -1, -1));\n topPanel.add(panel1, new GridConstraints(2, 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 final Spacer spacer1 = new Spacer();\n panel1.add(spacer1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n buttonBack = new JButton();\n buttonBack.setText(\"Back\");\n panel1.add(buttonBack, 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 buttonNext = new JButton();\n buttonNext.setText(\"Next\");\n panel1.add(buttonNext, new GridConstraints(0, 2, 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 buttonCancel = new JButton();\n buttonCancel.setText(\"Cancel\");\n panel1.add(buttonCancel, new GridConstraints(0, 3, 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 JPanel panel2 = new JPanel();\n panel2.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n topPanel.add(panel2, new GridConstraints(3, 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 statusLabel = new JLabel();\n statusLabel.setText(\"Status\");\n panel2.add(statusLabel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "public void onModuleLoad() {\n\n Button buttonPingServer = new Button(\"Ping Server\");\n Button buttonCreateAppointmentBook = new Button(\"Create AppointmentBook\");\n Button buttonAddCall = new Button(\"Add Appointment\");\n Button buttonPrettyPrintAllCalls = new Button(\"Display All Appointments\");\n Button buttonSearch = new Button(\"Search Appointment\");\n Button buttonHelp = new Button(\"Help\");\n\n //Text box~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n final TextArea textBoxResults = new TextArea();\n textBoxResults.setReadOnly(true);\n textBoxResults.setSize(\"800px\",\"200px\");\n\n //Vertical Panels~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n VerticalPanel panelHeader = new VerticalPanel();\n panelHeader.add(new Label());\n panelHeader.add(textBoxResults);\n\n //Adding a Owner\n VerticalPanel panelAddNewCustomer = new VerticalPanel();\n panelAddNewCustomer.add(new Label(\"Owner Name:\"));\n final TextBox textBoxOwnerName = new TextBox();\n panelAddNewCustomer.add(textBoxOwnerName);\n;\n\n panelAddNewCustomer.add(new Label(\"Description:\"));\n final TextBox textBoxDexcription = new TextBox();\n panelAddNewCustomer.add(textBoxDexcription);\n\n panelAddNewCustomer.add(new Label(\"Begin Time(MM/dd/yyyy HH:mm am/pm (12 Hour format):\"));\n final TextBox textBoxStartTime = new TextBox();\n panelAddNewCustomer.add(textBoxStartTime);\n\n panelAddNewCustomer.add(new Label(\"End Time MM/dd/yyyy HH:mm am/pm (12 Hour format):\"));\n final TextBox textBoxEndTime = new TextBox();\n panelAddNewCustomer.add(textBoxEndTime);\n\n //add all the buttons to the root panel ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n RootPanel rootPanel = RootPanel.get();\n rootPanel.add(buttonAddCall,50,320);\n rootPanel.add(buttonCreateAppointmentBook,200,320);\n rootPanel.add(buttonPrettyPrintAllCalls,400,320);\n rootPanel.add(buttonSearch,600,320);\n //rootPanel.add(buttonPingServer,525,50);\n rootPanel.add(buttonHelp,780,320);\n rootPanel.add(panelAddNewCustomer, 50, 80);\n\n Label l1 = new Label(\"You can see your Appointment details below -\");\n rootPanel.add(l1,50,370);\n\n Label l2 = new Label(\"If you wish to create/add/search/display appointment in appointment book. \\n Please choose the following options by clicking on button -\");\n rootPanel.add(l2,50,270);\n\n Label l3 = new Label(\"Welcome... Please enter following details and create/add/search/display your own appointment book -\");\n rootPanel.add(l3,50,50);\n\n //add Vertical Panels to the root panel~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n rootPanel.add(panelHeader, 50, 400);\n\n //Define all the addClickHandlers here~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n //Ping\n buttonPingServer.addClickHandler(new ClickHandler() {\n public void onClick(ClickEvent clickEvent) {\n AppointmentBookServiceAsync async = GWT.create(AppointmentBookService.class);\n async.createAppointmentBook(new AsyncCallback<AbstractAppointmentBook>() {\n\n public void onFailure(Throwable ex) {\n Window.alert(ex.toString());\n }\n\n public void onSuccess(AbstractAppointmentBook AppointmentBook) {\n StringBuilder sb = new StringBuilder(AppointmentBook.toString());\n Collection<AbstractAppointment> calls = AppointmentBook.getAppointments();\n for (AbstractAppointment call : calls) {\n sb.append(call);\n sb.append(\"\\n\");\n }\n Window.alert(sb.toString());\n }\n });\n }\n });\n\n //Help Readme\n buttonHelp.addClickHandler(new ClickHandler() {\n @Override\n public void onClick(ClickEvent clickEvent) {\n Window.alert(\"This is the README for the AppointmentBook RIA application! PROJECT 5 - POOJA MANE\\n\" +\n \"Please enter the appropriate information for a owner. Including the name,\" +\n \"description, and a begin and end time for the Appointment\\n\" +\n \"You may save owners AppointmentBooks here, search them by begin time and endtime or \" +\n \"display all AppointmentBooks\");\n }\n });\n\n //CreateAppointmentBook\n buttonCreateAppointmentBook.addClickHandler(new ClickHandler() {\n @Override\n public void onClick(ClickEvent clickEvent) {\n try {\n if(textBoxOwnerName.getValue() == \"\"){\n Window.alert(\"Please provide correct arguments for owner name\");\n return;\n }\n if(textBoxDexcription.getValue() == \"\"){\n Window.alert(\"Please provide correct arguments for dscription\");\n return;\n }\n\n if(textBoxStartTime.getValue() == \"\"){\n Window.alert(\"Please provide correct arguments for start time\");\n return;\n }\n if(textBoxEndTime.getValue() == \"\"){\n Window.alert(\"Please provide correct arguments for end Time\");\n return;\n }\n final Appointment tempAppointment = new Appointment(textBoxDexcription.getValue().trim(), textBoxStartTime.getValue().trim(), textBoxEndTime.getValue().trim());\n if(tempAppointment.exceptionWasThrown()){\n return;\n }\n AppointmentBookServiceAsync async = GWT.create(AppointmentBookService.class);\n async.add(textBoxOwnerName.getValue(),tempAppointment , new AsyncCallback<Void>() {\n @Override\n public void onFailure(Throwable throwable) {\n Window.alert(throwable.getMessage());\n throwable.printStackTrace();\n throwable.getStackTrace();\n }\n @Override\n public void onSuccess(Void aVoid) {\n textBoxResults.setValue(textBoxOwnerName.getValue()+\" has added a new Appointment: \"+tempAppointment.toString() );\n }\n });\n }\n catch(Exception ex){\n //Not enough args or something\n Window.alert(\"Please provide correct arguments\"+ex.getMessage());\n return;\n }\n\n }\n });\n\n //Add a Appointment\n buttonAddCall.addClickHandler(new ClickHandler() {\n @Override\n public void onClick(ClickEvent clickEvent) {\n try {\n if(textBoxOwnerName.getValue() == \"\"){\n Window.alert(\"Please provide correct arguments for owner name\");\n return;\n }\n if(textBoxDexcription.getValue() == \"\"){\n Window.alert(\"Please provide correct arguments for description\");\n return;\n }\n\n if(textBoxStartTime.getValue() == \"\"){\n Window.alert(\"Please provide correct arguments for start time\");\n return;\n }\n if(textBoxEndTime.getValue() == \"\"){\n Window.alert(\"Please provide correct arguments for end Time\");\n return;\n }\n final Appointment tempAppointment = new Appointment(textBoxDexcription.getValue(), textBoxStartTime.getValue(), textBoxEndTime.getValue());\n if(tempAppointment.exceptionWasThrown()){\n return;\n }\n AppointmentBookServiceAsync async = GWT.create(AppointmentBookService.class);\n async.add(textBoxOwnerName.getValue().trim(),tempAppointment , new AsyncCallback<Void>() {\n @Override\n public void onFailure(Throwable throwable) {\n Window.alert(throwable.getMessage());\n }\n\n @Override\n public void onSuccess(Void aVoid) {\n textBoxResults.setValue(textBoxOwnerName.getValue()+\" has added a new Appointment: \"+tempAppointment.toString() );\n }\n });\n }\n catch(Exception ex){\n //Not enough args or something\n Window.alert(\"Please provide correct arguments\"+ex.getMessage());\n return;\n }\n\n }\n });\n //pretty Print\n buttonPrettyPrintAllCalls.addClickHandler(new ClickHandler() {\n @Override\n public void onClick(ClickEvent clickEvent) {\n AppointmentBookServiceAsync async = GWT.create(AppointmentBookService.class);\n async.print(new AsyncCallback<Map<String, AppointmentBook>>() {\n\n @Override\n public void onFailure(Throwable throwable) {\n Window.alert(throwable.getMessage());\n }\n\n @Override\n public void onSuccess(Map<String, AppointmentBook> stringAppointmentBookMap) {\n String prettyCalls = \"\";\n //pretty print it\n if (stringAppointmentBookMap == null || stringAppointmentBookMap.isEmpty()) {\n Window.alert(\"No AppointmentBooks to show\");\n return;\n }\n for (String customer : stringAppointmentBookMap.keySet()) {\n Collection calls = stringAppointmentBookMap.get(customer).getAppointments();\n prettyCalls+=prettyPrint((List<Appointment>) calls,customer)+\"\\n\";\n }\n textBoxResults.setValue(\"# OwnerName Description Start Time End Time Duration \\n\"+prettyCalls);\n }\n });\n }\n });\n //Search for user\n buttonSearch.addClickHandler(new ClickHandler() {\n @Override\n public void onClick(ClickEvent clickEvent) {\n if(textBoxOwnerName.getValue() == \"\"){\n Window.alert(\"Please provide correct arguments for OWNER name\");\n return;\n }\n if(textBoxStartTime.getValue() == \"\"){\n Window.alert(\"Please provide correct arguments for begin time\");\n return;\n }\n if(textBoxEndTime.getValue() == \"\"){\n Window.alert(\"Please provide correct arguments for end time\");\n return;\n }\n\n DefaultDateTimeFormatInfo formatInfo = new DefaultDateTimeFormatInfo();\n DateTimeFormat ShortDateFormat = new DateTimeFormat(\"MM/dd/yyyy hh:mm a\",formatInfo){};\n Long begin,end;\n try {\n Date search = ShortDateFormat.parse(textBoxStartTime.getValue().trim());\n Date search1 = ShortDateFormat.parse(textBoxEndTime.getValue().trim());\n }\n catch(Exception ex){\n //System.out.println(\"Error Parsing \"+ ex);\n Window.alert(\"Enter dates in valid format\");\n return;\n\n }\n //Search for appointment\n AppointmentBookServiceAsync async = GWT.create(AppointmentBookService.class);\n async.search(textBoxOwnerName.getValue(), textBoxStartTime.getValue(), textBoxEndTime.getValue(),new AsyncCallback<List<Appointment>>() {\n @Override\n public void onFailure(Throwable throwable) {\n Window.alert(\"error \"+throwable.getMessage());\n }\n\n @Override\n public void onSuccess(List<Appointment> Appointments) {\n if(Appointments==null||Appointments.isEmpty()){\n Window.alert(\"No Appointments matching under \"+textBoxOwnerName.getValue()+\"\\n or values not entered in proper format.. Something wrong .. Please try again\");\n return;\n }\n //pretty print the search calls\n textBoxResults.setValue(\"# OwnerName Description Start Time End Time Duration \\n\"+prettyPrint(Appointments,textBoxOwnerName.getValue()));\n }\n });\n\n }\n });\n }", "public Layout() {\n super(\"Chitrashala\");\n initComponents();\n }", "private void setLayout (){\r\n /* define placeholders for content*/\r\n HBox mainFrame= new HBox(); //the Main frame component.\r\n root.getChildren().add(mainFrame); //add it to the scene\r\n \r\n \r\n \r\n mainFrame.getChildren().addAll(leftPane,rightPane);\r\n \r\n Rectangle leftR= new Rectangle(600.0, 900.0);\r\n leftR.setFill(Color.WHITE);\r\n Rectangle rightR= new Rectangle(300.0, 900.0);\r\n rightR.setFill(Color.RED);\r\n rightPane.getChildren().add(rightR);\r\n leftPane.getChildren().add(leftR);\r\n \r\n \r\n }", "@AutoGenerated\r\n\tprivate VerticalLayout buildLayoutLogin() {\n\t\tlayoutLogin = new VerticalLayout();\r\n\t\tlayoutLogin.setImmediate(false);\r\n\t\tlayoutLogin.setWidth(\"100.0%\");\r\n\t\tlayoutLogin.setHeight(\"100.0%\");\r\n\t\tlayoutLogin.setMargin(false);\r\n\t\tlayoutLogin.setSpacing(true);\r\n\t\t\r\n\t\t// pnlLogo\r\n\t\tpnlLogo = buildPnlLogo();\r\n\t\tlayoutLogin.addComponent(pnlLogo);\r\n\t\tlayoutLogin.setComponentAlignment(pnlLogo, new Alignment(24));\r\n\t\t\r\n\t\t// verticalLayout_3\r\n\t\tverticalLayout_3 = buildVerticalLayout_3();\r\n\t\tlayoutLogin.addComponent(verticalLayout_3);\r\n\t\t\r\n\t\t// pnlDatos\r\n\t\tpnlDatos = buildPnlDatos();\r\n\t\tlayoutLogin.addComponent(pnlDatos);\r\n\t\tlayoutLogin.setComponentAlignment(pnlDatos, new Alignment(48));\r\n\t\t\r\n\t\t// pnlCaptcha\r\n\t\tpnlCaptcha = new VerticalLayout();\r\n\t\tpnlCaptcha.setCaption(\"Digite los Valores que aparecen en la Imagen\");\r\n\t\tpnlCaptcha.setImmediate(false);\r\n\t\tpnlCaptcha.setWidth(\"100.0%\");\r\n\t\tpnlCaptcha.setHeight(\"60px\");\r\n\t\tpnlCaptcha.setMargin(false);\r\n\t\tlayoutLogin.addComponent(pnlCaptcha);\r\n\t\tlayoutLogin.setComponentAlignment(pnlCaptcha, new Alignment(20));\r\n\t\t\r\n\t\t// pnlCaptchaButtons\r\n\t\tpnlCaptchaButtons = buildPnlCaptchaButtons();\r\n\t\tlayoutLogin.addComponent(pnlCaptchaButtons);\r\n\t\tlayoutLogin.setComponentAlignment(pnlCaptchaButtons, new Alignment(20));\r\n\t\t\r\n\t\t// pnlBotonera\r\n\t\tpnlBotonera = buildPnlBotonera();\r\n\t\tlayoutLogin.addComponent(pnlBotonera);\r\n\t\tlayoutLogin.setComponentAlignment(pnlBotonera, new Alignment(20));\r\n\t\t\r\n\t\t// verticalLayout_4\r\n\t\tverticalLayout_4 = buildVerticalLayout_4();\r\n\t\tlayoutLogin.addComponent(verticalLayout_4);\r\n\t\tlayoutLogin.setComponentAlignment(verticalLayout_4, new Alignment(6));\r\n\t\t\r\n\t\treturn layoutLogin;\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 }", "@AutoGenerated\n\tprivate VerticalLayout buildMainLayout() {\n\t\tmainLayout = new VerticalLayout();\n\t\tmainLayout.setStyleName(\"contenido\");\n\t\tmainLayout.setImmediate(false);\n\t\tmainLayout.setWidth(\"100%\");\n\t\tmainLayout.setHeight(\"-1px\");\n\t\tmainLayout.setMargin(true);\n\t\tmainLayout.setSpacing(true);\n\t\t\n\t\t// top-level component properties\n\t\tsetWidth(\"100.0%\");\n\t\tsetHeight(\"-1px\");\n\t\t\n\t\t// hl_cabecera\n\t\thl_cabecera = buildHl_cabecera();\n\t\tmainLayout.addComponent(hl_cabecera);\n\t\t\n\t\t// horizontalLayout_1\n\t\thorizontalLayout_1 = buildHorizontalLayout_1();\n\t\tmainLayout.addComponent(horizontalLayout_1);\n\t\tmainLayout.setComponentAlignment(horizontalLayout_1, new Alignment(20));\n\t\t\n\t\t// l_preferenciasUsuario\n\t\tl_preferenciasUsuario = new Label();\n\t\tl_preferenciasUsuario.setStyleName(\"mih2\");\n\t\tl_preferenciasUsuario.setImmediate(false);\n\t\tl_preferenciasUsuario.setWidth(\"100.0%\");\n\t\tl_preferenciasUsuario.setHeight(\"-1px\");\n\t\tl_preferenciasUsuario.setValue(\"Preferencias de Usuario\");\n\t\tmainLayout.addComponent(l_preferenciasUsuario);\n\t\t\n\t\t// hl_gridContent\n\t\thl_gridContent = new HorizontalLayout();\n\t\thl_gridContent.setImmediate(false);\n\t\thl_gridContent.setWidth(\"100.0%\");\n\t\thl_gridContent.setHeight(\"-1px\");\n\t\thl_gridContent.setMargin(false);\n\t\tmainLayout.addComponent(hl_gridContent);\n\t\t\n\t\t// b_enviar\n\t\tb_enviar = new Button();\n\t\tb_enviar.setCaption(\"Actualizar\");\n\t\tb_enviar.setImmediate(true);\n\t\tb_enviar.setWidth(\"-1px\");\n\t\tb_enviar.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(b_enviar);\n\t\tmainLayout.setComponentAlignment(b_enviar, new Alignment(48));\n\t\t\n\t\treturn mainLayout;\n\t}", "public Window init() {\n // Construye una ventana (del navegador)\n // ----------------------------------------\n\n Window window = new Window();\n window.setTitle(\"Hola Mundo\");\n\n // ----------------------------------------\n // Construye un panel raiz y se lo asigna\n // a la ventana\n // ----------------------------------------\n\n ContentPane contentPane = new ContentPane();\n window.setContent(contentPane);\n\n // ----------------------------------------\n // Construye la GUI y la añade al panel\n // raiz recien construido\n // ----------------------------------------\n\n SplitPane split1 = new SplitPane();\n split1.setOrientation(SplitPane.ORIENTATION_VERTICAL_TOP_BOTTOM);\n split1.setSeparatorPosition(new Extent(30, Extent.PX));\n split1.setSeparatorColor(Color.BLACK);\n split1.setResizable(true);\n split1.setSeparatorHeight(new Extent(5, Extent.PX));\n contentPane.add(split1);\n\n MenuBarPane mbp = DemoMenuFactory.createDemoMenuBarPane();\n split1.add(mbp);\n\n SplitPane split2 = new SplitPane();\n split2.setOrientation(SplitPane.ORIENTATION_VERTICAL_TOP_BOTTOM);\n split2.setSeparatorPosition(new Extent(30, Extent.PX));\n split2.setSeparatorColor(Color.BLACK);\n split2.setResizable(true);\n split2.setSeparatorHeight(new Extent(5, Extent.PX));\n split1.add(split2);\n\n Row row = new Row();\n //row.add(DemoMenuFactory.createDemoMenuBarPane()); // Can't be done\n row.add(DemoMenuFactory.createDemoDropDownMenu());\n split2.add(row);\n\n HtmlLayout htmlLayout;\n\n try {\n htmlLayout = new HtmlLayout( //\n getClass().getResourceAsStream(\"template.html\"), \"UTF-8\");\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n\n HtmlLayoutData hld;\n\n hld = new HtmlLayoutData(\"label1\");\n Label lblLabel1 = new Label(\"Menu 1\");\n lblLabel1.setLayoutData(hld);\n htmlLayout.add(lblLabel1);\n\n hld = new HtmlLayoutData(\"menu1\");\n //MenuBarPane ddm1 = DemoMenuFactory.createDemoMenuBarPane(); // Can't be done\n DropDownMenu ddm1 = DemoMenuFactory.createDemoDropDownMenu();\n ddm1.setLayoutData(hld);\n htmlLayout.add(ddm1);\n\n hld = new HtmlLayoutData(\"label2\");\n Label lblLabel2 = new Label(\"Menu 2\");\n lblLabel2.setLayoutData(hld);\n htmlLayout.add(lblLabel2);\n\n hld = new HtmlLayoutData(\"menu2\");\n DropDownMenu ddm2 = DemoMenuFactory.createDemoDropDownMenu();\n ddm2.setLayoutData(hld);\n htmlLayout.add(ddm2);\n\n split2.add(htmlLayout);\n\n WindowPane windowPane = new WindowPane();\n windowPane.setClosable(false);\n contentPane.add(windowPane);\n\n SplitPane split3 = new SplitPane();\n split3.setOrientation(SplitPane.ORIENTATION_VERTICAL_TOP_BOTTOM);\n split3.setSeparatorPosition(new Extent(30, Extent.PX));\n split3.setSeparatorColor(Color.BLACK);\n split3.setResizable(true);\n split3.setSeparatorHeight(new Extent(5, Extent.PX));\n windowPane.add(split3);\n\n split3.add(DemoMenuFactory.createDemoMenuBarPane());\n\n return window;\n }", "private void $$$setupUI$$$() {\n createUIComponents();\n contentPane = new JPanel();\n contentPane.setLayout(new GridLayoutManager(2, 1, new Insets(10, 10, 10, 10), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, 1, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n panel1.add(spacer1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\n panel1.add(panel2, new GridConstraints(0, 1, 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 buttonOK = new JButton();\n buttonOK.setText(\"OK\");\n panel2.add(buttonOK, 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 buttonCancel = new JButton();\n this.$$$loadButtonText$$$(buttonCancel, ResourceBundle.getBundle(\"strings\").getString(\"cancel\"));\n panel2.add(buttonCancel, 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 JPanel panel3 = new JPanel();\n panel3.setLayout(new GridLayoutManager(2, 2, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel3, new GridConstraints(0, 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 final JLabel label1 = new JLabel();\n this.$$$loadLabelText$$$(label1, ResourceBundle.getBundle(\"strings\").getString(\"resource-name\"));\n panel3.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n nameField = new JTextField();\n panel3.add(nameField, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final JLabel label2 = new JLabel();\n this.$$$loadLabelText$$$(label2, ResourceBundle.getBundle(\"strings\").getString(\"resource-availability\"));\n panel3.add(label2, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JScrollPane scrollPane1 = new JScrollPane();\n panel3.add(scrollPane1, new GridConstraints(1, 1, 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 scrollPane1.setViewportView(availabilitiesList);\n label1.setLabelFor(nameField);\n }", "private void orderHomePage() {\n setLayout(new FlowLayout(FlowLayout.CENTER));\n\n JButton button = new JButton(\"New Order\");\n add(button);\n\n button.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n if (e.getSource() instanceof JButton) {\n JButton button1 = (JButton)e.getSource();\n\n if (button1.getText().equals(button.getText())) {\n removeAll(); // Removes everything from the panel\n message();\n orderFood();\n }\n }\n }\n });\n }", "public void createHomePage(){\n\t\tsetLayout(new GridBagLayout());\n\t\tGridBagConstraints c = new GridBagConstraints(); \n\t\t//insert username and password fields\n\t\tJLabel title;\n\n\t\t//build the title panel\n\t\ttitlePanel = new JPanel();\n\t\ttitle = new JLabel(\"Budgie\");\n\t\ttitle.setSize(new Dimension(40, 40));\n\t\ttitlePanel.add(title);\n\n\t\tc.anchor = GridBagConstraints.CENTER;\n\t\tc.gridy = 0;\n\t\tc.weighty = .5;\n\t\tadd(titlePanel, c);\n\n\t\tinputField = addinputField();\n\n\t\t//positioning of the grid field\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridy = 1;\n\t\tc.ipady = 10;\n\t\tc.weighty = .5;\n\t\tadd(inputField, c);\n\n\t\tc.gridy++;\n\t\tJButton debug = new JButton(\"Debug\");\n\t\tdebug.addActionListener(new ActionListener(){\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tDebugPrinter.toggleDebug();\n\t\t\t}\n\n\t\t});\n\t\tadd(debug,c);\n\n\n\t\tpack();\n\n\n\t}", "public String setBorderPaneTopLogin(BorderPane bp,String pageName){\n VBox myVbox = new VBox();\n myVbox.getStyleClass().add(\"nodeBkg\");\n myVbox.setAlignment(Pos.CENTER);\n \n // create label\n Label header = new Label(pageName);\n header.setAlignment(Pos.CENTER);\n \n myVbox.getChildren().add(header);\n \n // borderPane settings\n bp.setTop(myVbox);\n bp.setAlignment(myVbox, Pos.CENTER);\n \n\n return header.getText();\n }", "private void createBody(Composite parent) {\r\n\t\tcomposite = new Composite(parent, SWT.NONE);\r\n\t\tcomposite.setBackground(Display.getCurrent().getSystemColor(\r\n\t\t\t\tSWT.COLOR_WHITE));\r\n\t\tcomposite.setLayout(null);\r\n\t\tcomposite.setBounds(new Rectangle(0, 0, 360, 207));\r\n\r\n\r\n\t\tLabel msLogo = new Label(composite, SWT.NO_BACKGROUND);\r\n\t\tlogo = new Image(shell.getDisplay(),IMAGE_PATH + \"logo_up.gif\");\r\n\t\tmsLogo.setImage(logo);\r\n\t\tmsLogo.setBounds(new Rectangle(20, 55, 96, 96));\r\n\t\t\r\n\t\t/*labelLogo = new Label(composite, SWT.NO_BACKGROUND);\r\n\t\tlogo = new Image(shell.getDisplay(),IMAGE_PATH+ \"logo_down.png\");\r\n\t\tlabelLogo.setImage(logo);\r\n\t\tlabelLogo.setBounds(new Rectangle(5, 5 + 96 + 5, 96, 96));\r\n*/\r\n\r\n\r\n\t\tlabelHeader = new Label(composite, SWT.NONE);\r\n\t\tlabelHeader.setForeground(SWTResourceManager.getColor(255, 128, 128));\r\n\t\tlabelHeader.setBounds(new Rectangle(130, 15, 168, 30));\r\n\t\tlabelHeader.setFont(new Font(Display.getDefault(), \"Tahoma\", 14,SWT.NORMAL));\r\n\t\tlabelHeader.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_WHITE));\r\n\t\tlabelHeader.setText(\"关于CTC仿真系统\");\r\n\r\n\t\tlinkWeb = new Link(composite, SWT.NONE);\r\n\t\tlinkWeb.setBounds(new Rectangle(175, 140, 63, 18));\r\n\t\tlinkWeb.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_WHITE));\r\n\t\tlinkWeb.setText(\"<a>详细信息</a>\");\r\n\t\tlinkWeb.addSelectionListener(new SelectionAdapter() {\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tProgram.launch(\"http://www.bjtu.edu.cn/\");\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\t\r\n\t\temailLink = new Link(composite, SWT.NONE);\r\n\t\temailLink.setBounds(new Rectangle(145, 180, 153, 18));\r\n\t\temailLink.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_WHITE));\r\n\t\temailLink.setText(\"<a>版权所有© CTC开发小组</a>\");\r\n\t\temailLink.addSelectionListener(new SelectionAdapter() {\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tProgram.launch(\"mailto:[email protected]\");\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tlabelHeader_1 = new Label(composite, SWT.NONE);\r\n\t\tlabelHeader_1.setBounds(130, 55, 113, 30);\r\n\t\tlabelHeader_1.setFont(SWTResourceManager.getFont(\"Tahoma\", 14, SWT.NONE));\r\n\t\tlabelHeader_1.setBackground(SWTResourceManager.getColor(255, 255, 255));\r\n\t\tlabelHeader_1.setText(\"版本:V1.0\");\r\n\r\n\t\tlabelHeader_2 = new Label(composite, SWT.NONE);\r\n\t\tlabelHeader_2.setBounds(130, 100, 208, 30);\r\n\t\tlabelHeader_2.setFont(SWTResourceManager.getFont(\"Tahoma\", 14, SWT.NONE));\r\n\t\tlabelHeader_2.setBackground(SWTResourceManager.getColor(255, 255, 255));\r\n\t\tlabelHeader_2.setText(\"开发者:CTC开发小组\");\r\n\t}", "public void initComponents(String alternateLayout)\n {\n // Add the menus\n m_FileMenu = FileMenu.createMenu(this, getDocument(), \"&File\");\n /* m_EditMenu = */edu.umich.soar.debugger.menu.EditMenu.createMenu(\n this, getDocument(), \"&Edit\");\n /* m_PrintMenu = */PrintMenu.createMenu(this, getDocument(), \"&Print\");\n /* m_CommandsMenu = */CommandsMenu.createMenu(this, getDocument(),\n \"&Commands\");\n /* m_DebugLevelMenu = */DebugLevelMenu.createMenu(this, getDocument(),\n \"&Debug Level\");\n /* m_LayoutMenu = */LayoutMenu.createMenu(this, getDocument(),\n \"&Layout\");\n m_AgentMenu = AgentMenu.createMenu(this, getDocument(), \"&Agents\");\n m_KernelMenu = KernelMenu.createMenu(this, getDocument(), \"&Kernel\");\n /* m_HelpMenu = */HelpMenu.createMenu(this, getDocument(), \"&Help\");\n\n getShell().setMenuBar(m_MenuBar);\n\n // Load the alternate layout file first,.\n boolean loaded = alternateLayout != null && loadLayoutFileSpecial(alternateLayout);\n\n // If that failed, load the last known layout\n loaded = loaded || loadUserLayoutFile();\n\n // Install default layout files\n install(new String[] { \"default-layout.dlf\", \"default-text.dlf\" });\n\n // If that failed, load the default layout\n if (!loaded)\n {\n System.out\n .println(\"Failed to load the stored layout, so using default instead\");\n useDefaultLayout();\n }\n\n getShell().addShellListener(new ShellAdapter()\n {\n\n public void shellClosed(ShellEvent e)\n {\n thisWindowClosing();\n }\n });\n\n // Set the initial window size\n boolean max = this.getAppBooleanProperty(\"Window.Max\", true);\n\n if (max)\n {\n // Maximize the window\n getShell().setMaximized(true);\n }\n else\n {\n int width = this.getAppIntegerProperty(\"Window.width\");\n int height = this.getAppIntegerProperty(\"Window.height\");\n int xPos = this.getAppIntegerProperty(\"Window.x\");\n int yPos = this.getAppIntegerProperty(\"Window.y\");\n\n // \"cascade\" effect for multiple windows\n int offset = (m_Document.getNumberFrames() - 1) * 20;\n xPos += offset;\n yPos += offset;\n\n if (width > 0 && width < Integer.MAX_VALUE && height > 0\n && height < Integer.MAX_VALUE)\n getShell().setSize(width, height);\n\n if (xPos >= 0 && xPos < Integer.MAX_VALUE && yPos > 0\n && yPos != Integer.MAX_VALUE)\n getShell().setLocation(xPos, yPos);\n }\n\n // Try to load the user's font preference\n String fontName = this.getAppStringProperty(\"TextFont.Name\");\n int fontSize = this.getAppIntegerProperty(\"TextFont.Size\");\n int fontStyle = this.getAppIntegerProperty(\"TextFont.Style\");\n\n if (fontName != null && fontName.length() > 0\n && fontSize != Integer.MAX_VALUE && fontSize > 0\n && fontStyle != Integer.MAX_VALUE && fontStyle >= 0)\n {\n setTextFont(new FontData(fontName, fontSize, fontStyle));\n }\n else\n {\n setTextFont(kDefaultFontData);\n }\n\n // Make sure our menus are enabled correctly\n updateMenus();\n updateTitle();\n }", "public void gotoCenter(){\n String id = identification.getText();\n if (id.equals(\"Label\")){\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Information Dialog\");\n alert.setHeaderText(null);\n alert.setContentText(\"Please login first!\");\n alert.showAndWait();\n }else{\n if (id.equals(\"admin\")){\n application.gotoUserMangement();\n }else if (id.equals(\"coach\")){\n application.gotoCoachCenter();\n }\n }\n }", "private void showContent(){\n\t\tLayoutManager overlay = new OverlayLayout(this);\n\t\tsetLayout(overlay);\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tBorderLayout layout = new BorderLayout();\n\t\tlayout.setHgap(10);\n\t layout.setVgap(10);\n\t\tpanel.setLayout(layout); \n\t\tpanel.setBorder(new EmptyBorder(new Insets(20,50,20,50)));\n\t\tpanel.setOpaque(false);\n\t\tadd(panel);\n\t\t\n\t /*\n\t * Top Panel of the Game Screen\n\t * Buttons: back to home, suspend, quit and restart\n\t */\n\t JPanel controlPanel = new JPanel();\n\t controlPanel.setLayout(new GridLayout(1,4, 1, 1));\n\t\tcontrolPanel.setOpaque(false);\n\t\tpanel.add(controlPanel, BorderLayout.NORTH);\n\t\t\n\t\tIcon back = new ImageIcon(\"assets/back.jpg\");\n\t\tJButton btnBack = new JButton(back);\n\t\tbtnBack.setOpaque(false);\n\t\tbtnBack.setContentAreaFilled(false);\n\t\tbtnBack.setBorderPainted(false);\n\t\tbtnBack.setFocusPainted(false);\n\t\tbtnBack.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tgsPcs.firePropertyChange(\"exit\", null, null);\n\t\t\t}\n\t\t});\n\t\tcontrolPanel.add(btnBack);\n\t\tcontrolPanel.add(new JLabel(\"\"));\n\t\t//controlPanel.add(new JLabel(\"\"));\n\t\t\n\t\tIcon restart = new ImageIcon(\"assets/restart.jpg\");\n\t\tJButton btnRestart = new JButton(restart);\n\t\tbtnRestart.setOpaque(false);\n\t\tbtnRestart.setContentAreaFilled(false);\n\t\tbtnRestart.setBorderPainted(false);\n\t\tbtnRestart.setFocusPainted(false);\n\t\tbtnRestart.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tmazeSession.resetSession();\n\t\t\t\trepaint();\n\t\t\t}\n\t\t});\n\t\tcontrolPanel.add(btnRestart);\n\n\t\tIcon exit = new ImageIcon(\"assets/exit.jpg\");\n\t\tJButton btnQuit = new JButton(exit);\n\t\tbtnQuit.setOpaque(false);\n\t\tbtnQuit.setContentAreaFilled(false);\n\t\tbtnQuit.setBorderPainted(false);\n\t\tbtnQuit.setFocusPainted(false);\n\t\tbtnQuit.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tif(showConfirmExit() == JOptionPane.OK_OPTION){\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}\n\t\t\tpublic int showConfirmExit(){\n\t\t return JOptionPane.showConfirmDialog(null,\"Are you sure?\",\"Yes\",JOptionPane.OK_CANCEL_OPTION);\n\t\t \n\t\t\t}\n\t\t});\n\t\tcontrolPanel.add(btnQuit);\n\t\t\n\t\tthis.mazeDrawer.setOpaque(false);\n\t\tthis.mazeDrawer.setPreferredSize(new Dimension(150, 150));\n\t\tpanel.add(this.mazeDrawer, BorderLayout.CENTER);\n\t\t\n\t\t/*\n\t\t * Bottom Panel of the Game Screen\n\t\t * Contains music slider and game score \n\t\t */\n\t\tJPanel bottomPanel = new JPanel();\n\t\tbottomPanel.setOpaque(false);\n\t\tFlowLayout layout1 = new FlowLayout();\n\t layout1.setHgap(10); \n\t bottomPanel.setLayout(layout1);\n\t\tpanel.add(bottomPanel, BorderLayout.SOUTH);\n\t\t\n\t\tJLabel lblCourseID = new JLabel(\"Course ID: \");\n\t\tlblCourseID.setForeground(Color.WHITE);\n\t\tlblCourseID.setFont(new Font(\"Lucida Grande\", Font.BOLD, 18));\n\t\tbottomPanel.add(lblCourseID);\n\t\tJLabel courseID = new JLabel (mazeSession.getCourseID());\n\t\tcourseID.setFont(new Font(\"Lucida Grande\", Font.BOLD, 18));\n\t\tcourseID.setForeground(Color.WHITE);\n\t\tbottomPanel.add(courseID);\n\t\t\n\t\tJLabel lblScore = new JLabel(\"\\t\\t\\t\\t\\t\\t\\tScore:\");\n\t\tlblScore.setForeground(Color.WHITE);\n\t\tlblScore.setFont(new Font(\"Lucida Grande\", Font.BOLD, 18));\n\t\tthis.scoreLabel = new JLabel(Integer.toString(this.mazeSession.getScore()));\n\t\tscoreLabel.setFont(new Font(\"Lucida Grande\", Font.BOLD, 18));\n\t\tscoreLabel.setForeground(Color.WHITE);\n\t\tbottomPanel.add(lblScore);\n\t\tbottomPanel.add(this.scoreLabel);\n\t\t\n\t\t// background image\n\t\tImagePanel image = new ImagePanel(\n\t\t\tnew ImageIcon(\"assets/forest2.png\").getImage());\n\t\tadd(image);\n\t}", "@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 jLabel1 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n jTabbedPane1 = new javax.swing.JTabbedPane();\n jPanel1 = new javax.swing.JPanel();\n jDesktopPane3 = new javax.swing.JDesktopPane();\n jButton5 = new javax.swing.JButton();\n jButton6 = new javax.swing.JButton();\n jButton8 = new javax.swing.JButton();\n jPanel2 = new javax.swing.JPanel();\n jDesktopPane2 = new javax.swing.JDesktopPane();\n jButton2 = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n jButton4 = new javax.swing.JButton();\n jButton7 = new javax.swing.JButton();\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\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(0, 153, 153));\n\n jPanel5.setBackground(new java.awt.Color(0, 153, 153));\n\n jLabel1.setFont(new java.awt.Font(\"Georgia\", 1, 36)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\n jLabel1.setText(\"Customer Management System\");\n\n jButton1.setFont(new java.awt.Font(\"Georgia\", 1, 11)); // NOI18N\n jButton1.setText(\"Logout\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jTabbedPane1.setFont(new java.awt.Font(\"Georgia\", 0, 14)); // NOI18N\n\n javax.swing.GroupLayout jDesktopPane3Layout = new javax.swing.GroupLayout(jDesktopPane3);\n jDesktopPane3.setLayout(jDesktopPane3Layout);\n jDesktopPane3Layout.setHorizontalGroup(\n jDesktopPane3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 1182, Short.MAX_VALUE)\n );\n jDesktopPane3Layout.setVerticalGroup(\n jDesktopPane3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 0, Short.MAX_VALUE)\n );\n\n jButton5.setFont(new java.awt.Font(\"Georgia\", 0, 11)); // NOI18N\n jButton5.setIcon(new javax.swing.ImageIcon(\"C:\\\\Users\\\\Anu\\\\AppData\\\\Local\\\\Temp\\\\icons8_Add_User_Male_26px_4.png\")); // NOI18N\n jButton5.setText(\"Add Customer\");\n jButton5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton5ActionPerformed(evt);\n }\n });\n\n jButton6.setFont(new java.awt.Font(\"Georgia\", 0, 11)); // NOI18N\n jButton6.setIcon(new javax.swing.ImageIcon(\"C:\\\\Users\\\\Anu\\\\AppData\\\\Local\\\\Temp\\\\icons8_Edit_Property_26px.png\")); // NOI18N\n jButton6.setText(\"Update Customer\");\n jButton6.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton6ActionPerformed(evt);\n }\n });\n\n jButton8.setFont(new java.awt.Font(\"Georgia\", 0, 11)); // NOI18N\n jButton8.setIcon(new javax.swing.ImageIcon(\"C:\\\\Users\\\\Anu\\\\AppData\\\\Local\\\\Temp\\\\icons8_Report_Card_26px_3.png\")); // NOI18N\n jButton8.setText(\"Report\");\n jButton8.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton8ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jButton5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jDesktopPane3))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(80, 80, 80)\n .addComponent(jButton5, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(94, 94, 94)\n .addComponent(jButton6, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(87, 87, 87)\n .addComponent(jButton8, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(195, Short.MAX_VALUE))\n .addComponent(jDesktopPane3)\n );\n\n jTabbedPane1.addTab(\"Customer Management\", jPanel1);\n\n javax.swing.GroupLayout jDesktopPane2Layout = new javax.swing.GroupLayout(jDesktopPane2);\n jDesktopPane2.setLayout(jDesktopPane2Layout);\n jDesktopPane2Layout.setHorizontalGroup(\n jDesktopPane2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 1199, Short.MAX_VALUE)\n );\n jDesktopPane2Layout.setVerticalGroup(\n jDesktopPane2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 652, Short.MAX_VALUE)\n );\n\n jButton2.setFont(new java.awt.Font(\"Georgia\", 0, 11)); // NOI18N\n jButton2.setIcon(new javax.swing.ImageIcon(\"C:\\\\Users\\\\Anu\\\\AppData\\\\Local\\\\Temp\\\\icons8_Feedback_26px_1.png\")); // NOI18N\n jButton2.setText(\"Feedback\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jButton3.setFont(new java.awt.Font(\"Georgia\", 0, 11)); // NOI18N\n jButton3.setIcon(new javax.swing.ImageIcon(\"C:\\\\Users\\\\Anu\\\\AppData\\\\Local\\\\Temp\\\\icons8_Rent_26px_1.png\")); // NOI18N\n jButton3.setText(\"Rent\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n jButton4.setFont(new java.awt.Font(\"Georgia\", 0, 11)); // NOI18N\n jButton4.setIcon(new javax.swing.ImageIcon(\"C:\\\\Users\\\\Anu\\\\AppData\\\\Local\\\\Temp\\\\icons8_Envelope_26px_1.png\")); // NOI18N\n jButton4.setText(\"Email\");\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n\n jButton7.setFont(new java.awt.Font(\"Georgia\", 0, 11)); // NOI18N\n jButton7.setIcon(new javax.swing.ImageIcon(\"C:\\\\Users\\\\Anu\\\\AppData\\\\Local\\\\Temp\\\\icons8_Report_Card_26px_4.png\")); // NOI18N\n jButton7.setText(\"Report\");\n jButton7.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton7ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jButton2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton3, javax.swing.GroupLayout.DEFAULT_SIZE, 156, Short.MAX_VALUE)\n .addComponent(jButton4, javax.swing.GroupLayout.DEFAULT_SIZE, 156, Short.MAX_VALUE)\n .addComponent(jButton7, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jDesktopPane2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jDesktopPane2)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(64, 64, 64)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(79, 79, 79)\n .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(86, 86, 86)\n .addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton7, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(79, 79, 79))\n );\n\n jTabbedPane1.addTab(\"Feedback & Rent\", jPanel2);\n\n jLabel4.setFont(new java.awt.Font(\"Georgia\", 0, 11)); // NOI18N\n\n jLabel5.setFont(new java.awt.Font(\"Georgia\", 0, 11)); // NOI18N\n\n javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);\n jPanel5.setLayout(jPanel5Layout);\n jPanel5Layout.setHorizontalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGap(42, 42, 42)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, 43, Short.MAX_VALUE)\n .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel1)\n .addGap(249, 249, 249)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(141, 141, 141))\n .addComponent(jTabbedPane1)\n );\n jPanel5Layout.setVerticalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGap(13, 13, 13)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 3, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 13, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1)\n .addComponent(jLabel3)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 683, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, 749, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n pack();\n }", "@FXML\n private void logoutClick(){\n mainContainer.getScene().getWindow().hide();\n try {\n this.userController.logout();\n } catch (SQLException ex) {\n Logger.getLogger(MainController.class.getName()).log(Level.SEVERE, null, ex);\n }\n programPref.put(\"email\", \"\");\n Parent login = null;\n try {\n\n login = FXMLLoader.load(getClass().getResource(\"/com/slackers/inc/Boundary/FXML/outershell.fxml\"));\n String cssDoc = getClass().getResource(\"/com/slackers/inc/Boundary/CSS/custom.css\").toExternalForm();\n login.getStylesheets().add(cssDoc);\n\n Stage stage = new Stage();\n stage.setTitle(\"Main Application\");\n stage.setScene(new Scene(login));\n stage.show();\n\n } catch (IOException e) {\n e.printStackTrace();\n System.out.println(\"Logout Failed\");\n System.exit(0);\n }\n\n }", "private void initComponents() {\r\n\t\tResourceImageReference imageReference1 = new ResourceImageReference(\r\n\t\t\t\t\"/pds/web/resource/image/mainback-gray.jpg\");\r\n\t\tthis.setBackgroundImage(new FillImage(imageReference1));\r\n\t\tSplitPane splitPane1 = new SplitPane();\r\n\t\tsplitPane1.setStyleName(\"Default\");\r\n\t\tsplitPane1.setSeparatorVisible(false);\r\n\t\tadd(splitPane1);\r\n\t\tColumn column1 = new Column();\r\n\t\tsplitPane1.add(column1);\r\n\t\tpdsColumn = new Column();\r\n\t\tpdsColumn.setVisible(false);\r\n\t\tpdsColumn.setInsets(new Insets(new Extent(30, Extent.PX)));\r\n\t\tpdsColumn.setCellSpacing(new Extent(20, Extent.PX));\r\n\t\tRowLayoutData pdsColumnLayoutData = new RowLayoutData();\r\n\t\tpdsColumnLayoutData.setAlignment(new Alignment(Alignment.LEFT,\r\n\t\t\t\tAlignment.DEFAULT));\r\n\t\tpdsColumn.setLayoutData(pdsColumnLayoutData);\r\n\t\tcolumn1.add(pdsColumn);\r\n\t\tRow row4 = new Row();\r\n\t\trow4.setCellSpacing(new Extent(10, Extent.PX));\r\n\t\tpdsColumn.add(row4);\r\n\t\tButton button1 = new Button();\r\n\t\tbutton1.setStyleName(\"PlainWhite\");\r\n\t\tResourceImageReference imageReference2 = new ResourceImageReference(\r\n\t\t\t\t\"/pds/web/resource/image/accountroot.png\");\r\n\t\tbutton1.setIcon(imageReference2);\r\n\t\tbutton1.setText(\"Account Root\");\r\n\t\tbutton1.addActionListener(new ActionListener() {\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\t\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tonAccountRootActionPerformed(e);\r\n\t\t\t}\r\n\t\t});\r\n\t\trow4.add(button1);\r\n\t\tButton button10 = new Button();\r\n\t\tbutton10.setStyleName(\"PlainWhite\");\r\n\t\tResourceImageReference imageReference3 = new ResourceImageReference(\r\n\t\t\t\t\"/pds/web/resource/image/linkcontracts.png\");\r\n\t\tbutton10.setIcon(imageReference3);\r\n\t\tbutton10.setText(\"Link Contracts\");\r\n\t\tbutton10.addActionListener(new ActionListener() {\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\t\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tonLinkContractsActionPerformed(e);\r\n\t\t\t}\r\n\t\t});\r\n\t\trow4.add(button10);\r\n\t\tfacebookConnectorPanel = new FacebookConnectorPanel();\r\n\t\tfacebookConnectorPanel.setId(\"facebookConnectorPanel\");\r\n\t\trow4.add(facebookConnectorPanel);\r\n\t\tpersonalConnectorPanel = new PersonalConnectorPanel();\r\n\t\tpersonalConnectorPanel.setId(\"personalConnectorPanel\");\r\n\t\trow4.add(personalConnectorPanel);\r\n\t\tallfiledConnectorPanel = new AllfiledConnectorPanel();\r\n\t\tallfiledConnectorPanel.setId(\"allfiledConnectorPanel\");\r\n\t\trow4.add(allfiledConnectorPanel);\r\n\t\tLabel label1 = new Label();\r\n\t\tlabel1.setStyleName(\"Header\");\r\n\t\tlabel1.setText(\"Account Personas\");\r\n\t\tpdsColumn.add(label1);\r\n\t\tRow row7 = new Row();\r\n\t\tpdsColumn.add(row7);\r\n\t\taccountRootGrid = new AccountRootGrid();\r\n\t\trow7.add(accountRootGrid);\r\n\t\tLabel label2 = new Label();\r\n\t\tlabel2.setStyleName(\"Header\");\r\n\t\tlabel2.setText(\"Applications\");\r\n\t\tpdsColumn.add(label2);\r\n\t\tpdsWebAppGrid = new Grid();\r\n\t\tpdsWebAppGrid.setOrientation(Grid.ORIENTATION_HORIZONTAL);\r\n\t\tpdsWebAppGrid.setSize(5);\r\n\t\tpdsColumn.add(pdsWebAppGrid);\r\n\t\tLabel label3 = new Label();\r\n\t\tlabel3.setStyleName(\"Header\");\r\n\t\tlabel3.setText(\"Data Housekeeping\");\r\n\t\tpdsColumn.add(label3);\r\n\t\tRow row5 = new Row();\r\n\t\trow5.setCellSpacing(new Extent(20, Extent.PX));\r\n\t\tpdsColumn.add(row5);\r\n\t\tToolTipContainer toolTipContainer1 = new ToolTipContainer();\r\n\t\trow5.add(toolTipContainer1);\r\n\t\tButton button2 = new Button();\r\n\t\tbutton2.setStyleName(\"PlainWhite\");\r\n\t\tResourceImageReference imageReference4 = new ResourceImageReference(\r\n\t\t\t\t\"/pds/web/resource/image/data-clean.png\");\r\n\t\tbutton2.setIcon(imageReference4);\r\n\t\tbutton2.setText(\"Reset data\");\r\n\t\tbutton2.addActionListener(new ActionListener() {\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\t\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tonResetDataActionPerformed(e);\r\n\t\t\t}\r\n\t\t});\r\n\t\ttoolTipContainer1.add(button2);\r\n\t\tPanel panel1 = new Panel();\r\n\t\tpanel1.setStyleName(\"Tooltip\");\r\n\t\ttoolTipContainer1.add(panel1);\r\n\t\tLabel label4 = new Label();\r\n\t\tlabel4.setStyleName(\"Default\");\r\n\t\tlabel4.setText(\"This will clear all data from your Personal Cloud. Make sure you have a backup!\");\r\n\t\tpanel1.add(label4);\r\n\t\tToolTipContainer toolTipContainer2 = new ToolTipContainer();\r\n\t\trow5.add(toolTipContainer2);\r\n\t\tButton button3 = new Button();\r\n\t\tbutton3.setStyleName(\"PlainWhite\");\r\n\t\tResourceImageReference imageReference5 = new ResourceImageReference(\r\n\t\t\t\t\"/pds/web/resource/image/data-export.png\");\r\n\t\tbutton3.setIcon(imageReference5);\r\n\t\tbutton3.setText(\"Data Export\");\r\n\t\tbutton3.addActionListener(new ActionListener() {\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\t\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tonDataExportActionPerformed(e);\r\n\t\t\t}\r\n\t\t});\r\n\t\ttoolTipContainer2.add(button3);\r\n\t\tPanel panel2 = new Panel();\r\n\t\tpanel2.setStyleName(\"Tooltip\");\r\n\t\ttoolTipContainer2.add(panel2);\r\n\t\tLabel label5 = new Label();\r\n\t\tlabel5.setStyleName(\"Default\");\r\n\t\tlabel5.setText(\"This allows you to download all the contents of your Personal Cloud as an XDI file.\");\r\n\t\tpanel2.add(label5);\r\n\t\tToolTipContainer toolTipContainer3 = new ToolTipContainer();\r\n\t\trow5.add(toolTipContainer3);\r\n\t\tButton button11 = new Button();\r\n\t\tbutton11.setStyleName(\"PlainWhite\");\r\n\t\tResourceImageReference imageReference6 = new ResourceImageReference(\r\n\t\t\t\t\"/pds/web/resource/image/data-import.png\");\r\n\t\tbutton11.setIcon(imageReference6);\r\n\t\tbutton11.setText(\"Data Import\");\r\n\t\tbutton11.addActionListener(new ActionListener() {\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\t\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tonDataImportActionPerformed(e);\r\n\t\t\t}\r\n\t\t});\r\n\t\ttoolTipContainer3.add(button11);\r\n\t\tPanel panel3 = new Panel();\r\n\t\tpanel3.setStyleName(\"Tooltip\");\r\n\t\ttoolTipContainer3.add(panel3);\r\n\t\tLabel label6 = new Label();\r\n\t\tlabel6.setStyleName(\"Default\");\r\n\t\tlabel6.setText(\"This allows you to import data from an XDI file input your Personal Cloud.\");\r\n\t\tpanel3.add(label6);\r\n\t\tColumn column2 = new Column();\r\n\t\tcolumn2.setInsets(new Insets(new Extent(10, Extent.PX)));\r\n\t\tSplitPaneLayoutData column2LayoutData = new SplitPaneLayoutData();\r\n\t\tcolumn2LayoutData.setAlignment(new Alignment(Alignment.RIGHT,\r\n\t\t\t\tAlignment.DEFAULT));\r\n\t\tcolumn2LayoutData.setMinimumSize(new Extent(400, Extent.PX));\r\n\t\tcolumn2LayoutData.setMaximumSize(new Extent(400, Extent.PX));\r\n\t\tcolumn2.setLayoutData(column2LayoutData);\r\n\t\tsplitPane1.add(column2);\r\n\t\tImageIcon imageIcon1 = new ImageIcon();\r\n\t\tResourceImageReference imageReference7 = new ResourceImageReference(\r\n\t\t\t\t\"/pds/web/resource/image/pds-logo.png\");\r\n\t\timageIcon1.setIcon(imageReference7);\r\n\t\timageIcon1.setHeight(new Extent(45, Extent.PX));\r\n\t\timageIcon1.setWidth(new Extent(337, Extent.PX));\r\n\t\timageIcon1.setInsets(new Insets(new Extent(0, Extent.PX), new Extent(\r\n\t\t\t\t10, Extent.PX), new Extent(0, Extent.PX), new Extent(0,\r\n\t\t\t\tExtent.PX)));\r\n\t\tcolumn2.add(imageIcon1);\r\n\t\tRow row2 = new Row();\r\n\t\trow2.setAlignment(new Alignment(Alignment.RIGHT, Alignment.DEFAULT));\r\n\t\trow2.setInsets(new Insets(new Extent(0, Extent.PX), new Extent(0,\r\n\t\t\t\tExtent.PX), new Extent(0, Extent.PX), new Extent(10, Extent.PX)));\r\n\t\trow2.setCellSpacing(new Extent(10, Extent.PX));\r\n\t\tcolumn2.add(row2);\r\n\t\tImageIcon imageIcon2 = new ImageIcon();\r\n\t\tResourceImageReference imageReference8 = new ResourceImageReference(\r\n\t\t\t\t\"/pds/web/resource/image/projectdanube.png\");\r\n\t\timageIcon2.setIcon(imageReference8);\r\n\t\timageIcon2.setHeight(new Extent(68, Extent.PX));\r\n\t\timageIcon2.setWidth(new Extent(68, Extent.PX));\r\n\t\trow2.add(imageIcon2);\r\n\t\tColumn column3 = new Column();\r\n\t\tcolumn3.setCellSpacing(new Extent(10, Extent.PX));\r\n\t\trow2.add(column3);\r\n\t\tlogWindowCheckBox = new CheckBox();\r\n\t\tlogWindowCheckBox.setSelected(false);\r\n\t\tlogWindowCheckBox.setText(\"Show Log Window\");\r\n\t\tlogWindowCheckBox.addActionListener(new ActionListener() {\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\t\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tonLogWindowActionPerformed(e);\r\n\t\t\t}\r\n\t\t});\r\n\t\tcolumn3.add(logWindowCheckBox);\r\n\t\tdeveloperModeCheckBox = new CheckBox();\r\n\t\tdeveloperModeCheckBox.setSelected(false);\r\n\t\tdeveloperModeCheckBox.setText(\"Enable Developer Mode\");\r\n\t\tdeveloperModeCheckBox.addActionListener(new ActionListener() {\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\t\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tonDeveloperModeActionPerformed(e);\r\n\t\t\t}\r\n\t\t});\r\n\t\tcolumn3.add(developerModeCheckBox);\r\n\t\tLogWindowPane logWindowPane1 = new LogWindowPane();\r\n\t\tlogWindowPane1.setVisible(false);\r\n\t\tadd(logWindowPane1);\r\n\t\tEndpointWindowPane accountWindowPane1 = new EndpointWindowPane();\r\n\t\tadd(accountWindowPane1);\r\n\t}", "private void initMiddleBodyLayout() {\r\n midPanelLayoutCanv = new VerticalPanel();\r\n midPanelLayoutCanv.setWidth(middlePanelWidth + \"px\");\r\n midPanelLayoutCanv.setHeight((leftPanelHeight - 2) + \"px\");\r\n RootPanel.get(\"diva_mid_panel\").clear();\r\n RootPanel.get(\"diva_mid_panel\").add(midPanelLayoutCanv);\r\n //pca and profile plot layout\r\n topMidLayout = new HorizontalPanel();\r\n int newWidth = (middlePanelWidth / 2);\r\n int newHeight = newWidth + 22;\r\n topMidLayout.setHeight(newHeight + \"px\");\r\n topMidLayout.setWidth(middlePanelWidth + \"px\");\r\n topMidLayout.setStyleName(\"whitelayout\");\r\n\r\n //rank table layout\r\n rankLayoutCanv = new VLayout();\r\n rankLayoutCanv.setHeight((leftPanelHeight - (newHeight + 2)) + \"px\");\r\n rankLayoutCanv.setWidth(middlePanelWidth + \"px\");\r\n midPanelLayoutCanv.add(topMidLayout);\r\n midPanelLayoutCanv.add(rankLayoutCanv);\r\n }", "@Override\r\n\tprotected void initPage() {\n\t\t\r\n\t\t\r\n\t\tJPanel paneLabel = new JPanel();\r\n\t\t//JPanel panelTabs = new JPanel();\r\n\t\t\r\n\t\t\r\n\t\t//pack.setVisible(false);\r\n\r\n\t\t//setlay out\r\n\t\t//panelTabs.setLayout(new GridLayout(1, 1));\r\n\t\t\r\n\t\t//add label to label panel\r\n\t\tpaneLabel.add(new JLabel(\"Please select Objects To export\"));\r\n\t\t//tabs.setLayout(new GridLayout(1, 1));\r\n\t\t\r\n\t\t//add tabs\r\n\t\ttabs.addTab(\"Packages\", null, pack, \"Packages\");\r\n\t\ttabs.addTab(\"Functions\", null, fun, \"Functions\");\r\n\t\ttabs.addTab(\"Procedures\", null, proc, \"Procedures\");\r\n\t\ttabs.addTab(\"Schemas\", null, sch, \"Schemas\");\r\n\t\t\r\n\t\t\r\n\t\ttabs.setTabPlacement(JTabbedPane.TOP);\r\n\t\t\r\n\t\t//add tabs to tabpanel panel\r\n\t\t//panelTabs.add(tabs);\r\n\t\t\r\n\t\t//add data tables to panels\r\n\t\tpackTbl = new JObjectTable(pack);\r\n\t\tfunTbl = new JObjectTable(fun);\r\n\t\tschTbl = new JObjectTable(sch);\r\n\t\tprocTbl = new JObjectTable(proc);\r\n\t\t\r\n\t\t//set layout\r\n\t\tsetLayout(new GridLayout(1,1));\r\n\t\t\r\n\t\t//add label & tabs to page panel\r\n\t\t//add(paneLabel, BorderLayout.NORTH);\r\n\t\t//add(panelTabs,BorderLayout.CENTER);\r\n\t\tadd(tabs);\r\n\t\t\r\n\t\t//init select all check boxes\r\n\t\tinitChecks();\r\n\t\t\r\n\t\t//add checks to panel\r\n\t\tpack.add(ckPack);\r\n\t\tfun.add(ckFun);\r\n\t\tsch.add(ckSchema);\r\n\t\tproc.add(ckProc);\r\n\t\t\r\n\t}", "public ClientView()\r\n {\r\n frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\r\n finalPanel.setLayout(new BoxLayout(finalPanel,BoxLayout.PAGE_AXIS));\r\n JPanel aux = new JPanel();\r\n setPanel(aux, nameTextField,nameLabel);\r\n JPanel aux2 = new JPanel();\r\n setPanel(aux2,addressTextField,addressLabel);\r\n JPanel aux3 = new JPanel();\r\n setPanel(aux3,emailTextField,emailLabel);\r\n JPanel aux3_2 = new JPanel();\r\n setPanel(aux3_2,insertNewNameTextField,insertNewNameLabel);\r\n JPanel aux4 = new JPanel();\r\n setPanel(aux4,insertIdTextField,insertIdLabel);\r\n JPanel aux5 = new JPanel();\r\n setPanel(aux5,insertIdTextField,insertIdLabel);\r\n JPanel aux6 = new JPanel();\r\n setPanel(aux6,insertNewAddressTextField,insertAddressLabel);\r\n JPanel aux7 = new JPanel();\r\n setPanel(aux7,insertNewEmailTextField,insertEmailLabel);\r\n JPanel aux8 = new JPanel();\r\n setPanel(aux8,insertIdToBeDeletedTextField,insertIdToBeDeletedLabel);\r\n frame.setSize(1000,700);\r\n setButton(addClientButton);\r\n setButton(editButton);\r\n setButton(deleteButton);\r\n setButton(viewButton);\r\n finalPanel.setBackground(Color.WHITE);\r\n finalPanel.add(addNewClientLabel);\r\n finalPanel.add(aux);\r\n finalPanel.add(aux2);\r\n finalPanel.add(aux3);\r\n finalPanel.add(addClientButton);\r\n finalPanel.add(editClientLabel);\r\n finalPanel.add(aux3_2);\r\n finalPanel.add(aux4);\r\n finalPanel.add(aux5);\r\n finalPanel.add(aux6);\r\n finalPanel.add(aux7);\r\n finalPanel.add(editButton);\r\n finalPanel.add(deleteLabel);\r\n finalPanel.add(aux8);\r\n finalPanel.add(deleteButton);\r\n finalPanel.add(viewAllClientsLabel);\r\n finalPanel.add(Box.createRigidArea(new Dimension(1000,10)));\r\n finalPanel.add(viewButton);\r\n frame.add(finalPanel);\r\n //frame.setVisible(true);\r\n }", "void pack() {\n/* 179 */ Component component = getComponent();\n/* */ \n/* 181 */ if (component instanceof Window) {\n/* 182 */ ((Window)component).pack();\n/* */ }\n/* */ }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n clientPanel = new java.awt.Panel();\n logout = new javax.swing.JButton();\n welcomeLabel = new javax.swing.JLabel();\n greetingLabel = new javax.swing.JTextField();\n jSeparator1 = new javax.swing.JSeparator();\n logo = new javax.swing.JLabel();\n userHome = new javax.swing.JLabel();\n view_contract = new javax.swing.JLabel();\n update_account1 = new javax.swing.JLabel();\n house_picture = new javax.swing.JLabel();\n view_contract1 = new javax.swing.JLabel();\n background = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Client:Home\");\n setBounds(new java.awt.Rectangle(0, 0, 1300, 700));\n setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n setLocation(new java.awt.Point(0, 0));\n setResizable(false);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n clientPanel.setBackground(new java.awt.Color(51, 51, 51));\n clientPanel.setPreferredSize(new java.awt.Dimension(1300, 700));\n clientPanel.setLayout(null);\n\n logout.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n logout.setText(\"Logout\");\n logout.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));\n logout.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n logoutActionPerformed(evt);\n }\n });\n clientPanel.add(logout);\n logout.setBounds(40, 30, 110, 50);\n\n welcomeLabel.setFont(new java.awt.Font(\"Tahoma\", 1, 36)); // NOI18N\n welcomeLabel.setForeground(new java.awt.Color(255, 255, 255));\n welcomeLabel.setText(\"Welcome, \");\n clientPanel.add(welcomeLabel);\n welcomeLabel.setBounds(210, -40, 190, 160);\n\n greetingLabel.setEditable(false);\n greetingLabel.setBackground(new java.awt.Color(0, 102, 153));\n greetingLabel.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n greetingLabel.setForeground(new java.awt.Color(255, 255, 255));\n greetingLabel.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));\n greetingLabel.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n greetingLabelActionPerformed(evt);\n }\n });\n clientPanel.add(greetingLabel);\n greetingLabel.setBounds(410, 10, 260, 60);\n clientPanel.add(jSeparator1);\n jSeparator1.setBounds(190, 80, 560, 20);\n\n logo.setFont(new java.awt.Font(\"Viner Hand ITC\", 1, 18)); // NOI18N\n logo.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/rentalmanagement/Home.png\"))); // NOI18N\n logo.setText(\"R.M.S\");\n clientPanel.add(logo);\n logo.setBounds(1130, 0, 149, 90);\n\n userHome.setBackground(new java.awt.Color(0, 102, 153));\n userHome.setOpaque(true);\n clientPanel.add(userHome);\n userHome.setBounds(0, 0, 1300, 100);\n\n view_contract.setBackground(new java.awt.Color(204, 204, 204));\n view_contract.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n view_contract.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/rentalmanagement/complaint.png\"))); // NOI18N\n view_contract.setText(\"Complaints & Suggestions\");\n view_contract.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));\n view_contract.setOpaque(true);\n clientPanel.add(view_contract);\n view_contract.setBounds(30, 480, 300, 150);\n\n update_account1.setBackground(new java.awt.Color(204, 204, 204));\n update_account1.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n update_account1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/rentalmanagement/details.png\"))); // NOI18N\n update_account1.setText(\"Account Details\");\n update_account1.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));\n update_account1.setOpaque(true);\n update_account1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n update_account1MouseClicked(evt);\n }\n });\n clientPanel.add(update_account1);\n update_account1.setBounds(30, 110, 240, 130);\n\n house_picture.setBackground(new java.awt.Color(204, 204, 204));\n house_picture.setBorder(javax.swing.BorderFactory.createMatteBorder(1, 1, 1, 1, new java.awt.Color(0, 102, 153)));\n house_picture.setOpaque(true);\n clientPanel.add(house_picture);\n house_picture.setBounds(660, 120, 570, 340);\n\n view_contract1.setBackground(new java.awt.Color(204, 204, 204));\n view_contract1.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n view_contract1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/rentalmanagement/contract.png\"))); // NOI18N\n view_contract1.setText(\"Contract details and Arreas\");\n view_contract1.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));\n view_contract1.setOpaque(true);\n view_contract1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n view_contract1MouseClicked(evt);\n }\n });\n view_contract1.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n view_contract1KeyPressed(evt);\n }\n });\n clientPanel.add(view_contract1);\n view_contract1.setBounds(30, 280, 300, 150);\n\n background.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/rentalmanagement/Base.png\"))); // NOI18N\n clientPanel.add(background);\n background.setBounds(0, 100, 1300, 600);\n\n getContentPane().add(clientPanel, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, -1));\n\n pack();\n }", "private void $$$setupUI$$$() {\n createUIComponents();\n contentPane = new JPanel();\n contentPane.setLayout(new GridLayoutManager(2, 1, new Insets(10, 10, 10, 10), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, 1, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n panel1.add(spacer1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1, true, false));\n panel1.add(panel2, new GridConstraints(0, 1, 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 buttonOK = new JButton();\n buttonOK.setText(\"OK\");\n panel2.add(buttonOK, 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 buttonCancel = new JButton();\n buttonCancel.setText(\"Cancel\");\n panel2.add(buttonCancel, 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 JPanel panel3 = new JPanel();\n panel3.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel3, new GridConstraints(0, 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 pan1 = new JPanel();\n pan1.setLayout(new GridLayoutManager(4, 3, new Insets(0, 0, 0, 0), -1, -1));\n panel3.add(pan1, new GridConstraints(0, 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 final JLabel label1 = new JLabel();\n label1.setText(\"Название номера\");\n pan1.add(label1, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label2 = new JLabel();\n label2.setText(\"Дата регистрации\");\n pan1.add(label2, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label3 = new JLabel();\n label3.setText(\"Дата истечения\");\n pan1.add(label3, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_VERTICAL, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final Spacer spacer2 = new Spacer();\n pan1.add(spacer2, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, new Dimension(0, 25), new Dimension(0, 25), new Dimension(0, 25), 0, false));\n number = new JTextField();\n pan1.add(number, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n pan1.add(creationDatePanel, new GridConstraints(1, 2, 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 pan1.add(expirationDatePanel, new GridConstraints(2, 2, 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 }", "private void paginaInicio(){\n jpnlPanelPrincilal.setLayout(null);\n jpnlPanelPrincilal.removeAll();\n jpnlPanelPrincilal.add(PaginaPrincipal.getInstance(),BorderLayout.CENTER);\n jpnlPanelPrincilal.validate();\n repaint();\n }", "public login() {\n initComponents();\n setTitle(\"COLLAGE MANAGEMENT SYSTEM\");\n }", "private void $$$setupUI$$$() {\n rootPanel = new JPanel();\n rootPanel.setLayout(new BorderLayout(0, 0));\n centerPanel = new JPanel();\n centerPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n rootPanel.add(centerPanel, BorderLayout.CENTER);\n final JSplitPane splitPane1 = new JSplitPane();\n splitPane1.setDividerLocation(240);\n splitPane1.setResizeWeight(0.5);\n centerPanel.add(splitPane1, new GridConstraints(0, 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, new Dimension(200, 200), null, 0, false));\n leftPanel = new JPanel();\n leftPanel.setLayout(new BorderLayout(0, 0));\n splitPane1.setLeftComponent(leftPanel);\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n leftPanel.add(panel1, BorderLayout.NORTH);\n userListTitle = new JLabel();\n userListTitle.setText(\"在线用户\");\n panel1.add(userListTitle, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n leftPanel.add(panel2, BorderLayout.CENTER);\n JSP_list = new JScrollPane();\n panel2.add(JSP_list, new GridConstraints(0, 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 rightPanel = new JPanel();\n rightPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n splitPane1.setRightComponent(rightPanel);\n southPanel = new JPanel();\n southPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n rootPanel.add(southPanel, BorderLayout.SOUTH);\n northPanel = new JPanel();\n northPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n rootPanel.add(northPanel, BorderLayout.NORTH);\n }", "private void $$$setupUI$$$() {\n contentPane = new JPanel();\n contentPane.setLayout(new GridLayoutManager(2, 1, new Insets(10, 10, 10, 10), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, 1, new Dimension(100, 20), new Dimension(100, 20), new Dimension(100, 20), 0, false));\n final Spacer spacer1 = new Spacer();\n panel1.add(spacer1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n panel1.add(panel2, new GridConstraints(0, 1, 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 buttonClose = new JButton();\n buttonClose.setText(\"Close\");\n panel2.add(buttonClose, 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 final JPanel panel3 = new JPanel();\n panel3.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel3, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n messageLabel = new JLabel();\n messageLabel.setText(\"\");\n panel3.add(messageLabel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "private void initComponents() {\n\n mainPanel = new javax.swing.JPanel();\n invalidID = new javax.swing.JLabel();\n authenticateButton = new javax.swing.JButton();\n logServiceButton = new javax.swing.JButton();\n memberNumberField = new javax.swing.JFormattedTextField();\n menuBar = new javax.swing.JMenuBar();\n javax.swing.JMenu fileMenu = new javax.swing.JMenu();\n autenticateMenuItem = new javax.swing.JMenuItem();\n javax.swing.JMenuItem exitMenuItem = new javax.swing.JMenuItem();\n listMenu = new javax.swing.JMenu();\n memberMenuItem = new javax.swing.JMenuItem();\n providerMenuItem = new javax.swing.JMenuItem();\n servicesMenuItem = new javax.swing.JMenuItem();\n reportMenu = new javax.swing.JMenu();\n providerReportMenuItem = new javax.swing.JMenuItem();\n memberReportMenuItem = new javax.swing.JMenuItem();\n accountsPayabelMenuItem = new javax.swing.JMenuItem();\n addMenu = new javax.swing.JMenu();\n addMemberMenuItem = new javax.swing.JMenuItem();\n providerAddMenuItem = new javax.swing.JMenuItem();\n serviceAddMenuItem = new javax.swing.JMenuItem();\n jMenu1 = new javax.swing.JMenu();\n jMenuItem1 = new javax.swing.JMenuItem();\n jMenuItem2 = new javax.swing.JMenuItem();\n\n mainPanel.setName(\"mainPanel\"); // NOI18N\n\n org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(pdx.edu.cs300_group9.DesktopApplication2.class).getContext().getResourceMap(HomeScreen.class);\n invalidID.setFont(resourceMap.getFont(\"invalidID.font\")); // NOI18N\n invalidID.setForeground(resourceMap.getColor(\"invalidID.foreground\")); // NOI18N\n invalidID.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n invalidID.setText(\"Invalid ID\"); // NOI18N\n invalidID.setName(\"invalidID\"); // NOI18N\n\n javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance(pdx.edu.cs300_group9.DesktopApplication2.class).getContext().getActionMap(HomeScreen.class, this);\n authenticateButton.setAction(actionMap.get(\"authenticateMember\")); // NOI18N\n authenticateButton.setText(resourceMap.getString(\"authenticateButton.text\")); // NOI18N\n authenticateButton.setName(\"authenticateButton\"); // NOI18N\n\n logServiceButton.setAction(actionMap.get(\"openLogServiceForm\")); // NOI18N\n logServiceButton.setText(resourceMap.getString(\"logServiceButton.text\")); // NOI18N\n logServiceButton.setName(\"logServiceButton\"); // NOI18N\n\n memberNumberField.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter(new java.text.DecimalFormat(\"000000000\"))));\n memberNumberField.setName(\"memberNumberField\"); // NOI18N\n memberNumberField.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n memberNumberFieldFocusGained(evt);\n }\n });\n\n javax.swing.GroupLayout mainPanelLayout = new javax.swing.GroupLayout(mainPanel);\n mainPanel.setLayout(mainPanelLayout);\n mainPanelLayout.setHorizontalGroup(\n mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(mainPanelLayout.createSequentialGroup()\n .addGap(30, 30, 30)\n .addComponent(authenticateButton)\n .addGap(84, 84, 84)\n .addComponent(logServiceButton)\n .addContainerGap(40, Short.MAX_VALUE))\n .addGroup(mainPanelLayout.createSequentialGroup()\n .addGap(135, 135, 135)\n .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(invalidID, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 153, Short.MAX_VALUE)\n .addComponent(memberNumberField, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 153, Short.MAX_VALUE))\n .addGap(137, 137, 137))\n );\n mainPanelLayout.setVerticalGroup(\n mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(mainPanelLayout.createSequentialGroup()\n .addGap(57, 57, 57)\n .addComponent(invalidID)\n .addGap(51, 51, 51)\n .addComponent(memberNumberField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(33, 33, 33)\n .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(authenticateButton)\n .addComponent(logServiceButton, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(107, Short.MAX_VALUE))\n );\n\n menuBar.setName(\"menuBar\"); // NOI18N\n\n fileMenu.setText(resourceMap.getString(\"fileMenu.text\")); // NOI18N\n fileMenu.setName(\"fileMenu\"); // NOI18N\n\n autenticateMenuItem.setText(resourceMap.getString(\"autenticateMenuItem.text\")); // NOI18N\n autenticateMenuItem.setName(\"autenticateMenuItem\"); // NOI18N\n fileMenu.add(autenticateMenuItem);\n\n exitMenuItem.setAction(actionMap.get(\"quit\")); // NOI18N\n exitMenuItem.setName(\"exitMenuItem\"); // NOI18N\n fileMenu.add(exitMenuItem);\n\n menuBar.add(fileMenu);\n\n listMenu.setAction(actionMap.get(\"openProviderList\")); // NOI18N\n listMenu.setText(resourceMap.getString(\"listMenu.text\")); // NOI18N\n listMenu.setName(\"listMenu\"); // NOI18N\n\n memberMenuItem.setAction(actionMap.get(\"openMemberList\")); // NOI18N\n memberMenuItem.setText(resourceMap.getString(\"memberMenuItem.text\")); // NOI18N\n memberMenuItem.setName(\"memberMenuItem\"); // NOI18N\n listMenu.add(memberMenuItem);\n\n providerMenuItem.setAction(actionMap.get(\"openProviderList\")); // NOI18N\n providerMenuItem.setText(resourceMap.getString(\"providerMenuItem.text\")); // NOI18N\n providerMenuItem.setName(\"providerMenuItem\"); // NOI18N\n listMenu.add(providerMenuItem);\n\n servicesMenuItem.setAction(actionMap.get(\"openServicesList\")); // NOI18N\n servicesMenuItem.setText(resourceMap.getString(\"servicesMenuItem.text\")); // NOI18N\n servicesMenuItem.setName(\"servicesMenuItem\"); // NOI18N\n listMenu.add(servicesMenuItem);\n\n menuBar.add(listMenu);\n\n reportMenu.setAction(actionMap.get(\"openProviderReport\")); // NOI18N\n reportMenu.setText(resourceMap.getString(\"reportMenu.text\")); // NOI18N\n reportMenu.setName(\"reportMenu\"); // NOI18N\n\n providerReportMenuItem.setAction(actionMap.get(\"openMemberReport\")); // NOI18N\n providerReportMenuItem.setText(resourceMap.getString(\"providerReportMenuItem.text\")); // NOI18N\n providerReportMenuItem.setName(\"providerReportMenuItem\"); // NOI18N\n reportMenu.add(providerReportMenuItem);\n\n memberReportMenuItem.setAction(actionMap.get(\"openProviderReport\")); // NOI18N\n memberReportMenuItem.setText(resourceMap.getString(\"memberReportMenuItem.text\")); // NOI18N\n memberReportMenuItem.setName(\"memberReportMenuItem\"); // NOI18N\n reportMenu.add(memberReportMenuItem);\n\n accountsPayabelMenuItem.setAction(actionMap.get(\"openAccountsPayableReport\")); // NOI18N\n accountsPayabelMenuItem.setText(resourceMap.getString(\"accountsPayabelMenuItem.text\")); // NOI18N\n accountsPayabelMenuItem.setName(\"accountsPayabelMenuItem\"); // NOI18N\n reportMenu.add(accountsPayabelMenuItem);\n\n menuBar.add(reportMenu);\n\n addMenu.setText(resourceMap.getString(\"addMenu.text\")); // NOI18N\n addMenu.setName(\"addMenu\"); // NOI18N\n\n addMemberMenuItem.setAction(actionMap.get(\"addNewMember\")); // NOI18N\n addMemberMenuItem.setText(resourceMap.getString(\"addMemberMenuItem.text\")); // NOI18N\n addMemberMenuItem.setName(\"addMemberMenuItem\"); // NOI18N\n addMenu.add(addMemberMenuItem);\n\n providerAddMenuItem.setAction(actionMap.get(\"addNewProvider\")); // NOI18N\n providerAddMenuItem.setText(resourceMap.getString(\"providerAddMenuItem.text\")); // NOI18N\n providerAddMenuItem.setName(\"providerAddMenuItem\"); // NOI18N\n addMenu.add(providerAddMenuItem);\n\n serviceAddMenuItem.setAction(actionMap.get(\"addNewService\")); // NOI18N\n serviceAddMenuItem.setText(resourceMap.getString(\"serviceAddMenuItem.text\")); // NOI18N\n serviceAddMenuItem.setName(\"serviceAddMenuItem\"); // NOI18N\n addMenu.add(serviceAddMenuItem);\n\n menuBar.add(addMenu);\n\n jMenu1.setText(resourceMap.getString(\"jMenu1.text\")); // NOI18N\n jMenu1.setName(\"jMenu1\"); // NOI18N\n\n jMenuItem1.setText(resourceMap.getString(\"jMenuItem1.text\")); // NOI18N\n jMenuItem1.setName(\"jMenuItem1\"); // NOI18N\n jMenuItem1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem1ActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuItem1);\n\n jMenuItem2.setText(resourceMap.getString(\"jMenuItem2.text\")); // NOI18N\n jMenuItem2.setName(\"jMenuItem2\"); // NOI18N\n jMenuItem2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem2ActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuItem2);\n\n menuBar.add(jMenu1);\n\n setComponent(mainPanel);\n setMenuBar(menuBar);\n }", "@Override // Override the start method in the Application class\r\n public void start(Stage primaryStage) {\n BorderPane bPane = new BorderPane();\r\n bPane.setBottom(this.getHBox());\r\n bPane.setCenter(this.getGPane());\r\n Scene scene = new Scene(bPane);\r\n primaryStage.setTitle(\"Search Window\"); // Set the stage title\r\n primaryStage.initModality(Modality.APPLICATION_MODAL);\r\n primaryStage.setResizable(false);\r\n primaryStage.setScene(scene); // Place the scene in the stage\r\n primaryStage.showAndWait(); // Display the stage\r\n }", "public Principal() {\n initComponents();\n UILogin uilogin = new UILogin(this, true);\n uilogin.setVisible(true);\n\n txtAdmin.setText(\"ADMINISTRADOR: \" + uilogin.login);\n setLocationRelativeTo(null); //Inicia janela Principal centralizado\n setExtendedState(JFrame.MAXIMIZED_BOTH);//Inicia janela Principal maximizado\n this.gerenteDeJanelas = new GerenteDeJanelas(jDesktopPane1);\n\n WebLookAndFeel.install();//Thema WebLaf\n data();//Informa a data no rodapé\n hora();//Informa a hora no rodapé\n setIcon();//Ícone da janela\n\n }", "public static String _btncerrarpopup_click() throws Exception{\nmostCurrent._panelpopups_1.RemoveView();\n //BA.debugLineNum = 117;BA.debugLine=\"butPatas.Visible = True\";\nmostCurrent._butpatas.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 118;BA.debugLine=\"butColor.Visible = True\";\nmostCurrent._butcolor.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 119;BA.debugLine=\"lblFondo.RemoveView\";\nmostCurrent._lblfondo.RemoveView();\n //BA.debugLineNum = 120;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public WorkFlowLayout() {\r\n WorkFlowLayout.this.setWidth(100, Unit.PERCENTAGE);\r\n WorkFlowLayout.this.setHeight(100, Unit.PERCENTAGE);\r\n\r\n VerticalLayout content = new VerticalLayout();\r\n content.setHeightUndefined();\r\n content.setWidth(100, Unit.PERCENTAGE);\r\n WorkFlowLayout.this.setContent(content);\r\n WorkFlowLayout.this.setStyleName(\"subframe\");\r\n\r\n content.setSpacing(true);\r\n\r\n Label titleLabel = new Label(\"SearchGUI-PeptideShaker-WorkFlow\");\r\n titleLabel.setStyleName(\"frametitle\");\r\n content.addComponent(titleLabel);\r\n\r\n searchSettingsFileList = new DropDownList(\"Search Settings (Select or Enter New Name)\");\r\n content.addComponent(searchSettingsFileList);\r\n searchSettingsFileList.setFocous();\r\n\r\n HorizontalLayout btnsFrame = new HorizontalLayout();\r\n btnsFrame.setWidthUndefined();\r\n btnsFrame.setSpacing(true);\r\n btnsFrame.setStyleName(\"bottomformlayout\");\r\n content.addComponent(btnsFrame);\r\n\r\n Label addNewSearchSettings = new Label(\"Add\");\r\n addNewSearchSettings.addStyleName(\"windowtitle\");\r\n btnsFrame.addLayoutClickListener(new LayoutEvents.LayoutClickListener() {\r\n @Override\r\n public void layoutClick(LayoutEvents.LayoutClickEvent event) {\r\n Component c = event.getClickedComponent();\r\n if (c != null && c instanceof Label && ((Label) c).getValue().equalsIgnoreCase(\"Add\")) {\r\n String basepath = VaadinService.getCurrent().getBaseDirectory().getAbsolutePath();\r\n File file = new File(basepath + \"/VAADIN/default_searching.par\");\r\n SearchParameters searchParameters;\r\n try {\r\n searchParameters = SearchParameters.getIdentificationParameters(file);\r\n searchParameters.setFastaFile(null);\r\n } catch (IOException | ClassNotFoundException ex) {\r\n\r\n ex.printStackTrace();\r\n return;\r\n }\r\n searchParameters.setDefaultAdvancedSettings();\r\n searchSettingsLayout.updateForms(searchParameters, null);\r\n editSearchOption.setPopupVisible(true);\r\n } else if (c != null && c instanceof Label && ((Label) c).getValue().equalsIgnoreCase(\"Edit\")) {\r\n\r\n try {\r\n File file = searchSettingsMap.get(searchSettingsFileList.getSelectedValue()).getFile();\r\n searchParameters = SearchParameters.getIdentificationParameters(file);\r\n } catch (IOException | ClassNotFoundException ex) {\r\n ex.printStackTrace();\r\n return;\r\n }\r\n searchSettingsLayout.updateForms(searchParameters, searchSettingsFileList.getSelectedValue());\r\n editSearchOption.setPopupVisible(true);\r\n\r\n }\r\n }\r\n });\r\n btnsFrame.addComponent(addNewSearchSettings);\r\n Label editSearchSettings = new Label(\"Edit\");\r\n editSearchSettings.addStyleName(\"windowtitle\");\r\n btnsFrame.addComponent(editSearchSettings);\r\n searchSettingsLayout = new SearchSettingsLayout() {\r\n @Override\r\n public void saveSearchingFile(SearchParameters searchParameters, boolean editMode) {\r\n checkAndSaveSearchSettingsFile(searchParameters, editMode);\r\n editSearchOption.setPopupVisible(false);\r\n }\r\n\r\n @Override\r\n public void cancel() {\r\n editSearchOption.setPopupVisible(false);\r\n }\r\n\r\n };\r\n editSearchOption = new PopupWindow(\"Edit\");\r\n editSearchOption.setContent(searchSettingsLayout);\r\n editSearchOption.setSizeFull();\r\n editSearchOption.addStyleName(\"centerwindow\");\r\n\r\n Label searchSettingInfo = new Label();\r\n searchSettingInfo.setWidth(400, Unit.PIXELS);\r\n searchSettingInfo.setHeight(90, Unit.PIXELS);\r\n searchSettingInfo.setStyleName(\"subpanelframe\");\r\n searchSettingInfo.addStyleName(\"bottomformlayout\");\r\n searchSettingInfo.addStyleName(\"smallfontlongtext\");\r\n content.addComponent(searchSettingInfo);\r\n\r\n mgfFileList = new MultiSelectOptionGroup(\"Spectrum File(s)\", false);\r\n content.addComponent(mgfFileList);\r\n mgfFileList.setRequired(true, \"Select at least 1 MGF file\");\r\n mgfFileList.setViewList(true);\r\n\r\n MultiSelectOptionGroup searchEngines = new MultiSelectOptionGroup(\"Search Engines\", false);\r\n content.addComponent(searchEngines);\r\n searchEngines.setRequired(true, \"Select at least 1 search engine\");\r\n searchEngines.setViewList(true);\r\n\r\n Map<String, String> searchEngienList = new LinkedHashMap<>();\r\n searchEngienList.put(\"X!Tandem\", \"X!Tandem\");\r\n searchEngienList.put(\"MS-GF+\", \"MS-GF+\");\r\n searchEngienList.put(\"OMSSA\", \"OMSSA\");\r\n searchEngienList.put(\"Comet\", \"Comet\");\r\n searchEngienList.put(\"Tide\", \"Tide\");\r\n searchEngienList.put(\"MyriMatch\", \"MyriMatch\");\r\n searchEngienList.put(\"MS_Amanda\", \"MS_Amanda\");\r\n searchEngienList.put(\"DirecTag\", \"DirecTag\");\r\n searchEngienList.put(\"Novor (Select for non-commercial use only)\", \"Novor (Select for non-commercial use only)\");\r\n searchEngines.updateList(searchEngienList);\r\n searchEngines.setSelectedValue(\"X!Tandem\");\r\n searchEngines.setSelectedValue(\"MS-GF+\");\r\n searchEngines.setSelectedValue(\"OMSSA\");\r\n HorizontalLayout bottomLayout = new HorizontalLayout();\r\n bottomLayout.setStyleName(\"bottomformlayout\");\r\n bottomLayout.setWidth(400, Unit.PIXELS);\r\n bottomLayout.setSpacing(true);\r\n content.addComponent(bottomLayout);\r\n\r\n projectNameField = new HorizontalLabelTextField(\"<b>Project Name</b>\", \"New Project Name\", null);\r\n projectNameField.setWidth(100, Unit.PERCENTAGE);\r\n projectNameField.setRequired(true);\r\n bottomLayout.addComponent(projectNameField);\r\n bottomLayout.setExpandRatio(projectNameField, 70);\r\n\r\n Button executeWorkFlow = new Button(\"Execute\");\r\n executeWorkFlow.setStyleName(ValoTheme.BUTTON_SMALL);\r\n executeWorkFlow.addStyleName(ValoTheme.BUTTON_TINY);\r\n bottomLayout.addComponent(executeWorkFlow);\r\n bottomLayout.setComponentAlignment(executeWorkFlow, Alignment.TOP_RIGHT);\r\n bottomLayout.setExpandRatio(executeWorkFlow, 30);\r\n\r\n executeWorkFlow.addClickListener((Button.ClickEvent event) -> {\r\n String fastFileId = searchSettingsLayout.getFastaFileId();\r\n Set<String> spectrumIds = mgfFileList.getSelectedValue();\r\n Set<String> searchEnginesIds = searchEngines.getSelectedValue();\r\n String projectName = projectNameField.getSelectedValue().replace(\" \", \"_\").replace(\"-\", \"_\");\r\n if (!projectNameField.isValid() || fastFileId == null || spectrumIds == null || searchEnginesIds == null) {\r\n return;\r\n }\r\n Map<String, Boolean> selectedSearchEngines = new HashMap<>();\r\n searchEngienList.keySet().forEach((paramId) -> {\r\n selectedSearchEngines.put(paramId, searchEngines.getSelectedValue().contains(paramId));\r\n });\r\n executeWorkFlow(projectName, fastFileId, spectrumIds, searchEnginesIds, searchSettingsLayout.getSearchParameters(), selectedSearchEngines);\r\n });\r\n mgfFileList.setEnabled(false);\r\n searchEngines.setEnabled(false);\r\n projectNameField.setEnabled(false);\r\n editSearchSettings.setEnabled(false);\r\n executeWorkFlow.setEnabled(false);\r\n searchSettingsFileList.addValueChangeListener((Property.ValueChangeEvent event) -> {\r\n if (searchSettingsFileList.getSelectedValue() != null) {\r\n mgfFileList.setEnabled(true);\r\n searchEngines.setEnabled(true);\r\n projectNameField.setEnabled(true);\r\n editSearchSettings.setEnabled(true);\r\n executeWorkFlow.setEnabled(true); \r\n try { \r\n File file = searchSettingsMap.get(searchSettingsFileList.getSelectedValue()).getFile(); \r\n searchParameters = SearchParameters.getIdentificationParameters(file);\r\n String descrip = searchParameters.getShortDescription();\r\n descrip = descrip.replace(searchParameters.getFastaFile().getName(), searchSettingsLayout.getFastaFileName(searchParameters.getFastaFile().getName().split(\"__\")[0]));\r\n searchSettingInfo.setValue(descrip);\r\n } catch (IOException | ClassNotFoundException ex) {\r\n ex.printStackTrace();\r\n return;\r\n }\r\n searchSettingsLayout.updateForms(searchParameters, searchSettingsFileList.getSelectedValue());\r\n\r\n }\r\n });\r\n }", "private void $$$setupUI$$$() {\n myMainPanel = new JPanel();\n myMainPanel.setLayout(new GridLayoutManager(3, 3, new Insets(0, 0, 0, 0), -1, -1));\n myArchetypesPanel = new JPanel();\n myArchetypesPanel.setLayout(new BorderLayout(0, 0));\n myArchetypesPanel.setInheritsPopupMenu(true);\n myMainPanel.add(myArchetypesPanel, new GridConstraints(2, 0, 1, 3, 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 alsoDownloadExampleSourceCheckBox = new JCheckBox();\n this.$$$loadButtonText$$$(alsoDownloadExampleSourceCheckBox, ResourceBundle.getBundle(\"Bundle\").getString(\"AsposeWizardPanel.WizardStep.ExampleChkbox\"));\n myArchetypesPanel.add(alsoDownloadExampleSourceCheckBox, BorderLayout.SOUTH);\n fieldTextPane = new JTextPane();\n fieldTextPane.setText(\"\");\n myArchetypesPanel.add(fieldTextPane, BorderLayout.WEST);\n bannerLbl = new JLabel();\n bannerLbl.setAlignmentY(0.0f);\n bannerLbl.setHorizontalAlignment(2);\n bannerLbl.setHorizontalTextPosition(2);\n bannerLbl.setIcon(new ImageIcon(getClass().getResource(\"/resources/long_bannerIntelliJ.png\")));\n bannerLbl.setIconTextGap(0);\n bannerLbl.setText(\"\");\n bannerLbl.setVerticalAlignment(1);\n bannerLbl.setVerticalTextPosition(1);\n myMainPanel.add(bannerLbl, new GridConstraints(0, 0, 1, 2, GridConstraints.ANCHOR_NORTH, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, new Dimension(10, -1), new Dimension(390, -1), new Dimension(66666, -1), 1, false));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(3, 2, new Insets(10, 10, 10, 10), -1, -1));\n panel1.setAlignmentX(0.0f);\n panel1.setAlignmentY(0.0f);\n panel1.setOpaque(true);\n myMainPanel.add(panel1, new GridConstraints(1, 0, 1, 2, GridConstraints.ANCHOR_NORTH, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n panel1.setBorder(BorderFactory.createTitledBorder(null, ResourceBundle.getBundle(\"Bundle\").getString(\"AsposeWizardPanel.WizardStep.headingMavn\"), TitledBorder.LEFT, TitledBorder.DEFAULT_POSITION, new Font(panel1.getFont().getName(), panel1.getFont().getStyle(), panel1.getFont().getSize()), new Color(-16777216)));\n final JLabel label1 = new JLabel();\n label1.setText(\"GroupId\");\n panel1.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n myGroupIdField = new JTextField();\n panel1.add(myGroupIdField, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(444, 24), null, 0, false));\n final JLabel label2 = new JLabel();\n label2.setText(\"ArtifactId\");\n panel1.add(label2, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n myArtifactIdField = new JTextField();\n panel1.add(myArtifactIdField, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(444, 24), null, 0, false));\n final JLabel label3 = new JLabel();\n label3.setText(\"Version\");\n panel1.add(label3, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n myVersionField = new JTextField();\n myVersionField.setText(\"\");\n panel1.add(myVersionField, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(444, 24), null, 0, false));\n }", "void Footer() {\n\t\tJPanel panel = new JPanel(new FlowLayout());\r\n\t\tpanel.add(btnLogin);\r\n\t\tpanel.add(btnReset);\r\n\t\t\r\n\t\tadd(panel, BorderLayout.SOUTH);\r\n\t\t\r\n\t\t//Action Listener untuk melakukan action pindah halaman\r\n\t\tbtnLogin.addActionListener(this);\r\n\t\tbtnReset.addActionListener(this);\r\n\t}", "public void setBorderPaneLogin(BorderPane bp){\n VBox userInfo = new VBox();\n HBox userPinBox = new HBox();\n bp.setCenter(userInfo); // set Vbox to parent for center \n userInfo.getStyleClass().add(\"nodeBkg\");\n userInfo.setPadding(new Insets(40));\n \n // borderPane Settings\n bp.setAlignment(userInfo, Pos.CENTER);\n \n //box settings\n userInfo.setAlignment(Pos.CENTER);\n userPinBox.setAlignment(Pos.CENTER);\n \n \n // create labels\n Label introText = new Label(\"Enter your details\");\n Label pinLabel = new Label(\"User Pin: \");\n \n //create textField\n PasswordField pinField = new PasswordField();\n \n \n //Hbox setup \n userPinBox.getChildren().add(pinLabel);\n userPinBox.getChildren().add(pinField);\n \n \n // cheat login button\n Button login = new Button(\"Login\");\n login.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent event) {\n Login myLogin = new Login(); \n \n \n if (myLogin.login(pinField.getText())){ // use login class method returns true / false\n changeStage(loginStage, mainStage);\n }\n else{\n Alert userError = new Alert(AlertType.ERROR);\n userError.show();\n }\n }\n });\n \n\n // cheat login button\n Button skipLogin = new Button(\"skipLogin\");\n skipLogin.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent event) {\n changeStage(loginStage, mainStage);\n }\n });\n \n \n // add to VBOX\n userInfo.getChildren().add(introText);\n userInfo.getChildren().add(userPinBox);\n userInfo.getChildren().add(login);\n \n if (skipLoginPageButton){\n userInfo.getChildren().add(skipLogin);\n }\n \n //----------------------------------------------------\n // start of bottom numpad ----------------------------------------\n\n \n GridPane numPad = new GridPane();\n bp.setBottom(numPad); \n\n \n //numPad setting for responsive \n numPad.setAlignment(Pos.CENTER);\n numPad.prefWidthProperty().bind(bp.widthProperty());\n numPad.prefHeightProperty().bind(bp.heightProperty());\n numPad.setHgap(4.0);\n numPad.setVgap(4.0);\n numPad.setPadding(new Insets (15));\n \n\n // create columns and rows // not sure why but it offsets it to the right?????\n for (int i = 0; i < 4; i++) {\n ColumnConstraints column = new ColumnConstraints();\n column.setPercentWidth(25);\n numPad.getColumnConstraints().add(column);\n }\n\n // essentialy i am altering it until it works 100% is below the screen (not an issue if numpad is set to centre of the borderPane)\n for (int i = 0; i <= 4; i++) { // if set numpad to bottom of BorderPane added a row to fix it extending over bottom (if numpad was set to borderPane center this would not be included)\n RowConstraints row = new RowConstraints();\n if (i < 4){\n row.setPercentHeight(15); //15 x 4 = 60\n }else{\n row.setPercentHeight(25); // 25% for margin at the bottom row (invisable) leaves 15% somewhere\n }\n \n numPad.getRowConstraints().add(row);\n }\n \n \n \n \n // create buttons\n \n Button empty = new Button (Constants.EMPTY);\n Button empty1 = new Button (Constants.EMPTY);\n Button empty2 = new Button (Constants.EMPTY);\n Button empty3 = new Button (Constants.EMPTY);\n Button enter = new Button(Constants.ENTER);\n Button clear = new Button (Constants.CLEAR);\n\n Button zero = new Button(Constants.ZERO);\n Button one = new Button(Constants.ONE);\n Button two = new Button(Constants.TWO);\n Button three = new Button(Constants.THREE);\n Button four = new Button(Constants.FOUR);\n Button five = new Button(Constants.FIVE);\n Button six = new Button(Constants.SIX);\n Button seven = new Button(Constants.SEVEN);\n Button eight = new Button(Constants.EIGHT);\n Button nine = new Button(Constants.NINE); \n \n\n // add buttons to numPad\n //collumn 1\n numPad.add(one,0,0);\n numPad.add(four,0,1);\n numPad.add(seven,0,2);\n numPad.add(empty,0,3);\n\n // column 2\n numPad.add(two,1,0);\n numPad.add(five,1,1);\n numPad.add(eight,1,2);\n numPad.add(zero,1,3);\n\n // column 3\n numPad.add(three,2,0);\n numPad.add(six,2,1);\n numPad.add(nine,2,2);\n numPad.add(empty1,2,3);\n\n // coulumn 4\n numPad.add(empty2,3,0);\n numPad.add(clear,3,1);\n numPad.add(enter,3,2);\n numPad.add(empty3,3,3);\n \n\n \n// // set button size v2 Responsive\n empty.prefWidthProperty().bind(numPad.widthProperty());\n empty.prefHeightProperty().bind(numPad.heightProperty()); \n empty1.prefWidthProperty().bind(numPad.widthProperty());\n empty1.prefHeightProperty().bind(numPad.heightProperty()); \n empty2.prefWidthProperty().bind(numPad.widthProperty());\n empty2.prefHeightProperty().bind(numPad.heightProperty());\n empty3.prefWidthProperty().bind(numPad.widthProperty());\n empty3.prefHeightProperty().bind(numPad.heightProperty()); \n zero.prefWidthProperty().bind(numPad.widthProperty());\n zero.prefHeightProperty().bind(numPad.heightProperty());\n one.prefWidthProperty().bind(numPad.widthProperty());\n one.prefHeightProperty().bind(numPad.heightProperty());\n two.prefWidthProperty().bind(numPad.widthProperty());\n two.prefHeightProperty().bind(numPad.heightProperty());\n three.prefWidthProperty().bind(numPad.widthProperty());\n three.prefHeightProperty().bind(numPad.heightProperty());\n four.prefWidthProperty().bind(numPad.widthProperty());\n four.prefHeightProperty().bind(numPad.heightProperty());\n five.prefWidthProperty().bind(numPad.widthProperty());\n five.prefHeightProperty().bind(numPad.heightProperty());\n six.prefWidthProperty().bind(numPad.widthProperty());\n six.prefHeightProperty().bind(numPad.heightProperty());\n seven.prefWidthProperty().bind(numPad.widthProperty());\n seven.prefHeightProperty().bind(numPad.heightProperty());\n eight.prefWidthProperty().bind(numPad.widthProperty());\n eight.prefHeightProperty().bind(numPad.heightProperty());\n nine.prefWidthProperty().bind(numPad.widthProperty());\n nine.prefHeightProperty().bind(numPad.heightProperty());\n enter.prefWidthProperty().bind(numPad.widthProperty());\n enter.prefHeightProperty().bind(numPad.heightProperty());\n clear.prefWidthProperty().bind(numPad.widthProperty());\n clear.prefHeightProperty().bind(numPad.heightProperty());\n\n //Adding styles\n numPad.getStyleClass().add(\"nodeBkg\");\n enter.getStyleClass().add(\"enterButton\");\n clear.getStyleClass().add(\"clearButton\");\n \n zero.getStyleClass().add(\"genericButton\");\n one.getStyleClass().add(\"genericButton\");\n two.getStyleClass().add(\"genericButton\");\n three.getStyleClass().add(\"genericButton\");\n four.getStyleClass().add(\"genericButton\");\n five.getStyleClass().add(\"genericButton\");\n six.getStyleClass().add(\"genericButton\");\n seven.getStyleClass().add(\"genericButton\");\n eight.getStyleClass().add(\"genericButton\");\n nine.getStyleClass().add(\"genericButton\");\n empty.getStyleClass().add(\"genericButton\");\n empty1.getStyleClass().add(\"genericButton\");\n empty2.getStyleClass().add(\"genericButton\");\n empty3.getStyleClass().add(\"genericButton\");\n \n \n \n\n\n // repeated log in cheack in case user uses enter button instead of login button\n enter.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent event) {\n Login myLogin = new Login(); \n \n \n if (myLogin.login(pinField.getText())){ // use login class method returns true / false\n changeStage(loginStage, mainStage);\n }\n else{\n Alert userError = new Alert(AlertType.ERROR);\n userError.show();\n }\n }\n });\n \n \n \n \n \n // add num button actions\n one.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent t) {\n pinField.appendText(one.getText());\n }\n });\n two.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent t) {\n pinField.appendText(two.getText());\n }\n });\n three.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent t) {\n pinField.appendText(three.getText());\n }\n });\n four.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent t) {\n pinField.appendText(four.getText());\n }\n });\n five.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent t) {\n pinField.appendText(five.getText());\n }\n });\n six.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent t) {\n pinField.appendText(six.getText());\n }\n });\n seven.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent t) {\n pinField.appendText(seven.getText());\n }\n });\n eight.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent t) {\n pinField.appendText(eight.getText());\n }\n });\n nine.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent t) {\n pinField.appendText(nine.getText());\n }\n });\n \n zero.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent t) {\n pinField.appendText(zero.getText());\n }\n });\n \n clear.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent t) {\n pinField.clear();\n }\n });\n \n\n \n }", "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 }", "BorderPane getRoot();", "private void initLayout(){\r\n\t\t\r\n\t\tlabelSalvar.setLayoutX(((pane.getWidth() - labelSalvar.getWidth()) / 2) - 332);\r\n\t\tlabelSalvar.setLayoutY(60);\r\n\t\ttxSalvar.setLayoutX(((pane.getWidth() - txSalvar.getWidth()) / 2) - 100);\r\n\t\ttxSalvar.setPrefWidth(500);\r\n\t\ttxSalvar.setLayoutY(60);\r\n\t\t\r\n\t\tlabelArquivoRTF.setLayoutX(((pane.getWidth() - labelArquivoRTF.getWidth()) / 2) - 325);\r\n\t\tlabelArquivoRTF.setLayoutY(100);\r\n\t\ttxArquivoRTF.setLayoutX(((pane.getWidth() - txArquivoRTF.getWidth()) / 2) - 100);\r\n\t\ttxArquivoRTF.setPrefWidth(500);\r\n\t\ttxArquivoRTF.setLayoutY(100);\r\n\t\t\r\n\t\tlabelLinhaInicio.setLayoutX(((pane.getWidth() - labelLinhaInicio.getWidth()) / 2) - 145);\r\n\t\tlabelLinhaInicio.setLayoutY(140);\r\n\t\ttxLinhaInicio.setLayoutX(((pane.getWidth() - txArquivoRTF.getWidth()) / 2) - 10);\r\n\t\ttxLinhaInicio.setPrefWidth(50);\r\n\t\ttxLinhaInicio.setLayoutY(140);\r\n\t\t\r\n\t\tlabelLinhaFim.setLayoutX(((pane.getWidth() - labelLinhaFim.getWidth()) / 2) + 220);\r\n\t\tlabelLinhaFim.setLayoutY(140);\r\n\t\ttxLinhaFinal.setLayoutX(((pane.getWidth() - txLinhaFinal.getWidth()) / 2) + 350);\r\n\t\ttxLinhaFinal.setPrefWidth(50);\r\n\t\ttxLinhaFinal.setLayoutY(140);\r\n\t\t\r\n\t\tbtnExecutar.setLayoutX(((pane.getWidth() - btnExecutar.getWidth()) / 2) + 80);\r\n\t\tbtnExecutar.setLayoutY(210);\r\n\t\t\r\n\t\tprogressBar.setLayoutX(((pane.getWidth() - btnExecutar.getWidth()) / 2) + 260);\r\n\t\tprogressBar.setLayoutY(280);\r\n\t\t\r\n\t\tlabelBy.setLayoutX(((pane.getWidth() - btnExecutar.getWidth()) / 2) - 350);\r\n\t\tlabelBy.setScaleY(0.5);\r\n\t\tlabelBy.setScaleX(0.5);\r\n\t\tlabelBy.setLayoutY(280);\r\n\t\t\r\n\t}", "private void initComponents() {\r\n navigatePane = new javax.swing.JPanel();\r\n buttonPane = new javax.swing.JPanel();\r\n jPanel1 = new javax.swing.JPanel();\r\n copyright = new javax.swing.JLabel();\r\n jPanel2 = new javax.swing.JPanel();\r\n jPanel3 = new javax.swing.JPanel();\r\n back = new javax.swing.JButton();\r\n next = new javax.swing.JButton();\r\n cancel = new javax.swing.JButton();\r\n textPane = new javax.swing.JPanel();\r\n say = new javax.swing.JLabel();\r\n showPane = new javax.swing.JPanel();\r\n\r\n setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\r\n setTitle(\"Demo caption\");\r\n setTitle(getLocaleString(\"demo_caption\") + \" \" + getLocaleString(\"demo_version\"));\r\n addWindowListener(new java.awt.event.WindowAdapter() {\r\n public void windowClosing(java.awt.event.WindowEvent evt) {\r\n onWindowClose(evt);\r\n }\r\n });\r\n\r\n navigatePane.setLayout(new java.awt.BorderLayout());\r\n\r\n buttonPane.setLayout(new java.awt.GridLayout(1, 2));\r\n\r\n buttonPane.setPreferredSize(new java.awt.Dimension(200, 35));\r\n jPanel1.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT));\r\n\r\n jPanel1.setPreferredSize(new java.awt.Dimension(100, 40));\r\n copyright.setText(\"(c) Androsov Vadim\");\r\n copyright.setText(getLocaleString(\"copyright\"));\r\n copyright.setBorder(javax.swing.BorderFactory.createEmptyBorder(3, 1, 3, 1));\r\n jPanel1.add(copyright);\r\n\r\n buttonPane.add(jPanel1);\r\n\r\n jPanel2.setLayout(new java.awt.BorderLayout());\r\n\r\n jPanel2.setPreferredSize(new java.awt.Dimension(100, 20));\r\n jPanel3.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.RIGHT));\r\n\r\n back.setText(\"Back\");\r\n back.setText(getLocaleString(\"back\"));\r\n back.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n goBack(evt);\r\n }\r\n });\r\n\r\n jPanel3.add(back);\r\n\r\n next.setText(\"Next\");\r\n next.setText(getLocaleString(\"next\"));\r\n next.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n goNext(evt);\r\n }\r\n });\r\n\r\n jPanel3.add(next);\r\n\r\n cancel.setText(\"Exit\");\r\n cancel.setText(getLocaleString(\"exit\"));\r\n cancel.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n onCloseClick(evt);\r\n }\r\n });\r\n\r\n jPanel3.add(cancel);\r\n\r\n jPanel2.add(jPanel3, java.awt.BorderLayout.CENTER);\r\n\r\n buttonPane.add(jPanel2);\r\n\r\n navigatePane.add(buttonPane, java.awt.BorderLayout.CENTER);\r\n\r\n textPane.setLayout(new java.awt.GridLayout(1, 0));\r\n\r\n textPane.setBorder(javax.swing.BorderFactory.createCompoundBorder(javax.swing.BorderFactory.createEmptyBorder(3, 5, 3, 5), javax.swing.BorderFactory.createEtchedBorder()));\r\n textPane.setPreferredSize(new java.awt.Dimension(100, 150));\r\n say.setText(\"jLabel1\");\r\n textPane.add(say);\r\n\r\n navigatePane.add(textPane, java.awt.BorderLayout.NORTH);\r\n\r\n getContentPane().add(navigatePane, java.awt.BorderLayout.SOUTH);\r\n\r\n showPane.setLayout(new java.awt.BorderLayout());\r\n\r\n showPane.setBorder(javax.swing.BorderFactory.createCompoundBorder(javax.swing.BorderFactory.createEmptyBorder(2, 5, 2, 5), javax.swing.BorderFactory.createEtchedBorder()));\r\n getContentPane().add(showPane, java.awt.BorderLayout.CENTER);\r\n\r\n pack();\r\n }", "private void initBottom(BorderPane root) {\n // Make bottom box for buttons\n HBox bottomButtons = new HBox();\n bottomButtons.setPrefWidth(150);\n bottomButtons.setAlignment(Pos.CENTER);\n bottomButtons.setPadding(new Insets(0, 60, 20, 60));\n bottomButtons.setSpacing(50);\n\n // Report button\n Button downReportBut = new Button(\"Download Report\");\n downReportBut.setOnAction(e -> {\n downloadReport();\n });\n // Add to HBox\n bottomButtons.getChildren().addAll(downReportBut);\n\n // Add to root\n root.setBottom(bottomButtons);\n root.setPadding(new Insets(20));\n\n }", "@AutoGenerated\n\tprivate AbsoluteLayout buildMainLayout() {\n\t\tmainLayout = new AbsoluteLayout();\n\t\tmainLayout.setImmediate(false);\n\t\tmainLayout.setWidth(\"100%\");\n\t\tmainLayout.setHeight(\"100%\");\n\t\t\n\t\t// top-level component properties\n\t\tsetWidth(\"100.0%\");\n\t\tsetHeight(\"100.0%\");\n\t\t\n\t\t// tablaGestionEvaluaciones\n\t\ttablaGestionEvaluaciones = new Table();\n\t\ttablaGestionEvaluaciones.setImmediate(false);\n\t\ttablaGestionEvaluaciones.setWidth(\"100.0%\");\n\t\ttablaGestionEvaluaciones.setHeight(\"100.0%\");\n\t\tmainLayout.addComponent(tablaGestionEvaluaciones,\n\t\t\t\t\"top:57.0px;right:20.0px;bottom:20.0px;left:20.0px;\");\n\t\t\n\t\t// botonCrearEvaluacion\n\t\tbotonCrearEvaluacion = new Button();\n\t\tbotonCrearEvaluacion.setCaption(\"Crear Evaluación\");\n\t\tbotonCrearEvaluacion.setImmediate(true);\n\t\tbotonCrearEvaluacion.setWidth(\"-1px\");\n\t\tbotonCrearEvaluacion.setHeight(\"-1px\");\n\t\tmainLayout\n\t\t\t\t.addComponent(botonCrearEvaluacion, \"top:14.0px;left:20.0px;\");\n\t\t\n\t\t// buttonEditarEvaluacion\n\t\tbuttonEditarEvaluacion = new Button();\n\t\tbuttonEditarEvaluacion.setCaption(\"Editar Evaluación\");\n\t\tbuttonEditarEvaluacion.setImmediate(false);\n\t\tbuttonEditarEvaluacion.setWidth(\"-1px\");\n\t\tbuttonEditarEvaluacion.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(buttonEditarEvaluacion,\n\t\t\t\t\"top:14.0px;left:160.0px;\");\n\t\t\n\t\treturn mainLayout;\n\t}", "@Override\r\n\tpublic void createContents(Panel mainPanel) {\n\t\t\r\n\t\t\r\nsetTitle(\"¿Dónde invierto?\");\r\n\t\t\r\n\t\tmainPanel.setLayout(new VerticalLayout());\r\n\t\tnew Label(mainPanel).setText(\"Menú Principal\").setFontSize(15).setForeground(Color.RED);\r\n\t\tnew Label(mainPanel).setText(\"Seleccionar la opción deseada\").setFontSize(13).setForeground(Color.BLACK);\r\n\t\t\r\n\t\tnew Label(mainPanel).setText(\"Carga Correcta de las Empresas!\").setFontSize(9).setForeground(Color.GREEN).bindVisibleToProperty(\"bloq\");\r\n\t\tnew Label(mainPanel).setText(\" \").setFontSize(2);\r\n\t\t\r\n\t\tnew Label(mainPanel).setText(\" \").setFontSize(2);\r\n\t\t\r\n\t\tnew Label(mainPanel).setText(\"Mostrar el valor de una cuenta predefinida\");\r\n\t\tButton bot_MostrarCuentas= new Button(mainPanel);\r\n\t\t\r\n\t\tbot_MostrarCuentas.setCaption(\"Mostrar valores de la Empresa\");//.bindEnabledToProperty(\"bloq\");\r\n\t\tbot_MostrarCuentas.onClick(() -> new mostrarValoresDeEmpresas(this,new mostrarValoresDeEmpresasViewModel()).open());\r\n\t\t\r\n\t\t\r\n\t\tnew Label(mainPanel).setText(\" \").setFontSize(2);\r\n\t\t\r\n\t\tnew Label(mainPanel).setText(\"Crear un nuevo indicador\");\r\n\t\tnew Button(mainPanel).setCaption(\"Escribir formula\").onClick(() -> new crearIndicadores(this,new crearIndicadoresViewModel()).open());\r\n\t\t\r\n\t\tnew Label(mainPanel).setText(\" \").setFontSize(2);\r\n\t\t\r\n\t\t\r\n\t\tnew Label(mainPanel).setText(\"Menu de Metodologias\");\r\n\t\t\r\n\t\tPanel parte1 =new Panel(mainPanel);\r\n\t\tparte1.setLayout(new ColumnLayout(2));\t\r\n\t\tButton bot_evaluarEmpresas= new Button(parte1);\r\n\t\tbot_evaluarEmpresas.setCaption(\"Evaluar una empresa\");\r\n\t\tbot_evaluarEmpresas.setWidth(125);\r\n\t\tbot_evaluarEmpresas.onClick(() -> new evaluarEmpresas(this, new evaluarEmpresasViewModel()).open());\r\n\t\r\n\t\tButton bot_configurarMetodologia= new Button(parte1);\r\n\t\tbot_configurarMetodologia.setCaption(\"Crear Metodologia\");\r\n\t\tbot_configurarMetodologia.setWidth(125);\r\n\t\tbot_configurarMetodologia.onClick(() ->crearNuevaMetodologia());\t\r\n\t\t\r\n\t\t\r\n\t\tnew Label(mainPanel).setText(\" \").setFontSize(2);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t/*\tnew Label(mainPanel).setText(\"Importar/Exportar archivos\");\r\n\t\t\r\n\t\tButton bot_impExpArchivos = new Button(mainPanel);\r\n\t\tbot_impExpArchivos.setCaption(\"Importar Archivos o exportar\");\r\n\t\tbot_impExpArchivos.setWidth(125);\r\n\t\tbot_impExpArchivos.onClick(() -> new importarExportarArchivos(this, new importarExportarArchivosViewModel()).open());\r\n\t\t\r\n\r\n\t\tnew Label(mainPanel).setText(\" \").setFontSize(2);\r\n\t\tnew Label(mainPanel).setText(\" \").setFontSize(2);\r\n\t\tnew Label(mainPanel).setText(\" \").setFontSize(2);\r\n\t\tnew Label(mainPanel).setText(\" \").setFontSize(2);\r\n\t\tnew Label(mainPanel).setText(\"Desde aca abajo vuela todo y va a otra ventana \\\\|/\").setFontSize(8);\r\n\t */\r\n\t\t\r\n\t\tnew Label(mainPanel).setText(\"Cargar un archivo de empresas\");\r\n\t\tPanel panel2 = new Panel(mainPanel);\r\n\t\tpanel2.setLayout(new ColumnLayout(2));\r\n\t\t\r\n\t\tFileSelector fileSelector = new FileSelector(panel2);\r\n\t\tfileSelector.extensions(\"*.txt\");\r\n\t\tfileSelector.setCaption(\"Seleccionar archivo\");\r\n\t\tfileSelector.setWidth(125);\r\n\t\tfileSelector.bindValueToProperty(\"rutaArchivo\");\r\n\t\tfileSelector.onClick(() -> this.cargarArchivo());\r\n\t\t\r\n\t\tnew TextBox(panel2).setWidth(125).bindValueToProperty(\"rutaArchivo\");\r\n\t\t\r\n\t\t\r\n\t\tnew Button(mainPanel).setCaption(\"Procesar archivo\").onClick(() -> this.cargarArchivo());\r\n\r\n\t\tIOs.leerIndicadoresDeArchivo(\"archivoIndicadores.txt\");\r\n\t\t\r\n\t\tRepositorioDeEmpresas.traerEmpresasDeLaDB();\r\n\t}", "private void createpanel4() {\r\n\t\tpanels[3].setLayout(new FlowLayout(FlowLayout.CENTER, 20, 0));\r\n\r\n\t\texecute = new JButton(\"Login\") {\r\n\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void paint(Graphics g) {\r\n\t\t\t\tg.drawImage(ImageLoader.getImage(\"black_0.4\"), 0, 0, null);\r\n\t\t\t\tsuper.paint(g);\r\n\t\t\t}\r\n\t\t};\r\n\t\texecute.setOpaque(false);\r\n\t\tif (System.getProperty(\"os.name\").startsWith(\"Windows\"))\r\n\t\t\texecute.setForeground(Color.WHITE);\r\n\t\telse\r\n\t\t\texecute.setForeground(Color.BLACK);\r\n\t\texecute.setBorderPainted(true);\r\n\t\texecute.setContentAreaFilled(false);\r\n\t\texecute.setFont(customFont.deriveFont(15f));\r\n\r\n\t\tcancel = new JButton(\"Cancel\") {\r\n\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void paint(Graphics g) {\r\n\t\t\t\tg.drawImage(ImageLoader.getImage(\"black_0.4\"), 0, 0, null);\r\n\t\t\t\tsuper.paint(g);\r\n\t\t\t}\r\n\t\t};\r\n\t\tcancel.setOpaque(false);\r\n\t\tif (System.getProperty(\"os.name\").startsWith(\"Windows\"))\r\n\t\t\tcancel.setForeground(Color.WHITE);\r\n\t\telse\r\n\t\t\tcancel.setForeground(Color.BLACK);\r\n\t\tcancel.setBorderPainted(true);\r\n\t\tcancel.setContentAreaFilled(false);\r\n\t\tcancel.setFont(customFont.deriveFont(15f));\r\n\r\n\t\tcreateAccount = new JButton(\"New Account\") {\r\n\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void paint(Graphics g) {\r\n\t\t\t\tg.drawImage(ImageLoader.getImage(\"black_0.4\"), 0, 0, null);\r\n\t\t\t\tsuper.paint(g);\r\n\t\t\t}\r\n\t\t};\r\n\t\tcreateAccount.setOpaque(false);\r\n\t\tif (System.getProperty(\"os.name\").startsWith(\"Windows\"))\r\n\t\t\tcreateAccount.setForeground(Color.WHITE);\r\n\t\telse\r\n\t\t\tcreateAccount.setForeground(Color.BLACK);\r\n\t\tcreateAccount.setBorderPainted(true);\r\n\t\tcreateAccount.setContentAreaFilled(false);\r\n\t\tcreateAccount.setFont(customFont.deriveFont(10f));\r\n\r\n\t\tcancel.setPreferredSize(new Dimension(120, 30));\r\n\t\tcreateAccount.setPreferredSize(new Dimension(120, 30));\r\n\t\texecute.setPreferredSize(new Dimension(120, 30));\r\n\r\n\t\tpanels[3].add(execute);\r\n\t\tpanels[3].add(createAccount);\r\n\t\tpanels[3].add(cancel);\r\n\t\tpanels[3].setOpaque(false);\r\n\t\tallComponents.add(panels[3]);\r\n\t\tthis.backPanel.add(allComponents);\r\n\t\tthis.getContentPane().add(backPanel);\r\n\t\tpanels[3].revalidate();\r\n\r\n\t\tcreateAccount.addMouseListener(\r\n\t\t\t\tnew LoginListener(createAccount, userinfo, passwordbox, guicontroller, cancel, createAccount));\r\n\t\tcancel.addMouseListener(new LoginListener(cancel, userinfo, passwordbox, guicontroller, cancel, createAccount));\r\n\t\texecute.addMouseListener(\r\n\t\t\t\tnew LoginListener(execute, userinfo, passwordbox, guicontroller, cancel, createAccount));\r\n\t}", "private void createMainMenuFooterComposite() {\n\n\t\tGridData gridData22 = new GridData();\n\t\tgridData22.horizontalAlignment = GridData.BEGINNING;\n\t\tgridData22.verticalAlignment = GridData.END;\n\t\tGridData gridData2 = new GridData();\n\t\tgridData2.grabExcessHorizontalSpace = true;\n\t\tgridData2.grabExcessVerticalSpace = true;\n\t\tgridData2.verticalAlignment = GridData.END;\n\t\tgridData2.heightHint = 75;\n\t\tgridData2.widthHint = 75;\n\t\tgridData2.horizontalAlignment = GridData.END;\n\n\t\tGridLayout gridLayout2 = new GridLayout();\n\t\tgridLayout2.horizontalSpacing = 30;\n\t\tgridLayout2.marginHeight = 20;\n\t\tgridLayout2.numColumns = 2;\n\t\tgridLayout2.marginWidth = 20;\n\n\t\tGridData gridData = new GridData();\n\t\tgridData.grabExcessHorizontalSpace = true;\n\t\tgridData.verticalAlignment = GridData.END;\n\t\tgridData.heightHint = 150;\n\t\tgridData.horizontalAlignment = GridData.FILL;\n\t\tmainMenuFooterComposite = new Composite(this, SWT.NONE);\n\t\tmainMenuFooterComposite.setBackground(new Color(Display.getCurrent(),\n\t\t\t\t255, 255, 255));\n\t\tmainMenuFooterComposite.setLayout(gridLayout2);\n\t\tmainMenuFooterComposite.setLayoutData(gridData);\n\n\t\tlblBallyCopyright = new CbctlLabel(mainMenuFooterComposite, SWT.NONE);\n\t\tlblBallyCopyright.setText(LabelLoader.getLabelValue(LabelKeyConstants.BALLY_COPYRIGHT_LABEL));\n\t\tlblBallyCopyright.setLayoutData(gridData22);\n\t\tlblBallyCopyright.setFont(new Font(Display.getDefault(), \"Arial\", 8, SWT.NORMAL));\n\t\tbtnExit = new CbctlButton(mainMenuFooterComposite, SWT.NONE, \"\",\n\t\t\t\tLabelKeyConstants.EXIT_BUTTON);\n\t\tbtnExit.setImage(new Image(Display.getCurrent(), getClass()\n\t\t\t\t.getResourceAsStream(imgExitBtn)));\n\t\tbtnExit.setLayoutData(gridData2);\n\t}", "@SuppressWarnings(\"unchecked\")\n public void centralizarComponente() {\n Dimension ds = Toolkit.getDefaultToolkit().getScreenSize();\n Dimension dw = getSize();\n setLocation((ds.width - dw.width) / 2, (ds.height - dw.height) / 2);\n }", "@Override\n public void start(Stage stage) throws Exception{\n BorderPane border = new BorderPane();\n\n// HBox hbox = addHBox();\n// border.setTop(hbox);\n border.setLeft(addVBox());\n\n// hbox.setStyle(\"\");\n// addStackPane(hbox);\n border.setCenter(addAnchorPane(addGridPane()));\n\n Scene scene = new Scene(border);\n stage.setScene(scene);\n stage.setTitle(\"Wally Save\");\n stage.show();\n }", "public frmMain(Login newLogin) {\n\t\t\n\t\tsetUndecorated(true);\n\t\tDimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tsetLocationByPlatform(true);\n\t\tsetExtendedState(Frame.MAXIMIZED_BOTH);\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tsetBounds(0, 0, screenSize.width, screenSize.height);\n\t\tcontentPane = new JPanel();\n\t\tcontentPane.setMinimumSize(new Dimension(4000, 10));\n\t\tcontentPane.setPreferredSize(new Dimension(4000, 10));\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\n\t\tsetContentPane(contentPane);\n\t\tcontentPane.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tpanelMenu = new JPanel();\n\t\tpanelMenu.setMaximumSize(new Dimension(160, 32767));\n\t\tpanelMenu.setBackground(new Color(51, 51, 51));\n\t\tpanelMenu.setPreferredSize(new Dimension(250, 10));\n\t\tpanelMenu.setBounds(new Rectangle(0, 0, 200, 0));\n\t\tcontentPane.add(panelMenu, BorderLayout.WEST);\n\t\tpanelMenu.setLayout(null);\n\t\t\n\t\tJLabel lblHighlightNotifications = new JLabel(\"\");\n\t\tlblHighlightNotifications.setOpaque(true);\n\t\tlblHighlightNotifications.setBackground(new Color(0, 255, 255));\n\t\tlblHighlightNotifications.setBounds(238, 86, 12, 85);\n\t\tpanelMenu.add(lblHighlightNotifications);\n\t\t\n\t\t\n\t\tJLabel lblHighlightThesis = new JLabel(\"\");\n\t\tlblHighlightThesis.setOpaque(true);\n\t\tlblHighlightThesis.setBackground(Color.CYAN);\n\t\tlblHighlightThesis.setBounds(238, 275, 12, 82);\n\t\tpanelMenu.add(lblHighlightThesis);\n\t\t\n\t\tJLabel lblHighlightSettings = new JLabel(\"\");\n\t\tlblHighlightSettings.setOpaque(true);\n\t\tlblHighlightSettings.setBackground(Color.CYAN);\n\t\tlblHighlightSettings.setBounds(238, 461, 12, 82);\n\t\tpanelMenu.add(lblHighlightSettings);\n\t\t\n\t\tJLabel lblHighlightStatistics = new JLabel(\"\");\n\t\tlblHighlightStatistics.setOpaque(true);\n\t\tlblHighlightStatistics.setBackground(Color.CYAN);\n\t\tlblHighlightStatistics.setBounds(238, 647, 12, 82);\n\t\tpanelMenu.add(lblHighlightStatistics);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"Notifications\");\n\t\tlblNewLabel.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tlblNewLabel.setForeground(new Color(169, 169, 169));\n\t\tlblNewLabel.setFont(new Font(\"Yu Gothic UI Semibold\", Font.PLAIN, 22));\n\t\tlblNewLabel.setBounds(61, 138, 128, 30);\n\t\tpanelMenu.add(lblNewLabel);\n\t\t\n\t\tJLabel label_13 = new JLabel(\"\");\n\t\tlabel_13.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tlabel_13.setIcon(new ImageIcon(frmMain.class.getResource(\"/Images/dashboard_diploma_icon.png\")));\n\t\tlabel_13.setBounds(100, 275, 50, 50);\n\t\tpanelMenu.add(label_13);\n\t\t\n\t\tJLabel lblDiploma = new JLabel(\"Thesis\");\n\t\tlblDiploma.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tlblDiploma.setForeground(new Color(169, 169, 169));\n\t\tlblDiploma.setFont(new Font(\"Yu Gothic UI Semibold\", Font.PLAIN, 22));\n\t\tlblDiploma.setBounds(94, 327, 61, 30);\n\t\tpanelMenu.add(lblDiploma);\n\t\t\n\t\tJLabel label_14 = new JLabel(\"\");\n\t\tlabel_14.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tlabel_14.setIcon(new ImageIcon(frmMain.class.getResource(\"/Images/settings-gears.png\")));\n\t\tlabel_14.setBounds(100, 461, 50, 50);\n\t\tpanelMenu.add(label_14);\n\t\t\n\t\tJLabel lblSettings = new JLabel(\"Settings\");\n\t\tlblSettings.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tlblSettings.setForeground(new Color(169, 169, 169));\n\t\tlblSettings.setFont(new Font(\"Yu Gothic UI Semibold\", Font.PLAIN, 22));\n\t\tlblSettings.setBounds(84, 513, 81, 30);\n\t\tpanelMenu.add(lblSettings);\n\t\t\n\t\tJLabel label_15 = new JLabel(\"\");\n\t\tlabel_15.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tlabel_15.setIcon(new ImageIcon(frmMain.class.getResource(\"/Images/bars.png\")));\n\t\tlabel_15.setBounds(100, 647, 50, 50);\n\t\tpanelMenu.add(label_15);\n\t\t\n\t\tJLabel lblStatistics = new JLabel(\"Statistics\");\n\t\tlblStatistics.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tlblStatistics.setForeground(new Color(169, 169, 169));\n\t\tlblStatistics.setFont(new Font(\"Yu Gothic UI Semibold\", Font.PLAIN, 22));\n\t\tlblStatistics.setBounds(81, 699, 87, 30);\n\t\tpanelMenu.add(lblStatistics);\n\t\t\n\t\tpanelMenuNotifications = new JPanel();\n\t\tpanelMenuNotifications.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tpanelMenuNotifications.setOpaque(false);\n\t\tpanelMenuNotifications.setBounds(0, 69, 250, 123);\n\t\tpanelMenu.add(panelMenuNotifications);\n\t\t\n\t\tpanelMenuThesis = new JPanel();\n\t\tpanelMenuThesis.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tpanelMenuThesis.setOpaque(false);\n\t\tpanelMenuThesis.setBounds(0, 253, 250, 123);\n\t\tpanelMenu.add(panelMenuThesis);\n\t\t\n\t\tpanelMenuSettings = new JPanel();\n\t\tpanelMenuSettings.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tpanelMenuSettings.setOpaque(false);\n\t\tpanelMenuSettings.setBounds(0, 441, 250, 123);\n\t\tpanelMenu.add(panelMenuSettings);\n\t\t\n\t\tpanelMenuStats = new JPanel();\n\t\tpanelMenuStats.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tpanelMenuStats.setOpaque(false);\n\t\tpanelMenuStats.setBounds(0, 625, 250, 123);\n\t\tpanelMenu.add(panelMenuStats);\n\t\t\n\t\tJButton btnMyAccount = new JButton(\"MY ACCOUNT\");\n\t\t\n\t\tbtnMyAccount.setContentAreaFilled(false);\n\t\tbtnMyAccount.setFocusPainted(false);\n\t\tbtnMyAccount.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tbtnMyAccount.setForeground(new Color(102, 102, 102));\n\t\tbtnMyAccount.setFont(new Font(\"Yu Gothic UI Semibold\", Font.PLAIN, 22));\n\t\tbtnMyAccount.setBorder(UIManager.getBorder(\"Button.border\"));\n\t\tbtnMyAccount.setBounds(33, 748, 186, 64);\n\t\tpanelMenu.add(btnMyAccount);\n\t\t\n\t\tJButton btnLogOut = new JButton(\"LOG OUT\");\n\t\tbtnLogOut.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tLoginForm window = new LoginForm();\n\t\t\t\twindow.frmLogin.setVisible(true);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnLogOut.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tLoginForm window = new LoginForm();\n\t\t\t\twindow.frmLogin.setVisible(true);\n\t\t\t}\n\t\t});\n\t\t\n\t\tbtnLogOut.setForeground(new Color(102, 102, 102));\n\t\tbtnLogOut.setFont(new Font(\"Yu Gothic UI Semibold\", Font.PLAIN, 22));\n\t\tbtnLogOut.setFocusPainted(false);\n\t\tbtnLogOut.setContentAreaFilled(false);\n\t\tbtnLogOut.setBorder(UIManager.getBorder(\"Button.border\"));\n\t\tbtnLogOut.setBounds(33, 812, 186, 64);\n\t\tpanelMenu.add(btnLogOut);\n\t\t\n\t\tpanelTop = new JPanel();\n\t\tpanelTop.setMinimumSize(new Dimension(10, 200));\n\t\tpanelTop.setPreferredSize(new Dimension(10, 170));\n\t\tcontentPane.add(panelTop, BorderLayout.NORTH);\n\t\tpanelTop.setLayout(new BoxLayout(panelTop, BoxLayout.X_AXIS));\n\t\t\n\t\tpanelLogo = new JPanel();\n\t\tpanelLogo.setMinimumSize(new Dimension(250, 200));\n\t\tpanelLogo.setPreferredSize(new Dimension(250, 200));\n\t\tpanelLogo.setSize(new Dimension(160, 0));\n\t\tpanelLogo.setMaximumSize(new Dimension(250, 32767));\n\t\tpanelLogo.setBackground(new Color(51, 204, 204));\n\t\tpanelTop.add(panelLogo);\n\t\tpanelLogo.setLayout(null);\n\t\t\n\t\tJLabel lblLogo = new JLabel(\"\");\n\t\tlblLogo.setIcon(new ImageIcon(frmMain.class.getResource(\"/Images/dashboard_logo_icon.png\")));\n\t\tlblLogo.setBounds(66, 23, 117, 117);\n\t\tpanelLogo.add(lblLogo);\n\t\t\n\t\tpanelPerson = new JPanel();\n\t\tpanelPerson.setMinimumSize(new Dimension(10, 200));\n\t\tpanelPerson.setMaximumSize(new Dimension(32767, 200));\n\t\tpanelPerson.setBackground(new Color(51, 204, 255));\n\t\tpanelPerson.setPreferredSize(new Dimension(270, 200));\n\t\tpanelTop.add(panelPerson);\n\t\tpanelPerson.setLayout(null);\n\t\t\n\t\t// Metoda qe merr si paramter se cfare lloj anetari eshte (student,profesor ose administrator)\n\t\t// dhe shfaq ikonen dhe labelen perkatese tek ana djathte larte\n\t\tuserMember(newLogin);\n\t\t\n\t\tpanelMain = new JPanel();\n\t\tcontentPane.add(panelMain, BorderLayout.CENTER);\n\t\tpanelMain.setLayout(null);\n\t\t\n\t\t//DB\n\t\t// Marrja e te dhenave nga Databasa (Tema per studentin)\n\t\tString[] columnNames = {\"Tema\",\n \"Viti\",\n \"Profesori\"};\n\n\t\tObject[][] data = {\n\t\t{\"Data Mining\", \"2017\",\n\t\t\"Blerim Reha\", new Integer(10), new Boolean(false)},\n\t\t{\"Siguria te dhenave\", \"2018\",\n\t\t\"Lule Ahmedi\", new Integer(3), new Boolean(true)},\n\t\t{\"Artificial Intellegence\", \"2018\",\n\t\t\"Agni Dika\", new Integer(2), new Boolean(false)}\n\t\t};\n\t\t\n\t\tString[] columnNames1 = {\"Tema\",\n \"Viti\",\n \"Profesori\"};\n\n\t\tObject[][] data1 = {\n\t\t{\"Data Mining\", \"2017\",\n\t\t\"Blerim Reha\", new Integer(10), new Boolean(false)}\n\t\t};\n\t\t\n\t\t//DB\n\t\t// Marrja e te dhenave nga Databasa (Tema per administraten)\n\t\tString[] AdministrataColumnNamesThesis = {\"Tema\",\n \"Studenti\", \n \"Fakulteti\",\n \"Lenda\",\n \"Profesori\",\n \"Viti\",\n \"Statusi\"};\n\n\t\tObject[][] Administratadata = {\n\t\t{\"Analysis Using Data Mining\", \"Blend Arifaj\",\"Fakulteti i Inxhinieris Elektrike dhe Kompjuterike\",\"Data Mining\",\"Lule Ahmedi\",\"2018\",\"Aprovuar\"},\n\t\t{\"Analysis Using Data Mining\", \"Blend Arifaj\",\"Fakulteti i Inxhinieris Elektrike dhe Kompjuterike\",\"Data Mining\",\"Lule Ahmedi\",\"2018\",\"Anuluar\"},\n\t\t{\"Analiza e tregut\", \"Blend Arifaj\",\"Fakulteti i Inxhinieris Elektrike dhe Kompjuterike\",\"Data Mining\",\"Lule Ahmedi\",\"2018\",\"Anuluar\"},\n\t\t{\"Analysis Using Data Mining\", \"Blend Arifaj\",\"Fakulteti i Inxhinieris Elektrike dhe Kompjuterike\",\"Data Mining\",\"Lule Ahmedi\",\"2018\",\"Anuluar\"},\n\t\t{\"Siguria ne Internet\", \"Blend Arifaj\",\"Fakulteti i Inxhinieris Elektrike dhe Kompjuterike\",\"Data Mining\",\"Lule Ahmedi\",\"2018\",\"Ne Shqyrtim\"}\n\n\t\t};\n\t\t\n\t\tpanelAdministrataDiploma = new JPanel();\n\t\tpanelAdministrataDiploma.setVisible(false);\n\t\t\n\t\tpanelStudentStats = new JPanel();\n\t\tpanelStudentStats.setVisible(false);\n\t\t\n\t\tpanelAdministrataStats = new JPanel();\n\t\tpanelAdministrataStats.setVisible(false);\n\t\t\n\t\tpanelAdministrataBtnKontrollo = new JPanel();\n\t\tpanelAdministrataBtnKontrollo.setVisible(false);\n\t\t\n\t\tpanelAdministrataSettingsShto = new JPanel();\n\t\tpanelAdministrataSettingsShto.setVisible(false);\n\t\t\n\t\tpanelStudentProfile = new JPanel();\n\t\tpanelStudentProfile.setVisible(false);\n\t\t\n\t\tpanelStudentMyAccount = new JPanel();\n\t\tpanelStudentMyAccount.setVisible(false);\n\t\t\n\t\tpanelStudentSettings = new JPanel();\n\t\tpanelStudentSettings.setVisible(false);\n\t\t\t\t\n\t\t\t\tpanelStudentDiploma = new JPanel();\n\t\t\t\tpanelStudentDiploma.setVisible(false);\n\t\t\t\t\n\t\t\t\tpanelStudentDiploma.setBounds(0, 0, 1427, 865);\n\t\t\t\tpanelMain.add(panelStudentDiploma);\n\t\t\t\tpanelStudentDiploma.setBackground(Color.WHITE);\n\t\t\t\tpanelStudentDiploma.setLayout(null);\n\t\t\t\t\n\t\t\t\ttxtAdd = new JTextField();\n\t\t\t\ttxtAdd.setText(\"Add\");\n\t\t\t\ttxtAdd.setOpaque(false);\n\t\t\t\ttxtAdd.setHorizontalAlignment(SwingConstants.CENTER);\n\t\t\t\ttxtAdd.setFont(new Font(\"Tahoma\", Font.PLAIN, 20));\n\t\t\t\ttxtAdd.setColumns(10);\n\t\t\t\ttxtAdd.setBorder(null);\n\t\t\t\ttxtAdd.setBounds(824, 678, 71, 46);\n\t\t\t\tpanelStudentDiploma.add(txtAdd);\n\t\t\t\t\n\t\t\t\tJLabel lblStudentDiplomaShto = new JLabel(\"\");\n\t\t\t\tlblStudentDiplomaShto.addMouseListener(new MouseAdapter() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\tif(cmbZgjedhProfesorin.getSelectedIndex() != 0 && cmbZgjedhLenden.getSelectedIndex() !=0) {\n\t\t\t\t\t\t\tProfesori newProf = new Profesori();\n\t\t\t\t\t\t\tnewProf.getProfesoriFromEmri(cmbZgjedhProfesorin.getSelectedItem().toString());\n\t\t\t\t\t\t\tLenda newLenda = new Lenda();\n\t\t\t\t\t\t\tnewLenda.getLenden(cmbZgjedhLenden.getSelectedItem().toString());\n\t\t\t\t\t\t\tPunimi newPunim = new Punimi(txtShkruajTemen.getText(),\n\t\t\t\t\t\t\t\t\tnewProf.getID(), newLenda.getLenda(),\"x\");\n\t\t\t\t\t\t\tnewPunim.setStudenti(newLogin.student);\n\t\t\t\t\t\t\tnewPunim.setDepartamenti(newLogin.student.getDepartamenti());\n\t\t\t\t\t\t\tnewPunim.setLenda(newLenda);\n\t\t\t\t\t\t\tif(newPunim.insertNewPunim()) {\n\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Keni shtuar me sukses punimin!\");\n\t\t\t\t\t\t\t\ttxtShkruajTemen.setText(\"\");\n\t\t\t\t\t\t\t\tcmbZgjedhLenden.setSelectedIndex(0);\n\t\t\t\t\t\t\t\tcmbZgjedhProfesorin.setSelectedIndex(0);\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Gabim gjate shtimit te punimit - Ne server\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Gabim gjate shtimit te punimit\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t//Vendi ku kemi me shtu temen e diplomes\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tlblStudentDiplomaShto.setIcon(new ImageIcon(frmMain.class.getResource(\"/Images/login_rectangle_login.png\")));\n\t\t\t\tlblStudentDiplomaShto.setBounds(761, 678, 200, 46);\n\t\t\t\tpanelStudentDiploma.add(lblStudentDiplomaShto);\n\t\t\t\t\n\t\t\t\ttxtUpload = new JTextField();\n\t\t\t\ttxtUpload.setText(\"Upload\");\n\t\t\t\ttxtUpload.setOpaque(false);\n\t\t\t\ttxtUpload.setHorizontalAlignment(SwingConstants.CENTER);\n\t\t\t\ttxtUpload.setFont(new Font(\"Tahoma\", Font.PLAIN, 20));\n\t\t\t\ttxtUpload.setColumns(10);\n\t\t\t\ttxtUpload.setBorder(null);\n\t\t\t\ttxtUpload.setBounds(807, 500, 114, 46);\n\t\t\t\tpanelStudentDiploma.add(txtUpload);\n\t\t\t\t\n\t\t\t\tJLabel lblStudentDiplomaUploadIcon = new JLabel(\"\");\n\t\t\t\tlblStudentDiplomaUploadIcon.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/upload.png\")).getImage().getScaledInstance(100, 100, Image.SCALE_SMOOTH)));\n\t\t\t\tlblStudentDiplomaUploadIcon.setBounds(807, 376, 107, 111);\n\t\t\t\tpanelStudentDiploma.add(lblStudentDiplomaUploadIcon);\n\t\t\t\t\n\t\t\t\ttxtShkruajTemen = new JTextField();\n\t\t\t\ttxtShkruajTemen.setHorizontalAlignment(SwingConstants.CENTER);\n\t\t\t\ttxtShkruajTemen.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\t\t\ttxtShkruajTemen.setBounds(332, 140, 579, 79);\n\t\t\t\ttxtShkruajTemen.setBorder(null);\n\t\t\t\ttxtShkruajTemen.setOpaque(false);\n\t\t\t\tpanelStudentDiploma.add(txtShkruajTemen);\n\t\t\t\ttxtShkruajTemen.setColumns(10);\n\t\t\t\t\n\t\t\t\tJLabel lblStudentDiplomaTema = new JLabel(\"\");\n\t\t\t\tlblStudentDiplomaTema.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/myaccount_rectangle.png\")).getImage().getScaledInstance(600, 100, Image.SCALE_SMOOTH)));\n\t\t\t\tlblStudentDiplomaTema.setBounds(322, 126, 608, 105);\n\t\t\t\tpanelStudentDiploma.add(lblStudentDiplomaTema);\n\t\t\t\t\n\t\t\t\t// DB\n\t\t\t\t// Tek Faqja per uploadim te diplomes , mbushja e comboBox me te dhenat nga profesorat e departamentit\n\t\t\t\tcmbZgjedhProfesorin = new JComboBox();\n\t\t\t\tcmbZgjedhProfesorin.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\t\t\tcmbZgjedhProfesorin.setModel(new DefaultComboBoxModel(new String[] {\"Zgjedheni Profesorin\"}));\n\t\t\t\tcmbZgjedhProfesorin.setBackground(Color.WHITE);\n\t\t\t\tcmbZgjedhProfesorin.setBounds(322, 571, 363, 84);\n\t\t\t\tpanelStudentDiploma.add(cmbZgjedhProfesorin);\n\t\t\t\tJLabel lblStudentDiplomaUpload = new JLabel(\"\");\n\t\t\t\tlblStudentDiplomaUpload.addMouseListener(new MouseAdapter() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tJFileChooser chooser = new JFileChooser(FileSystemView.getFileSystemView().getHomeDirectory());\n\t\t\t\t\t\t\n\t\t\t\t\t\tString path;\n\t\t\t\t\t\t\n\t\t\t\t\t\tchooser.showSaveDialog(null);\n\n\t\t\t\t\t FileNameExtensionFilter filter = new FileNameExtensionFilter(\n\t\t\t\t\t \"docx\", \"doc\", \"txt\",\"pdf\");\n\t\t\t\t\t chooser.setFileFilter(filter);\n\t\t\t\t\t \n\t\t\t\t\t int returnVal = chooser.showOpenDialog(frame);\n\t\t\t\t\t if(returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t\t\t\t \tString regex = \".pdf$\";\n\t\t\t\t\t \tif(RegularExpressionClass.cheackString(chooser.getSelectedFile().getPath(),regex)) {\n\t\t\t\t\t \t\tpathLabel.setText(chooser.getSelectedFile().getPath());\n\t\t\t\t\t \t}else {\n\t\t\t\t\t \t\tJOptionPane.showMessageDialog(null, \"Format i papranuar, zgjedhni formation PDF!\");\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\t //System.out.println(path.replace(\"\\\\\", \"\\\\\\\\\"));\n\n\t\t\t\t\t //path = path.replace(\"\\\", \"\\\\\");\n//\t\t\t\t\t ReadFromFile2 read = new ReadFromFile2(path.replace(\"\\\\\", \"\\\\\\\\\"));\n//\t\t\t\t\t String test = read.getText();\n//\t\t\t\t\t txtKerko.setText(test);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tlblStudentDiplomaUpload.setIcon(new ImageIcon(frmMain.class.getResource(\"/Images/settings_button.png\")));\n\t\t\t\tlblStudentDiplomaUpload.setBounds(761, 376, 200, 177);\n\t\t\t\tpanelStudentDiploma.add(lblStudentDiplomaUpload);\n\t\t\t\tpanels.add(panelStudentDiploma);\n\t\t\t\t\n\t\t\t\ttxtTema = new JTextField();\n\t\t\t\ttxtTema.setEditable(false);\n\t\t\t\ttxtTema.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\t\t\ttxtTema.setText(\"Tema\");\n\t\t\t\ttxtTema.setBorder(null);\n\t\t\t\ttxtTema.setBounds(131, 147, 114, 69);\n\t\t\t\tpanelStudentDiploma.add(txtTema);\n\t\t\t\ttxtTema.setColumns(10);\n\t\t\t\t\n\t\t\t\tcmbZgjedhDepartamentin = new JComboBox();\n\t\t\t\tcmbZgjedhDepartamentin.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\t\t\tcmbZgjedhDepartamentin.setBackground(Color.WHITE);\n\t\t\t\tcmbZgjedhDepartamentin.setBounds(322, 474, 363, 84);\n\t\t\t\tpanelStudentDiploma.add(cmbZgjedhDepartamentin);\n\t\t\t\ttry {\n\t\t\t\t\tcmbZgjedhDepartamentin.setModel(new DefaultComboBoxModel(new String[] {newLogin.student.getDepartamenti().getDeparamenti()}));\n\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\tcmbZgjedhFakultetin = new JComboBox();\n\t\t\t\tcmbZgjedhFakultetin.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\t\t\tcmbZgjedhFakultetin.setBackground(Color.WHITE);\n\t\t\t\tcmbZgjedhFakultetin.setBounds(322, 376, 363, 84);\n\t\t\t\tpanelStudentDiploma.add(cmbZgjedhFakultetin);\n\t\t\t\ttry { \n\t\t\t\t\tcmbZgjedhFakultetin.setModel(new DefaultComboBoxModel(new String[] {newLogin.student.getFakulteti().getEmri()}));\n\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\t\t\t\n\t\t\t\t\t\ttxtFakulteti_1 = new JTextField();\n\t\t\t\t\t\ttxtFakulteti_1.setEditable(false);\n\t\t\t\t\t\ttxtFakulteti_1.setText(\"Fakulteti\");\n\t\t\t\t\t\ttxtFakulteti_1.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\t\t\t\t\ttxtFakulteti_1.setColumns(10);\n\t\t\t\t\t\ttxtFakulteti_1.setBorder(null);\n\t\t\t\t\t\ttxtFakulteti_1.setBounds(131, 386, 114, 69);\n\t\t\t\t\t\tpanelStudentDiploma.add(txtFakulteti_1);\n\t\t\t\t\t\t\n\t\t\t\t\t\ttxtDepartamenti_1 = new JTextField();\n\t\t\t\t\t\ttxtDepartamenti_1.setEditable(false);\n\t\t\t\t\t\ttxtDepartamenti_1.setText(\"Departamenti\");\n\t\t\t\t\t\ttxtDepartamenti_1.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\t\t\t\t\ttxtDepartamenti_1.setColumns(10);\n\t\t\t\t\t\ttxtDepartamenti_1.setBorder(null);\n\t\t\t\t\t\ttxtDepartamenti_1.setBounds(132, 484, 153, 69);\n\t\t\t\t\t\tpanelStudentDiploma.add(txtDepartamenti_1);\n\t\t\t\t\t\t\n\t\t\t\t\t\ttxtProfesori = new JTextField();\n\t\t\t\t\t\ttxtProfesori.setEditable(false);\n\t\t\t\t\t\ttxtProfesori.setText(\"Profesori\");\n\t\t\t\t\t\ttxtProfesori.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\t\t\t\t\ttxtProfesori.setColumns(10);\n\t\t\t\t\t\ttxtProfesori.setBorder(null);\n\t\t\t\t\t\ttxtProfesori.setBounds(131, 581, 129, 69);\n\t\t\t\t\t\tpanelStudentDiploma.add(txtProfesori);\n\t\t\t\t\t\t\n\t\t\t\t\t\ttxtLenda_1 = new JTextField();\n\t\t\t\t\t\ttxtLenda_1.setText(\"Lenda\");\n\t\t\t\t\t\ttxtLenda_1.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\t\t\t\t\ttxtLenda_1.setEditable(false);\n\t\t\t\t\t\ttxtLenda_1.setColumns(10);\n\t\t\t\t\t\ttxtLenda_1.setBorder(null);\n\t\t\t\t\t\ttxtLenda_1.setBounds(131, 678, 129, 69);\n\t\t\t\t\t\tpanelStudentDiploma.add(txtLenda_1);\n\t\t\t\t\t\t\n\t\t\t\t\t\tcmbZgjedhLenden = new JComboBox();\n\t\t\t\t\t\tcmbZgjedhLenden.setModel(new DefaultComboBoxModel(new String[] {\"Zgjedh Lenden\"}));\n\t\t\t\t\t\tcmbZgjedhLenden.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\t\t\t\t\tcmbZgjedhLenden.setBackground(Color.WHITE);\n\t\t\t\t\t\tcmbZgjedhLenden.setBounds(322, 668, 363, 84);\n\t\t\t\t\t\tpanelStudentDiploma.add(cmbZgjedhLenden);\n\t\t\t\t\t\t\n\t\t\t\t\t\tpathLabel = new JLabel(\"\");\n\t\t\t\t\t\tpathLabel.setBounds(771, 571, 190, 16);\n\t\t\t\t\t\tpanelStudentDiploma.add(pathLabel);\n\t\t\t\t\t\tpanelStudentDiploma.setVisible(false);\n\t\t\t\t\n\t\t\t\tpanelStudentNotifications = new JPanel();\n\t\t\t\tpanelStudentNotifications.setBackground(Color.WHITE);\n\t\t\t\tpanelStudentNotifications.setBounds(0, 0, 1427, 865);\n\t\t\t\tpanelMain.add(panelStudentNotifications);\n\t\t\t\tpanelStudentNotifications.setLayout(null);\n\t\t\t\t\n\t\t\t\t// Mesazhi qe do shfaqet kur nje studenti i vjen nje notification(Studenti)\n\t\t\t\ttxtStudentNotificationsMessage = new JTextField();\n\t\t\t\ttxtStudentNotificationsMessage.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\t\t\ttxtStudentNotificationsMessage.setOpaque(false);\n\t\t\t\ttxtStudentNotificationsMessage.setBorder(null);\n\t\t\t\ttxtStudentNotificationsMessage.setColumns(10);\n\t\t\t\ttxtStudentNotificationsMessage.setBounds(328, 487, 752, 259);\n\t\t\t\tpanelStudentNotifications.add(txtStudentNotificationsMessage);\n\t\t\t\t\n\t\t\t\t// Tema qe do te shfaqet per te cilen i vie notifications(Studenti)\n\t\t\t\ttxtStudentNotificationsTema = new JTextField();\n\t\t\t\ttxtStudentNotificationsTema.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\t\t\ttxtStudentNotificationsTema.setOpaque(false);\n\t\t\t\ttxtStudentNotificationsTema.setBorder(null);\n\t\t\t\ttxtStudentNotificationsTema.setBounds(313, 274, 773, 77);\n\t\t\t\tpanelStudentNotifications.add(txtStudentNotificationsTema);\n\t\t\t\ttxtStudentNotificationsTema.setColumns(10);\n\t\t\t\t\n\t\t\t\tJLabel lblNjoftimet = new JLabel(\"NJOFTIMET\");\n\t\t\t\tlblNjoftimet.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\t\t\tlblNjoftimet.setBounds(578, 66, 196, 65);\n\t\t\t\tpanelStudentNotifications.add(lblNjoftimet);\n\t\t\t\t\n\t\t\t\tscrollPane_1 = new JScrollPane();\n\t\t\t\tscrollPane_1.setBounds(317, 205, 725, 146);\n\t\t\t\tpanelStudentNotifications.add(scrollPane_1);\n\t\t\t\tif(newLogin.getLloji().equals(\"Student\")) {\n\t\t\t\t\ttable_1 = new JTable(Administratadata,AdministrataColumnNamesThesis);\n\t\t\t\t\ttable_1.setBackground(SystemColor.window);\n\t\t\t\t\ttable_1.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\t\t\t\ttable_1.setFillsViewportHeight(true);\n\t\t\t\t\tscrollPane_1.setViewportView(table_1);\n\t\t\t\t}else if(newLogin.getLloji().equals(\"Profesor\")) {\n\t\t\t\t\ttable_1 = new JTable(Administratadata,AdministrataColumnNamesThesis);\n\t\t\t\t\ttable_1.setBackground(SystemColor.window);\n\t\t\t\t\ttable_1.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\t\t\t\ttable_1.setFillsViewportHeight(true);\n\t\t\t\t\tscrollPane_1.setViewportView(table_1);\n\t\t\t\t}\n\t\t\t\t\n//\t\t\t\ttable_1 = new JTable(Administratadata,AdministrataColumnNamesThesis);\n//\t\t\t\ttable_1.setBackground(SystemColor.window);\n//\t\t\t\ttable_1.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n//\t\t\t\ttable_1.setFillsViewportHeight(true);\n//\t\t\t\tscrollPane_1.setViewportView(table_1);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tpanelStudentNotifications.setVisible(false);\n\t\t\n\t\t\t\tpanelAdministrataNjoftimet = new JPanel();\n\t\t\t\tpanelAdministrataNjoftimet.setBounds(0, 0, 1660, 900);\n\t\t\t\tpanelMain.add(panelAdministrataNjoftimet);\n\t\t\t\tpanelAdministrataNjoftimet.setBackground(SystemColor.textHighlightText);\n\t\t\t\tpanelAdministrataNjoftimet.setLayout(null);\n\t\t\t\t\n\t\t\t\ttxtSearch = new JTextField();\n\t\t\t\ttxtSearch.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\t\t\ttxtSearch.setBounds(445, 56, 407, 63);\n\t\t\t\tpanelAdministrataNjoftimet.add(txtSearch);\n\t\t\t\ttxtSearch.setText(\"Search\");\n\t\t\t\ttxtSearch.setBorder(null);\n\t\t\t\ttxtSearch.setColumns(10);\n\t\t\t\t\n\t\t\t\tJLabel lblSearch = new JLabel(\"\");\n\t\t\t\tlblSearch.setIcon(new ImageIcon(frmMain.class.getResource(\"/Images/myaccount_rectangle.png\")));\n\t\t\t\tlblSearch.setBounds(436, 40, 433, 94);\n\t\t\t\tpanelAdministrataNjoftimet.add(lblSearch);\n\t\t\t\t\n\t\t\t\tJLabel lblSearchIcon = new JLabel(\"\");\n\t\t\t\tlblSearchIcon.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/search.png\")).getImage().getScaledInstance(50, 50, Image.SCALE_SMOOTH)));\n\t\t\t\tlblSearchIcon.setBounds(894, 56, 73, 69);\n\t\t\t\tpanelAdministrataNjoftimet.add(lblSearchIcon);\n\t\t\t\t\n\t\t\t\tJScrollPane scrollPane = new JScrollPane();\n\t\t\t\tscrollPane.setViewportBorder(null);\n\t\t\t\tscrollPane.setBounds(256, 171, 816, 75);\n\t\t\t\tpanelAdministrataNjoftimet.add(scrollPane);\n\t\t\t\t\n\t\t\t\tJTable tblAdministrataNotifications = new JTable(data, columnNames);\n\t\t\t\ttblAdministrataNotifications.setBackground(SystemColor.window);\n\t\t\t\ttblAdministrataNotifications.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\t\t\tscrollPane.setViewportView(tblAdministrataNotifications);\n\t\t\t\t\n\t\t\t\tpanelNotificationClicked = new JPanel();\n\t\t\t\tpanelNotificationClicked.setBackground(Color.WHITE);\n\t\t\t\tpanelNotificationClicked.setBounds(0, 374, 1618, 491);\n\t\t\t\tpanelAdministrataNjoftimet.add(panelNotificationClicked);\n\t\t\t\tpanelNotificationClicked.setLayout(null);\n\t\t\t\t\n\t\t\t\t// Tema qe shfaqet pasi te klikohet nje item i tabeles (tblAdministrataNotifications)\n\t\t\t\ttxtSingleNotification = new JTextField();\n\t\t\t\ttxtSingleNotification.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\t\t\ttxtSingleNotification.setBounds(274, 178, 670, 76);\n\t\t\t\ttxtSingleNotification.setBorder(null);\n\t\t\t\ttxtSingleNotification.setOpaque(false);\n\t\t\t\tpanelNotificationClicked.add(txtSingleNotification);\n\t\t\t\ttxtSingleNotification.setColumns(10);\n\t\t\t\t\n\t\t\t\ttxtNoftimet = new JTextField();\n\t\t\t\ttxtNoftimet.setBounds(451, 66, 243, 61);\n\t\t\t\ttxtNoftimet.setBackground(Color.WHITE);\n\t\t\t\ttxtNoftimet.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\t\t\ttxtNoftimet.setText(\"Njoftimi selektuar\");\n\t\t\t\ttxtNoftimet.setBorder(null);\n\t\t\t\tpanelNotificationClicked.add(txtNoftimet);\n\t\t\t\ttxtNoftimet.setColumns(10);\n\t\t\t\t\n\t\t\t\t// Kur klikohet aplikohet algoritmi per plagjiature per temen perkatese dhe shfaqet dritarja per detaje\n\t\t\t\tJLabel lblKontrolloTemen = new JLabel(\"\");\n\t\t\t\tlblKontrolloTemen.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\t\t\tlblKontrolloTemen.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/control.png\")).getImage().getScaledInstance(50, 50, Image.SCALE_SMOOTH)));\n\t\t\t\tlblKontrolloTemen.setBounds(1160, 196, 50, 50);\n\t\t\t\tpanelNotificationClicked.add(lblKontrolloTemen);\n\t\t\t\t\n\t\t\t\ttxtKontrollo = new JTextField();\n\t\t\t\ttxtKontrollo.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\t\t\ttxtKontrollo.setBackground(Color.WHITE);\n\t\t\t\ttxtKontrollo.setText(\"Kontrollo\");\n\t\t\t\ttxtKontrollo.setBorder(null);\n\t\t\t\ttxtKontrollo.setBounds(1134, 144, 106, 41);\n\t\t\t\tpanelNotificationClicked.add(txtKontrollo);\n\t\t\t\ttxtKontrollo.setColumns(10);\n\t\t\t\t\n\t\t\t\tJLabel lblSingleNotification = new JLabel(\"\");\n\t\t\t\tlblSingleNotification.setBounds(258, 138, 705, 155);\n\t\t\t\tlblSingleNotification.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/myaccount_rectangle.png\")).getImage()\n\t\t\t\t\t\t.getScaledInstance(700, 100, Image.SCALE_SMOOTH)));\n\t\t\t\tpanelNotificationClicked.add(lblSingleNotification);\n\t\t\t\t\n\t\t\t\t// Kur klikohet hapet tema per te u lexuar\n\t\t\t\tJLabel lblIconReadThesisPdf = new JLabel(\"\");\n\t\t\t\tlblIconReadThesisPdf.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/pdf.png\")).getImage()\n\t\t\t\t\t\t.getScaledInstance(70, 70, Image.SCALE_SMOOTH)));\n\t\t\t\tlblIconReadThesisPdf.setBounds(985, 171, 70, 83);\n\t\t\t\tpanelNotificationClicked.add(lblIconReadThesisPdf);\n\t\t\t\t\n\t\t\t\t// All panels false\n\t\t\t\t panelAdministrataNjoftimet.setVisible(false);\n\t\t\t\t \n\n\t\t\t\t lblKontrolloTemen.addMouseListener(new MouseAdapter() {\n\t\t\t\t \t@Override\n\t\t\t\t \tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t \t\t//ADMINISTRATA\n\t\t\t\t \t}\n\t\t\t\t });\n\t\t\n\t\tpanelProfesorDiploma = new JPanel();\n\t\tpanelProfesorDiploma.setBackground(Color.WHITE);\n\t\tpanelProfesorDiploma.setBounds(0, 0, 1427, 865);\n\t\tpanelMain.add(panelProfesorDiploma);\n\t\tpanelProfesorDiploma.setLayout(null);\n\t\t\n\t\tJLabel lblLita = new JLabel(\"Lista e temave te diplomes\");\n\t\tlblLita.setFont(new Font(\"Tahoma\", Font.PLAIN, 35));\n\t\tlblLita.setBounds(430, 104, 420, 127);\n\t\tpanelProfesorDiploma.add(lblLita);\n\t\t\n\t\tJScrollPane scrollPane_3 = new JScrollPane();\n\t\tscrollPane_3.setBounds(212, 318, 871, 88);\n\t\tpanelProfesorDiploma.add(scrollPane_3);\n\t\t\n\t\ttableProfesoriDiploma = new JTable(Administratadata,AdministrataColumnNamesThesis);\n\t\ttableProfesoriDiploma.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\n\t\tscrollPane_3.setViewportView(tableProfesoriDiploma);\n\t\tpanelProfesorDiploma.setVisible(false);\n\t\tpanelProfesorDiploma.setVisible(false);\n\t\t\n\t\tString[] StudentNotificationsColumns = {\"Id\",\n\t\t\t\t\"Tema\",\n \"Studenti\",\n \"Departamenti\",\n \"Viti\",\n \"Profesori\"};\n\n\t\tObject[][] StudentNotificationsData = {\n\t\t{\"1\",\"Data Mining\", \"Blend Arifaj\",\"Kompjuterike\",\"2017\", \"BlerimRexha\"},\n\t\t{\"2\",\"Data Mining\", \"Arianit Lubishtani\",\t\"Kompjuterike\",\"2017\", \"LuleAhmedi\"}\n\t\t};\n// Me i mor te gjith profesorat nga DB\n\t\tProfesori prof = new Profesori();\n\t\tEnumeration<String> profesoret = prof.getAllProfesoret();\n\t\twhile(profesoret.hasMoreElements()) {\n\t\t\tcmbZgjedhProfesorin.addItem(profesoret.nextElement());\n\t\t}\n\t\ttry {\n\t\t} catch (Exception e) {\n\t\t}\n\t\ttry {\n\t\t}catch (Exception e) {\n\t\t}\n\t\tLenda lendet = new Lenda();\n\t\tEnumeration<String> Lendet = lendet.getLendet();\n\t\twhile(Lendet.hasMoreElements()) {\n\t\t\tcmbZgjedhLenden.addItem(Lendet.nextElement());\n\t\t}\n\t\tpanelStudentiChangePassword = new JPanel();\n\t\tpanelStudentiChangePassword.setBackground(Color.WHITE);\n\t\tpanelStudentiChangePassword.setBounds(0, 0, 1427, 865);\n\t\tpanelMain.add(panelStudentiChangePassword);\n\t\tpanelStudentiChangePassword.setLayout(null);\n\t\t\n\t\ttxtChangePassword = new JTextField();\n\t\ttxtChangePassword.setText(\"Change password\");\n\t\ttxtChangePassword.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\ttxtChangePassword.setColumns(10);\n\t\ttxtChangePassword.setBorder(null);\n\t\ttxtChangePassword.setBounds(606, 69, 216, 51);\n\t\tpanelStudentiChangePassword.add(txtChangePassword);\n\t\t\n\t\tlblPassword = new JTextField();\n\t\tlblPassword.setEditable(false);\n\t\tlblPassword.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\tlblPassword.setBorder(null);\n\t\tlblPassword.setText(\"Old password\");\n\t\t\n\t\tlblPassword.setBounds(278, 249, 216, 51);\n\t\tpanelStudentiChangePassword.add(lblPassword);\n\t\tlblPassword.setColumns(10);\n\t\t\n\t\tlblNewPassword = new JTextField();\n\t\tlblNewPassword.setEditable(false);\n\t\tlblNewPassword.setText(\"New password\");\n\t\tlblNewPassword.setBorder(null);\n\t\tlblNewPassword.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\tlblNewPassword.setColumns(10);\n\t\tlblNewPassword.setBounds(278, 387, 216, 51);\n\t\tpanelStudentiChangePassword.add(lblNewPassword);\n\t\t\n\t\tlblRepeatNewPassword = new JTextField();\n\t\tlblRepeatNewPassword.setEditable(false);\n\t\tlblRepeatNewPassword.setText(\"Repeat new password\");\n\t\tlblRepeatNewPassword.setBorder(null);\n\t\tlblRepeatNewPassword.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\tlblRepeatNewPassword.setColumns(10);\n\t\tlblRepeatNewPassword.setBounds(278, 522, 268, 51);\n\t\tpanelStudentiChangePassword.add(lblRepeatNewPassword);\n\t\t\t\t\n\t\t\t\tpwdOldPassword = new JPasswordField();\n\t\t\t\tpwdOldPassword.setBounds(618, 249, 471, 51);\n\t\t\t\tpanelStudentiChangePassword.add(pwdOldPassword);\n\t\t\t\t\n\t\t\t\tpwdNewPassword = new JPasswordField();\n\t\t\t\tpwdNewPassword.setBounds(618, 387, 471, 51);\n\t\t\t\tpanelStudentiChangePassword.add(pwdNewPassword);\n\t\t\t\t\n\t\t\t\tpwdNewPasswordd = new JPasswordField();\n\t\t\t\tpwdNewPasswordd.setBounds(618, 510, 471, 51);\n\t\t\t\tpanelStudentiChangePassword.add(pwdNewPasswordd);\n\t\t\t\t\n\t\t\t\tJLabel lblNewLabel_1 = new JLabel(\"\");\n\t\t\t\tlblNewLabel_1.setBounds(605, 225, 520, 98);\n\t\t\t\tlblNewLabel_1.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/myaccount_rectangle.png\")).\n\t\t\t\t\t\tgetImage().getScaledInstance(500, 80, Image.SCALE_SMOOTH)));\n\t\t\t\t\n\t\t\t\t\t\tpanelStudentiChangePassword.add(lblNewLabel_1);\n\t\t\t\t\n\t\t\t\tJLabel label_1 = new JLabel(\"\");\n\t\t\t\tlabel_1.setBounds(605, 366, 520, 98);\n\t\t\t\tlabel_1.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/myaccount_rectangle.png\")).\n\t\t\t\t\t\tgetImage().getScaledInstance(500, 80, Image.SCALE_SMOOTH)));\n\t\t\t\tpanelStudentiChangePassword.add(label_1);\n\t\t\t\t\n\t\t\t\tJLabel label_6 = new JLabel(\"\");\n\t\t\t\tlabel_6.setBounds(605, 490, 520, 98);\n\t\t\t\tlabel_6.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/myaccount_rectangle.png\")).\n\t\t\t\t\t\tgetImage().getScaledInstance(500, 80, Image.SCALE_SMOOTH)));\n\t\t\t\tpanelStudentiChangePassword.add(label_6);\n\t\t\t\t\n\t\t\t\tJButton btnCancelPass = new JButton(\"Cancel\");\n\t\t\t\tbtnCancelPass.addActionListener(new ActionListener() {\n\t\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\t\tpanelStudentiChangePassword.setVisible(false);\n\t\t\t\t\t\tpanelStudentSettings.setVisible(true);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tbtnCancelPass.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\t\t\tbtnCancelPass.setBounds(856, 663, 150, 60);\n\t\t\t\tpanelStudentiChangePassword.add(btnCancelPass);\n\t\t\t\tpanelStudentiChangePassword.setVisible(false);\n\n\t\t\t\t\n\t\t\t\tJButton btnSave_1 = new JButton(\"Save\");\n\t\t\t\tbtnSave_1.addActionListener(new ActionListener() {\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\tif(newLogin.getLloji().equals(\"Student\")) {\n\t\t\t\t\t\t\tif(newLogin.student.getPassHash().equals(Hash.saltedHashString(new String(pwdOldPassword.getPassword()), newLogin.student.getID()))) {\n\t\t\t\t\t\t\t\tif(new String(pwdNewPassword.getPassword()).equals(new String(pwdNewPasswordd.getPassword()))) {\n\t\t\t\t\t\t\t\t\tif(newLogin.student.updateStudentPassword(new String(pwdNewPassword.getPassword()))) {\n\t\t\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Keni bere perditesimin e passwordit me sukses!\");\n\t\t\t\t\t\t\t\t\t\tpanelStudentiChangePassword.setVisible(false);\n\t\t\t\t\t\t\t\t\t\tpanelStudentSettings.setVisible(true);\n\t\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Gabim gjate perditesimit te passwordit\");\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\tJOptionPane.showMessageDialog(null, \"Passwordi gabim!\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tif(newLogin.profesor.getPassHash().equals(Hash.saltedHashString(new String(pwdOldPassword.getPassword()), newLogin.profesor.getID()))) {\n\t\t\t\t\t\t\t\tif(new String(pwdNewPassword.getPassword()).equals(new String(pwdNewPasswordd.getPassword()))) {\n\t\t\t\t\t\t\t\t\tif(newLogin.profesor.updateProfesorPassword(new String(pwdNewPassword.getPassword()))) {\n\t\t\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Keni bere perditesimin e passwordit me sukses!\");\n\t\t\t\t\t\t\t\t\t\tpanelStudentiChangePassword.setVisible(false);\n\t\t\t\t\t\t\t\t\t\tpanelStudentSettings.setVisible(true);\n\t\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Gabim gjate perditesimit te passwordit\");\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\tJOptionPane.showMessageDialog(null, \"Passwordi gabim!\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tbtnSave_1.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\t\t\tbtnSave_1.setBounds(683, 663, 150, 60);\n\t\t\t\tpanelStudentiChangePassword.add(btnSave_1);\n\t\tpanelStudentSettings.setBounds(0, 0, 1427, 865);\n\t\tpanelMain.add(panelStudentSettings);\n\t\tpanelStudentSettings.setBackground(Color.WHITE);\n\t\tpanelStudentSettings.setLayout(null);\n\t\t\n\t\ttxtStudentProfile = new JTextField();\n\t\ttxtStudentProfile.setText(\"Profile\");\n\t\ttxtStudentProfile.setOpaque(false);\n\t\ttxtStudentProfile.setFont(new Font(\"Tahoma\", Font.BOLD, 20));\n\t\ttxtStudentProfile.setColumns(10);\n\t\ttxtStudentProfile.setBorder(null);\n\t\ttxtStudentProfile.setBounds(548, 342, 74, 42);\n\t\tpanelStudentSettings.add(txtStudentProfile);\n\t\t\n\t\tJLabel lblStudentSettingsProfileIcon = new JLabel(\"New label\");\n\t\tlblStudentSettingsProfileIcon.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/settings_password_button.png\")).getImage().getScaledInstance(100, 100, Image.SCALE_SMOOTH)));\n\t\tlblStudentSettingsProfileIcon.setBounds(538, 231, 100, 100);\n\t\tpanelStudentSettings.add(lblStudentSettingsProfileIcon);\n\t\t\n\t\ttxtStudentPassword = new JTextField();\n\t\ttxtStudentPassword.setFont(new Font(\"Tahoma\", Font.BOLD, 20));\n\t\ttxtStudentPassword.setText(\"Password\");\n\t\ttxtStudentPassword.setBorder(null);\n\t\ttxtStudentPassword.setOpaque(false);\n\t\ttxtStudentPassword.setBounds(174, 342, 107, 42);\n\t\tpanelStudentSettings.add(txtStudentPassword);\n\t\ttxtStudentPassword.setColumns(10);\n\t\t\n\t\tJLabel lblStudentSettingsPassIcon = new JLabel(\"New label\");\n\t\tlblStudentSettingsPassIcon.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/settings_password_button.png\")).getImage().getScaledInstance(100, 100, Image.SCALE_SMOOTH)));\n\t\tlblStudentSettingsPassIcon.setBounds(174, 231, 100, 100);\n\t\tpanelStudentSettings.add(lblStudentSettingsPassIcon);\n\t\t\n\t\tJLabel lblStudentSettingsPassRectangle = new JLabel(\"\");\n\t\tlblStudentSettingsPassRectangle.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tpanelStudentiChangePassword.setVisible(true);\n\t\t\t\tpanelStudentSettings.setVisible(false);\n\t\t\t}\n\t\t});\n\t\tlblStudentSettingsPassRectangle.setIcon(new ImageIcon(frmMain.class.getResource(\"/Images/settings_button.png\")));\n\t\tlblStudentSettingsPassRectangle.setBounds(107, 217, 239, 183);\n\t\tpanelStudentSettings.add(lblStudentSettingsPassRectangle);\n\t\t\n\t\tJLabel lblStudentSettingsProfile = new JLabel(\"\");\n\t\tlblStudentSettingsProfile.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tpanelStudentMyAccount.setVisible(true);\n\t\t\t\tpanelStudentSettings.setVisible(false);\n\t\t\t\t//Mbushja me vlera\n\t\t\t\tif(newLogin.getLloji().equals(\"Student\")) {\n\t\t\t\t\ttxtEmri.setText(newLogin.student.getEmri());\n\t\t\t\t\ttxtMbiemri.setText(newLogin.student.getMbiemri());\n\t\t\t\t\ttxtEmail.setText(newLogin.student.getEmail());\n\t\t\t\t\ttxtTel.setText(newLogin.student.getTel());\n\t\t\t\t\ttxtUniversiteti.setText(newLogin.student.getUniversiteti().getEmri());\n\t\t\t\t\ttxtFakulteti.setText(newLogin.student.getFakulteti().getEmri());\n\t\t\t\t\ttxtDepartamenti.setText(newLogin.student.getDepartamenti().getDeparamenti());\n\t\t\t\t}else if(newLogin.getLloji().equals(\"Profesor\")) {\n\t\t\t\t\ttxtEmri.setText(newLogin.profesor.getEmri());\n\t\t\t\t\ttxtMbiemri.setText(newLogin.profesor.getMbiemri());\n\t\t\t\t\ttxtEmail.setText(newLogin.profesor.getEmail());\n\t\t\t\t\ttxtTel.setText(newLogin.profesor.getTel());\n\t\t\t\t\ttxtUniversiteti.setText(\"-NOT DEFINED-\");\n\t\t\t\t\ttxtFakulteti.setText(\"-NOT DEFINED-\");\n\t\t\t\t\ttxtDepartamenti.setText(\"-NOT DEFINED-\");\n\t\t\t\t}else {\n\t\t\t\t\ttxtEmri.setText(newLogin.administrat.getEmri());\n\t\t\t\t\ttxtMbiemri.setText(newLogin.administrat.getMbiemri());\n\t\t\t\t\ttxtEmail.setText(newLogin.administrat.getEmail());\n\t\t\t\t\ttxtTel.setText(newLogin.administrat.getTel());\n\t\t\t\t\ttxtUniversiteti.setText(newLogin.administrat.getFakulteti().getUniversiteti().getEmri());\n\t\t\t\t\ttxtFakulteti.setText(newLogin.administrat.getFakulteti().getEmri());\n\t\t\t\t\ttxtDepartamenti.setText(\"-NOT DEFINED-\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tlblStudentSettingsProfile.setIcon(new ImageIcon(frmMain.class.getResource(\"/Images/settings_button.png\")));\n\t\tlblStudentSettingsProfile.setBounds(464, 217, 239, 183);\n\t\tpanelStudentSettings.add(lblStudentSettingsProfile);\n\t\tpanelStudentSettings.setVisible(false);\n\t\tpanelStudentMyAccount.setBounds(0, 0, 1427, 865);\n\t\tpanelMain.add(panelStudentMyAccount);\n\t\tpanelStudentMyAccount.setBackground(Color.WHITE);\n\t\tpanelStudentMyAccount.setLayout(null);\n\t\t\n\t\ttxtFakulteti = new JTextField();\n\t\ttxtFakulteti.setEditable(false);\n\t\ttxtFakulteti.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\ttxtFakulteti.setColumns(10);\n\t\ttxtFakulteti.setBorder(null);\n\t\ttxtFakulteti.setBounds(343, 638, 403, 55);\n\t\tpanelStudentMyAccount.add(txtFakulteti);\n\t\t\n\t\ttxtDepartamenti = new JTextField();\n\t\ttxtDepartamenti.setEditable(false);\n\t\ttxtDepartamenti.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\ttxtDepartamenti.setColumns(10);\n\t\ttxtDepartamenti.setBorder(null);\n\t\ttxtDepartamenti.setBounds(343, 725, 403, 55);\n\t\tpanelStudentMyAccount.add(txtDepartamenti);\n\t\t\n\t\ttxtTel = new JTextField();\n\t\ttxtTel.setEditable(false);\n\t\ttxtTel.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\ttxtTel.setColumns(10);\n\t\ttxtTel.setBorder(null);\n\t\ttxtTel.setBounds(343, 442, 403, 55);\n\t\tpanelStudentMyAccount.add(txtTel);\n\t\t\n\t\ttxtEmail = new JTextField();\n\t\ttxtEmail.setEditable(false);\n\t\ttxtEmail.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\ttxtEmail.setColumns(10);\n\t\ttxtEmail.setBorder(null);\n\t\ttxtEmail.setBounds(343, 331, 403, 55);\n\t\tpanelStudentMyAccount.add(txtEmail);\n\t\t\n\t\ttxtMbiemri = new JTextField();\n\t\ttxtMbiemri.setEditable(false);\n\t\ttxtMbiemri.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\ttxtMbiemri.setColumns(10);\n\t\ttxtMbiemri.setBorder(null);\n\t\ttxtMbiemri.setBounds(343, 233, 403, 55);\n\t\tpanelStudentMyAccount.add(txtMbiemri);\n\t\t\n\t\ttxtUniversiteti = new JTextField();\n\t\ttxtUniversiteti.setEditable(false);\n\t\ttxtUniversiteti.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\ttxtUniversiteti.setColumns(10);\n\t\ttxtUniversiteti.setBorder(null);\n\t\ttxtUniversiteti.setBounds(341, 545, 403, 55);\n\t\tpanelStudentMyAccount.add(txtUniversiteti);\n\t\t\n\t\ttxtEmri = new JTextField();\n\t\ttxtEmri.setEditable(false);\n\t\ttxtEmri.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\ttxtEmri.setBounds(341, 136, 403, 55);\n\t\ttxtEmri.setBorder(null);\n\t\t\n\t\tpanelStudentMyAccount.add(txtEmri);\n\t\ttxtEmri.setColumns(10);\n\t\t\n\t\tlblEmrii = new JTextField();\n\t\tlblEmrii.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\tlblEmrii.setText(\"Emri\");\n\t\tlblEmrii.setBorder(null);\n\t\tlblEmrii.setBounds(119, 136, 150, 48);\n\t\tpanelStudentMyAccount.add(lblEmrii);\n\t\tlblEmrii.setColumns(10);\n\t\t\n\t\tJLabel lblStudentEmriMyAccount = new JLabel(\"\");\n\t\tlblStudentEmriMyAccount.setIcon(new ImageIcon(getClass().getResource(\"/Images/myaccount_rectangle.png\")));\n\t\tlblStudentEmriMyAccount.setBounds(333, 111, 423, 105);\n\t\tpanelStudentMyAccount.add(lblStudentEmriMyAccount);\n\t\t\n\t\tlblMbiemrii = new JTextField();\n\t\tlblMbiemrii.setText(\"Mbiemri\");\n\t\tlblMbiemrii.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\tlblMbiemrii.setColumns(10);\n\t\tlblMbiemrii.setBorder(null);\n\t\tlblMbiemrii.setBounds(119, 240, 150, 48);\n\t\tpanelStudentMyAccount.add(lblMbiemrii);\n\t\t\n\t\tJLabel lblStudentMbiemriMyAccount = new JLabel(\"\");\n\t\tlblStudentMbiemriMyAccount.setIcon(new ImageIcon(getClass().getResource(\"/Images/myaccount_rectangle.png\")));\n\t\tlblStudentMbiemriMyAccount.setBounds(333, 208, 423, 105);\n\t\tpanelStudentMyAccount.add(lblStudentMbiemriMyAccount);\n\t\t\n\t\tlblEmaili = new JTextField();\n\t\tlblEmaili.setText(\"Email\");\n\t\tlblEmaili.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\tlblEmaili.setColumns(10);\n\t\tlblEmaili.setBorder(null);\n\t\tlblEmaili.setBounds(119, 338, 150, 48);\n\t\tpanelStudentMyAccount.add(lblEmaili);\n\t\t\n\t\tlblTeli = new JTextField();\n\t\tlblTeli.setText(\"Tel\");\n\t\tlblTeli.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\tlblTeli.setColumns(10);\n\t\tlblTeli.setBorder(null);\n\t\tlblTeli.setBounds(119, 442, 150, 48);\n\t\tpanelStudentMyAccount.add(lblTeli);\n\t\t\n\t\tlblUniversitetii = new JTextField();\n\t\tlblUniversitetii.setText(\"Universiteti\");\n\t\tlblUniversitetii.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\tlblUniversitetii.setColumns(10);\n\t\tlblUniversitetii.setBorder(null);\n\t\tlblUniversitetii.setBounds(119, 541, 164, 48);\n\t\tpanelStudentMyAccount.add(lblUniversitetii);\n\t\t\n\t\tlblFakultetii = new JTextField();\n\t\tlblFakultetii.setText(\"Fakulteti\");\n\t\tlblFakultetii.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\tlblFakultetii.setColumns(10);\n\t\tlblFakultetii.setBorder(null);\n\t\tlblFakultetii.setBounds(119, 637, 164, 48);\n\t\tpanelStudentMyAccount.add(lblFakultetii);\n\t\t\n\t\tlblDepartamentii = new JTextField();\n\t\tlblDepartamentii.setText(\"Departamenti\");\n\t\tlblDepartamentii.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\tlblDepartamentii.setColumns(10);\n\t\tlblDepartamentii.setBorder(null);\n\t\tlblDepartamentii.setBounds(119, 735, 182, 48);\n\t\tpanelStudentMyAccount.add(lblDepartamentii);\n\t\t\n\t\tJLabel lblStudentEmailMyAccount = new JLabel(\"\");\n\t\tlblStudentEmailMyAccount.setIcon(new ImageIcon(getClass().getResource(\"/Images/myaccount_rectangle.png\")));\n\t\tlblStudentEmailMyAccount.setBounds(333, 308, 423, 105);\n\t\tpanelStudentMyAccount.add(lblStudentEmailMyAccount);\n\t\t\n\t\tJLabel lblStudentTelMyAccount = new JLabel(\"\");\n\t\tlblStudentTelMyAccount.setIcon(new ImageIcon(getClass().getResource(\"/Images/myaccount_rectangle.png\")));\n\t\tlblStudentTelMyAccount.setBounds(333, 417, 423, 105);\n\t\tpanelStudentMyAccount.add(lblStudentTelMyAccount);\n\t\t\n\t\tJLabel lblStudentUniversitetiMyAccount = new JLabel(\"\");\n\t\tlblStudentUniversitetiMyAccount.setIcon(new ImageIcon(getClass().getResource(\"/Images/myaccount_rectangle.png\")));\n\t\tlblStudentUniversitetiMyAccount.setBounds(333, 516, 423, 105);\n\t\tpanelStudentMyAccount.add(lblStudentUniversitetiMyAccount);\n\t\t\n\t\tJLabel lblStudentFakultetiMyAccount = new JLabel(\"\");\n\t\tlblStudentFakultetiMyAccount.setIcon(new ImageIcon(getClass().getResource(\"/Images/myaccount_rectangle.png\")));\n\t\tlblStudentFakultetiMyAccount.setBounds(333, 609, 423, 105);\n\t\tpanelStudentMyAccount.add(lblStudentFakultetiMyAccount);\n\t\t\n\t\tJLabel lblStudentDepartamentMyAccount = new JLabel(\"\");\n\t\tlblStudentDepartamentMyAccount.setIcon(new ImageIcon(getClass().getResource(\"/Images/myaccount_rectangle.png\")));\n\t\tlblStudentDepartamentMyAccount.setBounds(333, 704, 423, 105);\n\t\tpanelStudentMyAccount.add(lblStudentDepartamentMyAccount);\n\t\t\n\t\tJButton btnEdit = new JButton(\"Edit\");\n\t\tbtnEdit.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\tbtnEdit.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttxtEmri.setEditable(true);\n\t\t\t\ttxtMbiemri.setEditable(true);\n\t\t\t\ttxtEmail.setEditable(true);\n\t\t\t\ttxtTel.setEditable(true);\n\t\t\t\tbtnSave.setEnabled(true);\n\t\t\t\tbtnEdit.setEnabled(false);\n\t\t\t}\n\t\t});\n\t\tbtnEdit.setBounds(829, 725, 120, 60);\n\t\tpanelStudentMyAccount.add(btnEdit);\n\t\t\n\t\tbtnSave = new JButton(\"Save\");\n\t\tbtnSave.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbtnSave.setEnabled(false);\n\t\t\t\tbtnEdit.setEnabled(true);\n\t\t\t\ttxtEmri.setEditable(false);\n\t\t\t\ttxtMbiemri.setEditable(false);\n\t\t\t\ttxtEmail.setEditable(false);\n\t\t\t\ttxtTel.setEditable(false);\n\t\t\t\tif(newLogin.getLloji().equals(\"Student\")) {\n\t\t\t\t\tnewLogin.student.setEmri(txtEmri.getText());\n\t\t\t\t\tnewLogin.student.setMbiemri(txtMbiemri.getText());\n\t\t\t\t\tnewLogin.student.setEmail(txtEmail.getText());\n\t\t\t\t\tnewLogin.student.setTel(txtTel.getText());\n\t\t\t\t\tif(newLogin.student.updateStuentData()) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Keni perditesuar te dhenat me sukses!\");\n\t\t\t\t\t}else {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Gabim gjate perditesimit te te dhenave!\");\n\t\t\t\t\t}\n\t\t\t\t}else if(newLogin.getLloji().equals(\"Profesor\")){\n\t\t\t\t\tnewLogin.profesor.setEmri(txtEmri.getText());\n\t\t\t\t\tnewLogin.profesor.setMbiemri(txtMbiemri.getText());\n\t\t\t\t\tnewLogin.profesor.setEmail(txtEmail.getText());\n\t\t\t\t\tnewLogin.profesor.setTel(txtTel.getText());\n\t\t\t\t\tif(newLogin.profesor.updateProfesorData()) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Keni perditesuar te dhenat me sukses!\");\n\t\t\t\t\t}else {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Gabim gjate perditesimit te te dhenave!\");\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tnewLogin.administrat.setEmri(txtEmri.getText());\n\t\t\t\t\tnewLogin.administrat.setMbiemri(txtMbiemri.getText());\n\t\t\t\t\tnewLogin.administrat.setEmail(txtEmail.getText());\n\t\t\t\t\tnewLogin.administrat.setTel(txtTel.getText());\n\t\t\t\t\tif(newLogin.administrat.updateAdministrataData()) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Keni perditesuar te dhenat me sukses!\");\n\t\t\t\t\t}else {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Gabim gjate perditesimit te te dhenave!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnSave.setEnabled(false);\n\t\tbtnSave.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\tbtnSave.setBounds(972, 725, 120, 60);\n\t\tpanelStudentMyAccount.add(btnSave);\n\t\tpanelStudentMyAccount.setVisible(false);\n\t\tpanelStudentProfile.setBounds(0, 0, 1427, 865);\n\t\tpanelMain.add(panelStudentProfile);\n\t\tpanelStudentProfile.setBackground(Color.WHITE);\n\t\tpanelStudentProfile.setLayout(null);\n\t\t\n\t\ttxtProfileEmail = new JTextField();\n\t\ttxtProfileEmail.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\ttxtProfileEmail.setColumns(10);\n\t\ttxtProfileEmail.setBorder(null);\n\t\ttxtProfileEmail.setBounds(311, 429, 403, 53);\n\t\tpanelStudentProfile.add(txtProfileEmail);\n\t\t\n\t\ttxtProfileMbiemri = new JTextField();\n\t\ttxtProfileMbiemri.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\ttxtProfileMbiemri.setColumns(10);\n\t\ttxtProfileMbiemri.setBorder(null);\n\t\ttxtProfileMbiemri.setBounds(311, 322, 403, 53);\n\t\tpanelStudentProfile.add(txtProfileMbiemri);\n\t\t\n\t\ttxtProfileTel = new JTextField();\n\t\ttxtProfileTel.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\ttxtProfileTel.setColumns(10);\n\t\ttxtProfileTel.setBorder(null);\n\t\ttxtProfileTel.setBounds(311, 533, 403, 53);\n\t\tpanelStudentProfile.add(txtProfileTel);\n\t\t\n\t\ttxtProfileEmri = new JTextField();\n\t\ttxtProfileEmri.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\ttxtProfileEmri.setBounds(311, 219, 403, 53);\n\t\ttxtProfileEmri.setBorder(null);\n\t\t\n\t\tpanelStudentProfile.add(txtProfileEmri);\n\t\ttxtProfileEmri.setColumns(10);\n\t\t\n\t\ttxtSaveBtn = new JTextField();\n\t\ttxtSaveBtn.setHorizontalAlignment(SwingConstants.CENTER);\n\t\ttxtSaveBtn.setFont(new Font(\"Tahoma\", Font.PLAIN, 20));\n\t\ttxtSaveBtn.setText(\"SAVE\");\n\t\ttxtSaveBtn.setBorder(null);\n\t\ttxtSaveBtn.setColumns(10);\n\t\ttxtSaveBtn.setBounds(528, 689, 186, 64);\n\t\tpanelStudentProfile.add(txtSaveBtn);\n\t\t\n\t\ttxtCancelBtn = new JTextField();\n\t\ttxtCancelBtn.setHorizontalAlignment(SwingConstants.CENTER);\n\t\ttxtCancelBtn.setFont(new Font(\"Tahoma\", Font.PLAIN, 20));\n\t\ttxtCancelBtn.setText(\"CANCEL\");\n\t\ttxtCancelBtn.setBorder(null);\n\t\ttxtCancelBtn.setBounds(311, 689, 186, 64);\n\t\tpanelStudentProfile.add(txtCancelBtn);\n\t\ttxtCancelBtn.setColumns(10);\n\t\t\n\t\ttextField = new JTextField();\n\t\ttextField.setText(\"Emri\");\n\t\ttextField.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\ttextField.setColumns(10);\n\t\ttextField.setBorder(null);\n\t\ttextField.setBounds(123, 219, 150, 48);\n\t\tpanelStudentProfile.add(textField);\n\t\t\n\t\ttextField_1 = new JTextField();\n\t\ttextField_1.setText(\"Mbiemri\");\n\t\ttextField_1.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\ttextField_1.setColumns(10);\n\t\ttextField_1.setBorder(null);\n\t\ttextField_1.setBounds(123, 322, 150, 48);\n\t\tpanelStudentProfile.add(textField_1);\n\t\t\n\t\ttextField_2 = new JTextField();\n\t\ttextField_2.setText(\"Email\");\n\t\ttextField_2.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\ttextField_2.setColumns(10);\n\t\ttextField_2.setBorder(null);\n\t\ttextField_2.setBounds(123, 434, 150, 48);\n\t\tpanelStudentProfile.add(textField_2);\n\t\t\n\t\ttextField_3 = new JTextField();\n\t\ttextField_3.setText(\"Tel\");\n\t\ttextField_3.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\ttextField_3.setColumns(10);\n\t\ttextField_3.setBorder(null);\n\t\ttextField_3.setBounds(123, 533, 150, 48);\n\t\tpanelStudentProfile.add(textField_3);\n\t\t\n\t\tJLabel lblStudentEmriProfile = new JLabel(\"\");\n\t\tlblStudentEmriProfile.setIcon(new ImageIcon(getClass().getResource(\"/Images/myaccount_rectangle.png\")));\n\t\tlblStudentEmriProfile.setBounds(303, 193, 423, 105);\n\t\tpanelStudentProfile.add(lblStudentEmriProfile);\n\t\t\n\t\tJLabel lblStudentMbiemriProfile = new JLabel(\"\");\n\t\tlblStudentMbiemriProfile.setIcon(new ImageIcon(getClass().getResource(\"/Images/myaccount_rectangle.png\")));\n\t\tlblStudentMbiemriProfile.setBounds(303, 296, 423, 105);\n\t\tpanelStudentProfile.add(lblStudentMbiemriProfile);\n\t\t\n\t\tJLabel lblStudentEmailProfile = new JLabel(\"\");\n\t\tlblStudentEmailProfile.setIcon(new ImageIcon(getClass().getResource(\"/Images/myaccount_rectangle.png\")));\n\t\tlblStudentEmailProfile.setBounds(303, 398, 423, 105);\n\t\tpanelStudentProfile.add(lblStudentEmailProfile);\n\t\t\n\t\tJLabel lblStudentTelProfile = new JLabel(\"\");\n\t\tlblStudentTelProfile.setIcon(new ImageIcon(getClass().getResource(\"/Images/myaccount_rectangle.png\")));\n\t\tlblStudentTelProfile.setBounds(303, 500, 423, 105);\n\t\tpanelStudentProfile.add(lblStudentTelProfile);\n\t\t\n\t\tJLabel lblCancelBtn = new JLabel(\"\");\n\t\tlblCancelBtn.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/myaccount_rectangle.png\")).getImage().getScaledInstance(200, 80, Image.SCALE_SMOOTH)));\n\t\tlblCancelBtn.setBounds(303, 672, 207, 100);\n\t\tpanelStudentProfile.add(lblCancelBtn);\n\t\t\n\t\tJLabel lblSaveBtn = new JLabel(\"\");\n\t\tlblSaveBtn.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/myaccount_rectangle.png\")).getImage().getScaledInstance(200, 80, Image.SCALE_SMOOTH)));\n\t\tlblSaveBtn.setBounds(520, 672, 207, 100);\n\t\tpanelStudentProfile.add(lblSaveBtn);\n\t\t\n\t\tJSeparator separator = new JSeparator();\n\t\tseparator.setBounds(276, 807, 1, 2);\n\t\tpanelStudentProfile.add(separator);\n\t\tpanelStudentProfile.setVisible(false);\n\t\t\n\t\tpanelAdministrataAddLenda = new JPanel();\n\t\tpanelAdministrataAddLenda.setLayout(null);\n\t\tpanelAdministrataAddLenda.setBackground(Color.WHITE);\n\t\tpanelAdministrataAddLenda.setBounds(0, 0, 1427, 865);\n\t\tpanelMain.add(panelAdministrataAddLenda);\n\t\t\n\t\ttxtShto = new JTextField();\n\t\ttxtShto.setFont(new Font(\"Tahoma\", Font.PLAIN, 20));\n\t\ttxtShto.setText(\"ADD\");\n\t\ttxtShto.setOpaque(false);\n\t\ttxtShto.setBorder(null);\n\t\ttxtShto.setBounds(574, 490, 48, 46);\n\t\tpanelAdministrataAddLenda.add(txtShto);\n\t\ttxtShto.setColumns(10);\n\t\t\n\t\ttxtAdministrataShtoLendeEmri = new JTextField();\n\t\ttxtAdministrataShtoLendeEmri.setColumns(10);\n\t\ttxtAdministrataShtoLendeEmri.setBorder(null);\n\t\ttxtAdministrataShtoLendeEmri.setBounds(322, 259, 577, 62);\n\t\tpanelAdministrataAddLenda.add(txtAdministrataShtoLendeEmri);\n\t\t\n\t\tJLabel lblAdministrataShtoLende = new JLabel(\"\");\n\t\tlblAdministrataShtoLende.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/myaccount_rectangle.png\")).getImage()\n\t\t\t\t.getScaledInstance(600, 80, Image.SCALE_SMOOTH)));\n\t\tlblAdministrataShtoLende.setBounds(312, 246, 609, 90);\n\t\tpanelAdministrataAddLenda.add(lblAdministrataShtoLende);\n\t\t\n\t\tJLabel lblShtoLendeTe = new JLabel(\"Shto lende te re\");\n\t\tlblShtoLendeTe.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\tlblShtoLendeTe.setBounds(312, 65, 373, 62);\n\t\tpanelAdministrataAddLenda.add(lblShtoLendeTe);\n\t\t\n\t\tJLabel label_5 = new JLabel(\"Emri\");\n\t\tlabel_5.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\tlabel_5.setBounds(78, 259, 144, 62);\n\t\tpanelAdministrataAddLenda.add(label_5);\n\t\t\n\t\tJLabel btnShtoLendeTeRe = new JLabel(\"\");\n\t\tbtnShtoLendeTeRe.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tLenda newLenda = new Lenda();\n\t\t\t\tnewLenda.setLenda(txtAdministrataShtoLendeEmri.getText());\n\t\t\t\tif(newLenda.insertLenda()) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Me sukses keni shtuar nje Lende te re!\");\n\t\t\t\t}else {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Ju lutem, kontrolloni te dhenat!\");\n\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnShtoLendeTeRe.setIcon(new ImageIcon(frmMain.class.getResource(\"/Images/login_rectangle_login.png\")));\n\t\tbtnShtoLendeTeRe.setBounds(501, 490, 200, 46);\n\t\tpanelAdministrataAddLenda.add(btnShtoLendeTeRe);\n\t\tpanelAdministrataAddLenda.setVisible(false);\n\t\t\n\t\tpanelAdministrataAddUniversity = new JPanel();\n\t\tpanelAdministrataAddUniversity.setBackground(Color.WHITE);\n\t\tpanelAdministrataAddUniversity.setBounds(0, 0, 1427, 865);\n\t\tpanelMain.add(panelAdministrataAddUniversity);\n\t\tpanelAdministrataAddUniversity.setLayout(null);\n\t\t\n\t\ttxtAdd_1 = new JTextField();\n\t\ttxtAdd_1.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\ttxtAdd_1.setText(\"ADD\");\n\t\ttxtAdd_1.setBorder(null);\n\t\ttxtAdd_1.setOpaque(false);\n\t\ttxtAdd_1.setBounds(464, 419, 51, 46);\n\t\tpanelAdministrataAddUniversity.add(txtAdd_1);\n\t\ttxtAdd_1.setColumns(10);\n\t\t\n\t\ttxtAdministrataShtoUniversitet = new JTextField();\n\t\ttxtAdministrataShtoUniversitet.setBounds(238, 259, 573, 62);\n\t\ttxtAdministrataShtoUniversitet.setOpaque(false);\n\t\ttxtAdministrataShtoUniversitet.setBorder(null);\n\t\tpanelAdministrataAddUniversity.add(txtAdministrataShtoUniversitet);\n\t\ttxtAdministrataShtoUniversitet.setColumns(10);\n\t\t\n\t\tJLabel lblAdministrataEmriUniversitetit = new JLabel(\"\");\n\t\tlblAdministrataEmriUniversitetit.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/myaccount_rectangle.png\")).getImage()\n\t\t\t\t.getScaledInstance(600, 80, Image.SCALE_SMOOTH)));\n\t\tlblAdministrataEmriUniversitetit.setBounds(229, 244, 609, 90);\n\t\tpanelAdministrataAddUniversity.add(lblAdministrataEmriUniversitetit);\n\t\t\n\t\tJLabel lblShtoUniversitetTe = new JLabel(\"Shto Universitet te ri\");\n\t\tlblShtoUniversitetTe.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\tlblShtoUniversitetTe.setBounds(312, 65, 302, 62);\n\t\tpanelAdministrataAddUniversity.add(lblShtoUniversitetTe);\n\t\t\n\t\tJLabel lblEmri = new JLabel(\"Emri\");\n\t\tlblEmri.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\tlblEmri.setBounds(78, 259, 144, 62);\n\t\tpanelAdministrataAddUniversity.add(lblEmri);\n\t\t\n\t\tJLabel btnShtoUniversitetTeRi = new JLabel(\"\");\n\t\tbtnShtoUniversitetTeRi.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tUniversiteti newUni = new Universiteti();\n\t\t\t\tnewUni.setEmri(txtAdministrataShtoUniversitet.getText());\n\t\t\t\tif(newUni.insertUniversitetin()) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Me sukses keni shtuar nje Universitet te ri!\");\n\t\t\t\t}else {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Ju lutem, kontrolloni te dhenat!\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnShtoUniversitetTeRi.setIcon(new ImageIcon(frmMain.class.getResource(\"/Images/login_rectangle_login.png\")));\n\t\tbtnShtoUniversitetTeRi.setBounds(390, 419, 200, 46);\n\t\tpanelAdministrataAddUniversity.add(btnShtoUniversitetTeRi);\n\t\tpanelAdministrataAddUniversity.setVisible(false);\n\t\t\n\t\tpanelAdministrataAddFakultet = new JPanel();\n\t\tpanelAdministrataAddFakultet.setLayout(null);\n\t\tpanelAdministrataAddFakultet.setBackground(Color.WHITE);\n\t\tpanelAdministrataAddFakultet.setBounds(10, 22, 1427, 865);\n\t\tpanelMain.add(panelAdministrataAddFakultet);\n\t\t\n\t\ttxtAdd_2 = new JTextField();\n\t\ttxtAdd_2.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\ttxtAdd_2.setText(\"ADD\");\n\t\ttxtAdd_2.setOpaque(false);\n\t\ttxtAdd_2.setBorder(null);\n\t\ttxtAdd_2.setBounds(557, 600, 54, 46);\n\t\tpanelAdministrataAddFakultet.add(txtAdd_2);\n\t\ttxtAdd_2.setColumns(10);\n\t\t\n\t\ttxtAdministrataShtoFakultetAdresa = new JTextField();\n\t\ttxtAdministrataShtoFakultetAdresa.setColumns(10);\n\t\ttxtAdministrataShtoFakultetAdresa.setBorder(null);\n\t\ttxtAdministrataShtoFakultetAdresa.setBounds(322, 479, 573, 62);\n\t\tpanelAdministrataAddFakultet.add(txtAdministrataShtoFakultetAdresa);\n\t\t\n\t\ttxtAdministrataShtoFakultetEmri = new JTextField();\n\t\ttxtAdministrataShtoFakultetEmri.setBounds(322, 259, 573, 62);\n\t\ttxtAdministrataShtoFakultetEmri.setBorder(null);\n\t\tpanelAdministrataAddFakultet.add(txtAdministrataShtoFakultetEmri);\n\t\ttxtAdministrataShtoFakultetEmri.setColumns(10);\n\t\t\n\t\tJLabel lblAdministrataShtoFakultetEmri = new JLabel(\"\");\n\t\tlblAdministrataShtoFakultetEmri.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/myaccount_rectangle.png\")).getImage()\n\t\t\t\t.getScaledInstance(600, 80, Image.SCALE_SMOOTH)));\n\t\tlblAdministrataShtoFakultetEmri.setBounds(312, 246, 609, 90);\n\t\tpanelAdministrataAddFakultet.add(lblAdministrataShtoFakultetEmri);\n\t\t\n\t\tJLabel lblShtoFakultetTe = new JLabel(\"Shto Fakultet te ri\");\n\t\tlblShtoFakultetTe.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\tlblShtoFakultetTe.setBounds(312, 65, 302, 62);\n\t\tpanelAdministrataAddFakultet.add(lblShtoFakultetTe);\n\t\t\n\t\tJLabel label_2 = new JLabel(\"Emri\");\n\t\tlabel_2.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\tlabel_2.setBounds(78, 259, 144, 62);\n\t\tpanelAdministrataAddFakultet.add(label_2);\n\t\t\n\t\tJLabel lblUniversiteti = new JLabel(\"Universiteti\");\n\t\tlblUniversiteti.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\tlblUniversiteti.setBounds(78, 374, 201, 62);\n\t\tpanelAdministrataAddFakultet.add(lblUniversiteti);\n\t\t\n\t\tJLabel lblAdresa = new JLabel(\"Adresa\");\n\t\tlblAdresa.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\tlblAdresa.setBounds(78, 492, 144, 62);\n\t\tpanelAdministrataAddFakultet.add(lblAdresa);\n\t\t\n\t\t// Gjenerohet nga databasa (lista e universiteteve)\n\t\tJComboBox cmbAdministrataUniversitati = new JComboBox();\n\t\tcmbAdministrataUniversitati.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\tcmbAdministrataUniversitati.setModel(new DefaultComboBoxModel(new String[] {\"Zgjedhe Universitetin\"}));\n\t\tcmbAdministrataUniversitati.setBounds(322, 374, 483, 62);\n\t\tpanelAdministrataAddFakultet.add(cmbAdministrataUniversitati);\n\t\tUniversiteti uni = new Universiteti();\n\t\tEnumeration<String> universitetet = uni.getUniversitetet();\n\t\twhile(universitetet.hasMoreElements()) {\n\t\t\tcmbAdministrataUniversitati.addItem(universitetet.nextElement());\n\t\t}\n\t\t\n\t\tJLabel lblAdministrataShtoFakultetAdresa = new JLabel(\"\");\n\t\tlblAdministrataShtoFakultetAdresa.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/myaccount_rectangle.png\")).getImage()\n\t\t\t\t.getScaledInstance(600, 80, Image.SCALE_SMOOTH)));\n\t\tlblAdministrataShtoFakultetAdresa.setBounds(312, 464, 609, 90);\n\t\tpanelAdministrataAddFakultet.add(lblAdministrataShtoFakultetAdresa);\n\t\t\n\t\t// Kur klikohet shtohet nje fakultet i ri (administrata)\n\t\tJLabel btnShtoFakultetTeRi = new JLabel(\"\");\n\t\tbtnShtoFakultetTeRi.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tif(cmbAdministrataUniversitati.getSelectedIndex() != 0) {\n\t\t\t\t\tFakulteti newFk = new Fakulteti();\n\t\t\t\t\tnewFk.setEmri(txtAdministrataShtoFakultetEmri.getText());\n\t\t\t\t\tnewFk.setID(txtAdministrataShtoFakultetID.getText());\n\t\t\t\t\tnewFk.setAdresa(txtAdministrataShtoFakultetAdresa.getText());\n\t\t\t\t\tuni.inicializoUniversitetin(cmbAdministrataUniversitati.getSelectedItem().toString());\n\t\t\t\t\tnewFk.setUniversiteti(uni);\n\t\t\t\t\tif(newFk.insertNewFakultet()) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Me sukses keni shtuar nje Fakultet te ri!\");\n\t\t\t\t\t}else {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Ju lutem te kontrolloni te dhenat!\");\n\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t});\n\t\tbtnShtoFakultetTeRi.setIcon(new ImageIcon(frmMain.class.getResource(\"/Images/login_rectangle_login.png\")));\n\t\tbtnShtoFakultetTeRi.setBounds(488, 600, 200, 46);\n\t\tpanelAdministrataAddFakultet.add(btnShtoFakultetTeRi);\n\t\t\n\t\ttxtAdministrataShtoFakultetID = new JTextField();\n\t\ttxtAdministrataShtoFakultetID.setColumns(10);\n\t\ttxtAdministrataShtoFakultetID.setBorder(null);\n\t\ttxtAdministrataShtoFakultetID.setBounds(322, 153, 573, 62);\n\t\tpanelAdministrataAddFakultet.add(txtAdministrataShtoFakultetID);\n\t\t\n\t\tJLabel lblId_1 = new JLabel(\"ID\");\n\t\tlblId_1.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\tlblId_1.setBounds(78, 164, 144, 62);\n\t\tpanelAdministrataAddFakultet.add(lblId_1);\n\t\t\n\t\tJLabel label = new JLabel(\"\");\n\t\tlabel.setBounds(312, 140, 609, 90);\n\t\tlabel.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/myaccount_rectangle.png\")).getImage()\n\t\t\t\t.getScaledInstance(600, 80, Image.SCALE_SMOOTH)));\n\t\tpanelAdministrataAddFakultet.add(label);\n\t\tpanelAdministrataAddFakultet.setVisible(false);\n\t\t\n\t\tpanelAdministrataAddDepartament = new JPanel();\n\t\tpanelAdministrataAddDepartament.setLayout(null);\n\t\tpanelAdministrataAddDepartament.setBackground(Color.WHITE);\n\t\tpanelAdministrataAddDepartament.setBounds(0, 0, 1427, 865);\n\t\tpanelMain.add(panelAdministrataAddDepartament);\n\t\t\n\t\ttxtAdd_3 = new JTextField();\n\t\ttxtAdd_3.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\ttxtAdd_3.setText(\"ADD\");\n\t\ttxtAdd_3.setOpaque(false);\n\t\ttxtAdd_3.setBorder(null);\n\t\ttxtAdd_3.setBounds(561, 594, 55, 46);\n\t\tpanelAdministrataAddDepartament.add(txtAdd_3);\n\t\ttxtAdd_3.setColumns(10);\n\t\t\n\t\ttxtAdministrataShtoDepartamentEmri = new JTextField();\n\t\ttxtAdministrataShtoDepartamentEmri.setBorder(null);\n\t\ttxtAdministrataShtoDepartamentEmri.setBounds(322, 261, 577, 62);\n\t\tpanelAdministrataAddDepartament.add(txtAdministrataShtoDepartamentEmri);\n\t\ttxtAdministrataShtoDepartamentEmri.setColumns(10);\n\t\t\n\t\tlblAdministrataAddDepartament = new JLabel(\"\");\n\t\tlblAdministrataAddDepartament.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/myaccount_rectangle.png\")).getImage()\n\t\t\t\t.getScaledInstance(600, 80, Image.SCALE_SMOOTH)));\n\t\tlblAdministrataAddDepartament.setBounds(312, 246, 609, 90);\n\t\tpanelAdministrataAddDepartament.add(lblAdministrataAddDepartament);\n\t\t\n\t\tJLabel lblShtoDepartamentTe = new JLabel(\"Shto Departament te ri\");\n\t\tlblShtoDepartamentTe.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\tlblShtoDepartamentTe.setBounds(312, 65, 373, 62);\n\t\tpanelAdministrataAddDepartament.add(lblShtoDepartamentTe);\n\t\t\n\t\tJLabel label_3 = new JLabel(\"Emri\");\n\t\tlabel_3.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\tlabel_3.setBounds(78, 261, 144, 62);\n\t\tpanelAdministrataAddDepartament.add(label_3);\n\t\t\n\t\tJLabel label_4 = new JLabel(\"Universiteti\");\n\t\tlabel_4.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\tlabel_4.setBounds(78, 470, 201, 62);\n\t\tpanelAdministrataAddDepartament.add(label_4);\n\t\t\n\t\tJComboBox cmbFakultetet = new JComboBox();\n\t\tcmbFakultetet.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\tcmbFakultetet.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\tcmbFakultetet.setBounds(322, 470, 483, 62);\n\t\tpanelAdministrataAddDepartament.add(cmbFakultetet);\n\t\tcmbFakultetet.addItem(\"Zgjedheni fakultetin!\");\n\t\tFakulteti fakulteti = new Fakulteti();\n\t\tEnumeration<String> fakultetet = fakulteti.getFakultetet();\n\t\twhile(fakultetet.hasMoreElements()) {\n\t\t\tcmbFakultetet.addItem(fakultetet.nextElement());\n\t\t}\n\t\t// Kur klikohet shtohet nje departament i ri\n\t\tJLabel btnShtoDepartamentTeRi = new JLabel(\"\");\n\t\tbtnShtoDepartamentTeRi.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tif(cmbFakultetet.getSelectedIndex() != 0) {\n\t\t\t\t\tDepartamenti newDept = new Departamenti();\n\t\t\t\t\tnewDept.setDeparamenti(txtAdministrataShtoDepartamentEmri.getText());\n\t\t\t\t\tnewDept.setID(txtAdministrataShtoDepartamentID.getText());\n\t\t\t\t\tfakulteti.inicializoFakultetin(cmbFakultetet.getSelectedItem().toString());\n\t\t\t\t\tif(fakulteti.insertNewDepartament(newDept)) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Me sukses keni shtuar nje departament te ri!\");\n\t\t\t\t\t}else {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Ju lutem te kontrolloni te dhenat!\");\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnShtoDepartamentTeRi.setIcon(new ImageIcon(frmMain.class.getResource(\"/Images/login_rectangle_login.png\")));\n\t\tbtnShtoDepartamentTeRi.setBounds(486, 594, 200, 46);\n\t\tpanelAdministrataAddDepartament.add(btnShtoDepartamentTeRi);\n\t\t\n\t\tJLabel lblId = new JLabel(\"ID\");\n\t\tlblId.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\tlblId.setBounds(78, 366, 144, 62);\n\t\tpanelAdministrataAddDepartament.add(lblId);\n\t\t\n\t\ttxtAdministrataShtoDepartamentID = new JTextField();\n\t\ttxtAdministrataShtoDepartamentID.setColumns(10);\n\t\ttxtAdministrataShtoDepartamentID.setBorder(null);\n\t\ttxtAdministrataShtoDepartamentID.setBounds(322, 373, 393, 62);\n\t\tpanelAdministrataAddDepartament.add(txtAdministrataShtoDepartamentID);\n\t\t\n\t\tJLabel labelID = new JLabel(\"\");\n\t\tlabelID.setBounds(312, 349, 455, 108);\n\t\tlabelID.setIcon(new ImageIcon(frmMain.class.getResource(\"/Images/myaccount_rectangle.png\")));\n\t\tpanelAdministrataAddDepartament.add(labelID);\n\t\tpanelAdministrataAddDepartament.setVisible(false);\n\t\tpanelAdministrataSettingsShto.setBounds(0, 0, 1427, 865);\n\t\tpanelMain.add(panelAdministrataSettingsShto);\n\t\tpanelAdministrataSettingsShto.setLayout(null);\n\t\t\n\t\ttxtLenda = new JTextField();\n\t\ttxtLenda.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\ttxtLenda.setText(\"Lenda\");\n\t\ttxtLenda.setOpaque(false);\n\t\ttxtLenda.setFont(new Font(\"Tahoma\", Font.BOLD, 24));\n\t\ttxtLenda.setColumns(10);\n\t\ttxtLenda.setBorder(null);\n\t\ttxtLenda.setBounds(853, 640, 82, 37);\n\t\tpanelAdministrataSettingsShto.add(txtLenda);\n\t\t\n\t\ttxtDepartament = new JTextField();\n\t\ttxtDepartament.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\ttxtDepartament.setText(\"Departament\");\n\t\ttxtDepartament.setOpaque(false);\n\t\ttxtDepartament.setFont(new Font(\"Tahoma\", Font.BOLD, 24));\n\t\ttxtDepartament.setColumns(10);\n\t\ttxtDepartament.setBorder(null);\n\t\ttxtDepartament.setBounds(403, 640, 173, 37);\n\t\tpanelAdministrataSettingsShto.add(txtDepartament);\n\t\t\n\t\ttxtFakultet = new JTextField();\n\t\ttxtFakultet.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\ttxtFakultet.setText(\"Fakultet\");\n\t\ttxtFakultet.setOpaque(false);\n\t\ttxtFakultet.setFont(new Font(\"Tahoma\", Font.BOLD, 24));\n\t\ttxtFakultet.setColumns(10);\n\t\ttxtFakultet.setBorder(null);\n\t\ttxtFakultet.setBounds(843, 295, 105, 37);\n\t\tpanelAdministrataSettingsShto.add(txtFakultet);\n\t\t\n\t\tJLabel lblShtoLendaIcon = new JLabel(\"\");\t\t\n\t\tlblShtoLendaIcon.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tlblShtoLendaIcon.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/add.png\")).getImage().getScaledInstance(100, 100, Image.SCALE_SMOOTH)));\n\t\tlblShtoLendaIcon.setBounds(843, 548, 105, 81);\n\t\tpanelAdministrataSettingsShto.add(lblShtoLendaIcon);\n\t\t\n\t\tJLabel lblShtoLendaRectangle = new JLabel(\"\");\n\t\tlblShtoLendaRectangle.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tlblShtoLendaRectangle.setBounds(760, 499, 271, 198);\n\t\tlblShtoLendaRectangle.setIcon(new ImageIcon(frmMain.class.getResource(\"/Images/settings_button.png\")));\n\t\tpanelAdministrataSettingsShto.add(lblShtoLendaRectangle);\n\t\t\n\t\tJLabel lblShtoDepartamentIcon = new JLabel(\"\");\n\t\tlblShtoDepartamentIcon.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tlblShtoDepartamentIcon.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/add.png\")).getImage().getScaledInstance(100, 100, Image.SCALE_SMOOTH)));\n\t\tlblShtoDepartamentIcon.setBounds(433, 548, 105, 81);\n\t\tpanelAdministrataSettingsShto.add(lblShtoDepartamentIcon);\n\t\t\n\t\tJLabel lblShtoFakultetIcon = new JLabel(\"\");\n\t\tlblShtoFakultetIcon.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tlblShtoFakultetIcon.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/add.png\")).getImage().getScaledInstance(100, 100, Image.SCALE_SMOOTH)));\n\t\tlblShtoFakultetIcon.setBounds(843, 189, 105, 81);\n\t\tpanelAdministrataSettingsShto.add(lblShtoFakultetIcon);\n\t\t\n\t\ttxtUniversitet = new JTextField();\n\t\ttxtUniversitet.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\ttxtUniversitet.setFont(new Font(\"Tahoma\", Font.BOLD, 24));\n\t\ttxtUniversitet.setText(\"Universitet\");\n\t\ttxtUniversitet.setBounds(419, 295, 143, 37);\n\t\ttxtUniversitet.setOpaque(false);\n\t\ttxtUniversitet.setBorder(null);\n\t\tpanelAdministrataSettingsShto.add(txtUniversitet);\n\t\ttxtUniversitet.setColumns(10);\n\t\t\n\t\tJLabel lblShtoUniversitetIcon = new JLabel(\"\");\n\t\tlblShtoUniversitetIcon.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tlblShtoUniversitetIcon.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/add.png\")).getImage().getScaledInstance(100, 100, Image.SCALE_SMOOTH)));\n\t\tlblShtoUniversitetIcon.setBounds(433, 189, 105, 81);\n\t\tpanelAdministrataSettingsShto.add(lblShtoUniversitetIcon);\n\t\t\n\t\tJLabel lblShtoUniversitetRectangle = new JLabel(\"\");\n\t\tlblShtoUniversitetRectangle.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tlblShtoUniversitetRectangle.setIcon(new ImageIcon(frmMain.class.getResource(\"/Images/settings_button.png\")));\n\t\tlblShtoUniversitetRectangle.setBounds(348, 152, 271, 198);\n\t\tpanelAdministrataSettingsShto.add(lblShtoUniversitetRectangle);\n\t\t\n\t\tJLabel lblShtoFakultetRectangle = new JLabel(\"\");\n\t\tlblShtoFakultetRectangle.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tlblShtoFakultetRectangle.setBounds(760, 152, 271, 198);\n\t\tlblShtoFakultetRectangle.setIcon(new ImageIcon(frmMain.class.getResource(\"/Images/settings_button.png\")));\n\t\tpanelAdministrataSettingsShto.add(lblShtoFakultetRectangle);\n\t\t\n\t\tJLabel lblShtoDepartamentRectangle = new JLabel(\"\");\n\t\tlblShtoDepartamentRectangle.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tlblShtoDepartamentRectangle.setBounds(348, 499, 271, 198);\n\t\tlblShtoDepartamentRectangle.setIcon(new ImageIcon(frmMain.class.getResource(\"/Images/settings_button.png\")));\n\t\tpanelAdministrataSettingsShto.add(lblShtoDepartamentRectangle);\n\t\tpanelAdministrataBtnKontrollo.setBounds(0, 0, 1660, 900);\n\t\tpanelMain.add(panelAdministrataBtnKontrollo);\n\t\tpanelAdministrataBtnKontrollo.setBackground(SystemColor.text);\n\t\tpanelAdministrataBtnKontrollo.setLayout(null);\n\t\t\n\t\tJTextArea txtrDetajeTeTemes = new JTextArea();\n\t\ttxtrDetajeTeTemes.setWrapStyleWord(true);\n\t\ttxtrDetajeTeTemes.setText(\"Detaje te temes se diplomes pas kontrollimit nga algoritmi per plagjiature\");\n\t\ttxtrDetajeTeTemes.setFont(new Font(\"Monospaced\", Font.PLAIN, 25));\n\t\ttxtrDetajeTeTemes.setBounds(346, 313, 567, 493);\n\t\ttxtrDetajeTeTemes.setLineWrap(true);\n\t\tpanelAdministrataBtnKontrollo.add(txtrDetajeTeTemes);\n\t\t\n\t\ttemaDiplomes = new JTextField();\n\t\ttemaDiplomes.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\n\t\ttemaDiplomes.setText(\"Tema e diplomes \\\"Data Mining\\\" (2017)\");\n\t\ttemaDiplomes.setBounds(346, 159, 580, 87);\n\t\ttemaDiplomes.setBorder(null);\n\t\ttemaDiplomes.setOpaque(false);\n\t\tpanelAdministrataBtnKontrollo.add(temaDiplomes);\n\t\ttemaDiplomes.setColumns(10);\n\t\t\n\t\tJLabel temaRectangle = new JLabel(\"\");\n\t\ttemaRectangle.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/myaccount_rectangle.png\")).getImage().getScaledInstance(600, 100, Image.SCALE_SMOOTH)));\n\t\ttemaRectangle.setBounds(335, 147, 598, 111);\n\t\tpanelAdministrataBtnKontrollo.add(temaRectangle);\n\t\t\n\t\tJLabel detajeTemesDiplomes = new JLabel(\"\");\n\t\tdetajeTemesDiplomes.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/myaccount_rectangle.png\")).getImage().getScaledInstance(600, 600, Image.SCALE_SMOOTH)));\n\t\tdetajeTemesDiplomes.setBounds(328, 307, 598, 499);\n\t\tpanelAdministrataBtnKontrollo.add(detajeTemesDiplomes);\n\t\tpanels.add(panelAdministrataBtnKontrollo);\n\t\tpanelAdministrataStats.setBounds(0, 0, 1427, 865);\n\t\tpanelMain.add(panelAdministrataStats);\n\t\tpanelStudentStats.setBounds(0, 0, 1427, 865);\n\t\tpanelMain.add(panelStudentStats);\n\t\tpanelStudentStats.setBackground(Color.WHITE);\n\t\tpanelStudentStats.setLayout(null);\n\t\t\n\t\ttxtStatusiITemes = new JTextField();\n\t\ttxtStatusiITemes.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\ttxtStatusiITemes.setText(\"Statusi i temes tuaj\");\n\t\ttxtStatusiITemes.setBounds(257, 60, 265, 59);\n\t\ttxtStatusiITemes.setBorder(null);\n\t\tpanelStudentStats.add(txtStatusiITemes);\n\t\ttxtStatusiITemes.setColumns(10);\n\t\t\n\t\tJLabel lblStatusiTemesIcon = new JLabel(\"\");\n\t\tlblStatusiTemesIcon.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/checked.png\")).getImage().getScaledInstance(100, 100, Image.SCALE_SMOOTH)));\n\t\tlblStatusiTemesIcon.setBounds(325, 152, 115, 100);\n\t\tpanelStudentStats.add(lblStatusiTemesIcon);\n\t\t\n\t\ttxtShikoDokumentin = new JTextField();\n\t\ttxtShikoDokumentin.setText(\"Shiko dokumentin\");\n\t\ttxtShikoDokumentin.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\ttxtShikoDokumentin.setColumns(10);\n\t\ttxtShikoDokumentin.setBorder(null);\n\t\ttxtShikoDokumentin.setBounds(820, 60, 265, 59);\n\t\tpanelStudentStats.add(txtShikoDokumentin);\n\t\t\n\t\tJLabel lblShikoDokumentinIcon = new JLabel(\"\");\n\t\tlblShikoDokumentinIcon.setBounds(884, 130, 100, 118);\n\t\tlblShikoDokumentinIcon.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/pdf.png\")).getImage().getScaledInstance(100, 100, Image.SCALE_SMOOTH)));\n\t\tpanelStudentStats.add(lblShikoDokumentinIcon);\n\t\t\n\t\ttxtStatistikat = new JTextField();\n\t\ttxtStatistikat.setText(\"Statistikat\");\n\t\ttxtStatistikat.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\ttxtStatistikat.setColumns(10);\n\t\ttxtStatistikat.setBorder(null);\n\t\ttxtStatistikat.setBounds(586, 447, 148, 59);\n\t\tpanelStudentStats.add(txtStatistikat);\n\t\tpanelAdministrataDiploma.setBounds(0, 0, 1427, 865);\n\t\tpanelMain.add(panelAdministrataDiploma);\n\t\tpanelAdministrataDiploma.setBackground(Color.WHITE);\n\t\tpanelAdministrataDiploma.setLayout(null);\n\t\t\n\t\tJLabel lblSearchThesis = new JLabel(\"\");\n\t\tlblSearchThesis.setBounds(226, 150, 616, 109);\n\t\tlblSearchThesis.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/myaccount_rectangle.png\")).getImage().getScaledInstance(600, 100, Image.SCALE_SMOOTH)));\n\t\tpanelAdministrataDiploma.add(lblSearchThesis);\n\t\t\n\t\tJLabel lblSearchThesisIcon = new JLabel(\"\");\n\t\tlblSearchThesisIcon.setBounds(879, 150, 100, 100);\n\t\tlblSearchThesisIcon.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/search.png\")).getImage().getScaledInstance(100, 100, Image.SCALE_SMOOTH)));\n\t\tpanelAdministrataDiploma.add(lblSearchThesisIcon);\n\t\t\n\t\tJScrollPane scrollPane_2 = new JScrollPane();\n\t\tscrollPane_2.setBounds(226, 319, 743, 91);\n\t\tpanelAdministrataDiploma.add(scrollPane_2);\n\t\t\n\t\ttable_3 = new JTable(Administratadata,AdministrataColumnNamesThesis);\n\t\ttable_3.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\n\t\tscrollPane_2.setViewportView(table_3);\n\t\t\n\t\tpanelAdministrataSettings = new JPanel();\n\t\tpanelAdministrataSettings.setBounds(0, 0, 1427, 865);\n\t\tpanelMain.add(panelAdministrataSettings);\n\t\tpanelAdministrataSettings.setVisible(false);\n\t\tpanelAdministrataSettings.setLayout(null);\n\t\t\n\t\tlblModifikoText = new JTextField();\n\t\tlblModifikoText.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tlblModifikoText.setText(\"Modifiko\");\n\t\tlblModifikoText.setOpaque(false);\n\t\tlblModifikoText.setFont(new Font(\"Tahoma\", Font.BOLD, 25));\n\t\tlblModifikoText.setColumns(10);\n\t\tlblModifikoText.setBorder(null);\n\t\tlblModifikoText.setBounds(836, 592, 128, 49);\n\t\tpanelAdministrataSettings.add(lblModifikoText);\n\t\t\n\t\tJLabel lblModifikoIcon = new JLabel(\"\");\n\t\tlblModifikoIcon.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tlblModifikoIcon.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/pencil-edit-button.png\")).getImage().getScaledInstance(100, 100, Image.SCALE_SMOOTH)));\n\t\tlblModifikoIcon.setBounds(842, 480, 109, 101);\n\t\tpanelAdministrataSettings.add(lblModifikoIcon);\n\t\t\n\t\tJLabel lblModifikoRectangle = new JLabel(\"\");\n\t\tlblModifikoRectangle.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tlblModifikoRectangle.setIcon(new ImageIcon(frmMain.class.getResource(\"/Images/settings_button.png\")));\n\t\tlblModifikoRectangle.setBounds(755, 455, 271, 198);\n\t\tpanelAdministrataSettings.add(lblModifikoRectangle);\n\t\t\n\t\tlblShtoTeDhenaText = new JTextField();\n\t\tlblShtoTeDhenaText.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tlblShtoTeDhenaText.setText(\"Shto\");\n\t\tlblShtoTeDhenaText.setOpaque(false);\n\t\tlblShtoTeDhenaText.setFont(new Font(\"Tahoma\", Font.BOLD, 25));\n\t\tlblShtoTeDhenaText.setColumns(10);\n\t\tlblShtoTeDhenaText.setBorder(null);\n\t\tlblShtoTeDhenaText.setBounds(463, 592, 63, 49);\n\t\tpanelAdministrataSettings.add(lblShtoTeDhenaText);\n\t\t\n\t\tJLabel lblShtoTeDhenaIcon = new JLabel(\"\");\n\t\tlblShtoTeDhenaIcon.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tlblShtoTeDhenaIcon.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/add.png\")).getImage().getScaledInstance(100, 100, Image.SCALE_SMOOTH)));\n\t\tlblShtoTeDhenaIcon.setBounds(436, 480, 109, 101);\n\t\tpanelAdministrataSettings.add(lblShtoTeDhenaIcon);\n\t\t\n\t\ttxtProfile = new JTextField();\n\t\ttxtProfile.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\ttxtProfile.setText(\"Profile\");\n\t\ttxtProfile.setOpaque(false);\n\t\ttxtProfile.setFont(new Font(\"Tahoma\", Font.BOLD, 25));\n\t\ttxtProfile.setColumns(10);\n\t\ttxtProfile.setBorder(null);\n\t\ttxtProfile.setBounds(842, 313, 92, 49);\n\t\tpanelAdministrataSettings.add(txtProfile);\n\t\t\n\t\tJLabel lblProfileIcon = new JLabel(\"\");\n\t\tlblProfileIcon.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tlblProfileIcon.setIcon(new ImageIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/user.png\")).getImage().getScaledInstance(100, 100, Image.SCALE_SMOOTH)));\n\t\tlblProfileIcon.setBounds(836, 189, 109, 113);\n\t\tpanelAdministrataSettings.add(lblProfileIcon);\n\t\t\n\t\tJLabel lblProfileRectangle = new JLabel(\"\");\n\t\tlblProfileRectangle.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tlblProfileRectangle.setIcon(new ImageIcon(frmMain.class.getResource(\"/Images/settings_button.png\")));\n\t\tlblProfileRectangle.setBounds(755, 175, 271, 198);\n\t\tpanelAdministrataSettings.add(lblProfileRectangle);\n\t\t\n\t\tJLabel lblPasswordIcon = new JLabel(\"\");\n\t\tlblPasswordIcon.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tlblPasswordIcon.setBounds(436, 201, 109, 101);\n\t\tlblPasswordIcon.setIcon(new ImageIcon(frmMain.class.getResource(\"/Images/settings_password_button.png\")));\n\t\tpanelAdministrataSettings.add(lblPasswordIcon);\n\t\t\n\t\ttxtPasswordText = new JTextField();\n\t\ttxtPasswordText.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\ttxtPasswordText.setFont(new Font(\"Tahoma\", Font.BOLD, 25));\n\t\ttxtPasswordText.setText(\"Password\");\n\t\ttxtPasswordText.setOpaque(false);\n\t\ttxtPasswordText.setBorder(null);\n\t\ttxtPasswordText.setBounds(426, 313, 150, 49);\n\t\tpanelAdministrataSettings.add(txtPasswordText);\n\t\ttxtPasswordText.setColumns(10);\n\t\t\n\t\tJLabel lblPasswordRectangle = new JLabel(\"\");\n\t\tlblPasswordRectangle.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tlblPasswordRectangle.setIcon(new ImageIcon(frmMain.class.getResource(\"/Images/settings_button.png\")));\n\t\tlblPasswordRectangle.setBounds(358, 175, 271, 198);\n\t\tpanelAdministrataSettings.add(lblPasswordRectangle);\n\t\t\n\t\tJLabel lblShtoTeDhenaRectangle = new JLabel(\"\");\n\t\tlblShtoTeDhenaRectangle.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tlblShtoTeDhenaRectangle.setIcon(new ImageIcon(frmMain.class.getResource(\"/Images/settings_button.png\")));\n\t\tlblShtoTeDhenaRectangle.setBounds(358, 455, 271, 198);\n\t\tpanelAdministrataSettings.add(lblShtoTeDhenaRectangle);\n\t\t/*\n\t\tpanels.add(panelAdministrataNjoftimet);\n\t\tpanels.add(panelAdministrataSettings);\n\t\tpanels.add(panelAdministrataSettingsShto);\n\t\tpanels.add(panelAdministrataThesis);\n\t\tpanels.add(panelAdministrataStats);\n\t\tpanels.add(panelStudentMyAccount);\n\t\tpanels.add(panelStudentProfile);\n\t\tpanels.add(panelStudentStats);\n\t\t\n\t\tlabelHighlight.add(lblHighlightNotifications);\n\t\tlabelHighlight.add(lblHighlightThesis);\n\t\tlabelHighlight.add(lblHighlightSettings);\n\t\tlabelHighlight.add(lblHighlightStatistics);\n\t*/\n\t\t panelAdministrataSettings.setVisible(false);\n\t\t panelAdministrataSettingsShto.setVisible(false);\n\t\t panelAdministrataBtnKontrollo.setVisible(false);\n\t\t panelAdministrataDiploma.setVisible(false);\n\t\t panelAdministrataStats.setVisible(false);\n\t\t panelStudentStats.setVisible(false);\n\t\t \n\t\t\n\t\t\n\t\tif(newLogin.getLloji().equals(\"Student\")) {\n\t\t\tpanelStudentDiploma.setVisible(true);\n\t\t}else if(newLogin.getLloji().equals(\"Profesor\")) {\n\t\t\tpanelProfesorDiploma.setVisible(true);\n\t\t}else {\n\t\t\tpanelAdministrataDiploma.setVisible(true);\t\t\t\n\t\t}\n\t\t\n\t\tlblHighlightNotifications.setVisible(false);\n\t\tlblHighlightThesis.setVisible(true);\n\t\tlblHighlightSettings.setVisible(false);\n\t\tlblHighlightStatistics.setVisible(false);\n\t\t\n\t\tpanelMenuNotifications.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t//caktoVisible(\"panelAdministrataNjoftimet\");\n\t\t\t\t//caktoVisibleHighlights(lblHighlightNotifications);\n\t\t\t\tif(newLogin.getLloji().equals(\"Student\")) {\n\t\t\t\t\tpanelStudentiChangePassword.setVisible(false);\n\n\t\t\t\t\tpanelStudentMyAccount.setVisible(false);\n\t\t\t\t\tpanelStudentProfile.setVisible(false);\n\t\t\t\t\tpanelStudentStats.setVisible(false);\n\t\t\t\t\tpanelStudentDiploma.setVisible(false);\n\t\t\t\t\tpanelStudentSettings.setVisible(false);\n\t\t\t\t\tpanelStudentNotifications.setVisible(true);\n\t\t\t\t\t//Studenti\n\t\t\t\t}else if(newLogin.getLloji().equals(\"Profesor\")) {\n\t\t\t\t\tpanelStudentiChangePassword.setVisible(false);\n\n\t\t\t\t\tpanelStudentMyAccount.setVisible(false);\n\t\t\t\t\tpanelStudentProfile.setVisible(false);\n\t\t\t\t\tpanelStudentStats.setVisible(false);\n\t\t\t\t\tpanelProfesorDiploma.setVisible(false);\n\t\t\t\t\tpanelStudentSettings.setVisible(false);\n\t\t\t\t\tpanelStudentNotifications.setVisible(true);\n\t\t\t\t\t//Profesori\n\t\t\t\t}else {\n\t\t\t\t\tpanelStudentMyAccount.setVisible(false);\n\t\t\t\t\tpanelAdministrataNjoftimet.setVisible(true);\n\t\t\t\t\tpanelAdministrataSettings.setVisible(false);\n\t\t\t\t\tpanelAdministrataSettingsShto.setVisible(false);\n\t\t\t\t\tpanelAdministrataDiploma.setVisible(false);\n\t\t\t\t\tpanelAdministrataStats.setVisible(false);\n\t\t\t\t\tpanelAdministrataBtnKontrollo.setVisible(false);\t\n\t\t\t\t\tpanelAdministrataAddDepartament.setVisible(false);\n\t\t\t\t\tpanelAdministrataAddLenda.setVisible(false);\n\t\t\t\t\tpanelAdministrataAddFakultet.setVisible(false);\n\t\t\t\t\tpanelAdministrataAddUniversity.setVisible(false);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tlblHighlightNotifications.setVisible(true);\n\t\t\t\tlblHighlightThesis.setVisible(false);\n\t\t\t\tlblHighlightSettings.setVisible(false);\n\t\t\t\tlblHighlightStatistics.setVisible(false);\n\t\t\t}\n\t\t});\n\t\t\n\n\t\tpanelMenuThesis.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t//caktoVisible(\"panelAdministrataThesis\");\n\t\t\t\t//caktoVisibleHighlights(lblHighlightThesis);\n\t\t\t\tif(newLogin.getLloji().equals(\"Student\")) {\n\t\t\t\t\tpanelStudentiChangePassword.setVisible(false);\n\n\t\t\t\t\tpanelStudentMyAccount.setVisible(false);\n\t\t\t\t\tpanelStudentProfile.setVisible(false);\n\t\t\t\t\tpanelStudentStats.setVisible(false);\n\t\t\t\t\tpanelStudentDiploma.setVisible(true);\n\t\t\t\t\tpanelStudentSettings.setVisible(false);\n\t\t\t\t\tpanelStudentNotifications.setVisible(false);\n\t\t\t\t}else if(newLogin.getLloji().equals(\"Profesor\")) {\n\t\t\t\t\tpanelStudentiChangePassword.setVisible(false);\n\n\t\t\t\t\tpanelStudentMyAccount.setVisible(false);\n\t\t\t\t\tpanelStudentProfile.setVisible(false);\n\t\t\t\t\tpanelStudentStats.setVisible(false);\n\t\t\t\t\tpanelProfesorDiploma.setVisible(true);\n\t\t\t\t\tpanelStudentSettings.setVisible(false);\n\t\t\t\t\tpanelStudentNotifications.setVisible(false);\n\t\t\t\t}else {\n\t\t\t\t\tpanelStudentMyAccount.setVisible(false);\n\t\t\t\t\tpanelAdministrataNjoftimet.setVisible(false);\n\t\t\t\t\tpanelAdministrataSettings.setVisible(false);\n\t\t\t\t\tpanelAdministrataSettingsShto.setVisible(false);\n\t\t\t\t\tpanelAdministrataDiploma.setVisible(true);\n\t\t\t\t\tpanelAdministrataStats.setVisible(false);\n\t\t\t\t\tpanelAdministrataBtnKontrollo.setVisible(false);\t\n\t\t\t\t\tpanelAdministrataAddDepartament.setVisible(false);\n\t\t\t\t\tpanelAdministrataAddLenda.setVisible(false);\n\t\t\t\t\tpanelAdministrataAddFakultet.setVisible(false);\n\t\t\t\t\tpanelAdministrataAddUniversity.setVisible(false);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tlblHighlightNotifications.setVisible(false);\n\t\t\t\tlblHighlightThesis.setVisible(true);\n\t\t\t\tlblHighlightSettings.setVisible(false);\n\t\t\t\tlblHighlightStatistics.setVisible(false);\n\t\t\t}\n\t\t});\n\t\t\t\t\n\n\t\tpanelMenuSettings.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t//caktoVisible(\"panelAdministrataSettings\");\n\t\t\t\t//caktoVisibleHighlights(lblHighlightSettings);\n\t\t\t\tif(newLogin.getLloji().equals(\"Student\")) {\n\t\t\t\t\tpanelStudentMyAccount.setVisible(false);\n\t\t\t\t\tpanelStudentProfile.setVisible(false);\n\t\t\t\t\tpanelStudentStats.setVisible(false);\n\t\t\t\t\tpanelStudentDiploma.setVisible(false);\n\t\t\t\t\tpanelStudentSettings.setVisible(true);\n\t\t\t\t\tpanelStudentNotifications.setVisible(false);\n\t\t\t\t\tpanelStudentiChangePassword.setVisible(false);\n\n\t\t\t\t}else if(newLogin.getLloji().equals(\"Profesor\")) {\n\t\t\t\t\tpanelStudentiChangePassword.setVisible(false);\n\n\t\t\t\t\tpanelStudentMyAccount.setVisible(false);\n\t\t\t\t\tpanelStudentProfile.setVisible(false);\n\t\t\t\t\tpanelStudentStats.setVisible(false);\n\t\t\t\t\tpanelProfesorDiploma.setVisible(false);\n\t\t\t\t\tpanelStudentSettings.setVisible(true);\n\t\t\t\t\tpanelStudentNotifications.setVisible(false);\n\t\t\t\t}else {\n\t\t\t\t\tpanelStudentMyAccount.setVisible(false);\n\t\t\t\t\tpanelAdministrataNjoftimet.setVisible(false);\n\t\t\t\t\tpanelAdministrataSettings.setVisible(false);\n\t\t\t\t\tpanelAdministrataSettingsShto.setVisible(true);\n\t\t\t\t\tpanelAdministrataDiploma.setVisible(false);\n\t\t\t\t\tpanelAdministrataStats.setVisible(false);\n\t\t\t\t\tpanelAdministrataBtnKontrollo.setVisible(true);\t\n\t\t\t\t\tpanelAdministrataAddDepartament.setVisible(false);\n\t\t\t\t\tpanelAdministrataAddLenda.setVisible(false);\n\t\t\t\t\tpanelAdministrataAddFakultet.setVisible(false);\n\t\t\t\t\tpanelAdministrataAddUniversity.setVisible(false);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tlblHighlightNotifications.setVisible(false);\n\t\t\t\tlblHighlightThesis.setVisible(false);\n\t\t\t\tlblHighlightSettings.setVisible(true);\n\t\t\t\tlblHighlightStatistics.setVisible(false);\n\t\t\t}\n\t\t});\n\t\t\n\n\t\tlblShtoTeDhenaRectangle.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t//caktoVisible(\"panelAdministrataSettingsShto\");\n\t\t\t\t// ADMINISTRATA\n\t\t\t}\n\t\t});\n\t\t\n\t\tlblShtoUniversitetRectangle.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t//caktoVisible(\"panelAdministrataStats\");\n\t\t\t\t//labelHighlight.add(lblHighlightStatistics);\n\t\t\t\t\n\t\t\t\t\tpanelAdministrataNjoftimet.setVisible(false);\n\t\t\t\t\tpanelAdministrataSettings.setVisible(false);\n\t\t\t\t\tpanelAdministrataSettingsShto.setVisible(false);\n\t\t\t\t\tpanelAdministrataDiploma.setVisible(false);\n\t\t\t\t\tpanelAdministrataStats.setVisible(false);\n\t\t\t\t\tpanelAdministrataBtnKontrollo.setVisible(false);\t\n\t\t\t\t\tpanelAdministrataAddDepartament.setVisible(false);\n\t\t\t\t\tpanelAdministrataAddLenda.setVisible(false);\n\t\t\t\t\tpanelAdministrataAddFakultet.setVisible(false);\n\t\t\t\t\tpanelAdministrataAddUniversity.setVisible(true);\n\t\t\t\n\t\t\t\t\n\t\t\t\tlblHighlightNotifications.setVisible(false);\n\t\t\t\tlblHighlightThesis.setVisible(false);\n\t\t\t\tlblHighlightSettings.setVisible(true);\n\t\t\t\tlblHighlightStatistics.setVisible(false);\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tlblShtoFakultetRectangle.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t//caktoVisible(\"panelAdministrataStats\");\n\t\t\t\t//labelHighlight.add(lblHighlightStatistics);\n\t\t\t\t\n\t\t\t\t\tpanelAdministrataNjoftimet.setVisible(false);\n\t\t\t\t\tpanelAdministrataSettings.setVisible(false);\n\t\t\t\t\tpanelAdministrataSettingsShto.setVisible(false);\n\t\t\t\t\tpanelAdministrataDiploma.setVisible(false);\n\t\t\t\t\tpanelAdministrataStats.setVisible(false);\n\t\t\t\t\tpanelAdministrataBtnKontrollo.setVisible(true);\t\n\t\t\t\t\tpanelAdministrataAddDepartament.setVisible(false);\n\t\t\t\t\tpanelAdministrataAddLenda.setVisible(false);\n\t\t\t\t\tpanelAdministrataAddFakultet.setVisible(true);\n\t\t\t\t\tpanelAdministrataAddUniversity.setVisible(false);\n\t\t\t\n\t\t\t\t\n\t\t\t\tlblHighlightNotifications.setVisible(false);\n\t\t\t\tlblHighlightThesis.setVisible(false);\n\t\t\t\tlblHighlightSettings.setVisible(true);\n\t\t\t\tlblHighlightStatistics.setVisible(false);\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tlblShtoDepartamentRectangle.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t//caktoVisible(\"panelAdministrataStats\");\n\t\t\t\t//labelHighlight.add(lblHighlightStatistics);\n\t\t\t\t\n\t\t\t\t\tpanelAdministrataNjoftimet.setVisible(false);\n\t\t\t\t\tpanelAdministrataSettings.setVisible(false);\n\t\t\t\t\tpanelAdministrataSettingsShto.setVisible(false);\n\t\t\t\t\tpanelAdministrataDiploma.setVisible(false);\n\t\t\t\t\tpanelAdministrataStats.setVisible(false);\n\t\t\t\t\tpanelAdministrataBtnKontrollo.setVisible(true);\t\n\t\t\t\t\tpanelAdministrataAddDepartament.setVisible(true);\n\t\t\t\t\tpanelAdministrataAddLenda.setVisible(false);\n\t\t\t\t\tpanelAdministrataAddFakultet.setVisible(false);\n\t\t\t\t\tpanelAdministrataAddUniversity.setVisible(false);\n\t\t\t\n\t\t\t\t\n\t\t\t\tlblHighlightNotifications.setVisible(false);\n\t\t\t\tlblHighlightThesis.setVisible(false);\n\t\t\t\tlblHighlightSettings.setVisible(true);\n\t\t\t\tlblHighlightStatistics.setVisible(false);\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tlblShtoLendaRectangle.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t//caktoVisible(\"panelAdministrataStats\");\n\t\t\t\t//labelHighlight.add(lblHighlightStatistics);\n\t\t\t\t\n\t\t\t\t\tpanelAdministrataNjoftimet.setVisible(false);\n\t\t\t\t\tpanelAdministrataSettings.setVisible(false);\n\t\t\t\t\tpanelAdministrataSettingsShto.setVisible(false);\n\t\t\t\t\tpanelAdministrataDiploma.setVisible(false);\n\t\t\t\t\tpanelAdministrataStats.setVisible(false);\n\t\t\t\t\tpanelAdministrataBtnKontrollo.setVisible(false);\t\n\t\t\t\t\tpanelAdministrataAddDepartament.setVisible(false);\n\t\t\t\t\tpanelAdministrataAddLenda.setVisible(true);\n\t\t\t\t\tpanelAdministrataAddFakultet.setVisible(false);\n\t\t\t\t\tpanelAdministrataAddUniversity.setVisible(false);\n\n\t\t\t\t\n\t\t\t\tlblHighlightNotifications.setVisible(false);\n\t\t\t\tlblHighlightThesis.setVisible(false);\n\t\t\t\tlblHighlightSettings.setVisible(true);\n\t\t\t\tlblHighlightStatistics.setVisible(false);\t\n\t\t\t}\n\t\t});\n\t\tpanelMenuStats.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t//caktoVisible(\"panelAdministrataStats\");\n\t\t\t\t//labelHighlight.add(lblHighlightStatistics);\n\t\t\t\tif(newLogin.getLloji().equals(\"Student\")) {\n\t\t\t\t\tpanelStudentMyAccount.setVisible(false);\n\t\t\t\t\tpanelStudentProfile.setVisible(false);\n\t\t\t\t\tpanelStudentStats.setVisible(true);\n\t\t\t\t\tpanelStudentDiploma.setVisible(false);\n\t\t\t\t\tpanelStudentSettings.setVisible(false);\n\t\t\t\t\tpanelStudentNotifications.setVisible(false);\n\t\t\t\t\tpanelStudentiChangePassword.setVisible(false);\n\n\t\t\t\t}else if(newLogin.getLloji().equals(\"Profesor\")) {\n\t\t\t\t\tpanelStudentMyAccount.setVisible(false);\n\t\t\t\t\tpanelStudentProfile.setVisible(false);\n\t\t\t\t\tpanelStudentStats.setVisible(true);\n\t\t\t\t\tpanelProfesorDiploma.setVisible(false);\n\t\t\t\t\tpanelStudentSettings.setVisible(false);\t\t\t\n\t\t\t\t\tpanelStudentNotifications.setVisible(false);\n\t\t\t\t\tpanelStudentiChangePassword.setVisible(false);\n\n\t\t\t\t}else {\n\t\t\t\t\t\n\t\t\t\t\tpanelStudentMyAccount.setVisible(false);\n\t\t\t\t\tpanelAdministrataNjoftimet.setVisible(false);\n\t\t\t\t\tpanelAdministrataSettings.setVisible(false);\n\t\t\t\t\tpanelAdministrataSettingsShto.setVisible(false);\n\t\t\t\t\tpanelAdministrataDiploma.setVisible(false);\n\t\t\t\t\tpanelAdministrataStats.setVisible(true);\n\t\t\t\t\tpanelAdministrataBtnKontrollo.setVisible(true);\t\n\t\t\t\t\tpanelAdministrataAddDepartament.setVisible(false);\n\t\t\t\t\tpanelAdministrataAddLenda.setVisible(false);\n\t\t\t\t\tpanelAdministrataAddFakultet.setVisible(false);\n\t\t\t\t\tpanelAdministrataAddUniversity.setVisible(false);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tlblHighlightNotifications.setVisible(false);\n\t\t\t\tlblHighlightThesis.setVisible(false);\n\t\t\t\tlblHighlightSettings.setVisible(false);\n\t\t\t\tlblHighlightStatistics.setVisible(true);\t\n\t\t\t}\n\t\t});\n\t\t\n\t\t// Te implementohet eventi per butonin MyAccount\n\t\tbtnMyAccount.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tpanelStudentMyAccount.setVisible(true);\n\t\t\t\tpanelStudentProfile.setVisible(false);\n\t\t\t\tpanelStudentStats.setVisible(false);\n\t\t\t\tpanelStudentDiploma.setVisible(false);\n\t\t\t\tpanelStudentSettings.setVisible(false);\n\t\t\t\tpanelStudentNotifications.setVisible(false);\n\t\t\t\tpanelAdministrataNjoftimet.setVisible(false);\n\t\t\t\tpanelAdministrataSettings.setVisible(false);\n\t\t\t\tpanelAdministrataSettingsShto.setVisible(false);\n\t\t\t\tpanelAdministrataDiploma.setVisible(false);\n\t\t\t\tpanelAdministrataStats.setVisible(false);\n\t\t\t\tpanelAdministrataBtnKontrollo.setVisible(false);\t\n\t\t\t\tpanelAdministrataAddDepartament.setVisible(false);\n\t\t\t\tpanelAdministrataAddLenda.setVisible(false);\n\t\t\t\tpanelAdministrataAddFakultet.setVisible(false);\n\t\t\t\tpanelAdministrataAddUniversity.setVisible(false);\n\t\t\t\tpanelStudentiChangePassword.setVisible(false);\n\t\t\t\t//Mbushja me vlera\n\t\t\t\tif(newLogin.getLloji().equals(\"Student\")) {\n\t\t\t\t\ttxtEmri.setText(newLogin.student.getEmri());\n\t\t\t\t\ttxtMbiemri.setText(newLogin.student.getMbiemri());\n\t\t\t\t\ttxtEmail.setText(newLogin.student.getEmail());\n\t\t\t\t\ttxtTel.setText(newLogin.student.getTel());\n\t\t\t\t\ttxtUniversiteti.setText(newLogin.student.getUniversiteti().getEmri());\n\t\t\t\t\ttxtFakulteti.setText(newLogin.student.getFakulteti().getEmri());\n\t\t\t\t\ttxtDepartamenti.setText(newLogin.student.getDepartamenti().getDeparamenti());\n\t\t\t\t}else if(newLogin.getLloji().equals(\"Profesor\")) {\n\t\t\t\t\ttxtEmri.setText(newLogin.profesor.getEmri());\n\t\t\t\t\ttxtMbiemri.setText(newLogin.profesor.getMbiemri());\n\t\t\t\t\ttxtEmail.setText(newLogin.profesor.getEmail());\n\t\t\t\t\ttxtTel.setText(newLogin.profesor.getTel());\n\t\t\t\t\ttxtUniversiteti.setText(\"-NOT DEFINED-\");\n\t\t\t\t\ttxtFakulteti.setText(\"-NOT DEFINED-\");\n\t\t\t\t\ttxtDepartamenti.setText(\"-NOT DEFINED-\");\n\t\t\t\t}else {\n\t\t\t\t\ttxtEmri.setText(newLogin.administrat.getEmri());\n\t\t\t\t\ttxtMbiemri.setText(newLogin.administrat.getMbiemri());\n\t\t\t\t\ttxtEmail.setText(newLogin.administrat.getEmail());\n\t\t\t\t\ttxtTel.setText(newLogin.administrat.getTel());\n\t\t\t\t\ttxtUniversiteti.setText(newLogin.administrat.getFakulteti().getUniversiteti().getEmri());\n\t\t\t\t\ttxtFakulteti.setText(newLogin.administrat.getFakulteti().getEmri());\n\t\t\t\t\ttxtDepartamenti.setText(\"-NOT DEFINED-\");\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t});\n\t}", "protected abstract void closeLayout( );", "private void removeOldContent() {\n remove(middlePanel);\n validate();\n repaint();\n middlePanel = new JPanel();\n middlePanel.add(param1);\n middlePanel.add(weight);\n middlePanel.add(submit); \n add(middlePanel, BorderLayout.CENTER);\n revalidate();\n repaint();\n }", "public MenuPrincipal() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "private void setUIComponents() {\n\t\tframe.setTitle(\"Departamento de ventas\");\n\t\tframe.setMinimumSize(new Dimension(700, 500));\n\n\t\t/*\n\t\t * Paneles externos. Solo hay que añadir en el bottomPanel\n\t\t */\n\t\tJPanel topPanel = new JPanel();\n\t\tframe.getContentPane().add(topPanel, BorderLayout.NORTH);\n\t\ttopPanel.setBackground(new Color(233, 196, 106));\n\t\ttopPanel.setBounds(100, 100, 100, 100);\n\n\t\tJPanel leftPanel = new JPanel();\n\t\tframe.getContentPane().add(leftPanel, BorderLayout.WEST);\n\t\tleftPanel.setBackground(new Color(233, 196, 106));\n\n\t\tJPanel rightPanel = new JPanel();\n\t\tframe.getContentPane().add(rightPanel, BorderLayout.EAST);\n\t\trightPanel.setBackground(new Color(233, 196, 106));\n\n\t\tJPanel bottomPanel = new JPanel();\n\t\tframe.getContentPane().add(bottomPanel, BorderLayout.SOUTH);\n\t\tbottomPanel.setBackground(new Color(233, 196, 106));\n\t\tbottomPanel.setLayout(new FlowLayout(FlowLayout.RIGHT, 5, 0));\n\t\t// Se añaden los componentes al bottomPanel\n\t\tbtnLogOut = new JButton(\"Cerrar Sesión\");\n\t\tbtnLogOut.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tbtnLogOut.setBorder(null);\n\t\tbtnLogOut.setBackground(new Color(233, 196, 106));\n\t\tbtnLogOut.setFont(new Font(\"SansSerif\", Font.BOLD, 12));\n\t\tbottomPanel.add(btnLogOut);\n\n\t\tJLabel lblLogOut = new JLabel(\"X\");\n\t\tlblLogOut.setForeground(new Color(220, 20, 60));\n\t\tlblLogOut.setFont(new Font(\"SansSerif\", Font.BOLD, 13));\n\t\tbottomPanel.add(lblLogOut);\n\n\t\t/*\n\t\t * mainPanel. Dentro se crean otros paneles para añadir los distintos\n\t\t * componentes.\n\t\t */\n\t\tJPanel mainPanel = new JPanel();\n\t\tmainPanel.setBorder(new MatteBorder(2, 2, 1, 1, (Color) new Color(0, 0, 0)));\n\t\tframe.getContentPane().add(mainPanel);\n\t\tGridBagLayout gbl_mainPanel = new GridBagLayout();\n\t\tgbl_mainPanel.columnWidths = new int[] { 1061, 0 };\n\t\tgbl_mainPanel.rowHeights = new int[] { 137, 298, 328, 0 };\n\t\tgbl_mainPanel.columnWeights = new double[] { 0.0, Double.MIN_VALUE };\n\t\tgbl_mainPanel.rowWeights = new double[] { 0.0, 0.0, 0.0, Double.MIN_VALUE };\n\t\tmainPanel.setLayout(gbl_mainPanel);\n\n\t\t// Paneles que componen el mainPanel\n\n\t\tJPanel clientPanel = new JPanel();\n\t\tGridBagConstraints gbc_clientesPanel = new GridBagConstraints();\n\t\tgbc_clientesPanel.fill = GridBagConstraints.BOTH;\n\t\tgbc_clientesPanel.insets = new Insets(0, 0, 5, 0);\n\t\tgbc_clientesPanel.gridx = 0;\n\t\tgbc_clientesPanel.gridy = 0;\n\t\tmainPanel.add(clientPanel, gbc_clientesPanel);\n\t\tclientPanel.setLayout(new BorderLayout());\n\t\tclientPanel.setPreferredSize(new Dimension(10, 50));\n\n\t\t// Añadir Jlabel a clientesPanel\n\t\tJLabel lblClientData = new JLabel(\"Datos del cliente\");\n\t\tlblClientData.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblClientData.setFont(new Font(\"SansSerif\", Font.BOLD, 25));\n\t\tclientPanel.add(lblClientData, BorderLayout.CENTER);\n\n\t\t// Panel para rellenar datos de cliente.\n\t\tJPanel clientDataPanel = new JPanel();\n\t\tGridBagConstraints gbc_datosClientePanel = new GridBagConstraints();\n\t\tgbc_datosClientePanel.fill = GridBagConstraints.BOTH;\n\t\tgbc_datosClientePanel.insets = new Insets(0, 0, 5, 0);\n\t\tgbc_datosClientePanel.gridx = 0;\n\t\tgbc_datosClientePanel.gridy = 1;\n\t\tmainPanel.add(clientDataPanel, gbc_datosClientePanel);\n\t\tclientDataPanel.setLayout(new GridLayout(1, 2));\n\n\t\tJPanel clientDataPanelLeft = new JPanel();\n\t\tclientDataPanel.add(clientDataPanelLeft);\n\t\tSpringLayout sl_datosClientePanelLeft = new SpringLayout();\n\t\tclientDataPanelLeft.setLayout(sl_datosClientePanelLeft);\n\n\t\t// Componentes panel derecho\n\t\t// Añadir Jlabel y JText para los distintos datos del ciente\n\t\tJLabel lblCod = new JLabel(\"Código de cliente:\");\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.NORTH, lblCod, 26, SpringLayout.NORTH, clientDataPanelLeft);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.WEST, lblCod, 70, SpringLayout.WEST, clientDataPanelLeft);\n\t\tlblCod.setFont(new Font(\"SansSerif\", Font.PLAIN, 15));\n\t\tclientDataPanelLeft.add(lblCod);\n\n\t\ttxtCod = new JTextField();\n\t\ttxtCod.setEnabled(false);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.NORTH, txtCod, -3, SpringLayout.NORTH, lblCod);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.WEST, txtCod, 74, SpringLayout.EAST, lblCod);\n\t\ttxtCod.setFont(new Font(\"SansSerif\", Font.PLAIN, 15));\n\t\ttxtCod.setColumns(10);\n\t\tclientDataPanelLeft.add(txtCod);\n\n\t\t// Añadir Jlabel y JText para los distintos datos del ciente\n\t\tJLabel lblNombreCliente = new JLabel(\"Nombre:\");\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.NORTH, lblNombreCliente, 26, SpringLayout.SOUTH, lblCod);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.WEST, lblNombreCliente, 0, SpringLayout.WEST, lblCod);\n\t\tlblNombreCliente.setFont(new Font(\"SansSerif\", Font.PLAIN, 15));\n\t\tclientDataPanelLeft.add(lblNombreCliente);\n\n\t\ttxtName = new JTextField();\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.NORTH, txtName, -3, SpringLayout.NORTH, lblNombreCliente);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.WEST, txtName, 0, SpringLayout.WEST, txtCod);\n\t\ttxtName.setFont(new Font(\"SansSerif\", Font.PLAIN, 15));\n\t\ttxtName.setColumns(10);\n\t\tclientDataPanelLeft.add(txtName);\n\n\t\t// Añadir Jlabel y JText para los distintos datos del ciente\n\t\tJLabel lblSurnames = new JLabel(\"Apellidos:\");\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.NORTH, lblSurnames, 26, SpringLayout.SOUTH,\n\t\t\t\tlblNombreCliente);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.WEST, lblSurnames, 0, SpringLayout.WEST, lblCod);\n\t\tlblSurnames.setFont(new Font(\"SansSerif\", Font.PLAIN, 15));\n\t\tclientDataPanelLeft.add(lblSurnames);\n\n\t\ttxtSurnames = new JTextField();\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.NORTH, txtSurnames, -3, SpringLayout.NORTH, lblSurnames);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.WEST, txtSurnames, 0, SpringLayout.WEST, txtCod);\n\t\ttxtSurnames.setFont(new Font(\"SansSerif\", Font.PLAIN, 15));\n\t\ttxtSurnames.setColumns(10);\n\t\tclientDataPanelLeft.add(txtSurnames);\n\n\t\tJLabel lblDni = new JLabel(\"DNI:\");\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.NORTH, lblDni, 26, SpringLayout.SOUTH, lblSurnames);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.WEST, lblDni, 0, SpringLayout.WEST, lblCod);\n\t\tlblDni.setFont(new Font(\"SansSerif\", Font.PLAIN, 15));\n\t\tclientDataPanelLeft.add(lblDni);\n\n\t\ttxtDni = new JTextField();\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.NORTH, txtDni, -3, SpringLayout.NORTH, lblDni);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.WEST, txtDni, 0, SpringLayout.WEST, txtCod);\n\t\ttxtDni.setFont(new Font(\"SansSerif\", Font.PLAIN, 15));\n\t\ttxtDni.setColumns(10);\n\t\tclientDataPanelLeft.add(txtDni);\n\n\t\t// Añadir Jlabel y JText para los distintos datos del ciente\n\t\tJLabel lblTelephone = new JLabel(\"Teléfono:\");\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.NORTH, lblTelephone, 26, SpringLayout.SOUTH, lblDni);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.WEST, lblTelephone, 0, SpringLayout.WEST, lblCod);\n\t\tlblTelephone.setFont(new Font(\"SansSerif\", Font.PLAIN, 15));\n\t\tclientDataPanelLeft.add(lblTelephone);\n\n\t\ttxtTelephone = new JTextField();\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.NORTH, txtTelephone, -3, SpringLayout.NORTH, lblTelephone);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.WEST, txtTelephone, 0, SpringLayout.WEST, txtCod);\n\t\ttxtTelephone.setFont(new Font(\"SansSerif\", Font.PLAIN, 15));\n\t\ttxtTelephone.setColumns(10);\n\t\tclientDataPanelLeft.add(txtTelephone);\n\n\t\tJPanel clientDataPanelRight = new JPanel();\n\t\tclientDataPanel.add(clientDataPanelRight);\n\n\t\tJPanel bottonPanel = new JPanel();\n\t\tGridBagConstraints gbc_botonPanel = new GridBagConstraints();\n\t\tgbc_botonPanel.fill = GridBagConstraints.BOTH;\n\t\tgbc_botonPanel.gridx = 0;\n\t\tgbc_botonPanel.gridy = 2;\n\t\tmainPanel.add(bottonPanel, gbc_botonPanel);\n\t\tbottonPanel.setLayout(new FlowLayout(1, 250, 100));\n\n\t\t// Botones\n\t\tbackButton = new JButton(\"Volver al menú\");\n\t\tbackButton.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tbackButton.setFont(new Font(\"SansSerif\", Font.BOLD, 15));\n\t\tbackButton.setBackground(new Color(244, 162, 97));\n\t\tbackButton.setForeground(Color.WHITE);\n\t\tbottonPanel.add(backButton);\n\n\t\tregisterButton = new JButton(\"Añadir cliente\");\n\t\tregisterButton.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tregisterButton.setFont(new Font(\"SansSerif\", Font.BOLD, 15));\n\t\tregisterButton.setBackground(new Color(231, 111, 81));\n\t\tregisterButton.setForeground(Color.WHITE);\n\t\tbottonPanel.add(registerButton);\n\n\t}", "private void geometry()\n\t\t{\n\t\tjLabelNickName = new JLabel(\"Pseudo: \");\n\t\tjLabelPort = new JLabel(\"Port: \");\n\t\tjNickname = new JTextField();\n\t\tjIPLabel = new JIPLabel();\n\t\tjIP = new JTextField();\n\t\tjPort = new JSpinner();\n\t\tjButtonConnection = new JButton(\"Connexion\");\n\n\t\tthis.setLayout(new GridLayout(-1, 1));\n\n\t\tthis.add(jLabelNickName);\n\t\tthis.add(jNickname);\n\t\tthis.add(jIPLabel);\n\t\tthis.add(jIP);\n\t\tthis.add(jLabelPort);\n\t\tthis.add(jPort);\n\t\tthis.add(Box.createVerticalStrut(SPACE));\n\t\tthis.add(jButtonConnection);\n\t\tthis.add(Box.createVerticalGlue());\n\t\t}", "private void $$$setupUI$$$() {\n mainPanel = new JPanel();\n mainPanel.setLayout(new GridLayoutManager(5, 2, new Insets(0, 0, 0, 0), -1, -1));\n usernameField = new JTextField();\n usernameField.setText(\"username\");\n mainPanel.add(usernameField, new GridConstraints(1, 0, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final Spacer spacer1 = new Spacer();\n mainPanel.add(spacer1, new GridConstraints(4, 0, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n passwordField = new JPasswordField();\n passwordField.setText(\"password\");\n mainPanel.add(passwordField, new GridConstraints(2, 0, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n loginButton = new JButton();\n loginButton.setText(\"Login\");\n mainPanel.add(loginButton, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final Spacer spacer2 = new Spacer();\n mainPanel.add(spacer2, new GridConstraints(0, 0, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n singupButton = new JButton();\n singupButton.setText(\"SignUp\");\n mainPanel.add(singupButton, new GridConstraints(3, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "public MainExonCorPanel() {\n initComponents();\n errorsp.setVisible(false);\n jSplitPane1.setDividerLocation(0);\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tLoginPanel back;\n\t\t\t\ttry {\n\t\t\t\t\tback = new LoginPanel();\n\t\t\t\t\tJFrame frame = (JFrame) getTopLevelAncestor();\n\t\t\t\t\tframe.setContentPane(back);\n\t\t\t\t\tframe.repaint();\n\t\t\t\t\tframe.printAll(frame.getGraphics());\n\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\n\t\t\t}", "@Override\n\tpublic void constructContent() {\n\t\t((JPanel)withdrawFrame.getContentPane()).setBorder(BorderFactory.createEmptyBorder(50,50,50,50));\n\t\tContainer defaultPanel = withdrawFrame.getContentPane();\n\t\tdefaultPanel.setLayout(new BorderLayout());\n\t\tJPanel subPanel1 = new JPanel();\n\t\tJLabel money = new JLabel(\"Number:\");\n\t\tsubPanel1.add(money);\n\t\tdefaultPanel.add(subPanel1, BorderLayout.NORTH);\n\t\tJPanel subPanel2 = new JPanel();\n\t\tsubPanel2.setBorder(BorderFactory.createEmptyBorder(80,50,50,50));\n\t\twithdrawMoney = new JTextField();\n\t\twithdrawMoney.setPreferredSize(new Dimension(350, 50));\n\t\tsubPanel2.add(withdrawMoney);\n\t\tdefaultPanel.add(subPanel2, BorderLayout.CENTER);\n\t\tJPanel subPanel3 = new JPanel();\n\t\tconfirmButton = new JButton(\"Confirm\");\n\t\tbackButton = new JButton(\"Back\");\n\t\tconfirmButton.setPreferredSize(new Dimension(200, 50));\n\t\tbackButton.setPreferredSize(new Dimension(200,50));\n\t\tconfirmButton.addActionListener(this);\n\t\tbackButton.addActionListener(this);\n\t\tsubPanel3.add(confirmButton);\n\t\tsubPanel3.add(backButton);\n\t\tdefaultPanel.add(subPanel3, BorderLayout.SOUTH);\n\t\t//moneyNum.\n\t}", "private void $$$setupUI$$$() {\n panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(5, 5, new Insets(5, 5, 5, 5), -1, -1));\n final JLabel label1 = new JLabel();\n label1.setText(\"Client\");\n panel1.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label2 = new JLabel();\n label2.setText(\"Server\");\n panel1.add(label2, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JScrollPane scrollPane1 = new JScrollPane();\n panel1.add(scrollPane1, new GridConstraints(1, 0, 1, 5, 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 textArea1 = new JTextArea();\n textArea1.setText(\"\");\n scrollPane1.setViewportView(textArea1);\n final JScrollPane scrollPane2 = new JScrollPane();\n panel1.add(scrollPane2, new GridConstraints(3, 0, 1, 5, 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 textArea2 = new JTextArea();\n scrollPane2.setViewportView(textArea2);\n closeButton = new JButton();\n closeButton.setText(\"Close\");\n panel1.add(closeButton, new GridConstraints(4, 4, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "private void createCentralPanel() {\n JPanel panelCenter = new JPanel(new BorderLayout());\n JPanel panelSouth = new JPanel();\n \n JPanel panelLabel = new JPanel();\n JLabel jlBlackjack = new JLabel(\"BLACKJACK\");\n jlBlackjack.setFont(new Font(\"Serif\", Font.BOLD, 25));\n jlBlackjack.setForeground(new Color(0xffffdd));\n panelLabel.add(jlBlackjack);\n \n panelLabel.setBackground(new Color(0,153,0));\n panelSouth.setBackground(new Color(0,153,0));\n panelSouth.add(createStandButton());\n panelSouth.add(createScoreLabel());\n panelSouth.add(createBudgetLabel());\n panelSouth.add(createHitMeButton());\n panelCenter.add(panelLabel, BorderLayout.CENTER);\n \n panelCenter.add(panelSouth, BorderLayout.SOUTH);\n this.getContentPane().add(panelCenter);\n panelCenter.setBackground(new Color(0,153,0));\n }" ]
[ "0.62831175", "0.60872203", "0.5942663", "0.59363616", "0.59353006", "0.5913012", "0.5884627", "0.5861364", "0.5858017", "0.5840587", "0.5830624", "0.58013445", "0.57704353", "0.57212985", "0.57171774", "0.57163936", "0.5696023", "0.56919956", "0.5686218", "0.5664526", "0.5596885", "0.558819", "0.55733156", "0.5570072", "0.5545036", "0.5534033", "0.5516531", "0.5514116", "0.55135125", "0.55030966", "0.5501981", "0.5500316", "0.548832", "0.54816693", "0.5474605", "0.5466751", "0.5466276", "0.54652876", "0.54632735", "0.54618335", "0.54468286", "0.5443166", "0.5442897", "0.5440863", "0.54407346", "0.54393", "0.54390097", "0.5436571", "0.54356384", "0.5434958", "0.5430163", "0.5424561", "0.5421633", "0.54182076", "0.54079455", "0.5395219", "0.539386", "0.53932154", "0.53929216", "0.53900844", "0.5389202", "0.538821", "0.53755146", "0.53743136", "0.5371571", "0.536543", "0.53601277", "0.5360038", "0.53599674", "0.5359367", "0.5355153", "0.534938", "0.5348235", "0.53472644", "0.5343859", "0.53425664", "0.534018", "0.53374714", "0.5336274", "0.5334088", "0.53285754", "0.5327933", "0.5327875", "0.5327198", "0.5325174", "0.53216386", "0.5318878", "0.53172815", "0.53158385", "0.5315556", "0.5313514", "0.53114814", "0.5306656", "0.5298661", "0.5298162", "0.52937585", "0.52928", "0.52901024", "0.5288972", "0.5286359" ]
0.5906558
6
Interface class of DeviceStatus. Created by Nanan on 3/4/2015.
public interface DeviceStatusEPSProvider { /** * Call recalculation before get the device status * @return Device status info. Should check {@link DeviceStatusEPS#statusCalculatedSuccessfully} before use */ DeviceStatusEPS calculateDeviceStatus(); boolean init(Context context); boolean providerFinalize(); /** * Get the saved device status without recalculation * @return Device status info. Should check {@link DeviceStatusEPS#statusCalculatedSuccessfully} before use */ DeviceStatusEPS getDeviceStatus(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Status getDeviceStatus() {\n return mDeviceStatus;\n }", "public void newDeviceStatus(String deviceId, Boolean statusOK);", "@Override\r\n public void onDeviceStatusChange(GenericDevice dev, PDeviceHolder devh,\r\n PHolderSetter status) {\n\r\n }", "default public int getStatusFromDevicePort()\t\t\t{ return 2223; }", "public interface StatusCodes\n{\n\n// ----------------------------------------------------------------------------\n// Reserved status codes: [E0-00 through FF-FF]\n// Groups:\n// 0xF0.. - Generic\n// 0xF1.. - Motion\n// 0xF2.. - Geofence\n// 0xF4.. - Digital input/output\n// 0xF6.. - Sensor input\n// 0xF7.. - Temperature input\n// 0xF9.. - J1708\n// 0xFD.. - Device status\n// ----------------------------------------------------------------------------\n\n// ----------------------------------------------------------------------------\n// No status code: 0x0000\n\n public static final int STATUS_NONE = 0x0000;\n\n// ----------------------------------------------------------------------------\n// Generic codes: 0xF000 to 0xF0FF\n\n public static final int STATUS_INITIALIZED = 0xF010;\n // Description:\n // General Status/Location information (event generated by some\n // initialization function performed by the device).\n // Notes:\n // - This contents of the payload must at least contain the current\n // timestamp (and latitude and longitude if available).\n\n public static final int STATUS_LOCATION = 0xF020;\n // Description:\n // General Status/Location information. This status code indicates\n // no more than just the location of the device at a particular time.\n // Notes:\n // - This contents of the payload must at least contain the current\n // timestamp, latitude, and longitude.\n\n public static final int STATUS_WAYMARK = 0xF030;\n // Description:\n // General Status/Location information (event generated by manual user\n // intervention at the device. ie. By pressing a 'Waymark' button).\n // Notes:\n // - This contents of the payload must at least contain the current\n // timestamp, latitude, and longitude.\n\n public static final int STATUS_QUERY = 0xF040;\n // Description:\n // General Status/Location information (event generated by 'query'\n // from the server).\n // Notes:\n // - This contents of the payload must at least contain the current\n // timestamp, latitude, and longitude.\n\n// ----------------------------------------------------------------------------\n// Motion codes: 0xF100 to 0xF1FF\n\n public static final int STATUS_MOTION_START = 0xF111;\n // Description:\n // Device start of motion\n // Notes:\n // The definition of motion-start is provided by property PROP_MOTION_START\n\n public static final int STATUS_MOTION_IN_MOTION = 0xF112;\n // Description:\n // Device in-motion interval\n // Notes:\n // The in-motion interval is provided by property PROP_MOTION_IN_MOTION.\n // This status is typically used for providing in-motion events between\n // STATUS_MOTION_START and STATUS_MOTION_STOP events.\n\n public static final int STATUS_MOTION_STOP = 0xF113;\n // Description:\n // Device stopped motion\n // Notes:\n // The definition of motion-stop is provided by property PROP_MOTION_STOP\n\n public static final int STATUS_MOTION_DORMANT = 0xF114;\n // Description:\n // Device dormant interval (ie. not moving)\n // Notes:\n // The dormant interval is provided by property PROP_MOTION_DORMANT\n\n public static final int STATUS_MOTION_EXCESS_SPEED = 0xF11A;\n // Description:\n // Device exceeded preset speed limit\n // Notes:\n // The excess-speed threshold is provided by property PROP_MOTION_EXCESS_SPEED\n\n public static final int STATUS_MOTION_MOVING = 0xF11C;\n // Description:\n // Device is moving\n // Notes:\n // This status code may be used to indicating that the device was moving\n // at the time the event was generated. It is not typically associated\n // with the status codes STATUS_MOTION_START, STATUS_MOTION_STOP, and \n // STATUS_MOTION_IN_MOTION, and may be used independently of these codes.\n\n public static final int STATUS_ODOM_0 = 0xF130;\n public static final int STATUS_ODOM_1 = 0xF131;\n public static final int STATUS_ODOM_2 = 0xF132;\n public static final int STATUS_ODOM_3 = 0xF133;\n public static final int STATUS_ODOM_4 = 0xF134;\n public static final int STATUS_ODOM_5 = 0xF135;\n public static final int STATUS_ODOM_6 = 0xF136;\n public static final int STATUS_ODOM_7 = 0xF137;\n // Description:\n // Odometer value\n // Notes:\n // The odometer limit is provided by property PROP_ODOMETER_#_LIMIT\n\n public static final int STATUS_ODOM_LIMIT_0 = 0xF140;\n public static final int STATUS_ODOM_LIMIT_1 = 0xF141;\n public static final int STATUS_ODOM_LIMIT_2 = 0xF142;\n public static final int STATUS_ODOM_LIMIT_3 = 0xF143;\n public static final int STATUS_ODOM_LIMIT_4 = 0xF144;\n public static final int STATUS_ODOM_LIMIT_5 = 0xF145;\n public static final int STATUS_ODOM_LIMIT_6 = 0xF146;\n public static final int STATUS_ODOM_LIMIT_7 = 0xF147;\n // Description:\n // Odometer has exceeded a set limit\n // Notes:\n // The odometer limit is provided by property PROP_ODOMETER_#_LIMIT\n\n// ----------------------------------------------------------------------------\n// Geofence: 0xF200 to 0xF2FF\n\n public static final int STATUS_GEOFENCE_ARRIVE = 0xF210;\n // Description:\n // Device arrived at geofence\n // Notes:\n // - Client may wish to include FIELD_GEOFENCE_ID in the event packet.\n\n public static final int STATUS_GEOFENCE_DEPART = 0xF230;\n // Description:\n // Device departed geofence\n // Notes:\n // - Client may wish to include FIELD_GEOFENCE_ID in the event packet.\n\n public static final int STATUS_GEOFENCE_VIOLATION = 0xF250;\n // Description:\n // Geofence violation\n // Notes:\n // - Client may wish to include FIELD_GEOFENCE_ID in the event packet.\n\n public static final int STATUS_GEOFENCE_ACTIVE = 0xF270;\n // Description:\n // Geofence now active\n // Notes:\n // - Client may wish to include FIELD_GEOFENCE_ID in the event packet.\n\n public static final int STATUS_GEOFENCE_INACTIVE = 0xF280;\n // Description:\n // Geofence now inactive\n // Notes:\n // - Client may wish to include FIELD_GEOFENCE_ID in the event packet.\n\n// ----------------------------------------------------------------------------\n// Digital input/output (state change): 0xF400 to 0xF4FF\n\n public static final int STATUS_INPUT_STATE = 0xF400;\n // Description:\n // Current input ON state (bitmask)\n // Notes:\n // - Client should include FIELD_INPUT_STATE in the event packet,\n // otherwise this status code would have no meaning.\n\n public static final int STATUS_INPUT_ON = 0xF402;\n // Description:\n // Input turned ON\n // Notes:\n // - Client should include FIELD_INPUT_ID in the event packet,\n // otherwise this status code would have no meaning.\n // - This status code may be used to indicate that an arbitrary input\n // 'thing' turned ON, and the 'thing' can be identified by the 'Input ID'.\n // This 'ID' can also represent the index of a digital input.\n\n public static final int STATUS_INPUT_OFF = 0xF404;\n // Description:\n // Input turned OFF\n // Notes:\n // - Client should include FIELD_INPUT_ID in the event packet,\n // otherwise this status code would have no meaning.\n // - This status code may be used to indicate that an arbitrary input\n // 'thing' turned OFF, and the 'thing' can be identified by the 'Input ID'.\n // This 'ID' can also represent the index of a digital input.\n\n public static final int STATUS_OUTPUT_STATE = 0xF406;\n // Description:\n // Current output ON state (bitmask)\n // Notes:\n // - Client should include FIELD_OUTPUT_STATE in the event packet,\n // otherwise this status code would have no meaning.\n\n public static final int STATUS_OUTPUT_ON = 0xF408;\n // Description:\n // Output turned ON\n // Notes:\n // - Client should include FIELD_OUTPUT_ID in the event packet,\n // otherwise this status code would have no meaning.\n // - This status code may be used to indicate that an arbitrary output\n // 'thing' turned ON, and the 'thing' can be identified by the 'Output ID'.\n // This 'ID' can also represent the index of a digital output.\n\n public static final int STATUS_OUTPUT_OFF = 0xF40A;\n // Description:\n // Output turned OFF\n // Notes:\n // - Client should include FIELD_OUTPUT_ID in the event packet,\n // otherwise this status code would have no meaning.\n // - This status code may be used to indicate that an arbitrary output\n // 'thing' turned OFF, and the 'thing' can be identified by the 'Output ID'.\n // This 'ID' can also represent the index of a digital output.\n\n public static final int STATUS_INPUT_ON_00 = 0xF420;\n public static final int STATUS_INPUT_ON_01 = 0xF421;\n public static final int STATUS_INPUT_ON_02 = 0xF422;\n public static final int STATUS_INPUT_ON_03 = 0xF423;\n public static final int STATUS_INPUT_ON_04 = 0xF424;\n public static final int STATUS_INPUT_ON_05 = 0xF425;\n public static final int STATUS_INPUT_ON_06 = 0xF426;\n public static final int STATUS_INPUT_ON_07 = 0xF427;\n // Description:\n // Digital input state changed to ON\n\n public static final int STATUS_INPUT_OFF_00 = 0xF440;\n public static final int STATUS_INPUT_OFF_01 = 0xF441;\n public static final int STATUS_INPUT_OFF_02 = 0xF442;\n public static final int STATUS_INPUT_OFF_03 = 0xF443;\n public static final int STATUS_INPUT_OFF_04 = 0xF444;\n public static final int STATUS_INPUT_OFF_05 = 0xF445;\n public static final int STATUS_INPUT_OFF_06 = 0xF446;\n public static final int STATUS_INPUT_OFF_07 = 0xF447;\n // Description:\n // Digital input state changed to OFF\n\n public static final int STATUS_OUTPUT_ON_00 = 0xF460;\n public static final int STATUS_OUTPUT_ON_01 = 0xF461;\n public static final int STATUS_OUTPUT_ON_02 = 0xF462;\n public static final int STATUS_OUTPUT_ON_03 = 0xF463;\n public static final int STATUS_OUTPUT_ON_04 = 0xF464;\n public static final int STATUS_OUTPUT_ON_05 = 0xF465;\n public static final int STATUS_OUTPUT_ON_06 = 0xF466;\n public static final int STATUS_OUTPUT_ON_07 = 0xF467;\n // Description:\n // Digital output state set to ON\n\n public static final int STATUS_OUTPUT_OFF_00 = 0xF480;\n public static final int STATUS_OUTPUT_OFF_01 = 0xF481;\n public static final int STATUS_OUTPUT_OFF_02 = 0xF482;\n public static final int STATUS_OUTPUT_OFF_03 = 0xF483;\n public static final int STATUS_OUTPUT_OFF_04 = 0xF484;\n public static final int STATUS_OUTPUT_OFF_05 = 0xF485;\n public static final int STATUS_OUTPUT_OFF_06 = 0xF486;\n public static final int STATUS_OUTPUT_OFF_07 = 0xF487;\n // Description:\n // Digital output state set to OFF\n\n public static final int STATUS_ELAPSED_00 = 0xF4A0;\n public static final int STATUS_ELAPSED_01 = 0xF4A1;\n public static final int STATUS_ELAPSED_02 = 0xF4A2;\n public static final int STATUS_ELAPSED_03 = 0xF4A3;\n public static final int STATUS_ELAPSED_04 = 0xF4A4;\n public static final int STATUS_ELAPSED_05 = 0xF4A5;\n public static final int STATUS_ELAPSED_06 = 0xF4A6;\n public static final int STATUS_ELAPSED_07 = 0xF4A7;\n // Description:\n // Elapsed time\n // Notes:\n // - Client should include FIELD_ELAPSED_TIME in the event packet,\n // otherwise this status code would have no meaning.\n\n public static final int STATUS_ELAPSED_LIMIT_00 = 0xF4B0;\n public static final int STATUS_ELAPSED_LIMIT_01 = 0xF4B1;\n public static final int STATUS_ELAPSED_LIMIT_02 = 0xF4B2;\n public static final int STATUS_ELAPSED_LIMIT_03 = 0xF4B3;\n public static final int STATUS_ELAPSED_LIMIT_04 = 0xF4B4;\n public static final int STATUS_ELAPSED_LIMIT_05 = 0xF4B5;\n public static final int STATUS_ELAPSED_LIMIT_06 = 0xF4B6;\n public static final int STATUS_ELAPSED_LIMIT_07 = 0xF4B7;\n // Description:\n // Elapsed timer has exceeded a set limit\n // Notes:\n // - Client should include FIELD_ELAPSED_TIME in the event packet,\n // otherwise this status code would have no meaning.\n\n// ----------------------------------------------------------------------------\n// Analog/etc sensor values (extra data): 0xF600 to 0xF6FF\n\n public static final int STATUS_SENSOR32_0 = 0xF600;\n public static final int STATUS_SENSOR32_1 = 0xF601;\n public static final int STATUS_SENSOR32_2 = 0xF602;\n public static final int STATUS_SENSOR32_3 = 0xF603;\n public static final int STATUS_SENSOR32_4 = 0xF604;\n public static final int STATUS_SENSOR32_5 = 0xF605;\n public static final int STATUS_SENSOR32_6 = 0xF606;\n public static final int STATUS_SENSOR32_7 = 0xF607;\n // Description:\n // 32-bit unsigned sensor value\n // Notes:\n // - Client should include FIELD_SENSOR32 in the event packet,\n // otherwise this status code would have no meaning.\n // - The server must be able to convert this 32-bit value to something\n // meaningful to the user. This can be done using the following formula:\n // Actual_Value = ((double)Sensor32_Value * <Gain>) + <Offset>;\n // Where <Gain> & <Offset> are user configurable values provided at setup.\n // For instance: Assume Sensor32-0 contains a temperature value that can\n // have a range of -40.0C to +125.0C. The client would encode -14.7C\n // by adding 40.0 and multiplying by 10.0. The resulting value would be\n // 253. The server would then be configured to know how to convert this\n // value back into the proper temperature using the above formula by\n // substituting 0.1 for <Gain>, and -40.0 for <Offset>: eg.\n // -14.7 = ((double)253 * 0.1) + (-40.0);\n\n public static final int STATUS_SENSOR32_RANGE_0 = 0xF620;\n public static final int STATUS_SENSOR32_RANGE_1 = 0xF621;\n public static final int STATUS_SENSOR32_RANGE_2 = 0xF622;\n public static final int STATUS_SENSOR32_RANGE_3 = 0xF623;\n public static final int STATUS_SENSOR32_RANGE_4 = 0xF624;\n public static final int STATUS_SENSOR32_RANGE_5 = 0xF625;\n public static final int STATUS_SENSOR32_RANGE_6 = 0xF626;\n public static final int STATUS_SENSOR32_RANGE_7 = 0xF627;\n // Description:\n // 32-bit unsigned sensor value out-of-range violation\n // Notes:\n // - Client should include FIELD_SENSOR32 in the event packet,\n // otherwise this status code would have no meaning.\n\n// ----------------------------------------------------------------------------\n// Temperature sensor values (extra data): 0xF700 to 0xF7FF\n\n public static final int STATUS_TEMPERATURE_0 = 0xF710;\n public static final int STATUS_TEMPERATURE_1 = 0xF711;\n public static final int STATUS_TEMPERATURE_2 = 0xF712;\n public static final int STATUS_TEMPERATURE_3 = 0xF713;\n public static final int STATUS_TEMPERATURE_4 = 0xF714;\n public static final int STATUS_TEMPERATURE_5 = 0xF715;\n public static final int STATUS_TEMPERATURE_6 = 0xF716;\n public static final int STATUS_TEMPERATURE_7 = 0xF717;\n // Description:\n // Temperature value\n // Notes:\n // - Client should include at least the field FIELD_TEMP_AVER in the \n // event packet, and may also wish to include FIELD_TEMP_LOW and\n // FIELD_TEMP_HIGH.\n\n public static final int STATUS_TEMPERATURE_RANGE_0 = 0xF730;\n public static final int STATUS_TEMPERATURE_RANGE_1 = 0xF731;\n public static final int STATUS_TEMPERATURE_RANGE_2 = 0xF732;\n public static final int STATUS_TEMPERATURE_RANGE_3 = 0xF733;\n public static final int STATUS_TEMPERATURE_RANGE_4 = 0xF734;\n public static final int STATUS_TEMPERATURE_RANGE_5 = 0xF735;\n public static final int STATUS_TEMPERATURE_RANGE_6 = 0xF736;\n public static final int STATUS_TEMPERATURE_RANGE_7 = 0xF737;\n // Description:\n // Temperature value out-of-range [low/high/average]\n // Notes:\n // - Client should include at least one of the fields FIELD_TEMP_AVER,\n // FIELD_TEMP_LOW, or FIELD_TEMP_HIGH.\n\n public static final int STATUS_TEMPERATURE = 0xF7F1;\n // Description:\n // All temperature averages [aver/aver/aver/...]\n\n// ----------------------------------------------------------------------------\n// Miscellaneous\n\n public static final int STATUS_LOGIN = 0xF811;\n // Description:\n // Generic 'login'\n\n public static final int STATUS_LOGOUT = 0xF812;\n // Description:\n // Generic 'logout'\n\n public static final int STATUS_CONNECT = 0xF821;\n // Description:\n // Connect/Hook/On\n\n public static final int STATUS_DISCONNECT = 0xF822;\n // Description:\n // Disconnect/Drop/Off\n\n public static final int STATUS_ACK = 0xF831;\n // Description:\n // Acknowledge\n\n public static final int STATUS_NAK = 0xF832;\n // Description:\n // Negative Acknowledge\n\n// ----------------------------------------------------------------------------\n// Internal device status\n\n public static final int STATUS_LOW_BATTERY = 0xFD10;\n // Description:\n // Low battery indicator\n\n public static final int STATUS_POWER_FAILURE = 0xFD13;\n // Description:\n // Power failure indicator\n\n// ----------------------------------------------------------------------------\n \n}", "public interface SIRunningStatus\n{\n /** Constant value for the running status as specified in EN 300 468\n */\n public static final byte UNDEFINED = 0;\n \n /** Constant value for the running status as specified in EN 300 468\n */\n public static final byte NOT_RUNNING = 1;\n \n /** Constant value for the running status as specified in EN 300 468\n */\n public static final byte STARTS_IN_A_FEW_SECONDS = 2;\n \n /** Constant value for the running status as specified in EN 300 468\n */\n public static final byte PAUSING = 3;\n \n /** Constant value for the running status as specified in EN 300 468\n */\n public static final byte RUNNING = 4;\n}", "@Override\n\tpublic int getStatus();", "@Override\n\tpublic int getStatus();", "public Status getStatus();", "public Boolean getStatus() {return status;}", "public interface StatusCapable\n{\n /**\n * Get the status of the object.\n * @return\n * the status of the object\n */\n SummaryStatusEnum getSummaryStatus();\n}", "public interface PushStatus\n {\n /**\n * not receive\n */\n String NOT_RECEIVE = \"0\";\n\n /**\n * receive\n */\n String RECEIVE = \"1\";\n }", "com.polytech.spik.protocol.SpikMessages.Status getStatus();", "com.polytech.spik.protocol.SpikMessages.Status getStatus();", "public int getStatus();", "public int getStatus();", "public int getStatus();", "public abstract String currentStatus();", "public short getStatus()\r\n {\r\n return statusObj.getValue();\r\n }", "@GET\n @Path(\"/status\")\n @Produces(MediaType.TEXT_PLAIN)\n public String status() {\n Device device = getDevice();\n try {\n StreamingSession session = transportService.getSession(device.getId());\n return \"Status device:[\" + device.getId() + \"]\" + \" session [\" + session.toString() + \"]\";\n } catch (UnknownSessionException e) {\n return e.getMessage();\n }\n }", "public interface IStatus\n{\n\t/**\n\t * Nastav status programu.\n\t */\n\tpublic void setStatus(String status, int id);\n\t\n\t/**\n\t * Aky je aktualny / posledny status ?\n\t * @return\n\t */\n\tpublic int getStatus();\n}", "DeviceState createDeviceState();", "public EnumSet<DeviceStatus> getDeviceStatus() throws FTD2XXException {\n IntByReference modstat = new IntByReference();\n ensureFTStatus(ftd2xx.FT_GetModemStatus(ftHandle, modstat));\n return DeviceStatus.parseToEnumset(modstat.getValue());\n }", "@Override\n public String localStatus(DeviceId deviceId) {\n return null;\n }", "public abstract OnlineStatus getStatus();", "public Byte getStatus() {\r\n return status;\r\n }", "public Byte getStatus() {\r\n return status;\r\n }", "public Byte getStatus() {\r\n return status;\r\n }", "public Byte getStatus() {\r\n return status;\r\n }", "public Byte getStatus() {\r\n return status;\r\n }", "public Byte getStatus() {\r\n return status;\r\n }", "public Byte getStatus() {\r\n return status;\r\n }", "Integer getStatus();", "public StatusEnum getStatus()\n {\n return status;\n }", "public Short getStatus() {\n return status;\n }", "public java.lang.Object getStatus() {\n return status;\n }", "public int getStatus()\r\n {\r\n return mStatus;\r\n }", "@DISPID(15)\n\t// = 0xf. The runtime will prefer the VTID if present\n\t@VTID(25)\n\tjava.lang.String status();", "public int getStatus(){\r\n\t\treturn this.status;\r\n\t}", "OperationStatusType status();", "private void sendDeviceStatus() {\n if (hasRecover && zWaveSubDevice != null) {\n ZWaveDeviceEvent zde = new ZWaveDeviceEvent();\n try {\n PropertyUtils.copyProperties(zde, zWaveSubDevice.getZwavedevice());\n } catch (Exception e) {\n log.error(e.getMessage(), e);\n }\n zde.setReport(zrb.getReport());\n zde.setEventtime(new Date());\n\n JMSUtil.sendmessage(IRemoteConstantDefine.WARNING_TYPE_DEVICE_STATUS, zde);\n }\n }", "public Short getStatus() {\n\t\treturn status;\n\t}", "public int getStatus ()\n {\n return status;\n }", "public int getStatus ()\n {\n return status;\n }", "public Byte getStatus() {\n return status;\n }", "public Byte getStatus() {\n return status;\n }", "public Byte getStatus() {\n return status;\n }", "public Byte getStatus() {\n return status;\n }", "public Byte getStatus() {\n return status;\n }", "public Byte getStatus() {\n return status;\n }", "public Byte getStatus() {\n return status;\n }", "public Byte getStatus() {\n return status;\n }", "public Byte getStatus() {\n return status;\n }", "public Byte getStatus() {\n return status;\n }", "public Byte getStatus() {\n return status;\n }", "public Byte getStatus() {\n return status;\n }", "public Byte getStatus() {\n return status;\n }", "public IntegratedAvirUpdateStatus() {\n \n }", "@Override\n public com.gensym.util.Symbol getItemStatus() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SystemAttributeSymbols.ITEM_STATUS_);\n return (com.gensym.util.Symbol)retnValue;\n }", "public Byte getStatus() {\r\n\t\treturn status;\r\n\t}", "public String getStatus(){\n return this.registerStatus;\n }", "public Integer getStatus() {\r\n return status;\r\n }", "public Integer getStatus() {\r\n return status;\r\n }", "public Status getStatus() {\r\n\t return status;\r\n\t }", "public RegisterStatus() {\n registerStatus=NOT_REGISTERED;\n }", "public short getStatus() {\r\n return this.status;\r\n }", "public int getStatus()\n {\n return status;\n }", "int getStatus();", "int getStatus();", "int getStatus();", "int getStatus();", "int getStatus();", "int getStatus();", "int getStatus();", "int getStatus();", "int getStatus();", "int getStatus();", "int getStatus();", "public int getCBRStatus();", "public interface Status {\n\n public void setArchived(Character archived);\n\n public Character getArchived();\n\n public boolean isActive();\n\n}", "@java.lang.Override\n public int getStatus() {\n return status_;\n }", "public EnumVar getStatus() {\n return status;\n }", "public Status getStatus(){\n return status;\n }", "public Byte getStatus() {\n\t\treturn status;\n\t}", "public Byte getStatus() {\n\t\treturn status;\n\t}", "@java.lang.Override\n public int getStatus() {\n return status_;\n }", "public StatusEnum getStatus() {\n return status;\n }", "public Status(){\n this(StatusDescription.REGISTERED);\n }", "public Status getStatus()\n {\n return status;\n }", "public final Status getStatus() {\n/* 199 */ return this.status;\n/* */ }", "boolean getStatus();", "boolean getStatus();", "boolean getStatus();", "public Byte getUserStatus() {\r\n return userStatus;\r\n }", "@Override\n public Status getStatus() {\n return status;\n }", "public Status getStatus() {\r\n return status;\r\n }", "public String getUiStatus() {\n\t\tif (switchInfo.getType().compareTo(\"thermostat\") == 0) {\r\n\t\t\ttry {\r\n\t\t\t\tDouble tmp = new Double((String) myISY.getCurrValue(myISY.getNodes().get(switchInfo.getSwitchAddress()),\r\n\t\t\t\t\t\tInsteonConstants.DEVICE_STATUS));\r\n\t\t\t\ttmp = tmp / 2;\r\n\t\t\t\treturn tmp.toString();\r\n\t\t\t} catch (NoDeviceException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (NullPointerException e) {\r\n\t\t\t}\r\n\t\t} else if ((switchInfo.getType().compareTo(\"light\") == 0)\r\n\t\t\t\t|| (switchInfo.getType().compareTo(\"circulator\") == 0)) {\r\n\t\t\ttry {\r\n\t\t\t\tDouble tmp = new Double((String) myISY.getCurrValue(myISY.getNodes().get(switchInfo.getSwitchAddress()),\r\n\t\t\t\t\t\tInsteonConstants.DEVICE_STATUS));\r\n\t\t\t\ttmp = tmp / 255 * 100;\r\n\t\t\t\tif (tmp == 0)\r\n\t\t\t\t\treturn \"OFF\";\r\n\t\t\t\telse if (tmp == 100)\r\n\t\t\t\t\treturn \"ON\";\r\n\t\t\t\treturn \"ON \" + tmp + \"%\";\r\n\t\t\t} catch (NoDeviceException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (NullPointerException e) {\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn \"\";\r\n\t}", "public int getStatus() {\n return mStatus;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }" ]
[ "0.7560063", "0.6766958", "0.673037", "0.6674297", "0.6586524", "0.6542217", "0.6465917", "0.6465917", "0.63822585", "0.6357549", "0.6322756", "0.63115275", "0.6304438", "0.6304438", "0.6301686", "0.6301686", "0.6301686", "0.6292739", "0.6275976", "0.62358904", "0.6218708", "0.62180734", "0.6215821", "0.62148285", "0.6213483", "0.62101257", "0.62101257", "0.62101257", "0.62101257", "0.62101257", "0.62101257", "0.62101257", "0.61979324", "0.6190216", "0.61885136", "0.61798483", "0.61646575", "0.616341", "0.6160643", "0.61514115", "0.61489373", "0.6144172", "0.61439145", "0.61439145", "0.61429673", "0.61429673", "0.61429673", "0.61429673", "0.61429673", "0.61429673", "0.61429673", "0.61429673", "0.61429673", "0.61429673", "0.61429673", "0.61429673", "0.61429673", "0.6121827", "0.6094043", "0.6080862", "0.6069963", "0.6065013", "0.6065013", "0.6064241", "0.60639626", "0.60635406", "0.605648", "0.60547686", "0.60547686", "0.60547686", "0.60547686", "0.60547686", "0.60547686", "0.60547686", "0.60547686", "0.60547686", "0.60547686", "0.60547686", "0.6052662", "0.6042649", "0.6035387", "0.6034378", "0.60342485", "0.6031525", "0.6031525", "0.6030093", "0.6021157", "0.602061", "0.6015954", "0.6012861", "0.6009097", "0.6009097", "0.6009097", "0.60090834", "0.60078734", "0.60043985", "0.5998157", "0.59939957", "0.59919006", "0.59919006" ]
0.6264034
19
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() { jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jLabel6 = new javax.swing.JLabel(); jLabel7 = new javax.swing.JLabel(); jLabel8 = new javax.swing.JLabel(); jLabel9 = new javax.swing.JLabel(); jtfNombre = new javax.swing.JTextField(); jtfApellido = new javax.swing.JTextField(); jtfIdentificacion = new javax.swing.JTextField(); jtfSalario = new javax.swing.JTextField(); jtfPension = new javax.swing.JTextField(); jtfSalud = new javax.swing.JTextField(); jtfBanco = new javax.swing.JTextField(); jtfCuenta = new javax.swing.JTextField(); jScrollPane1 = new javax.swing.JScrollPane(); jtbEmpleados = new javax.swing.JTable(); jbtRegistrar = new javax.swing.JButton(); jbtActualizar = new javax.swing.JButton(); jLabel10 = new javax.swing.JLabel(); jtfCargo = new javax.swing.JTextField(); jbnLimpiar = new javax.swing.JButton(); jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel1.setText("Gestion Empleado"); jLabel2.setText("Nombre"); jLabel3.setText("Apellido"); jLabel4.setText("Identificacion"); jLabel5.setText("Salario Basico"); jLabel6.setText("Pension"); jLabel7.setText("Salud"); jLabel8.setText("Banco"); jLabel9.setText("Cuenta"); jtbEmpleados.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { }, new String [] { "Identificacion", "Nombre", "Apellido", "Cargo", "Salario Basico", "Pension", "Salud", "Banco", "Cuenta" } ) { boolean[] canEdit = new boolean [] { false, false, false, false, false, false, false, false, false }; public boolean isCellEditable(int rowIndex, int columnIndex) { return canEdit [columnIndex]; } }); jtbEmpleados.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jtbEmpleadosMouseClicked(evt); } }); jScrollPane1.setViewportView(jtbEmpleados); jbtRegistrar.setText("Registrar"); jbtRegistrar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jbtRegistrarActionPerformed(evt); } }); jbtActualizar.setText("Actualizar"); jbtActualizar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jbtActualizarActionPerformed(evt); } }); jLabel10.setText("Cargo"); jbnLimpiar.setText("Limpiar"); jbnLimpiar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jbnLimpiarActionPerformed(evt); } }); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane1) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addGap(0, 0, Short.MAX_VALUE) .addComponent(jbnLimpiar) .addGap(18, 18, 18) .addComponent(jbtActualizar) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jbtRegistrar)) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel1) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(jLabel4) .addGap(18, 18, 18) .addComponent(jtfIdentificacion, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(22, 22, 22) .addComponent(jLabel2) .addGap(18, 18, 18) .addComponent(jtfNombre, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(39, 39, 39) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel3) .addComponent(jLabel7) .addComponent(jLabel10))) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel5) .addComponent(jLabel8)) .addGap(18, 18, 18) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jtfSalario, javax.swing.GroupLayout.DEFAULT_SIZE, 152, Short.MAX_VALUE) .addComponent(jtfBanco)) .addGap(22, 22, 22) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(layout.createSequentialGroup() .addComponent(jLabel6) .addGap(18, 18, 18) .addComponent(jtfPension, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createSequentialGroup() .addComponent(jLabel9) .addGap(18, 18, 18) .addComponent(jtfCuenta, javax.swing.GroupLayout.PREFERRED_SIZE, 133, javax.swing.GroupLayout.PREFERRED_SIZE))))) .addGap(49, 49, 49) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jtfCargo, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jtfSalud, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jtfApellido, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addGap(0, 0, Short.MAX_VALUE))) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(jLabel1) .addGap(18, 18, 18) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel4) .addComponent(jtfIdentificacion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel2) .addComponent(jtfNombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel3) .addComponent(jtfApellido, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel6) .addComponent(jtfPension, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel7) .addComponent(jtfSalud, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jtfSalario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(jLabel5)) .addGap(18, 18, 18) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jtfCargo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel8) .addComponent(jtfBanco, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel9) .addComponent(jtfCuenta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel10))) .addGap(18, 18, 18) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jbtRegistrar) .addComponent(jbtActualizar) .addComponent(jbnLimpiar)) .addGap(18, 18, 18) .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 262, Short.MAX_VALUE) .addContainerGap()) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public Oddeven() {\n initComponents();\n }", "public intrebarea() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public kunde() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public MusteriEkle() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public frmVenda() {\n initComponents();\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public vpemesanan1() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.73191476", "0.72906625", "0.72906625", "0.72906625", "0.72860986", "0.7248112", "0.7213479", "0.72078276", "0.7195841", "0.71899796", "0.71840525", "0.7158498", "0.71477973", "0.7092748", "0.70800966", "0.70558053", "0.69871384", "0.69773406", "0.69548076", "0.69533914", "0.6944929", "0.6942576", "0.69355655", "0.6931378", "0.6927896", "0.69248974", "0.6924723", "0.69116884", "0.6910487", "0.6892381", "0.68921053", "0.6890637", "0.68896896", "0.68881863", "0.68826133", "0.68815064", "0.6881078", "0.68771756", "0.6875212", "0.68744373", "0.68711984", "0.6858978", "0.68558776", "0.6855172", "0.6854685", "0.685434", "0.68525875", "0.6851834", "0.6851834", "0.684266", "0.6836586", "0.6836431", "0.6828333", "0.68276715", "0.68262815", "0.6823921", "0.682295", "0.68167603", "0.68164384", "0.6809564", "0.68086857", "0.6807804", "0.6807734", "0.68067646", "0.6802192", "0.67943805", "0.67934304", "0.6791657", "0.6789546", "0.6789006", "0.67878324", "0.67877173", "0.6781847", "0.6765398", "0.6765197", "0.6764246", "0.6756036", "0.6755023", "0.6751404", "0.67508715", "0.6743043", "0.67387456", "0.6736752", "0.67356426", "0.6732893", "0.6726715", "0.6726464", "0.67196447", "0.67157453", "0.6714399", "0.67140275", "0.6708251", "0.6707117", "0.670393", "0.6700697", "0.66995865", "0.66989213", "0.6697588", "0.66939527", "0.66908985", "0.668935" ]
0.0
-1
Method that registers a user
public static void hentOgSkrivKostnader() { Connection con = getCon(); PreparedStatement prepStmt = null; ResultSet res = null; try { String query = "SELECT prosj_id, kunde, tekst, beløp FROM prosjekt JOIN prosjektkostnader USING(prosj_id) WHERE faktura_sendt IS NULL ORDER BY prosj_id, kunde;"; prepStmt = con.prepareStatement(query); res = prepStmt.executeQuery(); while (res.next()) { Tekstfil.skriv(res.getString("prosj_id") + "; " + res.getString("tekst") + "; " + res.getString("kunde") + "; " + res.getDouble("beløp") + "\n"); } /* String query2 = "UPDATE prosjektkostnader SET faktura_sendt=CURRENT_DATE() WHERE faktura_sendt IS NULL;"; prepStmt = con.prepareStatement(query2); prepStmt.executeUpdate(); */ } catch (SQLSyntaxErrorException e) { e.printStackTrace(); } catch (SQLException e) { e.printStackTrace(); } finally { closeConnection(con, prepStmt, null); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void register_user() {\n\n\t\tHttpRegister post = new HttpRegister();\n\t\tpost.execute(Config.URL + \"/api/newuser\");\n\n\t}", "void registerUser(User newUser);", "Boolean registerNewUser(User user);", "String registerUser(User user);", "private void registerUser()\n {\n /*AuthService.createAccount takes a Consumer<Boolean> where the result will be true if the user successfully logged in, or false otherwise*/\n authService.createAccount(entryService.extractText(namedFields), result -> {\n if (result.isEmpty()) {\n startActivity(new Intent(this, DashboardActivity.class));\n } else {\n makeToast(result);\n formContainer.setAlpha(1f);\n progressContainer.setVisibility(View.GONE);\n progressContainer.setOnClickListener(null);\n }\n });\n }", "private void registerUser() {\n\n // Get register name\n EditText mRegisterNameField = (EditText) findViewById(R.id.register_name_field);\n String nickname = mRegisterNameField.getText().toString();\n\n // Get register email\n EditText mRegisterEmailField = (EditText) findViewById(R.id.register_email_field);\n String email = mRegisterEmailField.getText().toString();\n\n // Get register password\n EditText mRegisterPasswordField = (EditText) findViewById(R.id.register_password_field);\n String password = mRegisterPasswordField.getText().toString();\n\n AccountCredentials credentials = new AccountCredentials(email, password);\n credentials.setNickname(nickname);\n\n if (DataHolder.getInstance().isAnonymous()) {\n credentials.setOldUsername(DataHolder.getInstance().getUser().getUsername());\n }\n\n sendRegistrationRequest(credentials);\n }", "public void register() {\n int index = requestFromList(getUserTypes(), true);\n if (index == -1) {\n guestPresenter.returnToMainMenu();\n return;\n }\n UserManager.UserType type;\n if (index == 0) {\n type = UserManager.UserType.ATTENDEE;\n } else if (index == 1) {\n type = UserManager.UserType.ORGANIZER;\n } else {\n type = UserManager.UserType.SPEAKER;\n }\n String name = requestString(\"name\");\n char[] password = requestString(\"password\").toCharArray();\n boolean vip = false;\n if(type == UserManager.UserType.ATTENDEE) {\n vip = requestBoolean(\"vip\");\n }\n List<Object> list = guestManager.register(type, name, password, vip);\n int id = (int)list.get(0);\n updater.addCredentials((byte[])list.get(1), (byte[])list.get(2));\n updater.addUser(id, type, name, vip);\n guestPresenter.printSuccessRegistration(id);\n }", "public long registerUserProfile(User user);", "public abstract User register(User data);", "User registration(User user);", "public void createUser(User user);", "public void registerUser(User user) throws UserManagementException;", "@Override\n\tpublic void regist(User user) {\n\t\tdao.addUser(user);\n\t}", "private void register(String username,String password){\n\n }", "@Override\n\tpublic void registerUser(SpaceUserVO spaceUserVO) throws Exception {\n\t\t\n\t}", "User register(String firstName, String lastName, String username, String email) throws UserNotFoundException, EmailExistException, UsernameExistsException, MessagingException;", "private void registerUserOnServer() throws IOException {\r\n\t\tdataSending.sendMessage(Server.REGISTER+\" \"+userName, Long.toString(userModel.ID));\r\n\t}", "@Override\n public void registerUser(User user) {\n userDAO.createUser(user);\n }", "public void createUser(User user) {\n\n\t}", "public void insertUser() {}", "@Override\r\n\tpublic int register(User user) {\n\t\treturn dao.addUser(user);\r\n\t}", "void regist(User user) throws SQLException;", "void addUser(User user);", "void addUser(User user);", "public void addUser(User user);", "public void Register() {\n Url url = new Url();\n User user = new User(fname.getText().toString(), lname.getText().toString(), username.getText().toString(), password.getText().toString());\n Call<Void> registerUser = url.createInstanceofRetrofit().addNewUser(user);\n registerUser.enqueue(new Callback<Void>() {\n @Override\n public void onResponse(Call<Void> call, Response<Void> response) {\n Toast.makeText(getActivity(), \"User Registered successfully\", Toast.LENGTH_SHORT).show();\n }\n\n @Override\n public void onFailure(Call<Void> call, Throwable t) {\n Toast.makeText(getActivity(), \"Error\" + t, Toast.LENGTH_SHORT).show();\n }\n });\n }", "String registerUserWithGetCurrentSession(User user);", "private void register(UserAuthenticationMessage uaMessage) {\n\t\tinitialize();\n\t\tUser newUser = uaMessage.getUser();\n\t\tHashMap<String, Boolean> dbInfo = DatabaseRequests.registerNewUser(newUser);\n\t\tcreateRegistrationAnswer(dbInfo.get(MIDs.EMAIL_EXISTS), dbInfo.get(MIDs.USER_EXISTS), dbInfo.get(MIDs.AUTHENTICATE));\n\t}", "public void registerUser(User newUser) {\r\n userRepo.save(newUser);\r\n }", "private void register() {\r\n if (mName.getText().length() == 0) {\r\n mName.setError(\"please fill this field\");\r\n return;\r\n }\r\n if (mEmail.getText().length() == 0) {\r\n mEmail.setError(\"please fill this field\");\r\n return;\r\n }\r\n if (mPassword.getText().length() == 0) {\r\n mPassword.setError(\"please fill this field\");\r\n return;\r\n }\r\n if (mPassword.getText().length() < 6) {\r\n mPassword.setError(\"password must have at least 6 characters\");\r\n return;\r\n }\r\n\r\n\r\n final String email = mEmail.getText().toString();\r\n final String password = mPassword.getText().toString();\r\n final String name = mName.getText().toString();\r\n\r\n FirebaseAuth.getInstance().createUserWithEmailAndPassword(email, password).addOnCompleteListener(getActivity(), new OnCompleteListener<AuthResult>() {\r\n @Override\r\n public void onComplete(@NonNull Task<AuthResult> task) {\r\n if (!task.isSuccessful()) {\r\n Snackbar.make(view.findViewById(R.id.layout), \"sign up error\", Snackbar.LENGTH_SHORT).show();\r\n } else {\r\n String uid = FirebaseAuth.getInstance().getCurrentUser().getUid();\r\n\r\n //Saves the user's info in the database\r\n Map<String, Object> mNewUserMap = new HashMap<>();\r\n mNewUserMap.put(\"email\", email);\r\n mNewUserMap.put(\"name\", name);\r\n\r\n FirebaseDatabase.getInstance().getReference().child(\"users\").child(uid).updateChildren(mNewUserMap);\r\n }\r\n }\r\n });\r\n\r\n }", "void registerNewUser(String login, String name, String password, String matchingPassword,\n String email);", "@Override\n public void performRegister(final String name, final String email, final String gender, final String password){\n\n mAuth.createUserWithEmailAndPassword(email.toLowerCase(),password)\n .addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n User user = new User();\n user.setName(name);\n user.setEmail(email.toLowerCase());\n user.setGender(gender);\n user.setPassword(password);\n FirebaseDatabase.getInstance().getReference(\"Users\")\n .child(FirebaseAuth.getInstance().getCurrentUser().getUid())\n .setValue(user).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if (task.isSuccessful()) {\n Toast.makeText(context, \"Authentication Success.\",\n Toast.LENGTH_LONG).show();\n view.redirectToLogin();\n } else {\n Toast.makeText(context, \"Authentication Failed.\",\n Toast.LENGTH_LONG).show();\n }\n }\n });\n } else {\n Log.w(TAG, \"createUserWithEmail:failure\", task.getException());\n Toast.makeText(context, \"Authentication failed.\",\n Toast.LENGTH_SHORT).show();\n }\n }\n });\n\n }", "private void registerUser(HttpServletRequest request, HttpServletResponse response){\n String firstName = request.getParameter(\"firstName\");\n String lastName = request.getParameter(\"lastName\");\n String address = request.getParameter(\"address\");\n String email = request.getParameter(\"email\");\n String shipAddress = request.getParameter(\"shipAddress\");\n int role = Integer.parseInt(request.getParameter(\"role\"));\n User user = new User(firstName,lastName,address,email,shipAddress,role);\n userServices.addUser(user);\n try {\n request.getRequestDispatcher(\"/home\").forward(request,response);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void register()\n {\n String n = nameProperty.getValue();\n if (n == null || n.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n String p = passwordProperty.getValue();\n if (p == null || p.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n String e = emailProperty.getValue();\n if (e == null || e.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n String ph = phoneProperty.getValue();\n if (ph == null || ph.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n if (ph.length() != 8)\n {\n throw new IllegalArgumentException(\"Invalid phone number\");\n }\n try\n {\n Integer.parseInt(ph);\n }\n catch (NumberFormatException ex)\n {\n throw new IllegalArgumentException(\"Invalid phone number\", ex);\n }\n String t = titleProperty.getValue();\n if (t == null || t.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n String a = authorProperty.getValue();\n if (a == null || a.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n String y = yearProperty.getValue();\n if (y == null || y.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n if (y.length() != 4)\n {\n throw new IllegalArgumentException(\"Invalid year\");\n }\n try\n {\n Integer.parseInt(y);\n }\n catch (NumberFormatException ex)\n {\n throw new IllegalArgumentException(\"Invalid year\", ex);\n }\n\n try\n {\n\n model.registerUser(n, p, e, ph, t, a, y);\n\n }\n catch (Exception e1)\n {\n\n e1.printStackTrace();\n }\n\n }", "public void registerUser(RegisterForm form) throws DAOException;", "public void newUser(User user);", "protected abstract void registerUser(Map<String, String> registrationInfo);", "@POST\n @Path(\"/users/register\")\n public Response register(\n @Context HttpServletRequest request \n ,@Context HttpServletResponse response\n ,@Context ServletContext servletContext\n ,String raw\n ){\n try{\n log.debug(\"/register called\");\n// String raw=IOUtils.toString(request.getInputStream());\n mjson.Json x=mjson.Json.read(raw);\n \n Database2 db=Database2.get();\n for (mjson.Json user:x.asJsonList()){\n String username=user.at(\"username\").asString();\n \n if (db.getUsers().containsKey(username))\n db.getUsers().remove(username); // remove so we can overwrite the user details\n \n Map<String, String> userInfo=new HashMap<String, String>();\n for(Entry<String, Object> e:user.asMap().entrySet())\n userInfo.put(e.getKey(), (String)e.getValue());\n \n userInfo.put(\"level\", LevelsUtil.get().getBaseLevel().getRight());\n userInfo.put(\"levelChanged\", new SimpleDateFormat(\"yyyy-MM-dd\").format(new Date()));// nextLevel.getRight());\n \n db.getUsers().put(username, userInfo);\n log.debug(\"New User Registered (via API): \"+Json.newObjectMapper(true).writeValueAsString(userInfo));\n db.getScoreCards().put(username, new HashMap<String, Integer>());\n \n db.addEvent(\"New User Registered (via API)\", username, \"\");\n }\n \n db.save();\n return Response.status(200).entity(\"{\\\"status\\\":\\\"DONE\\\"}\").build();\n }catch(IOException e){\n e.printStackTrace();\n return Response.status(500).entity(\"{\\\"status\\\":\\\"ERROR\\\",\\\"message\\\":\\\"\"+e.getMessage()+\"\\\"}\").build(); \n }\n \n }", "@Override\n\tpublic boolean registerUtente(Utente user) {\n\t\tif(!userExists(user)) {\n\t\t\tDB db = getDB();\n\t\t\tMap<Long, UtenteBase> users = db.getTreeMap(\"users\");\n\t\t\tlong hash = (long) user.getUsername().hashCode();\n\t\t\tusers.put(hash, user);\n\t\t\tdb.commit();\n\t\t\treturn true;\n\t\t} else\n\t\t\treturn false;\t\n\t}", "public void registerUser(String username, String password)\n {\n if(!spaceExists.spaceExists(SpaceUtils.getSpace()))\n {\n spaceExists.getSpaceExistsWarning(loginForm,\n \"\");\n }\n // check text fields are not blank\n if(StringUtils.isNotBlank(username) &&\n StringUtils.isNotBlank(password))\n {\n // Check length of password\n if(password.length() >= 6 &&\n password.length() <= 25)\n {\n // check username length\n if(username.length() >= 3 &&\n username.length() <= 20)\n {\n // continue\n String confirmDialogResponse = confirmPassword();\n\n// System.out.println(\"Dialog: \" + confirmDialogResponse);\n// System.out.println(\"Password: \"+password);\n if(password.equals(confirmDialogResponse))\n {\n // passwords match\n // save user to space\n try\n {\n // create new entry\n // encrypt password\n UserEntry user = new UserEntry();\n user.setUsername(username);\n user.setID(UUID.randomUUID());\n user.setSalt(CipherUtils.getSalt(30));\n user.setPassword(\n CipherUtils.generateSecurePassword(\n password, user.getSalt()));\n\n if(user.getSecureUsername().length() > 3)\n {\n // there are at least 3 non-special characters\n // create user\n if(userUtils.createUser(user) != null)\n {\n\n JOptionPane.showMessageDialog(loginForm,\n \"Welcome \" + user.getUsername() + \"!\");\n\n // remove loginForm\n loginForm.setVisible(false);\n loginForm.dispose();\n // Lease is renewed at every login\n userUtils.renewUserLease(user);\n\n // Debug:\n// UserEntry debug = (UserEntry) space.readIfExists(user, null, 3000);\n// System.out.println(\"User: \" + debug.getUsername() +\" Successfully added!\");\n// System.out.println(\"Main Form Created!\");\n\n // Create MainForm\n new MainForm(user);\n }\n else\n {\n // user already exists\n JOptionPane.showMessageDialog(loginForm,\n user.getUsername() + \" is taken.\");\n }\n }\n else\n {\n JOptionPane.showMessageDialog(loginForm,\n \"Username must have at least 3 non-special characters. \");\n }\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n }\n else\n {\n JOptionPane.showMessageDialog(loginForm,\n \"Passwords did not match!\");\n }\n }\n else\n {\n JOptionPane.showMessageDialog(loginForm,\n \"Username must be 3 - 20 characters. \");\n }\n }\n else\n {\n JOptionPane.showMessageDialog(loginForm,\n \"Password must be 6 - 25 characters. \");\n }\n }\n else\n {\n JOptionPane.showMessageDialog(loginForm,\n \"A username and password are required.\");\n }\n }", "public void registerUser(View view) {\n this.closeKeyboard();\n this.validator.validate();\n if (this.validator.hasNoErrors()) {\n User user = createUser();\n RealmUser registeredUser = registerUserDetails(user);\n //TODO register on server.\n if (registeredUser != null) {\n new MockUserRegistrationService().registerUser(user.getFirstName(), user.getLastName(), user.getEmail(), user.getInsuranceProvider(), user.getInsurancePlan());\n doOnRegistrationSuccess();\n }\n }\n }", "@Override\n public boolean userRegister(User user) \n { \n Connection conn = null;\n Statement stmt = null;\n try \n {\n db_controller.setClass();\n conn = db_controller.getConnection();\n stmt = conn.createStatement();\n String sql;\n \n sql = \"INSERT INTO users (firstname,lastname,username,password,city,number) \"\n + \"values ('\"+ user.getFirstname()+\"',\" \n + \"'\" + user.getLastname() + \"',\" \n + \"'\" + user.getUsername() + \"',\" \n + \"'\" + user.getPassword() + \"',\" \n + \"'\" + user.getCity() + \"',\"\n + \"'\" + user.getNumber() + \"')\";\n int result = stmt.executeUpdate(sql);\n \n stmt.close();\n conn.close();\n if(result == 1) return true;\n else return false;\n } \n catch (SQLException ex) { ex.printStackTrace(); return false;} \n catch (ClassNotFoundException ex) { ex.printStackTrace(); return false;} \n }", "private final static void onRegister(TextField username, TextField email, PasswordField password, PasswordField passwordAgain)\n\t{\n\t\t// TODO no password = passwordAgain check\n\t\t// TODO check if username exists\n\t\t// TODO check if email exists\n\n\t\tint id = ProfileManipulation.getHighestId(\"Profile\", true);\n\t\tProfileManipulation.registerUser(id, username.getText(), email.getText(),\n\t\t\t\tpassword.getText());\n\t\tPartylize.setUsername(username.getText());\n\t\tPartylize.showMainScene();\n\t}", "public void creatUser(String name, String phone, String email, String password);", "boolean signUp(User user);", "public UserRegister(String userFirstName, String userLastName, String userEmail, String userPhoneNo, String userName, String userPassword) throws Exception { \r\n\t\t//super(userName, userPassword);\r\n\t\t// add new user to database\r\n\t\ttry {\r\n\t\tString str = \"INSERT INTO tblusers (userName,userPassword, userFirstName, userLastName, userEmail, userPhoneNo, userDateJoined)\" + \r\n\t\t\t\t\"VALUES ('\" + userName + \"', '\" + userPassword + \"', '\" + userFirstName + \"', '\" + userLastName + \"',\" + \r\n\t\t\t\t\" '\" + userEmail + \"', '\" + userPhoneNo + \"', NOW() );\";\r\n\t\tDBConnect.runUpdateQuery(str);\r\n\t\t}catch(Exception e) {\r\n\t\t\tthrow e;\r\n\t\t\t//System.out.println(e.toString());\r\n\t\t}\r\n\r\n\t}", "@Override public void registerNewUser(String username, String password)\r\n throws RemoteException, SQLException {\r\n gameListClientModel.registerNewUser(username, password);\r\n }", "public void addUser(User user) {\n\t\t\r\n\t}", "boolean userRegistration(UserDTO user) throws UserException,ConnectException;", "public void addUser(UserModel user);", "public void registerUser(String username, String email, String password, String firstName, String surname, String userType, String staffID)\n throws UsernameTakenException, IncorrectStaffIDException, StaffIDTakenException, EmptyUserInputException, NotValidEmailException {\n register.registerUser(username, email, password, firstName, surname, userType, staffID);\n }", "@Override\n\tpublic void register(User user) {\n\t\tuserDao.register(user);\n\t}", "public void createUserAccount(UserAccount account);", "public void register(String form /* should be a Form from GUI */){\n String email = \"email\";\n String nome_completo = \"full_name\";\n Date data_nascimento = new Date(1996-10-21);\n String password = getMd5(\"password\");\n String nif = \"nif\";\n String morada = \"morada\";\n String telemovel = \"telemovel\";\n User user = new User(email);\n if (!user.exists()){\n user.setNome_completo(nome_completo);\n user.setData_nascimento(data_nascimento);\n user.setPassword(password);\n user.setNif(nif);\n user.setMorada(morada);\n user.setTelemovel(telemovel);\n user.setAdmin(FALSE);\n //System registers person\n //db.register(user)\n }\n }", "@Test\n\tpublic void registerUserTest() throws RemoteException, NoSuchAlgorithmException, InvalidKeySpecException, IOException, InvalidKeyException, SignatureException, NoSuchPaddingException, IllegalBlockSizeException, BadPaddingException, UnrecoverableKeyException, KeyStoreException, CertificateException {\n\t\t\n\t\t// Creation of the server\n\t\tPasswordManager pm = new PasswordManager(8080);\n\n\t\t// Normal register\n\t\tString response = pm.registerUser(DatatypeConverter.printBase64Binary(cliPubKey.getEncoded()), \n\t\t\t\tDigitalSignature.getSignature(cliPubKey.getEncoded(),cliPrivKey));\n\n\t\t// Analyse the correctness of the answer\n\t\tAssert.assertNotSame(response, \"Error: Could not validate signature.\");\n\t}", "@Override\n public RegisterBO register(UserRequest userRequest) {\n User user = new User().with(u -> u.email = userRequest.getEmail())\n .with(u -> u.username = userRequest.getEmail())\n .with(u -> u.preferredLanguages.add(new Locale(\"es\", \"CL\")))//TODO: revisar mas adelante\n .with(u -> u.password = userRequest.getPassword())\n .with(u -> u.fullName = userRequest.getFullName());\n if (userRequest.getPhone() != null)\n user.with(u -> u.mobilePhone = userRequest.getPhone().trim());\n\n // Se inicia el registro de usuario y objecto request\n UserRegistration registration = new UserRegistration();\n registration.applicationId = UUID.fromString(aplicationId);\n registration.verified = false;\n\n RegistrationRequest request = new RegistrationRequest(user, registration);\n\n // Uso el objeto ClientResponse para capturar respuesta\n ClientResponse<RegistrationResponse, Errors> response = getFusionAuthClient.register(null, request);\n\n // Traducto respuesta segun exito o error\n return registerTranslate.translate(response);\n }", "@Override\n public boolean register(UserDTO user) throws WrongUserDatabase, UserDatabaseNotFoundException, UserExistsException {\n userRepository.addUser(user);\n return true;\n }", "private void registerUser(final String firstName, final String lastName, final String email, final String password, final String reEnterPassword) {\n\n if (validRegister(firstName, lastName, email, password, reEnterPassword)){\n mSignUpPresenter.registerUser(NetworkUtils.getInstance(this), email, password, firstName, lastName);\n }\n\n }", "void register() {\n if (registerView.getFirstName().length() == 0 || registerView.getLastName().length() == 0 || registerView.getUsername().length() == 0 || registerView.getPassword().length() == 0) {\n IDialog invalidRegistrationDialog\n = dialogFactory.createDialog(DialogFactoryOptions.dialogNames.MESSAGE, new HashMap<String, Object>() {\n {\n put(\"message\", \"Unable to register: Fields must be non-empty!\");\n put(\"title\", \"Authentication Error\");\n put(\"messageType\", DialogFactoryOptions.dialogType.ERROR);\n }\n });\n\n invalidRegistrationDialog.run();\n } else {\n if (userController.registerUser(registerView.getFirstName(), registerView.getLastName(), registerView.getUsername(), registerView.getPassword()) != null) {\n mainFrame.setPanel(panelFactory.createPanel(PanelFactoryOptions.panelNames.MAIN_MENU));\n } else {\n IDialog invalidRegistrationDialog = dialogFactory.createDialog(DialogFactoryOptions.dialogNames.MESSAGE, new HashMap<String, Object>() {\n {\n put(\"message\", \"Unable to register: Username is already taken\");\n put(\"title\", \"Authentication Error\");\n put(\"messageType\", DialogFactoryOptions.dialogType.ERROR);\n }\n });\n\n invalidRegistrationDialog.run();\n }\n }\n }", "void createUser() throws SQLException {\n String name = regName.getText();\n String birthdate = regAge.getText();\n String username = regUserName.getText();\n String password = regPassword.getText();\n String query = \" insert into users (name, birthdate, username, password)\"\n + \" values (?, ?, ?, ?)\";\n\n DB.registerUser(name, birthdate, username, password, query);\n }", "private void registerUser(){\n mAuth.createUserWithEmailAndPassword(correo, password).addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if(task.isSuccessful()){\n //mapa de valores\n Map<String, Object> map = new HashMap<>();\n map.put(\"name\",name);\n map.put(\"email\",correo);\n map.put(\"password\",password);\n map.put(\"birthday\",cumple);\n map.put(\"genre\",genre);\n map.put(\"size\",size);\n //obtenemos el id asignado por la firebase\n String id= mAuth.getCurrentUser().getUid();\n //pasamos el mapa de valores\n mDatabase.child(\"Users\").child(id).setValue(map).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task2) {\n //validams que la tarea sea exitosa\n if(task2.isSuccessful()){\n startActivity(new Intent(DatosIniciales.this, MainActivity.class));\n //evitamos que vuelva a la pantalla con finsh cuando ya se ha registrado\n finish();\n }else{\n Toast.makeText(DatosIniciales.this, \"Algo fallo ups!!\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }else{\n Toast.makeText(DatosIniciales.this, \"No pudimos completar su registro\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }", "public boolean register(String u_Name, String u_pw, String f_name){\n List<User> userList = userDao.getUserFromUsername(u_Name);\n //1.check if userName is used\n if (userList.size() != 0){ \n return false;\n }\n //2.create user and add to the DB\n User user = new User(u_Name, u_pw, f_name);\n userDao.addUser(user);\n //3.return true\n return true;\n }", "int createUser(User data) throws Exception;", "public void register(User user) {\n\t\tboolean exists = false ;\n\t\tfor ( User currentUser : users )\n\t\t\tif ( currentUser.getId().equals(user.getId()) )\n\t\t\t\texists = true ;\n\t\tif ( !exists ) {\n\t\t\taddUser(user) ;\n\t\t\tSystem.out.println(\"[USER CREATED]\") ;\n\t\t\tSystem.out.println() ;\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"[INVALID ACTION] User Already Exists\") ;\n\t\t\tSystem.out.println() ;\n\t\t}\n\t}", "private void register(String username, String password) {\n User u = null;\n try {\n u = userDao.loadByLogin(username, password);\n } catch (Exception ignored) {}\n if (u == null) {\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putString(\"tmp_username\", username);\n editor.putString(\"tmp_password\", password);\n editor.commit();\n Intent intent = new Intent(LoginActivity.this, InfoActivity.class);\n startActivity(intent);\n } else {\n try {\n Toast.makeText(getApplicationContext(), \"Register Failed\", Toast.LENGTH_SHORT).show();\n } catch (Exception e) {\n Looper.prepare();\n Toast.makeText(getApplicationContext(), \"Register Failed\", Toast.LENGTH_SHORT).show();\n Looper.loop();\n }\n }\n }", "public void registerUser(User1 u1) {\n\t\tSession session = sf.openSession();\n\t\tTransaction tx = session.beginTransaction();\t\t\n\t\t\n \tsession.save(u1);\t\t\n \t \n \ttx.commit();\n \tsession.close();\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "void addUser(String uid, String firstname, String lastname, String pseudo);", "void createUser(User newUser, String token) throws AuthenticationException, InvalidUserException, UserAlreadyExistsException;", "UserDTO registerUser(final UserDTO userDTO);", "@GET(Config.REGISTER) Call<User> registerUser(@QueryMap Map<String, String> body);", "public void addAccount(String user, String password);", "public Boolean addUser(User user) throws ApplicationException;", "public boolean registerNewUser(String un, String pw, String fn, String ln, String sq, String sa, int age) {\n\n boolean success;\n\n if (isUsernameExist(un)) {\n success = false;\n }\n else {\n // encrypting input password\n SHAEncryption sha = new SHAEncryption();\n String shaPW = sha.getSHA(pw);\n\n // accessing registeredUser table (collection)\n MongoCollection<Document> collRU = db.getCollection(\"registeredUser\");\n\n // creating new user document based on the input from UI\n Document newUser = new Document(\"username\", un)\n .append(\"password\", shaPW)\n .append(\"firstName\", fn)\n .append(\"lastName\", ln)\n .append(\"age\", age)\n .append(\"secureQ\", sq)\n .append(\"secureA\", sa.toLowerCase())\n .append(\"status\", \"\")\n .append(\"hidefriends\",false)\n .append(\"hideposts\",false)\n .append(\"hideage\",false)\n .append(\"hidestatus\",false);\n\n // insert newUser into registeredUser collection\n collRU.insertOne(newUser);\n System.out.println(\"Username \" + un + \" is registered!\");\n success = true;\n \n // create followList for new user\n db.getCollection(\"followList\").insertOne(\n new Document(\"username\", un).append(\"following\", new ArrayList<String>()));\n }\n\n return success;\n }", "public int insertUser(final User user);", "public void RegisterUser() {\n try {\n reg = new Registration();\n reg.setFirstName(FName);\n reg.setLastName(LName);\n reg.setCompanyName(CompanyName);\n reg.setEmail(Email);\n reg.setMobile(mobile);\n ValidateRegistration validator = new ValidateRegistration();\n boolean legitmail = validator.validateEmail(reg);\n if ( legitmail == false ) {\n System.out.println(\"Not a legitimate Email\");\n FacesContext c = FacesContext.getCurrentInstance();\n FacesMessage m = new FacesMessage(\"Invalid Email\", \"The email provided is not correct\");\n c.addMessage(null, m);\n } else {\n FacesContext c = FacesContext.getCurrentInstance();\n c.getApplication().getNavigationHandler().handleNavigation(c, null, \"mainpage.xhtml\");\n }\n } catch (Exception ex) {\n System.out.println(ex.getMessage());\n }\n }", "public static RegisterResult register(RegisterRequest r) {\n\n User new_user = new User(UUID.randomUUID().toString(), r.userName, r.password, r.email,\n r.firstName, r.lastName, r.gender);\n\n RegisterResult result = new RegisterResult();\n\n User test_user = UserDao.getUser(r.userName);\n if (test_user != null && !test_user.userName.equals(\"\"))\n {\n result.message = \"Error: Username already taken by another user\";\n result.success = false;\n return result;\n }\n\n result.authToken = UUID.randomUUID().toString();\n AuthTokenDao.updateToken(r.userName, result.authToken);\n\n Person p = new Person(new_user.personID, r.userName, r.firstName, r.lastName, r.gender);\n PersonDao.addPerson(p);\n\n result.userName = r.userName;\n result.personID = new_user.personID;\n UserDao.addUser(new_user);\n\n // Generate 4 generations of ancestry\n GenerateData.generateGenerations(r.userName, 4);\n\n result.success = true;\n\n return result;\n }", "public RegisterResult register(RegisterRequest r) throws DBException, IOException\n {\n try\n {\n idGenerator = UUID.randomUUID();\n String personID = idGenerator.toString();\n User newUser = new User(\n r.getUserName(),\n r.getPassword(),\n r.getEmail(),\n r.getFirstName(),\n r.getLastName(),\n r.getGender(),\n personID\n );\n userDao.postUser(newUser);\n commit(true);\n login = new LoginService();\n\n LoginRequest loginRequest = new LoginRequest(r.getUserName(), r.getPassword());\n LoginResult loginResult = login.loginService(loginRequest);\n login.commit(true);\n\n fill = new FillService();\n FillRequest fillRequest = new FillRequest(r.getUserName(), 4);\n FillResult fillResult = fill.fill(fillRequest);\n fill.commit(true);\n\n\n result.setAuthToken(loginResult.getAuthToken());\n result.setUserName(loginResult.getUserName());\n result.setPersonID(loginResult.getPersonID());\n result.setSuccess(loginResult.isSuccess());\n\n\n if( !loginResult.isSuccess() || !fillResult.isSuccess() )\n {\n throw new DBException(\"Login failed\");\n }\n\n }\n catch(DBException ex)\n {\n result.setSuccess(false);\n result.setMessage(\"Error: \" + ex.getMessage());\n commit(false);\n }\n return result;\n }", "@Override\n public Response registerUser(String nciUserId, HpcUserRequestDTO userRegistrationRequest) {\n try {\n securityBusService.registerUser(nciUserId, userRegistrationRequest);\n\n } catch (HpcException e) {\n return errorResponse(e);\n }\n\n return createdResponse(null);\n }", "public void saveUser(User user);", "@Override\r\n public void registrarUsuario(User u) {\r\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\r\n }", "void saveRegisterInformation(UserDTO userDTO);", "public void register(UserRegistration userRegistration){\n User userToSave = UserMapper.map(userRegistration);\n// metoda do szyfrowania będzie wykorzystana w aktualnej metodzie register(),\n hashPasswordWithSha256(userToSave);\n userDao.save(userToSave);\n }", "@RequestMapping(value = \"/reg.htm\",method = RequestMethod.POST)\r\n\tpublic String register(User user,BindingResult result,ModelMap map,HttpSession session,HttpServletResponse response) throws IOException {\r\n\t\t\r\n\t\t\tuserService.addUser(user);\r\n\t\t\treturn \"regSuccess\";\t\r\n\t\t}", "public void register(RegistrationDTO p) throws UserExistException {\n userLogic.register((Person) p);\n }", "public Register() {\n user = new User();\n em = EMF.createEntityManager();\n valid = false;\n }", "@Override\n\tpublic void insertUser(User user) {\n\t\t\n\t}", "private void createUser(final String email, final String password) {\n\n }", "@Override\r\n\tpublic boolean registerSuperUser(String username, String password, String firstName, String lastName) {\n\t\tSuperUser tempSuperUser = new SuperUser(username, password, firstName, lastName);\r\n\t\t\r\n\t\treturn sudao.createSuperUser(tempSuperUser);\r\n\t}", "@Override\n public User register(User user) {\n if (user.getFirstName() == null || user.getFirstName().length() == 0) //first name cannot be empty\n {\n return null;\n }\n if (user.getLastName() == null || user.getLastName().length() == 0) //last name cannot be empty\n {\n return null;\n }\n if (user.getEmail().equals(\"\") && user.getTelephone().equals(\"\")) {\n return null;\n }\n if ((isEmail(user.getEmail()) == false && !user.getEmail().equals(\"\"))\n || (isNumeric(user.getTelephone()) == false && !user.getTelephone().equals(\"\")))//email and telephone need at least one\n {\n return null;\n }\n\n User newuser = new User((new DataClass().getLastUserID() + 1), user.getFirstName(), user.getLastName(),\n user.getEmail(), user.getTelephone(), 0);\n new DataClass().addUser(newuser);\n return newuser;\n }", "@Override\n public User register(UserRegisterModel model) {\n User newUser = User.builder()\n .password(model.getPassword())\n .username(model.getUsername())\n .dateOfBirth(model.getDateOfBirth())\n .build();\n return userRepository.save(newUser);\n }", "@WebMethod public void addUser(String name, String lastName, String email, String nid, String user, String password);", "public void createUser(String email, String password) {\n\n if (!validateForm()) {\n return;\n }\n\n signupBtn.setEnabled(false);\n startLoadAnim(getString(R.string.registering_user));\n mAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n Log.d(TAG, \"createUserWithEmail:onComplete:\" + task.isSuccessful());\n // If sign in fails, display a message to the user. If sign in succeeds\n // the auth state listener will be notified and logic to handle the\n // signed in user can be handled in the listener.\n if (!task.isSuccessful()) {\n Toast.makeText(LoginActivity.this, R.string.registration_failed, Toast.LENGTH_SHORT).show();\n signupBtn.setEnabled(true);\n stopLoadAnim();\n }\n }\n });\n }", "public boolean registerNewUser(String szUserName, String szTelephone,\n\t\t\tString szEmail, String szPassword) throws Exception {\n\t\t// INFO\n\t\tplay.Logger.info(\"<BUISNESS_LOGIC> Register new user : \");\n\t\tplay.Logger.info(\"============================\");\n\t\tplay.Logger.info(\"For : =>>\");\n\t\tplay.Logger.info(\"User name : \" + szUserName);\n\t\tplay.Logger.info(\"Telephone : \" + szTelephone);\n\t\tplay.Logger.info(\"Email : \" + szEmail);\n\t\tplay.Logger.info(\"Password : \" + szPassword);\n\t\tplay.Logger.info(\"============================\");\n\t\tboolean isRegitred = false;\n\t\tif (setterDB.registerNewUser(szUserName, szTelephone, szEmail, szPassword)) {\n\t\t\tisRegitred = true;\n\t\t}\n\t\treturn isRegitred;\n\t}", "public int createAccount(User user) throws ExistingUserException,\n UnsetPasswordException;", "public void registerUser(Register reg)\r\n {\n\t Session session = HibernateUtils.getSession();\r\n\t Transaction tx = session.beginTransaction();\r\n\t session.save(reg);\r\n\t tx.commit();\r\n\t session.close();\r\n }", "public void addUser(\n\t\t\tActionRequest request, ActionResponse response) \n\t\t\tthrows Exception {\n\t\t\n\t\tString firstName = ParamUtil.getString(request, \"firstName\");\n\t\tString lastName = ParamUtil.getString(request, \"lastName\");\n\t\tString email = ParamUtil.getString(request, \"email\");\n\t\tString username = ParamUtil.getString(request, \"username\");\n\t\t\n\t\t//Determine gender\n\t\tString gender = ParamUtil.getString(request, \"male\");\n\t\tboolean male = true;\n\t\tif (gender.contains(\"Female\"))\n\t\t\tmale = false;\n\t\t\n\t\tString birthday = ParamUtil.getString(request, \"birthday\"); //update validation to account for date being a STRING now\n\t\tString password1 = ParamUtil.getString(request, \"password1\");\n\t\tString password2 = ParamUtil.getString(request, \"password2\");\n\n\t\tString homePhone = ParamUtil.getString(request, \"homePhone\");\n\t\tString mobilePhone = ParamUtil.getString(request, \"mobilePhone\");\n\t\t\n\t\tString address1 = ParamUtil.getString(request, \"address1\");\n\t\tString address2 = ParamUtil.getString(request, \"address2\");\n\t\tString city = ParamUtil.getString(request, \"city\");\n\t\tString state = ParamUtil.getString(request, \"state\");\n\t\tString zip = ParamUtil.getString(request, \"zip\");\n\t\t\n\t\tString secQuestion = ParamUtil.getString(request, \"secQuestion\");\n\t\tString secAnswer = ParamUtil.getString(request, \"secAnswer\");\n\t\t\n\t\tString terms = ParamUtil.getString(request, \"termsOfUse\");\n\t\tboolean tOU = false;\n\t\tif (terms.equals(\"accepted\")) {\n\t\t\ttOU = true;\n\t\t}\n\n\t\ttry {\n\t\t\t_userLocalService.registerUser(firstName, lastName, email, username, male, birthday, password1, password2, homePhone,\n\t\t\tmobilePhone, address1, address2, city, state, zip, secQuestion, secAnswer, tOU);\n\t\t\t\n\t\t\tSessionMessages.add(request, \"userAdded\");\n\t\t\t\n\t\t\tsendRedirect(request, response);\n\t\t}\n\t\tcatch(UserValidationException ave) {\n\t\t\tave.getErrors().forEach(key -> SessionErrors.add(request, key));\n\t\t\tresponse.setRenderParameter(\"\", \"registration/user/add\");\n\t\t}\n\t\tcatch(PortalException pe) {\n\t\t\tSessionErrors.add(request, \"serviceErrorDetails\", pe);\n\t\t\tresponse.setRenderParameter(\"\", \"registration/user/add\");\n\t\t}\n\t}", "public void register(String firstname, String lastname, String username, String email, String password) {\n BasicDBObject query = new BasicDBObject();\n query.put(\"firstname\", firstname);\n query.put(\"lastname\", lastname);\n query.put(\"username\", username);\n query.put(\"email\", email);\n query.put(\"password\", password);\n query.put(\"rights\", 0);\n users.save(query);\n System.out.println(\"### DATABASE: user \" + username + \" registered ... password hash: \" + password);\n }", "private void createAccount()\n {\n // check for blank or invalid inputs\n if (Utils.isEmpty(edtFullName))\n {\n edtFullName.setError(\"Please enter your full name.\");\n return;\n }\n\n if (Utils.isEmpty(edtEmail) || !Utils.isValidEmail(edtEmail.getText().toString()))\n {\n edtEmail.setError(\"Please enter a valid email.\");\n return;\n }\n\n if (Utils.isEmpty(edtPassword))\n {\n edtPassword.setError(\"Please enter a valid password.\");\n return;\n }\n\n // check for existing user\n AppDataBase database = AppDataBase.getAppDataBase(this);\n User user = database.userDao().findByEmail(edtEmail.getText().toString());\n\n if (user != null)\n {\n edtEmail.setError(\"Email already registered.\");\n return;\n }\n\n user = new User();\n user.setId(database.userDao().findMaxId() + 1);\n user.setFullName(edtFullName.getText().toString());\n user.setEmail(edtEmail.getText().toString());\n user.setPassword(edtPassword.getText().toString());\n\n database.userDao().insert(user);\n\n Intent intent = new Intent(this, LoginActivity.class);\n intent.putExtra(\"user\", user);\n startActivity(intent);\n }", "public void register(final String userName) {\n AsyncTask.execute(new Runnable() {\n @Override\n public void run() {\n sendRegisterUserRequest(userName);\n }\n });\n }", "public void createUser() throws ServletException, IOException {\n\t\tString fullname = request.getParameter(\"fullname\");\n\t\tString password = request.getParameter(\"password\");\n\t\tString email = request.getParameter(\"email\");\n\t\tUsers getUserByEmail = productDao.findUsersByEmail(email);\n\t\t\n\t\tif(getUserByEmail != null) {\n\t\t\tString errorMessage = \"we already have this email in database\";\n\t\t\trequest.setAttribute(\"message\", errorMessage);\n\t\t\t\n\t\t\tString messagePage = \"message.jsp\";\n\t\t\tRequestDispatcher requestDispatcher = request.getRequestDispatcher(messagePage);\n\t\t\trequestDispatcher.forward(request, response);\n\t\t}\n\t\t// create a new instance of users class;\n\t\telse {\n\t\t\tUsers user = new Users();\n\t\t\tuser.setPassword(password);\n\t\t\tuser.setFullName(fullname);\n\t\t\tuser.setEmail(email);\n\t\t\tproductDao.Create(user);\n\t\t\tlistAll(\"the user was created\");\n\t\t}\n\n\t\t\n\t}", "boolean create(User user) throws Exception;" ]
[ "0.85432756", "0.85207987", "0.84887344", "0.8445041", "0.8187723", "0.8124593", "0.7888888", "0.77513146", "0.7731311", "0.76979655", "0.76608837", "0.76303506", "0.7600218", "0.7596611", "0.75708026", "0.75630033", "0.7526643", "0.75247556", "0.7517011", "0.75141287", "0.7497152", "0.7488469", "0.7448808", "0.7448808", "0.7431674", "0.74227154", "0.7397541", "0.7392669", "0.73858243", "0.73648494", "0.7362077", "0.7352662", "0.72950625", "0.7280884", "0.7246935", "0.7245858", "0.7227905", "0.72201025", "0.7218076", "0.7215675", "0.7212734", "0.71944964", "0.7187158", "0.71622705", "0.7149689", "0.7145006", "0.71326756", "0.7126696", "0.7126595", "0.71214896", "0.7119963", "0.7110194", "0.7107577", "0.7104461", "0.7097781", "0.7097618", "0.70956093", "0.7095189", "0.709346", "0.709322", "0.70838314", "0.70837927", "0.7069144", "0.7068788", "0.706115", "0.70590127", "0.7050328", "0.70497745", "0.7046014", "0.7044103", "0.7038188", "0.702849", "0.7003501", "0.69638294", "0.69626224", "0.6958281", "0.69532883", "0.6944611", "0.6940428", "0.69378746", "0.69360346", "0.6928999", "0.69222695", "0.690479", "0.6902221", "0.68991864", "0.68982315", "0.68969625", "0.6896254", "0.6895122", "0.6893355", "0.6890228", "0.6887053", "0.688487", "0.6884793", "0.6884233", "0.6883135", "0.68826395", "0.6878555", "0.68739384", "0.6870879" ]
0.0
-1
Use this whenever you want to connect to the database
public static Connection getCon() { Connection con= null; try{ Class.forName(driver); con = DriverManager.getConnection(dBUrl); } catch (SQLException e) { e.printStackTrace(); } catch (ClassNotFoundException e) { e.printStackTrace(); } return con; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void connectDatabase(){\n }", "public void connect() {\n\n DatabaseGlobalAccess.getInstance().setEmf(Persistence.createEntityManagerFactory(\"PU_dashboarddb\"));\n DatabaseGlobalAccess.getInstance().setEm(DatabaseGlobalAccess.getInstance().getEmf().createEntityManager());\n DatabaseGlobalAccess.getInstance().getDatabaseData();\n DatabaseGlobalAccess.getInstance().setDbReachable(true);\n }", "DBConnect() {\n \n }", "public void DBConnect() {\n \tdatabase = new DatabaseAccess();\n \tif (database != null) {\n \t\ttry {\n \t\t\tString config = getServletContext().getInitParameter(\"dbConfig\");\n \t\t\tdatabase.GetConnectionProperties(config);\n \t\t\tdatabase.DatabaseConnect();\n \t\t}\n \t\tcatch (Exception e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t}\n }", "private void connectToDB() {\n try {\n Class.forName(\"org.postgresql.Driver\");\n this.conn = DriverManager.getConnection(prs.getProperty(\"url\"),\n prs.getProperty(\"user\"), prs.getProperty(\"password\"));\n } catch (SQLException e1) {\n e1.printStackTrace();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n }", "private static void connectDatabase(){\n\t\t// register the driver\n\t\ttry{\n\t\t\tClass.forName(DRIVER).newInstance();\n\t\t\tconnection = DriverManager.getConnection(CONNECTION_URL);\n\t\t} catch (IllegalAccessException | InstantiationException | ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public void connectToDatabase(){\n\t\ttry{\n\t\t connection = DriverManager.getConnection(dbConfig.getUrl(), dbConfig.getUser(), dbConfig.getPassword());\n\t\t System.out.println(\"Successfully connected to database.\");\n\t\t} catch (Exception e){\n\t\t\tSystem.out.println(\"An error occurred while attempting to connect to the database.\");\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t}\n\t}", "public void connectToDb(){\n\t log.info(\"Fetching the database name and other details ... \");\n\t dbConnect.setDbName(properties.getProperty(\"dbName\"));\n\t dbConnect.setUsrName(properties.getProperty(\"dbUsrname\"));\n\t dbConnect.setPassword(properties.getProperty(\"dbPassword\"));\n\t dbConnect.setSQLType(properties.getProperty(\"sqlServer\").toLowerCase());\n\t log.info(\"Trying to connect to the database \"+dbConnect.getDbName()+\" ...\\n with user name \"+dbConnect.getUsrname()+\" and password ****** \");\n\t dbConnect.connectToDataBase(dbConnect.getSQLType(), dbConnect.getDbName(), dbConnect.getUsrname(), dbConnect.getPswd());\n\t log.info(\"Successfully connected to the database \"+dbConnect.getDbName());\n }", "public void connect(){\n if (connected) {\n // connection already established\n return;\n }\n // Create connection to Database\n Properties props = new Properties();\n props.setProperty(\"user\", DB_USER);\n props.setProperty(\"password\", DB_PASSWORD);\n //props.setProperty(\"ssl\", \"true\");\n //\"Connecting to database...\"\n try {\n Class.forName(\"org.postgresql.Driver\");\n String connection_string = generateURL();\n dbConnect = DriverManager.getConnection(connection_string, props);\n //\"Connection established\"\n status = \"Connection established\";\n connected = true;\n } catch (SQLException e) {\n //\"Connection failed: SQL error\"\n status = \"Connection failed: \" + e.getMessage();\n connected = false;\n } catch (Exception e) {\n //\"Connection failed: unknown error\"\n status = \"Connection failed: \" + e.getMessage();\n connected = false;\n }\n }", "public void connectToDb() {\n try {\n con = DriverManager.getConnection(url, user, password);\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(null, \"Erro: \" + ex.getMessage(), \"Mensagem de Erro\", JOptionPane.ERROR_MESSAGE);\n }\n\n }", "public void connect() {\n try {\n Class.forName(\"com.mysql.jdbc.Connection\");\n //characterEncoding=latin1&\n //Class.forName(\"org.apache.derby.jdbc.EmbeddedDriver\");\n //Connection conn = new Connection();\n url += \"?characterEncoding=latin1&useConfigs=maxPerformance&useSSL=false\";\n conn = DriverManager.getConnection(url, userName, password);\n if (conn != null) {\n System.out.println(\"Established connection to \"+url+\" Database\");\n }\n }\n catch(SQLException e) {\n throw new IllegalStateException(\"Cannot connect the database \"+url, e);\n }\n catch(ClassNotFoundException e) {\n e.printStackTrace();\n }\n\n }", "public void connectDB() {\n\t\tSystem.out.println(\"CONNECTING TO DB\");\n\t\tSystem.out.print(\"Username: \");\n\t\tusername = scan.nextLine();\n\t\tConsole console = System.console(); // Hides password input in console\n\t\tpassword = new String(console.readPassword(\"Password: \"));\n\t\ttry {\n\t\t\tDriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());\n\t\t\tconnection = DriverManager.getConnection(url, username, password);\n\t\t} catch(Exception Ex) {\n\t\t\tSystem.out.println(\"Error connecting to database. Machine Error: \" + Ex.toString());\n\t\t\tEx.printStackTrace();\n\t\t\tSystem.out.println(\"\\nCONNECTION IS REQUIRED: EXITING\");\n\t\t\tSystem.exit(0); // No need to make sure connection is closed since it wasn't made\n\t\t}\n\t}", "public void openConnection(){\n\n\t\tString dbIP = getConfig().getString(\"mysql.ip\");\n\t\tString dbDB = getConfig().getString(\"mysql.databaseName\");\n\t\tString dbUN = getConfig().getString(\"mysql.username\");\n\t\tString dbPW = getConfig().getString(\"mysql.password\");\n\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\tconnection = DriverManager.getConnection(\"jdbc:mysql://\" + dbIP + \"/\" + dbDB, dbUN, dbPW);\n\t\t\tgetLogger().info(\"Connected to databse!\");\n\t\t} catch (SQLException ex) {\n\t\t\t// handle any errors\n\t\t\tgetLogger().info(\"SQLException: \" + ex.getMessage());\n\t\t\tgetLogger().info(\"SQLState: \" + ex.getSQLState());\n\t\t\tgetLogger().info(\"VendorError: \" + ex.getErrorCode());\n\t\t} catch (ClassNotFoundException e) {\n\t\t\tgetLogger().info(\"Gabe, you done goof'd!\");\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "private Connection connect() {\n // SQLite connection string\n \tString url = \"jdbc:sqlite:DataBase/\" + database;\n Connection conn = null;\n try {\n conn = DriverManager.getConnection(url);\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n return conn;\n }", "private Connection database() {\n Connection con = null;\n String db_url = \"jdbc:mysql://localhost:3306/hospitalms\";\n String db_driver = \"com.mysql.jdbc.Driver\";\n String db_username = \"root\";\n String db_password = \"\";\n \n try {\n Class.forName(db_driver);\n con = DriverManager.getConnection(db_url,db_username,db_password);\n } \n catch (SQLException | ClassNotFoundException ex) { JOptionPane.showMessageDialog(null,ex); }\n return con;\n }", "private void connect() {\n if (this.connection == null && !this.connected) {\n try {\n this.connection = DriverManager.getConnection(this.dbUrl, this.dbUser, this.dbPassword);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n }", "public void conectionSql(){\n conection = connectSql.connectDataBase(dataBase);\n }", "private void connectToDB() throws Exception\n\t{\n\t\tcloseConnection();\n\t\t\n\t\tcon = Env.getConnectionBradawl();\n\t}", "public void connectToDB(){\n\ttry {\n\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\tconnection=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/patient\",\"root\",\"7417899737\");\n\t} catch (ClassNotFoundException e) {\n\t\t\n\t\te.printStackTrace();\n\t} catch (SQLException e) {\n\t\t\n\t\te.printStackTrace();\n\t}\n\t\n}", "private static void dbConnect() {\r\n\t\tif (conn == null)\r\n\t\t\ttry {\r\n\t\t\t\tconn = DriverManager.getConnection(\"jdbc:mysql://localhost/sims?user=root&password=12345&useSSL=true\");\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t}", "public void initializeConnection(){\n try{\n dbConnect = DriverManager.getConnection(DBURL, USERNAME, PASSWORD);\n } catch (SQLException ex){\n ex.printStackTrace();\n }\n }", "private Connection connect() throws SQLException {\n\t\treturn DriverManager.getConnection(\"jdbc:sqlite:database/scddata.db\");\n\t}", "private void openConnection() {\n try {\n dbConnection\n = DriverManager.getConnection(url, user, password);\n } catch (SQLException ex) {\n System.err.println(\"Exception in connecting to mysql database\");\n System.err.println(ex.getMessage());\n }\n }", "private void setupDB(){\n try {\n Class.forName(\"oracle.jdbc.driver.OracleDriver\");\n String url = \"jdbc:oracle:thin:@localhost:1521:orcl\";\n String username = \"sys as sysdba\"; //Provide username for your database\n String password = \"oracle\"; //provide password for your database\n\n con = DriverManager.getConnection(url, username, password);\n }\n catch(Exception e){\n System.out.println(e);\n }\n }", "@Override\r\n protected void connect() {\r\n try {\r\n this.setDatabase();\r\n } catch (SQLException e) {\r\n Log.w(NoteTraitDataSource.class.getName(), \"Error setting database.\");\r\n }\r\n }", "public DBManager(){\r\n connect(DBConstant.driver,DBConstant.connetionstring);\r\n }", "private Connection connect() {\n String url = \"jdbc:sqlite:\" + dbPath + dbName;\n Connection con = null;\n try {\n con = DriverManager.getConnection(url);\n }\n catch (SQLException e) {\n System.out.println(\"ERROR: \" + e.getMessage());\n }\n\n return con;\n }", "public Connection connect(){\n try{\n \n Class.forName(\"org.apache.derby.jdbc.ClientDriver\").newInstance();\n conn = DriverManager.getConnection(dbUrl, name, pass);\n System.out.println(\"connected\");\n }\n catch(Exception e){\n System.out.println(\"connection problem\");\n }\n return conn;\n }", "private Database() throws SQLException, ClassNotFoundException {\r\n Class.forName(\"org.postgresql.Driver\");\r\n con = DriverManager.getConnection(\"jdbc:postgresql://localhost:5432/postgres\", \"postgres\", \"kuka\");\r\n }", "private Connection connect() {\n\t String url = \"jdbc:sqlite:\" + this.db;\r\n\t Connection conn = null;\r\n\t try {\r\n\t \t// Incercam conexiunea la baza de date\r\n\t conn = DriverManager.getConnection(url);\r\n\t } catch (SQLException e) {\r\n\t System.out.println(e.getMessage());\r\n\t }\r\n\t return conn; // returnam conexiunea, daca aceasta s-a facut fara erori\r\n\t }", "private static void connect() {\n\t\ttry {\n\t\t\tif (connection == null) {\n\t\t\t\tClass.forName(\"org.mariadb.jdbc.Driver\");\n\t\t\t\tconnection = DriverManager.getConnection(url, user, password);\n\t\t\t\tconnection.setAutoCommit(false);\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\n\t\t}\n\t}", "private void openDatabase() {\r\n if ( connect != null )\r\n return;\r\n\r\n try {\r\n // Setup the connection with the DB\r\n String host = System.getenv(\"DTF_TEST_DB_HOST\");\r\n String user = System.getenv(\"DTF_TEST_DB_USER\");\r\n String password = System.getenv(\"DTF_TEST_DB_PASSWORD\");\r\n read_only = true;\r\n if (user != null && password != null) {\r\n read_only = false;\r\n }\r\n if ( user == null || password == null ) {\r\n user = \"guest\";\r\n password = \"\";\r\n }\r\n Class.forName(\"com.mysql.jdbc.Driver\"); // required at run time only for .getConnection(): mysql-connector-java-5.1.35.jar\r\n connect = DriverManager.getConnection(\"jdbc:mysql://\"+host+\"/qa_portal?user=\"+user+\"&password=\"+password);\r\n } catch ( Exception e ) {\r\n System.err.println( \"ERROR: DescribedTemplateCore.openDatabase() could not open database connection, \" + e.getMessage() );\r\n }\r\n }", "public static void connect() {\n try {\n Class.forName(\"com.mysql.jdbc.Driver\");\n DataBaseConnect.connect = DriverManager\n .getConnection(\"jdbc:mysql://localhost/magazyn?\"\n + \"user=root&password=\");\n } catch (SQLException e1) {\n e1.printStackTrace();\n } catch (ClassNotFoundException e1) {\n e1.printStackTrace();\n }\n }", "public void dbConnection()\n {\n\t try {\n\t \t\tClass.forName(\"org.sqlite.JDBC\");\n // userName=rpanel.getUserName();\n String dbName=userName+\".db\";\n c = DriverManager.getConnection(\"jdbc:sqlite:database/\"+dbName);\n }\n //catch the exception\n catch ( Exception e ) \n { \n System.err.println( \"error in catch\"+e.getClass().getName() + \": \" + e.getMessage() );\n System.exit(0);\n }\n\t if(c!=null)\n\t {\n System.out.println(\"Opened database successfully\");\n\t System.out.println(c);\n createData();\n\t}\n }", "private void open_db() {\n try {\n Class.forName(\"com.mysql.jdbc.Driver\"); \n Con = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/projectlaundry\",\"root\",\"\");\n stm = Con.createStatement();\n }\n catch (Exception e){\n JOptionPane.showMessageDialog(null,\"Koneksi gagal\");\n System.out.println(e.getMessage());\n }\n }", "private Connection dbConnection() {\n\t\t\n\t\t///\n\t\t/// declare local variables\n\t\t///\n\t\t\n\t\tConnection result = null;\t// holds the resulting connection\n\t\t\n\t\t// try to make the connection\n\t\ttry {\n\t\t\tClass.forName(\"org.sqlite.JDBC\");\n\t\t\tresult = DriverManager.getConnection(CONNECTION_STRING);\n\t\t} catch (Exception ex) {\n\t\t\tSystem.out.println(ex.getMessage());\n\t\t}\n\t\t\n\t\t// return the resulting connection\n\t\treturn result;\n\t\t\n\t}", "public Connection connectdb(){\n Connection con = null;\n try {\n Class.forName(\"com.mysql.cj.jdbc.Driver\");\n con = DriverManager.getConnection(url, user, pass);\n } catch (ClassNotFoundException | SQLException ex) {\n Logger.getLogger(ILocker.class.getName()).log(Level.SEVERE, null, ex);\n }\n return con;\n }", "public Connection connectDB (){\n try{\n Class.forName(\"org.sqlite.JDBC\");\n Connection conn = DriverManager.getConnection(\"jdbc:sqlite:awesomexDB.db\");\n //System.out.println(\"connection estd...\");\n return conn;\n } catch(Exception e){\n System.out.println(\"unable to connect\");\n return null;\n }\n }", "public void getConnect() \n {\n con = new ConnectDB().getCn();\n \n }", "public static void createConnection() {\n\n try{\n Class.forName(\"com.mysql.cj.jdbc.Driver\");\n connection = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/mydb\", \"tobymac208\", \"Sparta_!3712\");\n // Database how now been successfully connected.\n System.err.println(\"Database was successfully connected.\");\n }catch (ClassNotFoundException e) {\n System.err.println(\"Class not found.\");\n }catch (SQLException e) {\n System.err.println(\"SQL exception thrown.\");\n }\n }", "public static Connection connectDB(){\n Connection conn = null; //initialize the connection\n try {\n //STEP 2: Register JDBC driver\n Class.forName(\"org.apache.derby.jdbc.ClientDriver\");\n\n //STEP 3: Open a connection\n System.out.println(\"Connecting to database...\");\n conn = DriverManager.getConnection(DB_URL);\n } catch (SQLException se) {\n //Handle errors for JDBC\n se.printStackTrace();\n } catch (Exception e) {\n //Handle errors for Class.forName\n e.printStackTrace();\n }\n return conn;\n }", "private void initConnection() {\n\t\tMysqlDataSource ds = new MysqlDataSource();\n\t\tds.setServerName(\"localhost\");\n\t\tds.setDatabaseName(\"sunshine\");\n\t\tds.setUser(\"root\");\n\t\tds.setPassword(\"sqlyella\");\n\t\ttry {\n\t\t\tConnection c = ds.getConnection();\n\t\t\tSystem.out.println(\"Connection ok\");\n\t\t\tthis.setConn(c);\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}", "public Connection ConnectDB() throws SQLException {\r\n String db=\"jdbc:postgresql://localhost:5432/Employee\";\r\n String user=\"postgres\";\r\n String pass=\"admin\";\r\n\r\n return DriverManager.getConnection(db,user,pass);\r\n\r\n }", "void connect() {\n try {\n Class.forName(\"com.mysql.jdbc.Driver\"); // Driver is located in src/mysql-connector...\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n\n System.out.println(\"Connecting to database...\");\n\n try {\n // Make the connection\n con = DriverManager.getConnection(DB_URL, USER, PASS);\n System.out.println(\"Connection established!\");\n System.out.println(\"Creating statement...\");\n\n // Create a statement (not for output)\n st = con.createStatement();\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public static void connect()\n {\n conn = null;\n try {\n Class.forName(\"org.postgresql.Driver\");\n conn = DriverManager.getConnection(url, user, password);\n System.out.println(\"Connected to Server Successfully.\");\n }catch(Exception e) {\n System.out.println(e.getMessage());\n }\n }", "public void initConnection() throws DatabaseConnectionException, SQLException {\n\t\t\tString connectionString = DBMS+\"://\" + SERVER + \":\" + PORT + \"/\" + DATABASE;\n\t\t\ttry{\n\t\t\t\tClass.forName(DRIVER_CLASS_NAME).newInstance();\n\t\t\t}catch(Exception e){\n\t\t\t\tSystem.err.println(\"IMPOSSIBILE TROVARE DRIVER\");\n\t\t\t\n\t\t\t}\n\t\t\ttry{\n\t\t\t\tconn=DriverManager.getConnection(connectionString, USER_ID, PASSWORD);\n\t\t\t\t\n\t\t\t}catch(SQLException e){\n\t\t\t\tSystem.err.println(\"IMPOSSIBILE STABILIRE CONNESSIONE DATABASE\");\n\t\t\t\t\n\t\t\t}\n\t\t}", "private void makeSQLConn() {\n\t\ttry {\n\t\t\tmyDB = new MySQLAccess();\n\t\t} catch (Exception e) { e.printStackTrace(); }\n\t}", "public DatabaseManager() {\n try {\n con = DriverManager.getConnection(DB_URL, \"root\", \"marko\");\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public void connect()\n\t{\n\t\t//Database driver required for connection\n\t\tString jdbcDriver = \"com.mysql.jdbc.Driver\";\n\t\t\n\t\ttry\n\t\t{\n\t\t\t//Loading JDBC Driver class at run-time\n\t\t\tClass.forName(jdbcDriver);\n\t\t}\n\t\tcatch (Exception excp)\n\t\t{\n\t\t\tlog.error(\"Unexpected exception occurred while attempting user schema DB connection... \" + excp.getMessage());\n\t\t}\t\t\n\t\t\n\t\tlog.info(\"Initiating connection to user schema database \" + dbUrl + \"...\");\n\t\t\n\t\ttry\n\t\t{\n\t\t\tdbConnection = DriverManager.getConnection(dbUrl, dbUsername, dbPassword);\n\t\t}\n\t\tcatch (SQLException sqle)\n\t\t{\n\t\t\tdbConnection = null;\n\t\t\tlog.error(\"SQLException occurred while connecting to user schema database... \" + sqle.getMessage());\n\t\t}\n\t}", "private Connection connect_db() {\n MysqlDataSource dataSource = new MysqlDataSource();\n dataSource.setUser(db_user);\n dataSource.setPassword(db_pass);\n dataSource.setServerName(db_url);\n dataSource.setDatabaseName(db_database);\n\n Connection conn = null;\n try {\n conn = dataSource.getConnection();\n conn.setAutoCommit(false);\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n return conn;\n }", "public static Connection initializeDatabase()\n throws SQLException, ClassNotFoundException\n {\n \t\n \tString dbDriver = \"com.mysql.cj.jdbc.Driver\";\n String dbURL = \"jdbc:mysql://localhost:3306/\";\n // Database name, database user and password to access\n String dbName = \"jaltantra_db\";\n String dbUsername = \"root\";\n String dbPassword = \"jaldb@2050\";\n \n Class.forName(dbDriver);\n Connection conn = DriverManager.getConnection(dbURL + dbName ,dbUsername, dbPassword);\n return conn;\n }", "private void connect() {\n\t\t//\n\t\ttry {\n\t\t\tconn = DriverManager.getConnection(logInfo, user, pwd);\n\t\t\tsmt = conn.createStatement();\n\t\t\tif (conn != null) {\n\t\t\t\tSystem.out.println(\"[System:] Postgres Connection successful\");\n\t\t\t\tstatus = true;\n\t\t\t} else {\n\t\t\t\tSystem.err.println(\"Failed to make connection!\");\n\t\t\t\tstatus = false;\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tSystem.err.println(\"Connection Failed!\");\n\t\t\te.printStackTrace();\n\t\t\tstatus = false;\n\t\t}\n\t\t\n\t}", "public Connection connectToDb() throws Exception\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\r\n\t\t\tString url= \"jdbc:mysql://83.212.122.254:3306/travlos\";\r\n\t\t\tString username=\"travlos\";\r\n\t\t\tString password=\"travlos\";\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"found\");\r\n\t\t\t\r\n\t\t\t\r\n\t\tConnection con=null;\t\r\n\t\t\tcon=DriverManager.getConnection(url, username, password);\r\n\t\t\tStatement statement= con.createStatement();\r\n\t\t\t\r\n\t System.out.println(\"egine syndesh!\");\r\n\t return con;\r\n\t\t\r\n\t\t}\r\n\t\tcatch (SQLException ee)\r\n\t\t{\r\n\t\t\tthrow new RuntimeException(\"cannot connect the database!\", ee);\r\n\t\t}\r\n\t\r\n\t\r\n\t}", "public void connect(){\r\n\t\tSystem.out.println(\"Connecting to Sybase Database...\");\r\n\t}", "private void connect() {\n try {\n Class.forName(\"org.sqlite.JDBC\");\n this.conn = DriverManager.getConnection(\"jdbc:sqlite:settings.db\");\n } catch (ClassNotFoundException | SQLException e) {\n System.err.println(e.getClass().getName() + \": \" + e.getMessage());\n System.exit(0);\n }\n }", "public void openDB() {\n\n\t\t// Connect to the database\n\t\tString url = \"jdbc:mysql://localhost:2000/X__367_2020?user=X__367&password=X__367\";\n\t\t\n\t\ttry {\n\t\t\tconn = DriverManager.getConnection(url);\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"using url:\"+url);\n\t\t\tSystem.out.println(\"problem connecting to MariaDB: \"+ e.getMessage());\t\t\t\n\t\t\t//e.printStackTrace();\n\t\t}\n\n\t}", "public ConnectDB(){\r\n\r\n\t}", "private void apriConnessione() throws SQLException, InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException, ClassNotFoundException {\n\t\tString password, user;\n\t\tDatabaseProps dbConf = config.getDb();\n\n\t\tClass.forName(dbConf.getDriver()).getDeclaredConstructor().newInstance();\n\n\t\tuser = dbConf.getUsername();\n\t\tpassword = dbConf.getPassword();\n\n\t\tString uri = String.format(\"jdbc:%s://%s:%d/%s\", dbConf.getDbms(), dbConf.getHost(), dbConf.getPort(), dbConf.getName());\n\n\t\tconnessioneDB = DriverManager.getConnection(uri, user, password);\n\t}", "public void openConnection(){\r\n try {\r\n Driver dr = new FabricMySQLDriver();\r\n DriverManager.registerDriver(dr);\r\n log.info(\"registrable driver\");\r\n } catch (SQLException e) {\r\n log.error(e.getMessage());\r\n e.printStackTrace();\r\n }\r\n try {\r\n connection = DriverManager.getConnection(URL, USERNAME, PASSWORD);\r\n log.info(\"get connection\");\r\n } catch (SQLException e) {\r\n log.error(e.getMessage());\r\n e.printStackTrace();\r\n }\r\n }", "public void connect() throws NamingException, SQLException {\n if (con != null) disconnect();\n try {\n \tString url = \"jdbc:postgresql://localhost/stocksim\";\n \tProperties props = new Properties();\n props.setProperty(\"user\", \"ubuntu\");\n props.setProperty(\"password\", \"reverse\");\n con = DriverManager.getConnection(url, props);\n \n // Prepare statements:\n for (PreparedStatementID i: PreparedStatementID.values()) {\n PreparedStatement preparedStatement = con.prepareStatement(i.sql);\n _preparedStatements.put(i, preparedStatement);\n }\n } catch (SQLException e) {\n if (con != null) disconnect();\n throw e;\n }\n }", "private void createDBConnection() {\n try {\n Class.forName(\"com.mysql.jdbc.Driver\");\n Connection con = DriverManager.getConnection(\n \"jdbc:mysql://10.27.8.144:3306/databasename5\", \"user5\", \"p4ssw0rd\");\n Statement stmt = con.createStatement();\n ResultSet rs = stmt.executeQuery(\"select * from emp\");\n while (rs.next())\n System.out.println(rs.getInt(1) + \" \" + rs.getString(2) + \" \" + rs.getString(3));\n con.close();\n } catch (Exception e) {\n System.out.println(e);\n }\n }", "public Connection connect()\r\n\t\t {\r\n\t\t Connection con = null;\r\n\t\t try\r\n\t\t {\r\n\t\t Class.forName(\"com.mysql.jdbc.Driver\");\r\n\r\n\t\t //Provide the correct details: DBServer/DBName, username, password\r\n\t\t con = DriverManager.getConnection(\"jdbc:mysql://127.0.0.1:3308/paf\", \"root\", \"\");\r\n\t\t \r\n\t\t//For testing\r\n\t\t System.out.print(\"Successfully connected\"); \r\n\t\t \r\n\t\t }\r\n\t\t catch (Exception e)\r\n\t\t {e.printStackTrace();}\r\n\t\t return con;\r\n\t\t }", "private void connect() {\n try {\n Class.forName(\"com.microsoft.sqlserver.jdbc.SQLServerDriver\");\n cnt = DriverManager.getConnection(hosting, user, pass);\n } catch (Exception e) {\n e.printStackTrace();\n JOptionPane.showMessageDialog(this, \"lỗi kết nối\");\n }\n }", "public void OpenDB() {\n\t\tString JDriver = \"com.microsoft.sqlserver.jdbc.SQLServerDriver\";// 数据库驱动\n\t\tSystem.out.println(\"数据库驱动成功\");\n\t\tString connectDB = \"jdbc:sqlserver://localhost:1433;DatabaseName=bookstoreDB\";// 数据库连接\n\t\ttry {\n\t\t\tClass.forName(JDriver);// 加载数据库引擎,返回给定字符串名的类\n\t\t} catch (ClassNotFoundException e) {// e.printStackTrace();\n\t\t\tSystem.out.println(\"加载数据库引擎失败\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\ttry {\n\t\t\tconDB = DriverManager.getConnection(connectDB, \"sa\", \"123456\");// 连接数据库对象\n\t\t\tSystem.out.println(\"连接数据库成功\");\n\t\t\tstaDB = conDB.createStatement();\n\t\t} // 创建SQL命令对象\n\t\tcatch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(\"数据库连接错误\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "private void connect() throws SQLException, ClassNotFoundException,\n\t\t\tInstantiationException, IllegalAccessException {\n\t\tClass.forName(driver);\n\n\t\t// Setup the connection with the DB\n\t\tconnection = DriverManager.getConnection(url + dbName, userName,\n\t\t\t\tpassword);\n\t}", "public Connection connect(){\n try{\n Class.forName(\"com.mysql.jdbc.Driver\");\n System.out.println(\"Berhasil koneksi ke JDBC Driver MySQL\");\n }catch(ClassNotFoundException ex){\n System.out.println(\"Tidak Berhasil Koneksi ke JDBC Driver MySQL\");\n }\n //koneksi ke data base\n try{\n String url=\"jdbc:mysql://localhost:3306/enginemounting\";\n koneksi=DriverManager.getConnection(url,\"root\",\"\");\n System.out.println(\"Berhasil koneksi ke Database\");\n }catch(SQLException e){\n System.out.println(\"Tidak Berhasil Koneksi ke Database\");\n }\n return koneksi;\n}", "private Database() throws SQLException {\n con = DriverManager.getConnection(\"jdbc:oracle:thin:@localhost:1521:MusicAlbums\", \"c##dba\", \"sql\");\n }", "public void initConnection(){\n \t String HOST = \"jdbc:mysql://10.20.63.22:3306/cloud\";\n String USERNAME = \"root\";\n String PASSWORD = \"test\";\n try {\n Class.forName(\"com.mysql.jdbc.Driver\");\n } catch (ClassNotFoundException ex) {\n ex.printStackTrace();\n }\n \n try {\n conn = DriverManager.getConnection(HOST, USERNAME, PASSWORD);\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "public void initConnection() throws SQLException{\n\t\tuserCon = new UserDBHandler(\"jdbc:mysql://127.0.0.1:3306/users\", \"admin\", \"admin\");\n\t\tproductCon = new ProductDBHandler(\"jdbc:mysql://127.0.0.1:3306/products\", \"admin\", \"admin\");\n\t}", "public static void setUpConnection()\n\t{\n\t\ttry{\n\t\t\t//The information necessary to create a connection to the database, need to figure out what this will be\n\t\n\t\t\n\t\t\t// Register driver by finding the class that corresponds do it \n\t\t\tString driverName = \"oracle.jdbc.OracleDriver\"; \n\t\t\tClass.forName(driverName);\n\t\t\n\t\t\tconn = DriverManager.getConnection(URL, USR, PWD);\n\t\t\n\t\t\tSystem.out.println(\"Connected to C325.\");\n\t\t}catch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private static Connection connectToDB() {\n\t\t\tConnection con = null;\n\t\t\ttry {\n\t\t\t\t// Carichiamo un driver di tipo 1 (bridge jdbc-odbc).\n\t\t\t\t//String driver = \"sun.jdbc.odbc.JdbcOdbcDriver\";\n\t\t\t\tClass.forName(DRIVER);\n\t\t\t\t// Creiamo la stringa di connessione.\n\t\t\t\t// Otteniamo una connessione con username e password.\n\t\t\t\tcon = DriverManager.getConnection (URL, USER, PSW);\n\t\t\t\t\n\t\t\t\t\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn con;\n\t\t}", "private Connection connect()\n\t{\n\t\tConnection con = null;\n\t\t\n\t\ttry\n\t\t{\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\n\t\t\t//Provide the correct details: DBServer/DBName, username, password\n\t\t\tcon = DriverManager.getConnection(\"jdbc:mysql://127.0.0.1:3306/project? useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC\", \"root\", \"\");\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n \n\t\treturn con;\n \n\t}", "public Connection connect() {\n // SQLite connection string\n String url = \"jdbc:sqlite:c:/Carapaca/server/db/database.db\";\n Connection conn = null;\n try {\n conn = DriverManager.getConnection(url);\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n return conn;\n }", "public connect_db() {\n initComponents();\n }", "public void connectToDatabase() throws SQLException\r\n {\r\n TimeZone timeZone = TimeZone.getTimeZone(\"AEST\");\r\n TimeZone.setDefault(timeZone);\r\n myConn = DriverManager.getConnection(getconn + dbname, user, pass);\r\n myStmt = myConn.createStatement();\r\n }", "public static void establishConnection()throws IOException, SQLException {\n connection= DriverManager.getConnection(\n Configuration.fileReader(\"dbhostname\"),\n Configuration.fileReader(\"dbusername\"),\n Configuration.fileReader(\"dbpassword\"));\n statement=connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);\n }", "private void conntest() {\n\t\tDatabaseDao ddao = null;\r\n\t\tString url;\r\n\r\n\t\tif (dbType.getValue().toString().toUpperCase()\r\n\t\t\t\t.equals((\"oracle\").toUpperCase())) {\r\n\t\t\turl = \"jdbc:oracle:thin:@\" + logTxtIp.getText() + \":\"\r\n\t\t\t\t\t+ logTxtPort.getText() + \"/\" + logTxtSdi.getText();\r\n\t\t\tSystem.out.println(\"?\");\r\n\t\t\tddao = new OracleDaoImpl();\r\n\t\t} else {\r\n\t\t\turl = \"jdbc:mysql://\" + logTxtIp.getText() + \":\"\r\n\t\t\t\t\t+ logTxtPort.getText() + \"/\" + logTxtSdi.getText();\r\n\t\t\tddao = new MysqlDaoImpl();\r\n\t\t}\r\n\t\tSystem.out.println(url);\r\n\t\tString result = ddao.connection(url, logTxtId.getText(),\r\n\t\t\t\tlogTxtPw.getText());\r\n\t\tString resultSet;\r\n\t\tif (result.indexOf(\"오류\") != -1)\r\n\t\t\tresultSet = result.substring(result.indexOf(\"오류\"));\r\n\t\telse if (result.indexOf(\"ORA\") != -1)\r\n\t\t\tresultSet = result.substring(result.indexOf(\"ORA\"));\r\n\t\telse {\r\n\t\t\tresultSet = \"접속 테스트 성공\";\r\n\t\t}\r\n\t\tlogLblLogin.setText(resultSet);\r\n\t}", "public Connection OpenConnection() {\n try {\n //obtenemos el driver para SQLSERVER\n Class.forName(driver);\n //obtenemos la conexion\n con = DriverManager.getConnection(url, user, pass);\n if (con != null) {\n System.out.println(\"OK base de datos \" + bd + \" listo\");\n }\n } catch (ClassNotFoundException | SQLException e) {\n e.printStackTrace();\n }\n return con;\n }", "public Connection connect(){\n Connection con = null; \n try {\n Class.forName(DB_DRIVE_NAME).newInstance();\n con = DriverManager.getConnection(CONNECTION_URL, DB_CONNECTION_USERNAME, DB_CONNECTION_PASSWORD); \n }catch (Exception e) {\n System.err.println(\"Cannot connect to database server\");\n System.err.println(e);\n }\n return con;\n }", "@Override\n public void initializeConnection() throws SQLException, ClassNotFoundException {\n \n Class.forName(\"com.mysql.jdbc.Driver\");\n //setConnection(DriverManager.getConnection(\"jdbc:mysql://localhost/rabidusDB\",\"root\",\"password\"));\n setConnection(DriverManager.getConnection( host + \":3306/\" + databaseName, user, password));\n \n }", "private void connect() {\n connectionString = \"jdbc:mysql://\" + Config.getInstance().getMySQLServerName() + \":\" + Config.getInstance().getMySQLServerPort() + \"/\" + Config.getInstance().getMySQLDatabaseName();\n\n try {\n Assassin.p.getLogger().info(\"Attempting connection to MySQL...\");\n\n // Force driver to load if not yet loaded\n Class.forName(\"com.mysql.jdbc.Driver\");\n Properties connectionProperties = new Properties();\n connectionProperties.put(\"user\", Config.getInstance().getMySQLUserName());\n connectionProperties.put(\"password\", Config.getInstance().getMySQLUserPassword());\n connectionProperties.put(\"autoReconnect\", \"false\");\n connectionProperties.put(\"maxReconnects\", \"0\");\n connection = DriverManager.getConnection(connectionString, connectionProperties);\n\n Assassin.p.getLogger().info(\"Connection to MySQL was a success!\");\n }\n catch (SQLException ex) {\n connection = null;\n\n if (reconnectAttempt == 0 || reconnectAttempt >= 11) {\n Assassin.p.getLogger().severe(\"Connection to MySQL failed!\");\n printErrors(ex);\n }\n }\n catch (ClassNotFoundException ex) {\n connection = null;\n\n if (reconnectAttempt == 0 || reconnectAttempt >= 11) {\n Assassin.p.getLogger().severe(\"MySQL database driver not found!\");\n }\n }\n }", "public void connect()\n\t{\n try{\n \tClass.forName(\"com.mysql.jdbc.Driver\").newInstance();\n \tconn = DriverManager.getConnection(url,user,pwd);\n \tSystem.out.println(\"Connected...\");\n }\n \n catch(Exception se){\n \tse.printStackTrace();\n }\n\t}", "private static Connection connect(){\n Connection conn = null;\n try{\n Class.forName(\"org.sqlite.JDBC\");\n conn = DriverManager.getConnection(\"jdbc:sqlite:devices.db\");\n } catch (ClassNotFoundException | SQLException e){\n System.out.println(e.toString());\n }\n return conn;\n }", "private static Connection getConnection() throws SQLException, IOException {\n Properties properties = new Properties();\n properties.setProperty(\"user\", \"root\");\n properties.setProperty(\"password\", \"bulgariavarna\");\n\n return DriverManager.getConnection(CONNECTION_STRING + \"minions_db\", properties);\n }", "public static void connect() {\n\t\tString url = \"jdbc:sqlite:C:/sqlite/db/sample.db\";\r\n\t\ttry {\r\n\t\t\tconn= DriverManager.getConnection(url);\r\n\t\t\tSystem.out.println(\"연결성공!!!\");\r\n\t\t\t\r\n//\t\t\tPreparedStatement psmt = conn.prepareStatement(\"select * from person\");\r\n//\t\t\tResultSet rs =psmt.executeQuery();\r\n//\t\t\t\r\n//\t\t\twhile(rs.next()) {\r\n//\t\t\t\tSystem.out.printf(\"id: %3d, name: %4s, age: %2d, phone: %10s\",rs.getInt(\"id\"),rs.getString(\"name\"),rs.getInt(\"age\"),rs.getString(\"phone\"));\r\n//\t\t\t\tSystem.out.println();//줄바꿈\r\n//\t\t\t}\r\n\t\t\t\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n//\t\t\tfinally {\r\n//\t\t\tif(conn!=null) {\r\n//\t\t\t\ttry {\r\n//\t\t\t\t\tconn.close();\r\n//\t\t\t\t} catch (SQLException e) {\r\n//\t\t\t\t\te.printStackTrace();\r\n//\t\t\t\t}\r\n//\t\t\t}\r\n//\t\t}\r\n\t}", "private Connection connect() {\n\t\tConnection con = null;\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\n\t\t\t// Provide the correct details: DBServer/DBName, username, password\n\t\t\tcon = DriverManager.getConnection(\"jdbc:mysql://127.0.0.1:3306/paymentdb?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC\", \"root\", \"\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn con;\n\t}", "public DataHandlerDBMS() {\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\tDBMS = DriverManager.getConnection(url);\n\t\t\tSystem.out.println(\"DBSM inizializzato\");\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"Errore apertura DBMS\");\n\t\t\te.printStackTrace();\n\t\t} catch (ClassNotFoundException e) {\n\t\t\tSystem.out.println(\"Assenza driver mySQL\");\n\t\t}\n\t}", "public Connection DbConnection() throws Exception {\n Class.forName(\"com.mysql.jdbc.Driver\");\n\n // Creating a new connection\n // String myDB = \"jdbc:sqlite:C:\\\\Users\\\\kapersky\\\\Documents\\\\NetBeansProjects\\\\Library Management System\\\\src\\\\librarydb.db\";\n String myDB = \"jdbc:mysql://localhost:3306/librarydb\";\n con = DriverManager.getConnection(myDB, \"root\", \"\");\n return con;\n\n }", "public void createConnection()\n\t{\n\t\ttry\n {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n // Get a connection\n conn = DriverManager.getConnection(dbURL, \"root\", \"root\"); \n System.out.println(\"Connected...\");\n }\n catch (Exception except)\n {\n except.printStackTrace();\n }\n\t}", "private static void setConnection(){\n try{\n Class.forName(\"com.mysql.jdbc.Driver\");\n con = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/novel_rental\",\"root\",\"\");\n } catch (Exception e) {\n Logger.getLogger(NovelRepository.class.getName()).log(Level.SEVERE, null, e);\n System.out.println(e.getMessage());\n }\n }", "public void connect(){\n try {\n Class.forName(\"com.mysql.jdbc.Driver\");\n } catch (ClassNotFoundException ex) {\n System.out.println(\"ClassNotFoundException in connect()\");\n }\n try {\n connection = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/pmt\", \"root\", \"\");\n } catch (SQLException ex) {\n System.out.println(\"SQLException in connect()\");\n }\n \n }", "protected static Connection connect() {\n // SQLite connection string\n String url = \"jdbc:sqlite:database1.db\";\n Connection conn = null;\n try {\n conn = DriverManager.getConnection(url);\n } catch (SQLException e) {\n System.out.println(\"Connect: \" + e.getMessage());\n }\n return conn;\n }", "protected void openConnection() {\n\t\ttry {\n\t\t\tconn = DriverManager.getConnection(\"jdbc:sqlite:\" + name);\n\t\t\tif (conn == null) {\n\t\t\t\tconnectionOpened = false;\n\t\t\t} else {\n\t\t\t\tconnectionOpened = true;\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"Connect problem: \" + e.getMessage());\n\t\t\tconn = null;\n\t\t}\n\t}", "private void makeConnection() {\n try {\n InitialContext ic = new InitialContext();\n DataSource ds = (DataSource) ic.lookup(dbName);\n\n con = ds.getConnection();\n } catch (Exception ex) {\n throw new EJBException(\"Unable to connect to database. \" + ex.getMessage());\n }\n }", "private void getConnection() {\n con = this.dbc.getMySQLConnection();\n Logger.getLogger(SettingImplementation.class.getName()).log(Level.SEVERE, \"Connection Basic >>>>>\" + con);\n }", "private void getConnection() {\r\n\r\n\t\ttry {\r\n\t\t\tClass.forName(driver);\r\n\t\t\tconn = DriverManager.getConnection(url, id, pw);\r\n\t\t\tSystem.out.println(\"[접속성공]\");\r\n\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\tSystem.out.println(\"error: 드라이버 로딩 실패 -\" + e);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"error:\" + e);\r\n\t\t}\r\n\r\n\t}", "void getConnectiondb() throws SQLException, ClassNotFoundException{\n // TODO code application logic here\n \n String user = \"root\";\n String pass = \"test\";\n\n myConn = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/aud_jdbms\", user, pass);\n \n\n \n }", "public DatabaseConnector() {\n HikariConfig config = new HikariConfig();\n config.setJdbcUrl(\"jdbc:postgresql://localhost:5547/go_it_homework\");\n config.setUsername(\"postgres\");\n config.setPassword(\"Sam@64hd!+4\");\n this.ds = new HikariDataSource(config);\n ds.setMaximumPoolSize(5);\n }", "public static void dbConnect() throws SQLException, ClassNotFoundException {\n try {\n Class.forName(JDBC_DRIVER);\n } catch (ClassNotFoundException e) {\n System.out.println(\"Where is your MySQL JDBC Driver?\");\n e.printStackTrace();\n throw e;\n }\n\n try {\n conn = DriverManager.getConnection(url, userName, password);\n } catch (SQLException e) {\n System.out.println(\"Connection Failed! Check output console\" + e);\n e.printStackTrace();\n throw e;\n }\n }", "public void setupConnection()\n\t{\n\t\ttry\n\t\t{\n\t\t\tdatabaseConnection = DriverManager.getConnection(connectionString);\n\t\t}\n\t\tcatch (SQLException currentException)\n\t\t{\n\t\t\tdisplaySQLErrors(currentException);\n\t\t}\n\t}", "protected void initializeDB() {\r\n try {\r\n // Load the JDBC driver\r\n // Class.forName(\"oracle.jdbc.driver.OracleDriver\");\r\n Class.forName(\"com.mysql.jdbc.Driver \");\r\n\r\n System.out.println(\"Driver registered\");\r\n\r\n // Establish connection\r\n /*Connection conn = DriverManager.getConnection\r\n (\"jdbc:oracle:thin:@drake.armstrong.edu:1521:orcl\",\r\n \"scott\", \"tiger\"); */\r\n Connection conn = DriverManager.getConnection(\r\n \"jdbc:mysql://localhost/javabook\" , \"scott\", \"tiger\");\r\n System.out.println(\"Database connected\");\r\n\r\n // Create a prepared statement for querying DB\r\n pstmt = conn.prepareStatement(\r\n \"select * from Scores where name = ?\");\r\n }\r\n catch (Exception ex) {\r\n System.out.println(ex);\r\n }\r\n }" ]
[ "0.8132343", "0.8106455", "0.80734146", "0.79395664", "0.788702", "0.78714114", "0.78585935", "0.7779267", "0.771905", "0.77161837", "0.7650062", "0.76437056", "0.7624486", "0.7622875", "0.757597", "0.75692666", "0.7527425", "0.75084", "0.75079095", "0.75068474", "0.7504347", "0.7443884", "0.7442241", "0.7426809", "0.74267423", "0.74247634", "0.7423195", "0.74213815", "0.7420539", "0.7417541", "0.7400162", "0.73785937", "0.73723805", "0.73647064", "0.7351816", "0.7343603", "0.7337264", "0.7334492", "0.73286647", "0.7327786", "0.7322775", "0.73174304", "0.73163384", "0.73162943", "0.7312152", "0.7300354", "0.7293703", "0.72839797", "0.7279842", "0.7277248", "0.727249", "0.72723585", "0.726875", "0.7268099", "0.7267008", "0.7257832", "0.7249231", "0.7245533", "0.72443694", "0.72397095", "0.72303617", "0.72298557", "0.72189265", "0.7209704", "0.720505", "0.7204963", "0.7191209", "0.7189097", "0.7184934", "0.71820873", "0.71776986", "0.71757466", "0.7173182", "0.71584094", "0.71561897", "0.71501654", "0.71462315", "0.7145371", "0.7138701", "0.71337175", "0.7132072", "0.71275383", "0.7122006", "0.7116826", "0.7111801", "0.71020365", "0.7088765", "0.7088323", "0.7085299", "0.70814556", "0.70757794", "0.7072855", "0.7067423", "0.70584655", "0.70573163", "0.7057177", "0.7048554", "0.704852", "0.704733", "0.7040902", "0.70348114" ]
0.0
-1
you can use a String and convert that to a Char[]. Like below.
public static void main(String[] args) { String sampleStr="test a is this"; char sampleInput[] = sampleStr.toCharArray(); //char[] sampleInput= new char[] {'t','e','s','t',' ','a',' ','i','s',' ','t','h','i','s',' ','h','i'}; System.out.println("Original String # "); for (char c : sampleInput) { System.out.print(c); } reverseWord(sampleInput, 0, sampleInput.length-1); System.out.println("\nReverted String # "); for (char c : sampleInput) { System.out.print(c); } int startindx=0; for(int j=0; j<=sampleInput.length; j++) { if(j == sampleInput.length || sampleInput[j]==' ') { reverseWord(sampleInput,startindx,j-1); startindx=j+1; } } System.out.println("\nFinal String # "); for(int i=0;i<sampleInput.length;i++) System.out.print(sampleInput[i]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static Character[] toCharArray(String str){\n\t \n\t Character[] charArray = new Character[str.length()];\n\t for(int i = 0; i < charArray.length; i++){\n\t\t \n\t\t charArray[i] = new Character(str.charAt(i));\n\t }\n\t \n\t return charArray;\n }", "char[] toCharArray();", "public char[] getArray(String str) {\n\t\tstr = str.trim();\n\t\tchar[] result = new char[str.length()];\n\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\tresult[i] = str.charAt(i);\n\n\t\t}\n\n\t\treturn result;\n\t}", "private static Character[] stringToArray(String s) {\n\t\tint len = s.length();\n\t\tCharacter[] testArray = new Character[len];\n\t\tfor(int i = 0; i < len; i++) {\n\t\t\ttestArray[i] = s.charAt(i);\n\t\t}\n\t\tassert(testArray.length == s.length());\n\t\treturn testArray;\n\t}", "public char[] getCharArray(String name)\r\n {\r\n String[] raw = getString(name).split(\",\");\r\n char[] data = new char[raw.length];\r\n for( int i=0; i<raw.length; i++ )\r\n data[i] = raw[i].charAt(0);\r\n \r\n return data;\r\n }", "public static char[] strinigToCharArray(String str) {\r\n // str.getChars(0, 0, dst, 0);\r\n return str.toCharArray();\r\n }", "public static char[] toCharArray(CharSequence seq) {\n int len = seq.length();\n switch (len) {\n case 0:\n return EMPTY_CHARS;\n case 1:\n return new char[]{seq.charAt(0)};\n case 2:\n return new char[]{seq.charAt(0), seq.charAt(1)};\n case 3:\n return new char[]{seq.charAt(0), seq.charAt(1), seq.charAt(2)};\n case 4:\n return new char[]{seq.charAt(0), seq.charAt(1), seq.charAt(2), seq.charAt(3)};\n case 5:\n return new char[]{seq.charAt(0), seq.charAt(1), seq.charAt(2), seq.charAt(3), seq.charAt(4)};\n default:\n char[] result = new char[len];\n for (int i = 0; i < len; i++) {\n result[i] = seq.charAt(i);\n }\n return result;\n }\n }", "private String[] toArray(String str) { String arr[] = new String[1]; arr[0] = str; return arr; }", "@Test\n\tpublic void test1(){\n\t\t\n\t\tString str = \"abc\";\n\t\tbyte[] vs = str.getBytes();\n\t\tchar[] ca = str.toCharArray();\n\t\tfor (byte b : vs) {\n\t\t\tSystem.out.println(b);\n\t\t}\n\t\tfor (char c : ca) {\n\t\t\tSystem.out.println(c);\n\t\t}\n\t\tSystem.out.println(Arrays.toString(ca));\n\t\t\n\t}", "public static List<Character> stringToCharArray( String str ) {\n List<Character> charactersOfString = new ArrayList<Character>();\n char[] letters = str.toCharArray();\n for( char c : letters ) \n charactersOfString.add( c );\n return charactersOfString;\n }", "public char[] toChars() {\n\t\tchar[] chars = new char[this.s.length()];\n\t\tfor (int i = 0; i < chars.length; i++) {\n\t\t\tchars[i] = this.s.charAt(i);\n\t\t}\n\t\treturn chars;\n\t}", "public char[] toCharArray() {\n\t\t// Cannot use Arrays.copyOf because of class initialization order issues\n\t\tchar result[] = new char[value.length];\n\t\tSystem.arraycopy(value, 0, result, 0, value.length);\n\t\treturn result;\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tString charArray = \"Benjamin\";\r\n\t\t\r\n\t\tchar[] myChar = charArray.toCharArray(); //string returns to char\r\n\t\t\r\n\t\tSystem.out.println(Arrays.toString(myChar));\r\n\t\t\r\n\t\tSystem.out.println(\"elements in myChar: \"+myChar.length);\r\n\t\t\r\n\r\n\t\t\r\n\t\tString str =\"\";\r\n\t\tchar mychar[] = {'a', 'b', 'c'};\r\n\t\t\r\n\t\tfor(int i=0; i<mychar.length; i++) {\r\n\t\t\tchar c= mychar[i];\r\n\t\t\tstr+=c;\r\n\t\t\t\r\n\t\t}\r\n\t\tSystem.out.println(\"char to string result is: \"+str);\r\n\t}", "private static char[] input(String string) {\n\t\tchar[] result = new char[4];\n\t\tfor (int i = 0; i < 4; i++)\n\t\t\tresult[i] = string.charAt(i);\n\t\treturn result;\n\t}", "public char[] getAsChars() {\n return (char[])data;\n }", "public static String[] convertStringToArray(String str){\n String[] arr = str.split(strSeparator);\n return arr;\n }", "char[] getCharContent() throws IOException;", "public static char[] toChars(final CharSequence sequence) {\n Objects.requireNonNull(sequence);\n\n final int length = sequence.length();\n char[] chars = new char[length];\n for (int i = 0; i < length; i++) {\n chars[i] = sequence.charAt(i);\n }\n return chars;\n }", "public String[] getStringArray();", "protected static byte[] toByteArray(String str) {\n byte[] bytes = new byte[str.length()];\n for (int i = 0; i < bytes.length; i++) {\n bytes[i] = (byte) str.charAt(i);\n }\n return bytes;\n }", "public static String[] toArray(String input) {\n if (input != null && input.length() > 0) {\n String[] result = new String[1];\n result[0] = input;\n return result;\n } else {\n return new String[0];\n }\n }", "public static char[][] arrayStringAmatrizChar(String[] array) {\n\tchar[][] matriz = new char[array.length][];\n\tfor (int i = 0; i < array.length; i++) {\n\t matriz[i] = array[i].toCharArray();\n\t}\n\treturn matriz;\n }", "public static char[] byteToChar(byte[] byteArray)\n {\n CharBuffer buffer = StandardCharsets.UTF_8.decode(ByteBuffer.wrap(byteArray));\n char[] charArray = new char[buffer.limit()];\n buffer.get(charArray);\n\n return charArray;\n }", "public boolean genStringAsCharArray();", "public String[] getString();", "private static char[] obtenerVectorJuego(String palabara){\n \n\n return palabara.toCharArray();\n }", "@Override\n\t\tpublic byte[] convert(String s) {\n\t\t\treturn s.getBytes();\n\t\t}", "public native char[] __charArrayMethod( long __swiftObject, char[] arg );", "public static Object[] toObjArray(char[] s) {\n\t\tObject[] ret = new Object[s.length];\n\t\tfor (int i = 0; i < s.length; i++)\n\t\t\tret[i] = s[i];\n\t\treturn ret;\n\t}", "public Character[] getCharacters() {\n return chars.toArray(new Character[0]);\n }", "public boolean canUseCharArrays()\n/* */ {\n/* 405 */ return true;\n/* */ }", "public byte[] charToByte(String text, String encoding);", "private byte[] stringToArrayOfByte(String string)\n\t\t\tthrows NumberFormatException {\n\n\t\tbyte[] bytes = new byte[string.length() + 1];\n\n\t\tfor (int i = 0; i < string.length(); i++) {\n\t\t\tbytes[i] = charToByte(string.charAt(i));\n\t\t}\n\n\t\tbytes[string.length()] = nullByte;\n\n\t\treturn bytes;\n\n\t}", "public abstract void read_char_array(char[] value, int offset, int\nlength);", "@Override\n public char[] getChars(int index, int length) throws ArrayIndexOutOfBoundsException {\n if (length == 0) {\n return new char[0];\n }\n \n List<Value> values = array.getValues(index, length);\n char[] result = new char[values.size()];\n for (int i = 0; i < result.length; i++) {\n result[i] = ((CharValue)values.get(i)).charValue();\n }\n return result;\n }", "public static ArrayList<Character> getArray(String name){\n int ID = Integer.parseInt(Pokemon.nameToID(name));\n return getArray(ID);\n }", "private ArrayList<Character> characterArrayListMaker(String s) {\n ArrayList<Character> result = new ArrayList<Character>();\n for (int i = 0; i < s.length(); i++){\n result.add(s.charAt(i));\n }\n return result;\n }", "public static String[] toStringArray(String str) {\r\n\t\tList<Object> list = new ArrayList<Object>();\r\n\t\tfor (StringTokenizer st = new StringTokenizer(str); st.hasMoreTokens(); list.add(st.nextToken()))\r\n\t\t\t;\r\n\r\n\t\treturn toStringArray(list);\r\n\t}", "public static void main(String[] args) {\nScanner scn=new Scanner(System.in);\nSystem.out.print(\"½Ð¿é¤J¤å¦r\");\nString str=scn.nextLine();\nchar[]data=str.toCharArray();\nint len=str.length();\nchar[]data1=new char[len];\nfor(int i=0;i<len;i++){\n\tdata1[i]=data[len-i-1];\n}\nString str2=new String(data1);\nSystem.out.println(data1);\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tString a = \"KOITT\";\r\n\t\tString b = \"Apple\";\r\n\t\tString c = \"Car\";\r\n\t\t\r\n\t\tchar tmp = a.charAt(0);\r\n\t\tchar tmp2 = a.charAt(1);\r\n\t\tchar tmp3 = c.charAt(2);\r\n\t\tchar tmp4 = b.charAt(4);\r\n\t\tchar tmp5 = b.charAt(0);\r\n\r\n\t\t\r\n\t\tchar result [] = {tmp,tmp2,tmp3,tmp4,tmp5};\r\n\t\tSystem.out.print(result);\r\n\t\tSystem.out.println(tmp);\r\n\t\t//int []result = tmp[i]; \r\n\t\t\r\n\t\t\r\n\t}", "public static byte[] array(final String binary_str)\n\t{\n\t\tfinal String[] split_binary = binary_str.split(BYTE_DELIMITER);\n\t\tfinal ByteBuffer decoded_binary_str = ByteBuffer.allocate(split_binary.length);\n\t\tfinal byte base = 2;\n\t\tfor(int byte_index = 0 ; byte_index < split_binary.length; byte_index ++)\n\t\t\tdecoded_binary_str.put((byte)Long.parseLong(split_binary[byte_index], base));\n\t\t\n\t\treturn decoded_binary_str.array();\n\t}", "public char[] getCharacters() {\n return characters;\n }", "public static byte[] encode(CharSequence string) {\r\n try {\r\n return CHARSET.newEncoder().encode(CharBuffer.wrap(string)).array();\r\n } catch (CharacterCodingException e) {\r\n throw new IllegalArgumentException(\"Encoding failed\", e);\r\n }\r\n }", "public static String toString(char[] a) {\n String string = new String(a);\n return string;\n }", "private char[] alphanumeric(){\n StringBuffer buf=new StringBuffer(128);\n for(int i=48; i<= 57;i++)buf.append((char)i); // 0-9\n for(int i=65; i<= 90;i++)buf.append((char)i); // A-Z\n for(int i=97; i<=122;i++)buf.append((char)i); // a-z\n return buf.toString().toCharArray();\n }", "public byte[] charToByte(char char1, String encoding);", "public static boolean[] stringToBooleanArray(String s){\n\t\tboolean[] output = new boolean[s.length()];\n\t\tfor (int i=0; i<s.length(); i++){\n\t\t\tif (s.charAt(i) == '0')\n\t\t\t\toutput[i] = false;\n\t\t\telse\n\t\t\t\toutput[i] = true;\n\t\t}\n\t\treturn output;\n\t}", "public static void main(String[] args ) {\n\n char[] c = {'a','b','c'};\n System.out.println(c.toString());\n System.out.println(String.valueOf(c));\n\n }", "public static char[] getWord() {\n\t\t\n\t\tString[] words = {\"cookie\", \"bacon\", \"steak\", \"apple\", \"doughnut\"};\n\t\tString choice = words[(int)(Math.random() * words.length)];\n\t\tchar[] word = new char[choice.length()];\n\n\t\tfor (int i = 0; i < word.length; i++) {\n\t\t\tword[i] = choice.charAt(i); // Convert Word into charArray\n\t\t}\n\t\treturn word;\n\t}", "public static char[] splitWordChar(String word) {\r\n\t\tchar[] letters = word.toCharArray();\r\n\t\treturn letters;\r\n\t}", "public static byte[] asciiStringToByteArray(String text, int length) {\n return Arrays.copyOf(text.getBytes(Charset.US_ASCII), length);\n }", "public static byte[] hexStringToByteArray(String text) {\r\n StringBuilder builder = new StringBuilder();\r\n for (int i = 0; i < text.length(); i++) {\r\n char c = text.charAt(i);\r\n if (Character.isLetterOrDigit(c))\r\n builder.append(c);\r\n }\r\n String data = builder.toString();\r\n if (data.length() % 2 != 0)\r\n return null;\r\n byte[] ret = new byte[data.length() / 2];\r\n int c = 0;\r\n for (int i = 0; i < data.length(); i += 2) {\r\n String hex = data.substring(i, i + 2);\r\n ret[c] = (byte) Integer.parseInt(hex, 16);\r\n c++;\r\n }\r\n return ret;\r\n }", "private static String[] splitByCharacterType(String str, boolean camelCase) {\n if (str == null) {\n return null;\n }\n if (str.length() == 0) {\n return new String[0];\n }\n char[] c = str.toCharArray();\n ArrayList<String> list = new ArrayList<String>();\n int tokenStart = 0;\n int currentType = Character.getType(c[tokenStart]);\n for (int pos = tokenStart + 1; pos < c.length; pos++) {\n int type = Character.getType(c[pos]);\n if (type == currentType) {\n continue;\n }\n if (camelCase && type == Character.LOWERCASE_LETTER\n && currentType == Character.UPPERCASE_LETTER) {\n int newTokenStart = pos - 1;\n if (newTokenStart != tokenStart) {\n list.add(new String(c, tokenStart, newTokenStart - tokenStart));\n tokenStart = newTokenStart;\n }\n } else {\n list.add(new String(c, tokenStart, pos - tokenStart));\n tokenStart = pos;\n }\n currentType = type;\n }\n list.add(new String(c, tokenStart, c.length - tokenStart));\n return (String[]) list.toArray(new String[list.size()]);\n }", "public static String[] collect2array(Collection<String> c) {\n if (c == null) return new String[0];\n int n = c.size();\n String[] rt = new String[n];\n rt = (String[]) c.toArray(new String[n]);\n return rt;\n }", "public static byte[] GetBytesFromOctetString(String p) throws IOException {\n Charset encoding = StandardCharsets.UTF_8;\n return StringUtility.GetBytesFromOctetString(p, encoding);\n }", "private byte[] convertingTobyteArray(String result) {\n String[] splited = result.split(\"\\\\s+\");\n byte[] valueByte = new byte[splited.length];\n for (int i = 0; i < splited.length; i++) {\n if (splited[i].length() > 2) {\n String trimmedByte = splited[i].split(\"x\")[1];\n valueByte[i] = (byte) convertstringtobyte(trimmedByte);\n }\n\n }\n return valueByte;\n\n }", "public static final String[] toStringArray(String text, String token) {\n\t\tif (text == null || text.length() == 0) {\n\t\t\treturn new String[0];\n\t\t}\n\t\tStringTokenizer tokens = new StringTokenizer(text, token);\n\t\tString[] words = new String[tokens.countTokens()];\n\t\tfor (int i = 0; i < words.length; i++) {\n\t\t\twords[i] = tokens.nextToken();\n\t\t}\n\t\treturn words;\n\t}", "public void stringToChar(String text){\r\n\t\tchArray = new char[6];\r\n\t\t//text converted into char array\r\n\t\tchArray = text.toCharArray();\r\n\t\tfor(int i = 0; i < chArray.length; i++){ \r\n\t\t\t//User entered value outputted\r\n\t\t\tprint(chArray[i]); \r\n\t\t\t//Char values stored into the array\r\n\t\t\tif(i == 0){\r\n\t\t\t\tch1 = chArray[i];\r\n\t\t\t}\r\n\t\t\tif(i == 1){\r\n\t\t\t\tch2 = chArray[i];\r\n\t\t\t}\r\n\t\t\tif(i == 2){\r\n\t\t\t\tch3 = chArray[i];\r\n\t\t\t}\r\n\t\t\tif(i == 3){\r\n\t\t\t\tch4 = chArray[i];\r\n\t\t\t}\r\n\t\t\tif(i == 4){\r\n\t\t\t\tch5 = chArray[i];\r\n\t\t\t}\r\n\t\t\tif(i == 5){\r\n\t\t\t\tch6 = chArray[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\tprintln(\" User Entered Value\");\r\n\t}", "public static byte[] hexToArray(String hex) {\n byte[] result = new byte[hex.length()/2];\n for (int i=0; i<hex.length(); i+=2) {\n result[i/2] = (byte) Integer.parseInt(hex.substring(i, i+2), 16);\n }\n return result;\n }", "public static char[] setCharArray(int n, String line){\n\t char t = line.charAt(0); \n\t char[] arr = new char[n];\n\t if(t < 123 && t > 96){\n\t line = line.toUpperCase();\n\t t = line.charAt(0);\n\t }\n\t if(t > 90 || t < 65){\n\t t = (char)65;\n\t }\n\t for(int i = 0, j = t; i < n; i++, j++){\n\t arr[i] = (char)j;\n\t if(j == 90){\n\t j = 64;\n\t }\n\t }\n\t return arr;\n\t}", "public static byte[] charToByte(TextInputEditText editText)\n {\n int length = editText.length();\n char[] charArray = new char[length];\n editText.getText().getChars(0, length, charArray, 0);\n\n ByteBuffer buffer = StandardCharsets.UTF_8.encode(CharBuffer.wrap(charArray));\n byte[] byteArray = new byte[buffer.limit()];\n buffer.get(byteArray);\n\n return byteArray;\n }", "private byte[] stringToBytes(String bytesInStringForm) {\n byte[] bytes = new byte[16];\n String[] byteValues = bytesInStringForm.split(\",\");\n for (int byteIndex = 0; byteIndex < 16; byteIndex++) {\n bytes[byteIndex] = (byte) Integer.parseInt(byteValues[byteIndex]);\n }\n return bytes;\n\n }", "public static byte[] stringToByteArray(String str) {\r\n return str.getBytes();\r\n }", "public static byte[] toByteArray(String string) {\n byte[]\tbytes = new byte[string.length()];\n char[] chars = string.toCharArray();\n\n for (int i = 0; i != chars.length; i++) {\n bytes[i] = (byte)chars[i];\n }\n\n return bytes;\n }", "public static char[] pedirPalabraSecreta() {\r\n // PedirPalabra\r\n Scanner leer = new Scanner(System.in);\r\n System.out.println(\"Introduce la palabra secreta\");\r\n String palabraSecreta = leer.nextLine();\r\n char[] cadena= palabraSecreta.toCharArray();\r\n for (int i = 0; i < cadena.length; i++) {\r\n cadena[i]=Character.toUpperCase(cadena[i]);\r\n }\r\n return cadena;\r\n }", "private String[] splitLetters(String word) {\n String[] temp = new String[word.length()];\n for (int i = 0; i < word.length(); i++) {\n temp[i] = Character.toString(word.charAt(i)).toUpperCase();\n }\n return temp;\n }", "private boolean[] characterToBitArray(String character) {\n String binaryString = format(\"%4s\", Integer.toBinaryString(parseInt(character, 16))).replace(' ', '0');\n boolean[] bits = new boolean[NUMBER_OF_BITS_PER_CHAR];\n for (int i = 0; i < NUMBER_OF_BITS_PER_CHAR; i++) {\n bits[i] = binaryString.charAt(i) == '1';\n }\n return bits;\n }", "private static char[] m619z(String str) {\n char[] toCharArray = str.toCharArray();\n if (toCharArray.length < 2) {\n toCharArray[0] = (char) (toCharArray[0] ^ 20);\n }\n return toCharArray;\n }", "String[] getData();", "public static void main(String[] args) {\n\n char [] name = new char[5];\n // What default value do we get for char array\n // we get a char represented by ascii code 0\n\n System.out.println(\"<\" + name[0] + \">\");\n\n name [0]= 'A';\n name [1]= 'l';\n name [2]= 'd';\n name [3]= 'e';\n name [4]= 'n';\n\n System.out.print(name[0]);\n System.out.print(name[1]);\n System.out.print(name[2]);\n System.out.print(name[3]);\n System.out.println(name[4]);\n\n // THIS WILL ACTUALLY PRINT THE CONTENT OF CHAR ARRAY NOT MEMORY ADDRESS\n // AND THIS IS ONLY FOR CHAR ARRAY , ANYTHING ELSE WILL PRINT MEMORY ADDRESS\n //System.out.println( nameChars );\n\n\n boolean[] yesNo = new boolean[3];\n System.out.println(yesNo[0]);\n System.out.println(yesNo[1]);\n System.out.println(yesNo[2]);\n\n yesNo[0] = true;\n yesNo[1] = false;\n yesNo[2] = 10 > 7;//true\n\n System.out.println(yesNo[0]);\n System.out.println(yesNo[1]);\n System.out.println(yesNo[2]);\n\n\n }", "public char[] getChars(int row, int column) {\n return columns[column].getChars(row);\n }", "public static void main(String[] args) {\n\t\tString test = \"ddef\";\n\t\t\n\t\tchar[][] array = new char[2][10];\n\t\t\n\t\tarray[0] = test.toCharArray();\n\t\t\n\t\tSystem.out.println(array[0].length);\n\t\t\n\t\tfor (char a : array[0]) {\n\t\t\tSystem.out.println(a);\n\t\t}\n\t}", "private static char[] m6491z(String str) {\n char[] toCharArray = str.toCharArray();\n if (toCharArray.length < 2) {\n toCharArray[0] = (char) (toCharArray[0] ^ 108);\n }\n return toCharArray;\n }", "private static final String[] encode(String src) {\n \n if (src == null || src.length()==0) {\n return (new String[0]);\n }\n \n return StringUtils.split(src, \";\");\n }", "public static byte[] stringToBytes(String string) {\n return string.getBytes(ENCODING);\n }", "public static void main(String[] args) {\n char[] cadeiaCaracter = {'B','E','N','G','I','L'};\n String cadeiaChar = new String(cadeiaCaracter);\n System.out.println(cadeiaChar);\n //Criar string a partir de intervalo de cadeias de caractere\n char[] abcdef = {'A','B','C','D','E','F'};\n String abc = new String(abcdef, 0,3);\n System.out.println(abc);\n //Array de byte, cada byte representa um caractere da tabela ascii\n byte[] ascii = {65,66,67,68,69};\n String abcde = new String(ascii);\n System.out.println(abcde);\n String cde = new String(ascii,1,3);\n System.out.println(cde);\n //Atribuição sem o new\n String let = \"Letícia\";\n String lettis = \"Letícia\";\n System.out.println(let);\n }", "public static void main(String[] args) {\n\n\t\t\n\t\tString a = \"9B768C\";\n\t\tString c = \"\";\n\t\tint leng = a.length();\n\t\tString array[] = new String[leng];\n\t\t\n\t\tfor(int i = 0 ; i<leng; i++) {\n\t\t\tarray[i]= a.substring(i,i+1);\n\t\t\tSystem.out.println(c += array[i]);\n\t\t}\n\t\n\t\t\n\t}", "public String getString_data() { \n char carr[] = new char[Math.min(net.tinyos.message.Message.MAX_CONVERTED_STRING_LENGTH,60)];\n int i;\n for (i = 0; i < carr.length; i++) {\n if ((char)getElement_data(i) == (char)0) break;\n carr[i] = (char)getElement_data(i);\n }\n return new String(carr,0,i);\n }", "static void getCharCountArray(String str) {\n for (int i = 0; i < str.length(); i++)\n count[str.charAt(i)]++;\n }", "private Character[] characterResultsToArray(GenericList<Character> results, Comparator<Character> c) {\n Character[] resultArray = new Character[results.size()];\n int i = 0;\n for(Character characterResult : results) {\n resultArray[i] = characterResult;\n i++;\n }\n MergeSort.sort(resultArray, c);\n return resultArray;\n }", "public static byte[] stringToBytes(String str) {\n\t\tif (str==null)\n\t\t\treturn null;\n\t\tif (str.charAt(str.length()-1)!='\\0') str+='\\0';\n\t\treturn str.getBytes();\n\t}", "public static SList<Character> make(String str) {\n SList<Character> ans = new SList<Character>();\n for (int i=0; i<str.length(); i++)\n ans.add(str.charAt(i));\n return ans;\n }", "public static char[] encode(byte[] in) {\r\n \t\treturn encode(in, in.length);\r\n \t}", "public static void main(String[] args) throws UnsupportedEncodingException {\n\t\tSystem.out.println(\"Ullas\".subSequence(\"Ullas\".length()-2, \"Ullas\".length()));\r\n\t\tSystem.out.println(\"Ullas\".equalsIgnoreCase(\"Ullas\"));\r\n\t\tSystem.out.println(\"Ullas\".compareTo(\"ullas\"));\r\n\t\tSystem.out.println(\"Ullas\".compareTo(\"Ullas\"));\r\n\t\tString str = \"Batman\";\r\n\t\tchar[] charArray = str.toCharArray();\r\n\t\tSystem.out.println(charArray.length);\r\n\t\tchar[] char1 = new char[3];\r\n\t\tstr.getChars(3, 6, char1, 0);\r\n\t\tSystem.out.println(char1);\r\n\t\t//Using\r\n\t\tString str2 = \"Ullas\";\r\n\t\tbyte[] byteArray = str2.getBytes();\r\n\t\tSystem.out.println(Arrays.toString(byteArray));\r\n\t\tbyte[] byteArr = str2.getBytes(\"UTF-8\");\r\n\t\tSystem.out.println(Arrays.toString(byteArr));\r\n\t\tSystem.out.println(new String(byteArr));\r\n\t\tbyte[] byteArray1 = { 80, 65, 78, 75, 65, 74 };\r\n\t\tString str4 = new String(byteArray1, 0, 3, StandardCharsets.UTF_8);\r\n\t\tSystem.out.println(str4);\r\n\r\n\t}", "public char[][] convertArrayChar(int[] array, int n){\r\n\t\tString[] arrayString = new String[n];\r\n\t\tchar[][] numbersOfChars = new char[n][n];\r\n\t\tint count = 0;\r\n\t\tfor (int i = 0; i < arrayString.length; i++) {\r\n\t\t\tarrayString[i] = array[i]+\"\";\r\n\t\t\twhile(count < arrayString[i].length()){\r\n\t\t\t\tnumbersOfChars[i][count] = arrayString[i].charAt(count);\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t\tcount = 0;\r\n\t\t}\r\n\t\treturn numbersOfChars;\r\n\t}", "public String[] parseContent(String s) {\n\t\t\n\t\tint column = 0;\n\t\tint len = s.length();\n\t\tString[] data = new String[110];\n\t\tchar[] ch = s.toCharArray();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i=0; i < len; i++) {\n\t\t\tif (ch[i] == '\\\"') {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (i == len - 1) {\n\t\t\t\tdata[column] = sb.toString();\n\t\t\t}\n\t\t\t\n\t\t\tif ((ch[i] != ',') || ((ch[i] == ',') && (i+1 < len) && (ch[i+1] == ' '))) {\n\t\t\t\tsb.append(ch[i]);\n\t\t\t} else {\n\t\t\t\tif (i == len - 1) {\n\t\t\t\t\tcolumn = 0;\n\t\t\t\t}\t\n\t\t\t\tdata[column] = sb.toString();\n\t\t\t\tsb.setLength(0);\n\t\t\t\tcolumn++;\n\t\t\t}\n\t\t}\n\t\tif (column < 109) {\n\t\t\treturn null;\n\t\t}\n\t\treturn data;\n\t}", "private static byte[] hexStringToByteArray(String s) {\n\t\tint len = s.length();\n\t\tbyte[] data = new byte[len / 2];\n\t\tfor (int i = 0; i < len; i += 2) {\n\t\t\tdata[i / 2] = (byte) ((Character.digit(s.charAt(i), 16) << 4)\n\t\t\t\t\t+ Character.digit(s.charAt(i+1), 16));\n\t\t}\n\t\treturn data;\n\t}", "public char[] getChars(int row, int column) {\n\t\treturn getColumn(column).getChars(subset[row]);\n\t}", "public char[] getLettersArray() {\n\t\treturn this.letters;\n\t}", "public char[][] regenCharTable();", "public static byte[] hextobyte(String keyText) {\n\t\tif (keyText.length() % 2 == 1) {\n\t\t\tthrow new IllegalArgumentException(\"Invalid string format --> invalid size\");\n\t\t}\n\n\t\tbyte[] byteArray = new byte[keyText.length() / 2];\n\t\tchar[] charArray = keyText.toCharArray();\n\n\t\tfor (int i = 0; i < charArray.length;) {\n\t\t\tchar c1 = charArray[i++];\n\t\t\tchar c2 = charArray[i];\n\n\t\t\tif (checkChar(c1) && checkChar(c2)) {\n\t\t\t\tint value = Integer.parseInt(new StringBuilder().append(c1).append(c2).toString(), 16);\n\t\t\t\tbyteArray[i / 2] = (byte) value;\n\t\t\t} else {\n\t\t\t\tthrow new IllegalArgumentException(\"Invalid string format --> invalid character\");\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\n\t\treturn byteArray;\n\t}", "public static byte[] toAscii(String hex) {\n\t\thex = hex.toLowerCase().replaceAll(\"[^0-9a-f]\", \"\");\n\t\tbyte[] res = new byte[hex.length() >> 1];\n\t\tbyte currentByte = 0;\n\t\tfor (int i = 0; i < hex.length(); i++) {\n\t\t\tchar c = hex.charAt(i);\n\t\t\tif ('0' <= c && c <= '9') {\n\t\t\t\tcurrentByte |= (byte) ((c - '0') << ((i + 1) & 1) * 4);\n\t\t\t} else if ('a' <= c && c <= 'f') {\n\t\t\t\tcurrentByte |= (byte) ((10 + c - 'a') << ((i + 1) & 1) * 4);\n\t\t\t}\n\t\t\tif ((i & 1) == 1) {\n\t\t\t\tres[i >> 1] = currentByte;\n\t\t\t\tcurrentByte = 0;\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}", "public char[] convert1D(char[][] board) {\r\n\t\tchar[] result = new char[16];\r\n\t\tint index = 0; \r\n\t\tfor(int i = 0; i < 4; i++) {\r\n\t\t\tfor(int j = 0; j < 4; j++) {\r\n\t\t\t\tresult[index] = board[i][j];\r\n\t\t\t\tindex++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "private static char[] m7947z(String str) {\n char[] toCharArray = str.toCharArray();\n if (toCharArray.length < 2) {\n toCharArray[0] = (char) (toCharArray[0] ^ 16);\n }\n return toCharArray;\n }", "@NotNull\n public static byte[] convertHexToBytes(@NotNull String s) {\n checkNotNull(s);\n int len = s.length();\n checkArgument(len % 2 == 0);\n\n len /= 2;\n byte[] buff = new byte[len];\n for (int i = 0; i < len; i++) {\n buff[i] = (byte) ((getHexDigit(s, i + i) << 4) | getHexDigit(s, i + i + 1));\n }\n return buff;\n }", "public static byte[] toByteArray(String s) {\n return DatatypeConverter.parseHexBinary(s.toUpperCase());\n }", "public static void main(String[] args) {\n\t\tchar[] myChars;\n\t\tmyChars = new char[6];\n\t\tmyChars[0]='A';\n\t\tmyChars[1]='B';\n\t\tmyChars[2]='C';\n\t\tmyChars[3]='D';\n\t\tmyChars[4]='E';\n\t\tmyChars[5]='F';\n\t\tSystem.out.println(myChars[1]);\n\n\t\tchar[] myChars1 = {'A', 'B', 'C', 'D', 'E', 'F'};\n\t\tSystem.out.println(myChars1[1]);\n\t\t\n\t}", "String[] mo1153c();", "@Override \n\t public void characters(char ch[], int start, int length) { \n\t\t \n\t }", "@Override\n public void characters(char ch[], int start, int length) {\n\n }", "public static String[] splitByCharacterTypeCamelCase(String str) {\n return splitByCharacterType(str, true);\n }" ]
[ "0.79111385", "0.76464343", "0.7533727", "0.75282955", "0.73535764", "0.73008746", "0.6890957", "0.6880255", "0.6861824", "0.68064", "0.6796457", "0.67183006", "0.66963243", "0.6627368", "0.6477463", "0.64465207", "0.6428685", "0.6261606", "0.624482", "0.62119484", "0.61732864", "0.6172458", "0.6123494", "0.6120932", "0.61123914", "0.61095756", "0.60860044", "0.60818493", "0.6070943", "0.60361356", "0.6013513", "0.60034376", "0.59892386", "0.5972246", "0.59479874", "0.5920438", "0.5888032", "0.5845063", "0.5839199", "0.58026236", "0.57982975", "0.57741666", "0.5742238", "0.57266486", "0.56989235", "0.56848925", "0.56671506", "0.56558686", "0.564437", "0.5616011", "0.56146723", "0.55864686", "0.55837196", "0.556463", "0.55590475", "0.5547789", "0.554284", "0.5535108", "0.5517925", "0.55121034", "0.55095387", "0.55084944", "0.55010265", "0.547206", "0.5465616", "0.54655135", "0.5461692", "0.5441151", "0.5428069", "0.54264444", "0.5420909", "0.5416388", "0.54157627", "0.54127145", "0.54121137", "0.5403332", "0.53949344", "0.5388163", "0.53819525", "0.5377515", "0.53685826", "0.5365089", "0.5351702", "0.5338783", "0.5338146", "0.5334145", "0.53340155", "0.5329367", "0.5320819", "0.53203344", "0.5319612", "0.531819", "0.531693", "0.5316649", "0.531048", "0.5306907", "0.5305015", "0.53033274", "0.5303266", "0.5299371", "0.5296363" ]
0.0
-1
for testing purposes only
protected ElevatorController(Elevator elevator) { this.elevator = elevator; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "private void test() {\n\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "private void kk12() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "protected void mo6255a() {\n }", "private test5() {\r\n\t\r\n\t}", "public void smell() {\n\t\t\n\t}", "private void m50366E() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n public void func_104112_b() {\n \n }", "public void method_4270() {}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void mo4359a() {\n }", "private void getStatus() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private void strin() {\n\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "private void poetries() {\n\n\t}", "private static void cajas() {\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}", "protected boolean func_70814_o() { return true; }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private void init() {\n\n\t}", "public void mo55254a() {\n }", "public abstract void mo70713b();", "@Override\n protected void init() {\n }", "@Override\n protected void initialize() {\n\n \n }", "public void mo6081a() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "zzafe mo29840Y() throws RemoteException;", "protected void onFirstUse() {}", "private Rekenhulp()\n\t{\n\t}", "public void mo21877s() {\n }", "@Override\n public void init() {\n\n }", "public void gored() {\n\t\t\n\t}", "public abstract void mo56925d();", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n protected void prot() {\n }", "@Override\n protected void initialize() \n {\n \n }", "private ReportGenerationUtil() {\n\t\t\n\t}", "private Util() { }", "@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 dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n public void init() {\n }", "private FlyWithWings(){\n\t\t\n\t}", "protected OpinionFinding() {/* intentionally empty block */}", "private JacobUtils() {}", "@Override\n protected void setup() {\n }", "public void mo3376r() {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "private ProtomakEngineTestHelper() {\r\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n void init() {\n }", "private void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "public void mo21825b() {\n }", "public abstract void mo6549b();", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n public void test() {\n \n }", "public void mo21878t() {\n }", "private void init() {\n\n\n\n }", "@Override\r\n\tpublic void init() {}", "public void mo9848a() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "private MetallicityUtils() {\n\t\t\n\t}", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "private OMUtil() { }", "private void init() {\n }", "public void mo12930a() {\n }", "public void mo21793R() {\n }", "@Override\r\n\tprotected void prepare()\r\n\t{\r\n\r\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}" ]
[ "0.6246619", "0.6131587", "0.61111015", "0.60902524", "0.60390013", "0.6016071", "0.5905562", "0.58250266", "0.5801673", "0.5760208", "0.57391286", "0.5738685", "0.5735511", "0.57245374", "0.5708071", "0.56945705", "0.56945705", "0.56945705", "0.56945705", "0.56945705", "0.56945705", "0.56945705", "0.56914204", "0.5688195", "0.5685624", "0.5674414", "0.56710047", "0.5660293", "0.56561786", "0.5640786", "0.5640786", "0.5640786", "0.5640786", "0.5640786", "0.5640786", "0.5613341", "0.56129754", "0.5611844", "0.5611844", "0.5607749", "0.5594824", "0.55947244", "0.5593187", "0.558023", "0.5569075", "0.55616707", "0.55484706", "0.55466694", "0.55383354", "0.5533348", "0.5531544", "0.552552", "0.549807", "0.54927075", "0.54880095", "0.5485338", "0.5484961", "0.5484961", "0.54792005", "0.54676056", "0.5467239", "0.5463577", "0.5458909", "0.5450193", "0.5450193", "0.544758", "0.5444402", "0.5444156", "0.5443022", "0.5441673", "0.54410183", "0.54406434", "0.54267067", "0.54179394", "0.5416356", "0.54102963", "0.54102963", "0.54077756", "0.54026806", "0.54013216", "0.5399803", "0.53983146", "0.539753", "0.5395048", "0.53941476", "0.5389779", "0.5386557", "0.5384568", "0.53840804", "0.5382913", "0.5382431", "0.5378487", "0.53771037", "0.53771037", "0.5373047", "0.53696305", "0.53691137", "0.5368803", "0.53671455", "0.5362863", "0.5362709" ]
0.0
-1
TODO Autogenerated method stub
protected void openDoors() { }
{ "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
visibility was changed for testing purposes
protected void closeDoors() { timerTask = executorService.submit(new TimerCallable(DOORS_CLOSE_TIME)); Boolean result = false; try { result = timerTask.get(); } catch (InterruptedException e) { System.out.println("thread was interrupt"); e.printStackTrace(); } catch (ExecutionException e) { System.out.println("execution exception"); e.printStackTrace(); } catch (CancellationException ex) { System.out.println("timer task was interrupted"); } if (!result) { System.out.println("thread was interrupted"); openDoors(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "public void mo38117a() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "public void mo4359a() {\n }", "public void smell() {\n\t\t\n\t}", "protected void onFirstUse() {}", "@Override\r\n\tpublic void tires() {\n\t\t\r\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}", "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\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n protected void init() {\n }", "protected void mo6255a() {\n }", "private FlyWithWings(){\n\t\t\n\t}", "private void test() {\n\n\t}", "private void m50366E() {\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n protected void initialize() \n {\n \n }", "public void mo55254a() {\n }", "@Override\n protected void initialize() {\n\n \n }", "private void kk12() {\n\n\t}", "protected boolean func_70814_o() { return true; }", "private test5() {\r\n\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n public void init() {\n\n }", "public void method_4270() {}", "@Override\n public void init() {\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "public void mo6081a() {\n }", "@Override\n protected void prot() {\n }", "private void getStatus() {\n\t\t\n\t}", "@Override\n void init() {\n }", "public void mo1531a() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "private void init() {\n\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public void mo21825b() {\n }", "@Override\n protected void getExras() {\n }", "public void mo12930a() {\n }", "public void mo9848a() {\n }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void interr() {\n\t}", "public void m23075a() {\n }", "private ReportGenerationUtil() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {}", "protected OpinionFinding() {/* intentionally empty block */}", "public final void mo91715d() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void mo21877s() {\n }", "@Override\n public void init() {}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "private MetallicityUtils() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public abstract void mo70713b();", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "private void poetries() {\n\n\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "public void mo3376r() {\n }", "protected Doodler() {\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "protected boolean func_70041_e_() { return false; }", "public void mo12628c() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "protected void init() {\n // to override and use this method\n }", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "public void mo21791P() {\n }", "private ProtomakEngineTestHelper() {\r\n\t}" ]
[ "0.66572857", "0.6403096", "0.6254353", "0.61732596", "0.6103391", "0.60751987", "0.607075", "0.5973502", "0.5973502", "0.5973502", "0.5973502", "0.5973502", "0.5973502", "0.5964245", "0.5962987", "0.59567904", "0.5955674", "0.5952651", "0.5952651", "0.5952013", "0.5952013", "0.5952013", "0.5952013", "0.5952013", "0.5952013", "0.5952013", "0.5922071", "0.59211695", "0.5918321", "0.59138477", "0.5893606", "0.5888229", "0.5880706", "0.58800006", "0.58736336", "0.586251", "0.5842008", "0.58395934", "0.5838992", "0.5795562", "0.579514", "0.57906", "0.5788602", "0.57829386", "0.57774353", "0.5756169", "0.5751219", "0.5751219", "0.57457125", "0.5740608", "0.5738808", "0.5738225", "0.5731306", "0.5719807", "0.57038134", "0.57033336", "0.5686584", "0.56724", "0.56681246", "0.56615907", "0.5661126", "0.5660632", "0.56602556", "0.5652703", "0.56511253", "0.5650328", "0.5647414", "0.56458056", "0.5639063", "0.56384677", "0.5635952", "0.5635952", "0.56301594", "0.56269807", "0.5615278", "0.5612814", "0.5612814", "0.5611935", "0.56081015", "0.56061125", "0.5605522", "0.56028754", "0.5600279", "0.5599909", "0.55981445", "0.5594631", "0.5593459", "0.55866313", "0.55866313", "0.55866313", "0.5584612", "0.5584612", "0.5582083", "0.55797124", "0.5570747", "0.55654866", "0.55654866", "0.55605656", "0.5558539", "0.55560005", "0.55491775" ]
0.0
-1
TODO Autogenerated method stub
private void executeAction(ElevatorAction first) { }
{ "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
Odredjivanje zadane cifre u broju
public static int VratiCifru(int n, int red) { int cifra = 0; for(int i = 0; i < red; i++) { cifra = n % 10; n /= 10; } return cifra; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void rodar(){\n\t\tmeuConjuntoDePneus.rodar();\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}", "@Override\n\tpublic void coba() {\n\t\t\n\t}", "public void zmiana_rozmiaru_okna()\n {\n b.dostosowanie_rozmiaru(getWidth(),getHeight());\n w.dostosowanie_rozmiaru(getWidth(),getHeight());\n\n for (Pilka np : p) {\n np.dostosowanie_rozmiaru(getWidth(),getHeight());\n }\n for (Naboj np : n) {\n np.dostosowanie_rozmiaru(getWidth(),getHeight());\n }\n for (Bonus np : bon) {\n np.dostosowanie_rozmiaru(getWidth(),getHeight());\n }\n\n }", "public static void brisanjeVozila() {\n\t\tint i = 0;\n\t\tfor (Vozilo v : Main.getVozilaAll()) {\n\t\t\tSystem.out.println(i + \"-Vrsta Vozila|\" + v.getVrstaVozila() + \" Registarski broj|\" + v.getRegBR()\n\t\t\t\t\t+ \" Status izbrisanosti vozila|\" + v.isVozObrisano());\n\t\t\ti++;\n\t\t}\n\t\tSystem.out.println(\"----------------------------------------\");\n\t\tSystem.out.println(\"Unesite redni broj vozila koje zelite da izbrisete ili vratite u neobrisano stanje\");\n\t\tint redniBroj = UtillMethod.unesiteInt();\n\t\tif (redniBroj < Main.getVozilaAll().size()) {\n\t\t\tVozilo temp = Main.getVozilaAll().get(redniBroj);\n\t\t\tif (UtillMethod.voziloImaRezervacije(temp)) {\n\t\t\t\tSystem.out.println(\"Ovo vozilo ima aktivne rezervacije i ne moze biti obrisano!\");\n\t\t\t} else {\n\t\t\t\tif (temp.isVozObrisano()) {\n\t\t\t\t\ttemp.setVozObrisano(false);\n\t\t\t\t\tSystem.out.println(\"Vozilo je vraceno u sistem(neobrisano stanje)\");\n\t\t\t\t} else {\n\t\t\t\t\ttemp.setVozObrisano(true);\n\t\t\t\t\tSystem.out.println(\"Vozilo je uspesno izbrisano!\");\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Ne postoji vozilo sa tim brojem!\");\n\t\t}\n\t}", "private static void cajas() {\n\t\t\n\t}", "public void nastaviIgru() {\r\n\t\t// nastavi igru poslije pobjede\r\n\t\tigrajPoslijePobjede = true;\r\n\t}", "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 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 }", "protected void ucitajSortiranoPoBrojRez() {\n\t\tObject[]redovi=new Object[9];\r\n\t\tdtm.setRowCount(0);\r\n\t\t\r\n\t\tfor(Rezervacije r:alSort) {\r\n\t\t\t\r\n\t\t\tredovi[0]=r.getID_Rez();\r\n\t\t\tredovi[1]=r.getImePrezime();\r\n\t\t\tredovi[2]=r.getImePozorista();\r\n\t\t\tredovi[3]=r.getNazivPredstave();\r\n\t\t\tredovi[4]=r.getDatumIzvodjenja();\r\n\t\t\tredovi[5]=r.getVremeIzvodjenja();\r\n\t\t\tredovi[6]=r.getScenaIzvodjenja();\r\n\t\t\tredovi[7]=r.getBrRezUl();\r\n\t\t\tredovi[8]=r.getCenaUlaznica();\r\n\t\t\tdtm.addRow(redovi);\r\n\t\t}\r\n\t}", "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}", "public void pobierzukladprzegladRZiSBO() {\r\n if (uklad.getUklad() == null) {\r\n uklad = ukladBRDAO.findukladBRPodatnikRokPodstawowy(wpisView.getPodatnikObiekt(), wpisView.getRokWpisuSt());\r\n }\r\n List<PozycjaRZiSBilans> pozycje = UkladBRBean.pobierzpozycje(pozycjaRZiSDAO, pozycjaBilansDAO, uklad, \"\", \"r\");\r\n UkladBRBean.czyscPozycje(pozycje);\r\n rootProjektRZiS.getChildren().clear();\r\n List<StronaWiersza> zapisy = StronaWierszaBean.pobraniezapisowwynikoweBO(stronaWierszaDAO, wpisView);\r\n try {\r\n PozycjaRZiSFKBean.ustawRoota(rootProjektRZiS, pozycje, zapisy);\r\n level = PozycjaRZiSFKBean.ustawLevel(rootProjektRZiS, pozycje);\r\n Msg.msg(\"i\", \"Pobrano układ \");\r\n } catch (Exception e) {\r\n E.e(e);\r\n rootProjektRZiS.getChildren().clear();\r\n Msg.msg(\"e\", e.getLocalizedMessage());\r\n }\r\n }", "public static void otkazivanjeRezervacije(Osoba o) {\n\t\tArrayList<Rezervacija> rezervacijeIznaj = new ArrayList<Rezervacija>();\n\t\tint i = 0;\n\t\tif (o.getClass().equals(Iznajmljivac.class)) {\n\t\t\tfor (Rezervacija r : Main.getRezervacijeAll()) {\n\t\t\t\tif (r.getIznajmljivac().equals(o) && !r.isRezervacijaObrisana()) {\n\t\t\t\t\tSystem.out.println(\"Rezervacija-\" + i + \"--\" + r.getIznajmljivac() + \" \" + r.getVozilo()\n\t\t\t\t\t\t\t+ \"pocetak rezervacije|\" + r.getDatumKraja() + \"kraj rezervacije|\" + r.getDatumKraja());\n\t\t\t\t\trezervacijeIznaj.add(r);\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tfor(Rezervacija r : Main.getRezervacijeAll()) {\n\t\t\t\tif(!r.isRezervacijaObrisana()) {\n\t\t\t\t\tSystem.out.println(\"Rezervacija-\" + i + \"--\" + r.getIznajmljivac() + \" \" + r.getVozilo()\n\t\t\t\t\t+ \"pocetak rezervacije|\" + r.getDatumKraja() + \"kraj rezervacije|\" + r.getDatumKraja());\n\t\t\trezervacijeIznaj.add(r);\n\t\t\ti++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Unesite redni broj rezervacije koju zelite da otkazete:\");\n\t\tint redniBroj = UtillMethod.unesiteInt();\n\t\tif (redniBroj < rezervacijeIznaj.size()) {\n\t\t\tRezervacija temp = rezervacijeIznaj.get(redniBroj);\n\t\t\ttemp.setRezervacijaObrisana(true);\n\t\t\tSystem.out.println(\"Rezervacija je uspesno izbrisana!\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Ne postoji rezervacija sa tim brojem!\");\n\t\t}\n\t}", "public void renovarBolsa() {\n\t\tSystem.out.println(\"Bolsa renovada com suceso!\");\n\t}", "public static void dodavanjeBicikl() {\n\t\tString vrstaVozila = \"Bicikl\";\n\t\tString regBr = UtillMethod.unosRegBroj();\n\t\tGorivo gorivo = Main.nista;\n\t\tint brServisa = 1;\n\t\tdouble potrosnja100 = 0;\n\t\tSystem.out.println(\"Unesite broj km koje je vozilo preslo:\");\n\t\tdouble predjeno = UtillMethod.unesiteBroj();\n\t\tdouble preServisa = 700;\n\t\tdouble cenaServisa = 5000;\n\t\tSystem.out.println(\"Unesite cenu vozila za jedan dan:\");\n\t\tdouble cenaDan = UtillMethod.unesiteBroj();\n\t\tint brSedist = 1;\n\t\tint brVrata = 0;\n\t\tboolean vozObrisano = false;\n\t\tArrayList<Gorivo> gorivaVozila = new ArrayList<Gorivo>();\n\t\tgorivaVozila.add(gorivo);\n\t\tArrayList<Servis> servisiNadVozilom = new ArrayList<Servis>();\n\t\tBicikl vozilo = new Bicikl(vrstaVozila, regBr, gorivaVozila, brServisa, potrosnja100, predjeno, preServisa,\n\t\t\t\tcenaServisa, cenaDan, brSedist, brVrata, vozObrisano, servisiNadVozilom);\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 zpracujObjednavky()\n\t{\n\t\tint idtmp = 0;\n\t\tfloat delkaCesty = 0;\n\t\t\n\t\tif (this.objednavky.isEmpty())\n\t\t{\n\t\t\treturn ;\n\t\t}\n\t\t\n\t\tNakladak nakl = (Nakladak) getVolneAuto();\n\t\t\n\t\tnakl.poloha[0] = this.poloha[0];\n\t\tnakl.poloha[1] = this.poloha[1];\n\t\tObjednavka ob = this.objednavky.remove();\n\n\t\t/*System.out.println();\n\t\tSystem.out.println(\"Objednavka hospody:\" + ob.id + \" se zpracuje pres trasu: \");\n\t\t */\n\t\tdelkaCesty += vyberCestu(this.id, ob.id, nakl);\n\t\t\n\t\twhile(nakl.pridejObjednavku(ob))\n\t\t{\n\t\t\tidtmp = ob.id;\n\t\t\t\n\t\t\tob = vyberObjednavku(ob.id);\n\t\t\tif (ob == null)\n\t\t\t{\n\t\t\t\tob=nakl.objednavky.getLast();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tobjednavky.remove(ob);\n\t\t\t\n\t\t\tdelkaCesty += vyberCestu(idtmp, ob.id, nakl);\n\t\t\t\n\t\t\tif((nakl.objem > 24)||(13-Simulator.getCas().hodina)*(nakl.RYCHLOST) + 100 < delkaCesty){\n\t\t\t\t//System.out.println(\"Nakladak ma \"+nakl.objem);\n\t\t\t\tnakl.kDispozici = false;\n\t\t\t\t//System.out.println(\"Auto jede \" + delkaCesty + \"km\");\n\t\t\t\tbreak;\t\t\n\t\t\t}\n\t\t\t/*\n\t\t\tif((Simulator.getCas().hodina > 12) && (delkaCesty > 80) ){\n\t\t\t\t//System.out.println(\"Nakladak ma \"+nakl.objem);\n\t\t\t\tnakl.kDispozici = false;\n\t\t\t\t//System.out.println(\"Auto jede \" + delkaCesty + \"km\");\n\t\t\t\tbreak;\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif((Simulator.getCas().hodina > 9) && (delkaCesty > 130) ){\n\t\t\t\t//System.out.println(\"Nakladak ma \"+nakl.objem);\n\t\t\t\tnakl.kDispozici = false;\n\t\t\t\t//System.out.println(\"Auto jede \" + delkaCesty + \"km\");\n\t\t\t\tbreak;\t\t\n\t\t\t}*/\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t//cesta zpatky\n\t\tvyberCestu(ob.id, this.id, nakl);\n\t\tif (nakl.objem >= 1)\n\t\t{\n\t\t\tnakl.kDispozici = false;\n\t\t\tnakl.jede = true;\n\t\t\t//vytvoreni nove polozky seznamu pro statistiku\n\t\t\tnakl.novaStatCesta();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tnakl.resetCesta();\n\t\t}\n\t}", "public void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}", "public void uruchomGre()\n\t{\n\t\tustawPojazdNaPoczatek();\n\t\tplanszaWidokHND.repaint();\n\t\twToku = true;\n\t\tzegar.start();\n\t\tpauza = false;\n\t}", "public void borrarZonaObjetivoMovimiento() {\n\t\t\n\t}", "public void disconnetti() {\n\t\tconnesso = false;\n\t}", "private void BajarPiezaRapido() {\n if (!Mover(piezaActual, posicionX, posicionY - 1)) {\r\n BajarPieza1posicion();\r\n }\r\n }", "public void obrniListu() {\n if (prvi != null && prvi.veza != null) {\n Element preth = null;\n Element tek = prvi;\n \n while (tek != null) {\n Element sled = tek.veza;\n \n tek.veza = preth;\n preth = tek;\n tek = sled;\n }\n prvi = preth;\n }\n }", "public void borrarZonaObjetivoAtaque() {\n\t\t\n\t}", "private static void etapa3Urna() {\n\t\t\n\t\turna.contabilizarVotosPorCandidato(enderecoCandidatos);\n\t\t\n\t}", "public boolean Vacia (){\n return cima==-1;\n \n }", "public void dodajZmijuPocetak() {\n\t\tthis.zmija.add(new Cvor(1,4));\n\t\tthis.zmija.add(new Cvor(1,3));\n\t\tthis.zmija.add(new Cvor(1,2));\n\t\t\n\t\tint i = this.zmija.get(0).i;\n\t\tint j = this.zmija.get(0).j;\n\t\tthis.tabla[i][j] = 'O';\n\t\t\n\t\tfor (int k = 1; k < this.zmija.size(); k++) {\n\t\t\ti = this.zmija.get(k).i;\n\t\t\tj = this.zmija.get(k).j;\n\t\t\tthis.tabla[i][j] = 'o';\n\t\t}\t\n\t}", "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}", "public void pretraziPoslovneKorisnike() throws BazaPodatakaException {\r\n\t\tString naziv = nazivTF.getText().toLowerCase();\r\n\t\tString web = webTF.getText().toLowerCase();\r\n\t\tString email = emailTF.getText().toLowerCase();\r\n\t\tString telefon = telefonTF.getText();\r\n\r\n\t\tList<PoslovniKorisnik> listaKorisnika = BazaPodataka.dohvatiPoslovnogKorisnikaPremaKriterijima(email, telefon,\r\n\t\t\t\tnaziv, web);\r\n\t\ttablicaPoslovnihKorisnika.setItems(FXCollections.observableArrayList(listaKorisnika));\r\n\r\n\t}", "public void Lista(){\n\t\tcabeza = null;\n\t\ttamanio = 0;\n\t}", "@Override\r\n\tpublic double obliczCenePoRabacie(double cena){\n\t\tcena = cena - kwotaRabatu;\r\n\t\treturn cena;\r\n\t\t\r\n\t}", "public void urciStupneVrcholu(){\n\t\tfor(int i = 0;i < vrchP.length; i++){\n\t\t\tstupenVrcholu(vrchP[i].klic);\n\t\t}\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 }", "protected void pokazOblicz() {\n if (czyImie && czyNazwisko && czyLiczby)\n oblicz.setVisibility(Button.VISIBLE);\n\n else\n oblicz.setVisibility(Button.INVISIBLE);\n }", "public void abrirCerradura(){\n cerradura.abrir();\r\n }", "public void riconnetti() {\n\t\tconnesso = true;\n\t}", "public void carroNoEncontrado(){\n System.out.println(\"Su carro no fue removido porque no fue encontrado en el registro\");\n }", "public void skratiListu() {\n if (!jePrazna()) {\n int n = Svetovid.in.readInt(\"Unesite broj elemenata za skracivanje: \");\n obrniListu(); //Zato sto se trazi odsecanje poslednjih n elemenata\n while (prvi != null && n > 0) {\n prvi = prvi.veza;\n n--;\n }\n obrniListu(); //Vraca listu u prvobitni redosled\n }\n }", "void novyVrchol(String klic){\n\t\tVrchol pom = new Vrchol(klic,'B');\n\t\t\n\t\tvrchP[pocet] = pom;\n\t\tpocet++;\n\t\n\t}", "public void ispisiSveNapomene() {\r\n\t\tint i = 0;// redni broj napomene\r\n\t\tint brojac = 0;\r\n\t\tfor (Podsjetnik podsjetnik : lista) {\r\n\r\n\t\t\ti++;\r\n\t\t\tSystem.out.println(i + \")\" + podsjetnik);\r\n\t\t\tbrojac = i;\r\n\t\t}\r\n\t\tif (brojac == 0) {\r\n\t\t\tSystem.out.println(\"Nema unesenih napomena!!\");\r\n\t\t}\r\n\r\n\t}", "public void borra() {\n dib.borra();\n dib.dibujaImagen(limiteX-60,limiteY-60,\"tierra.png\");\n dib.pinta(); \n }", "public void pedirValoresCabecera(){\n \r\n \r\n \r\n \r\n }", "private String vylozZvieraZVozidla() {\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 index zvierata\");\r\n if (pozicia == null) return \"\";\r\n\r\n try {\r\n Zivocich ziv = zoo.vylozZivocicha(pozicia-1);\r\n if (ziv == null) {\r\n return \"Zviera c. \" + pozicia + \" nie je na vozidle\\n\\t\";\r\n }\r\n zoo.pridajZivocicha(ziv);\r\n return \"Zviera \" + ziv\r\n + \"\\n\\tbolo vylozene z prepravneho vozidla\";\r\n } catch (ClassCastException exCC) {\r\n return \"Zviera c. \" + pozicia + \" nie je na vozidle\\n\\t\";\r\n } catch (Exception ex) {\r\n return \"Neznama chyba:\\n\\t\" + ex;\r\n }\r\n }", "public void reinicio() {\n iNumBloques = 54; // se reinicia la cantidad de bloques\n iNivel = 1; // vuelve al nivel 1\n iScore = 0; // se reinicia el score\n iVidas = 3; // se reinicia la cantidad de vidas\n // La direccion del proyectil sera para arriba\n bDireccionY = false;\n // la direccion del proyectil sera al contrario de donde iba\n bDireccionX = !bDireccionX;\n // Se reposiciona el proyectil\n objProyectil.reposiciona((objBarra.getX() + objBarra.getAncho() / 2\n - (objProyectil.getAncho() / 2)), (objBarra.getY()\n - objProyectil.getAlto()));\n // Se reincia la velocidad del proyectil\n objProyectil.setVelocidad(5);\n // Se reposiciona la barra\n objBarra.reposiciona(((getWidth() / 2)\n - (objProyectil.getAncho() / 2)), (getHeight()\n - objBarra.getAlto()));\n // se limpia la lista de bloques\n lnkBloques.clear();\n // se vuelve a llenar y se acomoda\n try {\n acomodaBloques();\n } catch (IOException ioeError) {\n System.out.println(\"Hubo un error al cargar el juego: \"\n + ioeError.toString());\n }\n }", "public static void vracanjeVozila(Osoba o) {\n\t\tArrayList<Rezervacija> temp = new ArrayList<Rezervacija>();\n\t\tint i = 0;\n\t\tif (o.getClass().equals(Iznajmljivac.class)) {\n\t\t\tfor (Rezervacija r : Main.getRezervacijeAll()) {\n\t\t\t\tif (r.getIznajmljivac().equals(o)\n\t\t\t\t\t\t&& UtillMethod.parsovanjeDatuma(r.getDatumKraja()).isBefore(LocalDate.now())\n\t\t\t\t\t\t&& !r.isRezervacijaObrisana()) {\n\t\t\t\t\tSystem.out.println(i + \"-Iznajmljivac|\" + r.getIznajmljivac() + \" Vozilo|\" + r.getVozilo()\n\t\t\t\t\t\t\t+ \" Datum pocetka rezervacije|\" + r.getDatumPocetka() + \" Datum kraja rezervacije|\"\n\t\t\t\t\t\t\t+ r.getDatumKraja());\n\t\t\t\t\ttemp.add(r);\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tfor (Rezervacija r : Main.getRezervacijeAll()) {\n\t\t\t\tif (UtillMethod.parsovanjeDatuma(r.getDatumKraja()).isBefore(LocalDate.now())\n\t\t\t\t\t\t&& !r.isRezervacijaObrisana()) {\n\t\t\t\t\tSystem.out.println(i + \"-Iznajmljivac|\" + r.getIznajmljivac() + \" Vozilo|\" + r.getVozilo()\n\t\t\t\t\t\t\t+ \" Datum pocetka rezervacije|\" + r.getDatumPocetka() + \" Datum kraja rezervacije|\"\n\t\t\t\t\t\t\t+ r.getDatumKraja());\n\t\t\t\t\ttemp.add(r);\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"----------------------------------------------------------\");\n\t\tSystem.out.println(\"Unesite redni broj rezervacije vozila kojeg zelite da vratite:\");\n\t\tint redniBroj = UtillMethod.unesiteInt();\n\t\tif (redniBroj < temp.size()) {\n\t\t\tSystem.out.println(\"Unesite koliko kilometara ste presli sa vozilom:\");\n\t\t\tdouble brojKm = UtillMethod.unesiteBroj();\n\t\t\tRezervacija rezervTemp = temp.get(redniBroj);\n\t\t\tSystem.out.println(\"Izaberite vrstu goriva koje je vozilo koristilo.\");\n\t\t\tGorivo g = UtillMethod.izabirGoriva();\n\t\t\tdouble cenaIznajm = UtillMethod.ukupnaCenaIznajmljivanja(rezervTemp, brojKm, g);\n\t\t\tSystem.out.println(\"Cena iznajmljivanja je \" + cenaIznajm + \" Dinara!\");\n\t\t\tdouble prePromene = rezervTemp.getVozilo().getPredjeno();\n\t\t\trezervTemp.getVozilo().setPredjeno(prePromene + brojKm);\n\t\t\ttemp.get(redniBroj).setRezervacijaObrisana(true);\n\t\t}\n\n\t}", "public void moverIzquierda() {\n estado = EstadosPersonaje.IZQUIERDA;\n mover(new Vector2(-1, 0));\n }", "public void carroRemovido(){\n System.out.println(\"Su carro fue removido exitosamente\");\n }", "private void esvaziaMensageiro() {\n\t\tMensageiro.arquivo=null;\n\t\tMensageiro.lingua = linguas.indexOf(lingua);\n\t\tMensageiro.linguas=linguas;\n\t\tMensageiro.nomeArquivo=null;\n\t}", "public void pridejNovePivo ()\n\t{\n\t\n\t\tpivo = pivo + PRODUKCE;\n\t\t\n\t}", "void celebrer();", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public void verarbeite() {\n\t\t\r\n\t}", "protected void pretragaGledalac() {\n\t\tString Gledalac=tfPretraga.getText();\r\n\r\n\t\tObject[]redovi=new Object[9];\r\n\t\tdtm.setRowCount(0);\r\n\t\t\r\n\t\tfor(Rezervacije r:Kontroler.getInstanca().vratiRezervacije()) {\r\n\t\t\tif(r.getImePrezime().toLowerCase().contains(Gledalac.toLowerCase())) {\r\n\t\t\t\r\n\t\t\t\tredovi[0]=r.getID_Rez();\r\n\t\t\t\tredovi[1]=r.getImePrezime();\r\n\t\t\t\tredovi[2]=r.getImePozorista();\r\n\t\t\t\tredovi[3]=r.getNazivPredstave();\r\n\t\t\t\tredovi[4]=r.getDatumIzvodjenja();\r\n\t\t\t\tredovi[5]=r.getVremeIzvodjenja();\r\n\t\t\t\tredovi[6]=r.getScenaIzvodjenja();\r\n\t\t\t\tredovi[7]=r.getBrRezUl();\r\n\t\t\t\tredovi[8]=r.getCenaUlaznica();\r\n\t\t\t\tdtm.addRow(redovi);\r\n\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "@Override public void realizarCobro(Persona persona){\n\tpersona.cuenta.retiro(120);\n }", "public void removerDeContenedor() {\n\t\tthrow new NotImplementedException();\r\n\t}", "public boolean kraj() {\r\n\t\treturn (broj_slobodnih == 0 && !mozeLiSeSpojiti());\r\n\t}", "public void videListeClient(){\n couleurs.clear();\n }", "public void zapisUrok() {\r\n\r\n\t\taktualnyZostatok = getZostatok() * urokovaSadzba / 100;\r\n\t\tsetVklad(aktualnyZostatok);\r\n\r\n\t}", "public void moverAbajo() {\n estado = EstadosPersonaje.QUIETO;\n mover(new Vector2(0, -1));\n }", "public void vaciar()\n {\n this.raiz = null;\n }", "void zmniejszBieg();", "public void eliminarCompraComic();", "public void inicjalizujRynek()\n\t{\n\t\tif (!Stale.cenyZGeneratora)\n\t\t{\n\t\t\tlistaCenWczytanaZPliku=loader.loadPrices();\n\t\t}\n\t}", "public void Ordenamiento() {\n\n\t}", "public void bajarBloque() {\n\t\tif (piezaActual != null) {\n\t\t\tif (Mapa.getInstance().estaLibre(piezaActual.getBloque3().getX(),\n\t\t\t\t\tpiezaActual.getBloque3().getY() + 1)) {\n\t\t\t\tpiezaActual.getBloque3().bajar(); // Dejar en ese orden\n\t\t\t\tpiezaActual.getBloque2().bajar();\n\t\t\t\tpiezaActual.getBloque1().bajar();\n\t\t\t} else {\n\t\t\t\tthis.piezaNueva();\n\t\t\t}\n\t\t}\n\t}", "public void pop() {\n if (cabeza!= null) {\n //SI CABEZA.SIGUENTE ES DISTINTO A NULO\n if (cabeza.siguiente==null) {\n //CABEZA SERA NULO\n cabeza=null; \n //SE IRAN RESTANDO LOS NODOS\n longitud--;\n } else {\n //DE LO CONTRARIO EL PUNTERO SERA IGUAL A CABEZA\n Nodo puntero=cabeza;\n //MIENTRTAS EL PUNTERO SEA DISITINTO A NULO \n while (puntero.siguiente.siguiente!=null) { \n //PUNTYERO SERA IGUAL A LA DIRECCION DEL SIGUIENTE NODO\n puntero=puntero.siguiente;\n }\n puntero.siguiente=null;\n longitud--;\n }\n }\n }", "private void getRazonNoData(){\n mRazonNoData = estudioAdapter.getListaRazonNoDataSinEnviar();\n //ca.close();\n }", "public void fecharConta() {\n\t\tcliente.setConta(new Conta());\r\n\t\tRepositorioCliente repositorioCliente = new FabricaRepositorio().getRepCliente();\r\n\t\trepositorioCliente.editar((ClienteIndividual)cliente);\r\n//\t\tGerenciadorContaImpl contaImpl = new GerenciadorContaImpl();\r\n//\t\ttry {\r\n//\t\t\tcontaImpl.fecharConta(cliente);\r\n//\t\t} catch (OperacaoInvalidaException e) {\r\n//\t\t\te.printStackTrace();\r\n//\t\t}\r\n\t}", "private void setStatusTelaExibir () {\n setStatusTelaExibir(-1);\n }", "private void esconderBotao() {\n\t\tfor (int i = 0; i < dificuldade.getValor(); i++) {// OLHAM TODOS OS BOTOES\r\n\t\t\tfor (int j = 0; j < dificuldade.getValor(); j++) {\r\n\t\t\t\tif (celulaEscolhida(botoes[i][j]).isVisivel() && botoes[i][j].isVisible()) {// SE A CELULA FOR VISIVEL E\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// O BOTAO FOR VISIVEL,\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// ESCONDE O BOTAO\r\n\t\t\t\t\tbotoes[i][j].setVisible(false);//DEIXA BOTAO INVISIVEL\r\n\t\t\t\t\tlblNumeros[i][j].setVisible(true);//DEIXA O LABEL ATRAS DO BOTAO VISIVEL\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public Cesta() {\n\t\tthis.cima = null;\n\t}", "public void borrar() {\n\t\tmiPintor.borrar();\n\t\tlienzo.refrescar();\n\t\t\n\t}", "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 }", "private void liberateAroom() {\n\t\tif(this.adminLogin() == 1) {\n\t\t\tSystem.out.println(\"\\n------------------\\n| Bonjour Ibobai |\\n------------------\");\n\t\t\tfor(Chambre chambre : this.getChambres()) {\n\t\t\t\tif(chambre.equals(this.chambresNonVides().get(this.chambresNonVides().size()-1))) {\n\t\t\t\t\tchambre.setReserve(false);\n\t\t\t\t\tSystem.err.println(\"--------------------------------------------------\\nVous avez bien libérée cette chambre:\\n--------------------------------------------------\\n\");\n\t\t\t\t\tSystem.out.println(chambre.toString());\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}else {\n\t\t\tSystem.err.println(\"----------------------------\\nVous n'êtes pas un admin! |\\n----------------------------\");\n\t\t}\n\t\t\n\t}", "private void zmienne_poziomu(int poziom)\n {\n liczba_zyc =Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_liczba_zyc\"));\n liczba_naboi=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_liczba_naboi\"));\n liczba_zyc_wroga=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_liczba_zyc_wroga\"));\n liczba_pilek=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_liczba_pilek\"));\n predkosc_wroga=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_predkosc_wroga\"));\n bonusy_poziomu=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_bonusy_poziomu\"));\n rozmiar_pilki=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_rozmiar_pilki\"));\n zmiana_ruchu_wroga=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_zmiana_ruchu_wroga\"));\n czas_gry=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_czas_gry\"));\n }", "private void suono(int idGioc) {\n\t\tpartita.effettoCasella(idGioc);\n\t}", "@GetMapping(\n\t\t\tvalue=\"/bioskopi/ukloni/{id}\",\n\t\t\tproduces = MediaType.APPLICATION_JSON_VALUE)\n\tpublic ResponseEntity<BioskopDTO> ukloni(@PathVariable(name=\"id\") Long id){/*patvariable dovablja id od bioskopa (this.id iz jsa)*/\n\t\tBioskop b=this.bioskopService.findOne(id);\n\t\tif(b==null) {\n\t\t\treturn new ResponseEntity<>(HttpStatus.NOT_FOUND);\n\t\t}\n\t\t\n\t\tBioskopDTO bioskop=new BioskopDTO(b.getId(), b.getNaziv(), b.getAdresa(), b.getBrojCentrale(), b.getEMail());\n\t\t/*prolazi kroz projekcije sale i sve brise i na kraju obrise tu salu*/\n\t\tSet<Sala> sale=b.getSale();\n\t\tfor (Sala sala : sale) {\n\t\t\tList<Terminski_raspored> projekcije=sala.getProjekcije();\n\t\t\tfor (Terminski_raspored t : projekcije) {\n\t\t\t\tSet<Gledalac> gledaoci=t.getGledaoci_koji_su_rezervisali_film();\n\t\t\t\tfor (Gledalac g : gledaoci) {\n\t\t\t\t\tif(g.getRezervisani_filmovi().contains(t)) {\n\t\t\t\t\t\tg.getRezervisani_filmovi().remove(t);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSet<Raspored_filmova> rasporedi=t.getRasporedi();\n\t\t\t\tfor(Raspored_filmova r:rasporedi) {\n\t\t\t\t\tthis.raspored_filmovaService.delete(t.getId());\n\t\t\t\t}\n\t\t\t\t//this.terminski_rasporedService.delete(t.getId());\n\t\t\t}\n\t\t\tthis.salaservice.deleteById(sala.getId());\n\t\t}\n\t\tthis.bioskopService.delete(id); \n\t\t\n\t\t\n\t\treturn new ResponseEntity<>(bioskop,HttpStatus.OK);\n\t}", "public ListaBrojeva izdvojElmenteNaParnimPozicijama() {\n if (prvi != null) {\n ListaBrojeva parni = new ListaBrojeva();\n \n Element tek = prvi;\n Element preth = null;\n Element parniKraj = null;\n int br = 0;\n \n while (tek.veza != null) {\n preth = tek;\n tek = tek.veza;\n \n if (br % 2 != 0) {\n preth.veza = tek.veza;\n if (parni.prvi == null) {\n parni.prvi = tek;\n parniKraj = tek;\n tek.veza = null; \n } else {\n parniKraj.veza = tek;\n tek.veza = null;\n parniKraj = parniKraj.veza;\n }\n tek = preth;\n }\n br++;\n }\n /*prvi element iz liste je paran, ali je preskocen, \n tako da ga sad izbacujemo iz liste i dodajemo u novu*/\n Element pom = prvi;\n prvi = prvi.veza;\n pom.veza = parni.prvi;\n parni.prvi = pom;\n return parni;\n }\n return null;\n }", "public CensoCCVnoREMExcluidos() {\n this.nombre = \"\";\n this.apellidom = \"\";\n this.apellidop = \"\";\n this.rut = \"\";\n this.edad = 0;\n this.razon_exclusion = \"\";\n }", "public static void dodavanjePutnickogVozila() {\n\t\tString vrstaVozila = \"Putnicko 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 potrosnja100 = UtillMethod.unesiteDoublePotrosnja();\n\t\tSystem.out.println(\"Unesite broj km koje je vozilo preslo:\");\n\t\tdouble predjeno = UtillMethod.unesiteBroj();\n\t\tdouble preServisa = 10000;\n\t\tdouble cenaServisa = 8000;\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 brSedist = 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\tPutnickoVozilo vozilo = new PutnickoVozilo(vrstaVozila, regBr, gorivaVozila, brServisa, potrosnja100, predjeno,\n\t\t\t\tpreServisa, cenaServisa, cenaDan, brSedist, brVrata, vozObrisano, servisiNadVozilom);\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 reversarComprobanteContabilidad() {\r\n String ide_cnccc = ser_comprobante.reversarComprobante(tab_tabla1.getValorSeleccionado(), null);\r\n if (guardarPantalla().isEmpty()) {\r\n utilitario.agregarMensaje(\"Se genero el Comprobante Num: \", ide_cnccc);\r\n }\r\n }", "public void carroNoAgregado(){\n System.out.println(\"No hay un parqueo para su automovil\");\n }", "private void poczatkowe_zmienne()\n {\n konfiguracja.loadProperties();\n predkosc_wroga=Integer.parseInt(konfiguracja.properties.getProperty(\"predkosc_wroga\"));\n czas_watku=Integer.parseInt(konfiguracja.properties.getProperty(\"czas_watku\"));\n punkty_poziomu=Integer.parseInt(konfiguracja.properties.getProperty(\"punkty_poziomu\"));\n zmienne_poziomu(poziom);\n }", "public void reabrirContrato() {\n int i;\n if (hospedesCadastrados.isEmpty()) {\n System.err.println(\"Nao existe hospedes cadastrados\\n\");\n } else {\n listarHospedes();\n int cpf = verifica();\n for (i = 0; i < hospedesCadastrados.size(); i++) {\n if (hospedesCadastrados.get(i).getCpf() == cpf) {//hospede\n if (hospedesCadastrados.get(i).getContrato().isSituacao()) {//verifica se o contrato já estpa aberto\n System.err.println(\"O contrado desse hospede já encontra-se aberto\");\n\n } else {//caso o contrato encontre-se fechado\n hospedesCadastrados.get(i).getContrato().setSituacao(true);\n System.err.println(\"Contrato reaberto, agora voce pode reusufruir de nossos servicos!\");\n }\n }\n }\n }\n }", "@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 }", "public String borra() { \n clienteDAO.borra(c.getId());\n return \"listado\";\n }", "public abstract String dohvatiKontakt();", "void salirDelMazo() {\n mazo.inhabilitarCartaEspecial(this);\n }", "private ControleurAcceuil(){ }", "public void aapneBomberOgFlagg() {\n brettTapt = true;\n if (trykketPaa) {\n return;\n }\n // Viser alle bomber som ikke er flagget\n if (bombe && !flagget) {\n setText(\"x\");\n setBackground(new Background(new BackgroundFill(Color.GREY, CornerRadii.EMPTY, Insets.EMPTY)));\n }\n // Fargekoder om flaggingen var korrekt eller ikke\n if (flagget) {\n if (!bombe) {\n setBackground(new Background(new BackgroundFill(Color.PINK, CornerRadii.EMPTY, Insets.EMPTY)));\n } else {\n Color lysegroenn = Color.rgb(86, 130, 3, 0.3);\n setBackground(new Background(new BackgroundFill(lysegroenn, CornerRadii.EMPTY, Insets.EMPTY)));\n }\n }\n }", "public void AwansSpoleczny() {\n\t\tSystem.out.println(\"AwansSpoleczny\");\n\t\tif(Plansza.getNiewolnikNaPLanszy().getPopulacja() >= ZapisOdczyt.getPOPULACJAMAX()*0.67 && Plansza.getNiewolnikNaPLanszy() instanceof Niewolnicy) {\n\t\t\tPlansza.setNiewolnikNaPlanszy(new Mieszczanie(Plansza.getNiewolnikNaPLanszy()));\n\t\t}\n\t\t\t\n\t\tif(Plansza.getRzemieslnikNaPlanszy().getPopulacja() >= ZapisOdczyt.getPOPULACJAMAX()*0.67 && Plansza.getRzemieslnikNaPlanszy() instanceof Rzemieslnicy) {\n\t\t\tPlansza.setRzemieslnikNaPlanszy(new Handlarze(Plansza.getRzemieslnikNaPlanszy()));\n\t\t}\n\t\t\t\n\t\tif(Plansza.getArystokrataNaPlanszy().getPopulacja() >= ZapisOdczyt.getPOPULACJAMAX()*0.67 && Plansza.getArystokrataNaPlanszy() instanceof Arystokracja) {\n\t\t\tPlansza.setArystokrataNaPlanszy(new Szlachta(Plansza.getArystokrataNaPlanszy()));\n\t\t}\n\t}", "private void resetLexeme(){\n\t\tcola = \"\";\n\t}", "@Override\n\tprotected void trazOutroATona() {\n\t\t\n\t}", "@Listen(\"onClick =#solicitudReclamo\")\n\t\tpublic void Reclamo() {\n\t\t\tString dir = \"gps/reclamo/frm-reclamo-ordenesEntrega.zul\";\n\t\t\tclearDivApp(dir);\n\t\t\t// Clients.evalJavaScript(\"document.title = 'ServiAldanas'; \");\n\t\t}", "public void destruirArbol(){\n\t\thDer=null;\n\t\thIzq=null;\n\t\tesVacio=true;\n\t}", "public void acionarInadimplencia(CestaGarantiasDO cesta);", "private void reserveChambre() {\n\t\tfor(Chambre chambre : this.getChambres()) {\n\t\t\tif(chambre.equals(this.chambresVides().get(0))) {\n\t\t\t\tchambre.setReserve(true);\n\t\t\t\tSystem.out.println(\"\\n---------------------------------------\\nVous avez bien réservé cette chambre: |\");\n\t\t\t\tSystem.out.println(chambre.toString());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\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}", "public void checarColision()\n\t{\n\t\tListIterator <Entidad> iterator = handler.listaEntidades.listIterator();\n\t\twhile (iterator.hasNext())\n\t\t{\n\t\t\tEntidad aux = iterator.next();\n\t\t\t\n\n\t\t\t//Colision con un Enemigo\n\t\t\tif (aux instanceof Bala)\n\t\t\t{\n\t\t\t\tif (chocandoEn(x, y, aux))\n\t\t\t\t{\t\n\n\n\t\t\t\t\t\n\t\t\t\t\t//Si choca con bala eliminar bala y cambiar posicion de enemigo\n\t\t\t\t\tvelX = aux.getVelX();\n\t\t\t\t\tvelY = aux.getVelY();\n\t\t\t\t\thandler.quitarObjeto(aux);\n\t\t\t\t\tthis.vida -= 5;\n\t\t\t\t\t\n\t\t\t\t\tif(this.vida == 0)\n\t\t\t\t\t\thandler.quitarObjeto(this);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t\t\n\t}", "public void limpiar() {\n\t//txtBuscar.setText(\"\");\n\n\t// codTemporal.setText(\"\");\n\thabilita(true, false, false, false, false, true, false, true, true);\n }" ]
[ "0.6302457", "0.62777984", "0.62343097", "0.6206828", "0.61636806", "0.6142722", "0.6132328", "0.6105689", "0.6104127", "0.6076713", "0.6052739", "0.604791", "0.6043979", "0.6008252", "0.5992362", "0.59553456", "0.5937906", "0.5920478", "0.58956695", "0.58934194", "0.58479714", "0.58407414", "0.58374834", "0.58252984", "0.5823615", "0.5808566", "0.5783678", "0.5778352", "0.57591903", "0.5748862", "0.5748833", "0.5743409", "0.5730697", "0.57255423", "0.5719019", "0.56990445", "0.5685719", "0.5673976", "0.56688815", "0.56603676", "0.56422246", "0.56392646", "0.563255", "0.5619506", "0.56191134", "0.56164235", "0.56075823", "0.5606393", "0.55986995", "0.5594659", "0.5594232", "0.5594232", "0.5574725", "0.55551547", "0.5547082", "0.55460274", "0.5535506", "0.5532721", "0.55282027", "0.5527419", "0.55250436", "0.5523116", "0.5522439", "0.55136025", "0.5507485", "0.55041015", "0.5503016", "0.55000955", "0.5486463", "0.5483319", "0.54807514", "0.5475662", "0.54720914", "0.54690754", "0.54607755", "0.54499", "0.54476374", "0.5443384", "0.5442783", "0.5439265", "0.5430811", "0.5421205", "0.5418011", "0.5414494", "0.541293", "0.5407778", "0.5406489", "0.54051113", "0.5400632", "0.5399587", "0.53944284", "0.5390839", "0.5387911", "0.5383028", "0.53770924", "0.53747475", "0.53744847", "0.5374465", "0.5374279", "0.5371965", "0.53696144" ]
0.0
-1
Constructor for objects of class Finn
public Finn() { System.out.println("is a Jedi,HumanLike,LightSide,Ressistance,Piolet,Annoying,StillLiving"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Mannschaft() {\n }", "public Facturacion() {\n }", "public Factura() {\r\n }", "public Factura() {\r\n }", "public NFA(){}", "public FeeAccount ()\n {\n }", "public Fish() {\r\n\t}", "public Fact() {\n }", "public StudentFee() {\n }", "public Terms() {}", "public Clade() {}", "public FI_() {\n }", "public Forecastday() {\n }", "public Fahrzeug() {\r\n this(0, null, null, null, null, 0, 0);\r\n }", "public FpLista() {\r\n\t\t\r\n\t}", "public FicheConnaissance() {\r\n }", "public Firma() {\n }", "public Facility() {\n }", "public Zeffit()\n {\n // TODO: initialize instance variable(s)\n }", "public NAFReader() {\n super(\"Hamamatsu Aquacosmos\", \"naf\");\n domains = new String[] {FormatTools.LM_DOMAIN};\n }", "public Nodo() {\n\t\tthis(null, null);\n\t}", "public SrceOfSlsFinclObjctv() {\n\t\tthis(\"SRCE_OF_SLS_FINCL_OBJCTV\", null);\n\t}", "public Orbiter() {\n }", "public BennuDAOFuncional() {\n }", "public Forecasting() {\n }", "public FundingDetails() {\n super();\n }", "public Portfolio(){}", "public JSFOla() {\n }", "public NhanVien()\n {\n }", "public YonetimliNesne() {\n }", "private NaturePackage() {}", "public BFUnit(){\n \n }", "public Supermarket()\n {\n }", "public Market() {\n }", "public Pasien() {\r\n }", "public InternalFloaterFactory() {\n super();\n }", "public Supermarket() {\n }", "private FundInfo() {\n initFields();\n }", "public Trening() {\n }", "public Achterbahn() {\n }", "@SuppressWarnings(\"unused\")\n private Flight() {\n this(null, null, null, null, null, null, null, null, null, null, null);\n }", "public FareModel() {\n }", "public ATFXNDF(final Trade trade) {\r\n\tsuper(trade);\r\n\tfxndf = (FXNDF) trade.getProduct();\r\n }", "public AntrianPasien() {\r\n\r\n }", "public ObjectFactory() {\n\t}", "public Ferrari() {\n this(315);\n }", "public Supermarket() {\n }", "public ObjectFactory() {\r\n\t}", "protected MoneyFactory() {\n\t}", "public FrequencyAnalysis()\n {\n }", "public CMN() {\n\t}", "public FvFactoryImpl() {\n\t\tsuper();\n\t}", "public StockPortfolio(double valueOfPortfolio, double transferFee, double amount) {\n\n }", "public Constructor(){\n\t\t\n\t}", "public CFConst(CofinFin c)throws Exception{\r\n if (c == null)\r\n throw new Exception(\"error in CFConst constructor : CofinFin value c is null\");\r\n else\r\n theVal = c;\r\n }", "private ProfitPerTariffType ()\n {\n super();\n }", "public Portfolio(){\n }", "public Magazzino() {\r\n }", "private FundList() {\n initFields();\n }", "@SafeVarargs protected DFA(Q q0, Q... F) {\n this.q0 = q0;\n this.F = new HashSet<>(Arrays.asList(F));\n }", "public TebakNusantara()\n {\n }", "public Etf() {\n\t}", "public Theory(double n) {\r\n this.n = n;\r\n }", "public Estado() {\r\n //Constructor vacio\r\n }", "public Curso() {\r\n }", "public MusiqueFiducial(){\n\t\tinitialisation();\n\t}", "public Theory(double n){\r\n\t\tthis.n= n;\r\n\t}", "public Nodo() {\n this.valor = 0;\n this.proximo=null;\n\n }", "public Caso_de_uso () {\n }", "public Factory() {\n\t\tsuper();\n\t}", "public TransferMarket() {\n }", "private void __sep__Constructors__() {}", "private Instantiation(){}", "void initialize(Nod n) {\n\t\tif (n.frunze.size() < 26) {\n\t\t\tfor (int i = 0; i < 26; i++) {\n\t\t\t\tNod ned = new Nod(\"%\");\n\n\t\t\t\tn.frunze.add(i, ned);\n\t\t\t}\n\n\t\t}\n\t}", "public AFMV() {\r\n }", "public ObjectFactory() {\n super(grammarInfo);\n }", "public DayPeriod() {\n\t}", "public PersonaFisica() {}", "public TradeData() {\r\n\r\n\t}", "public Sintactico(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public CD() {}", "ClaseColas() { // Constructor que inicializa el frente y el final de la Cola\r\n frente=0; fin=0;\r\n System.out.println(\"Cola inicializada !!!\");\r\n }", "public MnjMfgFabinsProdLEOImpl() {\n }", "public MystFactoryImpl()\r\n {\r\n super();\r\n }", "public Doc_estado() {\n }", "private Fight() { }", "public Chauffeur() {\r\n\t}", "public Fish(String n, String c, String s, int f) {\n name = n;\n color = c;\n species = s;\n fins = f;\n count++;\n }", "public RngObject() {\n\t\t\n\t}", "public CostFactoryImpl() {\n\t\tsuper();\n\t}", "public Tarifa() {\n ;\n }", "public FileObject() {\n\t}", "public CuentaDeposito() {\n super();\n }", "public Asintactico(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public RealConjunctiveFeature() { }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }" ]
[ "0.6513707", "0.6466834", "0.64311475", "0.64311475", "0.6378146", "0.6170532", "0.6148744", "0.6066985", "0.6040524", "0.6014322", "0.599362", "0.59926456", "0.59917897", "0.59911376", "0.5976734", "0.5958879", "0.595548", "0.5950882", "0.59197325", "0.59132487", "0.5912062", "0.5908442", "0.587574", "0.5875484", "0.58686733", "0.5863375", "0.58558804", "0.5837493", "0.5837415", "0.5836217", "0.58353484", "0.58289397", "0.5817119", "0.58155584", "0.5805377", "0.57968163", "0.57964015", "0.5796255", "0.5787048", "0.5783741", "0.5772329", "0.57476497", "0.5747643", "0.57459915", "0.5745364", "0.5743164", "0.57350767", "0.57285786", "0.57279587", "0.57195294", "0.57134926", "0.5709323", "0.5701745", "0.56978446", "0.56821907", "0.5676767", "0.56757015", "0.5674964", "0.56676906", "0.5666491", "0.56647515", "0.5657988", "0.5657671", "0.5655142", "0.56518465", "0.56380856", "0.56371117", "0.5635156", "0.56304735", "0.56287235", "0.5626408", "0.5613723", "0.56134987", "0.56128174", "0.5608471", "0.5606436", "0.56045586", "0.5603564", "0.55996644", "0.5599438", "0.55985475", "0.55929494", "0.5588732", "0.5582261", "0.5582012", "0.5579924", "0.5574665", "0.5574544", "0.55742323", "0.5571821", "0.5563833", "0.5561458", "0.5559729", "0.5559559", "0.55539775", "0.5551907", "0.5551907", "0.5551907", "0.5551907", "0.5551907", "0.5551907" ]
0.0
-1
Writes an int to file.
public void storeTrials(int i) throws Exception { fileHandler.storeInt(file, i); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void writeInt(int value);", "void writeInt(int v) throws IOException;", "void writeInt(int i) throws IOException;", "protected abstract void write( int value ) throws IOException;", "public void writeInt(int value)\n throws java.io.IOException {\n\n if (isBigEndian) {\n outputStream.writeByte((value >> 24) & 0xFF);\n outputStream.writeByte((value >> 16) & 0xFF);\n outputStream.writeByte((value >> 8) & 0xFF);\n outputStream.writeByte(value & 0xFF);\n } else {\n outputStream.writeByte(value & 0xFF);\n outputStream.writeByte((value >> 8) & 0xFF);\n outputStream.writeByte((value >> 16) & 0xFF);\n outputStream.writeByte((value >> 24) & 0xFF);\n }\n }", "public void writeInt(int i) throws IOException {\n\t\twriteByte((byte) (i >> 24));\n\t\twriteByte((byte) (i >> 16));\n\t\twriteByte((byte) (i >> 8));\n\t\twriteByte((byte) i);\n\t}", "@Override\r\n public void write(int value) throws IOException {\r\n super.write(value);\r\n if (!(inWrite1 || inWrite3)) {\r\n /*if (!Helper.NEW_IO_HANDLING && null != IoNotifier.fileNotifier) {\r\n IoNotifier.fileNotifier.notifyWrite(recId, 1);\r\n } else {*/\r\n if (null != RecorderFrontend.instance) {\r\n RecorderFrontend.instance.writeIo(recId, \r\n null, 1, StreamType.FILE);\r\n }\r\n //}\r\n }\r\n }", "public void write(int b) throws IOException;", "public void write(int pVal) throws IOException {\n mPrintWriter.write(pVal);\n }", "public void write(int b) throws IOException\n {\n checkThreshold(1);\n getStream().write(b);\n written++;\n }", "String intWrite();", "public void write(int c) throws IOException {\n ensureOpen();\n out.write(c);\n }", "public StreamWriter write(int value) {\r\n\t\tif(order() == ByteOrder.LITTLE_ENDIAN){\r\n\t\t\t_buffer[0] = (byte) (value & 0xFF);\r\n\t\t\t_buffer[1] = (byte) ((value & 0xFF00) >> 8);\r\n\t\t\t_buffer[2] = (byte) ((value & 0xFF0000) >> 16);\r\n\t\t\t_buffer[3] = (byte) ((value & 0xFF000000) >> 24);\r\n\t\t}else{\r\n\t\t\t_buffer[0] = (byte) (value >> 24);\r\n\t\t\t_buffer[1] = (byte) (value >> 16);\r\n\t\t\t_buffer[2] = (byte) (value >> 8);\r\n\t\t\t_buffer[3] = (byte) value;\r\n\t\t}\r\n\t\t_stream.write(_buffer,0,4);\r\n\t\treturn this;\r\n\t}", "private void writeInt(DataOutputStream out, int n) throws IOException {\n int result = ((n & 0xFF) << 24) | ((n & 0xFF00) << 8) | ((n & 0xFF0000) >> 8) | ((n & 0xFF000000) >> 24);\n out.writeInt(result);\n }", "void writeByte(int v) throws IOException;", "public void write(int b) throws IOException\n {\n this.out.write(b); // write the byte b to the Stream\n }", "public static void writeNumberToFile() {\n try {\n FileOutputStream outputStream = new FileOutputStream(\"ex1.txt\");\n outputStream.write(String.valueOf(53).getBytes());\n } catch (FileNotFoundException e) {\n // handle FileNotFoundException\n } catch (IOException e) {\n // handle IOException\n } finally {\n System.out.println(\"Finally block\");\n }\n }", "public void writeByte(int value)\n throws java.io.IOException {\n\n outputStream.writeByte(value);\n }", "public static int writeInt(OutputStream target, int value) throws IOException {\n target.write(value >>> 24);\n target.write(value >>> 16);\n target.write(value >>> 8);\n target.write(value);\n return Integer.BYTES;\n }", "@Override\n\tpublic void write(DataOutput dout) throws IOException {\n\t\tdout.writeLong(this.time);\n\t\tdout.writeInt(this.intVal);\n\t}", "@Override\n public void write(final int byteVal) throws IOException {\n write(new byte[] { (byte) (byteVal & 0xFF) });\n }", "void writeNumber(Number num);", "public void write(int b) throws IOException {\n baos.write(b);\n }", "@Override\n\tpublic void write(int value) {\n\t\tint lowByte = getFirstArg();\n\t\tint highByte = getSecondArg();\n\t\tint address = highByte;\n\t\taddress = address << 8;\n\t\taddress |= lowByte;\n\t\tCpuMem.getInstance().writeMem(address, value);\n\t}", "private void write(int i) {\n\t\tEditor edit = preticketint.edit();\r\n\t\tedit.putInt(\"ticketint\", i);\r\n\t\tedit.commit();\r\n\t}", "public final void writeInt(final int data, final boolean endianess) throws IOException {\r\n\r\n if (endianess == FileDicomBaseInner.BIG_ENDIAN) {\r\n byteBuffer4[0] = (byte) (data >>> 24);\r\n byteBuffer4[1] = (byte) (data >>> 16);\r\n byteBuffer4[2] = (byte) (data >>> 8);\r\n byteBuffer4[3] = (byte) (data & 0xff);\r\n } else {\r\n byteBuffer4[0] = (byte) (data & 0xff);\r\n byteBuffer4[1] = (byte) (data >>> 8);\r\n byteBuffer4[2] = (byte) (data >>> 16);\r\n byteBuffer4[3] = (byte) (data >>> 24);\r\n }\r\n\r\n raFile.write(byteBuffer4);\r\n }", "public void writeInt(int i) throws IOException {\n\t\tmBuffer[mBufferLength+3] = (byte) i;\n\t\tmBuffer[mBufferLength+2] = (byte) (i>>>8);\n\t\tmBuffer[mBufferLength+1] = (byte) (i>>>16);\n\t\tmBuffer[mBufferLength] = (byte) (i>>>24);\n\n\n\t\t\n\n\n\t\tmBufferLength += 4;\n\n\t\t// TODO: on the first filling of the buffer, flush when bufferLength+offset is at the end of a segment\n\t\tif (firstFill && ((mBufferLength >= firstFillThreshold))) {\n\t\t\tthis.flush();\n\t\t\tfirstFill = false;\n\t\t}\n\n\t\tif (mBufferLength == BUFFER_SIZE){\n\t\t\tthis.flush();\n\t\t}\n\t}", "public void write(int ints) {\n try {\n mOutStream.writeInt(ints);\n Log.i(\"TRANSFER\", \"wrote \" + ints);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "static void encodeInt(DataOutput os, int i) throws IOException {\n if (i >> 28 != 0)\n os.write((i >> 28) & 0x7f);\n if (i >> 21 != 0)\n os.write((i >> 21) & 0x7f);\n if (i >> 14 != 0)\n os.write((i >> 14) & 0x7f);\n if (i >> 7 != 0)\n os.write((i >> 7) & 0x7f);\n os.write((i & 0x7f) | (1 << 7));\n }", "@Override\n protected void writeInternal(int index, int value) {\n\n }", "@Override\n protected void writeInternal(int index, int value) {\n\n }", "@Override\r\n\t\t\tpublic void write(int b) throws IOException {\n\t\t\t}", "@Override\n public void write(int b) {\n try {\n out.write(b);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "protected abstract void writeInternal(int index, int value);", "public void write(int b) throws IOException\n\t{\n\t\tout.write(b);\n\t\tmd5.update((byte) (b & 0xff));\n\t}", "@Override\r\n\tpublic synchronized void write(int b)\r\n\t{\r\n\t}", "private static void writeToBuffer(int index, RandomAccessFile fos) {\n\n try {\n\n // x is the current integer value to be written.\n int x;\n // loc is the current location in the buffer to be written.\n int loc = 0;\n\n // iterates through each value in the sorted integer array.\n for (int k = 0; k < index; k++) {\n // gets the current integer.\n x = ints[k];\n\n // checks if the buffer is full.\n if (loc == BUF_SIZE) {\n // if the buffer is full, write its contents out to the file.\n fos.write(buf);\n // the buffer has been emptied, so set its current location back to the start.\n loc = 0;\n }\n\n // convert the current integer value to be written to a byte array.\n buf[loc] = (byte) (x >> 24);\n buf[loc + 1] = (byte) (x >> 16);\n buf[loc + 2] = (byte) (x >> 8);\n buf[loc + 3] = (byte) (x);\n\n // increment the location in the buffer now that a value has been written in.\n loc += BYTES_TO_INTS;\n }\n\n if (loc > 0) {\n // if there are any values left over in the buffer, write them out to the file.\n fos.write(buf, 0, loc);\n\n }\n } catch (IOException e){\n e.printStackTrace();\n }\n }", "public void writeInt(String actionName, Integer value) throws IllegalStateException {\n\t\tif (!canPerformAction(actionName, Action.ACTION_WRITE, Value.VALUE_INTEGER)) {\n\t\t\tthrow new IllegalStateException(\"\\twriteInt in \" + this.name + \" is not supported\");\n\t\t}\n\t\tNetworkClient.getInstance().writeInt(this.name, actionName, value);\n\t}", "int writeTo(OutputStream out) throws IOException;", "public ByteBuf writeInt(int value)\r\n/* 551: */ {\r\n/* 552:562 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 553:563 */ return super.writeInt(value);\r\n/* 554: */ }", "public void writeToFile(RandomAccessFile fio) {\n try {\n fio.writeInt(number);\n fio.writeUTF(name);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public static void writeInteger(DataOutputStream dos,Integer data) throws IOException{\r\n\t\tif(data != null){\r\n\t\t\tdos.writeBoolean(true);\r\n\t\t\tdos.writeInt(data.intValue());\r\n\t\t}\r\n\t\telse\r\n\t\t\tdos.writeBoolean(false);\r\n\t}", "@Override\r\n\tpublic void write(DataOutput out) throws IOException {\n\t\tWritableUtils.writeVInt(out, this.id);\r\n\t}", "void writeShort(int v) throws IOException;", "public static void setNumber(RandomAccessFile raf, int i, int value) throws IOException {\n raf.seek(4 * i);\n raf.writeInt(value);\n }", "public void write( int b ) throws IOException {\n\t\tthis.oneBuf[0] = (byte) b;\n\t\tthis.write( this.oneBuf, 0, 1 );\n\t\t}", "@Override\n\tpublic void writeByte(int b) throws IOException {\n\t\t\n\t}", "@Override\n protected void serialize(OutputStream os) throws IOException {\n writeInt(os,_gateCounter);\n }", "void writeLong(long v) throws IOException;", "public int writeToFile(int n, int index) throws IOException {\n FileWriter file = (FileWriter) filePtrs.get(index);\n file.write(Utils.codePointToString(n));\n return index;\n }", "public void write(int b) throws IOException {\n/* 54 */ this.appendable.append((char)b);\n/* */ }", "public int write(int c) throws IOException, BadDescriptorException {\n checkOpen();\n \n ByteBuffer buf = ByteBuffer.allocate(1);\n buf.put((byte)c);\n buf.flip();\n \n return internalWrite(buf);\n }", "public void write(SecureObject o, int value){\n o.currentValue = value;\n //System.out.println(o.name +\" was written as \" + value);\n }", "public void write(int b) \r\n {\r\n \tint newcount = count + 1;\r\n \tif (newcount > buf.length) \r\n \t{\r\n \t\tbyte newbuf[] = new byte[Math.max(buf.length << 1, newcount)];\r\n \t\tSystem.arraycopy(buf, 0, newbuf, 0, count);\r\n \t\tbuf = newbuf;\r\n \t}\r\n \tbuf[count] = (byte)b;\r\n \tcount = newcount;\r\n }", "public static void writeTextToFile() {\n try {\n FileOutputStream outputStream = new FileOutputStream(\"ex1.txt\");\n int number = Integer.parseInt(\"2f5\");\n outputStream.write(String.valueOf(number).getBytes());\n\n } catch (IOException | NumberFormatException e) {\n // handle exception\n } finally {\n System.out.println(\"Finally block\");\n }\n }", "static void write32( int dword, OutputStream out )\n throws IOException\n {\n out.write( dword );\n out.write( dword >> 8 );\n out.write( dword >> 16 );\n out.write( dword >> 24 );\n }", "public void write(int c) throws IOException {\r\n try {\r\n os.write(c);\r\n } catch (IOException io) {\r\n if (!cbImpl.checkMobileNetwork()) {\r\n throw new WrapperIOException(new TransportException(io.getMessage(), io,\r\n TransportException.NO_NETWORK_COVERAGE));\r\n }\r\n throw io;\r\n }\r\n }", "public void writeLong(long i) throws IOException {\n\t\twriteInt((int) (i >> 32));\n\t\twriteInt((int) i);\n\t}", "public void write(int c) throws IOException{\r\n if(closed){\r\n throw new IOException(\"The stream is not open.\");\r\n }\r\n getBuffer().append((char)c);\r\n }", "void writeLong(long value);", "public synchronized void write(final int b) throws IOException {\n\t\tthis.singleIntArray[0] = (byte) (0xFF & b);\n\t\twrite(singleIntArray, 0, 1);\n\t}", "void writeBit(int bit) throws IOException;", "public void writeIntArray(int[] array) throws IOException {\n\t\tfor (int a : array) {\n\t\t\tthis.writeInt(a);\n\t\t}\n\t}", "@Test\n public void testWriteInt() {\n System.out.println(\"writeInt\");\n /** Positive testing. */\n // Positive value\n Long val = 42L;\n String expResult = \"i42e\";\n String result = Bencoder.writeInt(val);\n assertEquals(expResult, result);\n // Zerro value\n val = 0L;\n expResult = \"i0e\";\n result = Bencoder.writeInt(val);\n assertEquals(expResult, result);\n // Negative value\n val = -42L;\n expResult = \"i-42e\";\n result = Bencoder.writeInt(val);\n assertEquals(expResult, result);\n }", "public BinaryEncoder writeInt(int i) throws IOException {\n // Compute the zig-zag value. First double the value and flip the bit if the input is negative.\n int val = (i << 1) ^ (i >> 31);\n\n if ((val & ~0x7f) != 0) {\n output.write(0x80 | val & 0x7f);\n val >>>= 7;\n while (val > 0x7f) {\n output.write(0x80 | val & 0x7f);\n val >>>= 7;\n }\n }\n output.write(val);\n\n return this;\n }", "public void writeIntPrefs(String prefName, int prefValue) {\n editor = sPrefs.edit();\n editor.putInt(prefName, prefValue);\n editor.apply();\n }", "public void write(long time, int value) {\n timeEncoder.encode(time, timeOut);\n valueEncoder.encode(value, valueOut);\n statistics.update(time, value);\n }", "public abstract void save(IntIntsCol col, DataOutputStream output) throws IOException;", "@Override\n\tpublic void serializeTo(DataOutputStream output) throws IOException\n\t{\n\t\toutput.writeLong(value);\n\t}", "private static void writeDATA(int data) {\n writeByte(true,data);\n }", "void write();", "@Override\n public void write(int i) throws IOException {\n if (pos == BUFFER_SIZE) {\n flush();\n }\n buffer[pos++] = (byte)i;\n }", "public static void write4bytes(int value, OutputStream outputStream) throws IOException {\n outputStream.write(value >>> 3 * 8);\n outputStream.write(value >>> 2 * 8 & 255);\n outputStream.write(value >>> 1 * 8 & 255);\n outputStream.write(value & 255);\n }", "private void writeByte(int val) {\n dest[destPos++] = (byte) val;\n }", "public static void writeLongToFile(String executionCursorFile, long value) throws IOException {\n PrintWriter out = null;\n try {\n File f = getFile(executionCursorFile);\n out = new PrintWriter(new FileWriter(f));\n out.println(Long.toString(value));\n } finally {\n if (out != null) {\n out.close();\n }\n }\n }", "@Override\r\n\tpublic int write() throws Exception {\n\t\treturn 0;\r\n\t}", "@Override\n public void write(int b) throws IOException {\n byte ib = (byte) b;\n long p = df.position();\n // If not at the end yet,\n if (p < df.size()) {\n // Get the current value,\n byte cur_b = df.get();\n // If the value we are inserting is different,\n if (cur_b != ib) {\n // Reposition and put the new value,\n df.position(p);\n df.put(ib);\n// ++change_count;\n }\n }\n // At the end so write the byte,\n else {\n df.put(ib);\n }\n }", "public void writeUnsignedByte(int i) throws IOException {\r\n\t\tthis.writeByte(i);\r\n\t\t// this.writeByte((byte) (i % 128));\r\n\t}", "public void write(final File out) throws IOException;", "public void putInt(ResourceLocation name, int value) {\n data.putInt(name.toString(), value);\n }", "private static void outputResult(int result, File file) {\n\n try (FileWriter fileWriter = new FileWriter(file)) {\n fileWriter.write(result + \"\");\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }", "public void encode(int c, Writer out)\n throws IOException {\n out.write(c);\n }", "void writeInts(int[] i, int off, int len) throws IOException;", "public static int writeInt(byte[] target, int offset, int value) {\n target[offset] = (byte) (value >>> 24);\n target[offset + 1] = (byte) (value >>> 16);\n target[offset + 2] = (byte) (value >>> 8);\n target[offset + 3] = (byte) value;\n return Integer.BYTES;\n }", "public void send(int number){\n\t\ttry{\n\t\t\tSystem.out.println(\"Sende \" + number);\n\t\t\tout.writeInt(number);\n\t\t\tout.flush();\n\t\t} catch (IOException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "protected abstract void writeFile();", "public abstract void write(O value) throws IOException;", "@Override\n\tpublic void write(DataOutput out) throws IOException {\n\t\ttimeInt.write(out);\n\t\tsum.write(out);\n\t\tIp.write(out);\n\t}", "@Test\n public void testReadWriteInt() {\n System.out.println(\"readInt\");\n ByteArray instance = new ByteArray();\n \n instance.writeInt(12, 0);\n instance.writeInt(1234, 4);\n instance.writeInt(13, instance.compacity());\n \n assertEquals(12, instance.readInt(0));\n assertEquals(1234, instance.readInt(4));\n assertEquals(13, instance.readInt(instance.compacity() - 4));\n \n instance.writeInt(14, 4);\n assertEquals(14, instance.readInt(4));\n }", "private int read_int(RandomAccessFile file) throws IOException {\n int number = 0;\n for (int i = 0; i < 4; ++i) {\n number += (file.readByte() & 0xFF) << (8 * i);\n }\n return number;\n }", "@Override\n public void write(DataOutput out) throws IOException {\n out.writeInt(numberOfIterations);\n }", "public static void randomAccessWrite() {\n try {\n RandomAccessFile f = new RandomAccessFile(FILES_TEST_PATH, \"rw\");\n f.writeInt(10);\n f.writeChars(\"test line\");\n f.close();\n } catch(Exception e) {\n e.printStackTrace();\n }\n }", "public void writeNumber(short s)\n/* */ throws IOException\n/* */ {\n/* 602 */ _verifyValueWrite(\"write a number\");\n/* 603 */ if (this._cfgNumbersAsStrings) {\n/* 604 */ _writeQuotedShort(s);\n/* 605 */ return;\n/* */ }\n/* */ \n/* 608 */ if (this._outputTail + 6 >= this._outputEnd) {\n/* 609 */ _flushBuffer();\n/* */ }\n/* 611 */ this._outputTail = NumberOutput.outputInt(s, this._outputBuffer, this._outputTail);\n/* */ }", "public void writeToFile() {\n try {\n // stworz plik\n File file = new File(\"../Alice.ids\");\n // stworz bufor zapisu do pliku\n FileWriter fileWriter = new FileWriter(file);\n for(int i = 0; i < identificationNumbers.length; i++) {\n for(int j = 0; j < identificationNumbers[i].length; j++)\n fileWriter.write(Integer.toString(identificationNumbers[i][j]));\n\t\t\t fileWriter.write(\"\\n\");\n }\n\t\t\tfileWriter.flush();\n\t\t\tfileWriter.close();\n } catch(Exception e) {\n e.printStackTrace();\n }\n }", "@Override\n public void saveInt(String key, int value) {\n SharedPreferences.Editor prefs = mSharedPreferences.edit();\n prefs.putInt(key, value);\n prefs.commit();\n }", "public static void writeArray(String fileName, int[] array) throws Exception{\n\n // Create DataOutputStream to create a binary file.\n // Use fileName from Demo file and write from the array\n DataOutputStream output = new DataOutputStream(new FileOutputStream(fileName));\n\n // for each number in array\n for(int i : array) {\n //write the number to the binary file\n output.writeInt(i);\n }\n\n // close the output file\n output.close();\n }", "public void write(String id);", "public static @NonNull Buffer writeVarInt(@NonNull Buffer buffer, int value) {\n while (true) {\n if ((value & ~0x7F) == 0) {\n buffer.writeByte((byte) value);\n return buffer;\n } else {\n buffer.writeByte((byte) ((value & 0x7F) | 0x80));\n value >>>= 7;\n }\n }\n }", "String longWrite();", "public void write(DataOutput output) throws IOException {\n output.writeShort(this.data);\n }", "@Override\n\tpublic void write(DataOutput out) throws IOException {\n\t\tout.writeInt(bytes);\n\t\tout.write(buffer);\t\t\n\t}" ]
[ "0.82831204", "0.81243676", "0.79168093", "0.7607195", "0.75092834", "0.74702305", "0.7414951", "0.7096608", "0.7093209", "0.704554", "0.69152665", "0.6849898", "0.6788711", "0.6735242", "0.67015845", "0.6679935", "0.6675145", "0.6662045", "0.66058093", "0.6575881", "0.6568381", "0.65551895", "0.6509857", "0.6482583", "0.6423137", "0.6414776", "0.6410561", "0.63749385", "0.6371352", "0.63636386", "0.63636386", "0.6354516", "0.632841", "0.6243965", "0.6212234", "0.6193514", "0.6188923", "0.61614317", "0.61574954", "0.6144153", "0.61151665", "0.60975134", "0.60917306", "0.6028518", "0.6027391", "0.60049695", "0.60016304", "0.5993425", "0.596176", "0.59488577", "0.5924592", "0.5907499", "0.58691293", "0.58275616", "0.5820492", "0.58107305", "0.5807252", "0.5799515", "0.5773881", "0.57710016", "0.57627225", "0.5734354", "0.5727746", "0.5720616", "0.5719469", "0.5701171", "0.5698309", "0.56914586", "0.5680976", "0.56486106", "0.5644756", "0.562675", "0.56181437", "0.5615247", "0.56133425", "0.5598374", "0.55976164", "0.5574125", "0.5567638", "0.5561952", "0.5545952", "0.55006284", "0.54997045", "0.5470244", "0.54643303", "0.5448654", "0.54187924", "0.5417821", "0.5387577", "0.53744817", "0.5366255", "0.5364875", "0.5342928", "0.5340165", "0.5335172", "0.533452", "0.5332449", "0.5325281", "0.53230643", "0.53128564", "0.53063214" ]
0.0
-1
Reads an int from file.
public int readTrials() throws Exception { return fileHandler.readInt(file); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int read_int(RandomAccessFile file) throws IOException {\n int number = 0;\n for (int i = 0; i < 4; ++i) {\n number += (file.readByte() & 0xFF) << (8 * i);\n }\n return number;\n }", "public int readInt() throws IOException;", "int readInt() throws IOException;", "public static int getIntFromFile(String filename) {\n if (Logger.get().isDebug()) {\n Logger.debug(\"Reading file {}\", filename);\n }\n try {\n List<String> read = FileKit.readLines(filename);\n if (!read.isEmpty()) {\n if (Logger.get().isTrace()) {\n Logger.trace(\"Read {}\", read.get(0));\n }\n return Integer.parseInt(read.get(0));\n }\n } catch (NumberFormatException ex) {\n Logger.warn(\"Unable to read value from {}. {}\", filename, ex.getMessage());\n }\n return 0;\n }", "public int readInt() throws IOException {\n return in.readInt();\n }", "public static int readInt() {\n return Integer.parseInt(readString());\n }", "public int readInt();", "public int readInt() throws IOException {\n int token = fTokenizer.nextToken();\n if (token == StreamTokenizer.TT_NUMBER)\n return (int) fTokenizer.nval;\n\n String msg = \"Integer expected in line: \" + fTokenizer.lineno();\n throw new IOException(msg);\n }", "public int readInt() {\n return Integer.parseInt(readNextLine());\n }", "public int readInt(){\n\t\tif(sc.hasNextInt()){\n\t\t\treturn sc.nextInt();\n\t\t}\n\t\tsc.nextLine();\n\t\treturn -1;\n\t}", "public final int read() throws IOException {\r\n\t\treturn f.read();\r\n\t}", "public int readInt() {\n return ((int) readLong());\n }", "public static final int readInt(InputStream in) throws IOException {\n byte[] buff = new byte[4];\n StreamTool.readFully(in, buff);\n return getInt(buff, 0);\n }", "static int readInt() throws Exception {\n\t\treturn Integer.parseInt(readString());\n\t}", "public static int readID(String path) {\n int id = 0;\n\n try {\n File file = new File(sourcePath + path);\n BufferedReader br = new BufferedReader(new FileReader(file));\n\n String line = br.readLine();\n\n if (line != null)\n id = Integer.parseInt(line.trim());\n else\n System.out.println(\"Unable to convert to integer!\");\n\n br.close();\n } catch (IOException e) {\n System.out.println(\"File not found!\");\n e.printStackTrace();\n }\n\n return id;\n }", "int readInt();", "public static int getInt() throws IOException {\n String s = getString();\n return Integer.parseInt(s);\n }", "public static int getInt() throws IOException {\r\n String s = getString();\r\n return Integer.parseInt(s);\r\n }", "private long read_long(RandomAccessFile file) throws IOException {\n long number = 0;\n for (int i = 0; i < 8; ++i) {\n number += ((long) (file.readByte() & 0xFF)) << (8 * i);\n }\n return number;\n }", "String intRead();", "public static int readInt(Context context, String fileName, String key) {\n if (context == null) return 0;\n SharedPreferences sharedPreferences = context.getSharedPreferences(fileName, Context.MODE_PRIVATE);\n return sharedPreferences.getInt(key, 0);\n }", "private static int readInt(InputStream is) throws IOException {\n int a = is.read();\n int b = is.read();\n int c = is.read();\n int d = is.read();\n return a | b << 8 | c << 16 | d << 24;\n }", "public int read_int32() throws IOException {\n byte bytes[] = read_bytes(4);\n\n return bytesToInt32(bytes, Endianness.BIG_ENNDIAN);\n }", "private int getInt() {\n intBuffer.rewind();\n archive.read(intBuffer);\n intBuffer.flip();\n return intBuffer.getInt();\n }", "public static int readInt1(Context context, String fileName, String key) {\n if (context == null) return -1;\n SharedPreferences sharedPreferences = context.getSharedPreferences(fileName, Context.MODE_PRIVATE);\n return sharedPreferences.getInt(key, -1);\n }", "public ArrayList<Integer> readFile(File file) {\n\t\tArrayList<Integer> fileData = new ArrayList<Integer>();\n\t\t// read the file\n\t\ttry {\n\t\t\tScanner sc = new Scanner(file);\n\t\t\twhile (sc.hasNextInt()) {\n\t\t\t\tfileData.add(sc.nextInt());\n\t\t\t}\n\t\t\tsc.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"An error occurred.\");\n\t\t e.printStackTrace();\n\t\t}\n\t\treturn fileData;\n\t}", "public int read() throws IOException;", "public static int getInt() throws IOException {\n\t\nString s = getString();\nreturn Integer.parseInt(s);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Returns the integer in the string as an Int.\n\t\n}", "public static int readInt()\n \n {\n int i=0;\n String wort=\"xxxx\";\n try {\n wort=eingabe.readLine();\n i=Integer.parseInt(wort) ;\n } catch(IOException e1) {\n System.out.println(\"Eingabefehler, bitte noch einmal!\");\n i=readInt();\n } catch(NumberFormatException e2) {\n if(wort.equals(\"\"))\n System.out.println(\"Bitte etwas eingeben, noch einmal:\");\n else {\n System.out.print(\"Fehler beim Format, \");\n System.out.println(\"bitte noch einmal!\");}\n i=readInt();\n }\n return i;\n }", "public static int getNumber(RandomAccessFile raf, int i) throws IOException {\n raf.seek(i*4);\n return raf.readInt();\n }", "@Override\n public final int readVarint32() throws IOException {\n return (int) readVarint64();\n }", "public int readInt() {\n\t\tString read;\n\t\ttry {\n\t\t\tread = myInput.readLine();\n\t\t\tint num = Integer.parseInt(read);\n\t\t\treturn num;\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Input failed!\\n\");\n\t\t\treturn -1;\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.out.println(\"Not a valid selection!\\n\");\n\t\t\treturn -1;\n\t\t}\n\t}", "@SuppressWarnings(\"unused\")\n public int getInt(String path) {\n return yml.getInt(path);\n }", "private static Integer getInteger(BufferedReader reader) throws IOException{\n Integer result=null;\n while(result==null) {\n try {\n result = Integer.parseInt(reader.readLine().trim());\n } catch (NumberFormatException e) {\n throw new NumberFormatException(\"You should feed integer for this input.\");\n }\n }\n return result;\n }", "public static int readIntFromIndex(File file, String index) {\n if(!file.exists()) return -1;\n String[] lines = getFileLines(file);\n for(String line : lines) {\n if(line.startsWith(index)) {\n line = line.replace(index,\"\");\n try{\n return Integer.parseInt(line);\n } catch (Exception e) { //continues looking for another index\n e.printStackTrace();\n ZmdbLogger.log(\"Unable to get integer from index \" + index + \" from file \" + file.getPath() + \". Continuing to look for another index.\");\n }\n }\n }\n //if nothing was found or Integer.parseInt failed\n return -1;\n }", "private static int[] readData(int size, String filename) throws FileNotFoundException {\n\t\tint[] input = new int[size];\t\n\t\tScanner scanner = new Scanner(new File(filename));\n \n int i = 0;\n while (scanner.hasNext() && i < size)\n {\n \tinput[i] = Integer.parseInt(scanner.next());\n \ti++;\n }\n scanner.close();\n\t return input;\n\t}", "abstract int readInt(int start);", "public int read(int i);", "int getIntArgument() throws Exception {\n return Integer.parseInt(this.readLine().split(\"\\\\s+\", 2)[1]);\n }", "public int readFromFile(int index) throws IOException {\n FileReader file = (FileReader) filePtrs.get(index);\n int i16 = file.read(); // UTF-16 as int\n char c16 = (char)i16; // UTF-16\n if (Character.isHighSurrogate(c16))\n {\n int low_i16 = file.read(); // low surrogate UTF-16 as int\n char low_c16 = (char)low_i16;\n return Character.toCodePoint(c16, low_c16);\n }\n return i16;\n }", "public static int readInt(InputStream source) throws IOException {\n int b1 = source.read();\n int b2 = source.read();\n int b3 = source.read();\n int b4 = source.read();\n if ((b1 | b2 | b3 | b4) < 0) {\n throw new EOFException();\n } else {\n return makeInt(b1, b2, b3, b4);\n }\n }", "private static int readFromBuffer() throws IOException{\n int n;\n // The number of ints read into the buffer after a read.\n int intsRead;\n // The current position in the byte buffer.\n int pos;\n // The current integer values being processed.\n int x;\n // The current position in the integer array of values to be sorted.\n int index = 0;\n\n // The loop condition reads in the next buffer of bytes from the file, until there are no\n // more bytes to be read in.\n while ((n = fis.read(buf)) != READ_FINISHED) {\n intsRead = n / BYTES_TO_INTS;\n\n // iterate through all the ints currently being held in the byte buffer\n // if they fall in the given bound, add them to the int array to be sorted.\n for (int i = 0; i < intsRead; i++) {\n pos = BYTES_TO_INTS * i;\n\n // Convert the next set of 4 bytes to an integer.\n x = (((int) buf[pos]) & 255) << 24\n | ((((int) buf[pos + 1]) & 255) << 16)\n | ((((int) buf[pos + 2]) & 255) << 8)\n | ((((int) buf[pos + 3]) & 255));\n\n\n // put the current integer into the int array\n ints[index] = x;\n index++;\n }\n }\n\n\n // This returns the number of values selected to be sorted.\n return index;\n }", "private ArrayList<Integer> fileReader() {\n ArrayList<Integer> data = new ArrayList<>();\n try {\n Scanner scanner = new Scanner(new File(\"andmed.txt\"));\n while (scanner.hasNextLine()) {\n data.add(Integer.valueOf(scanner.nextLine()));\n }\n scanner.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n return data;\n }", "public int read() throws FTD2XXException {\n byte[] c = new byte[1];\n int ret = read(c);\n return (ret == 1) ? (c[0] & 0xFF) : -1;\n }", "public int getInt(int addr) throws ProgramException {\n return (int) getLittleEndian(addr, Integer.BYTES);\n }", "public static int readInt( String message) throws IOException {\n\t\tint number=0;\n\t\tint redFlag=0;\n\t\twhile(redFlag==0){\n\t\t\tSystem.out.print(message);\n\t\t\ttry{\n\t\t\t\t\tnumber = Integer.parseInt(read.readLine());\n\t\t\t\t\tredFlag=1;\n\t\t\t}\n\t\t\tcatch (Exception e){\n\t\t\t\tSystem.out.print(\"You must enter numbers\\n\");\n\t\t\t\tredFlag=0;\n\t\t\t}\n\t\t}\n\t\treturn (number); \n\t}", "public int getInt(String path)\n {\n if (configuration.contains(path))\n return configuration.getInt(path);\n else return defaultConfig.getInt(path);\n }", "public static int readInt(){\n\t\tSystem.out.println();\n\t\tstringInput = readInput();\n\t\ttry{\n\t\t\tintInput = Integer.parseInt(stringInput);\n\t\t}\n\t\tcatch (NumberFormatException ex) {\n\t\t System.err.println(\"Not a valid number: \" + stringInput);\n\t\t}\n\t\treturn intInput; \t\t\n\t}", "public int read() {\n return (readInt());\n }", "public byte[] readRawInt() throws IOException {\n byte[] bytes = new byte[5];\n bytes[0] = (byte) Type.INT.code;\n in.readFully(bytes, 1, 4);\n return bytes;\n }", "public static Integer readInteger(DataInputStream dis) throws IOException {\r\n\t\tif(dis.readBoolean())\r\n\t\t\treturn new Integer(dis.readInt());\r\n\t\treturn null;\r\n\t}", "public Integer readIntegerFromCmd() throws IOException {\r\n\t\tSystem.out.println(\"Enter your number:\");\r\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\r\n\t\tString number = null;\r\n\t\tnumber = br.readLine();\r\n\t\treturn new Integer(number);\r\n\t}", "public ArrayList<Integer> readNumbersFromFile() throws FileNotFoundException {\r\n ArrayList<Integer> arrayList = new ArrayList<>();\r\n File file = new File(readFilename);\r\n Scanner scanner = new Scanner(file);\r\n while(scanner.hasNextInt())\r\n {\r\n arrayList.add(scanner.nextInt());\r\n }\r\n return arrayList;\r\n }", "private static int parseAndStripInt(InputStream in) throws IOException, PNMReaderException {\n\t\treturn parseAndStripInt(in, Integer.MAX_VALUE, (int)Math.ceil(Math.log10(Integer.MAX_VALUE)), true);\n\t}", "public int read() throws IOException {\n ensureOpen();\n return read(singleByteBuf, 0, 1) == -1 ? -1 : Byte.toUnsignedInt(singleByteBuf[0]);\n }", "public int readInt(String prompt);", "public int leerInt() throws IOException\r\n {\r\n return maestro.readInt(); \r\n }", "public static int dataNum(File file) {\n int lineCount = 0; // Start line count at 0\n\n try { // Try catch\n Scanner scan = new Scanner(file); // Scans file that was specified\n while(scan.hasNextLine()) { // While loop runs until there are no more lines to read\n String line = scan.nextLine(); // Line read is stored as a string\n if (Character.isDigit(line.charAt(4))) { // Sees if the 4th character in the line is a integer\n lineCount++; // If it is an integer, it counts that line\n }\n }\n return lineCount; // Returns the line count\n } catch (FileNotFoundException e) { // If error occurs\n System.out.println(\"An error has occured\"); // Print that error has occured\n }\n return 0; // In case there is no lineCount return and to get rid of errors\n }", "public int idNum(String fullFilePath){\n\n int lines = 0;\n\n try {\n BufferedReader reader = new BufferedReader(new FileReader(fullFilePath));\n while (reader.readLine() != null) {\n lines++;\n }\n reader.close();\n }\n catch(IOException ioe) {\n ioe.printStackTrace();\n }\n return lines;\n }", "public static int getFileNum(File f)\r\n\t{\r\n\t\tString fileStr = f.toString().substring(2);\r\n\t\t\r\n\t\tint num = Integer.parseInt(fileStr.substring(13, fileStr.length()-5));\r\n\t\treturn num;\r\n\t}", "public final static int get(String fileName) {\n\t\t\tString strValue = PROPERTIES.getProperty(fileName);\n\t\t\t//log.info(\"GET dataset id : \"+fileName);\n\t\t\ttry {\treturn strValue!=null? Integer.valueOf(strValue): -1;\t}catch(Exception e) {\treturn -1;\t}\n\t\t}", "@Override\n public int read() throws IOException {\n return input.read();\n }", "private static int readScore() {\n try {\n fis = activity.openFileInput(scoreFileName);\n BufferedReader br = new BufferedReader(new InputStreamReader(fis));\n String readLine = br.readLine();\n fis.close();\n br.close();\n Log.v(\"Setting score to: \", readLine);\n return Integer.parseInt(readLine);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return 0;\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 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 int readInteger(String prompt) throws IOException {\r\n\t\tint value = 0;\r\n\t\twhile (true) {\r\n\t\t\ttry {\r\n\t\t\t\tSystem.out.print(prompt + \" _>\");\r\n\t\t\t\tvalue = Integer.valueOf(reader.readLine()).intValue();\r\n\t\t\t\tbreak;\r\n\t\t\t} catch (IOException ex) {\r\n\t\t\t\tSystem.err.println(ex.getLocalizedMessage());\r\n\t\t\t\tthrow ex;\r\n\t\t\t} catch (NumberFormatException ex) {\r\n\t\t\t\tSystem.err.println(\"Conversion Error: \" + ex.getLocalizedMessage());\r\n\t\t\t\treturn readInteger(\"Try again: \" + prompt);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn value;\r\n\t}", "public static int readInt() {\n try {\n return scanner.nextInt();\n }\n catch (InputMismatchException e) {\n String token = scanner.next();\n throw new InputMismatchException(\"attempts to read an 'int' value from standard input, \"\n + \"but the next token is \\\"\" + token + \"\\\"\");\n }\n catch (NoSuchElementException e) {\n throw new NoSuchElementException(\"attemps to read an 'int' value from standard input, \"\n + \"but no more tokens are available\");\n }\n }", "static void experiment1Day1Part1() {\n\n File file = new File(\"src/main/java/weekone/input01.txt\");\n FileReader fileReader = null;\n BufferedReader bufferedReader = null;\n int sum = 0;\n\n try {\n fileReader = new FileReader(file);\n bufferedReader = new BufferedReader(fileReader);\n\n while ((bufferedReader.read() != -1)) {\n String line = bufferedReader.readLine();\n System.out.println(\"\\nThe string is: \" + line);\n int number = Integer.valueOf(line);\n\n System.out.println(\"The number is: \" + number);\n\n }\n\n\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n if (fileReader != null)\n fileReader.close();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }\n System.out.println(\"The sum is: \" + sum);\n }", "public static void readFile() {\n\t\tbufferedReader = null;\n\t\ttry {\n\t\t\tFileReader fileReader = new FileReader(\"/home/bridgeit/Desktop/number.txt\");\n\t\t\tbufferedReader = new BufferedReader(fileReader);\n\n\t\t\tString line;\n\t\t\twhile ((line = bufferedReader.readLine()) != null) {\n\t\t\t\tString[] strings = line.split(\" \");\n\t\t\t\tfor (String integers : strings) {\n\t\t\t\t\thl.add(Integer.parseInt(integers));\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"File Not Found...\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\tbufferedReader.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public static List<Integer> readBinaryFile(String filename) throws IOException\n {\n List<Integer> binary = new ArrayList<>();\n\n FileInputStream inputStream = new FileInputStream(filename);\n BufferedInputStream bufferedInputStream = new BufferedInputStream(inputStream);\n\n byte[] byteInput = bufferedInputStream.readAllBytes();\n\n String stringInput = new String(byteInput);\n\n for(char c : stringInput.toCharArray())\n {\n binary.add((int) (c - '0'));\n }\n\n return binary;\n }", "@Override\n public Ini read(File file) throws IOException {\n try ( Reader reader = new FileReader(file)) {\n return read(reader);\n }\n }", "public void readIn(String file) {\r\n\r\n\t\ttry {\r\n\r\n\t\t\t/** Initialise loop variable **/\r\n\r\n\t\t\tusedSize = 0;\r\n\r\n\t\t\t/** Set up file for reading **/\r\n\r\n\t\t\tFileReader reader = new FileReader(file);\r\n\r\n\t\t\tScanner in = new Scanner(reader);\r\n\r\n\t\t\t/** Loop round reading in data while array not full **/\r\n\r\n\t\t\twhile (in.hasNextInt() && (usedSize < size)) {\r\n\r\n\t\t\t\tA[usedSize] = in.nextInt();\r\n\r\n\t\t\t\tusedSize++;\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (IOException e) {\r\n\r\n\t\t\tSystem.out.println(\"Error processing file \" + file);\r\n\r\n\t\t}\r\n\r\n\t}", "public int read(int[] i) throws IOException {\n\t\treturn read(i, 0, i.length);\n\t}", "private final int readBytes( int number ) throws IOException {\n byte[] buffer = new byte[ number ];\n int read = dataSource.read( buffer, 0, number );\n\n if ( read != buffer.length ) {\n if ( read < 0 ) throw new IOException( \"End of Stream\" );\n for ( int i = read; i < buffer.length; i++ ) buffer[ i ] = (byte)readByte();\n }\n \n\t/**\n * Create integer\n */\n switch ( number ) {\n case 1: return (buffer[ 0 ] & 0xff);\n\t case 2: return (buffer[ 0 ] & 0xff) | ((buffer[ 1 ] & 0xff) << 8);\n\t case 3: return (buffer[ 0 ] & 0xff) | ((buffer[ 1 ] & 0xff) << 8) | ((buffer[ 2 ] & 0xff) << 16);\n\t case 4: return (buffer[ 0 ] & 0xff) | ((buffer[ 1 ] & 0xff) << 8) | ((buffer[ 2 ] & 0xff) << 16) | ((buffer[ 3 ] & 0xff) << 24);\n\t default: throw new IOException( \"Illegal Read quantity\" );\n\t}\n }", "public static int getIntValue(final String prefFile, final String key) {\n return getSharedPreferences(prefFile).getInt(key, 0);\n }", "public int readInt(){\n\t\ttry{\n\t\t\treturn scanner.nextInt();\n\t\t}catch (InputMismatchException e){\n\t\t\tString token=scanner.next();\n\t\t\tthrow new InputMismatchException(\"the next token is\\\"\"+token+\"\\\"\");\n\t\t}\n\t\tcatch (NoSuchElementException e){\n\t\t\tthrow new NoSuchElementException(\"no more tokens are available\");\n\t\t}\n\t}", "public List<Integer> readLineAsIntegers() throws IOException {\n List<Integer> ret = new ArrayList<>();\n int idx = 0;\n byte c = read();\n while (c != -1) {\n if (c == '\\n' || c == '\\r')\n break;\n\n // next integer\n int i = 0;\n while (c <= ' ') {\n c = read();\n }\n boolean negative = (c == '-');\n if (negative) {\n c = read();\n }\n\n do {\n i = i * 10 + (c - '0');\n c = read();\n } while (c >= '0' && c <= '9');\n// ret[idx++] = (negative) ? -i : i;\n ret.add((negative) ? -i : i);\n }\n return ret;\n }", "public int toInt(){\n\t\tString s = txt().trim();\n\t\tint i;\n\t\ttry{\n\t\t\ti = Integer.parseInt(s);\n\t\t}catch(NumberFormatException exp){\n\t\t\texp.printStackTrace();\n\t\t\treturn 0;\n\t\t}\n\t\treturn i;\t\n\t}", "long readLong() throws IOException;", "public int getInputForNumber() {\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\treturn Integer.parseInt(bufferedReader.readLine());\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.err.println(e.getLocalizedMessage());\n\t\t\t}\n\t\t}\n\t}", "public int read() throws IOException {\n // do the \"singleton\" initialization\n if (!getInitialized()) {\n initialize();\n setInitialized(true);\n }\n\n int ch = -1;\n\n // The readers return -1 if they end. So simply read the \"prepend\"\n // after that the \"content\" and at the end the \"append\" file.\n if (prependReader != null) {\n ch = prependReader.read();\n if (ch == -1) {\n // I am the only one so I have to close the reader\n prependReader.close();\n prependReader = null;\n }\n }\n if (ch == -1) {\n ch = super.read();\n }\n if (ch == -1) {\n // don�t call super.close() because that reader is used\n // on other places ...\n if (appendReader != null) {\n ch = appendReader.read();\n if (ch == -1) {\n // I am the only one so I have to close the reader\n appendReader.close();\n appendReader = null;\n }\n }\n }\n\n return ch;\n }", "public static final int readUInt(InputStream in) throws IOException {\n byte[] buff = new byte[4];\n StreamTool.readFully(in, buff);\n return getUInt(buff, 0);\n }", "public int[] readAllInts(){\n\t\tString[] fields=readAllStrings();\n\t\tint[] vals=new int[fields.length];\n\t\tfor (int i=0;i<fields.length;i++){\n\t\t\tvals[i]=Integer.parseInt(fields[i]);\n\t\t}\n\t\treturn vals;\n\t}", "public static int readIntDefaultUsd(Context context, String fileName, String key) {\n if (context == null) return 1;\n SharedPreferences sharedPreferences = context.getSharedPreferences(fileName, Context.MODE_PRIVATE);\n return sharedPreferences.getInt(key, 1);\n }", "public int getInt() throws NoSuchElementException,\n\t NumberFormatException\n {\n\tString s = tokenizer.nextToken();\n\treturn Integer.parseInt(s);\n }", "public int get_reading() {\n return (int)getUIntBEElement(offsetBits_reading(), 16);\n }", "public static int[] readMysteriousNumbers(String filename) throws Exception {\n File file = new File(filename);\n Scanner counter = new Scanner(file);\n int numLines = 0;\n while(counter.hasNextLine()){\n counter.nextLine();\n numLines++;\n }\n int[] arr = new int[numLines];\n\n\n\n Scanner reader = new Scanner(file);\n int index = 0;\n while(reader.hasNextLine()){\n arr[index] = Integer.parseInt(reader.nextLine());\n index++;\n }\n\n\n\n\n return arr;\n /*\n List<Integer> nums = new ArrayList<>();\n while (scanner.hasNextInt()) {\n nums.add(scanner.nextInt());\n }\n int[] ret = new int[nums.size()];\n for(int i = 0;i < ret.length;i++) {\n ret[i] = nums.get(i);\n }\n return ret*/\n }", "public final int read(byte[] b) throws IOException {\r\n\t\treturn f.read( b );\r\n\t}", "@Override\n\tpublic int read() {\n\t\treturn super.read();\n\t}", "private int getInt(String whatProperty, String levelConfigFilePath) {\n return getInt(levelConfig, whatProperty, levelConfigFilePath);\n }", "public int read(float[] f) throws IOException {\n\t\treturn read(f, 0, f.length);\n\t}", "public static int Id(String key) {\n try {\n File file = FileHandler.loadFile(key + \".id\");\n InputStream input = new FileInputStream(Objects.requireNonNull(file));\n Scanner scanner = new Scanner(input);\n int id = scanner.nextInt();\n scanner.close();\n input.close();\n return id;\n } catch (FileNotFoundException fileNotFoundException) {\n fileNotFoundException.printStackTrace();\n logger.fatal(key + \"id file doesnt exist.\");\n } catch (IOException e) {\n e.printStackTrace();\n logger.error(\"couldn't read from \" + key + \" id file.\");\n }\n return 0;\n }", "public static int getInt(Tag tag){\n makeInstance();\n return settingsFile.getInt(tag);\n }", "public int[] getData(String filename) throws IOException\n {\n\tScanner scanner = new Scanner(new File(filename)) ;\n\ttry {\n\t readData(scanner) ;\n\t return data ;\n\t}\n\tfinally {\n\t System.out.println(\"Finally closing the scanner.\") ;\n\t scanner.close() ;\n\t}\n }", "public int readInt() {\n\t\tif(!isInit) return 0;\n\t\tint result = 0;\n\t\tisListening = true;\n\t\twriteLine(\"Waiting for Integer input...\");\n\t\twhile(isListening) {\n\t\t\ttry {\n\t\t\t\tresult = Integer.parseInt(inputArea.getText());\n\t\t\t} catch(NumberFormatException nfe) {\n\t\t\t\tresult = 0;\n\t\t\t}\n\t\t}\n\t\tinputArea.setText(\"\");\n\t\twriteLine(\"Input: \" + result);\n\t\treturn result;\n\t}", "@Test\n void testReadIntPacked() throws IOException {\n byte[] input = new byte[]{(byte) 0x35, (byte) 0x54};\n r = new BitReader(input);\n assertEquals(5402, r.readIntPacked());\n }", "public int readSecondsLimitFromFile () {\n\t\ttry {\n\t\t\tBufferedReader f = new BufferedReader (new FileReader (\"time.txt\"));\n\t\t\treturn Integer.parseInt(f.readLine());\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\treturn 0;\n\t\t}\n\t}", "private static int readInt(@Nullable byte[] data) {\n if (data == null || data.length == 0) {\n return 0;\n }\n int value = 0;\n for (byte b : data) {\n value <<= 8;\n value += (0xff & b);\n }\n return value;\n }", "public static void readNumbers(String filePath, int[] nums) {\n JSONParser parser = new JSONParser();\n try {\n JSONObject jsonObject = (JSONObject) parser.parse(new FileReader(filePath));\n nums[0] = Integer.parseInt((String) jsonObject.get(\"number of primary\"));\n nums[1] = Integer.parseInt((String) jsonObject.get(\"number of backup\"));\n } catch (IOException | ParseException e) {\n e.printStackTrace();\n }\n\n }", "public static long readLong(File file) \n\t\t\t\t\t\t throws Exception{\n\t\tBufferedReader br = null;\n\t\ttry {\n\t\t\tbr = new BufferedReader(\n\t\t\t\tnew InputStreamReader(new FileInputStream(file))\t\n\t\t\t);\n\t\t\tString line = br.readLine().trim();\n\t\t\treturn Long.parseLong(line);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow e;\n\t\t} finally{\n\t\t\tif(br != null){\n\t\t\t\tbr.close();\n\t\t\t}\n\t\t}\n\t}" ]
[ "0.78618497", "0.7183241", "0.71308935", "0.6965804", "0.69605935", "0.67634726", "0.6728272", "0.6644968", "0.66376805", "0.6488864", "0.64602673", "0.6446301", "0.6436953", "0.6436711", "0.6409741", "0.6320966", "0.62798965", "0.6259711", "0.6162338", "0.6157869", "0.6153433", "0.6150059", "0.6131664", "0.61040896", "0.6066115", "0.60542256", "0.59925574", "0.59878665", "0.59813005", "0.5936928", "0.59112805", "0.59069276", "0.5859314", "0.5854925", "0.5811139", "0.580985", "0.5795351", "0.5783647", "0.5782229", "0.57412106", "0.57362545", "0.57043695", "0.56859714", "0.56740326", "0.5669856", "0.56674683", "0.564804", "0.5647543", "0.56426215", "0.56164104", "0.5608888", "0.56048506", "0.5590304", "0.5575084", "0.5564273", "0.5548443", "0.5547474", "0.55472183", "0.55297416", "0.55111295", "0.55097216", "0.5508605", "0.5504979", "0.549383", "0.5479906", "0.54758954", "0.54568106", "0.5456334", "0.54555297", "0.5443935", "0.54417425", "0.5440816", "0.5440558", "0.53981966", "0.53956676", "0.538191", "0.5381527", "0.5379465", "0.5378871", "0.53748244", "0.53730166", "0.53682566", "0.53673816", "0.53651476", "0.5352999", "0.5352575", "0.53523934", "0.5325689", "0.53218895", "0.53146267", "0.5311238", "0.5308461", "0.5291323", "0.52814335", "0.5263638", "0.52593315", "0.5258185", "0.5234953", "0.52311397", "0.5222675" ]
0.5990466
27
Created by Administrator on 2017512.
public interface UserService { User findUserByLoginName(String loginName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "public final void mo51373a() {\n }", "public void mo38117a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n public void perish() {\n \n }", "public void mo55254a() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void mo4359a() {\n }", "protected void mo6255a() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void mo12930a() {\n }", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void create() {\n\t\t\n\t}", "public void mo1531a() {\n }", "public void create() {\n\t\t\n\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n\tpublic void create () {\n\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public Pitonyak_09_02() {\r\n }", "protected boolean func_70814_o() { return true; }", "public void mo6081a() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\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 public void func_104112_b() {\n \n }", "public void mo9848a() {\n }", "public void mo3376r() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "public void mo21877s() {\n }", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "public void verarbeite() {\n\t\t\r\n\t}", "@Override\n\tpublic void create() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void create() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\r\n\tpublic void create() {\n\r\n\t}", "@Override\n public int getID() {\n return 7;\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n public void memoria() {\n \n }", "CreationData creationData();", "public void mo21878t() {\n }", "public void autoDetails() {\n\t\t\r\n\t}", "private void m50366E() {\n }", "public final void mo91715d() {\n }", "@Override\n public Date getCreated()\n {\n return null;\n }", "public void gored() {\n\t\t\n\t}", "@Override\n\tpublic int getID() {\n\t\treturn 1;\n\t}", "public void mo21825b() {\n }", "public void mo115190b() {\n }", "public void mo21793R() {\n }", "public void mo21779D() {\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n public int describeContents() { return 0; }", "private TMCourse() {\n\t}", "public void m23075a() {\n }", "public void mo21795T() {\n }", "public void mo21791P() {\n }", "private static void oneUserExample()\t{\n\t}", "public void mo3749d() {\n }", "private void getStatus() {\n\t\t\n\t}", "public void mo21785J() {\n }", "Petunia() {\r\n\t\t}", "public void method_4270() {}", "public static void listing5_14() {\n }", "private static void cajas() {\n\t\t\n\t}", "public void mo12628c() {\n }", "public void mo21794S() {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "public contrustor(){\r\n\t}", "public void mo3370l() {\n }", "public void mo44053a() {\n }", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@SuppressWarnings(\"unused\")\n private void generateInfo()\n {\n }", "public void mo115188a() {\n }", "public void mo21783H() {\n }", "zzang mo29839S() throws RemoteException;", "@Override\r\n\t\t\tprotected void saveContext() {\n\t\t\t\t\r\n\t\t\t}", "private ReportGenerationUtil() {\n\t\t\n\t}", "public int getVersion() { return 1; }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "public void mo23813b() {\n }" ]
[ "0.5997734", "0.59961516", "0.5972307", "0.5905824", "0.5905824", "0.5905824", "0.5905824", "0.5905824", "0.5905824", "0.5905824", "0.58970493", "0.5778937", "0.57678854", "0.576639", "0.57181334", "0.5707776", "0.56895375", "0.56611806", "0.5652614", "0.5646487", "0.56204826", "0.5607221", "0.56032073", "0.55933416", "0.5592734", "0.5591795", "0.5574365", "0.55680126", "0.55593264", "0.5553398", "0.55531466", "0.5545673", "0.55386084", "0.5536991", "0.5536991", "0.55318946", "0.5529918", "0.55048025", "0.5502497", "0.5497919", "0.5488916", "0.5476156", "0.5474531", "0.5468296", "0.546433", "0.54617923", "0.545781", "0.5450747", "0.54487336", "0.54481405", "0.5446035", "0.5445896", "0.5429913", "0.54216933", "0.54209596", "0.54198515", "0.5416317", "0.54014206", "0.5395544", "0.5388154", "0.5384261", "0.53700817", "0.53699714", "0.53638375", "0.5356552", "0.535156", "0.535156", "0.53441375", "0.5336887", "0.5334744", "0.53312886", "0.53301483", "0.53281313", "0.5325675", "0.532494", "0.53242916", "0.5323352", "0.5314557", "0.5313156", "0.53084207", "0.5308343", "0.53080773", "0.53064173", "0.5305749", "0.5304718", "0.5298786", "0.5297325", "0.5294177", "0.52933633", "0.5292835", "0.5290101", "0.528647", "0.5281834", "0.5278885", "0.5276436", "0.5273767", "0.5268014", "0.5267844", "0.5266722", "0.5266722", "0.52640235" ]
0.0
-1
/ Map address builder to properties Address.Builder is an example of building an immutable object
@Override protected PropertiesHandler<Person> getPropertiesHandler() { final PropertiesHandler<Address.Builder> addressHandler = new MappedPropertiesHandler<Address.Builder>() { @Override public Address.Builder getTarget() { return Address.builder(); } } .map("street", (Address.Builder t, String value) -> t.setStreet(value)) .map("zip", (Address.Builder t, String value) -> t.setZip(value)) .map("city", (Address.Builder t, String value) -> t.setCity(value)); /* * Map Person to properties */ final PropertiesHandler<Person> personHandler = new MappedPropertiesHandler<Person>() { @Override public Person getTarget() { return new Person(); } } .map("first-name", (Person p, String value) -> p.setFirstName(value)) .map("last-name", (Person p, String value) -> p.setLastName(value)) .map("home-address", addressHandler, (Person p, Address.Builder a) -> p.setHomeAddress(a.build())) .map("work-address", addressHandler, (Person p, Address.Builder a) -> p.setWorkAddress(a.build())); return personHandler; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Builder setAddress(String address);", "@Override\n\t\tpublic Builder address(final Address address) {\n\t\t\tthis.map.put(ADDRESS, address);\n\t\t\tthis.previous = ADDRESS;\n\t\t\treturn builder();\n\t\t}", "public com.google.protobuf.StringValue.Builder getAddressBuilder() {\n \n onChanged();\n return getAddressFieldBuilder().getBuilder();\n }", "private ContactAddress(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "Address createAddress();", "public AddressWithOptional build() {\n return address;\n }", "public interface Address {\r\n\tCollection<String> getNewAddresses();\r\n\t/**\r\n\t * The street of this address.\r\n\t */\r\n\tString getStreet();\r\n\t/**\r\n\t * The street of this address.\r\n\t */\r\n\tvoid setStreet(String street);\r\n\tPerson getPerson();\r\n\tvoid setPerson(Person person);\r\n\tAddressType getAddressType();\r\n\tvoid setAddressType(AddressType addressType);\r\n\tboolean isOld();\r\n\tvoid setOld(boolean old);\r\n}", "private ParkingAddress(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public EmailAddress build(){\n return new EmailAddress(this);\n }", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "public interface Address {\n public static final String ADDRESS = \"ADDR\";\n public static final String CONTINUATION = \"CONT\";\n public static final String ADDRESS_LINE1 = \"ADR1\";\n public static final String ADDRESS_LINE2 = \"ADR2\";\n public static final String CITY = \"CITY\";\n public static final String STATE = \"STAE\";\n public static final String POSTAL_CODE = \"POST\";\n public static final String COUNTRY = \"CTRY\";\n public static final String PHONE = \"PHON\";\n\n public List getAddressLines(); // List of String\n\n public void setAddressLines(List addressLines);\n\n public String getAddressLine1();\n\n public void setAddressLine1(String line1);\n\n public String getAddressLine2();\n\n public void setAddressLine2(String line2);\n\n public String getCity();\n\n public void setCity(String city);\n\n public String getState();\n\n public void setState(String state);\n\n public String getPostalCode();\n\n public void setPostalCode(String postalCode);\n\n public String getCountry();\n\n public void setCountry(String country);\n\n public String getPhoneNumber();\n\n public void setPhoneNumber(String phoneNumber);\n\n public List getPhoneNumbers(); // List of String\n\n public void setPhoneNumbers(List phoneNumbers);\n}", "public PersonAddressBuilderDFB(PersonDFB person){\n //only one person we are building up but need a reference to it in every sub builder\n this.person = person;\n }", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "public @NotNull Address newAddress();", "private AddressList(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public Builder clearAddress() {\n \n address_ = getDefaultInstance().getAddress();\n onChanged();\n return this;\n }", "public Builder clearAddress() {\n \n address_ = getDefaultInstance().getAddress();\n onChanged();\n return this;\n }", "public Builder clearAddress() {\n \n address_ = getDefaultInstance().getAddress();\n onChanged();\n return this;\n }", "public Builder clearAddress() {\n \n address_ = getDefaultInstance().getAddress();\n onChanged();\n return this;\n }", "public Builder clearAddress() {\n \n address_ = getDefaultInstance().getAddress();\n onChanged();\n return this;\n }", "Builder addCreator(Person.Builder value);", "public Builder setAddress(\n com.google.protobuf.StringValue.Builder builderForValue) {\n if (addressBuilder_ == null) {\n address_ = builderForValue.build();\n onChanged();\n } else {\n addressBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "private Map(Builder builder) {\n super(builder);\n }", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "public Builder clearAddress() {\n bitField0_ = (bitField0_ & ~0x00000008);\n address_ = getDefaultInstance().getAddress();\n onChanged();\n return this;\n }", "public Builder clearAddress() {\n address_ = getDefaultInstance().getAddress();\n bitField0_ = (bitField0_ & ~0x00000020);\n onChanged();\n return this;\n }", "public Address() {}", "public StreetAddress() {}", "public static Address buildRandomAddress() {\n\t\tString randomCountry = Locale.getISOCountries()[randInt(0, Locale.getISOCountries().length - 1)];\n\t\tString postalCode = String.valueOf(randInt(10000, 99999));\n\t\tString streetName = PersonalInfoGenerator.generateOrcName() + \" Street\";\n\t\tString streetNumber = String.valueOf(randInt(1, 500));\n\t\tString city = PersonalInfoGenerator.generateOrcName() + \" City\";\n\t\treturn Address.builder().city(city).country(randomCountry).postalCode(postalCode).streetName(streetName)\n\t\t\t\t.streetNumber(streetNumber).formattedAddress(streetNumber + \" \" + streetName + \", \" + postalCode + \" \"\n\t\t\t\t\t\t+ city + \", \" + new Locale(\"\", randomCountry).getDisplayCountry())\n\t\t\t\t.build();\n\t}", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n address_ = value;\n onChanged();\n return this;\n }", "private AttributesMap(Builder builder) {\n super(builder);\n }", "public Address createAddress(String address);", "public Address() {\n \t\n }", "public Builder clearAddress() {\n\n\t\t\t\t\taddress_ = getDefaultInstance().getAddress();\n\t\t\t\t\tonChanged();\n\t\t\t\t\treturn this;\n\t\t\t\t}", "public Address() {\r\n\t\tsuper();\r\n\t}", "Builder addCopyrightHolder(Person.Builder value);", "public PersonAddressBuilderDFB at(String streetAddress){\n person.streetAddress = streetAddress;\n return this;\n }", "public Builder setAddressBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n address_ = value;\n onChanged();\n return this;\n }", "public Address() {\n\t}", "Builder addProducer(Person.Builder value);", "public Address() {\n\t\tsuper();\n\n\t}", "private com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> \n getAddressFieldBuilder() {\n if (addressBuilder_ == null) {\n addressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>(\n getAddress(),\n getParentForChildren(),\n isClean());\n address_ = null;\n }\n return addressBuilder_;\n }", "public Builder setAddress(com.google.protobuf.StringValue value) {\n if (addressBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n address_ = value;\n onChanged();\n } else {\n addressBuilder_.setMessage(value);\n }\n\n return this;\n }", "abstract public Address createAddress(String addr);", "@Override\n\t\tpublic Builder shippingAddress(final Address address) {\n\t\t\tthis.map.put(SHIPPING_ADDRESS, address);\n\t\t\tthis.previous = SHIPPING_ADDRESS;\n\t\t\treturn builder();\n\t\t}", "private SimpleMap(Builder builder) {\n super(builder);\n }", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) { throw new NullPointerException(); }\n address_ = value;\n bitField0_ |= 0x00000020;\n onChanged();\n return this;\n }", "public Address() {\n }", "public Address() {\n }", "Builder addAuthor(Person.Builder value);", "private Builder(com.trg.fms.api.Trip.Builder other) {\n super(other);\n if (isValidValue(fields()[0], other.id)) {\n this.id = data().deepCopy(fields()[0].schema(), other.id);\n fieldSetFlags()[0] = other.fieldSetFlags()[0];\n }\n if (isValidValue(fields()[1], other.driverId)) {\n this.driverId = data().deepCopy(fields()[1].schema(), other.driverId);\n fieldSetFlags()[1] = other.fieldSetFlags()[1];\n }\n if (isValidValue(fields()[2], other.carId)) {\n this.carId = data().deepCopy(fields()[2].schema(), other.carId);\n fieldSetFlags()[2] = other.fieldSetFlags()[2];\n }\n if (isValidValue(fields()[3], other.state)) {\n this.state = data().deepCopy(fields()[3].schema(), other.state);\n fieldSetFlags()[3] = other.fieldSetFlags()[3];\n }\n }", "Builder addProvider(Person.Builder value);", "public AddressBookEntry build() {\n return new AddressBookEntry(this);\n }", "public Builder setAddressBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) { throw new NullPointerException(); }\n checkByteStringIsUtf8(value);\n address_ = value;\n bitField0_ |= 0x00000020;\n onChanged();\n return this;\n }", "public Builder setAddressBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n address_ = value;\n onChanged();\n return this;\n }", "Builder addPublisher(Person.Builder value);", "public PersonAddressBuilderDFB lives(){\n return new PersonAddressBuilderDFB(person);\n }", "private Builder(com.luisjrz96.streaming.birthsgenerator.models.BirthInfo.Builder other) {\n super(other);\n if (isValidValue(fields()[0], other.name)) {\n this.name = data().deepCopy(fields()[0].schema(), other.name);\n fieldSetFlags()[0] = other.fieldSetFlags()[0];\n }\n if (isValidValue(fields()[1], other.lastName)) {\n this.lastName = data().deepCopy(fields()[1].schema(), other.lastName);\n fieldSetFlags()[1] = other.fieldSetFlags()[1];\n }\n if (isValidValue(fields()[2], other.country)) {\n this.country = data().deepCopy(fields()[2].schema(), other.country);\n fieldSetFlags()[2] = other.fieldSetFlags()[2];\n }\n if (isValidValue(fields()[3], other.state)) {\n this.state = data().deepCopy(fields()[3].schema(), other.state);\n fieldSetFlags()[3] = other.fieldSetFlags()[3];\n }\n if (isValidValue(fields()[4], other.gender)) {\n this.gender = data().deepCopy(fields()[4].schema(), other.gender);\n fieldSetFlags()[4] = other.fieldSetFlags()[4];\n }\n if (isValidValue(fields()[5], other.date)) {\n this.date = data().deepCopy(fields()[5].schema(), other.date);\n fieldSetFlags()[5] = other.fieldSetFlags()[5];\n }\n if (isValidValue(fields()[6], other.height)) {\n this.height = data().deepCopy(fields()[6].schema(), other.height);\n fieldSetFlags()[6] = other.fieldSetFlags()[6];\n }\n if (isValidValue(fields()[7], other.weight)) {\n this.weight = data().deepCopy(fields()[7].schema(), other.weight);\n fieldSetFlags()[7] = other.fieldSetFlags()[7];\n }\n }", "Builder addProperty(String name, Thing.Builder builder);", "@Mapping(source=\"lines\",target=\"linesList\")\n @Mapping(target = \"mergeFrom\", ignore = true)\n @Mapping(target = \"clearField\", ignore = true)\n @Mapping(target = \"clearOneof\", ignore = true)\n @Mapping(target = \"mergeUnknownFields\", ignore = true)\n @Mapping(target = \"unknownFields\", ignore = true)\n @Mapping(target = \"allFields\", ignore = true)\n @Mapping(target = \"cityBytes\", ignore = true)\n @Mapping(target = \"countryBytes\", ignore = true)\n @Mapping(target = \"zipCodeBytes\", ignore = true)\n Customer.Address toProtobuf(AddressDTO address);", "public abstract ManagedChannelBuilder<?> builderForAddress(String str, int i);", "public kr.pik.message.Profile.ProfileMessage.ContactAddress.Builder addContactAddressBuilder() {\n return getContactAddressFieldBuilder().addBuilder(\n kr.pik.message.Profile.ProfileMessage.ContactAddress.getDefaultInstance());\n }", "private Builder(Builder other) {\n super(other);\n if (isValidValue(fields()[0], other.accountID)) {\n this.accountID = data().deepCopy(fields()[0].schema(), other.accountID);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.brokerId)) {\n this.brokerId = data().deepCopy(fields()[1].schema(), other.brokerId);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.createDate)) {\n this.createDate = data().deepCopy(fields()[2].schema(), other.createDate);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.TransferSerials)) {\n this.TransferSerials = data().deepCopy(fields()[3].schema(), other.TransferSerials);\n fieldSetFlags()[3] = true;\n }\n }", "public Builder setAddressBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n address_ = value;\n onChanged();\n return this;\n }", "public Builder setAddressBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n address_ = value;\n onChanged();\n return this;\n }", "public kr.pik.message.Profile.ProfileMessage.ContactAddress.Builder getContactAddressBuilder(\n int index) {\n return getContactAddressFieldBuilder().getBuilder(index);\n }", "public Builder addContactAddress(\n kr.pik.message.Profile.ProfileMessage.ContactAddress.Builder builderForValue) {\n if (contactAddressBuilder_ == null) {\n ensureContactAddressIsMutable();\n contactAddress_.add(builderForValue.build());\n onChanged();\n } else {\n contactAddressBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }", "private Contact(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Builder(com.politrons.avro.AvroPerson.Builder other) {\n super(other);\n if (isValidValue(fields()[0], other.id)) {\n this.id = data().deepCopy(fields()[0].schema(), other.id);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.username)) {\n this.username = data().deepCopy(fields()[1].schema(), other.username);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.email_address)) {\n this.email_address = data().deepCopy(fields()[2].schema(), other.email_address);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.phone_number)) {\n this.phone_number = data().deepCopy(fields()[3].schema(), other.phone_number);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.first_name)) {\n this.first_name = data().deepCopy(fields()[4].schema(), other.first_name);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.last_name)) {\n this.last_name = data().deepCopy(fields()[5].schema(), other.last_name);\n fieldSetFlags()[5] = true;\n }\n }", "public Builder setAddressBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n address_ = value;\n onChanged();\n return this;\n }", "public Builder setAddressBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n address_ = value;\n onChanged();\n return this;\n }", "Builder addEditor(Person.Builder value);", "public BsAddressExample() {\r\n\t\toredCriteria = new ArrayList<Criteria>();\r\n\t}", "Builder addAccountablePerson(Person.Builder value);", "public Builder setAddress(\n\t\t\t\t\t\tjava.lang.String value) {\n\t\t\t\t\tif (value == null) {\n\t\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t\t}\n\n\t\t\t\t\taddress_ = value;\n\t\t\t\t\tonChanged();\n\t\t\t\t\treturn this;\n\t\t\t\t}", "public Address(String someStreetAddress, String someCity, String someState, int someZip) {\n this.streetAddress = someStreetAddress;\n this.city = someCity;\n this.state = someState;\n this.zipCode = someZip;\n }", "public Address(String street, String city, String state){\n this.street=street;\n this.city=city;\n this.state=state;\n\n }", "public Address updateAddress(Address newAddress);", "public Builder setContactAddress(\n int index, kr.pik.message.Profile.ProfileMessage.ContactAddress.Builder builderForValue) {\n if (contactAddressBuilder_ == null) {\n ensureContactAddressIsMutable();\n contactAddress_.set(index, builderForValue.build());\n onChanged();\n } else {\n contactAddressBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }", "private Contact(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private Contact(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public Builder setAddr(int value) {\n \n addr_ = value;\n onChanged();\n return this;\n }", "Restaurant setRestaurantAddress(Address address);", "@Mapping(target = \"lines\", source = \"linesList\")\n AddressDTO fromProtobuf(Customer.Address address);", "Builder addAbout(Thing.Builder value);", "public Builder clearAddress() {\n if (addressBuilder_ == null) {\n address_ = null;\n onChanged();\n } else {\n address_ = null;\n addressBuilder_ = null;\n }\n\n return this;\n }", "static Builder newBuilder() {\n return new Builder();\n }", "public interface Address {\n\n String getAddressLine1();\n\n String getAddressLine2();\n\n String getAddressLine3();\n\n String getAddressLine4();\n\n String getAddressLine5();\n\n String getPostCode();\n\n}", "private Builder(com.babbler.ws.io.avro.model.BabbleValue.Builder other) {\n super(other);\n if (isValidValue(fields()[0], other.author)) {\n this.author = data().deepCopy(fields()[0].schema(), other.author);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.content)) {\n this.content = data().deepCopy(fields()[1].schema(), other.content);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.timestamp)) {\n this.timestamp = data().deepCopy(fields()[2].schema(), other.timestamp);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.location)) {\n this.location = data().deepCopy(fields()[3].schema(), other.location);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.tags)) {\n this.tags = data().deepCopy(fields()[4].schema(), other.tags);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.mentions)) {\n this.mentions = data().deepCopy(fields()[5].schema(), other.mentions);\n fieldSetFlags()[5] = true;\n }\n }", "Builder addCharacter(Person.Builder value);", "public Builder addContactAddress(\n int index, kr.pik.message.Profile.ProfileMessage.ContactAddress.Builder builderForValue) {\n if (contactAddressBuilder_ == null) {\n ensureContactAddressIsMutable();\n contactAddress_.add(index, builderForValue.build());\n onChanged();\n } else {\n contactAddressBuilder_.addMessage(index, builderForValue.build());\n }\n return this;\n }", "public static Address createInvalidAddressFixture() {\n Map<String, Object> objectMap = new HashMap<String, Object>();\n objectMap.put(\"name\", \"Undefault New Wu\");\n objectMap.put(\"street1\", \"Clayton St.\");\n objectMap.put(\"street_no\", \"215215\");\n objectMap.put(\"street2\", null);\n objectMap.put(\"city\", \"San Francisco\");\n objectMap.put(\"state\", \"CA\");\n objectMap.put(\"zip\", \"94117\");\n objectMap.put(\"country\", \"US\");\n objectMap.put(\"phone\", \"+1 555 341 9393\");\n objectMap.put(\"email\", \"[email protected]\");\n objectMap.put(\"is_residential\", false);\n objectMap.put(\"metadata\", \"Customer ID 123456\");\n objectMap.put(\"validate\", true);\n\n try {\n return Address.create(objectMap);\n } catch (ShippoException e) {\n e.printStackTrace();\n }\n return null;\n }", "private Builder(com.luisjrz96.streaming.birthsgenerator.models.BirthInfo other) {\n super(SCHEMA$);\n if (isValidValue(fields()[0], other.name)) {\n this.name = data().deepCopy(fields()[0].schema(), other.name);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.lastName)) {\n this.lastName = data().deepCopy(fields()[1].schema(), other.lastName);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.country)) {\n this.country = data().deepCopy(fields()[2].schema(), other.country);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.state)) {\n this.state = data().deepCopy(fields()[3].schema(), other.state);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.gender)) {\n this.gender = data().deepCopy(fields()[4].schema(), other.gender);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.date)) {\n this.date = data().deepCopy(fields()[5].schema(), other.date);\n fieldSetFlags()[5] = true;\n }\n if (isValidValue(fields()[6], other.height)) {\n this.height = data().deepCopy(fields()[6].schema(), other.height);\n fieldSetFlags()[6] = true;\n }\n if (isValidValue(fields()[7], other.weight)) {\n this.weight = data().deepCopy(fields()[7].schema(), other.weight);\n fieldSetFlags()[7] = true;\n }\n }", "private ObjectReference(Builder builder) {\n super(builder);\n }", "public DatadogBuilder address(InetSocketAddress address) {\n this.address = address;\n return this;\n }", "public Address(String street, String city, String zipCode, String country)\n {\n //reference the object classes constructors\n this.street = street;\n this.city = city;\n this.zipCode = zipCode;\n this.country = country;\n }", "public static Address addAddress() {\r\n\r\n\t\tSystem.out.println(\"Please enter the building number of the supplier:\");\r\n\r\n\t\tint bldNum = Validation.intValidation();\r\n\r\n\r\n\r\n\t\tSystem.out.println(\"Please enter the supplier's street name:\");\r\n\t\tString bldStreet = Validation.stringNoIntsValidation();\r\n\r\n\r\n\r\n\t\tSystem.out.println(\"Please enter the town the supplier is in:\");\r\n\t\tString bldTown = Validation.stringNoIntsValidation();\t\t\r\n\r\n\t\tSystem.out.println(\"Please enter the postcode for the supplier:\");\r\n\t\tString bldPCode = Validation.stringValidation();\r\n\r\n\t\tSystem.out.println(\"Please enter the country the supplier is in:\");\r\n\t\tString bldCountry = Validation.stringNoIntsValidation();\r\n\r\n\t\tAddress newAddress = new Address(bldNum, bldStreet, bldTown, bldPCode, bldCountry);\r\n\r\n\t\treturn newAddress;\r\n\r\n\t}", "Builder addTranslator(Person.Builder value);", "private Builder() {}" ]
[ "0.71394235", "0.66910887", "0.6637824", "0.65292364", "0.64273447", "0.64191544", "0.6347695", "0.63083094", "0.628242", "0.62713253", "0.6185284", "0.61706436", "0.61622036", "0.61622036", "0.61529166", "0.61369205", "0.61146474", "0.6091821", "0.6091821", "0.60774773", "0.60774773", "0.604215", "0.6036166", "0.6034851", "0.6006848", "0.6006848", "0.6006228", "0.5994644", "0.59905607", "0.5959117", "0.5955955", "0.59545964", "0.5923747", "0.5910018", "0.59031934", "0.5852438", "0.5848349", "0.5846247", "0.58442694", "0.5843152", "0.58384055", "0.58220154", "0.582038", "0.5798923", "0.57960355", "0.57836795", "0.5764991", "0.5762447", "0.5760144", "0.5755801", "0.5755801", "0.57431966", "0.5735417", "0.5723689", "0.5700933", "0.5700905", "0.56989527", "0.569125", "0.567922", "0.5669872", "0.56696177", "0.5668472", "0.5668276", "0.56601256", "0.56600004", "0.56548536", "0.56548536", "0.5642249", "0.5635208", "0.5633225", "0.56257486", "0.56215596", "0.56215596", "0.5621024", "0.5599773", "0.5597567", "0.5595651", "0.5590269", "0.5578157", "0.5578056", "0.5577408", "0.5576889", "0.5576889", "0.55644757", "0.5541727", "0.5539602", "0.55192846", "0.5502449", "0.5500286", "0.5493939", "0.5493925", "0.5481055", "0.5481006", "0.5464312", "0.54589415", "0.5446749", "0.54418355", "0.5441657", "0.54411024", "0.54409695", "0.5430328" ]
0.0
-1
todo support keyed:true as well
private void parseBuckets(JsonArray buckets) { for (JsonElement bucketv : buckets) { JsonObject bucket = bucketv.getAsJsonObject(); Range geoDistance = new Range( bucket, bucket.has(String.valueOf(FROM)) ? bucket.get(String.valueOf(FROM)).getAsDouble() : null, bucket.has(String.valueOf(TO)) ? bucket.get(String.valueOf(TO)).getAsDouble() : null, bucket.has(String.valueOf(DOC_COUNT)) ? bucket.get(String.valueOf(DOC_COUNT)).getAsLong() : null); geoDistances.add(geoDistance); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Object getKeyArray()\n/* */ {\n/* 91 */ return this.m_keyTable;\n/* */ }", "@Override\n public int key() {\n return this.key;\n }", "@Override\n\tpublic boolean containsKey(Object arg0) {\n\t\treturn false;\n\t}", "public interface InverseHashView<K, V> {\r\n\r\n /**\r\n * Finds first primary key which corresponds to value. There may be more then one, others are ignored\r\n *\r\n * @param val\r\n * @return first primary key found or null if not found\r\n */\r\n K findKeyForValue(V val);\r\n\r\n /**\r\n * Finds primary keys which corresponds to value. There may be more then one, others are ignored\r\n *\r\n * @param val\r\n * @return primary keys found\r\n */\r\n Iterable<K> findKeysForValue(V val);\r\n\r\n\r\n}", "abstract public String getKey();", "boolean isAssociative();", "boolean getIsIndexOnKeys();", "@Override\n\tpublic void handleKeyInputs(Map<Integer, Boolean> keys) {\n\t\t\n\t}", "public interface ComplexKeyMap<K, V> extends Map<K, V> {\n\n}", "Object getKey();", "@Override\n protected final Object getKey()\n {\n return this;\n }", "@Override\n\t\t\t\t\tpublic Attribute handleMapKey(Element parent, FTypeRef src) {\n\t\t\t\t\t\treturn super.handleMapKey(parent, src);\n\t\t\t\t\t}", "@Override\n public String toString(){\n return key;\n }", "XClass getMapKey();", "@Override\r\n public NavigableMap<K, V> navigableKeySet() {\n return null;\r\n }", "@Override\n default String getKey(){\n return key();\n }", "public Object getKey() { return name; }", "boolean hasKey();", "boolean hasKey();", "boolean hasKey();", "boolean hasKey();", "boolean hasKey();", "protected abstract Object _get(String key);", "public Object get_KeyValue(){return\t\t\t Id;}", "@Override\n public void key() {\n \n }", "@Override\n\t\tpublic K getKey(){\n\t\t\treturn key;\n\t\t}", "@Override\n public String getKey()\n {\n return id; \n }", "@Override\n public String getKey() {\n return key;\n }", "@Override\n\tpublic Iterator getKeyIterator() {\n\t\treturn new KeyIterator();\n\t}", "@Override\n public boolean getIsIndexOnKeys() {\n return isIndexOnKeys_;\n }", "@Override\n List<String> keys();", "public abstract boolean lookup(Key key);", "boolean isFetchKeys();", "protected abstract Map<String, Serializable> getEventKeyAndIdMap();", "public abstract String getRefKey();", "public interface KeyValueStore {\r\n\r\n /**\r\n * Return true if store contains a value for the key.\r\n *\r\n * @param key key.\r\n * @return true if store contains a value for the key.\r\n * @throws IllegalArgumentException if key is null.\r\n */\r\n public boolean contains(String key);\r\n\r\n /**\r\n * Return value.\r\n *\r\n * @param key key.\r\n * @return value for the key or null if value does not exist.\r\n * @throws IllegalArgumentException if key is null.\r\n */\r\n public String get(String key);\r\n\r\n /**\r\n * Create or replace value.\r\n *\r\n * @param key key\r\n * @param value value\r\n * @return true if value was created, false if it was replaced.\r\n * @throws IllegalArgumentException if key is null or value is null\r\n */\r\n public boolean put(String key, String value);\r\n\r\n /**\r\n * Delete value.\r\n *\r\n * @param key key\r\n * @return true if value delete, false if no value associated with a key.\r\n * @throws IllegalArgumentException if key is null.\r\n */\r\n public boolean delete(String key);\r\n \r\n}", "@Override\n void postValueWrite(SerializerElem e, String key) {\n\n }", "public java.lang.String getKey(){\n return localKey;\n }", "@Test\n public void testCoh3710_keySetContainsAll()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n NamedCache cache = getNamedCache(getCacheName0());\n\n assertFalse(cache.keySet().containsAll(\n Collections.singleton(Integer.valueOf(1))));\n validateIndex(cache);\n }\n });\n }", "protected String getKey(int index)\n/* */ {\n/* 1425 */ return null;\n/* */ }", "public void setKey(java.lang.String param){\n localKeyTracker = true;\n \n this.localKey=param;\n \n\n }", "@Override\n public boolean getIsIndexOnKeys() {\n return isIndexOnKeys_;\n }", "private void setKey() {\n\t\t \n\t}", "@Test\n public void reuseKeys() throws Exception {\n VolatileLookUpTable.Builder<IntOption> builder = new VolatileLookUpTable.Builder<>();\n LookUpKey key = key();\n\n key.add(new IntOption(100));\n builder.add(key, new IntOption(100));\n key.reset();\n\n key.add(new IntOption(101));\n builder.add(key, new IntOption(101));\n key.reset();\n\n key.add(new IntOption(102));\n builder.add(key, new IntOption(102));\n key.reset();\n\n LookUpTable<IntOption> table = builder.build();\n assertThat(sort(table.get(key(100))), is(values(100)));\n assertThat(sort(table.get(key(101))), is(values(101)));\n assertThat(sort(table.get(key(102))), is(values(102)));\n }", "@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}", "@Test\n public void mapKeys() {\n check(MAPKEYS);\n query(\"for $i in \" + MAPKEYS.args(\n MAPNEW.args(\" for $i in 1 to 3 return \" +\n MAPENTRY.args(\"$i\", \"$i+1\"))) + \" order by $i return $i\", \"1 2 3\");\n query(\"let $map := \" + MAPNEW.args(\" for $i in 1 to 3 return \" +\n MAPENTRY.args(\"$i\", \"$i + 1\")) +\n \"for $k in \" + MAPKEYS.args(\"$map\") + \" order by $k return \" +\n MAPGET.args(\"$map\", \"$k\"), \"2 3 4\");\n }", "@Test\n public void testCoh3710_keySetContains()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n NamedCache cache = getNamedCache(getCacheName0());\n\n assertFalse(cache.keySet().contains(Integer.valueOf(1)));\n validateIndex(cache);\n }\n });\n }", "@Override\n public int hashCode() {\n return 1;\n }", "public static interface KeyValueFilter {\r\n\t}", "boolean isIndexed();", "boolean isIndexed();", "@Override\n\t\t\tpublic boolean containsKey(Object key) {\n\t\t\t\treturn false;\n\t\t\t}", "public Value get(Key key) ;", "private void setKeySet(OwnSet<K> st){\n this.keySet = st; \n }", "@Override\r\n public void configure(Map<String, ?> configs, boolean isKey) {\n \r\n }", "public void testNormalKeySet()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkKeySet(pmf,\r\n HashMap1.class,\r\n ContainerItem.class,\r\n String.class);\r\n }\r\n finally\r\n {\r\n clean(HashMap1.class);\r\n clean(ContainerItem.class);\r\n }\r\n }", "KeyMetadata metadata();", "public abstract Map<K, V> a();", "public KeyedEntry() { }", "public interface KeyValueStore {\n\n\t/**\n\t * Put a value into the database with an associated key\n\t * @param key The key of the value\n\t * @param value The value to store\n\t * @return True if successful\n\t */\n\tpublic HasID put(@SuppressWarnings(\"rawtypes\") Class type, HasID value);\n\t\n\t/**\n\t * Get a value using the associated key\n\t * @param key The key\n\t * @return The value or null\n\t */\n\tpublic HasID get(@SuppressWarnings(\"rawtypes\") Class type, String key);\n\t\n\t/**\n\t * \n\t * @param c\n\t * @return\n\t */\n\tpublic List<HasID> getAll(@SuppressWarnings(\"rawtypes\") Class type);\n\t\n\t/**\n\t * Delete a value in the store\n\t * @param key The key of the value\n\t * @return True if removed\n\t */\n\tpublic boolean delete(@SuppressWarnings(\"rawtypes\") Class type, String key);\n\t\n}", "public abstract int getKeybind();", "public MultiKey() {}", "HSet keySet();", "@Override\n\tpublic String getKey() {\n\t\treturn null;\n\t}", "public String getKey();", "public String getKey();", "public String getKey();", "public String getKey();", "@Override\n public String toString() {\n return key;\n }", "@Override\r\n\tpublic boolean CXT_containsKey(String jsk)\r\n\t{\n\t\treturn false;\r\n\t}", "@Override\n\t\tpublic K getKey() {\n\t\t\treturn k;\n\t\t}", "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\tpublic void prepareKeys() {\n\t\tfor (RecordKey key : paramHelper.getPushingKeys())\n\t\t\taddReadKey(key);\n\t}", "@Override\n\tpublic boolean containsKey(Object key) {\n\t\treturn false;\n\t}", "@Override\r\n public K firstKey() {\n return null;\r\n }", "@Override\n public int hashCode() {\n return super.hashCode();\n }", "@Test\n public void keySetTest()\n {\n map.putAll(getAMap());\n assertNotNull(map.keySet());\n }", "@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 interface TypeKey {\n}", "@Test\n public void testContainsKey() {\n System.out.println(\"containsKey\");\n \n // GIVEN\n SimpleStyleableMap instance = new SimpleStyleableMap();\n \n // WHEN getOrDefault and no value has been put\n Object key = \"dummyKey\";\n boolean result = instance.containsKey(key);\n \n // THEN must return false\n assertEquals(false, result);\n \n // WHEN getOrDefault and a value has been put\n Object putValue=\"putValue\";\n instance.put(key, putValue );\n result = instance.containsKey(key);\n \n // THEN must returnt rue\n assertEquals(true, result);\n \n // WHEN key is removed\n instance.remove(key);\n result = instance.containsKey(key);\n // THEN must return default value\n assertEquals(false, result);\n }", "int sizeOfKeyArray();", "@Before\r\n public void test_change(){\r\n HashTable<String,String> table = new HashTable<>(1);\r\n MySet<String> s = (MySet<String>) table.keySet();\r\n table.put(\"AA\",\"BB\");\r\n table.put(\"AA\",\"CC\");\r\n assertTrue(s.contains(\"AA\"));\r\n table.remove(\"AA\");\r\n assertFalse(s.contains(\"AA\"));\r\n }", "public void key(){\n }", "public Boolean isKey() {\n return this.key;\n }", "public static interface Option$CacheKeyUpdater\n{\n\n\tpublic abstract void update(byte abyte0[], Object obj, MessageDigest messagedigest);\n}", "public interface KeySerDe {\n byte[] serialize(IndexedRecord key);\n IndexedRecord deserialize(byte[] keyBytes);\n}", "BListKey getKey();", "boolean getKeyBox();", "Object getClientProperty(Object key);", "@Override\r\n public int hashCode() {\r\n return super.hashCode();\r\n }", "protected void sequence_ElementList_Key_KeyedElement(ISerializationContext context, Key semanticObject) {\r\n\t\tgenericSequencer.createSequence(context, semanticObject);\r\n\t}", "@Override\n\tpublic Object key() {\n\t\treturn id;\n\t}", "protected void sequence_Key_KeyedElement(ISerializationContext context, Key semanticObject) {\r\n\t\tif (errorAcceptor != null) {\r\n\t\t\tif (transientValues.isValueTransient(semanticObject, GoPackage.Literals.KEY__FIELDN) == ValueTransient.YES)\r\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GoPackage.Literals.KEY__FIELDN));\r\n\t\t\tif (transientValues.isValueTransient(semanticObject, GoPackage.Literals.KEYED_ELEMENT__ELEMENT) == ValueTransient.YES)\r\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GoPackage.Literals.KEYED_ELEMENT__ELEMENT));\r\n\t\t}\r\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\r\n\t\tfeeder.accept(grammarAccess.getKeyAccess().getFieldnFieldNameParserRuleCall_0_1_0(), semanticObject.getFieldn());\r\n\t\tfeeder.accept(grammarAccess.getKeyedElementAccess().getElementElementParserRuleCall_1_0(), semanticObject.getElement());\r\n\t\tfeeder.finish();\r\n\t}", "@Override\n\tprotected Map getKeyMethodMap() {\n\t\treturn null;\n\t}", "@Override \n int hashCode();", "@Override\n public String toString() {\n return String.valueOf(key);\n }", "public final /* synthetic */ Object a(Object obj) {\n return ((Map.Entry) obj).getKey();\n }", "@Override\r\n\tpublic int hashCode() {\n\t\treturn super.hashCode();\r\n\t}", "@Override\r\n\tpublic int hashCode() {\n\t\treturn super.hashCode();\r\n\t}" ]
[ "0.6065241", "0.58469486", "0.57605505", "0.5751618", "0.5749359", "0.5735192", "0.5683047", "0.56647456", "0.56525993", "0.5650173", "0.561825", "0.5616855", "0.55951804", "0.5570119", "0.553929", "0.55260634", "0.55205065", "0.551529", "0.551529", "0.551529", "0.551529", "0.551529", "0.5510593", "0.5504541", "0.5500567", "0.5477086", "0.5474926", "0.5460964", "0.5455594", "0.5413427", "0.54127216", "0.54085433", "0.5399707", "0.5393301", "0.5381856", "0.5376303", "0.53752285", "0.5373583", "0.5370274", "0.53688264", "0.5359592", "0.5358188", "0.535815", "0.5354483", "0.53483623", "0.53483623", "0.53450257", "0.5338684", "0.53385943", "0.5329613", "0.5325847", "0.5325847", "0.532017", "0.5307183", "0.53042793", "0.5303743", "0.5293077", "0.5290525", "0.52877706", "0.52877444", "0.52804846", "0.5278425", "0.52746314", "0.52596235", "0.525126", "0.5241521", "0.5241521", "0.5241521", "0.5241521", "0.52322453", "0.52073574", "0.5206143", "0.5204908", "0.5186939", "0.51865774", "0.518496", "0.5182994", "0.51817167", "0.51772267", "0.51710224", "0.5170667", "0.51694185", "0.5166781", "0.51659137", "0.5164549", "0.51602244", "0.51572335", "0.51567703", "0.5149453", "0.5149046", "0.5145693", "0.5142069", "0.51413065", "0.5137721", "0.5136574", "0.5129265", "0.5128974", "0.5128898", "0.5124661", "0.5122341", "0.5122341" ]
0.0
-1
Acceptance Criteria "Users should be able to retrieve all contacts in an address book"
@Test @Transactional public void getAllContactsWithInAddressBook() throws Exception { restAddressBookMockMvc.perform( get("/api/address-books/{id}/contacts", "1").param("unique", "false")) .andExpect(status().isOk()) .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE)) .andExpect(jsonPath("$.[2]").exists()) .andExpect(jsonPath("$.[3]").doesNotExist()) ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void tesPrintAllContactsOfAllBooks() {\n\t\t// add 1 contacts to addrbook1\n\t\tcontactService.addContact(addrBook1, new Contact() {\n\t\t\t{\n\t\t\t\tsetName(\"Jack Sparrow\");\n\t\t\t}\n\t\t});\n\n\t\t// add 2 contacts to addrbook2\n\t\tcontactService.addContact(addrBook2, new Contact() {\n\t\t\t{\n\t\t\t\tsetName(\"Hulk\");\n\t\t\t}\n\t\t});\n\t\tcontactService.addContact(addrBook2, new Contact() {\n\t\t\t{\n\t\t\t\tsetName(\"American Captain\");\n\t\t\t}\n\t\t});\n\t\t\n\t\t// add 3 contacts to addrbook3\n\t\tcontactService.addContact(addrBook3, new Contact() {\n\t\t\t{\n\t\t\t\tsetName(\"IronMan\");\n\t\t\t}\n\t\t});\n\t\tcontactService.addContact(addrBook3, new Contact() {\n\t\t\t{\n\t\t\t\tsetName(\"SpideMan\");\n\t\t\t}\n\t\t});\n\t\tcontactService.addContact(addrBook3, new Contact() {\n\t\t\t{\n\t\t\t\tsetName(\"AntMan\");\n\t\t\t}\n\t\t});\n\t\t\n\t\tList<Contact> contacts = contactService.getAllContactsOfAllBooks(ownerId);\n\t\tassertEquals(6, contacts.size());\n\t}", "public void viewAllContacts(AddressBookDict addressBook) {\n\t\tlog.info(\"Enter the address book name of whose contact list you want to see\");\n\t\tString addressBookName = obj.next();\n\t\tList<PersonInfo> ContactList = addressBook.getContactList(addressBookName);\n\t\tif (ContactList.isEmpty()) {\n\t\t\tlog.info(\"List is empty\");\n\t\t} else {\n\t\t\tlog.info(\"Contacts in address book \" + addressBookName + \"are :\");\n\t\t\tContactList.stream().forEach((System.out::println));\n\t\t\tlog.info(\"\\n\");\n\t\t}\n\t}", "@Test\n @Transactional\n public void getAllContactsWithInMultiAddressBookUnique() throws Exception {\n restAddressBookMockMvc.perform(\n get(\"/api/address-books/{id}/contacts\", \"1,2\").param(\"unique\", \"true\"))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE))\n .andExpect(jsonPath(\"$.[3]\").exists())\n .andExpect(jsonPath(\"$.[4]\").doesNotExist())\n ;\n }", "public void accessAddressBook() {\n boolean isExit = false;\n while(!isExit) {\n System.out.println(\"Select option: \\n1.Add Contact\\n2.Edit Contact\\n\" +\n \"3.Delete Contact\\n4.Find contact\\n5.Exit\");\n int option = scannerForAddressBook.scannerProvider().nextInt();\n switch(option) {\n case 1:\n if(!isContactExist(getName())) {\n addContact();\n } else {\n System.out.println(\"Contact already exists!\");\n }\n break;\n case 2:\n String name = getName();\n if(isContactExist(name)) {\n editDetails(name);\n } else {\n System.out.println(\"Contact does not exists!\");\n }\n break;\n case 3:\n String name1 = getName();\n if(isContactExist(name1)) {\n Contacts contact = getContact(name1);\n deleteContact(contact);\n } else {\n System.out.println(\"Contact does not exists!\");\n }\n break;\n case 4:\n findContactOptions();\n break;\n default:\n System.out.println(\"Thanks!\");\n isExit = true;\n }\n }\n }", "public List<Contact> getAllContacts();", "@Test\n @Order(1)\n public void testGetAllContacts() {\n List<Contact> contacts = Arrays.asList(\n createContact(\"A Smith\"),\n createContact(\"B Smith\"),\n createContact(\"C Smith\"),\n createContact(\"D Smith\")\n );\n\n final ResponseEntity<Contact[]> response = template.getForEntity(\"/api/v1/contact\", Contact[].class);\n final List<Contact> foundContacts = Arrays.asList(response.getBody());\n\n Assertions.assertThat(foundContacts.size()).isEqualTo(contacts.size());\n\n for (int i = 0; i < contacts.size(); i++) {\n Assertions.assertThat(foundContacts.get(i).getName()).isEqualTo(contacts.get(i).getName());\n }\n }", "public AddressBook() {\r\n contacts = new ArrayList<AddressEntry>();\r\n }", "public CallSpec<List<XingUser>, HttpError> getYourContacts() {\n return getContacts(ME);\n }", "public Addressbook[] getAddressbooks() throws RemoteException;", "public AddressBookTest() {\n AddressBook.getAddressBook();\n AddressBook.add(new AddressEntry());\n AddressBook.add(new AddressEntry());\n\n AddressBook.add(new AddressEntry(\"hello\", \"goodbye\", \"123 st\",\n \"yellow\", \"WA\", 12345, \"123456\", \"[email protected]\"));\n\n AddressBook.add(new AddressEntry(\"yes\", \"no\", \"987 way\",\n \"blue\", \"MA\", 98765, \"0987654\", \"[email protected]\"));\n\n System.out.println(\"TestBook:\");\n AddressBook.list();\n\n System.out.println(AddressBook.find(\"goodbye\"));\n System.out.println(AddressBook.find(\"n\"));\n }", "public interface AddressbookService extends Service, Addressbook\n{\n /**\n * Liefert die Liste aller gefundenen Adressbuecher.\n * @return Liste der Adressbuecher.\n * Die Funktion liefert niemals <code>null</code> und auch\n * nie ein leeres Array. Denn da <code>AddressbookService</code>\n * selbst ebenfalls das <code>Addressbook</code>-Interface\n * implementiert, wird mindestens dieses zurueckgeliefert.\n * Allerdings wuerde es in diesem Fall keine Adressen finden,\n * da ja keine tatsaechlichen \"Backend\"-Adressbuecher existieren.\n * Zumindest das Hibiscus-eigene Adressbuch sollte aber immer\n * enthalten sein. \n * @throws RemoteException\n */\n public Addressbook[] getAddressbooks() throws RemoteException;\n \n /**\n * Liefert true, wenn neben dem Hibiscus-eigenen Adressbuch noch weitere gefunden wurden.\n * In diesem Fall koennte dem Benutzer z.Bsp. ein Auswahl-Dialog\n * angezeigt werden, in dem er das gewuenschte Adressbuch auswaehlen kann.\n * @return true, wenn weitere Adressbuecher existieren.\n * @throws RemoteException\n */\n public boolean hasExternalAddressbooks() throws RemoteException;\n}", "public AddressList listAllAddresses(String addressBook)\n\t{\n\t\treturn controller.listAllAddresses(addressBook);\n\t}", "public Collection<Contact> getContacts();", "public List<String> loadAddressBook()\n\t{\n\t\treturn controller.listAllAddressBook();\n\t}", "public Result<List<Contact>> listContacts(Long addressBookId) {\n return listContacts(addressBookId, false, 0);\n }", "public AddressBookExample() {\r\n oredCriteria = new ArrayList<Criteria>();\r\n }", "public List<Address> findAll();", "public interface ContactService {\n\n /**\n * Get all contacts with pagination support\n * @param index the index of data\n * @param size the size of contacts you want to fetch\n * @return return a page of contacts you have requested\n */\n Page<Contact> getContacts(int index, int size);\n\n /**\n * fetch a requested contact\n * @param id identification of contact which is the id\n * @return return the requested contact\n */\n Optional<Contact> getContact(long id);\n\n /**\n * search all the contacts by matching the name requested\n * @param name the search query which is either a part or a whole of the name\n * @param index the index of data\n * @param size the size of contacts you want to fetch\n * @return return the searched result of contacts\n */\n Page<Contact> searchContactsByName(String name, int index, int size);\n}", "public static void main(String[] args) { //the main class \n\n Contact one = new Contact(\"A\", \"A\", \"A\", \"A\"); // I give it some contact information first.\n Contact two = new Contact(\"Bob\", \"Bob\", \"A\", \"A\");\n\n Scanner scan = new Scanner(System.in);\n\n AddressBook book = new AddressBook();\n book.addNewContact(one);\n book.addNewContact(two);\n\n System.out.println(\"give me name? \"); //ask for name\n\n\n String name = scan.nextLine(); //take the input from the user and store is as as first name \n System.out.println(\"Last name?\");\n String lname = scan.nextLine();\n\n book.addNewContact(new Contact(name, lname, \"123\", \"123\")); /\n\n book.displayAllContacts(); //this method call displayAllContact is to display all it have from the address book\n\n\n\n\n\n }", "Page<Contact> getContacts(int index, int size);", "public Address SearchContact(String firstName,String lastName) {\r\n int i = 0;\r\n while (!contact.get(i).getFirstName().equals(firstName) && !contact.get(i).getLastName().equals(lastName)){\r\n i++;\r\n }\r\n return contact.get(i);\r\n }", "@GetMapping(\"/contacts\")\r\n\tCollectionModel<EntityModel<Contact>> all() {\r\n\t\t//Use map to call toModel on each Contact resource\r\n\t List<EntityModel<Contact>> contacts = repo.findAll().stream()\r\n\t .map(assembler::toModel)\r\n\t .collect(Collectors.toList());\r\n\t return CollectionModel.of(contacts, linkTo(methodOn(ContactController.class).all()).withSelfRel());\r\n\t}", "@Override\n\tpublic List<Contact> getAllContacts() {\n\t\t\n\t\treturn repository.findAll();\n\t}", "public boolean checkContacts() \n\t{\n\t\tif (this.contacts.size() < 1) \n\t\t{\n\t\t\tSystem.out.printf(\"%nNo Contacts Stored%n\");\n\t\t\treturn false;\n\t\t} else \n\t\t{\n\t\t\treturn true;\n\t\t}\n\t}", "public static void addPersons() {\n System.out.println(\"Enter number of persons added to be in address book : \");\n int noOfPersons = sc.nextInt();\n int count = 1;\n while (count <= noOfPersons) {\n addContact();\n count++;\n }\n }", "public interface MultipleAddressBookService extends AddressBookService {\n\tAddressBook addContact(String addressBookName, String name, String phoneNumber);\n\tboolean removeContact(String addressBookName, String contactName);\n\tvoid printUniqueContacts();\n\tvoid printContacts(String addressBookName);\n\tContact getContact(String addressBookName, String contactName);\n}", "Set<Person> getContacts();", "private void requestContactInformation() {\n CONTACTS = new ArrayList<>();\n\n Cursor c = getContentResolver().query(ContactsContract.Contacts.CONTENT_URI,\n null, null, null,\n ContactsContract.Contacts.DISPLAY_NAME_PRIMARY + \" asc\");\n\n while(c.moveToNext()) {\n HashMap<String, String> map = new HashMap<String, String>();\n String id = c.getString(c.getColumnIndex(ContactsContract.Contacts._ID));\n String name = c.getString(c.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME_PRIMARY));\n\n Cursor phoneCursor = getContentResolver().query(\n ContactsContract.CommonDataKinds.Phone.CONTENT_URI,\n null,\n ContactsContract.CommonDataKinds.Phone.CONTACT_ID + \" = \" + id,\n null, null\n );\n\n if (phoneCursor.moveToFirst()) {\n String number = phoneCursor.getString(phoneCursor.getColumnIndex(\n ContactsContract.CommonDataKinds.Phone.NUMBER\n ));\n CONTACTS.add(Pair.create(name, number));\n }\n\n phoneCursor.close();\n }\n\n }", "java.util.List<kr.pik.message.Profile.ProfileMessage.ContactAddress> \n getContactAddressList();", "public void addContact() {\n Contacts contacts = new Contacts();\n System.out.println(\"Enter first name\");\n contacts.setFirstName(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter last name\");\n contacts.setLastName(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter address\");\n contacts.setAddress(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter city\");\n contacts.setCity(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter state\");\n contacts.setState(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter email\");\n contacts.setEmail(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter zip\");\n contacts.setZip(scannerForAddressBook.scannerProvider().nextInt());\n System.out.println(\"Enter phone number\");\n contacts.setPhoneNumber(scannerForAddressBook.scannerProvider().nextLine());\n contactList.add(contacts);\n }", "public List<IContact> getContacts();", "@Test\n void testGetRegistrarForUser_inContacts_isAdmin() throws Exception {\n expectGetRegistrarSuccess(\n CLIENT_ID_WITH_CONTACT,\n GAE_ADMIN,\n \"admin [email protected] has [OWNER, ADMIN] access to registrar TheRegistrar\");\n verifyNoInteractions(lazyGroupsConnection);\n }", "public List<String> listAllAddressBook() {\n\t\treturn controller.listAllAddressBook();\n\t}", "@NonNull\n public AddressBook getAddressBook() {\n return addressBook;\n }", "public void getPersonByCityNameStateName(AddressBookDict addressBook) {\n\t\tlog.info(\"Enter the address book name whose contacts you want to see by city name\");\n\t\tString addressBookName = obj.next();\n\t\tList<PersonInfo> ContactList = addressBook.getContactList(addressBookName);\n\t\tlog.info(\"Choice \\n 1. get person by city name 2. get person by state name\");\n\t\tint choice = obj.nextInt();\n\t\tMap<String, List<PersonInfo>> personList = new HashMap<String, List<PersonInfo>>();\n\t\tif (choice == 1) {\n\t\t\tpersonList = (ContactList.stream()\n\t\t\t\t\t.collect(Collectors.groupingBy(PersonInfo::getCity, Collectors.toList())));\n\t\t\tpersonList.entrySet().forEach(entry -> log.info(entry.getKey() + \" \" + entry.getValue()));\n\t\t}\n\t\tif (choice == 2) {\n\t\t\tpersonList = (ContactList.stream()\n\t\t\t\t\t.collect(Collectors.groupingBy(PersonInfo::getState, Collectors.toList())));\n\t\t\tpersonList.entrySet().forEach(entry -> log.info(entry.getKey() + \" \" + entry.getValue()));\n\t\t}\n\t\tif (personList.isEmpty()) {\n\t\t\tlog.info(\"Add contacts to get person by cities\");\n\t\t}\n\t}", "public Contact getContactById(int contactId);", "public interface AddressFinderService {\n Set<Address> findAddresses(String postcode);\n}", "private String populateContacts() {\n // fetch the additional information (currently phone numbers)\n Map<Integer, List<Pair<String, Integer>>> numberCache = getAdditionalInformation();\n\n Cursor cursor = mContentResolver.query(\n ContactsContract.Contacts.CONTENT_URI, QUERY_PROJECTION_CONTACT, null, null, QUERY_ORDERING_CONTACT);\n\n int idIndex = cursor.getColumnIndex(ContactsContract.Contacts._ID);\n int nameIndex = cursor.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME_PRIMARY);\n int hasNumberIndex = cursor.getColumnIndex(ContactsContract.Contacts.HAS_PHONE_NUMBER);\n\n StringBuilder concatList = new StringBuilder();\n\n // First thing we need to do is sanitize the queryString and split into tokens. One\n // important purpose of doing this is to verify if we truly have tokens to apply to a\n // search process. If we are left with an empty query, then we can simply return the\n // entire contact list. The way the algorithm logic flows, there must be at least one\n // query token in the list, even if a blank placeholder.\n ArrayList<String> sanitizedQueryTokens = new ArrayList<String>();\n if (mQueryString != null) {\n // split up the query string into tokens, based on whitespace and asterisks\n String[] queryTokens = mQueryString.trim().split(\"[\\\\*\\\\s]+\");\n // get rid of any empty string references\n for (String currentString : queryTokens) {\n if (!currentString.equals(\"\")) {\n sanitizedQueryTokens.add(currentString);\n }\n }\n // if the ArrayList is empty, then we assume match everything\n if (sanitizedQueryTokens.size() == 0) {\n mQueryString = null;\n }\n }\n\n // Now perform the search. If the queryString is null, then the search reduces\n // to a dump of all contacts\n if ( mQueryString == null) {\n // The search algorithm is designed to work without search criteria (reduction to\n // entire list dumped). However we need at least one query token to enter the main\n // search loop.\n sanitizedQueryTokens.add(\"\");\n }\n\n StringBuilder concatListMatches = new StringBuilder();\n int numMatches = 0;\n\n while (cursor.moveToNext()) {\n String currentName = cursor.getString(nameIndex);\n\n if (currentName != null && !currentName.isEmpty()) {\n // If we are not actually performing a search, we still need to enter this loop\n // once (hence why we added a blank term above).\n for (String currentString : sanitizedQueryTokens) {\n // Add this contact to the list if we are either not performing a search\n // or if the current search criteria (token) matches\n if (mQueryString == null || currentName.toLowerCase().contains(\n currentString.toLowerCase())) {\n\n concatListMatches.append(currentName).append(\"\\n\");\n\n // If this contact has phone number(s), display them\n if (cursor.getInt(hasNumberIndex) > 0) {\n // grab the number(s) from the phat cache\n List<Pair<String, Integer>> phNums;\n if ((phNums = numberCache.get(cursor.getInt(idIndex))) != null) {\n // Pair<Phone Number, Type of Number>\n for (Pair<String, Integer> phNum : phNums) {\n concatListMatches.append(\"\\t\").append(phNum.first);\n switch(phNum.second) {\n case ContactsContract.CommonDataKinds.Phone.TYPE_HOME:\n concatListMatches.append(\" [HOME]\");\n break;\n case ContactsContract.CommonDataKinds.Phone.TYPE_MOBILE:\n concatListMatches.append(\" [MOBILE]\");\n break;\n case ContactsContract.CommonDataKinds.Phone.TYPE_WORK:\n concatListMatches.append(\" [WORK]\");\n break;\n }\n concatListMatches.append(\"\\n\");\n }\n } else {\n // This should not happen. Means that there is a contact in which a\n // phone number is associated but yet no such number actually can\n // be found in the DB\n concatList.append(\"\\t<Phone number referenced, but not found>\\n\");\n }\n }\n\n ++numMatches;\n break;\n }\n }\n }\n }\n concatList.append(numMatches).append(\" Contacts Found\\n\\n\").append(concatListMatches);\n\n Log.d(\"populate contact list \",\"str \"+concatList.toString());\n return concatList.toString();\n }", "@Override\n\tpublic void onUserOrganizationTreeSearch(boolean isOk, List<AirContact> contacts)\n\t{\n\n\t}", "public void showAddressBook() {\n System.out.println(\"addressbook are created :\" + addressBookMap);\n }", "public void addContacts() {\r\n\t\t\r\n\t\t\r\n\t}", "private void findContactOptions() {\n System.out.println(\"Select the option: \\n1.find by contact name\\n2.find by city/state\\n3.exit\");\n int option = scannerForAddressBook.scannerProvider().nextInt();\n \n switch(option) {\n case 1:\n String name1 = getName();\n if(isContactExist(name1)) {\n Contacts contact1 = getContact(name1);\n System.out.println(\"Contact \" + name1 + \": \" + contact1);\n } else {\n System.out.println(\"Contact does not exists!\");\n }\n break;\n case 2:\n String name2 = getCityOrStateName();\n if(isCityOrStateExist(name2)) {\n Contacts contact = searchContactByCityOrState(name2);\n System.out.println(\"Contact from city/state \" + name2 + \": \" + contact);\n } else {\n System.out.println(\"City/State does not exists!\");\n }\n break;\n default:\n System.out.println(\"Thank you!\");\n }\n }", "public String getAllContacts() {\n\t\treturn \"SELECT * FROM CONTACTS\";\n\t}", "@Override\n public List<UserContact> getUserContacts(User user, Integer offset) {\n Pageable pageable = PageRequest.of(offset, 10,\n Sort.by(Sort.Direction.ASC,\"username\", \"byname\"));\n// Sort.by(\"contact\").descending().and(Sort.by(\"username\")));\n Page<UserContact> page = repository.findByUser(user, pageable);\n// page.getContent().forEach(System.out::println);\n// pageable = page.nextPageable();\n return page.getContent();\n }", "private Response getAddressList( String term )\n {\n\n ReferenceList list = null;\n try\n {\n if ( \"RestAddressService\".equals( AddressServiceProvider.getInstanceClass( ) ) )\n {\n list = AddressServiceProvider.searchAddress( null, term );\n }\n\n }\n catch( RemoteException e )\n {\n AppLogService.error( e );\n }\n\n if ( list == null )\n {\n _logger.error( Constants.ERROR_NOT_FOUND_RESOURCE );\n return Response.status( Response.Status.NOT_FOUND )\n .entity( JsonUtil.buildJsonResponse( new ErrorJsonResponse( Response.Status.NOT_FOUND.name( ), MSG_ERROR_GET_ADDRESSES ) ) ).build( );\n }\n\n return Response.status( Response.Status.OK ).entity( JsonUtil.buildJsonResponse( new JsonResponse( list ) ) ).build( );\n }", "public void queryContactByBirthday() {\r\n\t\tSystem.out.println(\"enter the month in terms of number : [eg:= January -1, December -2]\");\r\n\t\tint month = Integer.parseInt(scanner.nextLine());\r\n\t\tList<Contact> contactList = service.getContactList();\r\n\t\tcontactList = service.getContactByBirthDay(month,contactList);\r\n\t\t\r\n\t\t\r\n\t\tSystem.out.println(\"1. show in console\\n2. write to a file\");\r\n\t\tint choice = Integer.parseInt(scanner.nextLine());\r\n\t\tif(choice==1) {\r\n\t\t\tshowContacts(contactList);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tboolean written=service.writeContacts(contactList);\r\n\t\t\tif(written) {\r\n\t\t\tSystem.out.println(\"contacts written to a file\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "public void loadContacts()\n {\n Contact sdhb = new Contact(\"SDHB\", \"(03) 474 00999\");\n //Hospitals\n Contact southland = new Contact(\"Southland Hospital\", \"(03) 218 1949\");\n Contact lakes = new Contact(\"Lakes District Hostpital\", \"(03) 441 0015\");\n Contact dunedin = new Contact(\"Dunedin Hospital\", \"(03) 474 0999\");\n Contact wakari = new Contact(\"Wakari Hospital\", \"(03) 476 2191\");\n //Departments\n Contact compD = new Contact(\"Complements & Complaints (Otago)\", \"(03) 470 9534\");\n Contact compS = new Contact(\"Complements & Complaints (Southland)\", \"(03) 214 5738\");\n\n contacts = new Contact[]{sdhb, dunedin, southland, lakes, wakari, compD, compS};\n }", "boolean hasAddressList();", "com.ubtrobot.phone.PhoneCall.Contact getContactList(int index);", "com.ubtrobot.phone.PhoneCall.Contact getContactList(int index);", "com.ubtrobot.phone.PhoneCall.Contact getContactList(int index);", "com.ubtrobot.phone.PhoneCall.Contact getContactList(int index);", "int getContactAddressCount();", "@Override\n\tpublic List<Contact> getAllContact() {\n\n\t\tList<Contact> contactList = new ArrayList<>();\n\n\t\tList<ContactDetailsEntity> entityList = contactRepositeries.findAll();\n\n\t\tList<ContactDetailsEntity> filterEntity = entityList.stream()\n\t\t\t\t.filter(entity -> \"y\".equals(entity.getActiveSwitch())).collect(Collectors.toList());\n\n\t\tif (!filterEntity.isEmpty()) {\n\t\t\tfilterEntity.forEach(entity -> {\n\t\t\t\tContact c = new Contact();\n\t\t\t\tBeanUtils.copyProperties(entity, c);\n\t\t\t\tcontactList.add(c);\n\t\t\t});\n\t\t}\n\t\treturn contactList;\n\t}", "public List openExistingAddressBook() throws IOException {\n String PATH = \"C:/Users/Sukrutha Manjunath/IdeaProjects/Parctice+\" + addressbookname;\n File file = new File(PATH);\n if (file.exists()) {\n return readFromACsv(addressbookname);\n } else {\n System.out.println(\"address book with given name donot exits\");\n }\n\n if (adressbookmap.containsValue(\"open\")) {\n System.out.println(\"please close current addressbook first\");\n AddressBook.mainfunction();\n } else {\n System.out.println(\"enter the addressbook name :\");\n String addressbookname = InputUtil.getStringValue();\n addressbookname = addressbookname + \".csv\";\n List personlist=Addressbookservices.readFromACsv(addressbookname);\n AddressbookModel addressbookModel = new AddressbookModel();\n addressbookModel.setaddressbookname(addressbookname);\n addressbookModel.setAddressbook(personlist);\n addressbookModel.setSaved(\"yes\");\n adressbookmap.put(addressbookModel, \"open\");\n Controller.person();\n }\n return null;\n }", "public List<Person> readContactlist()\n {\n List<Person> personList=new ArrayList<Person>();\n\n ContentResolver resolver = getContentResolver();\n Cursor cursor = resolver.query(ContactsContract.Contacts.CONTENT_URI, null, null, null, null);\n\n while (cursor.moveToNext()) {\n String id = cursor.getString(cursor.getColumnIndex(ContactsContract.Contacts._ID));\n String name = cursor.getString(cursor.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME));\n\n\n Cursor phoneCursor = resolver.query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI, null,\n ContactsContract.CommonDataKinds.Phone.CONTACT_ID + \"= ?\", new String[]{id}, null);\n\n\n while (phoneCursor.moveToNext()) {\n String phoneNumber = phoneCursor.getString(phoneCursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER));\n\n personList.add(new Person(name, phoneNumber));\n }\n }\n return personList;\n }", "public static void main(String[] args) {\n ArrayList<Contact> contactBook = new ArrayList();\n\n Contact contact1 = new Contact(\"Gabe Newell\", \"[email protected]\");\n Contact contact2 = new Contact(\"Todd Howard\", \"[email protected]\");\n\n contactBook.add(contact1);\n contactBook.add(contact2);\n \n for (Contact contacts : contactBook) {\n System.out.println(contacts.toString());\n }\n\n }", "AllUsersAddresses getAllUsersAddresses();", "public AsyncResult<List<Address>> requestReachabilityAddresses(Jid contact) {\r\n // In addition, a contact MAY request a user's reachability addresses in an XMPP <iq/> stanza of type \"get\".\r\n return xmppSession.query(IQ.get(contact, new Reachability())).thenApply(result -> {\r\n Reachability reachability = result.getExtension(Reachability.class);\r\n if (reachability != null) {\r\n return reachability.getAddresses();\r\n }\r\n return null;\r\n });\r\n }", "List<Person> persons(final PersonStringAware person,final AddressStringAware address, final Contact contact, final Circle distance, final Paging paging);", "private void loadContacts() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M && checkSelfPermission(Manifest.permission.READ_CONTACTS) != PackageManager.PERMISSION_GRANTED) {\n\n requestPermissions(new String[]{Manifest.permission.READ_CONTACTS}, PERMISSION_REQ);\n\n } else {\n mList.addAll(mProvider.getContactsDisplay());\n mAdapter = new ContactsRecyclerAdapter(mList,this, getSupportFragmentManager());\n mLayoutManager = new LinearLayoutManager(getApplicationContext());\n mRecyclerView.setLayoutManager(mLayoutManager);\n mRecyclerView.setAdapter(mAdapter);\n }\n }", "@Test\n @Transactional\n public void searchApplicantContactInfo() throws Exception {\n applicantContactInfoRepository.saveAndFlush(applicantContactInfo);\n when(mockApplicantContactInfoSearchRepository.search(queryStringQuery(\"id:\" + applicantContactInfo.getId()), PageRequest.of(0, 20)))\n .thenReturn(new PageImpl<>(Collections.singletonList(applicantContactInfo), PageRequest.of(0, 1), 1));\n\n // Search the applicantContactInfo\n restApplicantContactInfoMockMvc.perform(get(\"/api/_search/applicant-contact-infos?query=id:\" + applicantContactInfo.getId()))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_VALUE))\n .andExpect(jsonPath(\"$.[*].id\").value(hasItem(applicantContactInfo.getId().intValue())))\n .andExpect(jsonPath(\"$.[*].applicantsHomeAddress\").value(hasItem(DEFAULT_APPLICANTS_HOME_ADDRESS)))\n .andExpect(jsonPath(\"$.[*].telephoneNumber\").value(hasItem(DEFAULT_TELEPHONE_NUMBER)))\n .andExpect(jsonPath(\"$.[*].email\").value(hasItem(DEFAULT_EMAIL)))\n .andExpect(jsonPath(\"$.[*].employer\").value(hasItem(DEFAULT_EMPLOYER)))\n .andExpect(jsonPath(\"$.[*].employersAddress\").value(hasItem(DEFAULT_EMPLOYERS_ADDRESS)));\n }", "@Test\r\n\tvoid testContactServiceAddUniqueContact() {\r\n\t\tassertTrue(contactService.getContactFirstName(id).equals(firstName));\r\n\t\tassertTrue(contactService.getContactLastName(id).equals(lastName));\r\n\t\tassertTrue(contactService.getContactPhone(id).equals(phone));\r\n\t\tassertTrue(contactService.getContactAddress(id).equals(address));\r\n\t}", "List<AccountDetail> findAllByAddressStartingWith(String address);", "@Override\n\tpublic List<Contact> findAll() throws Exception {\n\t\treturn queryEntity(\"select * from contact\", null);\n\t}", "public String getContacts() {\n return contacts;\n }", "@ApiModelProperty(value = \"Address Book Contact that this filter refers to. Output is a Contact Summary Object. Input must be a Contact Lookup Object. Required.\")\n public ContactSummary getContact() {\n return contact;\n }", "public List<Contact> getAllContactsByName(String searchByName);", "private boolean mayRequestContacts() {\n if (checkSelfPermission(READ_CONTACTS) == PackageManager.PERMISSION_GRANTED) {\n return true;\n }\n if (shouldShowRequestPermissionRationale(READ_CONTACTS)) {\n // Requests permission to read contacts if it has not been granted yet\n Snackbar.make(mEmailView, R.string.permission_rationale, Snackbar.LENGTH_INDEFINITE)\n .setAction(android.R.string.ok, new View.OnClickListener() {\n @Override\n @TargetApi(Build.VERSION_CODES.M)\n public void onClick(View v) {\n requestPermissions(new String[]{READ_CONTACTS}, REQUEST_READ_CONTACTS);\n }\n });\n } else {\n requestPermissions(new String[]{READ_CONTACTS}, REQUEST_READ_CONTACTS);\n }\n return false;\n }", "public void testGetAllAuthors() {\r\n //given \r\n System.out.println(\"getAllAuthors\");\r\n AuthorHibernateDao instance = new AuthorHibernateDao();\r\n \r\n //when \r\n List<Author> result = instance.getAllAuthors();\r\n \r\n //then\r\n assertEquals(result.size(), 42);\r\n assertEquals(\"Herbert George Wells\", result.get(40).getName()); \r\n }", "private void checkPermissionReadBook() {\n if (ContextCompat.checkSelfPermission(this, android.Manifest.permission.READ_CONTACTS) != PackageManager.PERMISSION_GRANTED) {\n if (ActivityCompat.shouldShowRequestPermissionRationale(this, android.Manifest.permission.READ_CONTACTS)) {\n dialogPermissionReadBook();\n } else {\n ActivityCompat.requestPermissions(this, new String[]{android.Manifest.permission.READ_CONTACTS}, CODE_READ_BOOK);\n }\n } else {\n setListBook();\n }\n }", "IContact getContactById(String contactId);", "public interface ContactDao {\n List<Contact> searchContact(long id);\n\n int addContact(@Param(\"from\") String from,\n @Param(\"to\") String to);\n\n int deleteContact(String[] users);\n}", "public void readAddressBook(File file) {\r\n try {\r\n // intializes reader in order to count the number of contacts\r\n FileReader frLineCount = new FileReader(file);\r\n BufferedReader brLineCount = new BufferedReader(frLineCount);\r\n // initializes variable to count the number of lines\r\n int lines = 0;\r\n // counts total lines in address book\r\n while (brLineCount.readLine() != null)\r\n lines++;\r\n brLineCount.close();\r\n // calculates total contacts\r\n int totalContacts = lines / 5;\r\n // initializes reader in order to add the contacts to the array\r\n FileReader frLineRead = new FileReader(file);\r\n BufferedReader brLineRead = new BufferedReader(frLineRead);\r\n // inserts each AddressEntry into the array\r\n for (int i = totalContacts; i > 0; i--) {// for statment to add the exact number of contacts\r\n this.addEntry(brLineRead.readLine(), brLineRead.readLine(), brLineRead.readLine(),\r\n brLineRead.readLine(), brLineRead.readLine());\r\n }\r\n brLineRead.close();\r\n } catch (IOException e) {\r\n System.out.println(e.getMessage());\r\n }\r\n }", "public Cursor getAllContact()\n {\n return db.query(DATABASE_TABLE,new String[]{KEY_ROWID,KEY_NAME,\n KEY_EMAIL},null,null,null,null,null);\n }", "public void findContact(){\n EtecsaDB database = new EtecsaDB(this.getContext());\n if (!database.hasDatabase()){\n Toast.makeText(this.getContext(), R.string.no_database, Toast.LENGTH_SHORT).show();\n }\n else //buscar contacto\n new Search(this.getActivity()).execute(advancedSearch);\n }", "public static void showContacts(ArrayList<Contact> contacts, boolean firstPage, boolean lastPage, boolean fromAccount) {\n setMenuLines(\"\", 1, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 21);\n if (contacts.size() == 0) {\n setMenuLines(HIGHLIGHT_COLOR + \"There are no Contacts\" + HIGHLIGHT_COLOR, 4);\n } else {\n setMenuLines(HIGHLIGHT_COLOR + \"Available Contacts\" + HIGHLIGHT_COLOR, 4);\n }\n // String is built with the current page of contacts and then the corresponding menu String lines are set\n int initialLine = 6;\n StringBuilder contactString = new StringBuilder(\"\");\n for (Contact contact : contacts) {\n contactString.append(contact.toString()).append(\"\\n\");\n }\n setLinesFromConcatString(contactString.toString(), initialLine);\n if (firstPage && lastPage) {\n setMenuLines(HIGHLIGHT_COLOR + \"ENTER \" + ANSI_RESET + (fromAccount ? \"- return to Account\" : \"- return to the main menu\"), 20);\n } else if (firstPage) {\n setMenuLines(HIGHLIGHT_COLOR + \"next \" + ANSI_RESET + \"- go to the next page | \" + HIGHLIGHT_COLOR +\n \"back \" + ANSI_RESET + (fromAccount ? \"- return to Account\" : \"- return to the main menu\"), 20);\n } else if (lastPage) {\n setMenuLines(HIGHLIGHT_COLOR + \"previous \" + ANSI_RESET + \"- return to the previous page | \" + HIGHLIGHT_COLOR +\n \"back \" + ANSI_RESET + (fromAccount ? \"- return to Account\" : \"- return to the main menu\"), 20);\n } else {\n setMenuLines(HIGHLIGHT_COLOR + \"next \" + ANSI_RESET + \"- go to the next page |\" + HIGHLIGHT_COLOR +\n \"previous \" + ANSI_RESET + \"- return to the previous page | \" + HIGHLIGHT_COLOR +\n \"back \" + ANSI_RESET + (fromAccount ? \"- return to Account\" : \"- return to the main menu\"), 20);\n }\n PrinterMenu.printMenu(\"\");\n }", "@Test\n public void TC3(){\n TryCloudUtil.clickContactsModule(driver);\n\n // 3.Verify the contact names are in the list (Pre-condition: there should be at least 2 contact names are displayed On the contact list)\n\n //Creating 2 contacts\n TryCloudUtil.CreatingNewContact(driver);\n WebElement company=driver.findElement(By.xpath(\"//input[@id='contact-org']\"));\n company.sendKeys(\"Test1\");\n BrowserUtils.wait(5);\n\n TryCloudUtil.CreatingNewContact(driver);\n company.sendKeys(\"Test2\");\n BrowserUtils.wait(5);\n\n Assert.assertTrue(driver.getPageSource().contains(\"Test1\"));\n Assert.assertTrue(driver.getPageSource().contains(\"Test2\"));\n\n }", "@Test\r\n\tpublic void getByRange_RangeInAll_Success() {\r\n\r\n\t\tSelectionCriteria criteria = getSelectionCriteria();\r\n\t\tgetContentList();\r\n\t\tList<String> content = service.getByCriteria(criteria);\r\n\t\tAssert.assertEquals(7, content.size());\r\n\t\tAssert.assertEquals(USER_INPUT[2], content.get(0));\r\n\t\tservice.clearAll();\r\n\t}", "@CrossOrigin\n @RequestMapping(path=\"/address/customer\",method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)\n public ResponseEntity<AddressListResponse> getAllAddress(@RequestHeader(\"authorization\") final String authorization) throws AuthorizationFailedException {\n\n String[] splitStrings = authorization.split(\" \");\n String accessToken = splitStrings[1];\n\n CustomerEntity loggedCustomer = customerService.getCustomer(accessToken);\n List<AddressEntity> addressEntityList = addressService.getAllAddress(loggedCustomer);\n\n AddressListResponse addressListResponse = new AddressListResponse();\n if(addressEntityList==null){\n addressListResponse = null;\n return new ResponseEntity<>(addressListResponse, HttpStatus.OK);\n }\n\n List<AddressList> addressLists = new ArrayList<>();\n\n for (AddressEntity addressEntity : addressEntityList) {\n AddressList adr = new AddressList();\n adr.setId(UUID.fromString(addressEntity.getUuid()));\n adr.setFlatBuildingName(addressEntity.getFlatBuilNo());\n adr.setLocality(addressEntity.getLocality());\n adr.setCity(addressEntity.getCity());\n adr.setPincode(addressEntity.getPincode());\n\n AddressListState statesList = new AddressListState();\n String stateUuid = addressEntity.getState().getUuid();\n statesList.setId(UUID.fromString(stateUuid));\n statesList.setStateName(addressEntity.getState().getStateName());\n adr.setState(statesList);\n addressLists.add(adr);\n }\n\n return new ResponseEntity<>(addressListResponse.addresses(addressLists), HttpStatus.OK);\n\n }", "public void populateContactsTable() {\n Contact contact1 = createContactFromFile(\"DummyContact1.json\");\n Contact contact2 = createContactFromFile(\"DummyContact2.json\");\n contacts = new ArrayList<>();\n contacts.add(contact1);\n contacts.add(contact2);\n\n contactService.postContact(contact1);\n contactService.postContact(contact2);\n }", "Page<Contact> searchContactsByName(String name, int index, int size);", "private void getContactList() {\r\n\r\n\t\tgroupData.clear();\r\n\t\tchildData.clear();\r\n\t\tDataHelper dataHelper = new DataHelper(ContactsActivity.this);\r\n\t\tdataHelper.openDatabase();\r\n\t\tgroupData = dataHelper.queryZoneAndCorpInfo(childData);\r\n\t\tdataHelper.closeDatabase();\r\n\t\thandler.sendEmptyMessage(1);\r\n\r\n\t\tif (groupData == null || groupData.size() == 0) {\r\n\t\t\tDataTask task = new DataTask(ContactsActivity.this);\r\n\t\t\ttask.execute(Constants.KServerurl + \"GetAllOrgList\", \"\");\r\n\t\t}\r\n\t}", "public abstract boolean ContainsContactObjects();", "public static ArrayList<Contact> read(Context context){\n ContactUtil contactUtil = new ContactUtil();\n ArrayList<Contact> result = contactUtil.getContactList(context);\n return result;\n }", "@Override\n\tpublic List<Address> FindAllAddress() {\n\t\treturn ab.FindAll();\n\t}", "protected JsonNode getContactsRequest(String url, String authorizationHeader)\n throws ServiceException, IOException {\n final HttpGet get = new HttpGet(url);\n get.addHeader(OAuth2HttpConstants.HEADER_AUTHORIZATION.getValue(), authorizationHeader);\n ZimbraLog.extensions.debug(\"Fetching contacts for import.\");\n return OAuth2Handler.executeRequestForJson(get);\n }", "boolean hasContact();", "void findAllWithBirthday(@NonNull OnDataLoadCallback<List<Contact>> callback);", "public static void main(String[] args) {\n ContactData contactDatas = new ContactData(\"Mohon\", \"456775439\");\r\n //System.out.println(contactDatas);\r\n\r\n ContactData contactDatas1 = new ContactData(\"shihab\", \"456775439\", \"[email protected]\");\r\n\r\n ContactList list = new ContactList();\r\n list.createContact(contactDatas);\r\n list.createContact(contactDatas1);\r\n System.out.println(list);\r\n\r\n ContactData search = list.searchContact(\"mohon\");\r\n if (search != null){\r\n System.out.println(search);\r\n } else {\r\n System.out.println(\"Contact not found\");\r\n }\r\n\r\n System.out.println(list.getTotalContact());\r\n }", "@GetMapping(\"/bookworm/showAllAuthors\")\n public ResponseEntity<List> showAllAuthors() {\n\n log.debug(\"Showing all the Authors whose books are present in library\");\n return ResponseEntity.ok(authorService.getAuthor());\n }", "public boolean hasExternalAddressbooks() throws RemoteException;", "List<BookAccount> findAllDebtors();", "public List<Contact> searchContacts(Map<SearchTerm,String> criteria);", "public String getContactAddress() {\n\n \n return contactAddress;\n\n }", "@And(\"^user can see the account details such as name, surname, email address and mailing address$\")\n public void userCanSeeTheAccountDetailsSuchAsNameSurnameEmailAddressAndMailingAddress() throws Throwable {\n }", "private ArrayList<Contact> getContactList(Context context) {\n String[] selectCol = new String[] { ContactsContract.Contacts.DISPLAY_NAME,\n ContactsContract.Contacts.HAS_PHONE_NUMBER, ContactsContract.Contacts._ID };\n\n final int COL_NAME = 0;\n final int COL_HAS_PHONE = 1;\n final int COL_ID = 2;\n\n // the selected cols for phones of a user\n String[] selPhoneCols = new String[] { ContactsContract.CommonDataKinds.Phone.NUMBER,\n ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME, ContactsContract.CommonDataKinds.Phone.TYPE };\n\n final int COL_PHONE_NUMBER = 0;\n final int COL_PHONE_NAME = 1;\n final int COL_PHONE_TYPE = 2;\n\n String select = \"((\" + Contacts.DISPLAY_NAME + \" NOTNULL) AND (\" + Contacts.HAS_PHONE_NUMBER + \"=1) AND (\"\n + Contacts.DISPLAY_NAME + \" != '' ))\";\n\n ArrayList<Contact> list = new ArrayList<Contact>();\n Cursor cursor = context.getContentResolver().query(ContactsContract.Contacts.CONTENT_URI, selectCol, select,\n null, ContactsContract.Contacts.DISPLAY_NAME + \" COLLATE LOCALIZED ASC\");\n if (cursor == null) {\n return list;\n }\n if (cursor.getCount() == 0) {\n return list;\n }\n\n cursor.moveToFirst();\n while (!cursor.isAfterLast()) {\n int contactId;\n contactId = cursor.getInt(cursor.getColumnIndex(ContactsContract.Contacts._ID));\n if (cursor.getInt(COL_HAS_PHONE) > 0) {\n // the contact has numbers\n // 获得联系人的电话号码列表\n String displayName;\n displayName = cursor.getString(COL_NAME);\n Cursor phoneCursor = context.getContentResolver().query(\n ContactsContract.CommonDataKinds.Phone.CONTENT_URI, selPhoneCols,\n ContactsContract.CommonDataKinds.Phone.CONTACT_ID + \"=\" + contactId, null, null);\n if (phoneCursor.moveToFirst()) {\n do {\n // 遍历所有的联系人下面所有的电话号码\n String phoneNumber = phoneCursor.getString(COL_PHONE_NUMBER);\n Contact contact = new Contact(0, displayName);\n contact.phoneNumber = phoneNumber;\n list.add(contact);\n } while (phoneCursor.moveToNext());\n \n phoneCursor.close();\n }\n }\n cursor.moveToNext();\n }\n \n cursor.close();\n\n return list;\n }", "private List<User> retrieveTravelContacts() {\n if (checkIfContactKeysExists()) {\n return SharedPrefsUtils.convertSharedPrefsToTravelContacts(context);\n }\n //TODO: display no contacts UI below header\n return new ArrayList<>();\n }", "@GetMapping(\"getAll\")\n\tpublic ServiceResponse<ContactAllResponse> getAll() {\n\t\treturn contactService.getAll();\n\t}", "@Override\n\tpublic Set<Contact> getContacts(){\n\t\treturn contacts;\n\t}" ]
[ "0.70349354", "0.6926006", "0.6394169", "0.6382996", "0.6359822", "0.62944007", "0.6106353", "0.6049019", "0.6009081", "0.58930296", "0.5884436", "0.5878097", "0.5874886", "0.5873779", "0.5851886", "0.5774756", "0.576015", "0.5751849", "0.5740987", "0.5708572", "0.5706343", "0.56874496", "0.5685785", "0.56789297", "0.56231356", "0.55872124", "0.55815136", "0.5558888", "0.55169356", "0.5515173", "0.55099493", "0.5507147", "0.55040747", "0.5500697", "0.54942167", "0.54640263", "0.5461714", "0.54566437", "0.5455717", "0.54536825", "0.54488945", "0.54242325", "0.542015", "0.539924", "0.5396039", "0.53840643", "0.5378098", "0.53724253", "0.53723127", "0.53723127", "0.53723127", "0.53723127", "0.53573906", "0.535612", "0.53537166", "0.5330763", "0.5318793", "0.53072965", "0.5302516", "0.5302309", "0.53000563", "0.52967453", "0.529647", "0.5290836", "0.5278291", "0.52714366", "0.5260172", "0.5257232", "0.5251815", "0.5251512", "0.52490383", "0.52488214", "0.52458644", "0.5242831", "0.5240725", "0.5240712", "0.5234764", "0.5225809", "0.5222623", "0.5210695", "0.52074903", "0.52058667", "0.5202446", "0.51995623", "0.51882", "0.51783013", "0.5162659", "0.5155305", "0.5153961", "0.5152125", "0.51503694", "0.51381487", "0.5137182", "0.51331186", "0.512744", "0.5127349", "0.5124018", "0.5117071", "0.51036483", "0.5103242" ]
0.69684964
1
Acceptance Criteria "Users should be able to retireve a unique set of all contacts across multiple address books"
@Test @Transactional public void getAllContactsWithInMultiAddressBookUnique() throws Exception { restAddressBookMockMvc.perform( get("/api/address-books/{id}/contacts", "1,2").param("unique", "true")) .andExpect(status().isOk()) .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE)) .andExpect(jsonPath("$.[3]").exists()) .andExpect(jsonPath("$.[4]").doesNotExist()) ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void tesPrintAllContactsOfAllBooks() {\n\t\t// add 1 contacts to addrbook1\n\t\tcontactService.addContact(addrBook1, new Contact() {\n\t\t\t{\n\t\t\t\tsetName(\"Jack Sparrow\");\n\t\t\t}\n\t\t});\n\n\t\t// add 2 contacts to addrbook2\n\t\tcontactService.addContact(addrBook2, new Contact() {\n\t\t\t{\n\t\t\t\tsetName(\"Hulk\");\n\t\t\t}\n\t\t});\n\t\tcontactService.addContact(addrBook2, new Contact() {\n\t\t\t{\n\t\t\t\tsetName(\"American Captain\");\n\t\t\t}\n\t\t});\n\t\t\n\t\t// add 3 contacts to addrbook3\n\t\tcontactService.addContact(addrBook3, new Contact() {\n\t\t\t{\n\t\t\t\tsetName(\"IronMan\");\n\t\t\t}\n\t\t});\n\t\tcontactService.addContact(addrBook3, new Contact() {\n\t\t\t{\n\t\t\t\tsetName(\"SpideMan\");\n\t\t\t}\n\t\t});\n\t\tcontactService.addContact(addrBook3, new Contact() {\n\t\t\t{\n\t\t\t\tsetName(\"AntMan\");\n\t\t\t}\n\t\t});\n\t\t\n\t\tList<Contact> contacts = contactService.getAllContactsOfAllBooks(ownerId);\n\t\tassertEquals(6, contacts.size());\n\t}", "@Test\n @Transactional\n public void getAllContactsWithInAddressBook() throws Exception {\n restAddressBookMockMvc.perform(\n get(\"/api/address-books/{id}/contacts\", \"1\").param(\"unique\", \"false\"))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE))\n .andExpect(jsonPath(\"$.[2]\").exists())\n .andExpect(jsonPath(\"$.[3]\").doesNotExist())\n ;\n }", "@Test\r\n\tvoid testContactServiceAddUniqueContact() {\r\n\t\tassertTrue(contactService.getContactFirstName(id).equals(firstName));\r\n\t\tassertTrue(contactService.getContactLastName(id).equals(lastName));\r\n\t\tassertTrue(contactService.getContactPhone(id).equals(phone));\r\n\t\tassertTrue(contactService.getContactAddress(id).equals(address));\r\n\t}", "public static void addPersons() {\n System.out.println(\"Enter number of persons added to be in address book : \");\n int noOfPersons = sc.nextInt();\n int count = 1;\n while (count <= noOfPersons) {\n addContact();\n count++;\n }\n }", "public void viewAllContacts(AddressBookDict addressBook) {\n\t\tlog.info(\"Enter the address book name of whose contact list you want to see\");\n\t\tString addressBookName = obj.next();\n\t\tList<PersonInfo> ContactList = addressBook.getContactList(addressBookName);\n\t\tif (ContactList.isEmpty()) {\n\t\t\tlog.info(\"List is empty\");\n\t\t} else {\n\t\t\tlog.info(\"Contacts in address book \" + addressBookName + \"are :\");\n\t\t\tContactList.stream().forEach((System.out::println));\n\t\t\tlog.info(\"\\n\");\n\t\t}\n\t}", "Set<Person> getContacts();", "private List<Contact> getDuplicatesByHashCode(List<Contact> contacts) {\n List<Object> duplicates = getDuplicatesByKey(Contact::hashCode, contacts);\n\n // Only return Contact records that match the duplicated hashCodes\n return contacts.stream()\n .filter(contact -> duplicates.contains(contact.hashCode()))\n .collect(Collectors.toList());\n }", "private static void test1() {\n HashSet<Contact> contacts = new HashSet<>();\n\n Contact contact1 = new Contact(123, \"Vasiliy\", \"+380681234136\");\n\n contacts.add(contact1);\n\n\n //------------------------------------------\n\n\n Contact contact2 = new Contact(123, \"Vasiliy\", \"+380689876543\");\n\n contacts.remove(contact2);\n contacts.add(contact2);\n\n printCollection(contacts);\n }", "private List<Contact> getDuplicatesByEmail(List<Contact> contacts) {\n List<Object> duplicates = getDuplicatesByKey(Contact::getEmail, contacts);\n\n // Only return Contact records that match the duplicated email addresses\n return contacts.stream()\n .filter(contact -> duplicates.contains(contact.getEmail()))\n .collect(Collectors.toList());\n }", "public static void main(String[] args) { //the main class \n\n Contact one = new Contact(\"A\", \"A\", \"A\", \"A\"); // I give it some contact information first.\n Contact two = new Contact(\"Bob\", \"Bob\", \"A\", \"A\");\n\n Scanner scan = new Scanner(System.in);\n\n AddressBook book = new AddressBook();\n book.addNewContact(one);\n book.addNewContact(two);\n\n System.out.println(\"give me name? \"); //ask for name\n\n\n String name = scan.nextLine(); //take the input from the user and store is as as first name \n System.out.println(\"Last name?\");\n String lname = scan.nextLine();\n\n book.addNewContact(new Contact(name, lname, \"123\", \"123\")); /\n\n book.displayAllContacts(); //this method call displayAllContact is to display all it have from the address book\n\n\n\n\n\n }", "public AddressBook() {\r\n contacts = new ArrayList<AddressEntry>();\r\n }", "public Address SearchContact(String firstName,String lastName) {\r\n int i = 0;\r\n while (!contact.get(i).getFirstName().equals(firstName) && !contact.get(i).getLastName().equals(lastName)){\r\n i++;\r\n }\r\n return contact.get(i);\r\n }", "@Test\n @Order(1)\n public void testGetAllContacts() {\n List<Contact> contacts = Arrays.asList(\n createContact(\"A Smith\"),\n createContact(\"B Smith\"),\n createContact(\"C Smith\"),\n createContact(\"D Smith\")\n );\n\n final ResponseEntity<Contact[]> response = template.getForEntity(\"/api/v1/contact\", Contact[].class);\n final List<Contact> foundContacts = Arrays.asList(response.getBody());\n\n Assertions.assertThat(foundContacts.size()).isEqualTo(contacts.size());\n\n for (int i = 0; i < contacts.size(); i++) {\n Assertions.assertThat(foundContacts.get(i).getName()).isEqualTo(contacts.get(i).getName());\n }\n }", "public static void main(String[] args) {\n ArrayList<Contact> contactBook = new ArrayList();\n\n Contact contact1 = new Contact(\"Gabe Newell\", \"[email protected]\");\n Contact contact2 = new Contact(\"Todd Howard\", \"[email protected]\");\n\n contactBook.add(contact1);\n contactBook.add(contact2);\n \n for (Contact contacts : contactBook) {\n System.out.println(contacts.toString());\n }\n\n }", "public void getPersonByCityNameStateName(AddressBookDict addressBook) {\n\t\tlog.info(\"Enter the address book name whose contacts you want to see by city name\");\n\t\tString addressBookName = obj.next();\n\t\tList<PersonInfo> ContactList = addressBook.getContactList(addressBookName);\n\t\tlog.info(\"Choice \\n 1. get person by city name 2. get person by state name\");\n\t\tint choice = obj.nextInt();\n\t\tMap<String, List<PersonInfo>> personList = new HashMap<String, List<PersonInfo>>();\n\t\tif (choice == 1) {\n\t\t\tpersonList = (ContactList.stream()\n\t\t\t\t\t.collect(Collectors.groupingBy(PersonInfo::getCity, Collectors.toList())));\n\t\t\tpersonList.entrySet().forEach(entry -> log.info(entry.getKey() + \" \" + entry.getValue()));\n\t\t}\n\t\tif (choice == 2) {\n\t\t\tpersonList = (ContactList.stream()\n\t\t\t\t\t.collect(Collectors.groupingBy(PersonInfo::getState, Collectors.toList())));\n\t\t\tpersonList.entrySet().forEach(entry -> log.info(entry.getKey() + \" \" + entry.getValue()));\n\t\t}\n\t\tif (personList.isEmpty()) {\n\t\t\tlog.info(\"Add contacts to get person by cities\");\n\t\t}\n\t}", "public void accessAddressBook() {\n boolean isExit = false;\n while(!isExit) {\n System.out.println(\"Select option: \\n1.Add Contact\\n2.Edit Contact\\n\" +\n \"3.Delete Contact\\n4.Find contact\\n5.Exit\");\n int option = scannerForAddressBook.scannerProvider().nextInt();\n switch(option) {\n case 1:\n if(!isContactExist(getName())) {\n addContact();\n } else {\n System.out.println(\"Contact already exists!\");\n }\n break;\n case 2:\n String name = getName();\n if(isContactExist(name)) {\n editDetails(name);\n } else {\n System.out.println(\"Contact does not exists!\");\n }\n break;\n case 3:\n String name1 = getName();\n if(isContactExist(name1)) {\n Contacts contact = getContact(name1);\n deleteContact(contact);\n } else {\n System.out.println(\"Contact does not exists!\");\n }\n break;\n case 4:\n findContactOptions();\n break;\n default:\n System.out.println(\"Thanks!\");\n isExit = true;\n }\n }\n }", "public void addContact() {\n System.out.println(\"enter a number to how many contacts you have to add\");\n Scanner scanner = new Scanner(System.in);\n int number = scanner.nextInt();\n\n for (int i = 1; i <= number; i++) {\n Contact person = new Contact();\n System.out.println(\"you can countinue\");\n System.out.println(\"enter your first name\");\n String firstName = scanner.next();\n if (firstName.equals(person.getFirstName())) {\n try {\n throw new InvalidNameException(\"duplicate name\");\n } catch (InvalidNameException e) {\n e.printStackTrace();\n }\n } else {\n person.setFirstName(firstName);\n }\n System.out.println(\"enter your last name\");\n String lastName = scanner.next();\n person.setLastName(lastName);\n System.out.println(\"enter your address :\");\n String address = scanner.next();\n person.setAddress(address);\n System.out.println(\"enter your state name\");\n String state = scanner.next();\n person.setState(state);\n System.out.println(\"enter your city :\");\n String city = scanner.next();\n person.setCity(city);\n System.out.println(\"enter your email\");\n String email = scanner.next();\n person.setEmail(email);\n System.out.println(\"enter your zip :\");\n int zip = scanner.nextInt();\n person.setZip(zip);\n System.out.println(\"enter your contact no\");\n int mobile = scanner.nextInt();\n person.setPhoneNo(mobile);\n list.add(person);\n }\n System.out.println(list);\n }", "public abstract boolean ContainsContactObjects();", "public static void addContact()\n {\n System.out.println(\"Enter your firstName : \");\n String firstName = sc.nextLine();\n for (int i = 0; i < list.size(); i++)\n {\n if (list.get(i).getFirstName().equalsIgnoreCase(firstName))\n {\n System.out.println(\"Name already exists. Try another name\");\n addPersons();\n break;\n }\n }\n\n System.out.println(\"Enter your lastName : \");\n String lastName = sc.nextLine();\n System.out.println(\"Enter your address : \");\n String address = sc.nextLine();\n System.out.println(\"Enter your city : \");\n String city = sc.nextLine();\n System.out.println(\"Enter your state : \");\n String state = sc.nextLine();\n System.out.println(\"Enter your zipCode : \");\n String zip = sc.nextLine();\n System.out.println(\"Enter your phoneNo : \");\n long phoneNo = sc.nextLong();\n System.out.println(\"Enter your emailId : \");\n String email = sc.nextLine();\n Contact contact = new Contact(firstName, lastName, address, city, state, zip, phoneNo, email);\n list.add(contact);\n }", "private void populate(){\n PhoneBook phonebook = new PhoneBook();\n\n //then i will create contacts... and insert them into the phonebook\n //(String name, Date dayBirth, Set<Operator> numbers, Address homeLocation, PhoneBook phonebook)\n TelephoneContact contact1 = new TelephoneContact(\"Luis\", getDate(11,1,1990), null, null, phonebook);\n //(String city, int houseNumber, String street, int streetNumber, String zipCode, TelephoneContact user)\n Address homelocation1 = new Address(\"LISBON\", 54, \"Street XYZ\", 42, \"9220-225\", contact1);\n TelephoneContact contact2 = new TelephoneContact(\"Filipe\", getDate(1,1,1988), null, null, phonebook);\n Address homelocation2 = new Address(\"COIMBRA\", 54, \"Street XYZ\", 42, \"9220-225\", contact2);\n\n Operator[] numbers = {\n //String (operatorName, String number, TelephoneContact telephoneContact)\n new Operator(\"MEO\", \"351967491511\", contact1),\n new Operator(\"VODAFONE\", \"351917491511\", contact1),\n new Operator(\"ZON\", \"351937491511\", contact1),\n\n new Operator(\"MEO\", \"351967491512\", contact2),\n new Operator(\"MEO\", \"351967491513\", contact2),\n new Operator(\"MEO\", \"351967491514\", contact2),\n new Operator(\"ZON\", \"351937491512\", contact2),\n };\n\n em.persist(phonebook);\n em.persist(contact1);\n em.persist(contact2);\n em.persist(homelocation1);\n em.persist(homelocation2);\n for(Operator o : numbers)\n em.persist(o);\n\n\n //lets remove a address\n /*Query q = em.createQuery(\"from Address a where a.city = :t\");\n q.setParameter(\"t\", \"COIMBRA\");\n Address a = (Address) q.getSingleResult();\n System.out.println(a.getAddressId()+\" WITH: \"+a);\n\n trx.begin();\n em.remove(a);\n trx.commit();*/\n\n //lets remove a contact\n /*Query q = em.createQuery(\"from TelephoneContact c where c.name = :t\");\n q.setParameter(\"t\", \"Filipe\");\n\n TelephoneContact contact = (TelephoneContact) q.getSingleResult();\n System.out.println(contact.getTelephoneContactId()+\" _WITH:_ \"+contact);\n trx.begin();\n em.remove(contact);\n trx.commit();*/\n }", "@Override\n\tpublic List<Studentbean2> Addaddress(List<AddressBean> findAllAddress) {\n\t\tfor(AddressBean a:findAllAddress)\n\t\t\tfor(Studentbean2 e:stu2)\n\t\t\t{ \n\t\t\t\tif(e.getId()==a.getId())\n\t\t\t\t{ \n\t\t\t\t\te.setA(a);\n\t\t\t\t}\n\t\t\t}\n\t\treturn stu2;\n\t}", "public void chekcAllPhoneNumbers() {\n\t\t\n\t\tif(remaining!=-9999999 && remaining!=0)\n\t\t{\n\t\t\tAlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(\n\t\t\t\t\tcon);\n\t \n\t\t\t\t\t// create alert dialog\n\t\t \t\t\talertDialog = alertDialogBuilder.setTitle(\"Please wait\")\n\t\t\t\t\t\t.setMessage(\"Already an update is going on.\")\n\t\t\t\t\t\t.setCancelable(false)\n\t\t\t\t\t\t.setPositiveButton(\"Ok.\",new DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,int id) {\n\t\t\t\t\t\t\t\talertDialog.dismiss();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t }).create();\n\t \n\t\t\t\t\t// show it\n\t\t\t\t\talertDialog.show();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t\n\t\t\tUri uri = ContactsContract.CommonDataKinds.Phone.CONTENT_URI;\n\t\t\tString[] projection = new String[] {ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME,\n\t\t\t ContactsContract.CommonDataKinds.Phone.NUMBER};\n\n\t\t\tCursor people = getContentResolver().query(uri, projection, null, null, null);\n\n\t\t\tint indexName = people.getColumnIndex(ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME);\n\t\t\tint indexNumber = people.getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER);\n\n\t\t\tint total_size = people.getCount();\n\t\t\tif(total_size<=0)\n\t\t\t{\n\t\t\t\tsetSupportProgressBarIndeterminateVisibility(false);\n\t\t\t\tToast.makeText(con, \"No contacts found.\", Toast.LENGTH_SHORT).show();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tpeople.moveToFirst();\n\t\t\t\tdo {\n\t\t\t\t\t String name = people.getString(indexName);\n\t\t\t\t\t String number = people.getString(indexNumber);\n\t\t\t\t\t number = (new To_international(con)).change_to_international(number);\n\t\t\t\t\t if(number!=null)\n\t\t\t\t\t {\n\t\t\t\t\t \tvalid_name.add(name);\n\t\t\t\t\t \tvalid_number.add(number);\n\t\t\t\t\t }\n\t\t\t\t} while (people.moveToNext());\n\t\t\t\t\n\t\t\t\tLog.d(\"size\", \"\"+valid_name.size());\n\t\t\t\t\n\t\t\t\tif(valid_name.size()>0)\n\t\t\t\t{\n\t\t\t\t\tif(valid_name.size()>10)\n\t\t\t\t\t{\n\t\t\t\t\t\tflag = valid_name.size();\n\t\t\t\t\t\tremaining = valid_name.size();\n\t\t\t\t\t\tindex = -1;\n\t\t\t\t\t\tfor(int i=0;i<valid_name.size();i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tparse_phone_number_query();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tflag = valid_name.size();\n\t\t\t\t\t\tremaining = valid_name.size();\n\t\t\t\t\t\tindex = -1;\n\t\t\t\t\t\tfor(int i=0;i<valid_name.size();i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tparse_phone_number_query();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tsetSupportProgressBarIndeterminateVisibility(false);\n\t\t\t\t\tToast.makeText(con, \"No friends found in contacts.\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\n\t\t}\n\t\t\t\t\n\t}", "@Test\npublic void testContactsModification(){\n Contacts before=app.db().contacts();\n ContactData modifiedContact = before.iterator().next();\n ContactData contact = new ContactData().withId(modifiedContact.getId()).withName(\"1\").withLastname(\"2\").withAddress(\"3\")\n .withHomephone(\"4\").withMobilephone(\"5\").withWorkphone(\"6\").withEmail1(\"7\").withEmail2(\"8\").withEmail3(\"9\");\n app.contact().modify(contact);\n// Contacts after = app.contact().all();\n Contacts after=app.db().contacts();\n assertEquals(after.size(),before.size());\n assertThat(after, equalTo(before.without(modifiedContact).withAdded(contact)));\n verifyContactListInUI();\n}", "private void requestContactInformation() {\n CONTACTS = new ArrayList<>();\n\n Cursor c = getContentResolver().query(ContactsContract.Contacts.CONTENT_URI,\n null, null, null,\n ContactsContract.Contacts.DISPLAY_NAME_PRIMARY + \" asc\");\n\n while(c.moveToNext()) {\n HashMap<String, String> map = new HashMap<String, String>();\n String id = c.getString(c.getColumnIndex(ContactsContract.Contacts._ID));\n String name = c.getString(c.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME_PRIMARY));\n\n Cursor phoneCursor = getContentResolver().query(\n ContactsContract.CommonDataKinds.Phone.CONTENT_URI,\n null,\n ContactsContract.CommonDataKinds.Phone.CONTACT_ID + \" = \" + id,\n null, null\n );\n\n if (phoneCursor.moveToFirst()) {\n String number = phoneCursor.getString(phoneCursor.getColumnIndex(\n ContactsContract.CommonDataKinds.Phone.NUMBER\n ));\n CONTACTS.add(Pair.create(name, number));\n }\n\n phoneCursor.close();\n }\n\n }", "private String populateContacts() {\n // fetch the additional information (currently phone numbers)\n Map<Integer, List<Pair<String, Integer>>> numberCache = getAdditionalInformation();\n\n Cursor cursor = mContentResolver.query(\n ContactsContract.Contacts.CONTENT_URI, QUERY_PROJECTION_CONTACT, null, null, QUERY_ORDERING_CONTACT);\n\n int idIndex = cursor.getColumnIndex(ContactsContract.Contacts._ID);\n int nameIndex = cursor.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME_PRIMARY);\n int hasNumberIndex = cursor.getColumnIndex(ContactsContract.Contacts.HAS_PHONE_NUMBER);\n\n StringBuilder concatList = new StringBuilder();\n\n // First thing we need to do is sanitize the queryString and split into tokens. One\n // important purpose of doing this is to verify if we truly have tokens to apply to a\n // search process. If we are left with an empty query, then we can simply return the\n // entire contact list. The way the algorithm logic flows, there must be at least one\n // query token in the list, even if a blank placeholder.\n ArrayList<String> sanitizedQueryTokens = new ArrayList<String>();\n if (mQueryString != null) {\n // split up the query string into tokens, based on whitespace and asterisks\n String[] queryTokens = mQueryString.trim().split(\"[\\\\*\\\\s]+\");\n // get rid of any empty string references\n for (String currentString : queryTokens) {\n if (!currentString.equals(\"\")) {\n sanitizedQueryTokens.add(currentString);\n }\n }\n // if the ArrayList is empty, then we assume match everything\n if (sanitizedQueryTokens.size() == 0) {\n mQueryString = null;\n }\n }\n\n // Now perform the search. If the queryString is null, then the search reduces\n // to a dump of all contacts\n if ( mQueryString == null) {\n // The search algorithm is designed to work without search criteria (reduction to\n // entire list dumped). However we need at least one query token to enter the main\n // search loop.\n sanitizedQueryTokens.add(\"\");\n }\n\n StringBuilder concatListMatches = new StringBuilder();\n int numMatches = 0;\n\n while (cursor.moveToNext()) {\n String currentName = cursor.getString(nameIndex);\n\n if (currentName != null && !currentName.isEmpty()) {\n // If we are not actually performing a search, we still need to enter this loop\n // once (hence why we added a blank term above).\n for (String currentString : sanitizedQueryTokens) {\n // Add this contact to the list if we are either not performing a search\n // or if the current search criteria (token) matches\n if (mQueryString == null || currentName.toLowerCase().contains(\n currentString.toLowerCase())) {\n\n concatListMatches.append(currentName).append(\"\\n\");\n\n // If this contact has phone number(s), display them\n if (cursor.getInt(hasNumberIndex) > 0) {\n // grab the number(s) from the phat cache\n List<Pair<String, Integer>> phNums;\n if ((phNums = numberCache.get(cursor.getInt(idIndex))) != null) {\n // Pair<Phone Number, Type of Number>\n for (Pair<String, Integer> phNum : phNums) {\n concatListMatches.append(\"\\t\").append(phNum.first);\n switch(phNum.second) {\n case ContactsContract.CommonDataKinds.Phone.TYPE_HOME:\n concatListMatches.append(\" [HOME]\");\n break;\n case ContactsContract.CommonDataKinds.Phone.TYPE_MOBILE:\n concatListMatches.append(\" [MOBILE]\");\n break;\n case ContactsContract.CommonDataKinds.Phone.TYPE_WORK:\n concatListMatches.append(\" [WORK]\");\n break;\n }\n concatListMatches.append(\"\\n\");\n }\n } else {\n // This should not happen. Means that there is a contact in which a\n // phone number is associated but yet no such number actually can\n // be found in the DB\n concatList.append(\"\\t<Phone number referenced, but not found>\\n\");\n }\n }\n\n ++numMatches;\n break;\n }\n }\n }\n }\n concatList.append(numMatches).append(\" Contacts Found\\n\\n\").append(concatListMatches);\n\n Log.d(\"populate contact list \",\"str \"+concatList.toString());\n return concatList.toString();\n }", "public static void editContact() {\n System.out.println(\"Enter first name: \");\n String firstName = sc.nextLine();\n for (int i = 0; i < list.size(); i++) {\n if (list.get(i).getFirstName().equalsIgnoreCase(firstName)) {\n list.remove(i);\n addContact();\n } else {\n System.out.println(\"No data found in Address Book\");\n }\n }\n }", "public void getCountByCityByState(AddressBookDict addressBook) {\n\t\tlog.info(\"Enter the address book name whose contacts you want to see in sorted order by zip code\");\n\t\tString addressBookName = obj.next();\n\t\tList<PersonInfo> ContactList = addressBook.getContactList(addressBookName);\n\t\tlog.info(\"Enter the city name\");\n\t\tString cityName = obj.next();\n\t\tLong personByCity = ContactList.stream().filter(PersonInfo -> PersonInfo.getCity().equals(cityName)).count();\n\t\tlog.info(\"No of person in same city : \" + personByCity);\n\t\tlog.info(\"Enter the state name\");\n\t\tString stateName = obj.next();\n\t\tLong personByState = ContactList.stream().filter(PersonInfo -> PersonInfo.getState().equals(stateName)).count();\n\t\tlog.info(\"No of person in same state : \" + personByState);\n\t}", "public void populateContactsTable() {\n Contact contact1 = createContactFromFile(\"DummyContact1.json\");\n Contact contact2 = createContactFromFile(\"DummyContact2.json\");\n contacts = new ArrayList<>();\n contacts.add(contact1);\n contacts.add(contact2);\n\n contactService.postContact(contact1);\n contactService.postContact(contact2);\n }", "private void getContactDataBefore() {\n int i = 0;\n List<String> list = new ArrayList<>();\n\n Cursor c1 = getContentResolver()\n .query(ContactsContract.Contacts.CONTENT_URI, null, null, null, null);\n\n if ((c1 != null) && c1.moveToFirst()) {\n\n // add contact id's to the mIDs list\n do {\n String id = c1.getString(c1.getColumnIndexOrThrow(ContactsContract.Contacts._ID));\n String name = c1.getString(c1.getColumnIndexOrThrow(ContactsContract.Contacts.DISPLAY_NAME));\n\n // query all contact numbers corresponding to current id\n Cursor c2 = getContentResolver()\n .query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI,\n new String[]{ContactsContract.CommonDataKinds.Phone.NUMBER},\n ContactsContract.CommonDataKinds.Phone.CONTACT_ID + \"=?\",\n new String[]{id}, null);\n\n if (c2 != null && c2.moveToFirst()) {\n // Log.d(\"DEBUG\",\"name =\" + name);\n list = new ArrayList<>();\n\n if (idsHash.containsKey(name)) {\n list = idsHash.get(name);\n } else {\n mIDs.add(id);\n mNames.add(name);\n mNumbers.add(c2.getString(c2\n .getColumnIndexOrThrow(ContactsContract.CommonDataKinds.Phone.NUMBER)));\n }\n\n list.add(id);\n idsHash.put(name, list);\n\n c2.close();\n } else {\n c2.close();\n }\n\n i++;\n } while (c1.moveToNext() && i < c1.getCount());\n\n c1.close();\n }\n }", "public List<Contact> getAllContacts();", "public interface MultipleAddressBookService extends AddressBookService {\n\tAddressBook addContact(String addressBookName, String name, String phoneNumber);\n\tboolean removeContact(String addressBookName, String contactName);\n\tvoid printUniqueContacts();\n\tvoid printContacts(String addressBookName);\n\tContact getContact(String addressBookName, String contactName);\n}", "int getContactAddressCount();", "public static void main(String[] args) throws IOException {\n\t\tScanner sc=new Scanner(System.in);\n\t\tMap<String,AddressBook> multipleAddressBook = new HashMap<String, AddressBook>(); //dictionary for mapping different address book with key \n\t\tAddressBook address_book=new AddressBook();\t\t\t\t\t//first address book object\n\t\t\n\t\tString n=\"\";\n\t\tString k=\"AddressBook1\";\n\t\tmultipleAddressBook.put(k, address_book);\t\t\t\t\t\t\t//put the first address book into dictionary\n\t\t\n\t\twhile(true)\n\t\t{\n\t\t\tSystem.out.println(\"Enter your choice\\n1.add contact\\n2.edit contact\\n3.Delete contact\\n4.Display contact\\n5.Display addressbook\\n6.Create another address book\\n7.Search for a city or state\\n8.View persons by city or state\\n9.Sort by Name, City, State or zip\\n10.Read addressbook from the file\\n11.write into the file\\n12.exit\"); //options for different actions\n\t\t\tint choice=sc.nextInt();\n\t\t\tsc.nextLine();\n\t\t\tif(choice==6) //to create a new address book\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Enter the name of the addressbook\");\n\t\t\t\tn=sc.next();\n\t\t\t\tAddressBook object1=new AddressBook(); // a new address book object is created \n\t\t\t\tmultipleAddressBook.put(n, object1);\n\t\t\t\t\t\n\t\t\t}\n\t\t\telse if(choice==7)\n\t\t\t{\n\t\t\t System.out.println(\"Enter the name of city or state\");\n\t\t\t String place=sc.next();\n\t\t\t for(Map.Entry<String, AddressBook> entry : multipleAddressBook.entrySet())\n\t\t\t {\n\t\t\t AddressBook tempObject=entry.getValue();\n\t\t\t tempObject.search(place);\n\t\t\t } \n\t\t\t}\n\t\t\telse if(choice==8)\n\t\t\t{\n\t\t\t System.out.println(\"Enter the number 1 or 2\\n\"\n\t\t\t \t\t+ \"1.city\\n\"\n\t\t\t \t\t+ \"2.state\");\n\t\t\t int ch=sc.nextInt();\n\t\t\t if(ch == 1) {\n\t\t\t \tfor(Map.Entry<String, AddressBook> mapEntry : multipleAddressBook.entrySet()) {\n\t\t\t \t\tAddressBook tempObject = mapEntry.getValue();\n\t\t\t \t\tSystem.out.println(\"AddressBook name: \"+mapEntry.getKey()+\"\\npersons by cities are:\");\n\t\t\t \t\ttempObject.viewByCity();\n\t\t\t \t}\n\t\t\t }\n\t\t\t else{\n\t\t\t \tfor(Map.Entry<String, AddressBook> mapEntry : multipleAddressBook.entrySet()) {\n\t\t\t \t\tAddressBook tempObject = mapEntry.getValue();\n\t\t\t \t\tSystem.out.println(\"AddressBook: \"+mapEntry.getKey()+\"\\npersons by states are:\");\n\t\t\t \t\ttempObject.viewByState();\n\t\t\t \t}\n\t\t\t }\n\t\t\t}\n\t\t\telse if(choice==9)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Enter the number to select the sort by option\\n\"\n\t\t\t \t\t+ \"1.Name\\n\"\n\t\t\t \t\t+ \"2.City\\n\"\n\t\t\t \t\t+ \"3.State\\n\"\n\t\t\t \t\t+ \"4.zip\");\n\t\t\t int ch=sc.nextInt();\n\t\t\t for(Map.Entry<String, AddressBook> entry : multipleAddressBook.entrySet())\n\t\t\t {\n\t\t\t AddressBook tempObject=entry.getValue();\n\t\t\t System.out.println(entry.getKey()+\" details:\");\n\t\t\t tempObject.sortByNameCityStateZip(ch);\n\t\t\t System.out.println(\"-----------------------------------------------------------------\");\n\t\t\t } \n\t\t\t}\n\t\t\telse if(choice==10) {\n\t\t\t\tSystem.out.println(\"Enter the addressbook name:\");\n\t\t\t\tString addressbookName= sc.nextLine();\n\t\t\t\tAddressBook addressbookReadFile = multipleAddressBook.get(addressbookName);\n\t\t\t\taddressbookReadFile.readFromFile(addressbookName);\n\t\t\t}\n\t\t\telse if(choice==11) {\n\t\t\t\tSystem.out.println(\"Enter the addressbook name:\");\n\t\t\t\tString addressbookName= sc.next();\n\t\t\t\tAddressBook addressbookWriteFile = multipleAddressBook.get(addressbookName);\n\t\t\t\taddressbookWriteFile.writeIntoFile(addressbookName);\n\t\t\t}\n\t\t\telse if(choice==12)\t\t\t\t//to exist from the program\n\t\t\t\tSystem.exit(0);\n\t\t\telse\n\t\t\t{\n\t\t\t\ttry{\n\t\t\t\t\tSystem.out.println(\"Enter the addressbook name!!\");\n\t\t\t\t\tn=sc.next();\n\t\t\t\t\tchoice(choice,multipleAddressBook.get(n)); //to perform required operation on desired address book\n\t\t\t\t}catch(Exception e) {\n\t\t\t\t\tSystem.out.println(\"AddressBook not found!!\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\t\t\n\t\t}\n\t}", "public boolean updateContactList(String contactId, String userId){\n Organizer og = (Organizer)idToPerson.get(userId);\n if(!og.getContactList().contains(contactId)) { // checking if they are not currently a contact\n og.addContact(contactId);\n return true;\n }\n return false;\n }", "private void checkDuplicateEntry(Long userId, String email, Boolean isBeneficiary, Boolean isFiduciary) {\n\t\tList<Contact> contactOpt = contactRepository.findByUserIdAndEmailAndIsFiduciaryAndIsBeneficiaryAndDeletedFalse(\n\t\t\t\tuserId, email, isBeneficiary, isFiduciary);\n\t\tif (!contactOpt.isEmpty()) {\n\t\t\tthrow DataAlreadyExistException.of(MessageConstant.EMAIL_ALREADY_EXISTED);\n\t\t}\n\t}", "@Test\n public void testContactModification() throws IOException {\n Contacts before = app.db().contacts();\n // next() return sly4ainyi element, not last, not first\n NameFirstMiddle modifiedContact = before.iterator().next();\n //int index = before.size() -1;\n NameFirstMiddle contact = new NameFirstMiddle().\n withId(modifiedContact.getId()).\n withFirstname(properties.getProperty(\"web.contactModifiedFirstName\")).\n withLastname(properties.getProperty(\"web.contactModifiedLastName\")).\n withEmail1(properties.getProperty(\"web.contactEmail1\")).\n withEmail2(properties.getProperty(\"web.contactEmail2\")).\n withEmail3(properties.getProperty(\"web.contactEmail3\")).\n withFullAddress(properties.getProperty(\"web.contactAddress1\")).\n withHomePhone(properties.getProperty(\"web.contactHomeTel\")).\n withWorkPhone(properties.getProperty(\"web.contactWorkTel\")).\n withMobilePhone(properties.getProperty(\"web.contactMobileTel\"));\n\n app.contact().modify(contact);\n Contacts after = app.db().contacts();\n assertEquals(after.size(),before.size() );\n assertThat(after, equalTo(\n before.without(modifiedContact).withAdded(contact)));\n verifyContactListInUi();\n //-no needs after assertThat:before.remove(modifiedContact);\n //-no needs after assertThat:before.add(contact);\n // ne-uporjado4en - massiv\n // uporjado4en - spisok\n // spicok -> mnogestvoб BUT HashSet contains only unique names aND remove duplicates names\n //-no needs after assertThat:assertEquals(new HashSet<Object>(before),new HashSet<Object>(after));\n //anonimous function: sort by Id - our choice\n // no need after modifiedContact\n //Comparator<? super NameFirstMiddle> byId = (g1, g2) -> Integer.compare(g1.getId(),g2.getId());\n //before.sort(byId);\n //after.sort(byId);\n //-no needs after assertThat:assertEquals(before,after);\n }", "public boolean checkContacts() \n\t{\n\t\tif (this.contacts.size() < 1) \n\t\t{\n\t\t\tSystem.out.printf(\"%nNo Contacts Stored%n\");\n\t\t\treturn false;\n\t\t} else \n\t\t{\n\t\t\treturn true;\n\t\t}\n\t}", "public Collection<Contact> getContacts();", "public static void main(String[] args) {\n ContactData contactDatas = new ContactData(\"Mohon\", \"456775439\");\r\n //System.out.println(contactDatas);\r\n\r\n ContactData contactDatas1 = new ContactData(\"shihab\", \"456775439\", \"[email protected]\");\r\n\r\n ContactList list = new ContactList();\r\n list.createContact(contactDatas);\r\n list.createContact(contactDatas1);\r\n System.out.println(list);\r\n\r\n ContactData search = list.searchContact(\"mohon\");\r\n if (search != null){\r\n System.out.println(search);\r\n } else {\r\n System.out.println(\"Contact not found\");\r\n }\r\n\r\n System.out.println(list.getTotalContact());\r\n }", "public void addContacts(List<Contact> contactList){\n for(Contact contact:contactList){\n addContact(contact);\n }\n }", "@Test\n public void Given_store_with_books_When_filtering_by_existing_author_Then_only_books_of_the_author_are_returned() {\n booksList.add(B1_A);\n booksList.add(B2_A);\n booksList.add(B3_B);\n\n when(dao.getBooks()).thenReturn(booksList);\n\n List<Book> booksFilteredByAuthor = store.getBooksByAuthor(B1_A.getAuthor());\n\n assertThat(booksFilteredByAuthor).containsExactlyInAnyOrder(B1_A, B2_A);\n }", "@Test\n public void testValidateDuplicateAccounts() {\n // Same account\n Long accountId = 123l;\n BankAccount bankAccountRequest = new BankAccountImpl();\n bankAccountRequest.setAccountId(accountId);\n Locale locale = Locale.getDefault();\n ErrorMessageResponse errorMessageResponse = new ErrorMessageResponse();\n List<BankAccount> bankAccountList = new ArrayList<>();\n // EMPTY LIST no duplicate accounts held\n BankHelper\n .validateDuplicateAccounts(bankAccountRequest, locale, errorMessageResponse, bankAccountList, account);\n assertFalse(errorMessageResponse.hasErrors());\n\n // ACCOUNT ONLY HELD BY CUSTOMER\n BankAccount bankAccount = new BankAccountImpl();\n bankAccount.setAccountId(accountId);\n bankAccount.setActivatedDate(new Date(new Date().getTime() - 1000));\n bankAccountList.add(bankAccount);\n\n bankAccount = new BankAccountImpl();\n bankAccount.setAccountId(accountId);\n bankAccount.setActivatedDate(new Date());\n bankAccountList.add(bankAccount);\n\n BankHelper\n .validateDuplicateAccounts(bankAccountRequest, locale, errorMessageResponse, bankAccountList, account);\n assertFalse(errorMessageResponse.hasErrors());\n\n }", "public static List<Person> getExamplePeople() {\n return Arrays.asList(\n new Person(\"1230\", \"John\", \"Smith\", LocalDate.of(1965, 1, 20), \"Some Street 3, Some City, Some Country\", \n Arrays.asList(\n new PersonContact(PersonContactType.PHONE, \"Home number\", \"+123 4567890\"),\n new PersonContact(PersonContactType.EMAIL, \"Personal e-mail\", \"[email protected]\")\n )\n ),\n new Person(\"1231\", \"Jack\", \"Tree\", LocalDate.of(1971, 3, 20), \"Some Street 9, Some City, Some Country\", \n Arrays.asList(\n new PersonContact(PersonContactType.MOBILE, \"Personal number\", \"+123 456789011\")\n )\n ),\n new Person(\"1232\", \"Mary\", \"Jones\", LocalDate.of(1980, 2, 20), \"Some Street 7, Some City, Some Country\", \n null\n ),\n new Person(\"1233\", \"Maria\", \"Johnson\", LocalDate.of(1991, 9, 12), \"Some Street 30, Some City, Some Country\", \n Arrays.asList(\n new PersonContact(PersonContactType.PHONE, \"Work number\", \"+123 4634563\")\n )\n ),\n new Person(\"1234\", \"Luke\", \"Miller\", LocalDate.of(1986, 12, 3), \"Some Street 87, Some City, Some Country\", \n Arrays.asList(\n new PersonContact(PersonContactType.PHONE, \"Home number\", \"+123 13433653\"),\n new PersonContact(PersonContactType.EMAIL, \"Personal e-mail\", \"[email protected]\"),\n new PersonContact(PersonContactType.MOBILE, \"Preferred contact\", \"+123 365346456\")\n )\n ),\n new Person(\"1235\", \"Michelle\", \"Smith\", LocalDate.of(1966, 6, 30), \"Some Street 3, Some City, Some Country\", \n Arrays.asList(\n new PersonContact(PersonContactType.PHONE, \"Home number\", \"+123 4567890\"),\n new PersonContact(PersonContactType.EMAIL, \"Personal e-mail\", \"[email protected]\")\n )\n )\n );\n }", "public void addContact() {\n Contacts contacts = new Contacts();\n System.out.println(\"Enter first name\");\n contacts.setFirstName(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter last name\");\n contacts.setLastName(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter address\");\n contacts.setAddress(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter city\");\n contacts.setCity(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter state\");\n contacts.setState(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter email\");\n contacts.setEmail(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter zip\");\n contacts.setZip(scannerForAddressBook.scannerProvider().nextInt());\n System.out.println(\"Enter phone number\");\n contacts.setPhoneNumber(scannerForAddressBook.scannerProvider().nextLine());\n contactList.add(contacts);\n }", "@Test\n\tpublic void testGetEmailResidentsCityGiven_whenCityIsCulver_thenGetAllEmailsOfResidentsCulverCity() {\n\t\t// GIVEN\n\t\tString city = \"Culver\";\n\t\twhen(personDAOMock.getPersons()).thenReturn(mockList);\n\t\t// WHEN\n\t\tList<String> listEmailResidentsCityCulver = personServiceTest.getEmailResidents(city);\n\t\t// THEN\n\t\t// the list obtained contain 4 elements\n\t\tverify(personDAOMock, times(1)).getPersons();\n\t\tassertEquals(4, listEmailResidentsCityCulver.size());\n\t\tassertEquals(\"[email protected]\", listEmailResidentsCityCulver.get(0));\n\t\tassertEquals(\"[email protected]\", listEmailResidentsCityCulver.get(3));\n\t}", "public boolean add(Contact contact) {\n /* first we determine if the contact is already present */\n boolean alreadyPresent = false;\n for (Contact c : contacts) {\n if (c.getContactID().equals(contact.getContactID())) {\n alreadyPresent = true;\n }\n }\n /* if the contact is not present then we add it, and return true */\n if (!alreadyPresent) {\n contacts.add(contact);\n System.out.println(\"Contact Added Successfully!\");\n return true;\n } else {\n System.out.println(\"Contact already present\");\n return false;\n }\n }", "protected void createCompaniesContacts() {\n\n log.info(\"CompaniesContactsBean => method : createCompaniesContacts()\");\n\n EntityManager em = EMF.getEM();\n EntityTransaction tx = null;\n\n try {\n tx = em.getTransaction();\n tx.begin();\n for (CompaniesEntity c : selectedCompaniesContacts) {\n CompaniesContactsEntity companiesContactsEntity1 = new CompaniesContactsEntity();\n companiesContactsEntity1.setContactsByIdContacts(contactsBean.getContactsEntity());\n companiesContactsEntity1.setCompaniesByIdCompanies(c);\n companiesContactsDao.update(em, companiesContactsEntity1);\n }\n tx.commit();\n log.info(\"Persist ok\");\n } catch (Exception ex) {\n if (tx != null && tx.isActive()) tx.rollback();\n log.info(\"Persist failed\");\n } finally {\n em.clear();\n em.clear();\n }\n\n }", "public Addressbook[] getAddressbooks() throws RemoteException;", "public void updateContact() {\r\n\t\tSystem.out.println(\"enter the name of the contact whose details are to be updated\");\r\n\t\tString name = scanner.nextLine();\r\n\t\tContact existing = service.getContact(name); //get the existing contact details from service<-dao\r\n\t\t\r\n\t\t\r\n\t\tSystem.out.println(\"1. keep the same address\\n2. update the address\");\r\n\t\tint choice = Integer.parseInt(scanner.nextLine());\r\n\t\tString address;\r\n\t\tif(choice==1) {\r\n\t\t\taddress=existing.getAddress();\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"enter new address\");\r\n\t\t\taddress = scanner.nextLine();\r\n\t\t}\r\n\t\t\r\n\t\t//mobile number updation\r\n\t\tSystem.out.println(\"1. keep the same mobile number(s)\\n2. add new mobile number\\n3.remove existing added number\");\r\n\t\tchoice = Integer.parseInt(scanner.nextLine());\r\n\t\tString mobileNumber[];\r\n\t\t\r\n\t\t//if the user wants to keep same mobile number(s)\r\n\t\tif(choice==1) {\r\n\t\t\tmobileNumber=existing.getMobileNumber();\r\n\t\t}\r\n\t\t\r\n\t\t//if the user wants to add a new mobile number to already existing \r\n\t\telse if(choice==2) {\r\n\t\t\tmobileNumber=existing.getMobileNumber();\r\n\t\t\tList<String> numberList = new ArrayList<>(Arrays.asList(mobileNumber));\r\n\t\t\tSystem.out.println(\"enter new mobile number\");\r\n\t\t\tString newNumber = scanner.nextLine();\r\n\t\t\tif(numberList.contains(newNumber)) {\r\n\t\t\t\tSystem.out.println(\"the number is already a part of this contact\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tnumberList.add(newNumber);\r\n\t\t\t}\r\n\t\t\tmobileNumber=numberList.toArray(new String[0]);\r\n\t\t}\r\n\t\t\r\n\t\t//if the user wants to remove some number from existing numbers\r\n\t\telse {\r\n\t\t\tmobileNumber=existing.getMobileNumber();\r\n\t\t\tList<String> numberList = new ArrayList<>(Arrays.asList(mobileNumber));\r\n\t\t\tSystem.out.println(\"enter mobile number to remove\");\r\n\t\t\tString removingNumber = scanner.nextLine();\r\n\t\t\tif(!numberList.contains(removingNumber)) {\r\n\t\t\t\tSystem.out.println(\"no such mobile number exist\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tnumberList.remove(removingNumber);\r\n\t\t\t}\r\n\t\t\tmobileNumber=numberList.toArray(new String[0]);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//updating the profile picture\r\n\t\tSystem.out.println(\"1. keep the same image\\n2. update the image\");\r\n\t\tchoice = Integer.parseInt(scanner.nextLine());\r\n\t\tString imageReference;\r\n\t\tif(choice==1) {\r\n\t\t\timageReference=existing.getImageReference();\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"enter new image path\");\r\n\t\t\timageReference = scanner.nextLine();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//updating the date of birth\r\n\t\tSystem.out.println(\"1. keep the same date of birth\\n2. update the date of birth\");\r\n\t\tchoice = Integer.parseInt(scanner.nextLine());\r\n\t\tLocalDate dateOfBirth;\r\n\t\tif(choice==1) {\r\n\t\t\tdateOfBirth=existing.getDateOfBirth();\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"enter new date of birth\");\r\n\t\t\tdateOfBirth = LocalDate.parse(scanner.nextLine());\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//updating the email - same logic as that of updating mobile number\r\n\t\tSystem.out.println(\"1. keep the same email Id(s)\\n2. add new email Id\\n3.remove existing email Id\");\r\n\t\tchoice = Integer.parseInt(scanner.nextLine());\r\n\t\tString email[];\r\n\t\tif(choice==1) {\r\n\t\t\temail=existing.getEmail();\r\n\t\t}\r\n\t\telse if(choice==2) {\r\n\t\t\temail=existing.getEmail();\r\n\t\t\tList<String> emailList = new ArrayList<>(Arrays.asList(email));\r\n\t\t\tSystem.out.println(\"enter new email Id\");\r\n\t\t\tString newEmail = scanner.nextLine();\r\n\t\t\tif(emailList.contains(newEmail)) {\r\n\t\t\t\tSystem.out.println(\"the email is already a part of this contact\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\temailList.add(newEmail);\r\n\t\t\t}\r\n\t\t\temail=emailList.toArray(new String[0]);\r\n\t\t}\r\n\t\telse {\r\n\t\t\temail=existing.getEmail();\r\n\t\t\tList<String> emailList = new ArrayList<>(Arrays.asList(email));\r\n\t\t\tSystem.out.println(\"enter email to remove\");\r\n\t\t\tString removingEmail = scanner.nextLine();\r\n\t\t\tif(!emailList.contains(removingEmail)) {\r\n\t\t\t\tSystem.out.println(\"no such email exist\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\temailList.remove(removingEmail);\r\n\t\t\t}\r\n\t\t\temail=emailList.toArray(new String[0]);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t//updating the group id \r\n\t\tSystem.out.println(\"1. keep the same group Id\\n2. update the group Id\");\r\n\t\tchoice = Integer.parseInt(scanner.nextLine());\r\n\t\tint groupId;\r\n\t\tif(choice==1) {\r\n\t\t\tgroupId = existing.getGroupId();\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"enter new group Id\");\r\n\t\t\tshowGroups(service); \t\t\t\t\t//this is static method which shows the available groups\r\n\t\t\tgroupId = Integer.parseInt(scanner.nextLine());\r\n\t\t}\r\n\t\t\r\n\t\t//setting up the contact object \r\n\t\tContact updated = new Contact(name, address, mobileNumber, imageReference, dateOfBirth, email, groupId);\r\n\t\t\r\n\t\t//calling the service update method which calls the DAO to update the contact\r\n\t\tint rowsEffected = service.updateExistingContact(existing, updated);\r\n\t\tSystem.out.println(rowsEffected+\" row(s) updated\");\r\n\t\t\r\n\t}", "public void addContacts() {\r\n\t\tList<String> numberList= new ArrayList<String>();\r\n\t\tList<String> emailList= new ArrayList<String>();\r\n\t\tSystem.out.println(\"enter the contact name \");\r\n\t\tString name = scanner.nextLine();\r\n\t\t\r\n\t\tSystem.out.println(\"enter the contact address \");\r\n\t\tString address = scanner.nextLine();\r\n\t\t\r\n\t\tSystem.out.println(\"enter the contact mobile Number \");\r\n\t\tString number = scanner.nextLine();\r\n\t\tnumberList.add(number);\r\n\t\t\r\n//allowing user to add one or more contact numbers\r\n\t\tString choice=null;\r\n\t\tdo {\r\n\t\t\tSystem.out.println(\"Do you want to add more Number?\");\r\n\t\t\tSystem.out.println(\"yes or no?\");\r\n\t\t\tchoice=scanner.nextLine();\r\n\t\t\tif(choice.equalsIgnoreCase(\"yes\")) {\r\n\t\t\t\tSystem.out.println(\"enter the mobile number\");\r\n\t\t\t\tnumber = scanner.nextLine();\r\n\t\t\t\tnumberList.add(number);\r\n\t\t\t}\r\n\t\t}while(choice.equalsIgnoreCase(\"yes\"));\r\n\t\t\r\n\t\tString[] mobileNumber = numberList.toArray(new String[0]);\r\n\t\t\r\n\t\t\r\n\r\n\t\tSystem.out.println(\"choose the profile picture\");\r\n\t\tString imageReference = scanner.nextLine();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tSystem.out.println(\"enter your date of birth as yyyy-MM-dd\");\r\n\t\tString strDateOfBirth = scanner.nextLine();\r\n\t\tLocalDate dateOfBirth = LocalDate.parse(strDateOfBirth);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tSystem.out.println(\"enter the contact email Id \");\r\n\t\tString email = scanner.nextLine();\r\n\t\temailList.add(email);\r\n\t\t\r\n\t\t\r\n//allowing user to add one or more email ids\r\n\t\tchoice=null;\r\n\t\tdo {\r\n\t\t\tSystem.out.println(\"Do you want to add more email Id?\");\r\n\t\t\tSystem.out.println(\"yes or no?\");\r\n\t\t\tchoice=scanner.nextLine();\r\n\t\t\tif(choice.equalsIgnoreCase(\"yes\")) {\r\n\t\t\t\tSystem.out.println(\"enter the email Id\");\r\n\t\t\t\temail = scanner.nextLine();\r\n\t\t\t\temailList.add(email);\r\n\t\t\t}\r\n\t\t}while(choice.equalsIgnoreCase(\"yes\"));\r\n\t\t\r\n\t\tString emailArray[]= emailList.toArray(new String[0]);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tSystem.out.println(\"select the group you want to add the contact to\");\r\n\t\tshowGroups(service);\r\n\t\tint groupId = Integer.parseInt(scanner.nextLine());\r\n\t\t\r\n\t\t//setting up the contact object with the user defined details\r\n\t\tContact contact = new Contact(name, address, mobileNumber, imageReference, dateOfBirth, emailArray, groupId); \r\n\t\t\r\n\t\t//calling the addContact service which in turn calls add method of DAO\r\n\t\tint rowsAdded = service.addContact(contact);\r\n\t\tSystem.out.println(rowsAdded+\" rows added \");\r\n\t}", "@Test\n public void TC3(){\n TryCloudUtil.clickContactsModule(driver);\n\n // 3.Verify the contact names are in the list (Pre-condition: there should be at least 2 contact names are displayed On the contact list)\n\n //Creating 2 contacts\n TryCloudUtil.CreatingNewContact(driver);\n WebElement company=driver.findElement(By.xpath(\"//input[@id='contact-org']\"));\n company.sendKeys(\"Test1\");\n BrowserUtils.wait(5);\n\n TryCloudUtil.CreatingNewContact(driver);\n company.sendKeys(\"Test2\");\n BrowserUtils.wait(5);\n\n Assert.assertTrue(driver.getPageSource().contains(\"Test1\"));\n Assert.assertTrue(driver.getPageSource().contains(\"Test2\"));\n\n }", "@Test\n\tpublic void requestAccountsForCustomer12212_checkListOfAccountsIDs_expectSize3() {\n\n\t\tgiven().\n\t\t\tspec(requestSpec).\n\t\twhen().\n\t\tthen();\n\t}", "public void addMultipleBook() {\n Set set = new TreeSet();\n System.out.println(\" yours choice how many addressbook you want to create it:--\");\n int number = scanner.nextInt();\n\n for (int index = 1; index <= number; index++) {\n System.out.println(\"give name to your dictionary:--\");\n String name = scanner.next();\n set.add(name);\n }\n System.out.println(set);\n }", "public static void addContact() {\n boolean isBadEmail = true;\n boolean keepLooping = true;\n myScanner.nextLine();\n System.out.println(\"Input contact first name: \\t\");\n String firstName = myScanner.nextLine();\n firstName = firstName.substring(0,1).toUpperCase() + firstName.substring(1).toLowerCase();\n System.out.println(\"Input contact last name: \\t\");\n String lastName = myScanner.nextLine();\n lastName = lastName.substring(0,1).toUpperCase() + lastName.substring(1).toLowerCase();\n String email = \"\";\n do {\n System.out.println(\"Input contact email: \\t\");\n email = myScanner.nextLine();\n if(email.contains(\"@\") && email.contains(\".\")) {\n isBadEmail = false;\n } else {\n System.out.println(\"Please input a proper email address.\");\n }\n } while (isBadEmail);\n String phone = \"\";\n do {\n System.out.println(\"Input contact ten digit phone number without any special characters: \\t\");\n try {\n long phoneNumber = Long.valueOf(myScanner.next());\n if(Long.toString(phoneNumber).length() == 10) {\n keepLooping = false;\n phone = Long.toString(phoneNumber);\n }\n } catch(Exception e) {\n System.out.println(\"Invalid input.\");\n }\n } while(keepLooping);\n Contact newContact = new Contact(firstName, lastName, phone, email);\n contactList.add(newContact.toContactString());\n System.out.println(\"You added: \" + newContact.toContactString());\n writeFile();\n }", "public void populateAccountsTable() {\n Account account1 = createAccountFromFile(\"DummyAccount1.json\");\n Account account2 = createAccountFromFile(\"DummyAccount2.json\");\n\n // Account 1 will have both contacts associated to it\n account1.setContactIds(Set.of(contacts.get(0).getUid(), contacts.get(1).getUid()));\n\n // Account 2 will only have 1 contact associated to it\n account2.setContactIds(Set.of(contacts.get(0).getUid()));\n\n accountService.postAccount(account1);\n accountService.postAccount(account2);\n }", "private boolean isContactExist(String name) {\n boolean existance;\n existance = contactList.stream()\n .anyMatch(personElement ->\n personElement.getFirstName().equals(name) ||\n personElement.getLastName().equals(name));\n return existance;\n }", "java.util.List<kr.pik.message.Profile.ProfileMessage.ContactAddress> \n getContactAddressList();", "@Test\n\tpublic void requestAccountsForCustomer12212_checkListOfAccountsIDs_expectContains12345() {\n\n\t\tgiven().\n\t\t\tspec(requestSpec).\n\t\twhen().\n\t\tthen();\n\t}", "com.ubtrobot.phone.PhoneCall.Contact getContactList(int index);", "com.ubtrobot.phone.PhoneCall.Contact getContactList(int index);", "com.ubtrobot.phone.PhoneCall.Contact getContactList(int index);", "com.ubtrobot.phone.PhoneCall.Contact getContactList(int index);", "@Test\n public void testUniqueRandomRuids() {\n\n ServiceWriteRequestBuilder<Void> builder = ServiceWriteRequestBuilder.newPostRequest(ServiceName.CONTACT, \"/contact\", null, Void.class);\n\n String ruid1 = builder.build().getRuid();\n String ruid2 = builder.build().getRuid();\n\n assertThat(ruid1, is(notNullValue()));\n assertThat(ruid2, is(notNullValue()));\n assertThat(ruid1, is(not(ruid2)));\n\n\n }", "@Test\n\tpublic void testFindCustomerByGuidWithMoreThanOneReturn() {\n\t\tfinal List<Customer> customers = new ArrayList<Customer>();\n\t\tCustomer customer = new CustomerImpl();\n\t\tcustomers.add(customer);\n\t\tcustomers.add(customer);\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tallowing(getMockPersistenceEngine()).retrieveByNamedQuery(with(any(String.class)), with(any(Object[].class)));\n\t\t\t\twill(returnValue(customers));\n\t\t\t}\n\t\t});\n\t\ttry {\n\t\t\timportGuidHelper.findCustomerByGuid(SOME_GUID);\n\t\t\tfail(EP_SERVICE_EXCEPTION_EXPECTED);\n\t\t} catch (EpServiceException e) {\n\t\t\tassertNotNull(e);\n\t\t}\n\t}", "public CallSpec<List<XingUser>, HttpError> getYourContacts() {\n return getContacts(ME);\n }", "@Override\n public void onClick(View v) {\n String name = nameEditText.getText().toString();\n String phoneNumber = phoneEditText.getText().toString();\n\n //create a Contact Object to add\n Contact contact1 = new Contact(name, phoneNumber);\n\n //add contact1 object to database\n int temp = 0;\n for (Contact contact : contacts) {\n if (contact.getName().equals(name) && contact.getPhoneNumber().equals(phoneNumber)){\n Toast.makeText(MainActivity.this, \"This contact does exists\", Toast.LENGTH_SHORT).show();\n temp = 1;\n break;\n }\n if (contact.getName().equals(name)) {\n replaceContact(contact1);\n temp = 1;\n break;\n }\n }\n if (temp == 0) {\n addContact(contact1);\n }\n }", "public interface AddressFinderService {\n Set<Address> findAddresses(String postcode);\n}", "List<Person> persons(final PersonStringAware person,final AddressStringAware address, final Contact contact, final Circle distance, final Paging paging);", "public boolean checkContactList(List<String> contacts) {\n\t\tboolean flag = true;\n\t\tList<String> contactList = currentUser.getContacts().stream().map(Contacto::getName)\n\t\t\t\t.collect(Collectors.toList());\n\t\tfor (String name : contacts)\n\t\t\tif (contactList.contains(name))\n\t\t\t\tflag = false;\n\t\treturn flag;\n\t}", "@Test\n public void resetData_withDuplicatePatients_throwsDuplicatePersonException() {\n Patient editedAlice = new PatientBuilder(ALICE).withAddress(VALID_ADDRESS_BOB).withTags(VALID_TAG_HUSBAND)\n .build();\n List<Patient> newPatients = Arrays.asList(ALICE, editedAlice);\n AddressBookStub<Patient> newData = new AddressBookStub<>(newPatients);\n\n assertThrows(DuplicatePersonException.class, () -> patientAddressBook.resetData(newData));\n }", "public AddressBookExample() {\r\n oredCriteria = new ArrayList<Criteria>();\r\n }", "@GetMapping(\"/contacts\")\r\n\tCollectionModel<EntityModel<Contact>> all() {\r\n\t\t//Use map to call toModel on each Contact resource\r\n\t List<EntityModel<Contact>> contacts = repo.findAll().stream()\r\n\t .map(assembler::toModel)\r\n\t .collect(Collectors.toList());\r\n\t return CollectionModel.of(contacts, linkTo(methodOn(ContactController.class).all()).withSelfRel());\r\n\t}", "public interface AddressbookService extends Service, Addressbook\n{\n /**\n * Liefert die Liste aller gefundenen Adressbuecher.\n * @return Liste der Adressbuecher.\n * Die Funktion liefert niemals <code>null</code> und auch\n * nie ein leeres Array. Denn da <code>AddressbookService</code>\n * selbst ebenfalls das <code>Addressbook</code>-Interface\n * implementiert, wird mindestens dieses zurueckgeliefert.\n * Allerdings wuerde es in diesem Fall keine Adressen finden,\n * da ja keine tatsaechlichen \"Backend\"-Adressbuecher existieren.\n * Zumindest das Hibiscus-eigene Adressbuch sollte aber immer\n * enthalten sein. \n * @throws RemoteException\n */\n public Addressbook[] getAddressbooks() throws RemoteException;\n \n /**\n * Liefert true, wenn neben dem Hibiscus-eigenen Adressbuch noch weitere gefunden wurden.\n * In diesem Fall koennte dem Benutzer z.Bsp. ein Auswahl-Dialog\n * angezeigt werden, in dem er das gewuenschte Adressbuch auswaehlen kann.\n * @return true, wenn weitere Adressbuecher existieren.\n * @throws RemoteException\n */\n public boolean hasExternalAddressbooks() throws RemoteException;\n}", "public AddressBookTest() {\n AddressBook.getAddressBook();\n AddressBook.add(new AddressEntry());\n AddressBook.add(new AddressEntry());\n\n AddressBook.add(new AddressEntry(\"hello\", \"goodbye\", \"123 st\",\n \"yellow\", \"WA\", 12345, \"123456\", \"[email protected]\"));\n\n AddressBook.add(new AddressEntry(\"yes\", \"no\", \"987 way\",\n \"blue\", \"MA\", 98765, \"0987654\", \"[email protected]\"));\n\n System.out.println(\"TestBook:\");\n AddressBook.list();\n\n System.out.println(AddressBook.find(\"goodbye\"));\n System.out.println(AddressBook.find(\"n\"));\n }", "public void modify(AddressBookDict addressBook) {\n\t\tlog.info(\"Enter the address book name whose contact you want to edit\");\n\t\tString addressBookName = obj.next();\n\t\tlog.info(\"Enter the name whose contact you want to edit\");\n\t\tString name = obj.next();\n\t\tPersonInfo p = addressBook.getContactByName(addressBookName, name);\n\t\tif (p == null) {\n\t\t\tlog.info(\"No such contact exists\");\n\t\t} else {\n\t\t\twhile (true) {\n\t\t\t\tlog.info(\n\t\t\t\t\t\t\"1. First name\\n 2.Last name\\n 3.Address\\n 4. City\\n 5. State\\n 6. Zip\\n 7. Phone number\\n 8.Email\\n 0. Exit\");\n\t\t\t\tlog.info(\"Enter the info to be modified\");\n\t\t\t\tint info_name = obj.nextInt();\n\t\t\t\tswitch (info_name) {\n\t\t\t\tcase 1:\n\t\t\t\t\tlog.info(\"Enter new First Name\");\n\t\t\t\t\tp.setFirst_name(obj.next());\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tlog.info(\"Enter new Last Name\");\n\t\t\t\t\tp.setLast_name(obj.next());\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tlog.info(\"Enter new Address\");\n\t\t\t\t\tp.setAddress(obj.next());\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\tlog.info(\"Enter new City\");\n\t\t\t\t\tp.setCity(obj.next());\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\t\tlog.info(\"Enter new State\");\n\t\t\t\t\tp.setState(obj.next());\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\t\tlog.info(\"Enter new Zip Code\");\n\t\t\t\t\tp.setZip(obj.next());\n\t\t\t\t\tbreak;\n\t\t\t\tcase 7:\n\t\t\t\t\tlog.info(\"Enter new Phone Number\");\n\t\t\t\t\tp.setPhno(obj.next());\n\t\t\t\t\tbreak;\n\t\t\t\tcase 8:\n\t\t\t\t\tlog.info(\"Enter new Email\");\n\t\t\t\t\tp.setEmail(obj.next());\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (info_name == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void readAddressBook(File file) {\r\n try {\r\n // intializes reader in order to count the number of contacts\r\n FileReader frLineCount = new FileReader(file);\r\n BufferedReader brLineCount = new BufferedReader(frLineCount);\r\n // initializes variable to count the number of lines\r\n int lines = 0;\r\n // counts total lines in address book\r\n while (brLineCount.readLine() != null)\r\n lines++;\r\n brLineCount.close();\r\n // calculates total contacts\r\n int totalContacts = lines / 5;\r\n // initializes reader in order to add the contacts to the array\r\n FileReader frLineRead = new FileReader(file);\r\n BufferedReader brLineRead = new BufferedReader(frLineRead);\r\n // inserts each AddressEntry into the array\r\n for (int i = totalContacts; i > 0; i--) {// for statment to add the exact number of contacts\r\n this.addEntry(brLineRead.readLine(), brLineRead.readLine(), brLineRead.readLine(),\r\n brLineRead.readLine(), brLineRead.readLine());\r\n }\r\n brLineRead.close();\r\n } catch (IOException e) {\r\n System.out.println(e.getMessage());\r\n }\r\n }", "@Test\r\n\tvoid testContactServiceAddDuplicateContact() {\r\n\t\tAssertions.assertThrows(IllegalArgumentException.class, () -> {\r\n\t\t\tcontactService.addContact(contact);\r\n\t\t});\r\n\t}", "private ArrayList<String> getContactsEmails() {\n //Credits go to \n //http://stackoverflow.com/questions/10117049/get-only-email-address-from-contact-list-android\n ArrayList<String> emlRecs = new ArrayList<String>();\n HashSet<String> emlRecsHS = new HashSet<String>();\n Context context = getBaseContext();\n ContentResolver cr = context.getContentResolver();\n String[] projection = new String[] { \n ContactsContract.RawContacts._ID, \n ContactsContract.Contacts.DISPLAY_NAME,\n ContactsContract.Contacts.PHOTO_ID,\n ContactsContract.CommonDataKinds.Email.DATA, \n ContactsContract.CommonDataKinds.Photo.CONTACT_ID };\n String order = \"CASE WHEN \" \n + ContactsContract.Contacts.DISPLAY_NAME \n + \" NOT LIKE '%@%' THEN 1 ELSE 2 END, \" \n + ContactsContract.Contacts.DISPLAY_NAME \n + \", \" \n + ContactsContract.CommonDataKinds.Email.DATA\n + \" COLLATE NOCASE\";\n String filter = ContactsContract.CommonDataKinds.Email.DATA + \" NOT LIKE ''\";\n Cursor cursor = cr.query(ContactsContract.CommonDataKinds.Email.CONTENT_URI, projection, filter, null, order);\n if (cursor.moveToFirst()) {\n do {\n // names comes in hand sometimes\n //String name = cursor.getString(1);\n String emaillAddress = cursor.getString(EMAIL_INDEX);\n\n // keep unique only\n if (emlRecsHS.add(emaillAddress.toLowerCase(Locale.US))) {\n emlRecs.add(emaillAddress.toLowerCase(Locale.US));\n }\n } while (cursor.moveToNext());\n }\n cursor.close();\n Collections.sort(emlRecs.subList(0, emlRecs.size()));\n return emlRecs;\n }", "Page<Contact> getContacts(int index, int size);", "boolean hasAddressList();", "@Test\n void testGetRegistrarForUser_inContacts_isAdmin() throws Exception {\n expectGetRegistrarSuccess(\n CLIENT_ID_WITH_CONTACT,\n GAE_ADMIN,\n \"admin [email protected] has [OWNER, ADMIN] access to registrar TheRegistrar\");\n verifyNoInteractions(lazyGroupsConnection);\n }", "public ArrayList<BookEntry> getEntry(String surname) {\n\t\tArrayList<BookEntry> entriesFound=new ArrayList<>();\n\t\tSet<Map.Entry<Person, BookEntry>> entrySet = this.phoneBook.entrySet();\n\t\tfor (Map.Entry<Person, BookEntry> currentEntry : entrySet) {\n\t\t\tif (currentEntry.getValue().getPerson().getSurname().equals(surname)){\n\t\t\t\t//Found a matching surname!\n\t\t\t\tentriesFound.add(currentEntry.getValue()); //Add the BookEntry object to the list of found entries\n\t\t\t}\n\t\t}\n\t\treturn entriesFound;\n\t}", "@Test\r\n\tvoid testContactServiceUpdatAddress() {\r\n\t\t// update contact address\r\n\t\tcontactService.updateContactAddress(id, id);\r\n\t\tassertTrue(contactService.getContactAddress(id).equals(id));\r\n\t}", "@Test\n\tpublic void testGenerateAndValidateCompanyUniqueness() throws Exception {\n\n\t}", "@Override\n public List<Long> findContactsWithoutUser() {\n\tList<Long> ids = from(USER).where(USER.contact.isNotNull()).list(USER.contact.id);\n\n\t// id of contacts that hasn't user\n\tList<Long> result = from(CONTACT).where(CONTACT.id.notIn(ids)).list(CONTACT.id);\n\n\treturn result;\n }", "public void displayAllContacts() {\n\n for (int i = 0; i < contacts.size(); i ++) {\n\n Contact contact = contacts.get(i);\n\n System.out.println(\" Name: \" + contact.getName());\n System.out.println(\" Title: \" + contact.getTitle());\n System.out.println(\" ID #: \" + contact.getID());\n System.out.println(\" Hoursrate: \" + contact.getHoursrate());\n System.out.println(\" Workhours \" + contact.getWorkhours());\n System.out.println(\"-------------\");\n\n\n\n Employee one = new Employee(\"A\", \"A\", \"A\", \"A\"); // I give it some contact information first.\n Employee two = new Employee(\"Bob\", \"Bob\", \"A\", \"A\");\n\n\n\n\n\n\n}\n\n\n//***************************************************************", "private void findContactOptions() {\n System.out.println(\"Select the option: \\n1.find by contact name\\n2.find by city/state\\n3.exit\");\n int option = scannerForAddressBook.scannerProvider().nextInt();\n \n switch(option) {\n case 1:\n String name1 = getName();\n if(isContactExist(name1)) {\n Contacts contact1 = getContact(name1);\n System.out.println(\"Contact \" + name1 + \": \" + contact1);\n } else {\n System.out.println(\"Contact does not exists!\");\n }\n break;\n case 2:\n String name2 = getCityOrStateName();\n if(isCityOrStateExist(name2)) {\n Contacts contact = searchContactByCityOrState(name2);\n System.out.println(\"Contact from city/state \" + name2 + \": \" + contact);\n } else {\n System.out.println(\"City/State does not exists!\");\n }\n break;\n default:\n System.out.println(\"Thank you!\");\n }\n }", "void isArrayEmpty(ArrayList<UserContactInfo> contactDeatailsList);", "public static void main(String[] args) {\n\t\t\n\t\tAddressBook addressBook = new AddressBook();\n\t\taddressBook.addDetails(new ContactDetails(\"Amir Kalbasi\", \"12345678\", \"Tehran, sandogh posti\"));\n\t\tSystem.out.println(addressBook.getNumberOfEntries());\n\t\taddressBook.removeDetails(\"1234567\");\n\t\tSystem.out.println(addressBook.getNumberOfEntries());\n\n\t}", "@Override\n\tpublic void onUserOrganizationTreeSearch(boolean isOk, List<AirContact> contacts)\n\t{\n\n\t}", "private static void addNewBook(){\n\t\tSystem.out.println(\"===Add New Book===\");\n\t\tBookDetails new_book = new BookDetails();\n\t\tScanner string_input = new Scanner(System.in); //takes string input from user\n\t\tScanner integer_input = new Scanner(System.in); //takes integer input from user\n\t\t\n\t\tSystem.out.println(\"Enter BookId: \");\n\t\tint bookId = getIntegerInput(); //ensures user input is an integer value\n\t\t/*if bookId entered already exists then continually ask user to enter bookId until a bookId that does not exist is entered. \n\t\t * Do the same if bookId is less than 1 because book's in the library will not have Id's less than 1.*/\n\t\twhile(ALL_BOOKS.containsKey(bookId) || bookId < 1){\n\t\t\tSystem.out.println(\"Book Id entered already exists! Enter BookId: \");\n\t\t\tbookId = integer_input.nextInt();\n\t\t}\n\t\tnew_book.setBookId(bookId);\n\t\t\n\t\tSystem.out.println(\"Enter Book Title: \");\n\t\tString bookTitle = string_input.nextLine();\n\t\tnew_book.setBookTitle(bookTitle);\n\t\t\n\t\tString author_firstname;\n\t\tdo{\n\t\t\tSystem.out.println(\"Enter Author's First Name: \");\n\t\t\tauthor_firstname = string_input.next();\n\t\t}while(!new_book.setAuthorFirstName(author_firstname)); //loop until name input is valid (contains only letters) \n\t\t\n\t\tString author_middlename;\n\t\tdo{\n\t\t\tSystem.out.println(\"Enter Author's Middle Name (Type 'null' if author has no middle name): \");\n\t\t\tauthor_middlename = string_input.next();\n\t\t}while(!new_book.setAuthorMiddleName(author_middlename)); //loop until name input is valid (contains only letters) \n\t\t\n\t\tString author_lastname;\n\t\tdo{\n\t\t\tSystem.out.println(\"Enter Author's Last Name: \");\n\t\t\tauthor_lastname = string_input.next();\n\t\t}while(!new_book.setAuthorLastName(author_lastname)); //loop until name input is valid (contains only letters) \n\t\t\n\t\tstring_input = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter Book's Publisher: \");\n\t\tString publisher = string_input.nextLine();\n\t\tnew_book.setPublisher(publisher);\n\t\t\n\t\t\n\t\t/*Set book's genre. Valid values for a book's Genre are Biology, Mathematics, Chemistry, Physics,\n\t\t * Science_Fiction, Fantasy, Action, Drama, Romance, Horror, History, Autobiography, Biography.*/\n\t\tString genre;\n\t\tdo{\n\t\t\tSystem.out.println(\"Enter Book's Genre: \");\n\t\t\tgenre = string_input.next();\n\t\t}while(!new_book.setGenre(genre)); //loop until valid genre value is entered\n\t\t\n\t\t/*Set book's condition. Valid values for a book's Condition are New, Good, Worn, Damaged.*/\n\t\tString condition;\n\t\tdo{\n\t\t\tSystem.out.println(\"Enter Book's Condition: \");\n\t\t\tcondition = string_input.next();\n\t\t}while(!new_book.setCondition(condition)); //loop until valid value for condition is entered\n\t\t\n\t\tALL_BOOKS.put(new_book.getBookId(), new_book);\n\t\taddToPublisherTable(new_book.getPublisher(), new_book.getBookTitle()); //add book's title to the ALL_PUBLISHERS Hashtable\n\t\taddToGenreTable(new_book, new_book.getBookTitle()); //add book's title to the ALL_GENRES ArrayList\n\t\taddToAuthorTable(new_book.getAuthor().toString(), new_book.getBookTitle()); //add book's title to the ALL_AUTHORS Hashtable\n\t\tSystem.out.println(\"Book Successfully Added!\");\n\t}", "@Transactional\n\tpublic void deleteContact(Set<String> contactsEmails) {\n\t\tSet<User> contacts = new HashSet<>();\n\t\tfor (String email : contactsEmails) {\n\t\t\tUser contactUser = userDao.findUserByEmail(email);\n\t\t\tcontacts.add(contactUser);\n\t\t}\n\t\tgetCurrentUser().getContacts().removeAll(contacts);\n\t}", "public static void main(String[] args) {\n\t\tquery_id_user(1);\n\t\tquery_id_user(2);\n\t\tquery_name_user(\"jan\");\n\t\tquery_name_user(\"frans\");\n\t\tList<Contact> contacts = getContacts();\n\t\tIterator<Contact> cit = contacts.iterator();\n\t\twhile (cit.hasNext()) {\n\t\t\tContact contact = cit.next();\n\t\t\tSystem.out.println(contact.getFirstName() + \" \" + contact.getLastName());\n\t\t\tSet<Address> addresses = contact.getAddresses();\n\t\t\tIterator<Address> ait = addresses.iterator();\n\t\t\twhile (ait.hasNext()) {\n\t\t\t\tAddress address = ait.next();\n\t\t\t\tSystem.out.println(address.getStreet() + \" \" + address.getZipcode() + \" \" + address.getCity() + \" \"\n\t\t\t\t\t\t+ address.getCountry());\n\t\t\t}\n\t\t}\n\t}", "public boolean containsContact(Contact c);", "public static Collection add() {\n\t\tString firstName, lastName, address, city, state, phoneNo, email; // Attributes to be added\n\t\tlong zipCode;\n\n\t\t// asking user input\n\t\tSystem.out.println(\"Please enter details to be added.\");\n\t\tSystem.out.print(\"First Name: \");\n\t\tfirstName = sc.next();\n\t\tSystem.out.print(\"Last Name: \");\n\t\tlastName = sc.next();\n\n\t\t// Checking for duplicates\n\t\tif (record.stream().anyMatch(obj -> obj.firstName.equals(firstName))\n\t\t\t\t&& record.stream().anyMatch(obj -> obj.lastName.equals(lastName))) {\n\t\t\tSystem.out.println(\"This contact already existes. Resetting\");\n\t\t\tadd();\n\t\t\treturn null;\n\t\t}\n\n\t\tSystem.out.print(\"Address: \");\n\t\taddress = sc.next();\n\t\tSystem.out.print(\"City: \");\n\t\tcity = sc.next();\n\t\tSystem.out.print(\"State: \");\n\t\tstate = sc.next();\n\t\tSystem.out.print(\"ZipCode: \");\n\t\tzipCode = sc.nextLong();\n\t\tSystem.out.print(\"Phone No.: \");\n\t\tphoneNo = sc.next();\n\t\tSystem.out.print(\"Email: \");\n\t\temail = sc.next();\n\n\t\t// saving as new entry\n\t\tCollection entry = new Collection(firstName, lastName, address, city, state, zipCode, phoneNo, email);\n\t\tperson_cityMap.put(city, entry);\n\t\tperson_cityMap.put(state, entry);\n\t\treturn entry; // returning entry to main\n\t}", "public boolean add(AdressEntry e) {\r\n if (addressEntryList.contains(e)) {\r\n System.out.println(\"Record already exists!!\");\r\n System.out.println(addressEntryList.get((addressEntryList.indexOf(e))));\r\n System.out.println();\r\n return false;\r\n } else {\r\n addressEntryList.add(e);\r\n addressEntryList.sort(Comparator.comparing(AdressEntry::getLastName));\r\n System.out.print(\"Thank you the following contact has been added to your address book:\\n \");\r\n System.out.println(e);\r\n }\r\n System.out.println();\r\n return true;\r\n }", "@Test\n public void findByCustomerTest() {\n Set<Reservation> expected = new HashSet<>();\n expected.add(reservation1);\n expected.add(reservation2);\n Mockito.when(reservationDao.findByCustomerId(Mockito.anyLong())).thenReturn(expected);\n Collection<Reservation> result = reservationService.findByCustomer(10L);\n Assert.assertEquals(result.size(), 2);\n Assert.assertTrue(result.contains(reservation1));\n Assert.assertTrue(result.contains(reservation2));\n }", "@Test\n void setWith1PersonInList() {\n //given index, and person chnage person in address book\n //doNothing().when(addressBookMock).set(0,test_Person);\n controllerTest.add(test_Person);\n controllerTest.set(0,test_Person);\n\n assertEquals(controllerTest.get(0),test_Person);\n }", "private boolean getAddresses(){\n try {\n URLtoJSON URLtoJSON = new URLtoJSON();\n JSONObject json = URLtoJSON.open(this.URL+\"merchant/\"+this.GUID+\"/list?password=\"+this.pswd()+\"&api_code=\"+this.ApiCode);\n \n if(!json.isNull(\"error\")) return false; //If there is no transactions return false;\n JSONArray nameArray = json.names();\n JSONArray TotalArray = json.toJSONArray(nameArray);\n JSONArray JAddresses = TotalArray.getJSONArray(0);\n \n for(int i = 0; i < JAddresses.length(); i++){\n String O=\"false\";\n String S=\"false\";\n String N=\"false\";\n String[] Label=JAddresses.getJSONObject(i).getString(\"label\").split(\"_\",-1);\n if(Label.length==3){\n O=Label[1];\n S=Label[0];\n N=Label[2];\n }\n String[] Matched=this.matchDB(JAddresses.getJSONObject(i).getString(\"address\"));\n String[] Details= new String[]{\n \"S: \"+S, //0 Transaction ID\n Matched[0], //1 Sender\n Float.toString(JAddresses.getJSONObject(i).getLong(\"total_received\")/100000000)+\" (BTC)\",//2 Amount in btc\n O, //3 Choosen option\n \"btc\", //4 Currency\n \"O: \"+Matched[2], //5 Date\n Matched[1] //6 Senders nem or false \n };\n if(!this.list.contains(Details)){\n this.list.add(Details);\n if(!\"false\".equals(O) && !O.equals(\"\")){\n this.setAmountsAndEntries(Integer.parseInt(O), JAddresses.getJSONObject(i).getLong(\"total_received\"), Details[6]); //add the amount and rise the entries\n }\n }\n }\n return true;\n } catch (JSONException | NumberFormatException e) {\n e.printStackTrace();\n }\n return false;\n }", "public abstract boolean verifyIdAnswers(String firstName, String lastName, String address, String city, String state, String zip, String ssn, String yob);" ]
[ "0.6463367", "0.63609445", "0.5992628", "0.5974631", "0.5965434", "0.5895554", "0.570652", "0.5664803", "0.56218064", "0.5600294", "0.55776393", "0.5545486", "0.5533908", "0.55079126", "0.54897255", "0.54822236", "0.5465135", "0.544181", "0.542487", "0.53809774", "0.5361873", "0.53510934", "0.53451586", "0.5331806", "0.53223205", "0.5314241", "0.5309708", "0.5306138", "0.5302494", "0.52995014", "0.52949035", "0.5290665", "0.5273801", "0.5252531", "0.5229801", "0.5223873", "0.5216879", "0.5201604", "0.51935786", "0.51920295", "0.51910233", "0.518472", "0.513652", "0.51351297", "0.5129597", "0.5122523", "0.5109172", "0.5093757", "0.5091631", "0.5090609", "0.5055424", "0.5043789", "0.5041598", "0.50295293", "0.50268143", "0.50266284", "0.50169444", "0.5016695", "0.50093824", "0.50093824", "0.50093824", "0.50093824", "0.5003786", "0.4998333", "0.49957377", "0.49888593", "0.4983315", "0.49813682", "0.49788126", "0.49752256", "0.4971364", "0.49694827", "0.4968456", "0.49639866", "0.49620837", "0.495892", "0.49463725", "0.494562", "0.49440825", "0.4941206", "0.4933335", "0.49327385", "0.49307677", "0.49211684", "0.4898107", "0.48909432", "0.48896447", "0.48888978", "0.48876795", "0.48872244", "0.48806486", "0.4878148", "0.4877508", "0.48708856", "0.48706365", "0.48688218", "0.48683017", "0.48663414", "0.4866076", "0.4863809" ]
0.7097519
0
Creates the metamodel objects for the package. This method is guarded to have no affect on any invocation but its first.
public void createPackageContents() { if (isCreated) return; isCreated = true; // Create classes and their features ontologicalStructureEClass = createEClass(ONTOLOGICAL_STRUCTURE); createEReference(ontologicalStructureEClass, ONTOLOGICAL_STRUCTURE__ONTOLOGICAL_CONCEPTS); createEReference(ontologicalStructureEClass, ONTOLOGICAL_STRUCTURE__CONDITIONS); createEReference(ontologicalStructureEClass, ONTOLOGICAL_STRUCTURE__PROPERTIES); ontologicalConceptEClass = createEClass(ONTOLOGICAL_CONCEPT); createEAttribute(ontologicalConceptEClass, ONTOLOGICAL_CONCEPT__LABEL); createEAttribute(ontologicalConceptEClass, ONTOLOGICAL_CONCEPT__URI); conditionEClass = createEClass(CONDITION); createEAttribute(conditionEClass, CONDITION__LABEL); logicalConditionEClass = createEClass(LOGICAL_CONDITION); naturalLangConditionEClass = createEClass(NATURAL_LANG_CONDITION); createEAttribute(naturalLangConditionEClass, NATURAL_LANG_CONDITION__STATEMENT); mathConditionEClass = createEClass(MATH_CONDITION); negformulaEClass = createEClass(NEGFORMULA); createEReference(negformulaEClass, NEGFORMULA__CONDITION_STATEMENT); oRformulaEClass = createEClass(ORFORMULA); createEReference(oRformulaEClass, ORFORMULA__LEFT_CONDITION_STATEMENT); createEReference(oRformulaEClass, ORFORMULA__RIGHT_CONDITION_STATEMENT); anDformulaEClass = createEClass(AN_DFORMULA); createEReference(anDformulaEClass, AN_DFORMULA__LEFT_CONDITION_STATEMENT); createEReference(anDformulaEClass, AN_DFORMULA__RIGHT_CONDITION_STATEMENT); equalFormulaEClass = createEClass(EQUAL_FORMULA); createEReference(equalFormulaEClass, EQUAL_FORMULA__LEFT_CONDITION_STATEMENT); createEReference(equalFormulaEClass, EQUAL_FORMULA__RIGHT_CONDITION_STATEMENT); moreEqformulaEClass = createEClass(MORE_EQFORMULA); createEReference(moreEqformulaEClass, MORE_EQFORMULA__LEFT_CONDITION_STATEMENT); createEReference(moreEqformulaEClass, MORE_EQFORMULA__RIGHT_CONDITION_STATEMENT); lessformulaEClass = createEClass(LESSFORMULA); createEReference(lessformulaEClass, LESSFORMULA__LEFT_CONDITION_STATEMENT); createEReference(lessformulaEClass, LESSFORMULA__RIGHT_CONDITION_STATEMENT); propertyEClass = createEClass(PROPERTY); createEAttribute(propertyEClass, PROPERTY__LABEL); numberPropertyEClass = createEClass(NUMBER_PROPERTY); createEAttribute(numberPropertyEClass, NUMBER_PROPERTY__VALUE); booleanPropertyEClass = createEClass(BOOLEAN_PROPERTY); createEAttribute(booleanPropertyEClass, BOOLEAN_PROPERTY__VALUE); stringPropertyEClass = createEClass(STRING_PROPERTY); createEAttribute(stringPropertyEClass, STRING_PROPERTY__VALUE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tmetadataEClass = createEClass(METADATA);\n\t\tcreateEAttribute(metadataEClass, METADATA__GAMENAME);\n\t\tcreateEAttribute(metadataEClass, METADATA__SHORTNAME);\n\t\tcreateEAttribute(metadataEClass, METADATA__TIMING);\n\t\tcreateEAttribute(metadataEClass, METADATA__ADRESSING);\n\t\tcreateEAttribute(metadataEClass, METADATA__CARTRIDGE_TYPE);\n\t\tcreateEAttribute(metadataEClass, METADATA__ROM_SIZE);\n\t\tcreateEAttribute(metadataEClass, METADATA__RAM_SIZE);\n\t\tcreateEAttribute(metadataEClass, METADATA__LICENSEE);\n\t\tcreateEAttribute(metadataEClass, METADATA__COUNTRY);\n\t\tcreateEAttribute(metadataEClass, METADATA__VIDEOFORMAT);\n\t\tcreateEAttribute(metadataEClass, METADATA__VERSION);\n\t\tcreateEAttribute(metadataEClass, METADATA__IDE_VERSION);\n\t}", "public void createPackageContents()\n {\n if (isCreated) return;\n isCreated = true;\n\n // Create classes and their features\n modelEClass = createEClass(MODEL);\n createEReference(modelEClass, MODEL__AGENT);\n\n agentEClass = createEClass(AGENT);\n createEAttribute(agentEClass, AGENT__NAME);\n\n intentEClass = createEClass(INTENT);\n createEReference(intentEClass, INTENT__SUPER_TYPE);\n createEReference(intentEClass, INTENT__IS_FOLLOW_UP);\n createEReference(intentEClass, INTENT__QUESTION);\n createEReference(intentEClass, INTENT__TRAINING);\n\n isFollowUpEClass = createEClass(IS_FOLLOW_UP);\n createEReference(isFollowUpEClass, IS_FOLLOW_UP__INTENT);\n\n entityEClass = createEClass(ENTITY);\n createEReference(entityEClass, ENTITY__EXAMPLE);\n\n questionEClass = createEClass(QUESTION);\n createEReference(questionEClass, QUESTION__QUESTION_ENTITY);\n createEAttribute(questionEClass, QUESTION__PROMPT);\n\n questionEntityEClass = createEClass(QUESTION_ENTITY);\n createEReference(questionEntityEClass, QUESTION_ENTITY__WITH_ENTITY);\n\n trainingEClass = createEClass(TRAINING);\n createEReference(trainingEClass, TRAINING__TRAININGREF);\n\n trainingRefEClass = createEClass(TRAINING_REF);\n createEAttribute(trainingRefEClass, TRAINING_REF__PHRASE);\n createEReference(trainingRefEClass, TRAINING_REF__DECLARATION);\n\n declarationEClass = createEClass(DECLARATION);\n createEAttribute(declarationEClass, DECLARATION__TRAININGSTRING);\n createEReference(declarationEClass, DECLARATION__REFERENCE);\n\n entityExampleEClass = createEClass(ENTITY_EXAMPLE);\n createEAttribute(entityExampleEClass, ENTITY_EXAMPLE__NAME);\n\n sysvariableEClass = createEClass(SYSVARIABLE);\n createEAttribute(sysvariableEClass, SYSVARIABLE__VALUE);\n\n referenceEClass = createEClass(REFERENCE);\n createEReference(referenceEClass, REFERENCE__ENTITY);\n createEReference(referenceEClass, REFERENCE__SYSVAR);\n }", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tmealyMachineEClass = createEClass(MEALY_MACHINE);\n\t\tcreateEReference(mealyMachineEClass, MEALY_MACHINE__INITIAL_STATE);\n\t\tcreateEReference(mealyMachineEClass, MEALY_MACHINE__STATES);\n\t\tcreateEReference(mealyMachineEClass, MEALY_MACHINE__INPUT_ALPHABET);\n\t\tcreateEReference(mealyMachineEClass, MEALY_MACHINE__OUTPUT_ALPHABET);\n\t\tcreateEReference(mealyMachineEClass, MEALY_MACHINE__TRANSITIONS);\n\n\t\tstateEClass = createEClass(STATE);\n\t\tcreateEAttribute(stateEClass, STATE__NAME);\n\n\t\talphabetEClass = createEClass(ALPHABET);\n\t\tcreateEAttribute(alphabetEClass, ALPHABET__CHARACTERS);\n\n\t\ttransitionEClass = createEClass(TRANSITION);\n\t\tcreateEReference(transitionEClass, TRANSITION__SOURCE_STATE);\n\t\tcreateEReference(transitionEClass, TRANSITION__TARGET_STATE);\n\t\tcreateEAttribute(transitionEClass, TRANSITION__INPUT);\n\t\tcreateEAttribute(transitionEClass, TRANSITION__OUTPUT);\n\t}", "public void createPackageContents()\n {\n if (isCreated) return;\n isCreated = true;\n\n // Create classes and their features\n modelEClass = createEClass(MODEL);\n createEReference(modelEClass, MODEL__SPEC);\n\n statementEClass = createEClass(STATEMENT);\n createEReference(statementEClass, STATEMENT__DEF);\n createEReference(statementEClass, STATEMENT__OUT);\n createEReference(statementEClass, STATEMENT__IN);\n createEAttribute(statementEClass, STATEMENT__COMMENT);\n\n definitionEClass = createEClass(DEFINITION);\n createEAttribute(definitionEClass, DEFINITION__NAME);\n createEReference(definitionEClass, DEFINITION__PARAM_LIST);\n createEAttribute(definitionEClass, DEFINITION__TYPE);\n createEReference(definitionEClass, DEFINITION__EXPRESSION);\n\n paramListEClass = createEClass(PARAM_LIST);\n createEAttribute(paramListEClass, PARAM_LIST__PARAMS);\n createEAttribute(paramListEClass, PARAM_LIST__TYPES);\n\n outEClass = createEClass(OUT);\n createEReference(outEClass, OUT__EXP);\n createEAttribute(outEClass, OUT__NAME);\n\n inEClass = createEClass(IN);\n createEAttribute(inEClass, IN__NAME);\n createEAttribute(inEClass, IN__TYPE);\n\n typedExpressionEClass = createEClass(TYPED_EXPRESSION);\n createEReference(typedExpressionEClass, TYPED_EXPRESSION__EXP);\n createEAttribute(typedExpressionEClass, TYPED_EXPRESSION__TYPE);\n\n expressionEClass = createEClass(EXPRESSION);\n\n valueEClass = createEClass(VALUE);\n createEAttribute(valueEClass, VALUE__OP);\n createEReference(valueEClass, VALUE__EXP);\n createEReference(valueEClass, VALUE__STATEMENTS);\n createEAttribute(valueEClass, VALUE__NAME);\n createEReference(valueEClass, VALUE__ARGS);\n\n argEClass = createEClass(ARG);\n createEAttribute(argEClass, ARG__ARG);\n createEReference(argEClass, ARG__EXP);\n\n ifStatementEClass = createEClass(IF_STATEMENT);\n createEReference(ifStatementEClass, IF_STATEMENT__IF);\n createEReference(ifStatementEClass, IF_STATEMENT__THEN);\n createEReference(ifStatementEClass, IF_STATEMENT__ELSE);\n\n operationEClass = createEClass(OPERATION);\n createEReference(operationEClass, OPERATION__LEFT);\n createEAttribute(operationEClass, OPERATION__OP);\n createEReference(operationEClass, OPERATION__RIGHT);\n }", "public void createPackageContents() {\r\n\t\tif (isCreated)\r\n\t\t\treturn;\r\n\t\tisCreated = true;\r\n\r\n\t\t// Create classes and their features\r\n\t\tspringProjectEClass = createEClass(SPRING_PROJECT);\r\n\t\tcreateEAttribute(springProjectEClass, SPRING_PROJECT__BASE_PACKAGE);\r\n\t\tcreateEAttribute(springProjectEClass, SPRING_PROJECT__NAME);\r\n\t\tcreateEReference(springProjectEClass, SPRING_PROJECT__DB_SOURCE);\r\n\t\tcreateEReference(springProjectEClass, SPRING_PROJECT__ENTITIES);\r\n\t\tcreateEReference(springProjectEClass, SPRING_PROJECT__CONTROLLERS);\r\n\r\n\t\trestControllerEClass = createEClass(REST_CONTROLLER);\r\n\t\tcreateEAttribute(restControllerEClass, REST_CONTROLLER__NAME);\r\n\t\tcreateEAttribute(restControllerEClass, REST_CONTROLLER__PATH);\r\n\t\tcreateEReference(restControllerEClass, REST_CONTROLLER__USED_ENTITIES);\r\n\t\tcreateEReference(restControllerEClass, REST_CONTROLLER__MAPPINGS);\r\n\r\n\t\trestMappingEClass = createEClass(REST_MAPPING);\r\n\t\tcreateEAttribute(restMappingEClass, REST_MAPPING__PATH);\r\n\t\tcreateEAttribute(restMappingEClass, REST_MAPPING__NAME);\r\n\t\tcreateEReference(restMappingEClass, REST_MAPPING__USED_ENTITY);\r\n\t\tcreateEAttribute(restMappingEClass, REST_MAPPING__BODY);\r\n\r\n\t\tgetMappingEClass = createEClass(GET_MAPPING);\r\n\r\n\t\tpostMappingEClass = createEClass(POST_MAPPING);\r\n\t\tcreateEReference(postMappingEClass, POST_MAPPING__PARAMETERS);\r\n\r\n\t\tentityEClass = createEClass(ENTITY);\r\n\t\tcreateEReference(entityEClass, ENTITY__SUPER_CLASS);\r\n\t\tcreateEAttribute(entityEClass, ENTITY__NAME);\r\n\t\tcreateEAttribute(entityEClass, ENTITY__GENERATE_REPOSITORY);\r\n\t\tcreateEReference(entityEClass, ENTITY__FIELDS);\r\n\t\tcreateEReference(entityEClass, ENTITY__MAPPING);\r\n\r\n\t\tmappingEClass = createEClass(MAPPING);\r\n\t\tcreateEAttribute(mappingEClass, MAPPING__NAME);\r\n\t\tcreateEReference(mappingEClass, MAPPING__ENTITY);\r\n\t\tcreateEAttribute(mappingEClass, MAPPING__IS_LIST);\r\n\t\tcreateEReference(mappingEClass, MAPPING__MAPPING_TYPE);\r\n\r\n\t\tmappingTypeEClass = createEClass(MAPPING_TYPE);\r\n\t\tcreateEAttribute(mappingTypeEClass, MAPPING_TYPE__CASCADE);\r\n\t\tcreateEReference(mappingTypeEClass, MAPPING_TYPE__MAPPED_BY);\r\n\r\n\t\toneToManyEClass = createEClass(ONE_TO_MANY);\r\n\r\n\t\tmanyToOneEClass = createEClass(MANY_TO_ONE);\r\n\r\n\t\tmanyToManyEClass = createEClass(MANY_TO_MANY);\r\n\t\tcreateEAttribute(manyToManyEClass, MANY_TO_MANY__JOIN_TABLE_NAME);\r\n\t\tcreateEAttribute(manyToManyEClass, MANY_TO_MANY__JOIN_COLUMNS);\r\n\t\tcreateEAttribute(manyToManyEClass, MANY_TO_MANY__INVERSE_JOIN_COLUMNS);\r\n\r\n\t\toneToOneEClass = createEClass(ONE_TO_ONE);\r\n\r\n\t\tfieldEClass = createEClass(FIELD);\r\n\t\tcreateEAttribute(fieldEClass, FIELD__IS_ID);\r\n\t\tcreateEAttribute(fieldEClass, FIELD__NAME);\r\n\t\tcreateEAttribute(fieldEClass, FIELD__DATATYPE);\r\n\r\n\t\tdbSourceEClass = createEClass(DB_SOURCE);\r\n\t\tcreateEAttribute(dbSourceEClass, DB_SOURCE__ENABLE_CONSOLE);\r\n\t\tcreateEAttribute(dbSourceEClass, DB_SOURCE__WEB_ALLOW_OOTHERS);\r\n\t\tcreateEAttribute(dbSourceEClass, DB_SOURCE__CONSOLE_PATH);\r\n\t\tcreateEAttribute(dbSourceEClass, DB_SOURCE__URL);\r\n\t\tcreateEAttribute(dbSourceEClass, DB_SOURCE__USER);\r\n\t\tcreateEAttribute(dbSourceEClass, DB_SOURCE__PASSWORD);\r\n\t\tcreateEAttribute(dbSourceEClass, DB_SOURCE__DRIVE_CLASS_NAME);\r\n\t\tcreateEAttribute(dbSourceEClass, DB_SOURCE__SERVER_PORT);\r\n\r\n\t\t// Create enums\r\n\t\tcascadeEEnum = createEEnum(CASCADE);\r\n\t}", "public void createPackageContents()\n {\n if (isCreated) return;\n isCreated = true;\n\n // Create classes and their features\n modelEClass = createEClass(MODEL);\n createEReference(modelEClass, MODEL__ELEMENTS);\n\n elementEClass = createEClass(ELEMENT);\n createEReference(elementEClass, ELEMENT__STATE);\n createEReference(elementEClass, ELEMENT__TRANSITION);\n\n stateEClass = createEClass(STATE);\n createEAttribute(stateEClass, STATE__NAME);\n createEReference(stateEClass, STATE__STATES_PROPERTIES);\n\n statesPropertiesEClass = createEClass(STATES_PROPERTIES);\n createEAttribute(statesPropertiesEClass, STATES_PROPERTIES__COLOR);\n createEAttribute(statesPropertiesEClass, STATES_PROPERTIES__THICKNESS);\n createEAttribute(statesPropertiesEClass, STATES_PROPERTIES__POSITION);\n\n transitionEClass = createEClass(TRANSITION);\n createEReference(transitionEClass, TRANSITION__START);\n createEReference(transitionEClass, TRANSITION__END);\n createEReference(transitionEClass, TRANSITION__TRANSITION_PROPERTIES);\n createEReference(transitionEClass, TRANSITION__LABEL);\n createEAttribute(transitionEClass, TRANSITION__INIT);\n\n labelEClass = createEClass(LABEL);\n createEAttribute(labelEClass, LABEL__TEXT);\n createEAttribute(labelEClass, LABEL__POSITION);\n\n coordinatesStatesTransitionEClass = createEClass(COORDINATES_STATES_TRANSITION);\n createEAttribute(coordinatesStatesTransitionEClass, COORDINATES_STATES_TRANSITION__STATE_TRANSITION);\n\n transitionPropertiesEClass = createEClass(TRANSITION_PROPERTIES);\n createEAttribute(transitionPropertiesEClass, TRANSITION_PROPERTIES__COLOR);\n createEAttribute(transitionPropertiesEClass, TRANSITION_PROPERTIES__THICKNESS);\n createEAttribute(transitionPropertiesEClass, TRANSITION_PROPERTIES__CURVE);\n }", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tsutEClass = createEClass(SUT);\n\t\tcreateEAttribute(sutEClass, SUT__HOSTNAME);\n\t\tcreateEAttribute(sutEClass, SUT__IP);\n\t\tcreateEAttribute(sutEClass, SUT__HARDWARE);\n\t\tcreateEReference(sutEClass, SUT__SUT);\n\t\tcreateEReference(sutEClass, SUT__METRICMODEL);\n\t\tcreateEAttribute(sutEClass, SUT__TYPE);\n\n\t\tloadGeneratorEClass = createEClass(LOAD_GENERATOR);\n\t\tcreateEAttribute(loadGeneratorEClass, LOAD_GENERATOR__HOSTNAME);\n\t\tcreateEAttribute(loadGeneratorEClass, LOAD_GENERATOR__IP);\n\t\tcreateEAttribute(loadGeneratorEClass, LOAD_GENERATOR__IS_MONITOR);\n\t\tcreateEReference(loadGeneratorEClass, LOAD_GENERATOR__SUT);\n\t\tcreateEReference(loadGeneratorEClass, LOAD_GENERATOR__METRICMODEL);\n\t\tcreateEAttribute(loadGeneratorEClass, LOAD_GENERATOR__HARDWARE);\n\t\tcreateEReference(loadGeneratorEClass, LOAD_GENERATOR__MONITOR);\n\n\t\tmonitorEClass = createEClass(MONITOR);\n\t\tcreateEAttribute(monitorEClass, MONITOR__HOSTNAME);\n\t\tcreateEAttribute(monitorEClass, MONITOR__IP);\n\t\tcreateEReference(monitorEClass, MONITOR__SUT);\n\t\tcreateEAttribute(monitorEClass, MONITOR__HARDWARE);\n\t\tcreateEAttribute(monitorEClass, MONITOR__DESCRIPTION);\n\n\t\tmetricModelEClass = createEClass(METRIC_MODEL);\n\t\tcreateEAttribute(metricModelEClass, METRIC_MODEL__NAME);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__MEMORY);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__TRANSACTION);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__DISK);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__CRITERIA);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__THRESHOLD);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__ASSOCIATIONCOUNTERCRITERIATHRESHOLD);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__DISK_COUNTER);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__TRANSACTION_COUNTER);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__MEMORY_COUNTER);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__COUNTER);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__METRIC);\n\n\t\t// Create enums\n\t\tsuT_TYPEEEnum = createEEnum(SUT_TYPE);\n\t\thardwareEEnum = createEEnum(HARDWARE);\n\t}", "public void createPackageContents()\n {\n if (isCreated) return;\n isCreated = true;\n\n // Create classes and their features\n modelEClass = createEClass(MODEL);\n createEReference(modelEClass, MODEL__STMTS);\n\n simpleStatementEClass = createEClass(SIMPLE_STATEMENT);\n\n assignmentEClass = createEClass(ASSIGNMENT);\n createEReference(assignmentEClass, ASSIGNMENT__LEFT_HAND_SIDE);\n createEReference(assignmentEClass, ASSIGNMENT__RIGHT_HAND_SIDE);\n\n expressionEClass = createEClass(EXPRESSION);\n\n unaryMinusExpressionEClass = createEClass(UNARY_MINUS_EXPRESSION);\n createEReference(unaryMinusExpressionEClass, UNARY_MINUS_EXPRESSION__SUB);\n\n unaryPlusExpressionEClass = createEClass(UNARY_PLUS_EXPRESSION);\n createEReference(unaryPlusExpressionEClass, UNARY_PLUS_EXPRESSION__SUB);\n\n logicalNegationExpressionEClass = createEClass(LOGICAL_NEGATION_EXPRESSION);\n createEReference(logicalNegationExpressionEClass, LOGICAL_NEGATION_EXPRESSION__SUB);\n\n bracketExpressionEClass = createEClass(BRACKET_EXPRESSION);\n createEReference(bracketExpressionEClass, BRACKET_EXPRESSION__SUB);\n\n pointerCallEClass = createEClass(POINTER_CALL);\n\n variableCallEClass = createEClass(VARIABLE_CALL);\n createEAttribute(variableCallEClass, VARIABLE_CALL__NAME);\n\n arraySpecifierEClass = createEClass(ARRAY_SPECIFIER);\n\n unarySpecifierEClass = createEClass(UNARY_SPECIFIER);\n createEAttribute(unarySpecifierEClass, UNARY_SPECIFIER__INDEX);\n\n rangeSpecifierEClass = createEClass(RANGE_SPECIFIER);\n createEAttribute(rangeSpecifierEClass, RANGE_SPECIFIER__FROM);\n createEAttribute(rangeSpecifierEClass, RANGE_SPECIFIER__TO);\n\n ioFunctionsEClass = createEClass(IO_FUNCTIONS);\n createEAttribute(ioFunctionsEClass, IO_FUNCTIONS__FILE_NAME);\n\n infoFunctionsEClass = createEClass(INFO_FUNCTIONS);\n\n manipFunctionsEClass = createEClass(MANIP_FUNCTIONS);\n\n arithFunctionsEClass = createEClass(ARITH_FUNCTIONS);\n createEReference(arithFunctionsEClass, ARITH_FUNCTIONS__EXPRESSION);\n createEReference(arithFunctionsEClass, ARITH_FUNCTIONS__FIELD);\n createEReference(arithFunctionsEClass, ARITH_FUNCTIONS__WHERE_EXPRESSION);\n\n loadEClass = createEClass(LOAD);\n\n storeEClass = createEClass(STORE);\n createEReference(storeEClass, STORE__EXPRESSION);\n\n exportEClass = createEClass(EXPORT);\n createEReference(exportEClass, EXPORT__EXPRESSION);\n\n printEClass = createEClass(PRINT);\n createEReference(printEClass, PRINT__EXPRESSION);\n\n depthEClass = createEClass(DEPTH);\n createEReference(depthEClass, DEPTH__EXPRESSION);\n\n fieldInfoEClass = createEClass(FIELD_INFO);\n createEReference(fieldInfoEClass, FIELD_INFO__EXPRESSION);\n\n containsEClass = createEClass(CONTAINS);\n createEReference(containsEClass, CONTAINS__KEYS);\n createEReference(containsEClass, CONTAINS__RIGHT);\n\n selectEClass = createEClass(SELECT);\n createEReference(selectEClass, SELECT__FIELDS);\n createEReference(selectEClass, SELECT__FROM_EXPRESSION);\n createEReference(selectEClass, SELECT__WHERE_EXPRESSION);\n\n lengthEClass = createEClass(LENGTH);\n createEReference(lengthEClass, LENGTH__EXPRESSION);\n\n sumEClass = createEClass(SUM);\n\n productEClass = createEClass(PRODUCT);\n\n constantEClass = createEClass(CONSTANT);\n\n primitiveEClass = createEClass(PRIMITIVE);\n createEAttribute(primitiveEClass, PRIMITIVE__STR);\n createEAttribute(primitiveEClass, PRIMITIVE__INT_NUM);\n createEAttribute(primitiveEClass, PRIMITIVE__FLOAT_NUM);\n createEAttribute(primitiveEClass, PRIMITIVE__BOOL);\n createEAttribute(primitiveEClass, PRIMITIVE__NIL);\n\n arrayEClass = createEClass(ARRAY);\n createEReference(arrayEClass, ARRAY__VALUES);\n\n jSonObjectEClass = createEClass(JSON_OBJECT);\n createEReference(jSonObjectEClass, JSON_OBJECT__FIELDS);\n\n fieldEClass = createEClass(FIELD);\n createEReference(fieldEClass, FIELD__KEY);\n createEReference(fieldEClass, FIELD__VALUE);\n\n disjunctionExpressionEClass = createEClass(DISJUNCTION_EXPRESSION);\n createEReference(disjunctionExpressionEClass, DISJUNCTION_EXPRESSION__LEFT);\n createEReference(disjunctionExpressionEClass, DISJUNCTION_EXPRESSION__RIGHT);\n\n conjunctionExpressionEClass = createEClass(CONJUNCTION_EXPRESSION);\n createEReference(conjunctionExpressionEClass, CONJUNCTION_EXPRESSION__LEFT);\n createEReference(conjunctionExpressionEClass, CONJUNCTION_EXPRESSION__RIGHT);\n\n equalityExpressionEClass = createEClass(EQUALITY_EXPRESSION);\n createEReference(equalityExpressionEClass, EQUALITY_EXPRESSION__LEFT);\n createEReference(equalityExpressionEClass, EQUALITY_EXPRESSION__RIGHT);\n\n inequalityExpressionEClass = createEClass(INEQUALITY_EXPRESSION);\n createEReference(inequalityExpressionEClass, INEQUALITY_EXPRESSION__LEFT);\n createEReference(inequalityExpressionEClass, INEQUALITY_EXPRESSION__RIGHT);\n\n superiorExpressionEClass = createEClass(SUPERIOR_EXPRESSION);\n createEReference(superiorExpressionEClass, SUPERIOR_EXPRESSION__LEFT);\n createEReference(superiorExpressionEClass, SUPERIOR_EXPRESSION__RIGHT);\n\n superiorOrEqualExpressionEClass = createEClass(SUPERIOR_OR_EQUAL_EXPRESSION);\n createEReference(superiorOrEqualExpressionEClass, SUPERIOR_OR_EQUAL_EXPRESSION__LEFT);\n createEReference(superiorOrEqualExpressionEClass, SUPERIOR_OR_EQUAL_EXPRESSION__RIGHT);\n\n inferiorExpressionEClass = createEClass(INFERIOR_EXPRESSION);\n createEReference(inferiorExpressionEClass, INFERIOR_EXPRESSION__LEFT);\n createEReference(inferiorExpressionEClass, INFERIOR_EXPRESSION__RIGHT);\n\n inferiorOrEqualExpressionEClass = createEClass(INFERIOR_OR_EQUAL_EXPRESSION);\n createEReference(inferiorOrEqualExpressionEClass, INFERIOR_OR_EQUAL_EXPRESSION__LEFT);\n createEReference(inferiorOrEqualExpressionEClass, INFERIOR_OR_EQUAL_EXPRESSION__RIGHT);\n\n additionExpressionEClass = createEClass(ADDITION_EXPRESSION);\n createEReference(additionExpressionEClass, ADDITION_EXPRESSION__LEFT);\n createEReference(additionExpressionEClass, ADDITION_EXPRESSION__RIGHT);\n\n substractionExpressionEClass = createEClass(SUBSTRACTION_EXPRESSION);\n createEReference(substractionExpressionEClass, SUBSTRACTION_EXPRESSION__LEFT);\n createEReference(substractionExpressionEClass, SUBSTRACTION_EXPRESSION__RIGHT);\n\n multiplicationExpressionEClass = createEClass(MULTIPLICATION_EXPRESSION);\n createEReference(multiplicationExpressionEClass, MULTIPLICATION_EXPRESSION__LEFT);\n createEReference(multiplicationExpressionEClass, MULTIPLICATION_EXPRESSION__RIGHT);\n\n divisionExpressionEClass = createEClass(DIVISION_EXPRESSION);\n createEReference(divisionExpressionEClass, DIVISION_EXPRESSION__LEFT);\n createEReference(divisionExpressionEClass, DIVISION_EXPRESSION__RIGHT);\n\n moduloExpressionEClass = createEClass(MODULO_EXPRESSION);\n createEReference(moduloExpressionEClass, MODULO_EXPRESSION__LEFT);\n createEReference(moduloExpressionEClass, MODULO_EXPRESSION__RIGHT);\n\n arrayCallEClass = createEClass(ARRAY_CALL);\n createEReference(arrayCallEClass, ARRAY_CALL__CALLEE);\n createEReference(arrayCallEClass, ARRAY_CALL__SPECIFIER);\n\n fieldCallEClass = createEClass(FIELD_CALL);\n createEReference(fieldCallEClass, FIELD_CALL__CALLEE);\n createEAttribute(fieldCallEClass, FIELD_CALL__FIELD);\n }", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\ttableEClass = createEClass(TABLE);\n\t\tcreateEReference(tableEClass, TABLE__DATABASE);\n\t\tcreateEReference(tableEClass, TABLE__COLUMNS);\n\t\tcreateEReference(tableEClass, TABLE__CONSTRAINTS);\n\n\t\ttableConstraintEClass = createEClass(TABLE_CONSTRAINT);\n\t\tcreateEAttribute(tableConstraintEClass, TABLE_CONSTRAINT__NAME);\n\t\tcreateEReference(tableConstraintEClass, TABLE_CONSTRAINT__TABLE);\n\n\t\tprimaryKeyTableConstraintEClass = createEClass(PRIMARY_KEY_TABLE_CONSTRAINT);\n\t\tcreateEReference(primaryKeyTableConstraintEClass, PRIMARY_KEY_TABLE_CONSTRAINT__COLUMNS);\n\n\t\tuniqueTableConstraintEClass = createEClass(UNIQUE_TABLE_CONSTRAINT);\n\t\tcreateEReference(uniqueTableConstraintEClass, UNIQUE_TABLE_CONSTRAINT__COLUMNS);\n\n\t\tcheckTableConstraintEClass = createEClass(CHECK_TABLE_CONSTRAINT);\n\t\tcreateEReference(checkTableConstraintEClass, CHECK_TABLE_CONSTRAINT__EXPRESSION);\n\n\t\tforeignKeyTableConstraintEClass = createEClass(FOREIGN_KEY_TABLE_CONSTRAINT);\n\t\tcreateEReference(foreignKeyTableConstraintEClass, FOREIGN_KEY_TABLE_CONSTRAINT__COLUMNS);\n\t\tcreateEReference(foreignKeyTableConstraintEClass, FOREIGN_KEY_TABLE_CONSTRAINT__FOREIGN_TABLE);\n\t\tcreateEReference(foreignKeyTableConstraintEClass, FOREIGN_KEY_TABLE_CONSTRAINT__FOREIGN_COLUMNS);\n\t}", "public void createPackageContents()\n {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tclarityAbstractObjectEClass = createEClass(CLARITY_ABSTRACT_OBJECT);\n\t\tcreateEAttribute(clarityAbstractObjectEClass, CLARITY_ABSTRACT_OBJECT__CLARITY_CONNECTION);\n\n\t\tclarityAddFilesEClass = createEClass(CLARITY_ADD_FILES);\n\n\t\tclarityGetBatchResultEClass = createEClass(CLARITY_GET_BATCH_RESULT);\n\n\t\tclarityGetKeyEClass = createEClass(CLARITY_GET_KEY);\n\n\t\tclarityQueryBatchEClass = createEClass(CLARITY_QUERY_BATCH);\n\n\t\tclarityReloadFileEClass = createEClass(CLARITY_RELOAD_FILE);\n\n\t\tclarityRemoveFilesEClass = createEClass(CLARITY_REMOVE_FILES);\n\n\t\tstartBatchEClass = createEClass(START_BATCH);\n\t}", "public void createPackageContents() {\n if(isCreated) {\n return;\n }\n isCreated = true;\n\n // Create classes and their features\n namedElementEClass = createEClass(NAMED_ELEMENT);\n createEAttribute(namedElementEClass, NAMED_ELEMENT__NAME);\n\n modularizationModelEClass = createEClass(MODULARIZATION_MODEL);\n createEReference(modularizationModelEClass, MODULARIZATION_MODEL__MODULES);\n createEReference(modularizationModelEClass, MODULARIZATION_MODEL__CLASSES);\n\n moduleEClass = createEClass(MODULE);\n createEReference(moduleEClass, MODULE__CLASSES);\n\n classEClass = createEClass(CLASS);\n createEReference(classEClass, CLASS__MODULE);\n createEReference(classEClass, CLASS__DEPENDS_ON);\n createEReference(classEClass, CLASS__DEPENDED_ON_BY);\n }", "public void createPackageContents()\n {\n if (isCreated) return;\n isCreated = true;\n\n // Create classes and their features\n modelEClass = createEClass(MODEL);\n createEReference(modelEClass, MODEL__PARAMS);\n createEReference(modelEClass, MODEL__STATES);\n createEReference(modelEClass, MODEL__POPULATION);\n\n paramEClass = createEClass(PARAM);\n createEAttribute(paramEClass, PARAM__NAME);\n createEAttribute(paramEClass, PARAM__VALUE);\n\n agentStateEClass = createEClass(AGENT_STATE);\n createEAttribute(agentStateEClass, AGENT_STATE__NAME);\n createEReference(agentStateEClass, AGENT_STATE__PREFIXS);\n\n prefixEClass = createEClass(PREFIX);\n createEReference(prefixEClass, PREFIX__ACTION);\n createEAttribute(prefixEClass, PREFIX__CONTINUE);\n\n actionEClass = createEClass(ACTION);\n createEAttribute(actionEClass, ACTION__NAME);\n createEReference(actionEClass, ACTION__RATE);\n\n acT_SpNoMsgEClass = createEClass(ACT_SP_NO_MSG);\n\n acT_SpBrEClass = createEClass(ACT_SP_BR);\n createEReference(acT_SpBrEClass, ACT_SP_BR__RANGE);\n\n acT_SpUniEClass = createEClass(ACT_SP_UNI);\n createEReference(acT_SpUniEClass, ACT_SP_UNI__RANGE);\n\n acT_InBrEClass = createEClass(ACT_IN_BR);\n createEReference(acT_InBrEClass, ACT_IN_BR__VALUE);\n\n acT_InUniEClass = createEClass(ACT_IN_UNI);\n createEReference(acT_InUniEClass, ACT_IN_UNI__VALUE);\n\n iRangeEClass = createEClass(IRANGE);\n\n pR_ExprEClass = createEClass(PR_EXPR);\n createEReference(pR_ExprEClass, PR_EXPR__PR_E);\n\n terminal_PR_ExprEClass = createEClass(TERMINAL_PR_EXPR);\n createEAttribute(terminal_PR_ExprEClass, TERMINAL_PR_EXPR__LINKED_PARAM);\n\n ratE_ExprEClass = createEClass(RATE_EXPR);\n createEReference(ratE_ExprEClass, RATE_EXPR__RT);\n\n terminal_RATE_ExprEClass = createEClass(TERMINAL_RATE_EXPR);\n createEAttribute(terminal_RATE_ExprEClass, TERMINAL_RATE_EXPR__LINKED_PARAM);\n\n agenT_NUMEClass = createEClass(AGENT_NUM);\n createEAttribute(agenT_NUMEClass, AGENT_NUM__TYPE);\n\n populationEClass = createEClass(POPULATION);\n createEReference(populationEClass, POPULATION__POPU);\n\n agentsEClass = createEClass(AGENTS);\n createEAttribute(agentsEClass, AGENTS__TYPE);\n }", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\ttaskModelEClass = createEClass(TASK_MODEL);\n\t\tcreateEReference(taskModelEClass, TASK_MODEL__ROOT);\n\t\tcreateEReference(taskModelEClass, TASK_MODEL__TASKS);\n\t\tcreateEAttribute(taskModelEClass, TASK_MODEL__NAME);\n\n\t\ttaskEClass = createEClass(TASK);\n\t\tcreateEAttribute(taskEClass, TASK__ID);\n\t\tcreateEAttribute(taskEClass, TASK__NAME);\n\t\tcreateEReference(taskEClass, TASK__OPERATOR);\n\t\tcreateEReference(taskEClass, TASK__SUBTASKS);\n\t\tcreateEReference(taskEClass, TASK__PARENT);\n\t\tcreateEAttribute(taskEClass, TASK__MIN);\n\t\tcreateEAttribute(taskEClass, TASK__MAX);\n\t\tcreateEAttribute(taskEClass, TASK__ITERATIVE);\n\n\t\tuserTaskEClass = createEClass(USER_TASK);\n\n\t\tapplicationTaskEClass = createEClass(APPLICATION_TASK);\n\n\t\tinteractionTaskEClass = createEClass(INTERACTION_TASK);\n\n\t\tabstractionTaskEClass = createEClass(ABSTRACTION_TASK);\n\n\t\tnullTaskEClass = createEClass(NULL_TASK);\n\n\t\ttemporalOperatorEClass = createEClass(TEMPORAL_OPERATOR);\n\n\t\tchoiceOperatorEClass = createEClass(CHOICE_OPERATOR);\n\n\t\torderIndependenceOperatorEClass = createEClass(ORDER_INDEPENDENCE_OPERATOR);\n\n\t\tinterleavingOperatorEClass = createEClass(INTERLEAVING_OPERATOR);\n\n\t\tsynchronizationOperatorEClass = createEClass(SYNCHRONIZATION_OPERATOR);\n\n\t\tparallelOperatorEClass = createEClass(PARALLEL_OPERATOR);\n\n\t\tdisablingOperatorEClass = createEClass(DISABLING_OPERATOR);\n\n\t\tsequentialEnablingInfoOperatorEClass = createEClass(SEQUENTIAL_ENABLING_INFO_OPERATOR);\n\n\t\tsequentialEnablingOperatorEClass = createEClass(SEQUENTIAL_ENABLING_OPERATOR);\n\n\t\tsuspendResumeOperatorEClass = createEClass(SUSPEND_RESUME_OPERATOR);\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\trepositoryEClass = createEClass(REPOSITORY);\n\t\tcreateEAttribute(repositoryEClass, REPOSITORY__NAME);\n\t\tcreateEAttribute(repositoryEClass, REPOSITORY__LOCATION);\n\n\t\trepositoryManagerEClass = createEClass(REPOSITORY_MANAGER);\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\teDomainSchemaEClass = createEClass(EDOMAIN_SCHEMA);\n\t\tcreateEReference(eDomainSchemaEClass, EDOMAIN_SCHEMA__CS);\n\t\tcreateEReference(eDomainSchemaEClass, EDOMAIN_SCHEMA__DS);\n\n\t\teControlSchemaEClass = createEClass(ECONTROL_SCHEMA);\n\t\tcreateEReference(eControlSchemaEClass, ECONTROL_SCHEMA__ACTOR);\n\n\t\teDataSchemaEClass = createEClass(EDATA_SCHEMA);\n\t\tcreateEReference(eDataSchemaEClass, EDATA_SCHEMA__CS);\n\t\tcreateEReference(eDataSchemaEClass, EDATA_SCHEMA__ITEM);\n\n\t\teDomainSpecificEntityEClass = createEClass(EDOMAIN_SPECIFIC_ENTITY);\n\t\tcreateEAttribute(eDomainSpecificEntityEClass, EDOMAIN_SPECIFIC_ENTITY__COMMAND_PRIORITY);\n\t\tcreateEReference(eDomainSpecificEntityEClass, EDOMAIN_SPECIFIC_ENTITY__CMD);\n\n\t\teDomainSpecificCommandEClass = createEClass(EDOMAIN_SPECIFIC_COMMAND);\n\t\tcreateEAttribute(eDomainSpecificCommandEClass, EDOMAIN_SPECIFIC_COMMAND__CMD_ID);\n\n\t\teActorEClass = createEClass(EACTOR);\n\t\tcreateEAttribute(eActorEClass, EACTOR__KIND_INTERACTION);\n\t\tcreateEReference(eActorEClass, EACTOR__TYPES_CONTROLLED);\n\n\t\teItemEClass = createEClass(EITEM);\n\t\tcreateEAttribute(eItemEClass, EITEM__ARISING_BEHAVIOR);\n\t\tcreateEReference(eItemEClass, EITEM__TYPE);\n\n\t\teDomainSpecificTypeEClass = createEClass(EDOMAIN_SPECIFIC_TYPE);\n\t\tcreateEAttribute(eDomainSpecificTypeEClass, EDOMAIN_SPECIFIC_TYPE__INTERACTION_BEHAVIOR);\n\t\tcreateEAttribute(eDomainSpecificTypeEClass, EDOMAIN_SPECIFIC_TYPE__CARDINALITY);\n\n\t\t// Create enums\n\t\teArisingEEnum = createEEnum(EARISING);\n\t\teCardinalityEEnum = createEEnum(ECARDINALITY);\n\t\teInteractionBehaviorEEnum = createEEnum(EINTERACTION_BEHAVIOR);\n\t\teCoordinationBehaviorEEnum = createEEnum(ECOORDINATION_BEHAVIOR);\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\tqueryExpressionEClass = createEClass(QUERY_EXPRESSION);\n\n\t\tvalueExpressionEClass = createEClass(VALUE_EXPRESSION);\n\n\t\tsearchConditionEClass = createEClass(SEARCH_CONDITION);\n\n\t\tqueryExpressionDefaultEClass = createEClass(QUERY_EXPRESSION_DEFAULT);\n\t\tcreateEAttribute(queryExpressionDefaultEClass, QUERY_EXPRESSION_DEFAULT__SQL);\n\n\t\tsearchConditionDefaultEClass = createEClass(SEARCH_CONDITION_DEFAULT);\n\t\tcreateEAttribute(searchConditionDefaultEClass, SEARCH_CONDITION_DEFAULT__SQL);\n\n\t\tvalueExpressionDefaultEClass = createEClass(VALUE_EXPRESSION_DEFAULT);\n\t\tcreateEAttribute(valueExpressionDefaultEClass, VALUE_EXPRESSION_DEFAULT__SQL);\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\tliveScoreEClass = createEClass(LIVE_SCORE);\n\t\tcreateEReference(liveScoreEClass, LIVE_SCORE__PREFEREDPLAYER);\n\t\tcreateEAttribute(liveScoreEClass, LIVE_SCORE__SALONNAME);\n\n\t\tpreferedPlayerEClass = createEClass(PREFERED_PLAYER);\n\t\tcreateEAttribute(preferedPlayerEClass, PREFERED_PLAYER__NAME);\n\t\tcreateEAttribute(preferedPlayerEClass, PREFERED_PLAYER__WON);\n\t\tcreateEAttribute(preferedPlayerEClass, PREFERED_PLAYER__PLAYINGS);\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\tannotationEClass = createEClass(ANNOTATION);\n\t\tcreateEReference(annotationEClass, ANNOTATION__IMPLEMENTATIONS);\n\n\t\timplementationEClass = createEClass(IMPLEMENTATION);\n\t\tcreateEAttribute(implementationEClass, IMPLEMENTATION__CODE);\n\t\tcreateEReference(implementationEClass, IMPLEMENTATION__TECHNOLOGY);\n\t\tcreateEReference(implementationEClass, IMPLEMENTATION__LANGUAGE);\n\n\t\tsemanticsEClass = createEClass(SEMANTICS);\n\t\tcreateEReference(semanticsEClass, SEMANTICS__ANNOTATIONS);\n\t\tcreateEReference(semanticsEClass, SEMANTICS__LANGUAGES);\n\t\tcreateEReference(semanticsEClass, SEMANTICS__TECHNOLOGIES);\n\n\t\ttargetLanguageEClass = createEClass(TARGET_LANGUAGE);\n\n\t\ttechnologyEClass = createEClass(TECHNOLOGY);\n\n\t\tnamedElementEClass = createEClass(NAMED_ELEMENT);\n\t\tcreateEAttribute(namedElementEClass, NAMED_ELEMENT__NAME);\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\tpartyQualEClass = createEClass(PARTY_QUAL);\n\t\tcreateEReference(partyQualEClass, PARTY_QUAL__PARTY);\n\t\tcreateEReference(partyQualEClass, PARTY_QUAL__PARTY_QUAL_TYPE);\n\t\tcreateEAttribute(partyQualEClass, PARTY_QUAL__FROM_DATE);\n\t\tcreateEAttribute(partyQualEClass, PARTY_QUAL__QUALIFICATION_DESC);\n\t\tcreateEReference(partyQualEClass, PARTY_QUAL__STATUS);\n\t\tcreateEAttribute(partyQualEClass, PARTY_QUAL__THRU_DATE);\n\t\tcreateEAttribute(partyQualEClass, PARTY_QUAL__TITLE);\n\t\tcreateEReference(partyQualEClass, PARTY_QUAL__VERIF_STATUS);\n\n\t\tpartyQualTypeEClass = createEClass(PARTY_QUAL_TYPE);\n\t\tcreateEAttribute(partyQualTypeEClass, PARTY_QUAL_TYPE__PARTY_QUAL_TYPE_ID);\n\t\tcreateEAttribute(partyQualTypeEClass, PARTY_QUAL_TYPE__DESCRIPTION);\n\t\tcreateEAttribute(partyQualTypeEClass, PARTY_QUAL_TYPE__HAS_TABLE);\n\t\tcreateEReference(partyQualTypeEClass, PARTY_QUAL_TYPE__PARENT_TYPE);\n\n\t\tpartyResumeEClass = createEClass(PARTY_RESUME);\n\t\tcreateEAttribute(partyResumeEClass, PARTY_RESUME__RESUME_ID);\n\t\tcreateEReference(partyResumeEClass, PARTY_RESUME__CONTENT);\n\t\tcreateEReference(partyResumeEClass, PARTY_RESUME__PARTY);\n\t\tcreateEAttribute(partyResumeEClass, PARTY_RESUME__RESUME_DATE);\n\t\tcreateEAttribute(partyResumeEClass, PARTY_RESUME__RESUME_TEXT);\n\n\t\tpartySkillEClass = createEClass(PARTY_SKILL);\n\t\tcreateEReference(partySkillEClass, PARTY_SKILL__PARTY);\n\t\tcreateEReference(partySkillEClass, PARTY_SKILL__SKILL_TYPE);\n\t\tcreateEAttribute(partySkillEClass, PARTY_SKILL__RATING);\n\t\tcreateEAttribute(partySkillEClass, PARTY_SKILL__SKILL_LEVEL);\n\t\tcreateEAttribute(partySkillEClass, PARTY_SKILL__STARTED_USING_DATE);\n\t\tcreateEAttribute(partySkillEClass, PARTY_SKILL__YEARS_EXPERIENCE);\n\n\t\tperfRatingTypeEClass = createEClass(PERF_RATING_TYPE);\n\t\tcreateEAttribute(perfRatingTypeEClass, PERF_RATING_TYPE__PERF_RATING_TYPE_ID);\n\t\tcreateEAttribute(perfRatingTypeEClass, PERF_RATING_TYPE__DESCRIPTION);\n\t\tcreateEAttribute(perfRatingTypeEClass, PERF_RATING_TYPE__HAS_TABLE);\n\t\tcreateEReference(perfRatingTypeEClass, PERF_RATING_TYPE__PARENT_TYPE);\n\n\t\tperfReviewEClass = createEClass(PERF_REVIEW);\n\t\tcreateEReference(perfReviewEClass, PERF_REVIEW__EMPLOYEE_PARTY);\n\t\tcreateEAttribute(perfReviewEClass, PERF_REVIEW__EMPLOYEE_ROLE_TYPE_ID);\n\t\tcreateEAttribute(perfReviewEClass, PERF_REVIEW__PERF_REVIEW_ID);\n\t\tcreateEAttribute(perfReviewEClass, PERF_REVIEW__COMMENTS);\n\t\tcreateEReference(perfReviewEClass, PERF_REVIEW__EMPL_POSITION);\n\t\tcreateEAttribute(perfReviewEClass, PERF_REVIEW__FROM_DATE);\n\t\tcreateEReference(perfReviewEClass, PERF_REVIEW__MANAGER_PARTY);\n\t\tcreateEAttribute(perfReviewEClass, PERF_REVIEW__MANAGER_ROLE_TYPE_ID);\n\t\tcreateEReference(perfReviewEClass, PERF_REVIEW__PAYMENT);\n\t\tcreateEAttribute(perfReviewEClass, PERF_REVIEW__THRU_DATE);\n\n\t\tperfReviewItemEClass = createEClass(PERF_REVIEW_ITEM);\n\t\tcreateEReference(perfReviewItemEClass, PERF_REVIEW_ITEM__EMPLOYEE_PARTY);\n\t\tcreateEAttribute(perfReviewItemEClass, PERF_REVIEW_ITEM__EMPLOYEE_ROLE_TYPE_ID);\n\t\tcreateEAttribute(perfReviewItemEClass, PERF_REVIEW_ITEM__PERF_REVIEW_ID);\n\t\tcreateEAttribute(perfReviewItemEClass, PERF_REVIEW_ITEM__PERF_REVIEW_ITEM_SEQ_ID);\n\t\tcreateEAttribute(perfReviewItemEClass, PERF_REVIEW_ITEM__COMMENTS);\n\t\tcreateEReference(perfReviewItemEClass, PERF_REVIEW_ITEM__PERF_RATING_TYPE);\n\t\tcreateEReference(perfReviewItemEClass, PERF_REVIEW_ITEM__PERF_REVIEW_ITEM_TYPE);\n\n\t\tperfReviewItemTypeEClass = createEClass(PERF_REVIEW_ITEM_TYPE);\n\t\tcreateEAttribute(perfReviewItemTypeEClass, PERF_REVIEW_ITEM_TYPE__PERF_REVIEW_ITEM_TYPE_ID);\n\t\tcreateEAttribute(perfReviewItemTypeEClass, PERF_REVIEW_ITEM_TYPE__DESCRIPTION);\n\t\tcreateEAttribute(perfReviewItemTypeEClass, PERF_REVIEW_ITEM_TYPE__HAS_TABLE);\n\t\tcreateEReference(perfReviewItemTypeEClass, PERF_REVIEW_ITEM_TYPE__PARENT_TYPE);\n\n\t\tperformanceNoteEClass = createEClass(PERFORMANCE_NOTE);\n\t\tcreateEReference(performanceNoteEClass, PERFORMANCE_NOTE__PARTY);\n\t\tcreateEAttribute(performanceNoteEClass, PERFORMANCE_NOTE__FROM_DATE);\n\t\tcreateEAttribute(performanceNoteEClass, PERFORMANCE_NOTE__ROLE_TYPE_ID);\n\t\tcreateEAttribute(performanceNoteEClass, PERFORMANCE_NOTE__COMMENTS);\n\t\tcreateEAttribute(performanceNoteEClass, PERFORMANCE_NOTE__COMMUNICATION_DATE);\n\t\tcreateEAttribute(performanceNoteEClass, PERFORMANCE_NOTE__THRU_DATE);\n\n\t\tpersonTrainingEClass = createEClass(PERSON_TRAINING);\n\t\tcreateEReference(personTrainingEClass, PERSON_TRAINING__PARTY);\n\t\tcreateEReference(personTrainingEClass, PERSON_TRAINING__TRAINING_CLASS_TYPE);\n\t\tcreateEAttribute(personTrainingEClass, PERSON_TRAINING__FROM_DATE);\n\t\tcreateEAttribute(personTrainingEClass, PERSON_TRAINING__APPROVAL_STATUS);\n\t\tcreateEReference(personTrainingEClass, PERSON_TRAINING__APPROVER);\n\t\tcreateEAttribute(personTrainingEClass, PERSON_TRAINING__REASON);\n\t\tcreateEAttribute(personTrainingEClass, PERSON_TRAINING__THRU_DATE);\n\t\tcreateEReference(personTrainingEClass, PERSON_TRAINING__TRAINING_REQUEST);\n\t\tcreateEReference(personTrainingEClass, PERSON_TRAINING__WORK_EFFORT);\n\n\t\tresponsibilityTypeEClass = createEClass(RESPONSIBILITY_TYPE);\n\t\tcreateEAttribute(responsibilityTypeEClass, RESPONSIBILITY_TYPE__RESPONSIBILITY_TYPE_ID);\n\t\tcreateEAttribute(responsibilityTypeEClass, RESPONSIBILITY_TYPE__DESCRIPTION);\n\t\tcreateEAttribute(responsibilityTypeEClass, RESPONSIBILITY_TYPE__HAS_TABLE);\n\t\tcreateEReference(responsibilityTypeEClass, RESPONSIBILITY_TYPE__PARENT_TYPE);\n\n\t\tskillTypeEClass = createEClass(SKILL_TYPE);\n\t\tcreateEAttribute(skillTypeEClass, SKILL_TYPE__SKILL_TYPE_ID);\n\t\tcreateEAttribute(skillTypeEClass, SKILL_TYPE__DESCRIPTION);\n\t\tcreateEAttribute(skillTypeEClass, SKILL_TYPE__HAS_TABLE);\n\t\tcreateEReference(skillTypeEClass, SKILL_TYPE__PARENT_TYPE);\n\n\t\ttrainingClassTypeEClass = createEClass(TRAINING_CLASS_TYPE);\n\t\tcreateEAttribute(trainingClassTypeEClass, TRAINING_CLASS_TYPE__TRAINING_CLASS_TYPE_ID);\n\t\tcreateEAttribute(trainingClassTypeEClass, TRAINING_CLASS_TYPE__DESCRIPTION);\n\t\tcreateEAttribute(trainingClassTypeEClass, TRAINING_CLASS_TYPE__HAS_TABLE);\n\t\tcreateEReference(trainingClassTypeEClass, TRAINING_CLASS_TYPE__PARENT_TYPE);\n\t}", "public void createPackageContents() {\r\n\t\tif (isCreated) return;\r\n\t\tisCreated = true;\r\n\r\n\t\t// Create classes and their features\r\n\t\tgemmaEClass = createEClass(GEMMA);\r\n\t\tcreateEReference(gemmaEClass, GEMMA__MACRO_OMS);\r\n\t\tcreateEReference(gemmaEClass, GEMMA__TRANSICIONES);\r\n\t\tcreateEReference(gemmaEClass, GEMMA__VARIABLES_GEMMA);\r\n\r\n\t\tmacroOmEClass = createEClass(MACRO_OM);\r\n\t\tcreateEAttribute(macroOmEClass, MACRO_OM__NAME);\r\n\t\tcreateEAttribute(macroOmEClass, MACRO_OM__TIPO);\r\n\t\tcreateEReference(macroOmEClass, MACRO_OM__OMS);\r\n\r\n\t\tomEClass = createEClass(OM);\r\n\t\tcreateEAttribute(omEClass, OM__NAME);\r\n\t\tcreateEAttribute(omEClass, OM__TIPO);\r\n\t\tcreateEAttribute(omEClass, OM__ES_OM_RAIZ);\r\n\t\tcreateEReference(omEClass, OM__VARIABLES_OM);\r\n\t\tcreateEAttribute(omEClass, OM__ES_VISIBLE);\r\n\r\n\t\ttrasicionEntreOmOmEClass = createEClass(TRASICION_ENTRE_OM_OM);\r\n\t\tcreateEReference(trasicionEntreOmOmEClass, TRASICION_ENTRE_OM_OM__ORIGEN);\r\n\t\tcreateEReference(trasicionEntreOmOmEClass, TRASICION_ENTRE_OM_OM__DESTINO);\r\n\r\n\t\ttransicionEntreMacroOmOmEClass = createEClass(TRANSICION_ENTRE_MACRO_OM_OM);\r\n\t\tcreateEReference(transicionEntreMacroOmOmEClass, TRANSICION_ENTRE_MACRO_OM_OM__ORIGEN);\r\n\t\tcreateEReference(transicionEntreMacroOmOmEClass, TRANSICION_ENTRE_MACRO_OM_OM__DESTINO);\r\n\r\n\t\texpresionBinariaEClass = createEClass(EXPRESION_BINARIA);\r\n\t\tcreateEReference(expresionBinariaEClass, EXPRESION_BINARIA__EXPRESION_IZQUIERDA);\r\n\t\tcreateEReference(expresionBinariaEClass, EXPRESION_BINARIA__EXPRESION_DERECHA);\r\n\t\tcreateEAttribute(expresionBinariaEClass, EXPRESION_BINARIA__OPERADOR);\r\n\r\n\t\telementoExpresionEClass = createEClass(ELEMENTO_EXPRESION);\r\n\r\n\t\tvariableOmEClass = createEClass(VARIABLE_OM);\r\n\t\tcreateEAttribute(variableOmEClass, VARIABLE_OM__NAME);\r\n\r\n\t\ttransicionEClass = createEClass(TRANSICION);\r\n\t\tcreateEAttribute(transicionEClass, TRANSICION__NAME);\r\n\t\tcreateEReference(transicionEClass, TRANSICION__ELEMENTO_EXPRESION);\r\n\r\n\t\tvariableGemmaEClass = createEClass(VARIABLE_GEMMA);\r\n\t\tcreateEAttribute(variableGemmaEClass, VARIABLE_GEMMA__NAME);\r\n\r\n\t\trefVariableGemmaEClass = createEClass(REF_VARIABLE_GEMMA);\r\n\t\tcreateEReference(refVariableGemmaEClass, REF_VARIABLE_GEMMA__VARIABLE_GEMMA);\r\n\t\tcreateEAttribute(refVariableGemmaEClass, REF_VARIABLE_GEMMA__NIVEL_DE_ESCRITURA);\r\n\r\n\t\texpresionNotEClass = createEClass(EXPRESION_NOT);\r\n\t\tcreateEReference(expresionNotEClass, EXPRESION_NOT__ELEMENTO_EXPRESION);\r\n\r\n\t\trefVariableOmEClass = createEClass(REF_VARIABLE_OM);\r\n\t\tcreateEReference(refVariableOmEClass, REF_VARIABLE_OM__VARIABLE_OM);\r\n\r\n\t\texpresionConjuntaEClass = createEClass(EXPRESION_CONJUNTA);\r\n\t\tcreateEReference(expresionConjuntaEClass, EXPRESION_CONJUNTA__ELEMENTO_EXPRESION);\r\n\r\n\t\t// Create enums\r\n\t\ttipoOmEEnum = createEEnum(TIPO_OM);\r\n\t\ttipoMacroOmEEnum = createEEnum(TIPO_MACRO_OM);\r\n\t\ttipoOperadorEEnum = createEEnum(TIPO_OPERADOR);\r\n\t\tnivelDeEscrituraEEnum = createEEnum(NIVEL_DE_ESCRITURA);\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}", "public void createPackageContents()\n {\n if (isCreated) return;\n isCreated = true;\n\n // Create classes and their features\n persistEClass = createEClass(PERSIST);\n createEAttribute(persistEClass, PERSIST__MODEL);\n createEReference(persistEClass, PERSIST__STATEMENTS);\n\n ruleStatementEClass = createEClass(RULE_STATEMENT);\n createEAttribute(ruleStatementEClass, RULE_STATEMENT__ID);\n createEReference(ruleStatementEClass, RULE_STATEMENT__RULES);\n\n forEachStatementEClass = createEClass(FOR_EACH_STATEMENT);\n createEReference(forEachStatementEClass, FOR_EACH_STATEMENT__CLASS);\n createEReference(forEachStatementEClass, FOR_EACH_STATEMENT__CONTENTS);\n createEReference(forEachStatementEClass, FOR_EACH_STATEMENT__CALLS);\n\n createStatementEClass = createEClass(CREATE_STATEMENT);\n createEReference(createStatementEClass, CREATE_STATEMENT__NAME);\n\n createFolderStatementEClass = createEClass(CREATE_FOLDER_STATEMENT);\n createEReference(createFolderStatementEClass, CREATE_FOLDER_STATEMENT__CONTENTS);\n createEReference(createFolderStatementEClass, CREATE_FOLDER_STATEMENT__CALLS);\n\n createFileStatementEClass = createEClass(CREATE_FILE_STATEMENT);\n createEReference(createFileStatementEClass, CREATE_FILE_STATEMENT__INCLUDED_REFERENCING);\n createEReference(createFileStatementEClass, CREATE_FILE_STATEMENT__INCLUDED_ATTRIBUTES);\n\n fileNameEClass = createEClass(FILE_NAME);\n createEAttribute(fileNameEClass, FILE_NAME__PREFIX);\n createEReference(fileNameEClass, FILE_NAME__ATTR);\n createEReference(fileNameEClass, FILE_NAME__RIGHT);\n\n includeStatementEClass = createEClass(INCLUDE_STATEMENT);\n createEReference(includeStatementEClass, INCLUDE_STATEMENT__INCLUDED);\n\n withStatementEClass = createEClass(WITH_STATEMENT);\n createEReference(withStatementEClass, WITH_STATEMENT__INCLUDED);\n\n callStatementEClass = createEClass(CALL_STATEMENT);\n createEAttribute(callStatementEClass, CALL_STATEMENT__RULES);\n\n eClassNameEClass = createEClass(ECLASS_NAME);\n createEAttribute(eClassNameEClass, ECLASS_NAME__BASE);\n createEAttribute(eClassNameEClass, ECLASS_NAME__FIELDS);\n\n eAttributeNameEClass = createEClass(EATTRIBUTE_NAME);\n createEAttribute(eAttributeNameEClass, EATTRIBUTE_NAME__BASE);\n createEAttribute(eAttributeNameEClass, EATTRIBUTE_NAME__FIELDS);\n\n eReferenceNameEClass = createEClass(EREFERENCE_NAME);\n createEAttribute(eReferenceNameEClass, EREFERENCE_NAME__BASE);\n createEAttribute(eReferenceNameEClass, EREFERENCE_NAME__FIELDS);\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 createPackageContents()\r\n {\r\n if (isCreated) return;\r\n isCreated = true;\r\n\r\n // Create classes and their features\r\n productEClass = createEClass(PRODUCT);\r\n createEAttribute(productEClass, PRODUCT__PRICE);\r\n createEAttribute(productEClass, PRODUCT__NAME);\r\n createEAttribute(productEClass, PRODUCT__ID);\r\n createEReference(productEClass, PRODUCT__PRODUCER);\r\n createEReference(productEClass, PRODUCT__WISHLISTS);\r\n createEReference(productEClass, PRODUCT__OFFERED_BY);\r\n\r\n customerEClass = createEClass(CUSTOMER);\r\n createEReference(customerEClass, CUSTOMER__ALL_BOUGHT_PRODUCTS);\r\n createEAttribute(customerEClass, CUSTOMER__NAME);\r\n createEAttribute(customerEClass, CUSTOMER__AGE);\r\n createEAttribute(customerEClass, CUSTOMER__ID);\r\n createEReference(customerEClass, CUSTOMER__WISHLISTS);\r\n createEAttribute(customerEClass, CUSTOMER__USERNAME);\r\n\r\n producerEClass = createEClass(PRODUCER);\r\n createEAttribute(producerEClass, PRODUCER__ID);\r\n createEAttribute(producerEClass, PRODUCER__NAME);\r\n createEReference(producerEClass, PRODUCER__PRODUCTS);\r\n\r\n storeEClass = createEClass(STORE);\r\n createEReference(storeEClass, STORE__CUSTOMERS);\r\n createEReference(storeEClass, STORE__PRODUCTS);\r\n createEReference(storeEClass, STORE__PRODUCERS);\r\n createEReference(storeEClass, STORE__SELLERS);\r\n\r\n bookEClass = createEClass(BOOK);\r\n createEAttribute(bookEClass, BOOK__AUTHOR);\r\n\r\n dvdEClass = createEClass(DVD);\r\n createEAttribute(dvdEClass, DVD__INTERPRET);\r\n\r\n wishlistEClass = createEClass(WISHLIST);\r\n createEReference(wishlistEClass, WISHLIST__PRODUCTS);\r\n\r\n sellerEClass = createEClass(SELLER);\r\n createEAttribute(sellerEClass, SELLER__NAME);\r\n createEAttribute(sellerEClass, SELLER__ID);\r\n createEAttribute(sellerEClass, SELLER__USERNAME);\r\n createEReference(sellerEClass, SELLER__ALL_PRODUCTS_TO_SELL);\r\n createEReference(sellerEClass, SELLER__EREFERENCE0);\r\n createEReference(sellerEClass, SELLER__SOLD_PRODUCTS);\r\n }", "public void createPackageContents() {\n\t\tif (isCreated)\n\t\t\treturn;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tuserEClass = createEClass(USER);\n\t\tcreateEAttribute(userEClass, USER__NAME);\n\t\tcreateEReference(userEClass, USER__UR);\n\n\t\troleEClass = createEClass(ROLE);\n\t\tcreateEAttribute(roleEClass, ROLE__NAME);\n\t\tcreateEReference(roleEClass, ROLE__RD);\n\t\tcreateEReference(roleEClass, ROLE__SENIORS);\n\t\tcreateEReference(roleEClass, ROLE__JUNIORS);\n\t\tcreateEReference(roleEClass, ROLE__RU);\n\n\t\tpermissionEClass = createEClass(PERMISSION);\n\t\tcreateEAttribute(permissionEClass, PERMISSION__NAME);\n\t\tcreateEReference(permissionEClass, PERMISSION__PD);\n\n\t\tpolicyEClass = createEClass(POLICY);\n\t\tcreateEReference(policyEClass, POLICY__USERS);\n\t\tcreateEReference(policyEClass, POLICY__ROLES);\n\t\tcreateEReference(policyEClass, POLICY__PERMISSIONS);\n\t\tcreateEAttribute(policyEClass, POLICY__NAME);\n\t\tcreateEReference(policyEClass, POLICY__DEMARCATIONS);\n\n\t\tdemarcationEClass = createEClass(DEMARCATION);\n\t\tcreateEAttribute(demarcationEClass, DEMARCATION__NAME);\n\t\tcreateEReference(demarcationEClass, DEMARCATION__DP);\n\t\tcreateEReference(demarcationEClass, DEMARCATION__SUBS);\n\t\tcreateEReference(demarcationEClass, DEMARCATION__SUPS);\n\t\tcreateEReference(demarcationEClass, DEMARCATION__DR);\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\ttreeEClass = createEClass(TREE);\n\t\tcreateEReference(treeEClass, TREE__CHILDREN);\n\n\t\tnodeEClass = createEClass(NODE);\n\t\tcreateEReference(nodeEClass, NODE__CHILDREN);\n\t\tcreateEAttribute(nodeEClass, NODE__NAME);\n\t}", "public void createPackageContents() {\r\n\t\tif (isCreated) return;\r\n\t\tisCreated = true;\r\n\r\n\t\t// Create classes and their features\r\n\t\tbankEClass = createEClass(BANK);\r\n\t\tcreateEReference(bankEClass, BANK__MANAGERS);\r\n\t\tcreateEReference(bankEClass, BANK__ACCOUNTS);\r\n\t\tcreateEReference(bankEClass, BANK__CLIENTS);\r\n\r\n\t\tclientEClass = createEClass(CLIENT);\r\n\t\tcreateEReference(clientEClass, CLIENT__MANAGER);\r\n\t\tcreateEReference(clientEClass, CLIENT__ACCOUNTS);\r\n\t\tcreateEAttribute(clientEClass, CLIENT__NAME);\r\n\t\tcreateEReference(clientEClass, CLIENT__SPONSORSHIPS);\r\n\t\tcreateEAttribute(clientEClass, CLIENT__CAPACITY);\r\n\r\n\t\tmanagerEClass = createEClass(MANAGER);\r\n\t\tcreateEReference(managerEClass, MANAGER__CLIENTS);\r\n\t\tcreateEAttribute(managerEClass, MANAGER__NAME);\r\n\r\n\t\taccountEClass = createEClass(ACCOUNT);\r\n\t\tcreateEReference(accountEClass, ACCOUNT__OWNERS);\r\n\t\tcreateEAttribute(accountEClass, ACCOUNT__CREDIT);\r\n\t\tcreateEAttribute(accountEClass, ACCOUNT__OVERDRAFT);\r\n\t\tcreateEReference(accountEClass, ACCOUNT__CARDS);\r\n\r\n\t\tcardEClass = createEClass(CARD);\r\n\t\tcreateEAttribute(cardEClass, CARD__NUMBER);\r\n\t\tcreateEAttribute(cardEClass, CARD__TYPE);\r\n\r\n\t\t// Create enums\r\n\t\tcardTypeEEnum = createEEnum(CARD_TYPE);\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\tbaseElementEClass = createEClass(BASE_ELEMENT);\n\t\tcreateEReference(baseElementEClass, BASE_ELEMENT__KEY_VALUE_MAPS);\n\t\tcreateEAttribute(baseElementEClass, BASE_ELEMENT__ID);\n\t\tcreateEAttribute(baseElementEClass, BASE_ELEMENT__NAME);\n\t\tcreateEAttribute(baseElementEClass, BASE_ELEMENT__DESCRIPTION);\n\n\t\tkeyValueMapEClass = createEClass(KEY_VALUE_MAP);\n\t\tcreateEAttribute(keyValueMapEClass, KEY_VALUE_MAP__KEY);\n\t\tcreateEReference(keyValueMapEClass, KEY_VALUE_MAP__VALUES);\n\n\t\tvalueEClass = createEClass(VALUE);\n\t\tcreateEAttribute(valueEClass, VALUE__TAG);\n\t\tcreateEAttribute(valueEClass, VALUE__VALUE);\n\n\t\t// Create enums\n\t\ttimeUnitEEnum = createEEnum(TIME_UNIT);\n\t}", "public void createPackageContents()\n {\n if (isCreated) return;\n isCreated = true;\n\n // Create classes and their features\n mathExpEClass = createEClass(MATH_EXP);\n createEReference(mathExpEClass, MATH_EXP__DECLARATIONS);\n\n declarationEClass = createEClass(DECLARATION);\n\n externalDefEClass = createEClass(EXTERNAL_DEF);\n createEAttribute(externalDefEClass, EXTERNAL_DEF__NAME);\n createEReference(externalDefEClass, EXTERNAL_DEF__PARAMETERS);\n\n parameterEClass = createEClass(PARAMETER);\n createEReference(parameterEClass, PARAMETER__TYPE);\n createEAttribute(parameterEClass, PARAMETER__PARAMETER_NAME);\n\n typeEClass = createEClass(TYPE);\n createEAttribute(typeEClass, TYPE__NAME);\n\n resultStatementEClass = createEClass(RESULT_STATEMENT);\n createEAttribute(resultStatementEClass, RESULT_STATEMENT__LABEL);\n createEReference(resultStatementEClass, RESULT_STATEMENT__EXP);\n\n expressionEClass = createEClass(EXPRESSION);\n\n plusEClass = createEClass(PLUS);\n createEReference(plusEClass, PLUS__LEFT);\n createEReference(plusEClass, PLUS__RIGHT);\n\n minusEClass = createEClass(MINUS);\n createEReference(minusEClass, MINUS__LEFT);\n createEReference(minusEClass, MINUS__RIGHT);\n\n multEClass = createEClass(MULT);\n createEReference(multEClass, MULT__LEFT);\n createEReference(multEClass, MULT__RIGHT);\n\n divEClass = createEClass(DIV);\n createEReference(divEClass, DIV__LEFT);\n createEReference(divEClass, DIV__RIGHT);\n\n varEClass = createEClass(VAR);\n createEAttribute(varEClass, VAR__ID);\n\n letEClass = createEClass(LET);\n createEAttribute(letEClass, LET__ID);\n createEReference(letEClass, LET__BINDING);\n createEReference(letEClass, LET__BODY);\n\n externalUseEClass = createEClass(EXTERNAL_USE);\n createEReference(externalUseEClass, EXTERNAL_USE__EXTERNAL);\n createEReference(externalUseEClass, EXTERNAL_USE__ARGUMENTS);\n\n numEClass = createEClass(NUM);\n createEAttribute(numEClass, NUM__VALUE);\n }", "public void createPackageContents() {\n\t\tif (isCreated)\n\t\t\treturn;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tbagTypeEClass = createEClass(BAG_TYPE);\n\n\t\ttupleTypeEClass = createEClass(TUPLE_TYPE);\n\t\tcreateEReference(tupleTypeEClass, TUPLE_TYPE__OCL_LIBRARY);\n\n\t\tcollectionTypeEClass = createEClass(COLLECTION_TYPE);\n\t\tcreateEReference(collectionTypeEClass, COLLECTION_TYPE__ELEMENT_TYPE);\n\t\tcreateEReference(collectionTypeEClass, COLLECTION_TYPE__OCL_LIBRARY);\n\t\tcreateEAttribute(collectionTypeEClass, COLLECTION_TYPE__KIND);\n\n\t\tinvalidTypeEClass = createEClass(INVALID_TYPE);\n\t\tcreateEReference(invalidTypeEClass, INVALID_TYPE__OCL_LIBRARY);\n\n\t\torderedSetTypeEClass = createEClass(ORDERED_SET_TYPE);\n\n\t\tsequenceTypeEClass = createEClass(SEQUENCE_TYPE);\n\n\t\tsetTypeEClass = createEClass(SET_TYPE);\n\n\t\tvoidTypeEClass = createEClass(VOID_TYPE);\n\t\tcreateEReference(voidTypeEClass, VOID_TYPE__OCL_LIBRARY);\n\n\t\ttypeTypeEClass = createEClass(TYPE_TYPE);\n\t\tcreateEReference(typeTypeEClass, TYPE_TYPE__REPRESENTED_TYPE);\n\n\t\toclLibraryEClass = createEClass(OCL_LIBRARY);\n\t\tcreateEReference(oclLibraryEClass, OCL_LIBRARY__OCL_BOOLEAN);\n\t\tcreateEReference(oclLibraryEClass, OCL_LIBRARY__OCL_STRING);\n\t\tcreateEReference(oclLibraryEClass, OCL_LIBRARY__OCL_INTEGER);\n\t\tcreateEReference(oclLibraryEClass, OCL_LIBRARY__OCL_REAL);\n\t\tcreateEReference(oclLibraryEClass, OCL_LIBRARY__OCL_ANY);\n\t\tcreateEReference(oclLibraryEClass, OCL_LIBRARY__OCL_VOID);\n\t\tcreateEReference(oclLibraryEClass, OCL_LIBRARY__OCL_INVALID);\n\t\tcreateEReference(oclLibraryEClass, OCL_LIBRARY__OCL_TYPE);\n\t\tcreateEReference(oclLibraryEClass, OCL_LIBRARY__OCL_COLLECTION);\n\t\tcreateEReference(oclLibraryEClass, OCL_LIBRARY__OCL_SEQUENCE);\n\t\tcreateEReference(oclLibraryEClass, OCL_LIBRARY__OCL_BAG);\n\t\tcreateEReference(oclLibraryEClass, OCL_LIBRARY__OCL_SET);\n\t\tcreateEReference(oclLibraryEClass, OCL_LIBRARY__OCL_ORDERED_SET);\n\t\tcreateEReference(oclLibraryEClass, OCL_LIBRARY__OCL_TUPLE);\n\n\t\tanyTypeEClass = createEClass(ANY_TYPE);\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\troleEClass = createEClass(ROLE);\n\t\tcreateEReference(roleEClass, ROLE__SOCIETY);\n\t\tcreateEReference(roleEClass, ROLE__IS_REALIZED_BY_INDIVIDUAL);\n\t\tcreateEReference(roleEClass, ROLE__PARENT);\n\t\tcreateEReference(roleEClass, ROLE__CHILDREN);\n\t\tcreateEAttribute(roleEClass, ROLE__ID);\n\t\tcreateEAttribute(roleEClass, ROLE__NAME);\n\n\t\tindividualRealizationEClass = createEClass(INDIVIDUAL_REALIZATION);\n\t\tcreateEReference(individualRealizationEClass, INDIVIDUAL_REALIZATION__TARGET);\n\t\tcreateEReference(individualRealizationEClass, INDIVIDUAL_REALIZATION__SOURCE);\n\t\tcreateEReference(individualRealizationEClass, INDIVIDUAL_REALIZATION__SOCIETY);\n\t\tcreateEAttribute(individualRealizationEClass, INDIVIDUAL_REALIZATION__ID);\n\n\t\tsocietyEClass = createEClass(SOCIETY);\n\t\tcreateEReference(societyEClass, SOCIETY__GENERALIZATIONS);\n\t\tcreateEReference(societyEClass, SOCIETY__RELAIZATIONS);\n\t\tcreateEReference(societyEClass, SOCIETY__INDIVIDUALS);\n\t\tcreateEAttribute(societyEClass, SOCIETY__NAME);\n\t\tcreateEReference(societyEClass, SOCIETY__ROLES);\n\n\t\tspecializationEClass = createEClass(SPECIALIZATION);\n\t\tcreateEReference(specializationEClass, SPECIALIZATION__TARGET);\n\t\tcreateEReference(specializationEClass, SPECIALIZATION__SOURCE);\n\t\tcreateEReference(specializationEClass, SPECIALIZATION__SOCIETY);\n\t\tcreateEAttribute(specializationEClass, SPECIALIZATION__ID);\n\n\t\tindividualInstanceEClass = createEClass(INDIVIDUAL_INSTANCE);\n\t\tcreateEReference(individualInstanceEClass, INDIVIDUAL_INSTANCE__REALIZES);\n\t\tcreateEAttribute(individualInstanceEClass, INDIVIDUAL_INSTANCE__ID);\n\t\tcreateEAttribute(individualInstanceEClass, INDIVIDUAL_INSTANCE__NAME);\n\t\tcreateEReference(individualInstanceEClass, INDIVIDUAL_INSTANCE__SOCIETY);\n\n\t\tsocialInstanceEClass = createEClass(SOCIAL_INSTANCE);\n\t\tcreateEOperation(socialInstanceEClass, SOCIAL_INSTANCE___GET_ID);\n\t\tcreateEOperation(socialInstanceEClass, SOCIAL_INSTANCE___GET_NAME);\n\t}", "public void createPackageContents() {\n\t\tif (isCreated)\n\t\t\treturn;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tprojectEClass = createEClass(PROJECT);\n\t\tcreateEReference(projectEClass, PROJECT__PLUGINS);\n\t\tcreateEAttribute(projectEClass, PROJECT__NAME);\n\t\tcreateEReference(projectEClass, PROJECT__REPOSITORIES);\n\t\tcreateEReference(projectEClass, PROJECT__DEPENDENCIES);\n\t\tcreateEReference(projectEClass, PROJECT__VIEWS);\n\t\tcreateEReference(projectEClass, PROJECT__PROPERTIES);\n\n\t\tpluginEClass = createEClass(PLUGIN);\n\t\tcreateEReference(pluginEClass, PLUGIN__REPOSITORIES);\n\t\tcreateEReference(pluginEClass, PLUGIN__OUTPUT_PORTS);\n\t\tcreateEReference(pluginEClass, PLUGIN__DISPLAYS);\n\n\t\tportEClass = createEClass(PORT);\n\t\tcreateEAttribute(portEClass, PORT__NAME);\n\t\tcreateEAttribute(portEClass, PORT__EVENT_TYPES);\n\t\tcreateEAttribute(portEClass, PORT__ID);\n\n\t\tinputPortEClass = createEClass(INPUT_PORT);\n\t\tcreateEReference(inputPortEClass, INPUT_PORT__PARENT);\n\n\t\toutputPortEClass = createEClass(OUTPUT_PORT);\n\t\tcreateEReference(outputPortEClass, OUTPUT_PORT__SUBSCRIBERS);\n\t\tcreateEReference(outputPortEClass, OUTPUT_PORT__PARENT);\n\n\t\tpropertyEClass = createEClass(PROPERTY);\n\t\tcreateEAttribute(propertyEClass, PROPERTY__NAME);\n\t\tcreateEAttribute(propertyEClass, PROPERTY__VALUE);\n\n\t\tfilterEClass = createEClass(FILTER);\n\t\tcreateEReference(filterEClass, FILTER__INPUT_PORTS);\n\n\t\treaderEClass = createEClass(READER);\n\n\t\trepositoryEClass = createEClass(REPOSITORY);\n\n\t\tdependencyEClass = createEClass(DEPENDENCY);\n\t\tcreateEAttribute(dependencyEClass, DEPENDENCY__FILE_PATH);\n\n\t\trepositoryConnectorEClass = createEClass(REPOSITORY_CONNECTOR);\n\t\tcreateEAttribute(repositoryConnectorEClass, REPOSITORY_CONNECTOR__NAME);\n\t\tcreateEReference(repositoryConnectorEClass, REPOSITORY_CONNECTOR__REPOSITORY);\n\t\tcreateEAttribute(repositoryConnectorEClass, REPOSITORY_CONNECTOR__ID);\n\n\t\tdisplayEClass = createEClass(DISPLAY);\n\t\tcreateEAttribute(displayEClass, DISPLAY__NAME);\n\t\tcreateEReference(displayEClass, DISPLAY__PARENT);\n\t\tcreateEAttribute(displayEClass, DISPLAY__ID);\n\n\t\tviewEClass = createEClass(VIEW);\n\t\tcreateEAttribute(viewEClass, VIEW__NAME);\n\t\tcreateEAttribute(viewEClass, VIEW__DESCRIPTION);\n\t\tcreateEReference(viewEClass, VIEW__DISPLAY_CONNECTORS);\n\t\tcreateEAttribute(viewEClass, VIEW__ID);\n\n\t\tdisplayConnectorEClass = createEClass(DISPLAY_CONNECTOR);\n\t\tcreateEAttribute(displayConnectorEClass, DISPLAY_CONNECTOR__NAME);\n\t\tcreateEReference(displayConnectorEClass, DISPLAY_CONNECTOR__DISPLAY);\n\t\tcreateEAttribute(displayConnectorEClass, DISPLAY_CONNECTOR__ID);\n\n\t\tanalysisComponentEClass = createEClass(ANALYSIS_COMPONENT);\n\t\tcreateEAttribute(analysisComponentEClass, ANALYSIS_COMPONENT__NAME);\n\t\tcreateEAttribute(analysisComponentEClass, ANALYSIS_COMPONENT__CLASSNAME);\n\t\tcreateEReference(analysisComponentEClass, ANALYSIS_COMPONENT__PROPERTIES);\n\t\tcreateEAttribute(analysisComponentEClass, ANALYSIS_COMPONENT__ID);\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\tstateEClass = createEClass(STATE);\n\t\tcreateEAttribute(stateEClass, STATE__NAME);\n\t\tcreateEAttribute(stateEClass, STATE__INVARIANT);\n\t\tcreateEAttribute(stateEClass, STATE__INITIAL);\n\t\tcreateEAttribute(stateEClass, STATE__URGENT);\n\t\tcreateEAttribute(stateEClass, STATE__COMMITTED);\n\n\t\tconnectorEClass = createEClass(CONNECTOR);\n\t\tcreateEAttribute(connectorEClass, CONNECTOR__NAME);\n\t\tcreateEReference(connectorEClass, CONNECTOR__DIAGRAM);\n\n\t\tdiagramEClass = createEClass(DIAGRAM);\n\t\tcreateEAttribute(diagramEClass, DIAGRAM__NAME);\n\t\tcreateEReference(diagramEClass, DIAGRAM__CONNECTORS);\n\t\tcreateEReference(diagramEClass, DIAGRAM__STATES);\n\t\tcreateEReference(diagramEClass, DIAGRAM__SUBDIAGRAMS);\n\t\tcreateEReference(diagramEClass, DIAGRAM__EDGES);\n\t\tcreateEAttribute(diagramEClass, DIAGRAM__IS_PARALLEL);\n\n\t\tedgeEClass = createEClass(EDGE);\n\t\tcreateEReference(edgeEClass, EDGE__START);\n\t\tcreateEReference(edgeEClass, EDGE__END);\n\t\tcreateEReference(edgeEClass, EDGE__EREFERENCE0);\n\t\tcreateEAttribute(edgeEClass, EDGE__SELECT);\n\t\tcreateEAttribute(edgeEClass, EDGE__GUARD);\n\t\tcreateEAttribute(edgeEClass, EDGE__SYNC);\n\t\tcreateEAttribute(edgeEClass, EDGE__UPDATE);\n\t\tcreateEAttribute(edgeEClass, EDGE__COMMENTS);\n\n\t\tendPointEClass = createEClass(END_POINT);\n\t\tcreateEReference(endPointEClass, END_POINT__OUTGOING_EDGES);\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\telementEClass = createEClass(ELEMENT);\n\t\tcreateEOperation(elementEClass, ELEMENT___GET_ONTOLOGY);\n\t\tcreateEOperation(elementEClass, ELEMENT___EXTRA_VALIDATE__DIAGNOSTICCHAIN_MAP);\n\n\t\tannotationEClass = createEClass(ANNOTATION);\n\t\tcreateEReference(annotationEClass, ANNOTATION__PROPERTY);\n\t\tcreateEReference(annotationEClass, ANNOTATION__LITERAL_VALUE);\n\t\tcreateEReference(annotationEClass, ANNOTATION__REFERENCE_VALUE);\n\t\tcreateEReference(annotationEClass, ANNOTATION__OWNING_ELEMENT);\n\t\tcreateEOperation(annotationEClass, ANNOTATION___GET_VALUE);\n\t\tcreateEOperation(annotationEClass, ANNOTATION___GET_ANNOTATED_ELEMENT);\n\n\t\tidentifiedElementEClass = createEClass(IDENTIFIED_ELEMENT);\n\t\tcreateEReference(identifiedElementEClass, IDENTIFIED_ELEMENT__OWNED_ANNOTATIONS);\n\t\tcreateEOperation(identifiedElementEClass, IDENTIFIED_ELEMENT___GET_IRI);\n\n\t\timportEClass = createEClass(IMPORT);\n\t\tcreateEAttribute(importEClass, IMPORT__KIND);\n\t\tcreateEAttribute(importEClass, IMPORT__NAMESPACE);\n\t\tcreateEAttribute(importEClass, IMPORT__PREFIX);\n\t\tcreateEReference(importEClass, IMPORT__OWNING_ONTOLOGY);\n\t\tcreateEOperation(importEClass, IMPORT___GET_IRI);\n\t\tcreateEOperation(importEClass, IMPORT___GET_SEPARATOR);\n\n\t\tinstanceEClass = createEClass(INSTANCE);\n\t\tcreateEReference(instanceEClass, INSTANCE__OWNED_PROPERTY_VALUES);\n\n\t\taxiomEClass = createEClass(AXIOM);\n\t\tcreateEOperation(axiomEClass, AXIOM___GET_CHARACTERIZED_TERM);\n\n\t\tassertionEClass = createEClass(ASSERTION);\n\t\tcreateEOperation(assertionEClass, ASSERTION___GET_SUBJECT);\n\t\tcreateEOperation(assertionEClass, ASSERTION___GET_OBJECT);\n\n\t\tpredicateEClass = createEClass(PREDICATE);\n\t\tcreateEReference(predicateEClass, PREDICATE__ANTECEDENT_RULE);\n\t\tcreateEReference(predicateEClass, PREDICATE__CONSEQUENT_RULE);\n\n\t\targumentEClass = createEClass(ARGUMENT);\n\t\tcreateEAttribute(argumentEClass, ARGUMENT__VARIABLE);\n\t\tcreateEReference(argumentEClass, ARGUMENT__LITERAL);\n\t\tcreateEReference(argumentEClass, ARGUMENT__INSTANCE);\n\n\t\tliteralEClass = createEClass(LITERAL);\n\t\tcreateEOperation(literalEClass, LITERAL___GET_VALUE);\n\t\tcreateEOperation(literalEClass, LITERAL___GET_STRING_VALUE);\n\t\tcreateEOperation(literalEClass, LITERAL___GET_LEXICAL_VALUE);\n\t\tcreateEOperation(literalEClass, LITERAL___GET_TYPE_IRI);\n\n\t\tontologyEClass = createEClass(ONTOLOGY);\n\t\tcreateEAttribute(ontologyEClass, ONTOLOGY__NAMESPACE);\n\t\tcreateEAttribute(ontologyEClass, ONTOLOGY__PREFIX);\n\t\tcreateEReference(ontologyEClass, ONTOLOGY__OWNED_IMPORTS);\n\t\tcreateEOperation(ontologyEClass, ONTOLOGY___GET_IRI);\n\t\tcreateEOperation(ontologyEClass, ONTOLOGY___GET_SEPARATOR);\n\n\t\tmemberEClass = createEClass(MEMBER);\n\t\tcreateEAttribute(memberEClass, MEMBER__NAME);\n\t\tcreateEOperation(memberEClass, MEMBER___GET_REF);\n\t\tcreateEOperation(memberEClass, MEMBER___IS_REF);\n\t\tcreateEOperation(memberEClass, MEMBER___RESOLVE);\n\t\tcreateEOperation(memberEClass, MEMBER___GET_IRI);\n\t\tcreateEOperation(memberEClass, MEMBER___GET_ABBREVIATED_IRI);\n\n\t\tvocabularyBoxEClass = createEClass(VOCABULARY_BOX);\n\n\t\tdescriptionBoxEClass = createEClass(DESCRIPTION_BOX);\n\n\t\tvocabularyEClass = createEClass(VOCABULARY);\n\t\tcreateEReference(vocabularyEClass, VOCABULARY__OWNED_STATEMENTS);\n\n\t\tvocabularyBundleEClass = createEClass(VOCABULARY_BUNDLE);\n\n\t\tdescriptionEClass = createEClass(DESCRIPTION);\n\t\tcreateEReference(descriptionEClass, DESCRIPTION__OWNED_STATEMENTS);\n\n\t\tdescriptionBundleEClass = createEClass(DESCRIPTION_BUNDLE);\n\n\t\tstatementEClass = createEClass(STATEMENT);\n\n\t\tvocabularyMemberEClass = createEClass(VOCABULARY_MEMBER);\n\n\t\tdescriptionMemberEClass = createEClass(DESCRIPTION_MEMBER);\n\n\t\tvocabularyStatementEClass = createEClass(VOCABULARY_STATEMENT);\n\t\tcreateEReference(vocabularyStatementEClass, VOCABULARY_STATEMENT__OWNING_VOCABULARY);\n\n\t\tdescriptionStatementEClass = createEClass(DESCRIPTION_STATEMENT);\n\t\tcreateEReference(descriptionStatementEClass, DESCRIPTION_STATEMENT__OWNING_DESCRIPTION);\n\n\t\ttermEClass = createEClass(TERM);\n\n\t\truleEClass = createEClass(RULE);\n\t\tcreateEReference(ruleEClass, RULE__REF);\n\t\tcreateEReference(ruleEClass, RULE__ANTECEDENT);\n\t\tcreateEReference(ruleEClass, RULE__CONSEQUENT);\n\n\t\tbuiltInEClass = createEClass(BUILT_IN);\n\t\tcreateEReference(builtInEClass, BUILT_IN__REF);\n\n\t\tspecializableTermEClass = createEClass(SPECIALIZABLE_TERM);\n\t\tcreateEReference(specializableTermEClass, SPECIALIZABLE_TERM__OWNED_SPECIALIZATIONS);\n\n\t\tpropertyEClass = createEClass(PROPERTY);\n\n\t\ttypeEClass = createEClass(TYPE);\n\n\t\trelationBaseEClass = createEClass(RELATION_BASE);\n\t\tcreateEReference(relationBaseEClass, RELATION_BASE__SOURCES);\n\t\tcreateEReference(relationBaseEClass, RELATION_BASE__TARGETS);\n\t\tcreateEReference(relationBaseEClass, RELATION_BASE__REVERSE_RELATION);\n\t\tcreateEAttribute(relationBaseEClass, RELATION_BASE__FUNCTIONAL);\n\t\tcreateEAttribute(relationBaseEClass, RELATION_BASE__INVERSE_FUNCTIONAL);\n\t\tcreateEAttribute(relationBaseEClass, RELATION_BASE__SYMMETRIC);\n\t\tcreateEAttribute(relationBaseEClass, RELATION_BASE__ASYMMETRIC);\n\t\tcreateEAttribute(relationBaseEClass, RELATION_BASE__REFLEXIVE);\n\t\tcreateEAttribute(relationBaseEClass, RELATION_BASE__IRREFLEXIVE);\n\t\tcreateEAttribute(relationBaseEClass, RELATION_BASE__TRANSITIVE);\n\n\t\tspecializablePropertyEClass = createEClass(SPECIALIZABLE_PROPERTY);\n\t\tcreateEReference(specializablePropertyEClass, SPECIALIZABLE_PROPERTY__OWNED_EQUIVALENCES);\n\n\t\tclassifierEClass = createEClass(CLASSIFIER);\n\t\tcreateEReference(classifierEClass, CLASSIFIER__OWNED_EQUIVALENCES);\n\t\tcreateEReference(classifierEClass, CLASSIFIER__OWNED_PROPERTY_RESTRICTIONS);\n\n\t\tscalarEClass = createEClass(SCALAR);\n\t\tcreateEReference(scalarEClass, SCALAR__REF);\n\t\tcreateEReference(scalarEClass, SCALAR__OWNED_ENUMERATION);\n\t\tcreateEReference(scalarEClass, SCALAR__OWNED_EQUIVALENCES);\n\n\t\tentityEClass = createEClass(ENTITY);\n\t\tcreateEReference(entityEClass, ENTITY__OWNED_KEYS);\n\n\t\tstructureEClass = createEClass(STRUCTURE);\n\t\tcreateEReference(structureEClass, STRUCTURE__REF);\n\n\t\taspectEClass = createEClass(ASPECT);\n\t\tcreateEReference(aspectEClass, ASPECT__REF);\n\n\t\tconceptEClass = createEClass(CONCEPT);\n\t\tcreateEReference(conceptEClass, CONCEPT__REF);\n\t\tcreateEReference(conceptEClass, CONCEPT__OWNED_ENUMERATION);\n\n\t\trelationEntityEClass = createEClass(RELATION_ENTITY);\n\t\tcreateEReference(relationEntityEClass, RELATION_ENTITY__REF);\n\t\tcreateEReference(relationEntityEClass, RELATION_ENTITY__FORWARD_RELATION);\n\n\t\tannotationPropertyEClass = createEClass(ANNOTATION_PROPERTY);\n\t\tcreateEReference(annotationPropertyEClass, ANNOTATION_PROPERTY__REF);\n\n\t\tsemanticPropertyEClass = createEClass(SEMANTIC_PROPERTY);\n\t\tcreateEOperation(semanticPropertyEClass, SEMANTIC_PROPERTY___IS_FUNCTIONAL);\n\t\tcreateEOperation(semanticPropertyEClass, SEMANTIC_PROPERTY___GET_DOMAIN_LIST);\n\t\tcreateEOperation(semanticPropertyEClass, SEMANTIC_PROPERTY___GET_RANGE_LIST);\n\n\t\tscalarPropertyEClass = createEClass(SCALAR_PROPERTY);\n\t\tcreateEReference(scalarPropertyEClass, SCALAR_PROPERTY__REF);\n\t\tcreateEAttribute(scalarPropertyEClass, SCALAR_PROPERTY__FUNCTIONAL);\n\t\tcreateEReference(scalarPropertyEClass, SCALAR_PROPERTY__DOMAINS);\n\t\tcreateEReference(scalarPropertyEClass, SCALAR_PROPERTY__RANGES);\n\t\tcreateEOperation(scalarPropertyEClass, SCALAR_PROPERTY___GET_DOMAIN_LIST);\n\t\tcreateEOperation(scalarPropertyEClass, SCALAR_PROPERTY___GET_RANGE_LIST);\n\n\t\tstructuredPropertyEClass = createEClass(STRUCTURED_PROPERTY);\n\t\tcreateEReference(structuredPropertyEClass, STRUCTURED_PROPERTY__REF);\n\t\tcreateEAttribute(structuredPropertyEClass, STRUCTURED_PROPERTY__FUNCTIONAL);\n\t\tcreateEReference(structuredPropertyEClass, STRUCTURED_PROPERTY__DOMAINS);\n\t\tcreateEReference(structuredPropertyEClass, STRUCTURED_PROPERTY__RANGES);\n\t\tcreateEOperation(structuredPropertyEClass, STRUCTURED_PROPERTY___GET_DOMAIN_LIST);\n\t\tcreateEOperation(structuredPropertyEClass, STRUCTURED_PROPERTY___GET_RANGE_LIST);\n\n\t\trelationEClass = createEClass(RELATION);\n\t\tcreateEOperation(relationEClass, RELATION___IS_INVERSE_FUNCTIONAL);\n\t\tcreateEOperation(relationEClass, RELATION___IS_SYMMETRIC);\n\t\tcreateEOperation(relationEClass, RELATION___IS_ASYMMETRIC);\n\t\tcreateEOperation(relationEClass, RELATION___IS_REFLEXIVE);\n\t\tcreateEOperation(relationEClass, RELATION___IS_IRREFLEXIVE);\n\t\tcreateEOperation(relationEClass, RELATION___IS_TRANSITIVE);\n\t\tcreateEOperation(relationEClass, RELATION___GET_DOMAINS);\n\t\tcreateEOperation(relationEClass, RELATION___GET_RANGES);\n\t\tcreateEOperation(relationEClass, RELATION___GET_INVERSE);\n\t\tcreateEOperation(relationEClass, RELATION___GET_DOMAIN_LIST);\n\t\tcreateEOperation(relationEClass, RELATION___GET_RANGE_LIST);\n\n\t\tforwardRelationEClass = createEClass(FORWARD_RELATION);\n\t\tcreateEReference(forwardRelationEClass, FORWARD_RELATION__RELATION_ENTITY);\n\t\tcreateEOperation(forwardRelationEClass, FORWARD_RELATION___GET_REF);\n\t\tcreateEOperation(forwardRelationEClass, FORWARD_RELATION___IS_FUNCTIONAL);\n\t\tcreateEOperation(forwardRelationEClass, FORWARD_RELATION___IS_INVERSE_FUNCTIONAL);\n\t\tcreateEOperation(forwardRelationEClass, FORWARD_RELATION___IS_SYMMETRIC);\n\t\tcreateEOperation(forwardRelationEClass, FORWARD_RELATION___IS_ASYMMETRIC);\n\t\tcreateEOperation(forwardRelationEClass, FORWARD_RELATION___IS_REFLEXIVE);\n\t\tcreateEOperation(forwardRelationEClass, FORWARD_RELATION___IS_IRREFLEXIVE);\n\t\tcreateEOperation(forwardRelationEClass, FORWARD_RELATION___IS_TRANSITIVE);\n\t\tcreateEOperation(forwardRelationEClass, FORWARD_RELATION___GET_DOMAINS);\n\t\tcreateEOperation(forwardRelationEClass, FORWARD_RELATION___GET_RANGES);\n\t\tcreateEOperation(forwardRelationEClass, FORWARD_RELATION___GET_INVERSE);\n\n\t\treverseRelationEClass = createEClass(REVERSE_RELATION);\n\t\tcreateEReference(reverseRelationEClass, REVERSE_RELATION__RELATION_BASE);\n\t\tcreateEOperation(reverseRelationEClass, REVERSE_RELATION___GET_REF);\n\t\tcreateEOperation(reverseRelationEClass, REVERSE_RELATION___IS_FUNCTIONAL);\n\t\tcreateEOperation(reverseRelationEClass, REVERSE_RELATION___IS_INVERSE_FUNCTIONAL);\n\t\tcreateEOperation(reverseRelationEClass, REVERSE_RELATION___IS_SYMMETRIC);\n\t\tcreateEOperation(reverseRelationEClass, REVERSE_RELATION___IS_ASYMMETRIC);\n\t\tcreateEOperation(reverseRelationEClass, REVERSE_RELATION___IS_REFLEXIVE);\n\t\tcreateEOperation(reverseRelationEClass, REVERSE_RELATION___IS_IRREFLEXIVE);\n\t\tcreateEOperation(reverseRelationEClass, REVERSE_RELATION___IS_TRANSITIVE);\n\t\tcreateEOperation(reverseRelationEClass, REVERSE_RELATION___GET_DOMAINS);\n\t\tcreateEOperation(reverseRelationEClass, REVERSE_RELATION___GET_RANGES);\n\t\tcreateEOperation(reverseRelationEClass, REVERSE_RELATION___GET_INVERSE);\n\n\t\tunreifiedRelationEClass = createEClass(UNREIFIED_RELATION);\n\t\tcreateEReference(unreifiedRelationEClass, UNREIFIED_RELATION__REF);\n\t\tcreateEOperation(unreifiedRelationEClass, UNREIFIED_RELATION___GET_DOMAINS);\n\t\tcreateEOperation(unreifiedRelationEClass, UNREIFIED_RELATION___GET_RANGES);\n\t\tcreateEOperation(unreifiedRelationEClass, UNREIFIED_RELATION___GET_INVERSE);\n\n\t\tnamedInstanceEClass = createEClass(NAMED_INSTANCE);\n\t\tcreateEReference(namedInstanceEClass, NAMED_INSTANCE__OWNED_TYPES);\n\n\t\tconceptInstanceEClass = createEClass(CONCEPT_INSTANCE);\n\t\tcreateEReference(conceptInstanceEClass, CONCEPT_INSTANCE__REF);\n\n\t\trelationInstanceEClass = createEClass(RELATION_INSTANCE);\n\t\tcreateEReference(relationInstanceEClass, RELATION_INSTANCE__REF);\n\t\tcreateEReference(relationInstanceEClass, RELATION_INSTANCE__SOURCES);\n\t\tcreateEReference(relationInstanceEClass, RELATION_INSTANCE__TARGETS);\n\n\t\tstructureInstanceEClass = createEClass(STRUCTURE_INSTANCE);\n\t\tcreateEReference(structureInstanceEClass, STRUCTURE_INSTANCE__TYPE);\n\t\tcreateEReference(structureInstanceEClass, STRUCTURE_INSTANCE__OWNING_AXIOM);\n\t\tcreateEReference(structureInstanceEClass, STRUCTURE_INSTANCE__OWNING_ASSERTION);\n\n\t\tkeyAxiomEClass = createEClass(KEY_AXIOM);\n\t\tcreateEReference(keyAxiomEClass, KEY_AXIOM__PROPERTIES);\n\t\tcreateEReference(keyAxiomEClass, KEY_AXIOM__OWNING_ENTITY);\n\t\tcreateEOperation(keyAxiomEClass, KEY_AXIOM___GET_KEYED_ENTITY);\n\t\tcreateEOperation(keyAxiomEClass, KEY_AXIOM___GET_CHARACTERIZED_TERM);\n\n\t\tspecializationAxiomEClass = createEClass(SPECIALIZATION_AXIOM);\n\t\tcreateEReference(specializationAxiomEClass, SPECIALIZATION_AXIOM__SUPER_TERM);\n\t\tcreateEReference(specializationAxiomEClass, SPECIALIZATION_AXIOM__OWNING_TERM);\n\t\tcreateEOperation(specializationAxiomEClass, SPECIALIZATION_AXIOM___GET_SUB_TERM);\n\t\tcreateEOperation(specializationAxiomEClass, SPECIALIZATION_AXIOM___GET_CHARACTERIZED_TERM);\n\n\t\tinstanceEnumerationAxiomEClass = createEClass(INSTANCE_ENUMERATION_AXIOM);\n\t\tcreateEReference(instanceEnumerationAxiomEClass, INSTANCE_ENUMERATION_AXIOM__INSTANCES);\n\t\tcreateEReference(instanceEnumerationAxiomEClass, INSTANCE_ENUMERATION_AXIOM__OWNING_CONCEPT);\n\t\tcreateEOperation(instanceEnumerationAxiomEClass, INSTANCE_ENUMERATION_AXIOM___GET_ENUMERATED_CONCEPT);\n\t\tcreateEOperation(instanceEnumerationAxiomEClass, INSTANCE_ENUMERATION_AXIOM___GET_CHARACTERIZED_TERM);\n\n\t\tpropertyRestrictionAxiomEClass = createEClass(PROPERTY_RESTRICTION_AXIOM);\n\t\tcreateEReference(propertyRestrictionAxiomEClass, PROPERTY_RESTRICTION_AXIOM__PROPERTY);\n\t\tcreateEReference(propertyRestrictionAxiomEClass, PROPERTY_RESTRICTION_AXIOM__OWNING_CLASSIFIER);\n\t\tcreateEReference(propertyRestrictionAxiomEClass, PROPERTY_RESTRICTION_AXIOM__OWNING_AXIOM);\n\t\tcreateEOperation(propertyRestrictionAxiomEClass, PROPERTY_RESTRICTION_AXIOM___GET_RESTRICTING_DOMAIN);\n\t\tcreateEOperation(propertyRestrictionAxiomEClass, PROPERTY_RESTRICTION_AXIOM___GET_CHARACTERIZED_TERM);\n\n\t\tliteralEnumerationAxiomEClass = createEClass(LITERAL_ENUMERATION_AXIOM);\n\t\tcreateEReference(literalEnumerationAxiomEClass, LITERAL_ENUMERATION_AXIOM__LITERALS);\n\t\tcreateEReference(literalEnumerationAxiomEClass, LITERAL_ENUMERATION_AXIOM__OWNING_SCALAR);\n\t\tcreateEOperation(literalEnumerationAxiomEClass, LITERAL_ENUMERATION_AXIOM___GET_ENUMERATED_SCALAR);\n\t\tcreateEOperation(literalEnumerationAxiomEClass, LITERAL_ENUMERATION_AXIOM___GET_CHARACTERIZED_TERM);\n\n\t\tclassifierEquivalenceAxiomEClass = createEClass(CLASSIFIER_EQUIVALENCE_AXIOM);\n\t\tcreateEReference(classifierEquivalenceAxiomEClass, CLASSIFIER_EQUIVALENCE_AXIOM__SUPER_CLASSIFIERS);\n\t\tcreateEReference(classifierEquivalenceAxiomEClass, CLASSIFIER_EQUIVALENCE_AXIOM__OWNED_PROPERTY_RESTRICTIONS);\n\t\tcreateEReference(classifierEquivalenceAxiomEClass, CLASSIFIER_EQUIVALENCE_AXIOM__OWNING_CLASSIFIER);\n\t\tcreateEOperation(classifierEquivalenceAxiomEClass, CLASSIFIER_EQUIVALENCE_AXIOM___GET_SUB_CLASSIFIER);\n\t\tcreateEOperation(classifierEquivalenceAxiomEClass, CLASSIFIER_EQUIVALENCE_AXIOM___GET_CHARACTERIZED_TERM);\n\n\t\tscalarEquivalenceAxiomEClass = createEClass(SCALAR_EQUIVALENCE_AXIOM);\n\t\tcreateEReference(scalarEquivalenceAxiomEClass, SCALAR_EQUIVALENCE_AXIOM__SUPER_SCALAR);\n\t\tcreateEReference(scalarEquivalenceAxiomEClass, SCALAR_EQUIVALENCE_AXIOM__OWNING_SCALAR);\n\t\tcreateEAttribute(scalarEquivalenceAxiomEClass, SCALAR_EQUIVALENCE_AXIOM__LENGTH);\n\t\tcreateEAttribute(scalarEquivalenceAxiomEClass, SCALAR_EQUIVALENCE_AXIOM__MIN_LENGTH);\n\t\tcreateEAttribute(scalarEquivalenceAxiomEClass, SCALAR_EQUIVALENCE_AXIOM__MAX_LENGTH);\n\t\tcreateEAttribute(scalarEquivalenceAxiomEClass, SCALAR_EQUIVALENCE_AXIOM__PATTERN);\n\t\tcreateEAttribute(scalarEquivalenceAxiomEClass, SCALAR_EQUIVALENCE_AXIOM__LANGUAGE);\n\t\tcreateEReference(scalarEquivalenceAxiomEClass, SCALAR_EQUIVALENCE_AXIOM__MIN_INCLUSIVE);\n\t\tcreateEReference(scalarEquivalenceAxiomEClass, SCALAR_EQUIVALENCE_AXIOM__MIN_EXCLUSIVE);\n\t\tcreateEReference(scalarEquivalenceAxiomEClass, SCALAR_EQUIVALENCE_AXIOM__MAX_INCLUSIVE);\n\t\tcreateEReference(scalarEquivalenceAxiomEClass, SCALAR_EQUIVALENCE_AXIOM__MAX_EXCLUSIVE);\n\t\tcreateEOperation(scalarEquivalenceAxiomEClass, SCALAR_EQUIVALENCE_AXIOM___GET_SUB_SCALAR);\n\t\tcreateEOperation(scalarEquivalenceAxiomEClass, SCALAR_EQUIVALENCE_AXIOM___GET_CHARACTERIZED_TERM);\n\n\t\tpropertyEquivalenceAxiomEClass = createEClass(PROPERTY_EQUIVALENCE_AXIOM);\n\t\tcreateEReference(propertyEquivalenceAxiomEClass, PROPERTY_EQUIVALENCE_AXIOM__SUPER_PROPERTY);\n\t\tcreateEReference(propertyEquivalenceAxiomEClass, PROPERTY_EQUIVALENCE_AXIOM__OWNING_PROPERTY);\n\t\tcreateEOperation(propertyEquivalenceAxiomEClass, PROPERTY_EQUIVALENCE_AXIOM___GET_SUB_PROPERTY);\n\t\tcreateEOperation(propertyEquivalenceAxiomEClass, PROPERTY_EQUIVALENCE_AXIOM___GET_CHARACTERIZED_TERM);\n\n\t\tpropertyRangeRestrictionAxiomEClass = createEClass(PROPERTY_RANGE_RESTRICTION_AXIOM);\n\t\tcreateEAttribute(propertyRangeRestrictionAxiomEClass, PROPERTY_RANGE_RESTRICTION_AXIOM__KIND);\n\t\tcreateEReference(propertyRangeRestrictionAxiomEClass, PROPERTY_RANGE_RESTRICTION_AXIOM__RANGE);\n\n\t\tpropertyCardinalityRestrictionAxiomEClass = createEClass(PROPERTY_CARDINALITY_RESTRICTION_AXIOM);\n\t\tcreateEAttribute(propertyCardinalityRestrictionAxiomEClass, PROPERTY_CARDINALITY_RESTRICTION_AXIOM__KIND);\n\t\tcreateEAttribute(propertyCardinalityRestrictionAxiomEClass, PROPERTY_CARDINALITY_RESTRICTION_AXIOM__CARDINALITY);\n\t\tcreateEReference(propertyCardinalityRestrictionAxiomEClass, PROPERTY_CARDINALITY_RESTRICTION_AXIOM__RANGE);\n\n\t\tpropertyValueRestrictionAxiomEClass = createEClass(PROPERTY_VALUE_RESTRICTION_AXIOM);\n\t\tcreateEReference(propertyValueRestrictionAxiomEClass, PROPERTY_VALUE_RESTRICTION_AXIOM__LITERAL_VALUE);\n\t\tcreateEReference(propertyValueRestrictionAxiomEClass, PROPERTY_VALUE_RESTRICTION_AXIOM__STRUCTURE_INSTANCE_VALUE);\n\t\tcreateEReference(propertyValueRestrictionAxiomEClass, PROPERTY_VALUE_RESTRICTION_AXIOM__NAMED_INSTANCE_VALUE);\n\t\tcreateEOperation(propertyValueRestrictionAxiomEClass, PROPERTY_VALUE_RESTRICTION_AXIOM___GET_VALUE);\n\n\t\tpropertySelfRestrictionAxiomEClass = createEClass(PROPERTY_SELF_RESTRICTION_AXIOM);\n\n\t\ttypeAssertionEClass = createEClass(TYPE_ASSERTION);\n\t\tcreateEReference(typeAssertionEClass, TYPE_ASSERTION__TYPE);\n\t\tcreateEReference(typeAssertionEClass, TYPE_ASSERTION__OWNING_INSTANCE);\n\t\tcreateEOperation(typeAssertionEClass, TYPE_ASSERTION___GET_SUBJECT);\n\t\tcreateEOperation(typeAssertionEClass, TYPE_ASSERTION___GET_OBJECT);\n\n\t\tpropertyValueAssertionEClass = createEClass(PROPERTY_VALUE_ASSERTION);\n\t\tcreateEReference(propertyValueAssertionEClass, PROPERTY_VALUE_ASSERTION__PROPERTY);\n\t\tcreateEReference(propertyValueAssertionEClass, PROPERTY_VALUE_ASSERTION__LITERAL_VALUE);\n\t\tcreateEReference(propertyValueAssertionEClass, PROPERTY_VALUE_ASSERTION__STRUCTURE_INSTANCE_VALUE);\n\t\tcreateEReference(propertyValueAssertionEClass, PROPERTY_VALUE_ASSERTION__NAMED_INSTANCE_VALUE);\n\t\tcreateEReference(propertyValueAssertionEClass, PROPERTY_VALUE_ASSERTION__OWNING_INSTANCE);\n\t\tcreateEOperation(propertyValueAssertionEClass, PROPERTY_VALUE_ASSERTION___GET_VALUE);\n\t\tcreateEOperation(propertyValueAssertionEClass, PROPERTY_VALUE_ASSERTION___GET_SUBJECT);\n\t\tcreateEOperation(propertyValueAssertionEClass, PROPERTY_VALUE_ASSERTION___GET_OBJECT);\n\n\t\tunaryPredicateEClass = createEClass(UNARY_PREDICATE);\n\t\tcreateEReference(unaryPredicateEClass, UNARY_PREDICATE__ARGUMENT);\n\n\t\tbinaryPredicateEClass = createEClass(BINARY_PREDICATE);\n\t\tcreateEReference(binaryPredicateEClass, BINARY_PREDICATE__ARGUMENT1);\n\t\tcreateEReference(binaryPredicateEClass, BINARY_PREDICATE__ARGUMENT2);\n\n\t\tbuiltInPredicateEClass = createEClass(BUILT_IN_PREDICATE);\n\t\tcreateEReference(builtInPredicateEClass, BUILT_IN_PREDICATE__BUILT_IN);\n\t\tcreateEReference(builtInPredicateEClass, BUILT_IN_PREDICATE__ARGUMENTS);\n\n\t\ttypePredicateEClass = createEClass(TYPE_PREDICATE);\n\t\tcreateEReference(typePredicateEClass, TYPE_PREDICATE__TYPE);\n\n\t\trelationEntityPredicateEClass = createEClass(RELATION_ENTITY_PREDICATE);\n\t\tcreateEReference(relationEntityPredicateEClass, RELATION_ENTITY_PREDICATE__TYPE);\n\n\t\tpropertyPredicateEClass = createEClass(PROPERTY_PREDICATE);\n\t\tcreateEReference(propertyPredicateEClass, PROPERTY_PREDICATE__PROPERTY);\n\n\t\tsameAsPredicateEClass = createEClass(SAME_AS_PREDICATE);\n\n\t\tdifferentFromPredicateEClass = createEClass(DIFFERENT_FROM_PREDICATE);\n\n\t\tquotedLiteralEClass = createEClass(QUOTED_LITERAL);\n\t\tcreateEAttribute(quotedLiteralEClass, QUOTED_LITERAL__VALUE);\n\t\tcreateEAttribute(quotedLiteralEClass, QUOTED_LITERAL__LANG_TAG);\n\t\tcreateEReference(quotedLiteralEClass, QUOTED_LITERAL__TYPE);\n\t\tcreateEOperation(quotedLiteralEClass, QUOTED_LITERAL___GET_LEXICAL_VALUE);\n\t\tcreateEOperation(quotedLiteralEClass, QUOTED_LITERAL___GET_TYPE_IRI);\n\n\t\tintegerLiteralEClass = createEClass(INTEGER_LITERAL);\n\t\tcreateEAttribute(integerLiteralEClass, INTEGER_LITERAL__VALUE);\n\t\tcreateEOperation(integerLiteralEClass, INTEGER_LITERAL___GET_TYPE_IRI);\n\n\t\tdecimalLiteralEClass = createEClass(DECIMAL_LITERAL);\n\t\tcreateEAttribute(decimalLiteralEClass, DECIMAL_LITERAL__VALUE);\n\t\tcreateEOperation(decimalLiteralEClass, DECIMAL_LITERAL___GET_TYPE_IRI);\n\n\t\tdoubleLiteralEClass = createEClass(DOUBLE_LITERAL);\n\t\tcreateEAttribute(doubleLiteralEClass, DOUBLE_LITERAL__VALUE);\n\t\tcreateEOperation(doubleLiteralEClass, DOUBLE_LITERAL___GET_TYPE_IRI);\n\n\t\tbooleanLiteralEClass = createEClass(BOOLEAN_LITERAL);\n\t\tcreateEAttribute(booleanLiteralEClass, BOOLEAN_LITERAL__VALUE);\n\t\tcreateEOperation(booleanLiteralEClass, BOOLEAN_LITERAL___IS_VALUE);\n\t\tcreateEOperation(booleanLiteralEClass, BOOLEAN_LITERAL___GET_TYPE_IRI);\n\n\t\t// Create enums\n\t\tseparatorKindEEnum = createEEnum(SEPARATOR_KIND);\n\t\trangeRestrictionKindEEnum = createEEnum(RANGE_RESTRICTION_KIND);\n\t\tcardinalityRestrictionKindEEnum = createEEnum(CARDINALITY_RESTRICTION_KIND);\n\t\timportKindEEnum = createEEnum(IMPORT_KIND);\n\n\t\t// Create data types\n\t\tunsignedIntEDataType = createEDataType(UNSIGNED_INT);\n\t\tunsignedIntegerEDataType = createEDataType(UNSIGNED_INTEGER);\n\t\tdecimalEDataType = createEDataType(DECIMAL);\n\t\tidEDataType = createEDataType(ID);\n\t\tnamespaceEDataType = createEDataType(NAMESPACE);\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\tblockArchitecturePkgEClass = createEClass(BLOCK_ARCHITECTURE_PKG);\n\n\t\tblockArchitectureEClass = createEClass(BLOCK_ARCHITECTURE);\n\t\tcreateEReference(blockArchitectureEClass, BLOCK_ARCHITECTURE__OWNED_REQUIREMENT_PKGS);\n\t\tcreateEReference(blockArchitectureEClass, BLOCK_ARCHITECTURE__OWNED_ABSTRACT_CAPABILITY_PKG);\n\t\tcreateEReference(blockArchitectureEClass, BLOCK_ARCHITECTURE__OWNED_INTERFACE_PKG);\n\t\tcreateEReference(blockArchitectureEClass, BLOCK_ARCHITECTURE__OWNED_DATA_PKG);\n\t\tcreateEReference(blockArchitectureEClass, BLOCK_ARCHITECTURE__PROVISIONED_ARCHITECTURE_ALLOCATIONS);\n\t\tcreateEReference(blockArchitectureEClass, BLOCK_ARCHITECTURE__PROVISIONING_ARCHITECTURE_ALLOCATIONS);\n\t\tcreateEReference(blockArchitectureEClass, BLOCK_ARCHITECTURE__ALLOCATED_ARCHITECTURES);\n\t\tcreateEReference(blockArchitectureEClass, BLOCK_ARCHITECTURE__ALLOCATING_ARCHITECTURES);\n\n\t\tblockEClass = createEClass(BLOCK);\n\t\tcreateEReference(blockEClass, BLOCK__OWNED_ABSTRACT_CAPABILITY_PKG);\n\t\tcreateEReference(blockEClass, BLOCK__OWNED_INTERFACE_PKG);\n\t\tcreateEReference(blockEClass, BLOCK__OWNED_DATA_PKG);\n\t\tcreateEReference(blockEClass, BLOCK__OWNED_STATE_MACHINES);\n\n\t\tcomponentArchitectureEClass = createEClass(COMPONENT_ARCHITECTURE);\n\n\t\tcomponentEClass = createEClass(COMPONENT);\n\t\tcreateEReference(componentEClass, COMPONENT__OWNED_INTERFACE_USES);\n\t\tcreateEReference(componentEClass, COMPONENT__USED_INTERFACE_LINKS);\n\t\tcreateEReference(componentEClass, COMPONENT__USED_INTERFACES);\n\t\tcreateEReference(componentEClass, COMPONENT__OWNED_INTERFACE_IMPLEMENTATIONS);\n\t\tcreateEReference(componentEClass, COMPONENT__IMPLEMENTED_INTERFACE_LINKS);\n\t\tcreateEReference(componentEClass, COMPONENT__IMPLEMENTED_INTERFACES);\n\t\tcreateEReference(componentEClass, COMPONENT__PROVISIONED_COMPONENT_ALLOCATIONS);\n\t\tcreateEReference(componentEClass, COMPONENT__PROVISIONING_COMPONENT_ALLOCATIONS);\n\t\tcreateEReference(componentEClass, COMPONENT__ALLOCATED_COMPONENTS);\n\t\tcreateEReference(componentEClass, COMPONENT__ALLOCATING_COMPONENTS);\n\t\tcreateEReference(componentEClass, COMPONENT__PROVIDED_INTERFACES);\n\t\tcreateEReference(componentEClass, COMPONENT__REQUIRED_INTERFACES);\n\t\tcreateEReference(componentEClass, COMPONENT__CONTAINED_COMPONENT_PORTS);\n\t\tcreateEReference(componentEClass, COMPONENT__CONTAINED_PARTS);\n\t\tcreateEReference(componentEClass, COMPONENT__CONTAINED_PHYSICAL_PORTS);\n\t\tcreateEReference(componentEClass, COMPONENT__OWNED_PHYSICAL_PATH);\n\t\tcreateEReference(componentEClass, COMPONENT__OWNED_PHYSICAL_LINKS);\n\t\tcreateEReference(componentEClass, COMPONENT__OWNED_PHYSICAL_LINK_CATEGORIES);\n\n\t\tabstractActorEClass = createEClass(ABSTRACT_ACTOR);\n\n\t\tpartEClass = createEClass(PART);\n\t\tcreateEReference(partEClass, PART__PROVIDED_INTERFACES);\n\t\tcreateEReference(partEClass, PART__REQUIRED_INTERFACES);\n\t\tcreateEReference(partEClass, PART__OWNED_DEPLOYMENT_LINKS);\n\t\tcreateEReference(partEClass, PART__DEPLOYED_PARTS);\n\t\tcreateEReference(partEClass, PART__DEPLOYING_PARTS);\n\t\tcreateEReference(partEClass, PART__OWNED_ABSTRACT_TYPE);\n\t\tcreateEAttribute(partEClass, PART__VALUE);\n\t\tcreateEAttribute(partEClass, PART__MAX_VALUE);\n\t\tcreateEAttribute(partEClass, PART__MIN_VALUE);\n\t\tcreateEAttribute(partEClass, PART__CURRENT_MASS);\n\n\t\tarchitectureAllocationEClass = createEClass(ARCHITECTURE_ALLOCATION);\n\t\tcreateEReference(architectureAllocationEClass, ARCHITECTURE_ALLOCATION__ALLOCATED_ARCHITECTURE);\n\t\tcreateEReference(architectureAllocationEClass, ARCHITECTURE_ALLOCATION__ALLOCATING_ARCHITECTURE);\n\n\t\tcomponentAllocationEClass = createEClass(COMPONENT_ALLOCATION);\n\t\tcreateEReference(componentAllocationEClass, COMPONENT_ALLOCATION__ALLOCATED_COMPONENT);\n\t\tcreateEReference(componentAllocationEClass, COMPONENT_ALLOCATION__ALLOCATING_COMPONENT);\n\n\t\tsystemComponentEClass = createEClass(SYSTEM_COMPONENT);\n\t\tcreateEAttribute(systemComponentEClass, SYSTEM_COMPONENT__DATA_COMPONENT);\n\t\tcreateEReference(systemComponentEClass, SYSTEM_COMPONENT__DATA_TYPE);\n\t\tcreateEReference(systemComponentEClass, SYSTEM_COMPONENT__PARTICIPATIONS_IN_CAPABILITY_REALIZATIONS);\n\n\t\tinterfacePkgEClass = createEClass(INTERFACE_PKG);\n\t\tcreateEReference(interfacePkgEClass, INTERFACE_PKG__OWNED_INTERFACES);\n\t\tcreateEReference(interfacePkgEClass, INTERFACE_PKG__OWNED_INTERFACE_PKGS);\n\n\t\tinterfaceEClass = createEClass(INTERFACE);\n\t\tcreateEAttribute(interfaceEClass, INTERFACE__MECHANISM);\n\t\tcreateEAttribute(interfaceEClass, INTERFACE__STRUCTURAL);\n\t\tcreateEReference(interfaceEClass, INTERFACE__IMPLEMENTOR_COMPONENTS);\n\t\tcreateEReference(interfaceEClass, INTERFACE__USER_COMPONENTS);\n\t\tcreateEReference(interfaceEClass, INTERFACE__INTERFACE_IMPLEMENTATIONS);\n\t\tcreateEReference(interfaceEClass, INTERFACE__INTERFACE_USES);\n\t\tcreateEReference(interfaceEClass, INTERFACE__PROVISIONING_INTERFACE_ALLOCATIONS);\n\t\tcreateEReference(interfaceEClass, INTERFACE__ALLOCATING_INTERFACES);\n\t\tcreateEReference(interfaceEClass, INTERFACE__ALLOCATING_COMPONENTS);\n\t\tcreateEReference(interfaceEClass, INTERFACE__EXCHANGE_ITEMS);\n\t\tcreateEReference(interfaceEClass, INTERFACE__OWNED_EXCHANGE_ITEM_ALLOCATIONS);\n\t\tcreateEReference(interfaceEClass, INTERFACE__REQUIRING_COMPONENTS);\n\t\tcreateEReference(interfaceEClass, INTERFACE__REQUIRING_COMPONENT_PORTS);\n\t\tcreateEReference(interfaceEClass, INTERFACE__PROVIDING_COMPONENTS);\n\t\tcreateEReference(interfaceEClass, INTERFACE__PROVIDING_COMPONENT_PORTS);\n\t\tcreateEReference(interfaceEClass, INTERFACE__REALIZING_LOGICAL_INTERFACES);\n\t\tcreateEReference(interfaceEClass, INTERFACE__REALIZED_CONTEXT_INTERFACES);\n\t\tcreateEReference(interfaceEClass, INTERFACE__REALIZING_PHYSICAL_INTERFACES);\n\t\tcreateEReference(interfaceEClass, INTERFACE__REALIZED_LOGICAL_INTERFACES);\n\n\t\tinterfaceImplementationEClass = createEClass(INTERFACE_IMPLEMENTATION);\n\t\tcreateEReference(interfaceImplementationEClass, INTERFACE_IMPLEMENTATION__INTERFACE_IMPLEMENTOR);\n\t\tcreateEReference(interfaceImplementationEClass, INTERFACE_IMPLEMENTATION__IMPLEMENTED_INTERFACE);\n\n\t\tinterfaceUseEClass = createEClass(INTERFACE_USE);\n\t\tcreateEReference(interfaceUseEClass, INTERFACE_USE__INTERFACE_USER);\n\t\tcreateEReference(interfaceUseEClass, INTERFACE_USE__USED_INTERFACE);\n\n\t\tprovidedInterfaceLinkEClass = createEClass(PROVIDED_INTERFACE_LINK);\n\t\tcreateEReference(providedInterfaceLinkEClass, PROVIDED_INTERFACE_LINK__INTERFACE);\n\n\t\trequiredInterfaceLinkEClass = createEClass(REQUIRED_INTERFACE_LINK);\n\t\tcreateEReference(requiredInterfaceLinkEClass, REQUIRED_INTERFACE_LINK__INTERFACE);\n\n\t\tinterfaceAllocationEClass = createEClass(INTERFACE_ALLOCATION);\n\t\tcreateEReference(interfaceAllocationEClass, INTERFACE_ALLOCATION__ALLOCATED_INTERFACE);\n\t\tcreateEReference(interfaceAllocationEClass, INTERFACE_ALLOCATION__ALLOCATING_INTERFACE_ALLOCATOR);\n\n\t\tinterfaceAllocatorEClass = createEClass(INTERFACE_ALLOCATOR);\n\t\tcreateEReference(interfaceAllocatorEClass, INTERFACE_ALLOCATOR__OWNED_INTERFACE_ALLOCATIONS);\n\t\tcreateEReference(interfaceAllocatorEClass, INTERFACE_ALLOCATOR__PROVISIONED_INTERFACE_ALLOCATIONS);\n\t\tcreateEReference(interfaceAllocatorEClass, INTERFACE_ALLOCATOR__ALLOCATED_INTERFACES);\n\n\t\tactorCapabilityRealizationInvolvementEClass = createEClass(ACTOR_CAPABILITY_REALIZATION_INVOLVEMENT);\n\n\t\tsystemComponentCapabilityRealizationInvolvementEClass = createEClass(SYSTEM_COMPONENT_CAPABILITY_REALIZATION_INVOLVEMENT);\n\n\t\tcomponentContextEClass = createEClass(COMPONENT_CONTEXT);\n\n\t\texchangeItemAllocationEClass = createEClass(EXCHANGE_ITEM_ALLOCATION);\n\t\tcreateEAttribute(exchangeItemAllocationEClass, EXCHANGE_ITEM_ALLOCATION__SEND_PROTOCOL);\n\t\tcreateEAttribute(exchangeItemAllocationEClass, EXCHANGE_ITEM_ALLOCATION__RECEIVE_PROTOCOL);\n\t\tcreateEReference(exchangeItemAllocationEClass, EXCHANGE_ITEM_ALLOCATION__ALLOCATED_ITEM);\n\t\tcreateEReference(exchangeItemAllocationEClass, EXCHANGE_ITEM_ALLOCATION__ALLOCATING_INTERFACE);\n\n\t\tdeployableElementEClass = createEClass(DEPLOYABLE_ELEMENT);\n\t\tcreateEReference(deployableElementEClass, DEPLOYABLE_ELEMENT__DEPLOYING_LINKS);\n\n\t\tdeploymentTargetEClass = createEClass(DEPLOYMENT_TARGET);\n\t\tcreateEReference(deploymentTargetEClass, DEPLOYMENT_TARGET__DEPLOYMENT_LINKS);\n\n\t\tabstractDeploymentLinkEClass = createEClass(ABSTRACT_DEPLOYMENT_LINK);\n\t\tcreateEReference(abstractDeploymentLinkEClass, ABSTRACT_DEPLOYMENT_LINK__DEPLOYED_ELEMENT);\n\t\tcreateEReference(abstractDeploymentLinkEClass, ABSTRACT_DEPLOYMENT_LINK__LOCATION);\n\n\t\tabstractPathInvolvedElementEClass = createEClass(ABSTRACT_PATH_INVOLVED_ELEMENT);\n\n\t\tabstractPhysicalArtifactEClass = createEClass(ABSTRACT_PHYSICAL_ARTIFACT);\n\t\tcreateEReference(abstractPhysicalArtifactEClass, ABSTRACT_PHYSICAL_ARTIFACT__ALLOCATOR_CONFIGURATION_ITEMS);\n\n\t\tabstractPhysicalLinkEndEClass = createEClass(ABSTRACT_PHYSICAL_LINK_END);\n\t\tcreateEReference(abstractPhysicalLinkEndEClass, ABSTRACT_PHYSICAL_LINK_END__INVOLVED_LINKS);\n\n\t\tabstractPhysicalPathLinkEClass = createEClass(ABSTRACT_PHYSICAL_PATH_LINK);\n\n\t\tphysicalLinkEClass = createEClass(PHYSICAL_LINK);\n\t\tcreateEReference(physicalLinkEClass, PHYSICAL_LINK__LINK_ENDS);\n\t\tcreateEReference(physicalLinkEClass, PHYSICAL_LINK__OWNED_COMPONENT_EXCHANGE_FUNCTIONAL_EXCHANGE_ALLOCATIONS);\n\t\tcreateEReference(physicalLinkEClass, PHYSICAL_LINK__OWNED_PHYSICAL_LINK_ENDS);\n\t\tcreateEReference(physicalLinkEClass, PHYSICAL_LINK__OWNED_PHYSICAL_LINK_REALIZATIONS);\n\t\tcreateEReference(physicalLinkEClass, PHYSICAL_LINK__CATEGORIES);\n\t\tcreateEReference(physicalLinkEClass, PHYSICAL_LINK__SOURCE_PHYSICAL_PORT);\n\t\tcreateEReference(physicalLinkEClass, PHYSICAL_LINK__TARGET_PHYSICAL_PORT);\n\t\tcreateEReference(physicalLinkEClass, PHYSICAL_LINK__REALIZED_PHYSICAL_LINKS);\n\t\tcreateEReference(physicalLinkEClass, PHYSICAL_LINK__REALIZING_PHYSICAL_LINKS);\n\n\t\tphysicalLinkCategoryEClass = createEClass(PHYSICAL_LINK_CATEGORY);\n\t\tcreateEReference(physicalLinkCategoryEClass, PHYSICAL_LINK_CATEGORY__LINKS);\n\n\t\tphysicalLinkEndEClass = createEClass(PHYSICAL_LINK_END);\n\t\tcreateEReference(physicalLinkEndEClass, PHYSICAL_LINK_END__PORT);\n\t\tcreateEReference(physicalLinkEndEClass, PHYSICAL_LINK_END__PART);\n\n\t\tphysicalLinkRealizationEClass = createEClass(PHYSICAL_LINK_REALIZATION);\n\n\t\tphysicalPathEClass = createEClass(PHYSICAL_PATH);\n\t\tcreateEReference(physicalPathEClass, PHYSICAL_PATH__INVOLVED_LINKS);\n\t\tcreateEReference(physicalPathEClass, PHYSICAL_PATH__OWNED_PHYSICAL_PATH_INVOLVEMENTS);\n\t\tcreateEReference(physicalPathEClass, PHYSICAL_PATH__FIRST_PHYSICAL_PATH_INVOLVEMENTS);\n\t\tcreateEReference(physicalPathEClass, PHYSICAL_PATH__OWNED_PHYSICAL_PATH_REALIZATIONS);\n\t\tcreateEReference(physicalPathEClass, PHYSICAL_PATH__REALIZED_PHYSICAL_PATHS);\n\t\tcreateEReference(physicalPathEClass, PHYSICAL_PATH__REALIZING_PHYSICAL_PATHS);\n\n\t\tphysicalPathInvolvementEClass = createEClass(PHYSICAL_PATH_INVOLVEMENT);\n\t\tcreateEReference(physicalPathInvolvementEClass, PHYSICAL_PATH_INVOLVEMENT__NEXT_INVOLVEMENTS);\n\t\tcreateEReference(physicalPathInvolvementEClass, PHYSICAL_PATH_INVOLVEMENT__PREVIOUS_INVOLVEMENTS);\n\t\tcreateEReference(physicalPathInvolvementEClass, PHYSICAL_PATH_INVOLVEMENT__INVOLVED_ELEMENT);\n\t\tcreateEReference(physicalPathInvolvementEClass, PHYSICAL_PATH_INVOLVEMENT__INVOLVED_COMPONENT);\n\n\t\tphysicalPathReferenceEClass = createEClass(PHYSICAL_PATH_REFERENCE);\n\t\tcreateEReference(physicalPathReferenceEClass, PHYSICAL_PATH_REFERENCE__REFERENCED_PHYSICAL_PATH);\n\n\t\tphysicalPathRealizationEClass = createEClass(PHYSICAL_PATH_REALIZATION);\n\n\t\tphysicalPortEClass = createEClass(PHYSICAL_PORT);\n\t\tcreateEReference(physicalPortEClass, PHYSICAL_PORT__OWNED_COMPONENT_PORT_ALLOCATIONS);\n\t\tcreateEReference(physicalPortEClass, PHYSICAL_PORT__OWNED_PHYSICAL_PORT_REALIZATIONS);\n\t\tcreateEReference(physicalPortEClass, PHYSICAL_PORT__ALLOCATED_COMPONENT_PORTS);\n\t\tcreateEReference(physicalPortEClass, PHYSICAL_PORT__REALIZED_PHYSICAL_PORTS);\n\t\tcreateEReference(physicalPortEClass, PHYSICAL_PORT__REALIZING_PHYSICAL_PORTS);\n\n\t\tphysicalPortRealizationEClass = createEClass(PHYSICAL_PORT_REALIZATION);\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 createPackageContents() {\r\n if (isCreated) return;\r\n isCreated = true;\r\n\r\n // Create classes and their features\r\n kShapeLayoutEClass = createEClass(KSHAPE_LAYOUT);\r\n createEAttribute(kShapeLayoutEClass, KSHAPE_LAYOUT__XPOS);\r\n createEAttribute(kShapeLayoutEClass, KSHAPE_LAYOUT__YPOS);\r\n createEAttribute(kShapeLayoutEClass, KSHAPE_LAYOUT__WIDTH);\r\n createEAttribute(kShapeLayoutEClass, KSHAPE_LAYOUT__HEIGHT);\r\n createEReference(kShapeLayoutEClass, KSHAPE_LAYOUT__INSETS);\r\n\r\n kEdgeLayoutEClass = createEClass(KEDGE_LAYOUT);\r\n createEReference(kEdgeLayoutEClass, KEDGE_LAYOUT__BEND_POINTS);\r\n createEReference(kEdgeLayoutEClass, KEDGE_LAYOUT__SOURCE_POINT);\r\n createEReference(kEdgeLayoutEClass, KEDGE_LAYOUT__TARGET_POINT);\r\n\r\n kLayoutDataEClass = createEClass(KLAYOUT_DATA);\r\n\r\n kPointEClass = createEClass(KPOINT);\r\n createEAttribute(kPointEClass, KPOINT__X);\r\n createEAttribute(kPointEClass, KPOINT__Y);\r\n\r\n kInsetsEClass = createEClass(KINSETS);\r\n createEAttribute(kInsetsEClass, KINSETS__TOP);\r\n createEAttribute(kInsetsEClass, KINSETS__BOTTOM);\r\n createEAttribute(kInsetsEClass, KINSETS__LEFT);\r\n createEAttribute(kInsetsEClass, KINSETS__RIGHT);\r\n\r\n kIdentifierEClass = createEClass(KIDENTIFIER);\r\n createEAttribute(kIdentifierEClass, KIDENTIFIER__ID);\r\n\r\n kVectorEClass = createEClass(KVECTOR);\r\n createEAttribute(kVectorEClass, KVECTOR__X);\r\n createEAttribute(kVectorEClass, KVECTOR__Y);\r\n\r\n kVectorChainEClass = createEClass(KVECTOR_CHAIN);\r\n }", "public void createPackageContents() {\r\n\t\tif (isCreated) return;\r\n\t\tisCreated = true;\r\n\r\n\t\t// Create classes and their features\r\n\t\tannotationModelEClass = createEClass(ANNOTATION_MODEL);\r\n\t\tcreateEAttribute(annotationModelEClass, ANNOTATION_MODEL__NAME);\r\n\t\tcreateEReference(annotationModelEClass, ANNOTATION_MODEL__HAS_ANNOTATED_ELEMENT);\r\n\t\tcreateEReference(annotationModelEClass, ANNOTATION_MODEL__HAS_ANNOTATION);\r\n\r\n\t\tannotationEClass = createEClass(ANNOTATION);\r\n\r\n\t\tauthorizableResourceEClass = createEClass(AUTHORIZABLE_RESOURCE);\r\n\t\tcreateEReference(authorizableResourceEClass, AUTHORIZABLE_RESOURCE__HAS_RESOURCE_ACCESS_POLICY_SET);\r\n\t\tcreateEReference(authorizableResourceEClass, AUTHORIZABLE_RESOURCE__IS_AUTHORIZABLE_RESOURCE);\r\n\t\tcreateEAttribute(authorizableResourceEClass, AUTHORIZABLE_RESOURCE__BTRACK_OWNERSHIP);\r\n\r\n\t\tresourceAccessPolicySetEClass = createEClass(RESOURCE_ACCESS_POLICY_SET);\r\n\t\tcreateEAttribute(resourceAccessPolicySetEClass, RESOURCE_ACCESS_POLICY_SET__NAME);\r\n\t\tcreateEAttribute(resourceAccessPolicySetEClass, RESOURCE_ACCESS_POLICY_SET__POLICY_COMBINING_ALGORITHM);\r\n\t\tcreateEReference(resourceAccessPolicySetEClass, RESOURCE_ACCESS_POLICY_SET__HAS_RESOURCE_ACCESS_POLICY);\r\n\t\tcreateEReference(resourceAccessPolicySetEClass, RESOURCE_ACCESS_POLICY_SET__HAS_RESOURCE_ACCESS_POLICY_SET);\r\n\r\n\t\tannotatedElementEClass = createEClass(ANNOTATED_ELEMENT);\r\n\r\n\t\tannResourceEClass = createEClass(ANN_RESOURCE);\r\n\t\tcreateEReference(annResourceEClass, ANN_RESOURCE__ANNOTATES_RESOURCE);\r\n\r\n\t\tresourceAccessPolicyEClass = createEClass(RESOURCE_ACCESS_POLICY);\r\n\t\tcreateEAttribute(resourceAccessPolicyEClass, RESOURCE_ACCESS_POLICY__NAME);\r\n\t\tcreateEAttribute(resourceAccessPolicyEClass, RESOURCE_ACCESS_POLICY__RULE_COMBINING_ALGORITHM);\r\n\t\tcreateEReference(resourceAccessPolicyEClass, RESOURCE_ACCESS_POLICY__HAS_APPLY_CONDITION);\r\n\t\tcreateEReference(resourceAccessPolicyEClass, RESOURCE_ACCESS_POLICY__HAS_RESOURCE_ACCESS_RULE);\r\n\r\n\t\tconditionEClass = createEClass(CONDITION);\r\n\t\tcreateEAttribute(conditionEClass, CONDITION__OPERATOR);\r\n\t\tcreateEReference(conditionEClass, CONDITION__HAS_LEFT_SIDE_OPERAND);\r\n\t\tcreateEReference(conditionEClass, CONDITION__HAS_RIGHT_SIDE_OPERAND);\r\n\r\n\t\tattributeEClass = createEClass(ATTRIBUTE);\r\n\t\tcreateEAttribute(attributeEClass, ATTRIBUTE__ATTRIBUTE_CATEGORY);\r\n\t\tcreateEReference(attributeEClass, ATTRIBUTE__IS_ATTRIBUTE_EXISTING_PROPERTY);\r\n\t\tcreateEAttribute(attributeEClass, ATTRIBUTE__VALUE);\r\n\t\tcreateEReference(attributeEClass, ATTRIBUTE__IS_ATTRIBUTE_NEW_PROPERTY);\r\n\t\tcreateEReference(attributeEClass, ATTRIBUTE__IS_ATTRIBUTE_RESOURCE);\r\n\r\n\t\tannPropertyEClass = createEClass(ANN_PROPERTY);\r\n\t\tcreateEReference(annPropertyEClass, ANN_PROPERTY__ANNOTATES_PROPERTY);\r\n\r\n\t\tresourceAccessRuleEClass = createEClass(RESOURCE_ACCESS_RULE);\r\n\t\tcreateEReference(resourceAccessRuleEClass, RESOURCE_ACCESS_RULE__HAS_MATCH_CONDITION);\r\n\t\tcreateEAttribute(resourceAccessRuleEClass, RESOURCE_ACCESS_RULE__NAME);\r\n\t\tcreateEAttribute(resourceAccessRuleEClass, RESOURCE_ACCESS_RULE__RULE_TYPE);\r\n\t\tcreateEReference(resourceAccessRuleEClass, RESOURCE_ACCESS_RULE__HAS_ALLOWED_ACTION);\r\n\r\n\t\tauthorizationSubjectEClass = createEClass(AUTHORIZATION_SUBJECT);\r\n\t\tcreateEReference(authorizationSubjectEClass, AUTHORIZATION_SUBJECT__IS_AUTHORIZATION_SUBJECT);\r\n\r\n\t\tannCRUDActivityEClass = createEClass(ANN_CRUD_ACTIVITY);\r\n\t\tcreateEReference(annCRUDActivityEClass, ANN_CRUD_ACTIVITY__ANNOTATES_CRUD_ACTIVITY);\r\n\r\n\t\tallowedActionEClass = createEClass(ALLOWED_ACTION);\r\n\t\tcreateEReference(allowedActionEClass, ALLOWED_ACTION__IS_ALLOWED_ACTION);\r\n\r\n\t\tnewPropertyEClass = createEClass(NEW_PROPERTY);\r\n\t\tcreateEReference(newPropertyEClass, NEW_PROPERTY__BELONGS_TO_RESOURCE);\r\n\t\tcreateEAttribute(newPropertyEClass, NEW_PROPERTY__NAME);\r\n\t\tcreateEAttribute(newPropertyEClass, NEW_PROPERTY__TYPE);\r\n\t\tcreateEAttribute(newPropertyEClass, NEW_PROPERTY__BIS_UNIQUE);\r\n\r\n\t\t// Create enums\r\n\t\tcombiningAlgorithmEEnum = createEEnum(COMBINING_ALGORITHM);\r\n\t\toperatorEEnum = createEEnum(OPERATOR);\r\n\t\tattributeCategoryEEnum = createEEnum(ATTRIBUTE_CATEGORY);\r\n\t\truleTypeEEnum = createEEnum(RULE_TYPE);\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\ttaskEClass = createEClass(TASK);\n\t\tcreateEAttribute(taskEClass, TASK__TASK_ID);\n\t\tcreateEAttribute(taskEClass, TASK__NAME);\n\t\tcreateEReference(taskEClass, TASK__SUBTASKS);\n\t\tcreateEAttribute(taskEClass, TASK__DEADLINE);\n\n\t\tperiodicTaskEClass = createEClass(PERIODIC_TASK);\n\t\tcreateEAttribute(periodicTaskEClass, PERIODIC_TASK__PERIOD);\n\t\tcreateEAttribute(periodicTaskEClass, PERIODIC_TASK__OFFSET);\n\n\t\taperiodicTaskEClass = createEClass(APERIODIC_TASK);\n\t\tcreateEReference(aperiodicTaskEClass, APERIODIC_TASK__INTERARRIVAL_DISTRIBUTION);\n\n\t\tsubtaskEClass = createEClass(SUBTASK);\n\t\tcreateEAttribute(subtaskEClass, SUBTASK__NAME);\n\t\tcreateEAttribute(subtaskEClass, SUBTASK__PRIORITY);\n\t\tcreateEAttribute(subtaskEClass, SUBTASK__RET_ANCHOR_USED);\n\t\tcreateEAttribute(subtaskEClass, SUBTASK__ACTIVATION_SYNCHRONOUS);\n\t\tcreateEReference(subtaskEClass, SUBTASK__EXEC_TIME_DISTRIBUTION);\n\t\tcreateEAttribute(subtaskEClass, SUBTASK__BYPASS);\n\t\tcreateEAttribute(subtaskEClass, SUBTASK__DOWNSAMPLING_FACTOR);\n\t\tcreateEAttribute(subtaskEClass, SUBTASK__CALLING_THREAD_PRIORITY);\n\t\tcreateEReference(subtaskEClass, SUBTASK__MUTEXES);\n\t\tcreateEAttribute(subtaskEClass, SUBTASK__PIN_ID);\n\n\t\tdistributionEClass = createEClass(DISTRIBUTION);\n\n\t\tconstantEClass = createEClass(CONSTANT);\n\t\tcreateEAttribute(constantEClass, CONSTANT__VALUE);\n\n\t\texponentialEClass = createEClass(EXPONENTIAL);\n\t\tcreateEAttribute(exponentialEClass, EXPONENTIAL__MEAN);\n\n\t\tuniformEClass = createEClass(UNIFORM);\n\t\tcreateEAttribute(uniformEClass, UNIFORM__MAX);\n\t\tcreateEAttribute(uniformEClass, UNIFORM__MIN);\n\n\t\tunknownEClass = createEClass(UNKNOWN);\n\t\tcreateEAttribute(unknownEClass, UNKNOWN__MEAN);\n\t\tcreateEAttribute(unknownEClass, UNKNOWN__MIN);\n\t\tcreateEAttribute(unknownEClass, UNKNOWN__MAX);\n\n\t\tnormalEClass = createEClass(NORMAL);\n\t\tcreateEAttribute(normalEClass, NORMAL__MEAN);\n\t\tcreateEAttribute(normalEClass, NORMAL__STD_DEV);\n\n\t\tperformanceModelEClass = createEClass(PERFORMANCE_MODEL);\n\t\tcreateEReference(performanceModelEClass, PERFORMANCE_MODEL__TASKS);\n\t\tcreateEAttribute(performanceModelEClass, PERFORMANCE_MODEL__NAME);\n\t\tcreateEReference(performanceModelEClass, PERFORMANCE_MODEL__MUTEXES);\n\t\tcreateEAttribute(performanceModelEClass, PERFORMANCE_MODEL__SOURCE_FILE);\n\n\t\tssTaskEClass = createEClass(SS_TASK);\n\t\tcreateEAttribute(ssTaskEClass, SS_TASK__BUDGET);\n\t\tcreateEAttribute(ssTaskEClass, SS_TASK__REPLENISHMENT_PERIOD);\n\t\tcreateEAttribute(ssTaskEClass, SS_TASK__BACKGROUND_PRIORITY);\n\n\t\tmutexEClass = createEClass(MUTEX);\n\t\tcreateEAttribute(mutexEClass, MUTEX__NAME);\n\t}", "public void createPackageContents() {\r\n\t\tif (isCreated)\r\n\t\t\treturn;\r\n\t\tisCreated = true;\r\n\r\n\t\t// Create classes and their features\r\n\t\tissueEClass = createEClass(ISSUE);\r\n\t\tcreateEReference(issueEClass, ISSUE__PROPOSALS);\r\n\t\tcreateEReference(issueEClass, ISSUE__SOLUTION);\r\n\t\tcreateEReference(issueEClass, ISSUE__CRITERIA);\r\n\t\tcreateEAttribute(issueEClass, ISSUE__ACTIVITY);\r\n\t\tcreateEReference(issueEClass, ISSUE__ASSESSMENTS);\r\n\r\n\t\tproposalEClass = createEClass(PROPOSAL);\r\n\t\tcreateEReference(proposalEClass, PROPOSAL__ASSESSMENTS);\r\n\t\tcreateEReference(proposalEClass, PROPOSAL__ISSUE);\r\n\r\n\t\tsolutionEClass = createEClass(SOLUTION);\r\n\t\tcreateEReference(solutionEClass, SOLUTION__UNDERLYING_PROPOSALS);\r\n\t\tcreateEReference(solutionEClass, SOLUTION__ISSUE);\r\n\r\n\t\tcriterionEClass = createEClass(CRITERION);\r\n\t\tcreateEReference(criterionEClass, CRITERION__ASSESSMENTS);\r\n\r\n\t\tassessmentEClass = createEClass(ASSESSMENT);\r\n\t\tcreateEReference(assessmentEClass, ASSESSMENT__PROPOSAL);\r\n\t\tcreateEReference(assessmentEClass, ASSESSMENT__CRITERION);\r\n\t\tcreateEAttribute(assessmentEClass, ASSESSMENT__VALUE);\r\n\r\n\t\tcommentEClass = createEClass(COMMENT);\r\n\t\tcreateEReference(commentEClass, COMMENT__SENDER);\r\n\t\tcreateEReference(commentEClass, COMMENT__RECIPIENTS);\r\n\t\tcreateEReference(commentEClass, COMMENT__COMMENTED_ELEMENT);\r\n\r\n\t\taudioCommentEClass = createEClass(AUDIO_COMMENT);\r\n\t\tcreateEReference(audioCommentEClass, AUDIO_COMMENT__AUDIO_FILE);\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\ttoUseSolverCpFolderEClass = createEClass(TO_USE_SOLVER_CP_FOLDER);\n\t\tcreateEReference(toUseSolverCpFolderEClass, TO_USE_SOLVER_CP_FOLDER__SUB_FOLDERS);\n\t\tcreateEAttribute(toUseSolverCpFolderEClass, TO_USE_SOLVER_CP_FOLDER__NAME);\n\t\tcreateEReference(toUseSolverCpFolderEClass, TO_USE_SOLVER_CP_FOLDER__TO_USE_GENERATORS);\n\n\t\ttoUseSolverCpGeneratorEClass = createEClass(TO_USE_SOLVER_CP_GENERATOR);\n\t\tcreateEReference(toUseSolverCpGeneratorEClass, TO_USE_SOLVER_CP_GENERATOR__SOLVER);\n\t\tcreateEReference(toUseSolverCpGeneratorEClass, TO_USE_SOLVER_CP_GENERATOR__TO_USE_TUPLES);\n\n\t\ttoUseSolverCpTupleEClass = createEClass(TO_USE_SOLVER_CP_TUPLE);\n\t\tcreateEReference(toUseSolverCpTupleEClass, TO_USE_SOLVER_CP_TUPLE__TO_USE_LINEARS);\n\t\tcreateEReference(toUseSolverCpTupleEClass, TO_USE_SOLVER_CP_TUPLE__TO_USE_VARS);\n\t\tcreateEReference(toUseSolverCpTupleEClass, TO_USE_SOLVER_CP_TUPLE__TO_USE_LOGICALS);\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\tcharacteristicComponentEClass = createEClass(CHARACTERISTIC_COMPONENT);\n\t\tcreateEAttribute(characteristicComponentEClass, CHARACTERISTIC_COMPONENT__NAME);\n\t\tcreateEAttribute(characteristicComponentEClass, CHARACTERISTIC_COMPONENT__MODULE);\n\t\tcreateEAttribute(characteristicComponentEClass, CHARACTERISTIC_COMPONENT__PREFIX);\n\t\tcreateEAttribute(characteristicComponentEClass, CHARACTERISTIC_COMPONENT__CONTAINER);\n\t\tcreateEReference(characteristicComponentEClass, CHARACTERISTIC_COMPONENT__ACTIONS);\n\t\tcreateEReference(characteristicComponentEClass, CHARACTERISTIC_COMPONENT__ATTRIBUTES);\n\t\tcreateEReference(characteristicComponentEClass, CHARACTERISTIC_COMPONENT__PROPERTIES);\n\t\tcreateEReference(characteristicComponentEClass, CHARACTERISTIC_COMPONENT__USED_BACI_TYPES);\n\t\tcreateEReference(characteristicComponentEClass, CHARACTERISTIC_COMPONENT__USED_DEV_IOS);\n\t\tcreateEReference(characteristicComponentEClass, CHARACTERISTIC_COMPONENT__COMPONENT_INSTANCES);\n\n\t\tactionEClass = createEClass(ACTION);\n\t\tcreateEAttribute(actionEClass, ACTION__NAME);\n\t\tcreateEAttribute(actionEClass, ACTION__TYPE);\n\t\tcreateEReference(actionEClass, ACTION__PARAMETERS);\n\n\t\tparameterEClass = createEClass(PARAMETER);\n\t\tcreateEAttribute(parameterEClass, PARAMETER__NAME);\n\t\tcreateEAttribute(parameterEClass, PARAMETER__TYPE);\n\n\t\tattributeEClass = createEClass(ATTRIBUTE);\n\t\tcreateEAttribute(attributeEClass, ATTRIBUTE__NAME);\n\t\tcreateEAttribute(attributeEClass, ATTRIBUTE__TYPE);\n\t\tcreateEAttribute(attributeEClass, ATTRIBUTE__REQUIRED);\n\t\tcreateEAttribute(attributeEClass, ATTRIBUTE__DEFAULT_VALUE);\n\n\t\tpropertyEClass = createEClass(PROPERTY);\n\t\tcreateEAttribute(propertyEClass, PROPERTY__NAME);\n\t\tcreateEReference(propertyEClass, PROPERTY__BACI_TYPE);\n\t\tcreateEReference(propertyEClass, PROPERTY__DEV_IO);\n\n\t\tusedDevIOsEClass = createEClass(USED_DEV_IOS);\n\t\tcreateEReference(usedDevIOsEClass, USED_DEV_IOS__DEV_IOS);\n\n\t\tdevIOEClass = createEClass(DEV_IO);\n\t\tcreateEAttribute(devIOEClass, DEV_IO__NAME);\n\t\tcreateEAttribute(devIOEClass, DEV_IO__REQUIRED_LIBRARIES);\n\t\tcreateEReference(devIOEClass, DEV_IO__DEV_IO_VARIABLES);\n\n\t\tdevIOVariableEClass = createEClass(DEV_IO_VARIABLE);\n\t\tcreateEAttribute(devIOVariableEClass, DEV_IO_VARIABLE__NAME);\n\t\tcreateEAttribute(devIOVariableEClass, DEV_IO_VARIABLE__TYPE);\n\t\tcreateEAttribute(devIOVariableEClass, DEV_IO_VARIABLE__IS_READ);\n\t\tcreateEAttribute(devIOVariableEClass, DEV_IO_VARIABLE__IS_WRITE);\n\t\tcreateEAttribute(devIOVariableEClass, DEV_IO_VARIABLE__IS_PROPERTY_SPECIFIC);\n\n\t\tusedBaciTypesEClass = createEClass(USED_BACI_TYPES);\n\t\tcreateEReference(usedBaciTypesEClass, USED_BACI_TYPES__BACI_TYPES);\n\n\t\tbaciTypeEClass = createEClass(BACI_TYPE);\n\t\tcreateEAttribute(baciTypeEClass, BACI_TYPE__NAME);\n\t\tcreateEAttribute(baciTypeEClass, BACI_TYPE__ACCESS_TYPE);\n\t\tcreateEAttribute(baciTypeEClass, BACI_TYPE__BASIC_TYPE);\n\t\tcreateEAttribute(baciTypeEClass, BACI_TYPE__SEQ_TYPE);\n\n\t\tcomponentInstancesEClass = createEClass(COMPONENT_INSTANCES);\n\t\tcreateEReference(componentInstancesEClass, COMPONENT_INSTANCES__INSTANCES);\n\t\tcreateEReference(componentInstancesEClass, COMPONENT_INSTANCES__CONTAINING_CARACTERISTIC_COMPONENT);\n\n\t\tinstanceEClass = createEClass(INSTANCE);\n\t\tcreateEAttribute(instanceEClass, INSTANCE__NAME);\n\t\tcreateEReference(instanceEClass, INSTANCE__CONTAINING_COMPONENT_INSTANCES);\n\t\tcreateEReference(instanceEClass, INSTANCE__ATTRIBUTE_VALUES_CONTAINER);\n\t\tcreateEReference(instanceEClass, INSTANCE__CHARACTERISTIC_VALUES_CONTAINER);\n\t\tcreateEAttribute(instanceEClass, INSTANCE__AUTO_START);\n\t\tcreateEAttribute(instanceEClass, INSTANCE__DEFAULT);\n\n\t\tattributeValuesEClass = createEClass(ATTRIBUTE_VALUES);\n\t\tcreateEReference(attributeValuesEClass, ATTRIBUTE_VALUES__INSTANCE_ATTRIBUTES);\n\t\tcreateEReference(attributeValuesEClass, ATTRIBUTE_VALUES__CONTAINING_INSTANCE);\n\n\t\tattributeValueEClass = createEClass(ATTRIBUTE_VALUE);\n\t\tcreateEAttribute(attributeValueEClass, ATTRIBUTE_VALUE__NAME);\n\t\tcreateEAttribute(attributeValueEClass, ATTRIBUTE_VALUE__VALUE);\n\n\t\tcharacteristicValuesEClass = createEClass(CHARACTERISTIC_VALUES);\n\t\tcreateEAttribute(characteristicValuesEClass, CHARACTERISTIC_VALUES__PROPERTY_NAME);\n\t\tcreateEReference(characteristicValuesEClass, CHARACTERISTIC_VALUES__INSTANCE_CHARACTERISTICS);\n\t\tcreateEReference(characteristicValuesEClass, CHARACTERISTIC_VALUES__CONTAINING_INSTANCE);\n\n\t\tcharacteristicValueEClass = createEClass(CHARACTERISTIC_VALUE);\n\t\tcreateEAttribute(characteristicValueEClass, CHARACTERISTIC_VALUE__NAME);\n\t\tcreateEAttribute(characteristicValueEClass, CHARACTERISTIC_VALUE__VALUE);\n\n\t\tpropertyDefinitionEClass = createEClass(PROPERTY_DEFINITION);\n\n\t\t// Create enums\n\t\taccessTypeEEnum = createEEnum(ACCESS_TYPE);\n\t\tbasicTypeEEnum = createEEnum(BASIC_TYPE);\n\t\tseqTypeEEnum = createEEnum(SEQ_TYPE);\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\tcmdEClass = createEClass(CMD);\n\t\tcreateEAttribute(cmdEClass, CMD__PRIORITY);\n\t\tcreateEAttribute(cmdEClass, CMD__STAMP);\n\n\t\tcompoundCmdEClass = createEClass(COMPOUND_CMD);\n\t\tcreateEReference(compoundCmdEClass, COMPOUND_CMD__CHILDREN);\n\n\t\txCmdEClass = createEClass(XCMD);\n\t\tcreateEAttribute(xCmdEClass, XCMD__OBJ);\n\n\t\tbyteCmdEClass = createEClass(BYTE_CMD);\n\t\tcreateEAttribute(byteCmdEClass, BYTE_CMD__MESSAGE);\n\n\t\t// Create enums\n\t\tpriorityEEnum = createEEnum(PRIORITY);\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}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\txActivityDiagramArbiterEClass = createEClass(XACTIVITY_DIAGRAM_ARBITER);\n\n\t\txActivityDiagramArbiterStateEClass = createEClass(XACTIVITY_DIAGRAM_ARBITER_STATE);\n\n\t\txActivityDiagramArbiterTransitionEClass = createEClass(XACTIVITY_DIAGRAM_ARBITER_TRANSITION);\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\tanalyzerJobEClass = createEClass(ANALYZER_JOB);\n\t\tcreateEReference(analyzerJobEClass, ANALYZER_JOB__RFS_SERVICE);\n\n\t\tcomponentFailureEClass = createEClass(COMPONENT_FAILURE);\n\t\tcreateEReference(componentFailureEClass, COMPONENT_FAILURE__COMPONENT_REF);\n\n\t\tcomponentWorkFlowRunEClass = createEClass(COMPONENT_WORK_FLOW_RUN);\n\t\tcreateEReference(componentWorkFlowRunEClass, COMPONENT_WORK_FLOW_RUN__FAILURE_REFS);\n\n\t\texpressionFailureEClass = createEClass(EXPRESSION_FAILURE);\n\t\tcreateEReference(expressionFailureEClass, EXPRESSION_FAILURE__EXPRESSION_REF);\n\n\t\tfailureEClass = createEClass(FAILURE);\n\t\tcreateEAttribute(failureEClass, FAILURE__MESSAGE);\n\n\t\tjobEClass = createEClass(JOB);\n\t\tcreateEAttribute(jobEClass, JOB__END_TIME);\n\t\tcreateEAttribute(jobEClass, JOB__INTERVAL);\n\t\tcreateEAttribute(jobEClass, JOB__JOB_STATE);\n\t\tcreateEAttribute(jobEClass, JOB__NAME);\n\t\tcreateEAttribute(jobEClass, JOB__REPEAT);\n\t\tcreateEAttribute(jobEClass, JOB__START_TIME);\n\n\t\tjobRunContainerEClass = createEClass(JOB_RUN_CONTAINER);\n\t\tcreateEReference(jobRunContainerEClass, JOB_RUN_CONTAINER__JOB);\n\t\tcreateEReference(jobRunContainerEClass, JOB_RUN_CONTAINER__WORK_FLOW_RUNS);\n\n\t\tmetricSourceJobEClass = createEClass(METRIC_SOURCE_JOB);\n\t\tcreateEReference(metricSourceJobEClass, METRIC_SOURCE_JOB__METRIC_SOURCES);\n\n\t\tnodeReporterJobEClass = createEClass(NODE_REPORTER_JOB);\n\t\tcreateEReference(nodeReporterJobEClass, NODE_REPORTER_JOB__NODE);\n\n\t\tnodeTypeReporterJobEClass = createEClass(NODE_TYPE_REPORTER_JOB);\n\t\tcreateEReference(nodeTypeReporterJobEClass, NODE_TYPE_REPORTER_JOB__NODE_TYPE);\n\t\tcreateEReference(nodeTypeReporterJobEClass, NODE_TYPE_REPORTER_JOB__SCOPE_OBJECT);\n\n\t\toperatorReporterJobEClass = createEClass(OPERATOR_REPORTER_JOB);\n\t\tcreateEReference(operatorReporterJobEClass, OPERATOR_REPORTER_JOB__OPERATOR);\n\n\t\tretentionJobEClass = createEClass(RETENTION_JOB);\n\n\t\trfsServiceMonitoringJobEClass = createEClass(RFS_SERVICE_MONITORING_JOB);\n\t\tcreateEReference(rfsServiceMonitoringJobEClass, RFS_SERVICE_MONITORING_JOB__RFS_SERVICE);\n\n\t\trfsServiceReporterJobEClass = createEClass(RFS_SERVICE_REPORTER_JOB);\n\t\tcreateEReference(rfsServiceReporterJobEClass, RFS_SERVICE_REPORTER_JOB__RFS_SERVICE);\n\n\t\tserviceUserFailureEClass = createEClass(SERVICE_USER_FAILURE);\n\t\tcreateEReference(serviceUserFailureEClass, SERVICE_USER_FAILURE__SERVICE_USER_REF);\n\n\t\tworkFlowRunEClass = createEClass(WORK_FLOW_RUN);\n\t\tcreateEAttribute(workFlowRunEClass, WORK_FLOW_RUN__ENDED);\n\t\tcreateEAttribute(workFlowRunEClass, WORK_FLOW_RUN__LOG);\n\t\tcreateEAttribute(workFlowRunEClass, WORK_FLOW_RUN__PROGRESS);\n\t\tcreateEAttribute(workFlowRunEClass, WORK_FLOW_RUN__PROGRESS_MESSAGE);\n\t\tcreateEAttribute(workFlowRunEClass, WORK_FLOW_RUN__PROGRESS_TASK);\n\t\tcreateEAttribute(workFlowRunEClass, WORK_FLOW_RUN__STARTED);\n\t\tcreateEAttribute(workFlowRunEClass, WORK_FLOW_RUN__STATE);\n\n\t\t// Create enums\n\t\tjobRunStateEEnum = createEEnum(JOB_RUN_STATE);\n\t\tjobStateEEnum = createEEnum(JOB_STATE);\n\n\t\t// Create data types\n\t\tjobRunStateObjectEDataType = createEDataType(JOB_RUN_STATE_OBJECT);\n\t\tjobStateObjectEDataType = createEDataType(JOB_STATE_OBJECT);\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\tjElementEClass = createEClass(JELEMENT);\n\t\tcreateEAttribute(jElementEClass, JELEMENT__UUID);\n\t\tcreateEAttribute(jElementEClass, JELEMENT__NAME);\n\t\tcreateEAttribute(jElementEClass, JELEMENT__SHORT_NAME);\n\t\tcreateEAttribute(jElementEClass, JELEMENT__FULL_NAME);\n\t\tcreateEAttribute(jElementEClass, JELEMENT__DESCRIPTION);\n\t\tcreateEAttribute(jElementEClass, JELEMENT__FRAMEWORK);\n\t\tcreateEAttribute(jElementEClass, JELEMENT__PARTICIPATES);\n\t\tcreateEAttribute(jElementEClass, JELEMENT__VISIBILITY);\n\n\t\tjTypeEClass = createEClass(JTYPE);\n\n\t\tjTypedElementEClass = createEClass(JTYPED_ELEMENT);\n\t\tcreateEReference(jTypedElementEClass, JTYPED_ELEMENT__TYPE);\n\t\tcreateEAttribute(jTypedElementEClass, JTYPED_ELEMENT__VALUE);\n\t\tcreateEAttribute(jTypedElementEClass, JTYPED_ELEMENT__DERIVED);\n\t\tcreateEAttribute(jTypedElementEClass, JTYPED_ELEMENT__CALCULATED);\n\t\tcreateEAttribute(jTypedElementEClass, JTYPED_ELEMENT__LOWER);\n\t\tcreateEAttribute(jTypedElementEClass, JTYPED_ELEMENT__UPPER);\n\t\tcreateEAttribute(jTypedElementEClass, JTYPED_ELEMENT__ORDERED);\n\t\tcreateEAttribute(jTypedElementEClass, JTYPED_ELEMENT__UNIQUE);\n\n\t\tjPrimitiveEClass = createEClass(JPRIMITIVE);\n\t\tcreateEReference(jPrimitiveEClass, JPRIMITIVE__PACKAGE);\n\t\tcreateEAttribute(jPrimitiveEClass, JPRIMITIVE__USE_FOR_ID_TYPE);\n\n\t\tjEnumerationEClass = createEClass(JENUMERATION);\n\t\tcreateEReference(jEnumerationEClass, JENUMERATION__PACKAGE);\n\t\tcreateEReference(jEnumerationEClass, JENUMERATION__LITERALS);\n\t\tcreateEReference(jEnumerationEClass, JENUMERATION__CLASS_REPRESENTATION);\n\n\t\tjClassEClass = createEClass(JCLASS);\n\t\tcreateEAttribute(jClassEClass, JCLASS__ABSTRACT);\n\t\tcreateEReference(jClassEClass, JCLASS__STATE_MACHINES);\n\t\tcreateEReference(jClassEClass, JCLASS__OPERATIONS);\n\t\tcreateEReference(jClassEClass, JCLASS__ATTRIBUTE_ORDER);\n\t\tcreateEReference(jClassEClass, JCLASS__ATTRIBUTES_FOR_LISTING);\n\t\tcreateEReference(jClassEClass, JCLASS__FIXED_ENUM);\n\t\tcreateEAttribute(jClassEClass, JCLASS__REPRESENTS_TENANT);\n\t\tcreateEAttribute(jClassEClass, JCLASS__TENANT_MEMBER);\n\t\tcreateEReference(jClassEClass, JCLASS__REPRESENTATION);\n\t\tcreateEAttribute(jClassEClass, JCLASS__REPRESENTS_ENUM);\n\t\tcreateEAttribute(jClassEClass, JCLASS__REPRESENTS_TENANT_USER);\n\t\tcreateEAttribute(jClassEClass, JCLASS__REPRESENTS_USER);\n\t\tcreateEReference(jClassEClass, JCLASS__SUPERTYPE);\n\t\tcreateEReference(jClassEClass, JCLASS__PACKAGE);\n\t\tcreateEReference(jClassEClass, JCLASS__ROLES);\n\t\tcreateEReference(jClassEClass, JCLASS__ATTRIBUTES);\n\t\tcreateEAttribute(jClassEClass, JCLASS__BUSINESS_SINGLETON);\n\t\tcreateEReference(jClassEClass, JCLASS__ALIASES);\n\t\tcreateEAttribute(jClassEClass, JCLASS__WATCHED);\n\t\tcreateEAttribute(jClassEClass, JCLASS__REPRESENTS_ENUM_VALUE);\n\n\t\tjAttributeEClass = createEClass(JATTRIBUTE);\n\t\tcreateEAttribute(jAttributeEClass, JATTRIBUTE__PLACEHOLDER);\n\t\tcreateEAttribute(jAttributeEClass, JATTRIBUTE__REGEXP);\n\t\tcreateEAttribute(jAttributeEClass, JATTRIBUTE__MANDATORY);\n\t\tcreateEAttribute(jAttributeEClass, JATTRIBUTE__DECIMALS);\n\t\tcreateEAttribute(jAttributeEClass, JATTRIBUTE__INTERVAL);\n\t\tcreateEAttribute(jAttributeEClass, JATTRIBUTE__TECHNICAL);\n\t\tcreateEReference(jAttributeEClass, JATTRIBUTE__OWNER_CLASS);\n\t\tcreateEAttribute(jAttributeEClass, JATTRIBUTE__UI_NO_SEARCH);\n\t\tcreateEAttribute(jAttributeEClass, JATTRIBUTE__WATCHED);\n\t\tcreateEAttribute(jAttributeEClass, JATTRIBUTE__REPRESENTS_ID);\n\n\t\tjOperationEClass = createEClass(JOPERATION);\n\t\tcreateEAttribute(jOperationEClass, JOPERATION__CLASS_BASED);\n\t\tcreateEReference(jOperationEClass, JOPERATION__OWNER_CLASS);\n\t\tcreateEReference(jOperationEClass, JOPERATION__PARAMETERS);\n\t\tcreateEReference(jOperationEClass, JOPERATION__TRANSITION);\n\t\tcreateEAttribute(jOperationEClass, JOPERATION__BULK);\n\t\tcreateEAttribute(jOperationEClass, JOPERATION__KIND);\n\t\tcreateEAttribute(jOperationEClass, JOPERATION__UI_MUST_CONFIRM);\n\n\t\tjParameterEClass = createEClass(JPARAMETER);\n\t\tcreateEReference(jParameterEClass, JPARAMETER__OWNER_OPERATION);\n\t\tcreateEAttribute(jParameterEClass, JPARAMETER__INPUT);\n\t\tcreateEAttribute(jParameterEClass, JPARAMETER__INTERVAL);\n\n\t\tjRelationshipEClass = createEClass(JRELATIONSHIP);\n\t\tcreateEReference(jRelationshipEClass, JRELATIONSHIP__PACKAGE);\n\t\tcreateEReference(jRelationshipEClass, JRELATIONSHIP__ROLES);\n\t\tcreateEAttribute(jRelationshipEClass, JRELATIONSHIP__DERIVED);\n\n\t\tjRoleEClass = createEClass(JROLE);\n\t\tcreateEAttribute(jRoleEClass, JROLE__LOWER);\n\t\tcreateEAttribute(jRoleEClass, JROLE__UPPER);\n\t\tcreateEAttribute(jRoleEClass, JROLE__NAVIGABLE);\n\t\tcreateEAttribute(jRoleEClass, JROLE__UNIQUE);\n\t\tcreateEAttribute(jRoleEClass, JROLE__ORDERED);\n\t\tcreateEReference(jRoleEClass, JROLE__OWNER_RELATIONSHIP);\n\t\tcreateEAttribute(jRoleEClass, JROLE__DERIVED_EXPRESSION);\n\t\tcreateEAttribute(jRoleEClass, JROLE__DERIVED_DESCRIPTION);\n\t\tcreateEAttribute(jRoleEClass, JROLE__KIND);\n\t\tcreateEAttribute(jRoleEClass, JROLE__OPTION_SCRIPT);\n\t\tcreateEReference(jRoleEClass, JROLE__OWNER_CLASS);\n\t\tcreateEAttribute(jRoleEClass, JROLE__VALUE);\n\t\tcreateEAttribute(jRoleEClass, JROLE__CALCULATED);\n\t\tcreateEAttribute(jRoleEClass, JROLE__INTERVAL);\n\n\t\tjLiteralEClass = createEClass(JLITERAL);\n\t\tcreateEReference(jLiteralEClass, JLITERAL__ENUMERATION);\n\n\t\tjPackageEClass = createEClass(JPACKAGE);\n\t\tcreateEReference(jPackageEClass, JPACKAGE__ENUMERATIONS);\n\t\tcreateEReference(jPackageEClass, JPACKAGE__PRIMITIVES);\n\t\tcreateEReference(jPackageEClass, JPACKAGE__RELATIONSHIPS);\n\t\tcreateEReference(jPackageEClass, JPACKAGE__CHILDREN);\n\t\tcreateEReference(jPackageEClass, JPACKAGE__PARENT);\n\t\tcreateEReference(jPackageEClass, JPACKAGE__OWNER_MODEL);\n\t\tcreateEReference(jPackageEClass, JPACKAGE__CLASSES);\n\n\t\tjStateMachineEClass = createEClass(JSTATE_MACHINE);\n\t\tcreateEReference(jStateMachineEClass, JSTATE_MACHINE__OWNER_CLASS);\n\t\tcreateEReference(jStateMachineEClass, JSTATE_MACHINE__STATES);\n\t\tcreateEReference(jStateMachineEClass, JSTATE_MACHINE__TRANSITIONS);\n\t\tcreateEReference(jStateMachineEClass, JSTATE_MACHINE__CORRESPONDING_ENUM);\n\n\t\tjTransitionEClass = createEClass(JTRANSITION);\n\t\tcreateEReference(jTransitionEClass, JTRANSITION__STATE_MACHINE);\n\t\tcreateEReference(jTransitionEClass, JTRANSITION__GUARD);\n\t\tcreateEReference(jTransitionEClass, JTRANSITION__TO_STATE);\n\t\tcreateEReference(jTransitionEClass, JTRANSITION__FROM_STATE);\n\t\tcreateEReference(jTransitionEClass, JTRANSITION__EXECUTING_OPERATION);\n\n\t\tjStateEClass = createEClass(JSTATE);\n\t\tcreateEReference(jStateEClass, JSTATE__OWNER_STATE_MACHINE);\n\t\tcreateEReference(jStateEClass, JSTATE__INCOMING_TRANSITIONS);\n\t\tcreateEReference(jStateEClass, JSTATE__OUTGOING_TRANSITIONS);\n\t\tcreateEAttribute(jStateEClass, JSTATE__INITIAL_STATE);\n\t\tcreateEAttribute(jStateEClass, JSTATE__FINAL_STATE);\n\n\t\tjGuardEClass = createEClass(JGUARD);\n\t\tcreateEReference(jGuardEClass, JGUARD__TRANSITION);\n\t\tcreateEAttribute(jGuardEClass, JGUARD__TEXT);\n\t\tcreateEAttribute(jGuardEClass, JGUARD__EXPRESSION);\n\n\t\tjModelEClass = createEClass(JMODEL);\n\t\tcreateEReference(jModelEClass, JMODEL__PACKAGES);\n\t\tcreateEAttribute(jModelEClass, JMODEL__PACKAGE_PREFIX);\n\t\tcreateEReference(jModelEClass, JMODEL__APPLICATION_TOP);\n\t\tcreateEReference(jModelEClass, JMODEL__ROOT_MENU_ITEMS);\n\t\tcreateEReference(jModelEClass, JMODEL__INFO);\n\n\t\tjuiMenuItemEClass = createEClass(JUI_MENU_ITEM);\n\t\tcreateEReference(juiMenuItemEClass, JUI_MENU_ITEM__CHILDREN);\n\t\tcreateEReference(juiMenuItemEClass, JUI_MENU_ITEM__PARENT);\n\t\tcreateEReference(juiMenuItemEClass, JUI_MENU_ITEM__REPRESENT);\n\t\tcreateEReference(juiMenuItemEClass, JUI_MENU_ITEM__UIFILTERS);\n\t\tcreateEAttribute(juiMenuItemEClass, JUI_MENU_ITEM__TYPE);\n\t\tcreateEReference(juiMenuItemEClass, JUI_MENU_ITEM__ALIAS);\n\n\t\tjuiAttributeGroupEClass = createEClass(JUI_ATTRIBUTE_GROUP);\n\t\tcreateEReference(juiAttributeGroupEClass, JUI_ATTRIBUTE_GROUP__ATTRIBUTES);\n\t\tcreateEAttribute(juiAttributeGroupEClass, JUI_ATTRIBUTE_GROUP__POSITION);\n\n\t\tjuiFilterEClass = createEClass(JUI_FILTER);\n\t\tcreateEReference(juiFilterEClass, JUI_FILTER__ATTRIBUTE);\n\t\tcreateEAttribute(juiFilterEClass, JUI_FILTER__OPERATOR);\n\t\tcreateEAttribute(juiFilterEClass, JUI_FILTER__VALUE);\n\n\t\tjuiAliasEClass = createEClass(JUI_ALIAS);\n\t\tcreateEReference(juiAliasEClass, JUI_ALIAS__OWNER_CLASS);\n\n\t\tjInfoEClass = createEClass(JINFO);\n\t\tcreateEReference(jInfoEClass, JINFO__SUBMODELS);\n\n\t\tjSubmodelEClass = createEClass(JSUBMODEL);\n\t\tcreateEAttribute(jSubmodelEClass, JSUBMODEL__VERSION);\n\n\t\t// Create enums\n\t\tjVisibilityEEnum = createEEnum(JVISIBILITY);\n\t\tjAssociationKindEEnum = createEEnum(JASSOCIATION_KIND);\n\t\tjOperationKindEEnum = createEEnum(JOPERATION_KIND);\n\t\tjLayerEEnum = createEEnum(JLAYER);\n\t\tjMenuItemTypeEEnum = createEEnum(JMENU_ITEM_TYPE);\n\t\tjOperatorEEnum = createEEnum(JOPERATOR);\n\t}", "private void init() {\n\t\tthis.model = ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM);\n\t\tthis.model.setNsPrefixes(INamespace.NAMSESPACE_MAP);\n\n\t\t// create classes and properties\n\t\tcreateClasses();\n\t\tcreateDatatypeProperties();\n\t\tcreateObjectProperties();\n\t\t// createFraktionResources();\n\t}", "public void createPackageContents() {\n if (isCreated) return;\n isCreated = true;\n\n // Create classes and their features\n calcEClass = createEClass(CALC);\n createEReference(calcEClass, CALC__EXPR);\n\n exprEClass = createEClass(EXPR);\n\n bitShiftExprEClass = createEClass(BIT_SHIFT_EXPR);\n createEReference(bitShiftExprEClass, BIT_SHIFT_EXPR__CHILDREN);\n createEAttribute(bitShiftExprEClass, BIT_SHIFT_EXPR__OPERATORS);\n\n bitShiftExprChildEClass = createEClass(BIT_SHIFT_EXPR_CHILD);\n\n additiveExprEClass = createEClass(ADDITIVE_EXPR);\n createEReference(additiveExprEClass, ADDITIVE_EXPR__CHILDREN);\n createEAttribute(additiveExprEClass, ADDITIVE_EXPR__OPERATORS);\n\n additiveExprChildEClass = createEClass(ADDITIVE_EXPR_CHILD);\n\n multiplicativeExprEClass = createEClass(MULTIPLICATIVE_EXPR);\n createEReference(multiplicativeExprEClass, MULTIPLICATIVE_EXPR__CHILDREN);\n createEAttribute(multiplicativeExprEClass, MULTIPLICATIVE_EXPR__OPERATORS);\n\n multiplicativeExprChildEClass = createEClass(MULTIPLICATIVE_EXPR_CHILD);\n\n numberEClass = createEClass(NUMBER);\n createEAttribute(numberEClass, NUMBER__VALUE);\n\n // Create enums\n bitShiftOpEEnum = createEEnum(BIT_SHIFT_OP);\n additiveOpEEnum = createEEnum(ADDITIVE_OP);\n multiplicativeOpEEnum = createEEnum(MULTIPLICATIVE_OP);\n }", "public void createPackageContents() {\r\n\t\tif (isCreated) return;\r\n\t\tisCreated = true;\r\n\r\n\t\t// Create classes and their features\r\n\t\temcLogicalConnectorEClass = createEClass(EMC_LOGICAL_CONNECTOR);\r\n\r\n\t\temcAndEClass = createEClass(EMC_AND);\r\n\t\tcreateEReference(emcAndEClass, EMC_AND__COL_AND_DIAGRAM);\r\n\r\n\t\temcorEClass = createEClass(EMCOR);\r\n\t\tcreateEReference(emcorEClass, EMCOR__COL_OR_DIAGRAM);\r\n\r\n\t\temcCollaborationGroupEClass = createEClass(EMC_COLLABORATION_GROUP);\r\n\t\tcreateEReference(emcCollaborationGroupEClass, EMC_COLLABORATION_GROUP__COL_COL_GROUP_DIAGRAM);\r\n\r\n\t\temcDiagramEClass = createEClass(EMC_DIAGRAM);\r\n\t\tcreateEReference(emcDiagramEClass, EMC_DIAGRAM__EMP_DIAGRAM);\r\n\t\tcreateEAttribute(emcDiagramEClass, EMC_DIAGRAM__ASSOCIATE_PR_MODEL);\r\n\t\tcreateEReference(emcDiagramEClass, EMC_DIAGRAM__COL_AND);\r\n\t\tcreateEReference(emcDiagramEClass, EMC_DIAGRAM__COL_OR);\r\n\t\tcreateEReference(emcDiagramEClass, EMC_DIAGRAM__COL_ROLE);\r\n\t\tcreateEReference(emcDiagramEClass, EMC_DIAGRAM__COL_LOCATION);\r\n\t\tcreateEReference(emcDiagramEClass, EMC_DIAGRAM__COL_MACHINE);\r\n\t\tcreateEReference(emcDiagramEClass, EMC_DIAGRAM__COL_EMO_GROUP);\r\n\t\tcreateEReference(emcDiagramEClass, EMC_DIAGRAM__COL_COL_GROUP);\r\n\t\tcreateEReference(emcDiagramEClass, EMC_DIAGRAM__COL_COL_RELATION);\r\n\t\tcreateEReference(emcDiagramEClass, EMC_DIAGRAM__COL_SEQ_RELATION);\r\n\r\n\t\temcRelationEClass = createEClass(EMC_RELATION);\r\n\t\tcreateEReference(emcRelationEClass, EMC_RELATION__SOURCE_RELATION_SOURCE_OBJ);\r\n\t\tcreateEReference(emcRelationEClass, EMC_RELATION__TARGET_RELATION_TARGET_OBJ);\r\n\r\n\t\temcCollaborationRelationEClass = createEClass(EMC_COLLABORATION_RELATION);\r\n\t\tcreateEReference(emcCollaborationRelationEClass, EMC_COLLABORATION_RELATION__COL_COL_RELATION_DIAGRAM);\r\n\r\n\t\temcSequenceRelationEClass = createEClass(EMC_SEQUENCE_RELATION);\r\n\t\tcreateEReference(emcSequenceRelationEClass, EMC_SEQUENCE_RELATION__COL_SEQ_RELATION_DIAGRAM);\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}", "public void createPackageContents()\n {\n if (isCreated) return;\n isCreated = true;\n\n // Create classes and their features\n programmeEClass = createEClass(PROGRAMME);\n createEReference(programmeEClass, PROGRAMME__PROCEDURES);\n\n procedureEClass = createEClass(PROCEDURE);\n createEAttribute(procedureEClass, PROCEDURE__NAME);\n createEAttribute(procedureEClass, PROCEDURE__PARAM);\n createEAttribute(procedureEClass, PROCEDURE__PARAMS);\n createEReference(procedureEClass, PROCEDURE__INST);\n\n instructionEClass = createEClass(INSTRUCTION);\n\n openEClass = createEClass(OPEN);\n createEAttribute(openEClass, OPEN__NAME);\n createEAttribute(openEClass, OPEN__VALUE);\n\n gotoEClass = createEClass(GOTO);\n createEAttribute(gotoEClass, GOTO__NAME);\n createEAttribute(gotoEClass, GOTO__VALUE);\n\n clickEClass = createEClass(CLICK);\n createEAttribute(clickEClass, CLICK__NAME);\n createEAttribute(clickEClass, CLICK__TYPE);\n createEReference(clickEClass, CLICK__IDENTIFIER);\n\n fillEClass = createEClass(FILL);\n createEAttribute(fillEClass, FILL__NAME);\n createEAttribute(fillEClass, FILL__FIELD_TYPE);\n createEReference(fillEClass, FILL__IDENTIFIER);\n createEAttribute(fillEClass, FILL__VAR);\n createEAttribute(fillEClass, FILL__VALUE);\n\n checkEClass = createEClass(CHECK);\n createEAttribute(checkEClass, CHECK__NAME);\n createEAttribute(checkEClass, CHECK__ALL);\n createEReference(checkEClass, CHECK__IDENTIFIER);\n\n uncheckEClass = createEClass(UNCHECK);\n createEAttribute(uncheckEClass, UNCHECK__NAME);\n createEAttribute(uncheckEClass, UNCHECK__ALL);\n createEReference(uncheckEClass, UNCHECK__IDENTIFIER);\n\n selectEClass = createEClass(SELECT);\n createEAttribute(selectEClass, SELECT__NAME);\n createEAttribute(selectEClass, SELECT__ELEM);\n createEReference(selectEClass, SELECT__IDENTIFIER);\n\n readEClass = createEClass(READ);\n createEAttribute(readEClass, READ__NAME);\n createEReference(readEClass, READ__IDENTIFIER);\n createEReference(readEClass, READ__SAVE_PATH);\n\n elementidentifierEClass = createEClass(ELEMENTIDENTIFIER);\n createEAttribute(elementidentifierEClass, ELEMENTIDENTIFIER__NAME);\n createEAttribute(elementidentifierEClass, ELEMENTIDENTIFIER__TYPE);\n createEAttribute(elementidentifierEClass, ELEMENTIDENTIFIER__VALUE);\n createEAttribute(elementidentifierEClass, ELEMENTIDENTIFIER__INFO);\n createEAttribute(elementidentifierEClass, ELEMENTIDENTIFIER__VAR);\n\n verifyEClass = createEClass(VERIFY);\n createEAttribute(verifyEClass, VERIFY__VALUE);\n\n verifY_CONTAINSEClass = createEClass(VERIFY_CONTAINS);\n createEAttribute(verifY_CONTAINSEClass, VERIFY_CONTAINS__TYPE);\n createEReference(verifY_CONTAINSEClass, VERIFY_CONTAINS__IDENTIFIER);\n createEReference(verifY_CONTAINSEClass, VERIFY_CONTAINS__CONTAINED_IDENTIFIER);\n createEReference(verifY_CONTAINSEClass, VERIFY_CONTAINS__VARIABLE);\n\n verifY_EQUALSEClass = createEClass(VERIFY_EQUALS);\n createEReference(verifY_EQUALSEClass, VERIFY_EQUALS__OPERATION);\n createEReference(verifY_EQUALSEClass, VERIFY_EQUALS__REGISTERED_VALUE);\n\n registereD_VALUEEClass = createEClass(REGISTERED_VALUE);\n createEAttribute(registereD_VALUEEClass, REGISTERED_VALUE__VAR);\n\n countEClass = createEClass(COUNT);\n createEAttribute(countEClass, COUNT__NAME);\n createEReference(countEClass, COUNT__IDENTIFIER);\n createEReference(countEClass, COUNT__SAVE_VARIABLE);\n\n savevarEClass = createEClass(SAVEVAR);\n createEAttribute(savevarEClass, SAVEVAR__VAR);\n\n playEClass = createEClass(PLAY);\n createEAttribute(playEClass, PLAY__NAME);\n createEAttribute(playEClass, PLAY__PREOCEDURE);\n createEAttribute(playEClass, PLAY__PARAMS);\n }", "public void createPackageContents() {\r\n\t\tif (isCreated) return;\r\n\t\tisCreated = true;\r\n\r\n\t\t// Create classes and their features\r\n\t\trunnableEClass = createEClass(RUNNABLE);\r\n\t\tcreateEReference(runnableEClass, RUNNABLE__COMPONENT_INSTANCE);\r\n\t\tcreateEReference(runnableEClass, RUNNABLE__PORT_INSTANCE);\r\n\t\tcreateEReference(runnableEClass, RUNNABLE__PERIOD);\r\n\t\tcreateEReference(runnableEClass, RUNNABLE__LABEL_ACCESSES);\r\n\t\tcreateEReference(runnableEClass, RUNNABLE__DEADLINE);\r\n\r\n\t\tlabelEClass = createEClass(LABEL);\r\n\t\tcreateEReference(labelEClass, LABEL__COMPONENT_INSTANCE);\r\n\t\tcreateEReference(labelEClass, LABEL__COMPONENT_STATECHART);\r\n\t\tcreateEAttribute(labelEClass, LABEL__IS_CONSTANT);\r\n\r\n\t\tlabelAccessEClass = createEClass(LABEL_ACCESS);\r\n\t\tcreateEAttribute(labelAccessEClass, LABEL_ACCESS__ACCESS_KIND);\r\n\t\tcreateEReference(labelAccessEClass, LABEL_ACCESS__ACCESS_LABEL);\r\n\t\tcreateEReference(labelAccessEClass, LABEL_ACCESS__ACCESSING_RUNNABLE);\r\n\r\n\t\t// Create enums\r\n\t\tlabelAccessKindEEnum = createEEnum(LABEL_ACCESS_KIND);\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\toml2OTIProvenanceEClass = createEClass(OML2OTI_PROVENANCE);\n\t\tcreateEAttribute(oml2OTIProvenanceEClass, OML2OTI_PROVENANCE__OML_UUID);\n\t\tcreateEAttribute(oml2OTIProvenanceEClass, OML2OTI_PROVENANCE__OML_IRI);\n\t\tcreateEAttribute(oml2OTIProvenanceEClass, OML2OTI_PROVENANCE__OTI_ID);\n\t\tcreateEAttribute(oml2OTIProvenanceEClass, OML2OTI_PROVENANCE__OTI_URL);\n\t\tcreateEAttribute(oml2OTIProvenanceEClass, OML2OTI_PROVENANCE__OTI_UUID);\n\t\tcreateEAttribute(oml2OTIProvenanceEClass, OML2OTI_PROVENANCE__EXPLANATION);\n\n\t\t// Create data types\n\t\tuuidEDataType = createEDataType(UUID);\n\t\tomL_IRIEDataType = createEDataType(OML_IRI);\n\t\totI_TOOL_SPECIFIC_IDEDataType = createEDataType(OTI_TOOL_SPECIFIC_ID);\n\t\totI_TOOL_SPECIFIC_UUIDEDataType = createEDataType(OTI_TOOL_SPECIFIC_UUID);\n\t\totI_TOOL_SPECIFIC_URLEDataType = createEDataType(OTI_TOOL_SPECIFIC_URL);\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\tinstructionEClass = createEClass(INSTRUCTION);\n\n\t\tnamedElementEClass = createEClass(NAMED_ELEMENT);\n\t\tcreateEAttribute(namedElementEClass, NAMED_ELEMENT__NAME);\n\n\t\tgoForwardEClass = createEClass(GO_FORWARD);\n\t\tcreateEAttribute(goForwardEClass, GO_FORWARD__CM);\n\t\tcreateEAttribute(goForwardEClass, GO_FORWARD__INFINITE);\n\n\t\tgoBackwardEClass = createEClass(GO_BACKWARD);\n\t\tcreateEAttribute(goBackwardEClass, GO_BACKWARD__CM);\n\t\tcreateEAttribute(goBackwardEClass, GO_BACKWARD__INFINITE);\n\n\t\tbeginEClass = createEClass(BEGIN);\n\n\t\trotateEClass = createEClass(ROTATE);\n\t\tcreateEAttribute(rotateEClass, ROTATE__DEGREES);\n\t\tcreateEAttribute(rotateEClass, ROTATE__RANDOM);\n\n\t\treleaseEClass = createEClass(RELEASE);\n\n\t\tactionEClass = createEClass(ACTION);\n\n\t\tblockEClass = createEClass(BLOCK);\n\n\t\tendEClass = createEClass(END);\n\n\t\tchoreographyEClass = createEClass(CHOREOGRAPHY);\n\t\tcreateEReference(choreographyEClass, CHOREOGRAPHY__INSTRUCTIONS);\n\t\tcreateEReference(choreographyEClass, CHOREOGRAPHY__EDGE_INSTRUCTIONS);\n\n\t\tedgeInstructionEClass = createEClass(EDGE_INSTRUCTION);\n\t\tcreateEReference(edgeInstructionEClass, EDGE_INSTRUCTION__SOURCE);\n\t\tcreateEReference(edgeInstructionEClass, EDGE_INSTRUCTION__TARGET);\n\n\t\tgrabEClass = createEClass(GRAB);\n\t}", "public void createPackageContents() {\r\n\t\tif (isCreated)\r\n\t\t\treturn;\r\n\t\tisCreated = true;\r\n\r\n\t\t// Create classes and their features\r\n\t\tnamedElementEClass = createEClass(NAMED_ELEMENT);\r\n\t\tcreateEAttribute(namedElementEClass, NAMED_ELEMENT__NAME);\r\n\r\n\t\tcomDiagEClass = createEClass(COM_DIAG);\r\n\t\tcreateEReference(comDiagEClass, COM_DIAG__ELEMENTS);\r\n\t\tcreateEAttribute(comDiagEClass, COM_DIAG__LEVEL);\r\n\r\n\t\tcomDiagElementEClass = createEClass(COM_DIAG_ELEMENT);\r\n\t\tcreateEReference(comDiagElementEClass, COM_DIAG_ELEMENT__GRAPH);\r\n\r\n\t\tlifelineEClass = createEClass(LIFELINE);\r\n\t\tcreateEAttribute(lifelineEClass, LIFELINE__NUMBER);\r\n\r\n\t\tmessageEClass = createEClass(MESSAGE);\r\n\t\tcreateEAttribute(messageEClass, MESSAGE__OCCURENCE);\r\n\t\tcreateEReference(messageEClass, MESSAGE__SOURCE);\r\n\t\tcreateEReference(messageEClass, MESSAGE__TARGET);\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\tarrayOfStringEClass = createEClass(ARRAY_OF_STRING);\n\t\tcreateEAttribute(arrayOfStringEClass, ARRAY_OF_STRING__VALUES);\n\n\t\tcontainerEClass = createEClass(CONTAINER);\n\t\tcreateEAttribute(containerEClass, CONTAINER__NAME);\n\t\tcreateEAttribute(containerEClass, CONTAINER__CONTAINERID);\n\t\tcreateEAttribute(containerEClass, CONTAINER__IMAGE);\n\t\tcreateEAttribute(containerEClass, CONTAINER__BUILD);\n\t\tcreateEAttribute(containerEClass, CONTAINER__COMMAND);\n\t\tcreateEAttribute(containerEClass, CONTAINER__PORTS);\n\t\tcreateEAttribute(containerEClass, CONTAINER__EXPOSE);\n\t\tcreateEAttribute(containerEClass, CONTAINER__VOLUMES);\n\t\tcreateEAttribute(containerEClass, CONTAINER__ENVIRONMENT);\n\t\tcreateEAttribute(containerEClass, CONTAINER__ENV_FILE);\n\t\tcreateEAttribute(containerEClass, CONTAINER__NET);\n\t\tcreateEAttribute(containerEClass, CONTAINER__DNS);\n\t\tcreateEAttribute(containerEClass, CONTAINER__DNS_SEARCH);\n\t\tcreateEAttribute(containerEClass, CONTAINER__CAP_ADD);\n\t\tcreateEAttribute(containerEClass, CONTAINER__CAP_DROP);\n\t\tcreateEAttribute(containerEClass, CONTAINER__WORKING_DIR);\n\t\tcreateEAttribute(containerEClass, CONTAINER__ENTRYPOINT);\n\t\tcreateEAttribute(containerEClass, CONTAINER__USER);\n\t\tcreateEAttribute(containerEClass, CONTAINER__DOMAIN_NAME);\n\t\tcreateEAttribute(containerEClass, CONTAINER__MEM_LIMIT);\n\t\tcreateEAttribute(containerEClass, CONTAINER__MEMORY_SWAP);\n\t\tcreateEAttribute(containerEClass, CONTAINER__PRIVILEGED);\n\t\tcreateEAttribute(containerEClass, CONTAINER__RESTART);\n\t\tcreateEAttribute(containerEClass, CONTAINER__STDIN_OPEN);\n\t\tcreateEAttribute(containerEClass, CONTAINER__INTERACTIVE);\n\t\tcreateEAttribute(containerEClass, CONTAINER__CPU_SHARES);\n\t\tcreateEAttribute(containerEClass, CONTAINER__PID);\n\t\tcreateEAttribute(containerEClass, CONTAINER__IPC);\n\t\tcreateEAttribute(containerEClass, CONTAINER__ADD_HOST);\n\t\tcreateEAttribute(containerEClass, CONTAINER__MAC_ADDRESS);\n\t\tcreateEAttribute(containerEClass, CONTAINER__RM);\n\t\tcreateEAttribute(containerEClass, CONTAINER__SECURITY_OPT);\n\t\tcreateEAttribute(containerEClass, CONTAINER__DEVICE);\n\t\tcreateEAttribute(containerEClass, CONTAINER__LXC_CONF);\n\t\tcreateEAttribute(containerEClass, CONTAINER__PUBLISH_ALL);\n\t\tcreateEAttribute(containerEClass, CONTAINER__READ_ONLY);\n\t\tcreateEAttribute(containerEClass, CONTAINER__MONITORED);\n\t\tcreateEAttribute(containerEClass, CONTAINER__CPU_USED);\n\t\tcreateEAttribute(containerEClass, CONTAINER__MEMORY_USED);\n\t\tcreateEAttribute(containerEClass, CONTAINER__CPU_PERCENT);\n\t\tcreateEAttribute(containerEClass, CONTAINER__MEMORY_PERCENT);\n\t\tcreateEAttribute(containerEClass, CONTAINER__DISK_USED);\n\t\tcreateEAttribute(containerEClass, CONTAINER__DISK_PERCENT);\n\t\tcreateEAttribute(containerEClass, CONTAINER__BANDWIDTH_USED);\n\t\tcreateEAttribute(containerEClass, CONTAINER__BANDWIDTH_PERCENT);\n\t\tcreateEAttribute(containerEClass, CONTAINER__MONITORING_INTERVAL);\n\t\tcreateEAttribute(containerEClass, CONTAINER__CPU_MAX_VALUE);\n\t\tcreateEAttribute(containerEClass, CONTAINER__MEMORY_MAX_VALUE);\n\t\tcreateEAttribute(containerEClass, CONTAINER__CORE_MAX);\n\t\tcreateEAttribute(containerEClass, CONTAINER__CPU_SET_CPUS);\n\t\tcreateEAttribute(containerEClass, CONTAINER__CPU_SET_MEMS);\n\t\tcreateEAttribute(containerEClass, CONTAINER__TTY);\n\t\tcreateEOperation(containerEClass, CONTAINER___CREATE);\n\t\tcreateEOperation(containerEClass, CONTAINER___STOP);\n\t\tcreateEOperation(containerEClass, CONTAINER___RUN);\n\t\tcreateEOperation(containerEClass, CONTAINER___PAUSE);\n\t\tcreateEOperation(containerEClass, CONTAINER___UNPAUSE);\n\t\tcreateEOperation(containerEClass, CONTAINER___KILL__STRING);\n\n\t\tlinkEClass = createEClass(LINK);\n\t\tcreateEAttribute(linkEClass, LINK__ALIAS);\n\n\t\tnetworklinkEClass = createEClass(NETWORKLINK);\n\n\t\tvolumesfromEClass = createEClass(VOLUMESFROM);\n\t\tcreateEAttribute(volumesfromEClass, VOLUMESFROM__MODE);\n\n\t\tcontainsEClass = createEClass(CONTAINS);\n\n\t\tmachineEClass = createEClass(MACHINE);\n\t\tcreateEAttribute(machineEClass, MACHINE__NAME);\n\t\tcreateEAttribute(machineEClass, MACHINE__ENGINE_INSTALL_URL);\n\t\tcreateEAttribute(machineEClass, MACHINE__ENGINE_OPT);\n\t\tcreateEAttribute(machineEClass, MACHINE__ENGINE_INSECURE_REGISTRY);\n\t\tcreateEAttribute(machineEClass, MACHINE__ENGINE_REGISTRY_MIRROR);\n\t\tcreateEAttribute(machineEClass, MACHINE__ENGINE_LABEL);\n\t\tcreateEAttribute(machineEClass, MACHINE__ENGINE_STORAGE_DRIVER);\n\t\tcreateEAttribute(machineEClass, MACHINE__ENGINE_ENV);\n\t\tcreateEAttribute(machineEClass, MACHINE__SWARM);\n\t\tcreateEAttribute(machineEClass, MACHINE__SWARM_IMAGE);\n\t\tcreateEAttribute(machineEClass, MACHINE__SWARM_MASTER);\n\t\tcreateEAttribute(machineEClass, MACHINE__SWARM_DISCOVERY);\n\t\tcreateEAttribute(machineEClass, MACHINE__SWARM_STRATEGY);\n\t\tcreateEAttribute(machineEClass, MACHINE__SWARM_OPT);\n\t\tcreateEAttribute(machineEClass, MACHINE__SWARM_HOST);\n\t\tcreateEAttribute(machineEClass, MACHINE__SWARM_ADDR);\n\t\tcreateEAttribute(machineEClass, MACHINE__SWARM_EXPERIMENTAL);\n\t\tcreateEAttribute(machineEClass, MACHINE__TLS_SAN);\n\t\tcreateEOperation(machineEClass, MACHINE___STARTALL);\n\n\t\tvolumeEClass = createEClass(VOLUME);\n\t\tcreateEAttribute(volumeEClass, VOLUME__DRIVER);\n\t\tcreateEAttribute(volumeEClass, VOLUME__LABELS);\n\t\tcreateEAttribute(volumeEClass, VOLUME__OPTIONS);\n\t\tcreateEAttribute(volumeEClass, VOLUME__SOURCE);\n\t\tcreateEAttribute(volumeEClass, VOLUME__DESTINATION);\n\t\tcreateEAttribute(volumeEClass, VOLUME__MODE);\n\t\tcreateEAttribute(volumeEClass, VOLUME__RW);\n\t\tcreateEAttribute(volumeEClass, VOLUME__PROPAGATION);\n\t\tcreateEAttribute(volumeEClass, VOLUME__NAME);\n\n\t\tnetworkEClass = createEClass(NETWORK);\n\t\tcreateEAttribute(networkEClass, NETWORK__NETWORK_ID);\n\t\tcreateEAttribute(networkEClass, NETWORK__NAME);\n\t\tcreateEAttribute(networkEClass, NETWORK__AUX_ADDRESS);\n\t\tcreateEAttribute(networkEClass, NETWORK__DRIVER);\n\t\tcreateEAttribute(networkEClass, NETWORK__GATEWAY);\n\t\tcreateEAttribute(networkEClass, NETWORK__INTERNAL);\n\t\tcreateEAttribute(networkEClass, NETWORK__IP_RANGE);\n\t\tcreateEAttribute(networkEClass, NETWORK__IPAM_DRIVER);\n\t\tcreateEAttribute(networkEClass, NETWORK__IPAM_OPT);\n\t\tcreateEAttribute(networkEClass, NETWORK__IPV6);\n\t\tcreateEAttribute(networkEClass, NETWORK__OPT);\n\t\tcreateEAttribute(networkEClass, NETWORK__SUBNET);\n\n\t\tmachinegenericEClass = createEClass(MACHINEGENERIC);\n\t\tcreateEAttribute(machinegenericEClass, MACHINEGENERIC__ENGINE_PORT);\n\t\tcreateEAttribute(machinegenericEClass, MACHINEGENERIC__IP_ADDRESS);\n\t\tcreateEAttribute(machinegenericEClass, MACHINEGENERIC__SSH_KEY);\n\t\tcreateEAttribute(machinegenericEClass, MACHINEGENERIC__SSH_USER);\n\t\tcreateEAttribute(machinegenericEClass, MACHINEGENERIC__SSH_PORT);\n\n\t\tmachineamazonec2EClass = createEClass(MACHINEAMAZONEC2);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__ACCESS_KEY);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__AMI);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__INSTANCE_TYPE);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__REGION);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__ROOT_SIZE);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__SECRET_KEY);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__SECURITY_GROUP);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__SESSION_TOKEN);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__SUBNET_ID);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__VPC_ID);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__ZONE);\n\n\t\tmachinedigitaloceanEClass = createEClass(MACHINEDIGITALOCEAN);\n\t\tcreateEAttribute(machinedigitaloceanEClass, MACHINEDIGITALOCEAN__ACCESS_TOKEN);\n\t\tcreateEAttribute(machinedigitaloceanEClass, MACHINEDIGITALOCEAN__IMAGE);\n\t\tcreateEAttribute(machinedigitaloceanEClass, MACHINEDIGITALOCEAN__REGION);\n\t\tcreateEAttribute(machinedigitaloceanEClass, MACHINEDIGITALOCEAN__SIZE);\n\n\t\tmachinegooglecomputeengineEClass = createEClass(MACHINEGOOGLECOMPUTEENGINE);\n\t\tcreateEAttribute(machinegooglecomputeengineEClass, MACHINEGOOGLECOMPUTEENGINE__ZONE);\n\t\tcreateEAttribute(machinegooglecomputeengineEClass, MACHINEGOOGLECOMPUTEENGINE__MACHINE_TYPE);\n\t\tcreateEAttribute(machinegooglecomputeengineEClass, MACHINEGOOGLECOMPUTEENGINE__USERNAME);\n\t\tcreateEAttribute(machinegooglecomputeengineEClass, MACHINEGOOGLECOMPUTEENGINE__INSTANCE_NAME);\n\t\tcreateEAttribute(machinegooglecomputeengineEClass, MACHINEGOOGLECOMPUTEENGINE__PROJECT);\n\n\t\tmachineibmsoftlayerEClass = createEClass(MACHINEIBMSOFTLAYER);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__API_ENDPOINT);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__USER);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__API_KEY);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__CPU);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__DISK_SIZE);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__DOMAIN);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__HOURLY_BILLING);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__IMAGE);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__LOCAL_DISK);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__PRIVATE_NET_ONLY);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__REGION);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__PUBLIC_VLAN_ID);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__PRIVATE_VLAN_ID);\n\n\t\tmachinemicrosoftazureEClass = createEClass(MACHINEMICROSOFTAZURE);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__SUBSCRIPTION_ID);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__SUBSCRIPTION_CERT);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__ENVIRONMENT);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__MACHINE_LOCATION);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__RESOURCE_GROUP);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__SIZE);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__SSH_USER);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__VNET);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__SUBNET);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__SUBNET_PREFIX);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__AVAILABILITY_SET);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__OPEN_PORT);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__PRIVATE_IP_ADDRESS);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__NO_PUBLIC_IP);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__STATIC_PUBLIC_IP);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__DOCKER_PORT);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__USE_PRIVATE_IP);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__IMAGE);\n\n\t\tmachinemicrosofthypervEClass = createEClass(MACHINEMICROSOFTHYPERV);\n\t\tcreateEAttribute(machinemicrosofthypervEClass, MACHINEMICROSOFTHYPERV__VIRTUAL_SWITCH);\n\t\tcreateEAttribute(machinemicrosofthypervEClass, MACHINEMICROSOFTHYPERV__BOOT2DOCKER_URL);\n\t\tcreateEAttribute(machinemicrosofthypervEClass, MACHINEMICROSOFTHYPERV__DISK_SIZE);\n\t\tcreateEAttribute(machinemicrosofthypervEClass, MACHINEMICROSOFTHYPERV__STATIC_MAC_ADDRESS);\n\t\tcreateEAttribute(machinemicrosofthypervEClass, MACHINEMICROSOFTHYPERV__VLAN_ID);\n\n\t\tmachineopenstackEClass = createEClass(MACHINEOPENSTACK);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__FLAVOR_ID);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__FLAVOR_NAME);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__IMAGE_ID);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__IMAGE_NAME);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__AUTH_URL);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__USERNAME);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__PASSWORD);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__TENANT_NAME);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__TENANT_ID);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__REGION);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__ENDPOINT_TYPE);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__NET_ID);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__NET_NAME);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__SEC_GROUPS);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__FLOATING_IP_POOL);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__ACTIVE_TIME_OUT);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__AVAILABILITY_ZONE);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__DOMAIN_ID);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__DOMAIN_NAME);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__INSECURE);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__IP_VERSION);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__KEYPAIR_NAME);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__PRIVATE_KEY_FILE);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__SSH_PORT);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__SSH_USER);\n\n\t\tmachinerackspaceEClass = createEClass(MACHINERACKSPACE);\n\t\tcreateEAttribute(machinerackspaceEClass, MACHINERACKSPACE__USERNAME);\n\t\tcreateEAttribute(machinerackspaceEClass, MACHINERACKSPACE__API_KEY);\n\t\tcreateEAttribute(machinerackspaceEClass, MACHINERACKSPACE__REGION);\n\t\tcreateEAttribute(machinerackspaceEClass, MACHINERACKSPACE__END_POINT_TYPE);\n\t\tcreateEAttribute(machinerackspaceEClass, MACHINERACKSPACE__IMAGE_ID);\n\t\tcreateEAttribute(machinerackspaceEClass, MACHINERACKSPACE__FLAVOR_ID);\n\t\tcreateEAttribute(machinerackspaceEClass, MACHINERACKSPACE__SSH_USER);\n\t\tcreateEAttribute(machinerackspaceEClass, MACHINERACKSPACE__SSH_PORT);\n\t\tcreateEAttribute(machinerackspaceEClass, MACHINERACKSPACE__DOCKER_INSTALL);\n\n\t\tmachinevirtualboxEClass = createEClass(MACHINEVIRTUALBOX);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__BOOT2DOCKER_URL);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__DISK_SIZE);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__HOST_DNS_RESOLVER);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__IMPORT_BOOT2_DOCKER_VM);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__HOST_ONLY_CIDR);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__HOST_ONLY_NIC_TYPE);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__HOST_ONLY_NIC_PROMISC);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__NO_SHARE);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__NO_DNS_PROXY);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__NO_VTX_CHECK);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__SHARE_FOLDER);\n\n\t\tmachinevmwarefusionEClass = createEClass(MACHINEVMWAREFUSION);\n\t\tcreateEAttribute(machinevmwarefusionEClass, MACHINEVMWAREFUSION__BOOT2DOCKER_URL);\n\t\tcreateEAttribute(machinevmwarefusionEClass, MACHINEVMWAREFUSION__DISK_SIZE);\n\t\tcreateEAttribute(machinevmwarefusionEClass, MACHINEVMWAREFUSION__MEMORY_SIZE);\n\t\tcreateEAttribute(machinevmwarefusionEClass, MACHINEVMWAREFUSION__NO_SHARE);\n\n\t\tmachinevmwarevcloudairEClass = createEClass(MACHINEVMWAREVCLOUDAIR);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__USERNAME);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__PASSWORD);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__CATALOG);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__CATALOG_ITEM);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__COMPUTE_ID);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__CPU_COUNT);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__DOCKER_PORT);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__EDGEGATEWAY);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__MEMORY_SIZE);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__VAPP_NAME);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__ORGVDCNETWORK);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__PROVISION);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__PUBLIC_IP);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__SSH_PORT);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__VDC_ID);\n\n\t\tmachinevmwarevsphereEClass = createEClass(MACHINEVMWAREVSPHERE);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__USERNAME);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__PASSWORD);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__BOOT2DOCKER_URL);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__COMPUTE_IP);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__CPU_COUNT);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__DATACENTER);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__DATASTORE);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__DISK_SIZE);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__MEMORY_SIZE);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__NETWORK);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__POOL);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__VCENTER);\n\n\t\tmachineexoscaleEClass = createEClass(MACHINEEXOSCALE);\n\t\tcreateEAttribute(machineexoscaleEClass, MACHINEEXOSCALE__URL);\n\t\tcreateEAttribute(machineexoscaleEClass, MACHINEEXOSCALE__API_KEY);\n\t\tcreateEAttribute(machineexoscaleEClass, MACHINEEXOSCALE__API_SECRET_KEY);\n\t\tcreateEAttribute(machineexoscaleEClass, MACHINEEXOSCALE__INSTANCE_PROFILE);\n\t\tcreateEAttribute(machineexoscaleEClass, MACHINEEXOSCALE__IMAGE);\n\t\tcreateEAttribute(machineexoscaleEClass, MACHINEEXOSCALE__SECURITY_GROUP);\n\t\tcreateEAttribute(machineexoscaleEClass, MACHINEEXOSCALE__AVAILABILITY_ZONE);\n\t\tcreateEAttribute(machineexoscaleEClass, MACHINEEXOSCALE__SSH_USER);\n\t\tcreateEAttribute(machineexoscaleEClass, MACHINEEXOSCALE__USER_DATA);\n\t\tcreateEAttribute(machineexoscaleEClass, MACHINEEXOSCALE__AFFINITY_GROUP);\n\n\t\tmachinegrid5000EClass = createEClass(MACHINEGRID5000);\n\t\tcreateEAttribute(machinegrid5000EClass, MACHINEGRID5000__USERNAME);\n\t\tcreateEAttribute(machinegrid5000EClass, MACHINEGRID5000__PASSWORD);\n\t\tcreateEAttribute(machinegrid5000EClass, MACHINEGRID5000__SITE);\n\t\tcreateEAttribute(machinegrid5000EClass, MACHINEGRID5000__WALLTIME);\n\t\tcreateEAttribute(machinegrid5000EClass, MACHINEGRID5000__SSH_PRIVATE_KEY);\n\t\tcreateEAttribute(machinegrid5000EClass, MACHINEGRID5000__SSH_PUBLIC_KEY);\n\t\tcreateEAttribute(machinegrid5000EClass, MACHINEGRID5000__IMAGE);\n\t\tcreateEAttribute(machinegrid5000EClass, MACHINEGRID5000__RESOURCE_PROPERTIES);\n\t\tcreateEAttribute(machinegrid5000EClass, MACHINEGRID5000__USE_JOB_RESERVATION);\n\t\tcreateEAttribute(machinegrid5000EClass, MACHINEGRID5000__HOST_TO_PROVISION);\n\n\t\tclusterEClass = createEClass(CLUSTER);\n\t\tcreateEAttribute(clusterEClass, CLUSTER__NAME);\n\n\t\t// Create enums\n\t\tmodeEEnum = createEEnum(MODE);\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\treadCsvFileEClass = createEClass(READ_CSV_FILE);\n\t\tcreateEAttribute(readCsvFileEClass, READ_CSV_FILE__URI);\n\n\t\tprintEClass = createEClass(PRINT);\n\t\tcreateEReference(printEClass, PRINT__INPUT);\n\n\t\twriteCsvFileEClass = createEClass(WRITE_CSV_FILE);\n\t\tcreateEReference(writeCsvFileEClass, WRITE_CSV_FILE__TABLE);\n\t\tcreateEAttribute(writeCsvFileEClass, WRITE_CSV_FILE__URI);\n\n\t\texcludeColumnsEClass = createEClass(EXCLUDE_COLUMNS);\n\t\tcreateEReference(excludeColumnsEClass, EXCLUDE_COLUMNS__TABLE);\n\t\tcreateEAttribute(excludeColumnsEClass, EXCLUDE_COLUMNS__COLUMNS);\n\n\t\tselectColumnsEClass = createEClass(SELECT_COLUMNS);\n\t\tcreateEReference(selectColumnsEClass, SELECT_COLUMNS__TABLE);\n\t\tcreateEAttribute(selectColumnsEClass, SELECT_COLUMNS__COLUMNS);\n\n\t\tassertTablesMatchEClass = createEClass(ASSERT_TABLES_MATCH);\n\t\tcreateEReference(assertTablesMatchEClass, ASSERT_TABLES_MATCH__LEFT);\n\t\tcreateEReference(assertTablesMatchEClass, ASSERT_TABLES_MATCH__RIGHT);\n\t\tcreateEAttribute(assertTablesMatchEClass, ASSERT_TABLES_MATCH__IGNORE_COLUMN_ORDER);\n\t\tcreateEAttribute(assertTablesMatchEClass, ASSERT_TABLES_MATCH__IGNORE_MISSING_COLUMNS);\n\n\t\twriteLinesEClass = createEClass(WRITE_LINES);\n\t\tcreateEAttribute(writeLinesEClass, WRITE_LINES__URI);\n\t\tcreateEAttribute(writeLinesEClass, WRITE_LINES__APPEND);\n\n\t\treadLinesEClass = createEClass(READ_LINES);\n\t\tcreateEAttribute(readLinesEClass, READ_LINES__URI);\n\n\t\tselectRowsEClass = createEClass(SELECT_ROWS);\n\t\tcreateEReference(selectRowsEClass, SELECT_ROWS__TABLE);\n\t\tcreateEAttribute(selectRowsEClass, SELECT_ROWS__COLUMN);\n\t\tcreateEAttribute(selectRowsEClass, SELECT_ROWS__VALUE);\n\t\tcreateEAttribute(selectRowsEClass, SELECT_ROWS__MATCH);\n\n\t\texcludeRowsEClass = createEClass(EXCLUDE_ROWS);\n\t\tcreateEReference(excludeRowsEClass, EXCLUDE_ROWS__TABLE);\n\t\tcreateEAttribute(excludeRowsEClass, EXCLUDE_ROWS__COLUMN);\n\t\tcreateEAttribute(excludeRowsEClass, EXCLUDE_ROWS__VALUE);\n\t\tcreateEAttribute(excludeRowsEClass, EXCLUDE_ROWS__MATCH);\n\n\t\tasTableDataEClass = createEClass(AS_TABLE_DATA);\n\t\tcreateEReference(asTableDataEClass, AS_TABLE_DATA__INPUT);\n\n\t\treadPropertiesEClass = createEClass(READ_PROPERTIES);\n\t\tcreateEAttribute(readPropertiesEClass, READ_PROPERTIES__URI);\n\n\t\t// Create enums\n\t\tignoreColumnsModeEEnum = createEEnum(IGNORE_COLUMNS_MODE);\n\t\trowMatchModeEEnum = createEEnum(ROW_MATCH_MODE);\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\tmaturityModelEClass = createEClass(MATURITY_MODEL);\n\t\tcreateEAttribute(maturityModelEClass, MATURITY_MODEL__NAME);\n\t\tcreateEAttribute(maturityModelEClass, MATURITY_MODEL__VERSION);\n\t\tcreateEAttribute(maturityModelEClass, MATURITY_MODEL__RELEASE_DATE);\n\t\tcreateEAttribute(maturityModelEClass, MATURITY_MODEL__AUTHOR);\n\t\tcreateEAttribute(maturityModelEClass, MATURITY_MODEL__DESCRIPTION);\n\t\tcreateEAttribute(maturityModelEClass, MATURITY_MODEL__ACRONYM);\n\t\tcreateEAttribute(maturityModelEClass, MATURITY_MODEL__URL);\n\t\tcreateEReference(maturityModelEClass, MATURITY_MODEL__ORGANIZES);\n\t\tcreateEReference(maturityModelEClass, MATURITY_MODEL__EVOLVES_INTO);\n\n\t\tprocessAreaEClass = createEClass(PROCESS_AREA);\n\t\tcreateEAttribute(processAreaEClass, PROCESS_AREA__NAME);\n\t\tcreateEAttribute(processAreaEClass, PROCESS_AREA__SHORT_DESCRIPTION);\n\t\tcreateEAttribute(processAreaEClass, PROCESS_AREA__MAIN_DESCRIPTION);\n\t\tcreateEAttribute(processAreaEClass, PROCESS_AREA__ACRONYM);\n\t\tcreateEReference(processAreaEClass, PROCESS_AREA__DEFINES);\n\t\tcreateEReference(processAreaEClass, PROCESS_AREA__IMPLEMENTS);\n\n\t\tspecificPracticeEClass = createEClass(SPECIFIC_PRACTICE);\n\t\tcreateEAttribute(specificPracticeEClass, SPECIFIC_PRACTICE__NAME);\n\t\tcreateEAttribute(specificPracticeEClass, SPECIFIC_PRACTICE__DESCRIPTION);\n\t\tcreateEAttribute(specificPracticeEClass, SPECIFIC_PRACTICE__ACRONYM);\n\t\tcreateEAttribute(specificPracticeEClass, SPECIFIC_PRACTICE__COMPLEMENTARY_DESCRIPTION);\n\n\t\tmaturityLevelEClass = createEClass(MATURITY_LEVEL);\n\t\tcreateEAttribute(maturityLevelEClass, MATURITY_LEVEL__NAME);\n\t\tcreateEAttribute(maturityLevelEClass, MATURITY_LEVEL__DESCRIPTION);\n\t\tcreateEAttribute(maturityLevelEClass, MATURITY_LEVEL__ACRONYM);\n\t\tcreateEReference(maturityLevelEClass, MATURITY_LEVEL__EVOLVES_INTO);\n\n\t\tgenericPracticeEClass = createEClass(GENERIC_PRACTICE);\n\t\tcreateEAttribute(genericPracticeEClass, GENERIC_PRACTICE__NAME);\n\t\tcreateEAttribute(genericPracticeEClass, GENERIC_PRACTICE__DESCRIPTION);\n\t\tcreateEAttribute(genericPracticeEClass, GENERIC_PRACTICE__ACRONYM);\n\t\tcreateEAttribute(genericPracticeEClass, GENERIC_PRACTICE__COMPLEMENTARY_DESCRIPTION);\n\t\tcreateEReference(genericPracticeEClass, GENERIC_PRACTICE__DIVIDED);\n\n\t\tgpSubPracticeEClass = createEClass(GP_SUB_PRACTICE);\n\t\tcreateEAttribute(gpSubPracticeEClass, GP_SUB_PRACTICE__NAME);\n\t\tcreateEAttribute(gpSubPracticeEClass, GP_SUB_PRACTICE__DESCRIPTION);\n\t\tcreateEAttribute(gpSubPracticeEClass, GP_SUB_PRACTICE__ACRONYM);\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\theuristicStrategyEClass = createEClass(HEURISTIC_STRATEGY);\n\t\tcreateEReference(heuristicStrategyEClass, HEURISTIC_STRATEGY__GRAPHIC_REPRESENTATION);\n\t\tcreateEReference(heuristicStrategyEClass, HEURISTIC_STRATEGY__NEMF);\n\t\tcreateEReference(heuristicStrategyEClass, HEURISTIC_STRATEGY__ECORE_CONTAINMENT);\n\t\tcreateEAttribute(heuristicStrategyEClass, HEURISTIC_STRATEGY__CURRENT_REPRESENTATION);\n\t\tcreateEAttribute(heuristicStrategyEClass, HEURISTIC_STRATEGY__CURRENT_MMGR);\n\t\tcreateEReference(heuristicStrategyEClass, HEURISTIC_STRATEGY__LIST_REPRESENTATION);\n\t\tcreateEOperation(heuristicStrategyEClass, HEURISTIC_STRATEGY___EXECUTE_HEURISTICS);\n\t\tcreateEOperation(heuristicStrategyEClass, HEURISTIC_STRATEGY___EXECUTE_ROOT_ELEMENT);\n\t\tcreateEOperation(heuristicStrategyEClass, HEURISTIC_STRATEGY___EXECUTE_GRAPHICAL_ELEMENTS);\n\t\tcreateEOperation(heuristicStrategyEClass, HEURISTIC_STRATEGY___GET_FEATURE_NAME__ECLASS_ECLASS);\n\t\tcreateEOperation(heuristicStrategyEClass, HEURISTIC_STRATEGY___GET_ELIST_ECLASSFROM_EREFERENCE__EREFERENCE);\n\t\tcreateEOperation(heuristicStrategyEClass, HEURISTIC_STRATEGY___EXECUTE_DIRECT_PATH_MATRIX);\n\n\t\tconcreteStrategyLinkEClass = createEClass(CONCRETE_STRATEGY_LINK);\n\n\t\tstrategyLabelEClass = createEClass(STRATEGY_LABEL);\n\t\tcreateEOperation(strategyLabelEClass, STRATEGY_LABEL___GET_LABEL__ECLASS);\n\n\t\tconcreteStrategyLabelFirstStringEClass = createEClass(CONCRETE_STRATEGY_LABEL_FIRST_STRING);\n\n\t\tconcreteStrategyLabelIdentifierEClass = createEClass(CONCRETE_STRATEGY_LABEL_IDENTIFIER);\n\n\t\tconcreteStrategyLabelParameterEClass = createEClass(CONCRETE_STRATEGY_LABEL_PARAMETER);\n\t\tcreateEReference(concreteStrategyLabelParameterEClass, CONCRETE_STRATEGY_LABEL_PARAMETER__LABEL_PARAMETER);\n\n\t\tlabelParameterEClass = createEClass(LABEL_PARAMETER);\n\t\tcreateEAttribute(labelParameterEClass, LABEL_PARAMETER__LIST_LABEL);\n\t\tcreateEOperation(labelParameterEClass, LABEL_PARAMETER___TO_COMMA_SEPARATED_STRING_LABEL);\n\t\tcreateEOperation(labelParameterEClass, LABEL_PARAMETER___DEFAULT_PARAMETERS);\n\n\t\tstrategyRootSelectionEClass = createEClass(STRATEGY_ROOT_SELECTION);\n\t\tcreateEOperation(strategyRootSelectionEClass, STRATEGY_ROOT_SELECTION___GET_ROOT__ELIST_ELIST);\n\t\tcreateEOperation(strategyRootSelectionEClass, STRATEGY_ROOT_SELECTION___LIST_ROOT__ELIST_ELIST);\n\n\t\tconcreteStrategyMaxContainmentEClass = createEClass(CONCRETE_STRATEGY_MAX_CONTAINMENT);\n\n\t\tconcreteStrategyNoParentEClass = createEClass(CONCRETE_STRATEGY_NO_PARENT);\n\n\t\tstrategyPaletteEClass = createEClass(STRATEGY_PALETTE);\n\t\tcreateEOperation(strategyPaletteEClass, STRATEGY_PALETTE___GET_PALETTE__EOBJECT);\n\n\t\tconcreteStrategyPaletteEClass = createEClass(CONCRETE_STRATEGY_PALETTE);\n\n\t\tstrategyArcSelectionEClass = createEClass(STRATEGY_ARC_SELECTION);\n\t\tcreateEReference(strategyArcSelectionEClass, STRATEGY_ARC_SELECTION__ARC_DIRECTION);\n\t\tcreateEOperation(strategyArcSelectionEClass, STRATEGY_ARC_SELECTION___IS_ARC__ECLASS);\n\n\t\tconcreteStrategyArcSelectionEClass = createEClass(CONCRETE_STRATEGY_ARC_SELECTION);\n\n\t\tstrategyArcDirectionEClass = createEClass(STRATEGY_ARC_DIRECTION);\n\t\tcreateEOperation(strategyArcDirectionEClass, STRATEGY_ARC_DIRECTION___GET_DIRECTION__ECLASS);\n\n\t\tarcParameterEClass = createEClass(ARC_PARAMETER);\n\t\tcreateEAttribute(arcParameterEClass, ARC_PARAMETER__SOURCE);\n\t\tcreateEAttribute(arcParameterEClass, ARC_PARAMETER__TARGET);\n\t\tcreateEOperation(arcParameterEClass, ARC_PARAMETER___DEFAULT_PARAM);\n\n\t\tdefaultArcParameterEClass = createEClass(DEFAULT_ARC_PARAMETER);\n\t\tcreateEOperation(defaultArcParameterEClass, DEFAULT_ARC_PARAMETER___TO_COMMA_SEPARATED_STRING_SOURCE);\n\t\tcreateEOperation(defaultArcParameterEClass, DEFAULT_ARC_PARAMETER___TO_COMMA_SEPARATED_STRING_TARGET);\n\n\t\tconcreteStrategyArcDirectionEClass = createEClass(CONCRETE_STRATEGY_ARC_DIRECTION);\n\t\tcreateEReference(concreteStrategyArcDirectionEClass, CONCRETE_STRATEGY_ARC_DIRECTION__PARAM);\n\t\tcreateEOperation(concreteStrategyArcDirectionEClass, CONCRETE_STRATEGY_ARC_DIRECTION___CONTAINS_STRING_EREFERENCE_NAME__ELIST_STRING);\n\n\t\tconcreteStrategyDefaultDirectionEClass = createEClass(CONCRETE_STRATEGY_DEFAULT_DIRECTION);\n\n\t\tstrategyNodeSelectionEClass = createEClass(STRATEGY_NODE_SELECTION);\n\t\tcreateEOperation(strategyNodeSelectionEClass, STRATEGY_NODE_SELECTION___IS_NODE__ECLASS);\n\n\t\tconcreteStrategyDefaultNodeSelectionEClass = createEClass(CONCRETE_STRATEGY_DEFAULT_NODE_SELECTION);\n\n\t\tstrategyPossibleElementsEClass = createEClass(STRATEGY_POSSIBLE_ELEMENTS);\n\t\tcreateEReference(strategyPossibleElementsEClass, STRATEGY_POSSIBLE_ELEMENTS__ECLASS_NO_ELEMENTS);\n\t\tcreateEOperation(strategyPossibleElementsEClass, STRATEGY_POSSIBLE_ELEMENTS___POSSIBLE_ELEMENTS__ECLASS_ELIST_ELIST);\n\n\t\tconcreteStrategyContainmentDiagramElementEClass = createEClass(CONCRETE_STRATEGY_CONTAINMENT_DIAGRAM_ELEMENT);\n\n\t\tecoreMatrixContainmentEClass = createEClass(ECORE_MATRIX_CONTAINMENT);\n\t\tcreateEAttribute(ecoreMatrixContainmentEClass, ECORE_MATRIX_CONTAINMENT__DIRECT_MATRIX_CONTAINMENT);\n\t\tcreateEAttribute(ecoreMatrixContainmentEClass, ECORE_MATRIX_CONTAINMENT__PATH_MATRIX);\n\t\tcreateEOperation(ecoreMatrixContainmentEClass, ECORE_MATRIX_CONTAINMENT___GET_PARENT__INTEGER);\n\t\tcreateEOperation(ecoreMatrixContainmentEClass, ECORE_MATRIX_CONTAINMENT___GET_DIRECT_MATRIX_CONTAINMENT__ELIST);\n\t\tcreateEOperation(ecoreMatrixContainmentEClass, ECORE_MATRIX_CONTAINMENT___GET_PATH_MATRIX);\n\t\tcreateEOperation(ecoreMatrixContainmentEClass, ECORE_MATRIX_CONTAINMENT___COPY_MATRIX);\n\t\tcreateEOperation(ecoreMatrixContainmentEClass, ECORE_MATRIX_CONTAINMENT___PRINT_DIRECT_MATRIX_CONTAINMENT__ELIST);\n\t\tcreateEOperation(ecoreMatrixContainmentEClass, ECORE_MATRIX_CONTAINMENT___GET_EALL_CHILDS__ECLASS_ELIST);\n\t\tcreateEOperation(ecoreMatrixContainmentEClass, ECORE_MATRIX_CONTAINMENT___GET_ALL_PARENTS__INTEGER);\n\n\t\theuristicStrategySettingsEClass = createEClass(HEURISTIC_STRATEGY_SETTINGS);\n\t\tcreateEReference(heuristicStrategySettingsEClass, HEURISTIC_STRATEGY_SETTINGS__STRATEGY_LABEL);\n\t\tcreateEReference(heuristicStrategySettingsEClass, HEURISTIC_STRATEGY_SETTINGS__STRATEGY_ROOT);\n\t\tcreateEReference(heuristicStrategySettingsEClass, HEURISTIC_STRATEGY_SETTINGS__STRATEGY_PALETTE);\n\t\tcreateEReference(heuristicStrategySettingsEClass, HEURISTIC_STRATEGY_SETTINGS__STRATEGY_ARC_SELECTION);\n\t\tcreateEReference(heuristicStrategySettingsEClass, HEURISTIC_STRATEGY_SETTINGS__STRATEGY_NODE_SELECTION);\n\t\tcreateEReference(heuristicStrategySettingsEClass, HEURISTIC_STRATEGY_SETTINGS__STRATEGY_POSSIBLE_ELEMENTS);\n\t\tcreateEReference(heuristicStrategySettingsEClass, HEURISTIC_STRATEGY_SETTINGS__STRATEGY_LINKCOMPARTMENT);\n\n\t\tstrategyLinkCompartmentEClass = createEClass(STRATEGY_LINK_COMPARTMENT);\n\t\tcreateEReference(strategyLinkCompartmentEClass, STRATEGY_LINK_COMPARTMENT__LIST_LINKS);\n\t\tcreateEReference(strategyLinkCompartmentEClass, STRATEGY_LINK_COMPARTMENT__LIST_COMPARTMENT);\n\t\tcreateEReference(strategyLinkCompartmentEClass, STRATEGY_LINK_COMPARTMENT__LIST_AFFIXED);\n\t\tcreateEOperation(strategyLinkCompartmentEClass, STRATEGY_LINK_COMPARTMENT___EXECUTE_LINK_COMPARTMENTS_HEURISTICS__ECLASS);\n\n\t\tconcreteContainmentasAffixedEClass = createEClass(CONCRETE_CONTAINMENTAS_AFFIXED);\n\n\t\tconcreteContainmentasLinksEClass = createEClass(CONCRETE_CONTAINMENTAS_LINKS);\n\n\t\tconcreteContainmentasCompartmentsEClass = createEClass(CONCRETE_CONTAINMENTAS_COMPARTMENTS);\n\n\t\trepreHeurSSEClass = createEClass(REPRE_HEUR_SS);\n\t\tcreateEReference(repreHeurSSEClass, REPRE_HEUR_SS__HEURISTIC_STRATEGY_SETTINGS);\n\t}", "public void createPackageContents() {\n if (this.isCreated) {\n return;\n }\n this.isCreated = true;\n\n // Create classes and their features\n this.systemSpecifiedExecutionTimeEClass = this.createEClass(SYSTEM_SPECIFIED_EXECUTION_TIME);\n\n this.specifiedExecutionTimeEClass = this.createEClass(SPECIFIED_EXECUTION_TIME);\n this.createEReference(this.specifiedExecutionTimeEClass,\n SPECIFIED_EXECUTION_TIME__SPECIFICATION_SPECIFIED_EXECUTION_TIME);\n\n this.componentSpecifiedExecutionTimeEClass = this.createEClass(COMPONENT_SPECIFIED_EXECUTION_TIME);\n this.createEReference(this.componentSpecifiedExecutionTimeEClass,\n COMPONENT_SPECIFIED_EXECUTION_TIME__ASSEMBLY_CONTEXT_COMPONENT_SPECIFIED_EXECUTION_TIME);\n }", "public void createPackageContents()\n {\n if (isCreated) return;\n isCreated = true;\n\n // Create classes and their features\n ledsCodeDSLEClass = createEClass(LEDS_CODE_DSL);\n createEReference(ledsCodeDSLEClass, LEDS_CODE_DSL__PROJECT);\n\n projectEClass = createEClass(PROJECT);\n createEAttribute(projectEClass, PROJECT__NAME);\n createEReference(projectEClass, PROJECT__INFRASTRUCTURE_BLOCK);\n createEReference(projectEClass, PROJECT__INTERFACE_BLOCK);\n createEReference(projectEClass, PROJECT__APPLICATION_BLOCK);\n createEReference(projectEClass, PROJECT__DOMAIN_BLOCK);\n\n interfaceBlockEClass = createEClass(INTERFACE_BLOCK);\n createEAttribute(interfaceBlockEClass, INTERFACE_BLOCK__NAME);\n createEReference(interfaceBlockEClass, INTERFACE_BLOCK__INTERFACE_APPLICATION);\n\n interfaceApplicationEClass = createEClass(INTERFACE_APPLICATION);\n createEAttribute(interfaceApplicationEClass, INTERFACE_APPLICATION__TYPE);\n createEAttribute(interfaceApplicationEClass, INTERFACE_APPLICATION__NAME);\n createEAttribute(interfaceApplicationEClass, INTERFACE_APPLICATION__NAME_APP);\n\n infrastructureBlockEClass = createEClass(INFRASTRUCTURE_BLOCK);\n createEAttribute(infrastructureBlockEClass, INFRASTRUCTURE_BLOCK__BASE_PACKAGE);\n createEAttribute(infrastructureBlockEClass, INFRASTRUCTURE_BLOCK__PROJECT_VERSION);\n createEReference(infrastructureBlockEClass, INFRASTRUCTURE_BLOCK__LANGUAGE);\n createEReference(infrastructureBlockEClass, INFRASTRUCTURE_BLOCK__FRAMEWORK);\n createEReference(infrastructureBlockEClass, INFRASTRUCTURE_BLOCK__ORM);\n createEReference(infrastructureBlockEClass, INFRASTRUCTURE_BLOCK__DATABASE);\n\n databaseEClass = createEClass(DATABASE);\n createEAttribute(databaseEClass, DATABASE__VERSION_VALUE);\n createEAttribute(databaseEClass, DATABASE__NAME_VALUE);\n createEAttribute(databaseEClass, DATABASE__USER_VALUE);\n createEAttribute(databaseEClass, DATABASE__PASS_VALUE);\n createEAttribute(databaseEClass, DATABASE__HOST_VALUE);\n createEAttribute(databaseEClass, DATABASE__ENV_VALUE);\n\n nameVersionEClass = createEClass(NAME_VERSION);\n createEAttribute(nameVersionEClass, NAME_VERSION__NAME_VALUE);\n createEAttribute(nameVersionEClass, NAME_VERSION__VERSION_VALUE);\n\n applicationBlockEClass = createEClass(APPLICATION_BLOCK);\n createEAttribute(applicationBlockEClass, APPLICATION_BLOCK__NAME);\n createEAttribute(applicationBlockEClass, APPLICATION_BLOCK__APPLICATION_DOMAIN);\n\n domainBlockEClass = createEClass(DOMAIN_BLOCK);\n createEAttribute(domainBlockEClass, DOMAIN_BLOCK__NAME);\n createEReference(domainBlockEClass, DOMAIN_BLOCK__MODULE);\n\n moduleBlockEClass = createEClass(MODULE_BLOCK);\n createEAttribute(moduleBlockEClass, MODULE_BLOCK__NAME);\n createEReference(moduleBlockEClass, MODULE_BLOCK__ENUM_BLOCK);\n createEReference(moduleBlockEClass, MODULE_BLOCK__ENTITY_BLOCK);\n createEReference(moduleBlockEClass, MODULE_BLOCK__SERVICE_BLOCK);\n\n serviceBlockEClass = createEClass(SERVICE_BLOCK);\n createEAttribute(serviceBlockEClass, SERVICE_BLOCK__NAME);\n createEReference(serviceBlockEClass, SERVICE_BLOCK__SERVICE_FIELDS);\n\n serviceMethodEClass = createEClass(SERVICE_METHOD);\n createEAttribute(serviceMethodEClass, SERVICE_METHOD__NAME);\n createEReference(serviceMethodEClass, SERVICE_METHOD__METHOD_ACESS);\n\n entityBlockEClass = createEClass(ENTITY_BLOCK);\n createEAttribute(entityBlockEClass, ENTITY_BLOCK__ACESS_MODIFIER);\n createEAttribute(entityBlockEClass, ENTITY_BLOCK__IS_ABSTRACT);\n createEAttribute(entityBlockEClass, ENTITY_BLOCK__NAME);\n createEReference(entityBlockEClass, ENTITY_BLOCK__CLASS_EXTENDS);\n createEReference(entityBlockEClass, ENTITY_BLOCK__ATTRIBUTES);\n createEReference(entityBlockEClass, ENTITY_BLOCK__REPOSITORY);\n\n attributeEClass = createEClass(ATTRIBUTE);\n createEAttribute(attributeEClass, ATTRIBUTE__ACESS_MODIFIER);\n createEAttribute(attributeEClass, ATTRIBUTE__TYPE);\n createEAttribute(attributeEClass, ATTRIBUTE__NAME);\n createEAttribute(attributeEClass, ATTRIBUTE__PK);\n createEAttribute(attributeEClass, ATTRIBUTE__UNIQUE);\n createEAttribute(attributeEClass, ATTRIBUTE__NULLABLE);\n createEAttribute(attributeEClass, ATTRIBUTE__MIN);\n createEAttribute(attributeEClass, ATTRIBUTE__MAX);\n\n repositoryEClass = createEClass(REPOSITORY);\n createEAttribute(repositoryEClass, REPOSITORY__NAME);\n createEReference(repositoryEClass, REPOSITORY__METHODS);\n\n repositoryFieldsEClass = createEClass(REPOSITORY_FIELDS);\n createEAttribute(repositoryFieldsEClass, REPOSITORY_FIELDS__NAME);\n createEReference(repositoryFieldsEClass, REPOSITORY_FIELDS__METHODS_PARAMETERS);\n createEAttribute(repositoryFieldsEClass, REPOSITORY_FIELDS__RETURN_TYPE);\n\n enumBlockEClass = createEClass(ENUM_BLOCK);\n createEAttribute(enumBlockEClass, ENUM_BLOCK__NAME);\n createEAttribute(enumBlockEClass, ENUM_BLOCK__VALUES);\n\n methodParameterEClass = createEClass(METHOD_PARAMETER);\n createEReference(methodParameterEClass, METHOD_PARAMETER__TYPE_AND_ATTR);\n\n typeAndAttributeEClass = createEClass(TYPE_AND_ATTRIBUTE);\n createEAttribute(typeAndAttributeEClass, TYPE_AND_ATTRIBUTE__TYPE);\n createEAttribute(typeAndAttributeEClass, TYPE_AND_ATTRIBUTE__NAME);\n\n extendBlockEClass = createEClass(EXTEND_BLOCK);\n createEReference(extendBlockEClass, EXTEND_BLOCK__VALUES);\n }", "public void createPackageContents()\n {\n if (isCreated) return;\n isCreated = true;\n\n // Create classes and their features\n stylesheetEClass = createEClass(STYLESHEET);\n createEAttribute(stylesheetEClass, STYLESHEET__CHAR_SET);\n createEReference(stylesheetEClass, STYLESHEET__IMPORTS);\n createEReference(stylesheetEClass, STYLESHEET__STATEMENTS);\n\n cssTopLevelStatementEClass = createEClass(CSS_TOP_LEVEL_STATEMENT);\n\n cssOtherTopLevelDeclarationEClass = createEClass(CSS_OTHER_TOP_LEVEL_DECLARATION);\n\n importDeclarationEClass = createEClass(IMPORT_DECLARATION);\n createEAttribute(importDeclarationEClass, IMPORT_DECLARATION__IMPORT_URI);\n createEAttribute(importDeclarationEClass, IMPORT_DECLARATION__URL);\n createEAttribute(importDeclarationEClass, IMPORT_DECLARATION__MEDIA);\n\n mediaDeclarationEClass = createEClass(MEDIA_DECLARATION);\n createEReference(mediaDeclarationEClass, MEDIA_DECLARATION__MEDIA_QUERIES);\n createEReference(mediaDeclarationEClass, MEDIA_DECLARATION__MEDIA);\n createEReference(mediaDeclarationEClass, MEDIA_DECLARATION__MEMBERS);\n\n mediaDeclarationMembersEClass = createEClass(MEDIA_DECLARATION_MEMBERS);\n\n mediaQueryEClass = createEClass(MEDIA_QUERY);\n createEAttribute(mediaQueryEClass, MEDIA_QUERY__ONLY);\n createEAttribute(mediaQueryEClass, MEDIA_QUERY__NOT);\n createEAttribute(mediaQueryEClass, MEDIA_QUERY__MEDIA_TYPE);\n createEReference(mediaQueryEClass, MEDIA_QUERY__EXPRESSIONS);\n\n mediaQueryExpressionEClass = createEClass(MEDIA_QUERY_EXPRESSION);\n createEAttribute(mediaQueryExpressionEClass, MEDIA_QUERY_EXPRESSION__FEATURE);\n createEReference(mediaQueryExpressionEClass, MEDIA_QUERY_EXPRESSION__EXPRESSION);\n\n pageDeclarationEClass = createEClass(PAGE_DECLARATION);\n createEAttribute(pageDeclarationEClass, PAGE_DECLARATION__PSEUDO_PAGE);\n createEReference(pageDeclarationEClass, PAGE_DECLARATION__BODY);\n\n namespaceDeclarationEClass = createEClass(NAMESPACE_DECLARATION);\n createEAttribute(namespaceDeclarationEClass, NAMESPACE_DECLARATION__NAME);\n createEAttribute(namespaceDeclarationEClass, NAMESPACE_DECLARATION__URL);\n\n fontFaceDeclarationEClass = createEClass(FONT_FACE_DECLARATION);\n createEReference(fontFaceDeclarationEClass, FONT_FACE_DECLARATION__BODY);\n\n ruleSetEClass = createEClass(RULE_SET);\n createEReference(ruleSetEClass, RULE_SET__SELECTORS);\n createEReference(ruleSetEClass, RULE_SET__BODY);\n\n ruleSetBodyEClass = createEClass(RULE_SET_BODY);\n createEReference(ruleSetBodyEClass, RULE_SET_BODY__DECLARATIONS);\n\n propertyDeclarationEClass = createEClass(PROPERTY_DECLARATION);\n createEReference(propertyDeclarationEClass, PROPERTY_DECLARATION__VALUES_LISTS);\n\n knownPropertyDeclarationEClass = createEClass(KNOWN_PROPERTY_DECLARATION);\n createEAttribute(knownPropertyDeclarationEClass, KNOWN_PROPERTY_DECLARATION__NAME);\n\n unrecognizedPropertyDeclarationEClass = createEClass(UNRECOGNIZED_PROPERTY_DECLARATION);\n createEAttribute(unrecognizedPropertyDeclarationEClass, UNRECOGNIZED_PROPERTY_DECLARATION__NAME);\n\n propertyValuesListsEClass = createEClass(PROPERTY_VALUES_LISTS);\n createEReference(propertyValuesListsEClass, PROPERTY_VALUES_LISTS__LISTS);\n\n propertyValuesListEClass = createEClass(PROPERTY_VALUES_LIST);\n createEReference(propertyValuesListEClass, PROPERTY_VALUES_LIST__VALUES);\n\n propertyValueEClass = createEClass(PROPERTY_VALUE);\n createEReference(propertyValueEClass, PROPERTY_VALUE__VALUE);\n createEAttribute(propertyValueEClass, PROPERTY_VALUE__IMPORTANT);\n\n selectorEClass = createEClass(SELECTOR);\n\n simpleSelectorEClass = createEClass(SIMPLE_SELECTOR);\n\n typeSelectorEClass = createEClass(TYPE_SELECTOR);\n createEReference(typeSelectorEClass, TYPE_SELECTOR__NAMESPACE_PREFIX);\n createEAttribute(typeSelectorEClass, TYPE_SELECTOR__TYPE);\n\n namespacePrefixEClass = createEClass(NAMESPACE_PREFIX);\n createEReference(namespacePrefixEClass, NAMESPACE_PREFIX__NAMESPACE);\n\n universalSelectorEClass = createEClass(UNIVERSAL_SELECTOR);\n createEReference(universalSelectorEClass, UNIVERSAL_SELECTOR__NAMESPACE_PREFIX);\n\n attributeSelectorEClass = createEClass(ATTRIBUTE_SELECTOR);\n createEReference(attributeSelectorEClass, ATTRIBUTE_SELECTOR__ATTRIBUTE);\n createEAttribute(attributeSelectorEClass, ATTRIBUTE_SELECTOR__MATCHER);\n createEReference(attributeSelectorEClass, ATTRIBUTE_SELECTOR__VALUE);\n\n attributeEClass = createEClass(ATTRIBUTE);\n createEReference(attributeEClass, ATTRIBUTE__NAMESPACE_PREFIX);\n createEAttribute(attributeEClass, ATTRIBUTE__NAME);\n\n attributeValueLiteralEClass = createEClass(ATTRIBUTE_VALUE_LITERAL);\n\n idSelectorEClass = createEClass(ID_SELECTOR);\n createEAttribute(idSelectorEClass, ID_SELECTOR__NAME);\n\n classSelectorEClass = createEClass(CLASS_SELECTOR);\n createEAttribute(classSelectorEClass, CLASS_SELECTOR__NAME);\n\n pseudoSelectorEClass = createEClass(PSEUDO_SELECTOR);\n\n noArgsPseudoClassSelectorEClass = createEClass(NO_ARGS_PSEUDO_CLASS_SELECTOR);\n createEAttribute(noArgsPseudoClassSelectorEClass, NO_ARGS_PSEUDO_CLASS_SELECTOR__PSEUDO);\n\n pseudoElementSelectorEClass = createEClass(PSEUDO_ELEMENT_SELECTOR);\n createEAttribute(pseudoElementSelectorEClass, PSEUDO_ELEMENT_SELECTOR__DOUBLE_SEMI_COLON);\n createEAttribute(pseudoElementSelectorEClass, PSEUDO_ELEMENT_SELECTOR__PSEUDO);\n\n languagePseudoClassSelectorEClass = createEClass(LANGUAGE_PSEUDO_CLASS_SELECTOR);\n createEAttribute(languagePseudoClassSelectorEClass, LANGUAGE_PSEUDO_CLASS_SELECTOR__LANGUGAGE_ID);\n\n functionalPseudoClassSelectorEClass = createEClass(FUNCTIONAL_PSEUDO_CLASS_SELECTOR);\n createEAttribute(functionalPseudoClassSelectorEClass, FUNCTIONAL_PSEUDO_CLASS_SELECTOR__PSEUDO);\n createEReference(functionalPseudoClassSelectorEClass, FUNCTIONAL_PSEUDO_CLASS_SELECTOR__ARGUMENT);\n\n typeArgumentEClass = createEClass(TYPE_ARGUMENT);\n\n linearArgumentEClass = createEClass(LINEAR_ARGUMENT);\n createEReference(linearArgumentEClass, LINEAR_ARGUMENT__COEFFICIENT);\n createEAttribute(linearArgumentEClass, LINEAR_ARGUMENT__CONSTANT_SIGN);\n createEAttribute(linearArgumentEClass, LINEAR_ARGUMENT__CONSTANT);\n\n coefficientEClass = createEClass(COEFFICIENT);\n createEAttribute(coefficientEClass, COEFFICIENT__IDENT);\n createEAttribute(coefficientEClass, COEFFICIENT__INT);\n\n constantArgumentEClass = createEClass(CONSTANT_ARGUMENT);\n createEAttribute(constantArgumentEClass, CONSTANT_ARGUMENT__SIGN);\n createEAttribute(constantArgumentEClass, CONSTANT_ARGUMENT__INT);\n\n parityArgumentEClass = createEClass(PARITY_ARGUMENT);\n createEAttribute(parityArgumentEClass, PARITY_ARGUMENT__PARITY);\n\n negationSelectorEClass = createEClass(NEGATION_SELECTOR);\n createEReference(negationSelectorEClass, NEGATION_SELECTOR__SIMPLE_SELECTOR);\n\n valueLiteralEClass = createEClass(VALUE_LITERAL);\n\n numberLiteralEClass = createEClass(NUMBER_LITERAL);\n\n sizeLiteralEClass = createEClass(SIZE_LITERAL);\n\n stringLiteralEClass = createEClass(STRING_LITERAL);\n createEAttribute(stringLiteralEClass, STRING_LITERAL__VALUE);\n\n colorLiteralEClass = createEClass(COLOR_LITERAL);\n\n componentColorLiteralEClass = createEClass(COMPONENT_COLOR_LITERAL);\n\n colorComponentLiteralEClass = createEClass(COLOR_COMPONENT_LITERAL);\n createEReference(colorComponentLiteralEClass, COLOR_COMPONENT_LITERAL__NUMBER);\n createEAttribute(colorComponentLiteralEClass, COLOR_COMPONENT_LITERAL__PERCENTAGE);\n\n urlLiteralEClass = createEClass(URL_LITERAL);\n createEAttribute(urlLiteralEClass, URL_LITERAL__VALUE);\n\n bareWordLiteralEClass = createEClass(BARE_WORD_LITERAL);\n createEAttribute(bareWordLiteralEClass, BARE_WORD_LITERAL__BARE_WORD);\n\n functionCallLiteralEClass = createEClass(FUNCTION_CALL_LITERAL);\n createEAttribute(functionCallLiteralEClass, FUNCTION_CALL_LITERAL__FUNCTION);\n createEReference(functionCallLiteralEClass, FUNCTION_CALL_LITERAL__ARGUMENTS);\n\n descendantCombinatorEClass = createEClass(DESCENDANT_COMBINATOR);\n createEReference(descendantCombinatorEClass, DESCENDANT_COMBINATOR__LEFT);\n createEAttribute(descendantCombinatorEClass, DESCENDANT_COMBINATOR__WS_I);\n createEReference(descendantCombinatorEClass, DESCENDANT_COMBINATOR__RIGHT);\n\n childCombinatorEClass = createEClass(CHILD_COMBINATOR);\n createEReference(childCombinatorEClass, CHILD_COMBINATOR__LEFT);\n createEAttribute(childCombinatorEClass, CHILD_COMBINATOR__WS_L);\n createEAttribute(childCombinatorEClass, CHILD_COMBINATOR__WS_R);\n createEReference(childCombinatorEClass, CHILD_COMBINATOR__RIGHT);\n\n adjacentSiblingCombinatorEClass = createEClass(ADJACENT_SIBLING_COMBINATOR);\n createEReference(adjacentSiblingCombinatorEClass, ADJACENT_SIBLING_COMBINATOR__LEFT);\n createEAttribute(adjacentSiblingCombinatorEClass, ADJACENT_SIBLING_COMBINATOR__WS_L);\n createEAttribute(adjacentSiblingCombinatorEClass, ADJACENT_SIBLING_COMBINATOR__WS_R);\n createEReference(adjacentSiblingCombinatorEClass, ADJACENT_SIBLING_COMBINATOR__RIGHT);\n\n generalSiblingCombinatorEClass = createEClass(GENERAL_SIBLING_COMBINATOR);\n createEReference(generalSiblingCombinatorEClass, GENERAL_SIBLING_COMBINATOR__LEFT);\n createEAttribute(generalSiblingCombinatorEClass, GENERAL_SIBLING_COMBINATOR__WS_L);\n createEAttribute(generalSiblingCombinatorEClass, GENERAL_SIBLING_COMBINATOR__WS_R);\n createEReference(generalSiblingCombinatorEClass, GENERAL_SIBLING_COMBINATOR__RIGHT);\n\n simpleSelectorSequenceEClass = createEClass(SIMPLE_SELECTOR_SEQUENCE);\n createEReference(simpleSelectorSequenceEClass, SIMPLE_SELECTOR_SEQUENCE__HEAD);\n createEReference(simpleSelectorSequenceEClass, SIMPLE_SELECTOR_SEQUENCE__SIMPLE_SELECTORS);\n\n universalNamespacePrefixEClass = createEClass(UNIVERSAL_NAMESPACE_PREFIX);\n\n withoutNamespacePrefixEClass = createEClass(WITHOUT_NAMESPACE_PREFIX);\n\n stringAttributeValueLiteralEClass = createEClass(STRING_ATTRIBUTE_VALUE_LITERAL);\n createEAttribute(stringAttributeValueLiteralEClass, STRING_ATTRIBUTE_VALUE_LITERAL__VALUE);\n\n integerAttributeValueLiteralEClass = createEClass(INTEGER_ATTRIBUTE_VALUE_LITERAL);\n createEAttribute(integerAttributeValueLiteralEClass, INTEGER_ATTRIBUTE_VALUE_LITERAL__VALUE);\n\n decimalAttributeValueLiteralEClass = createEClass(DECIMAL_ATTRIBUTE_VALUE_LITERAL);\n createEAttribute(decimalAttributeValueLiteralEClass, DECIMAL_ATTRIBUTE_VALUE_LITERAL__VALUE);\n\n integerLiteralEClass = createEClass(INTEGER_LITERAL);\n createEAttribute(integerLiteralEClass, INTEGER_LITERAL__INT);\n\n decimalLiteralEClass = createEClass(DECIMAL_LITERAL);\n createEAttribute(decimalLiteralEClass, DECIMAL_LITERAL__DECIMAL);\n\n quantifiedSizeLiteralEClass = createEClass(QUANTIFIED_SIZE_LITERAL);\n createEReference(quantifiedSizeLiteralEClass, QUANTIFIED_SIZE_LITERAL__NUMBER);\n createEAttribute(quantifiedSizeLiteralEClass, QUANTIFIED_SIZE_LITERAL__DIMENSION);\n\n qualifiedSizeLiteralEClass = createEClass(QUALIFIED_SIZE_LITERAL);\n createEAttribute(qualifiedSizeLiteralEClass, QUALIFIED_SIZE_LITERAL__BAREWORD);\n\n fontHeightLiteralEClass = createEClass(FONT_HEIGHT_LITERAL);\n createEReference(fontHeightLiteralEClass, FONT_HEIGHT_LITERAL__FONT_HEIGHT);\n createEReference(fontHeightLiteralEClass, FONT_HEIGHT_LITERAL__LINE_HEIGHT);\n createEAttribute(fontHeightLiteralEClass, FONT_HEIGHT_LITERAL__LINE_HEIGHT_DIMENSION);\n\n rgbColorEClass = createEClass(RGB_COLOR);\n createEAttribute(rgbColorEClass, RGB_COLOR__RGB);\n\n namedColorEClass = createEClass(NAMED_COLOR);\n createEAttribute(namedColorEClass, NAMED_COLOR__COLOR);\n\n componentRGBColorEClass = createEClass(COMPONENT_RGB_COLOR);\n createEReference(componentRGBColorEClass, COMPONENT_RGB_COLOR__RED);\n createEReference(componentRGBColorEClass, COMPONENT_RGB_COLOR__GREEN);\n createEReference(componentRGBColorEClass, COMPONENT_RGB_COLOR__BLUE);\n\n componentRGBAlphaColorEClass = createEClass(COMPONENT_RGB_ALPHA_COLOR);\n createEReference(componentRGBAlphaColorEClass, COMPONENT_RGB_ALPHA_COLOR__RED);\n createEReference(componentRGBAlphaColorEClass, COMPONENT_RGB_ALPHA_COLOR__GREEN);\n createEReference(componentRGBAlphaColorEClass, COMPONENT_RGB_ALPHA_COLOR__BLUE);\n createEReference(componentRGBAlphaColorEClass, COMPONENT_RGB_ALPHA_COLOR__OPACITY);\n\n componentHSLColorEClass = createEClass(COMPONENT_HSL_COLOR);\n createEReference(componentHSLColorEClass, COMPONENT_HSL_COLOR__HUE);\n createEReference(componentHSLColorEClass, COMPONENT_HSL_COLOR__SATURATION);\n createEReference(componentHSLColorEClass, COMPONENT_HSL_COLOR__LIGHTNESS);\n\n componentHSLAlphaColorEClass = createEClass(COMPONENT_HSL_ALPHA_COLOR);\n createEReference(componentHSLAlphaColorEClass, COMPONENT_HSL_ALPHA_COLOR__HUE);\n createEReference(componentHSLAlphaColorEClass, COMPONENT_HSL_ALPHA_COLOR__SATURATION);\n createEReference(componentHSLAlphaColorEClass, COMPONENT_HSL_ALPHA_COLOR__LIGHTNESS);\n createEReference(componentHSLAlphaColorEClass, COMPONENT_HSL_ALPHA_COLOR__OPACITY);\n\n alphaLiteralEClass = createEClass(ALPHA_LITERAL);\n createEReference(alphaLiteralEClass, ALPHA_LITERAL__OPACITY);\n\n // Create enums\n knownPropertiesEEnum = createEEnum(KNOWN_PROPERTIES);\n attributeSelectorMatchersEEnum = createEEnum(ATTRIBUTE_SELECTOR_MATCHERS);\n noArgsPseudosEEnum = createEEnum(NO_ARGS_PSEUDOS);\n pseudoElementsEEnum = createEEnum(PSEUDO_ELEMENTS);\n functionalPseudoClassesEEnum = createEEnum(FUNCTIONAL_PSEUDO_CLASSES);\n paritiesEEnum = createEEnum(PARITIES);\n dimensionsEEnum = createEEnum(DIMENSIONS);\n colorNamesEEnum = createEEnum(COLOR_NAMES);\n }", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tinvoiceEClass = createEClass(INVOICE);\n\t\tcreateEAttribute(invoiceEClass, INVOICE__INVOICE_ID);\n\t\tcreateEReference(invoiceEClass, INVOICE__BILLING_ACCOUNT);\n\t\tcreateEReference(invoiceEClass, INVOICE__CONTACT_MECH);\n\t\tcreateEReference(invoiceEClass, INVOICE__CURRENCY_UOM);\n\t\tcreateEAttribute(invoiceEClass, INVOICE__DESCRIPTION);\n\t\tcreateEAttribute(invoiceEClass, INVOICE__DUE_DATE);\n\t\tcreateEReference(invoiceEClass, INVOICE__INVOICE_ATTRIBUTES);\n\t\tcreateEAttribute(invoiceEClass, INVOICE__INVOICE_DATE);\n\t\tcreateEReference(invoiceEClass, INVOICE__INVOICE_ITEMS);\n\t\tcreateEAttribute(invoiceEClass, INVOICE__INVOICE_MESSAGE);\n\t\tcreateEReference(invoiceEClass, INVOICE__INVOICE_NOTES);\n\t\tcreateEReference(invoiceEClass, INVOICE__INVOICE_STATUSES);\n\t\tcreateEReference(invoiceEClass, INVOICE__INVOICE_TYPE);\n\t\tcreateEAttribute(invoiceEClass, INVOICE__PAID_DATE);\n\t\tcreateEReference(invoiceEClass, INVOICE__PARTY);\n\t\tcreateEReference(invoiceEClass, INVOICE__PARTY_ID_FROM);\n\t\tcreateEReference(invoiceEClass, INVOICE__RECURRENCE_INFO);\n\t\tcreateEAttribute(invoiceEClass, INVOICE__REFERENCE_NUMBER);\n\t\tcreateEReference(invoiceEClass, INVOICE__ROLE_TYPE);\n\t\tcreateEReference(invoiceEClass, INVOICE__STATUS);\n\n\t\tinvoiceAttributeEClass = createEClass(INVOICE_ATTRIBUTE);\n\t\tcreateEReference(invoiceAttributeEClass, INVOICE_ATTRIBUTE__INVOICE);\n\t\tcreateEAttribute(invoiceAttributeEClass, INVOICE_ATTRIBUTE__ATTR_NAME);\n\t\tcreateEAttribute(invoiceAttributeEClass, INVOICE_ATTRIBUTE__ATTR_DESCRIPTION);\n\t\tcreateEAttribute(invoiceAttributeEClass, INVOICE_ATTRIBUTE__ATTR_VALUE);\n\n\t\tinvoiceContactMechEClass = createEClass(INVOICE_CONTACT_MECH);\n\t\tcreateEReference(invoiceContactMechEClass, INVOICE_CONTACT_MECH__INVOICE);\n\t\tcreateEReference(invoiceContactMechEClass, INVOICE_CONTACT_MECH__CONTACT_MECH);\n\t\tcreateEReference(invoiceContactMechEClass, INVOICE_CONTACT_MECH__CONTACT_MECH_PURPOSE_TYPE);\n\n\t\tinvoiceContentEClass = createEClass(INVOICE_CONTENT);\n\t\tcreateEReference(invoiceContentEClass, INVOICE_CONTENT__INVOICE);\n\t\tcreateEReference(invoiceContentEClass, INVOICE_CONTENT__CONTENT);\n\t\tcreateEReference(invoiceContentEClass, INVOICE_CONTENT__INVOICE_CONTENT_TYPE);\n\t\tcreateEAttribute(invoiceContentEClass, INVOICE_CONTENT__FROM_DATE);\n\t\tcreateEAttribute(invoiceContentEClass, INVOICE_CONTENT__THRU_DATE);\n\n\t\tinvoiceContentTypeEClass = createEClass(INVOICE_CONTENT_TYPE);\n\t\tcreateEAttribute(invoiceContentTypeEClass, INVOICE_CONTENT_TYPE__INVOICE_CONTENT_TYPE_ID);\n\t\tcreateEAttribute(invoiceContentTypeEClass, INVOICE_CONTENT_TYPE__DESCRIPTION);\n\t\tcreateEAttribute(invoiceContentTypeEClass, INVOICE_CONTENT_TYPE__HAS_TABLE);\n\t\tcreateEReference(invoiceContentTypeEClass, INVOICE_CONTENT_TYPE__PARENT_TYPE);\n\n\t\tinvoiceItemEClass = createEClass(INVOICE_ITEM);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__INVOICE);\n\t\tcreateEAttribute(invoiceItemEClass, INVOICE_ITEM__INVOICE_ITEM_SEQ_ID);\n\t\tcreateEAttribute(invoiceItemEClass, INVOICE_ITEM__AMOUNT);\n\t\tcreateEAttribute(invoiceItemEClass, INVOICE_ITEM__DESCRIPTION);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__INVENTORY_ITEM);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__INVOICE_ITEM_TYPE);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__OVERRIDE_GL_ACCOUNT);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__OVERRIDE_ORG_PARTY);\n\t\tcreateEAttribute(invoiceItemEClass, INVOICE_ITEM__PARENT_INVOICE_ID);\n\t\tcreateEAttribute(invoiceItemEClass, INVOICE_ITEM__PARENT_INVOICE_ITEM_SEQ_ID);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__PRODUCT);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__PRODUCT_FEATURE);\n\t\tcreateEAttribute(invoiceItemEClass, INVOICE_ITEM__QUANTITY);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__SALES_OPPORTUNITY);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__TAX_AUTH_GEO);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__TAX_AUTH_PARTY);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__TAX_AUTHORITY_RATE_SEQ);\n\t\tcreateEAttribute(invoiceItemEClass, INVOICE_ITEM__TAXABLE_FLAG);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__UOM);\n\n\t\tinvoiceItemAssocEClass = createEClass(INVOICE_ITEM_ASSOC);\n\t\tcreateEReference(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__INVOICE_ITEM_ASSOC_TYPE);\n\t\tcreateEAttribute(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__FROM_DATE);\n\t\tcreateEAttribute(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__INVOICE_ID_FROM);\n\t\tcreateEAttribute(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__INVOICE_ID_TO);\n\t\tcreateEAttribute(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__INVOICE_ITEM_SEQ_ID_FROM);\n\t\tcreateEAttribute(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__INVOICE_ITEM_SEQ_ID_TO);\n\t\tcreateEAttribute(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__AMOUNT);\n\t\tcreateEReference(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__PARTY_ID_FROM);\n\t\tcreateEReference(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__PARTY_ID_TO);\n\t\tcreateEAttribute(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__QUANTITY);\n\t\tcreateEAttribute(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__THRU_DATE);\n\n\t\tinvoiceItemAssocTypeEClass = createEClass(INVOICE_ITEM_ASSOC_TYPE);\n\t\tcreateEAttribute(invoiceItemAssocTypeEClass, INVOICE_ITEM_ASSOC_TYPE__INVOICE_ITEM_ASSOC_TYPE_ID);\n\t\tcreateEAttribute(invoiceItemAssocTypeEClass, INVOICE_ITEM_ASSOC_TYPE__DESCRIPTION);\n\t\tcreateEAttribute(invoiceItemAssocTypeEClass, INVOICE_ITEM_ASSOC_TYPE__HAS_TABLE);\n\t\tcreateEReference(invoiceItemAssocTypeEClass, INVOICE_ITEM_ASSOC_TYPE__PARENT_TYPE);\n\n\t\tinvoiceItemAttributeEClass = createEClass(INVOICE_ITEM_ATTRIBUTE);\n\t\tcreateEAttribute(invoiceItemAttributeEClass, INVOICE_ITEM_ATTRIBUTE__ATTR_NAME);\n\t\tcreateEAttribute(invoiceItemAttributeEClass, INVOICE_ITEM_ATTRIBUTE__INVOICE_ID);\n\t\tcreateEAttribute(invoiceItemAttributeEClass, INVOICE_ITEM_ATTRIBUTE__INVOICE_ITEM_SEQ_ID);\n\t\tcreateEAttribute(invoiceItemAttributeEClass, INVOICE_ITEM_ATTRIBUTE__ATTR_DESCRIPTION);\n\t\tcreateEAttribute(invoiceItemAttributeEClass, INVOICE_ITEM_ATTRIBUTE__ATTR_VALUE);\n\n\t\tinvoiceItemTypeEClass = createEClass(INVOICE_ITEM_TYPE);\n\t\tcreateEAttribute(invoiceItemTypeEClass, INVOICE_ITEM_TYPE__INVOICE_ITEM_TYPE_ID);\n\t\tcreateEReference(invoiceItemTypeEClass, INVOICE_ITEM_TYPE__DEFAULT_GL_ACCOUNT);\n\t\tcreateEAttribute(invoiceItemTypeEClass, INVOICE_ITEM_TYPE__DESCRIPTION);\n\t\tcreateEAttribute(invoiceItemTypeEClass, INVOICE_ITEM_TYPE__HAS_TABLE);\n\t\tcreateEReference(invoiceItemTypeEClass, INVOICE_ITEM_TYPE__INVOICE_ITEM_TYPE_ATTRS);\n\t\tcreateEReference(invoiceItemTypeEClass, INVOICE_ITEM_TYPE__INVOICE_ITEM_TYPE_GL_ACCOUNTS);\n\t\tcreateEReference(invoiceItemTypeEClass, INVOICE_ITEM_TYPE__PARENT_TYPE);\n\n\t\tinvoiceItemTypeAttrEClass = createEClass(INVOICE_ITEM_TYPE_ATTR);\n\t\tcreateEReference(invoiceItemTypeAttrEClass, INVOICE_ITEM_TYPE_ATTR__INVOICE_ITEM_TYPE);\n\t\tcreateEAttribute(invoiceItemTypeAttrEClass, INVOICE_ITEM_TYPE_ATTR__ATTR_NAME);\n\t\tcreateEAttribute(invoiceItemTypeAttrEClass, INVOICE_ITEM_TYPE_ATTR__DESCRIPTION);\n\n\t\tinvoiceItemTypeGlAccountEClass = createEClass(INVOICE_ITEM_TYPE_GL_ACCOUNT);\n\t\tcreateEReference(invoiceItemTypeGlAccountEClass, INVOICE_ITEM_TYPE_GL_ACCOUNT__INVOICE_ITEM_TYPE);\n\t\tcreateEReference(invoiceItemTypeGlAccountEClass, INVOICE_ITEM_TYPE_GL_ACCOUNT__ORGANIZATION_PARTY);\n\t\tcreateEReference(invoiceItemTypeGlAccountEClass, INVOICE_ITEM_TYPE_GL_ACCOUNT__GL_ACCOUNT);\n\n\t\tinvoiceItemTypeMapEClass = createEClass(INVOICE_ITEM_TYPE_MAP);\n\t\tcreateEReference(invoiceItemTypeMapEClass, INVOICE_ITEM_TYPE_MAP__INVOICE_TYPE);\n\t\tcreateEAttribute(invoiceItemTypeMapEClass, INVOICE_ITEM_TYPE_MAP__INVOICE_ITEM_MAP_KEY);\n\t\tcreateEReference(invoiceItemTypeMapEClass, INVOICE_ITEM_TYPE_MAP__INVOICE_ITEM_TYPE);\n\n\t\tinvoiceNoteEClass = createEClass(INVOICE_NOTE);\n\t\tcreateEReference(invoiceNoteEClass, INVOICE_NOTE__INVOICE);\n\n\t\tinvoiceRoleEClass = createEClass(INVOICE_ROLE);\n\t\tcreateEReference(invoiceRoleEClass, INVOICE_ROLE__INVOICE);\n\t\tcreateEReference(invoiceRoleEClass, INVOICE_ROLE__PARTY);\n\t\tcreateEReference(invoiceRoleEClass, INVOICE_ROLE__ROLE_TYPE);\n\t\tcreateEAttribute(invoiceRoleEClass, INVOICE_ROLE__DATETIME_PERFORMED);\n\t\tcreateEAttribute(invoiceRoleEClass, INVOICE_ROLE__PERCENTAGE);\n\n\t\tinvoiceStatusEClass = createEClass(INVOICE_STATUS);\n\t\tcreateEReference(invoiceStatusEClass, INVOICE_STATUS__STATUS);\n\t\tcreateEReference(invoiceStatusEClass, INVOICE_STATUS__INVOICE);\n\t\tcreateEAttribute(invoiceStatusEClass, INVOICE_STATUS__STATUS_DATE);\n\t\tcreateEReference(invoiceStatusEClass, INVOICE_STATUS__CHANGE_BY_USER_LOGIN);\n\n\t\tinvoiceTermEClass = createEClass(INVOICE_TERM);\n\t\tcreateEAttribute(invoiceTermEClass, INVOICE_TERM__INVOICE_TERM_ID);\n\t\tcreateEAttribute(invoiceTermEClass, INVOICE_TERM__DESCRIPTION);\n\t\tcreateEReference(invoiceTermEClass, INVOICE_TERM__INVOICE);\n\t\tcreateEAttribute(invoiceTermEClass, INVOICE_TERM__INVOICE_ITEM_SEQ_ID);\n\t\tcreateEReference(invoiceTermEClass, INVOICE_TERM__INVOICE_TERM_ATTRIBUTES);\n\t\tcreateEAttribute(invoiceTermEClass, INVOICE_TERM__TERM_DAYS);\n\t\tcreateEReference(invoiceTermEClass, INVOICE_TERM__TERM_TYPE);\n\t\tcreateEAttribute(invoiceTermEClass, INVOICE_TERM__TERM_VALUE);\n\t\tcreateEAttribute(invoiceTermEClass, INVOICE_TERM__TEXT_VALUE);\n\t\tcreateEAttribute(invoiceTermEClass, INVOICE_TERM__UOM_ID);\n\n\t\tinvoiceTermAttributeEClass = createEClass(INVOICE_TERM_ATTRIBUTE);\n\t\tcreateEReference(invoiceTermAttributeEClass, INVOICE_TERM_ATTRIBUTE__INVOICE_TERM);\n\t\tcreateEAttribute(invoiceTermAttributeEClass, INVOICE_TERM_ATTRIBUTE__ATTR_NAME);\n\t\tcreateEAttribute(invoiceTermAttributeEClass, INVOICE_TERM_ATTRIBUTE__ATTR_DESCRIPTION);\n\t\tcreateEAttribute(invoiceTermAttributeEClass, INVOICE_TERM_ATTRIBUTE__ATTR_VALUE);\n\n\t\tinvoiceTypeEClass = createEClass(INVOICE_TYPE);\n\t\tcreateEAttribute(invoiceTypeEClass, INVOICE_TYPE__INVOICE_TYPE_ID);\n\t\tcreateEAttribute(invoiceTypeEClass, INVOICE_TYPE__DESCRIPTION);\n\t\tcreateEAttribute(invoiceTypeEClass, INVOICE_TYPE__HAS_TABLE);\n\t\tcreateEReference(invoiceTypeEClass, INVOICE_TYPE__INVOICE_TYPE_ATTRS);\n\t\tcreateEReference(invoiceTypeEClass, INVOICE_TYPE__PARENT_TYPE);\n\n\t\tinvoiceTypeAttrEClass = createEClass(INVOICE_TYPE_ATTR);\n\t\tcreateEReference(invoiceTypeAttrEClass, INVOICE_TYPE_ATTR__INVOICE_TYPE);\n\t\tcreateEAttribute(invoiceTypeAttrEClass, INVOICE_TYPE_ATTR__ATTR_NAME);\n\t\tcreateEAttribute(invoiceTypeAttrEClass, INVOICE_TYPE_ATTR__DESCRIPTION);\n\t}", "public void createModelFromAlloy(){\n\t\t// Get signatures list\n\t\tSafeList<Sig> sigs = module.getAllSigs();\n\t\t// Check if the list is empty\n\t\tif(sigs.isEmpty()) assertMessage(\"Error in create Model FromAlloy: no sig found!\");\n\t\t// Generate java class source file for one top-level sig at a time\n\t\tfor(int i = 0; i<sigs.size(); i++) {\n\t\t\tSig aSig = sigs.get(i);\n\t\t\tif (!aSig.isTopLevel()) continue;\n\t\t\tif(!aSig.builtin){ // User-defined sig\n\t\t\t\tif(aSig.isSubsig != null){\n\t\t\t\t\tPrimSig pSig = (PrimSig) aSig;\n\t\t\t\t\trecursiveGenerate(null, pSig);\t\n\t\t\t\t} else assertMessage(\"TODO: Dealt with subset sig\");\n\t\t\t}\n\t\t\telse assertMessage(\"TODO: Dealt with built-in sig\");\n\t\t}\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\tcontrolEClass = createEClass(CONTROL);\n\t\tcreateEReference(controlEClass, CONTROL__MIDI);\n\t\tcreateEAttribute(controlEClass, CONTROL__BACKGROUND);\n\t\tcreateEAttribute(controlEClass, CONTROL__CENTERED);\n\t\tcreateEAttribute(controlEClass, CONTROL__COLOR);\n\t\tcreateEAttribute(controlEClass, CONTROL__H);\n\t\tcreateEAttribute(controlEClass, CONTROL__INVERTED);\n\t\tcreateEAttribute(controlEClass, CONTROL__INVERTED_X);\n\t\tcreateEAttribute(controlEClass, CONTROL__INVERTED_Y);\n\t\tcreateEAttribute(controlEClass, CONTROL__LOCAL_OFF);\n\t\tcreateEAttribute(controlEClass, CONTROL__NAME);\n\t\tcreateEAttribute(controlEClass, CONTROL__NUMBER);\n\t\tcreateEAttribute(controlEClass, CONTROL__NUMBER_X);\n\t\tcreateEAttribute(controlEClass, CONTROL__NUMBER_Y);\n\t\tcreateEAttribute(controlEClass, CONTROL__OSC_CS);\n\t\tcreateEAttribute(controlEClass, CONTROL__OUTLINE);\n\t\tcreateEAttribute(controlEClass, CONTROL__RESPONSE);\n\t\tcreateEAttribute(controlEClass, CONTROL__SCALEF);\n\t\tcreateEAttribute(controlEClass, CONTROL__SCALET);\n\t\tcreateEAttribute(controlEClass, CONTROL__SECONDS);\n\t\tcreateEAttribute(controlEClass, CONTROL__SIZE);\n\t\tcreateEAttribute(controlEClass, CONTROL__TEXT);\n\t\tcreateEAttribute(controlEClass, CONTROL__TYPE);\n\t\tcreateEAttribute(controlEClass, CONTROL__W);\n\t\tcreateEAttribute(controlEClass, CONTROL__X);\n\t\tcreateEAttribute(controlEClass, CONTROL__Y);\n\n\t\tlayoutEClass = createEClass(LAYOUT);\n\t\tcreateEReference(layoutEClass, LAYOUT__TABPAGE);\n\t\tcreateEAttribute(layoutEClass, LAYOUT__MODE);\n\t\tcreateEAttribute(layoutEClass, LAYOUT__ORIENTATION);\n\t\tcreateEAttribute(layoutEClass, LAYOUT__VERSION);\n\n\t\tmidiEClass = createEClass(MIDI);\n\t\tcreateEAttribute(midiEClass, MIDI__CHANNEL);\n\t\tcreateEAttribute(midiEClass, MIDI__DATA1);\n\t\tcreateEAttribute(midiEClass, MIDI__DATA2F);\n\t\tcreateEAttribute(midiEClass, MIDI__DATA2T);\n\t\tcreateEAttribute(midiEClass, MIDI__TYPE);\n\t\tcreateEAttribute(midiEClass, MIDI__VAR);\n\n\t\ttabpageEClass = createEClass(TABPAGE);\n\t\tcreateEReference(tabpageEClass, TABPAGE__CONTROL);\n\t\tcreateEAttribute(tabpageEClass, TABPAGE__NAME);\n\n\t\ttopEClass = createEClass(TOP);\n\t\tcreateEReference(topEClass, TOP__LAYOUT);\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\tblockEClass = createEClass(BLOCK);\n\t\tcreateEReference(blockEClass, BLOCK__STMTS);\n\n\t\tstmtEClass = createEClass(STMT);\n\n\t\tarithEClass = createEClass(ARITH);\n\n\t\talVarRefEClass = createEClass(AL_VAR_REF);\n\t\tcreateEAttribute(alVarRefEClass, AL_VAR_REF__NAME);\n\n\t\tarithLitEClass = createEClass(ARITH_LIT);\n\t\tcreateEAttribute(arithLitEClass, ARITH_LIT__VAL);\n\n\t\tarithOpEClass = createEClass(ARITH_OP);\n\t\tcreateEReference(arithOpEClass, ARITH_OP__LHS);\n\t\tcreateEReference(arithOpEClass, ARITH_OP__RHS);\n\n\t\tarithPlusEClass = createEClass(ARITH_PLUS);\n\n\t\tarithMinusEClass = createEClass(ARITH_MINUS);\n\n\t\tprintEClass = createEClass(PRINT);\n\t\tcreateEAttribute(printEClass, PRINT__NAME);\n\n\t\tassignEClass = createEClass(ASSIGN);\n\t\tcreateEAttribute(assignEClass, ASSIGN__NAME);\n\t\tcreateEReference(assignEClass, ASSIGN__VAL);\n\n\t\tifStmtEClass = createEClass(IF_STMT);\n\t\tcreateEReference(ifStmtEClass, IF_STMT__IF_BRANCH);\n\t\tcreateEReference(ifStmtEClass, IF_STMT__ELSE_BRANCH);\n\t\tcreateEReference(ifStmtEClass, IF_STMT__TEST);\n\n\t\trandRangeEClass = createEClass(RAND_RANGE);\n\t\tcreateEAttribute(randRangeEClass, RAND_RANGE__MIN);\n\t\tcreateEAttribute(randRangeEClass, RAND_RANGE__MAX);\n\n\t\tequalityTestEClass = createEClass(EQUALITY_TEST);\n\t\tcreateEReference(equalityTestEClass, EQUALITY_TEST__LHS);\n\t\tcreateEReference(equalityTestEClass, EQUALITY_TEST__RHS);\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\topenStackRequestEClass = createEClass(OPEN_STACK_REQUEST);\n\t\tcreateEAttribute(openStackRequestEClass, OPEN_STACK_REQUEST__PROJECT_NAME);\n\n\t\topenstackRequestDeleteEClass = createEClass(OPENSTACK_REQUEST_DELETE);\n\t\tcreateEAttribute(openstackRequestDeleteEClass, OPENSTACK_REQUEST_DELETE__OBJECT_TYPE);\n\t\tcreateEAttribute(openstackRequestDeleteEClass, OPENSTACK_REQUEST_DELETE__OBJECT_NAME);\n\n\t\topenstackRequestPollEClass = createEClass(OPENSTACK_REQUEST_POLL);\n\n\t\tvirtualMachineTypeEClass = createEClass(VIRTUAL_MACHINE_TYPE);\n\t\tcreateEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__DESCRIPTION);\n\t\tcreateEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__NUMBER_OF_CORES);\n\t\tcreateEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__MEMORY_SIZE_MB);\n\t\tcreateEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__ROOT_DISK_SIZE_GB);\n\t\tcreateEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__DISK_SIZE_GB);\n\t\tcreateEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__VOLUME_SIZE_GB);\n\t\tcreateEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__IMAGE_NAME);\n\t\tcreateEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__FLAVOR_NAME);\n\t\tcreateEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__NEED_PUBLIC_IP);\n\t\tcreateEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__DEPLOYMENT_STATUS);\n\t\tcreateEReference(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__INCOMING_SECURITY_RULES);\n\t\tcreateEReference(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__OUTBOUND_SECURITY_RULES);\n\n\t\tsecurityRuleEClass = createEClass(SECURITY_RULE);\n\t\tcreateEAttribute(securityRuleEClass, SECURITY_RULE__PORT_RANGE_START);\n\t\tcreateEAttribute(securityRuleEClass, SECURITY_RULE__PORT_RANGE_END);\n\t\tcreateEAttribute(securityRuleEClass, SECURITY_RULE__PREFIX);\n\t\tcreateEAttribute(securityRuleEClass, SECURITY_RULE__IP_PROTOCOL);\n\n\t\t// Create enums\n\t\tsecurityRuleProtocolEEnum = createEEnum(SECURITY_RULE_PROTOCOL);\n\t}", "public void createPackageContents() {\r\n\t\tif (isCreated)\r\n\t\t\treturn;\r\n\t\tisCreated = true;\r\n\r\n\t\t// Create classes and their features\r\n\t\tdataChannelEClass = createEClass(DATA_CHANNEL);\r\n\t\tcreateEAttribute(dataChannelEClass, DATA_CHANNEL__CAPACITY);\r\n\t\tcreateEReference(dataChannelEClass, DATA_CHANNEL__SOURCE_EVENT_GROUP);\r\n\t\tcreateEReference(dataChannelEClass, DATA_CHANNEL__SINK_EVENT_GROUP);\r\n\t\tcreateEReference(dataChannelEClass, DATA_CHANNEL__DATA_CHANNEL_SOURCE_CONNECTOR);\r\n\t\tcreateEReference(dataChannelEClass, DATA_CHANNEL__DATA_CHANNEL_SINK_CONNECTOR);\r\n\t\tcreateEReference(dataChannelEClass, DATA_CHANNEL__PARTITIONING);\r\n\t\tcreateEReference(dataChannelEClass, DATA_CHANNEL__TIME_GROUPING);\r\n\t\tcreateEReference(dataChannelEClass, DATA_CHANNEL__JOINS);\r\n\t\tcreateEAttribute(dataChannelEClass, DATA_CHANNEL__OUTGOING_DISTRIBUTION);\r\n\t\tcreateEAttribute(dataChannelEClass, DATA_CHANNEL__SCHEDULING);\r\n\t\tcreateEAttribute(dataChannelEClass, DATA_CHANNEL__PUT_POLICY);\r\n\t}", "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}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tbluetoothPortEClass = createEClass(BLUETOOTH_PORT);\n\n\t\tl2CAPInJobEClass = createEClass(L2CAP_IN_JOB);\n\n\t\tl2CAPoutJobEClass = createEClass(L2CA_POUT_JOB);\n\t}", "public void initializePackageContents()\n {\n if (isInitialized) return;\n isInitialized = true;\n\n // Initialize package\n setName(eNAME);\n setNsPrefix(eNS_PREFIX);\n setNsURI(eNS_URI);\n\n // Create type parameters\n\n // Set bounds for type parameters\n\n // Add supertypes to classes\n createFolderStatementEClass.getESuperTypes().add(this.getCreateStatement());\n createFileStatementEClass.getESuperTypes().add(this.getCreateStatement());\n\n // Initialize classes and features; add operations and parameters\n initEClass(persistEClass, Persist.class, \"Persist\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getPersist_Model(), ecorePackage.getEString(), \"model\", null, 0, 1, Persist.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getPersist_Statements(), this.getRuleStatement(), null, \"statements\", null, 0, -1, Persist.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(ruleStatementEClass, RuleStatement.class, \"RuleStatement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getRuleStatement_Id(), ecorePackage.getEString(), \"id\", null, 0, 1, RuleStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getRuleStatement_Rules(), this.getForEachStatement(), null, \"rules\", null, 0, -1, RuleStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(forEachStatementEClass, ForEachStatement.class, \"ForEachStatement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getForEachStatement_Class(), this.getEClassName(), null, \"class\", null, 0, 1, ForEachStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getForEachStatement_Contents(), this.getCreateStatement(), null, \"contents\", null, 0, -1, ForEachStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getForEachStatement_Calls(), this.getCallStatement(), null, \"calls\", null, 0, -1, ForEachStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(createStatementEClass, CreateStatement.class, \"CreateStatement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getCreateStatement_Name(), this.getFileName(), null, \"name\", null, 0, 1, CreateStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(createFolderStatementEClass, CreateFolderStatement.class, \"CreateFolderStatement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getCreateFolderStatement_Contents(), this.getCreateStatement(), null, \"contents\", null, 0, -1, CreateFolderStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getCreateFolderStatement_Calls(), this.getCallStatement(), null, \"calls\", null, 0, -1, CreateFolderStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(createFileStatementEClass, CreateFileStatement.class, \"CreateFileStatement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getCreateFileStatement_IncludedReferencing(), this.getWithStatement(), null, \"includedReferencing\", null, 0, 1, CreateFileStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getCreateFileStatement_IncludedAttributes(), this.getIncludeStatement(), null, \"includedAttributes\", null, 0, 1, CreateFileStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(fileNameEClass, FileName.class, \"FileName\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getFileName_Prefix(), ecorePackage.getEString(), \"prefix\", null, 0, 1, FileName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getFileName_Attr(), this.getEAttributeName(), null, \"attr\", null, 0, 1, FileName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getFileName_Right(), this.getFileName(), null, \"right\", null, 0, 1, FileName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(includeStatementEClass, IncludeStatement.class, \"IncludeStatement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getIncludeStatement_Included(), this.getEReferenceName(), null, \"included\", null, 0, -1, IncludeStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(withStatementEClass, WithStatement.class, \"WithStatement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getWithStatement_Included(), this.getEClassName(), null, \"included\", null, 0, -1, WithStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(callStatementEClass, CallStatement.class, \"CallStatement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getCallStatement_Rules(), ecorePackage.getEString(), \"rules\", null, 0, -1, CallStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(eClassNameEClass, EClassName.class, \"EClassName\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getEClassName_Base(), ecorePackage.getEString(), \"base\", null, 0, 1, EClassName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getEClassName_Fields(), ecorePackage.getEString(), \"fields\", null, 0, -1, EClassName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(eAttributeNameEClass, EAttributeName.class, \"EAttributeName\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getEAttributeName_Base(), ecorePackage.getEString(), \"base\", null, 0, 1, EAttributeName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getEAttributeName_Fields(), ecorePackage.getEString(), \"fields\", null, 0, -1, EAttributeName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(eReferenceNameEClass, EReferenceName.class, \"EReferenceName\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getEReferenceName_Base(), ecorePackage.getEString(), \"base\", null, 0, 1, EReferenceName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getEReferenceName_Fields(), ecorePackage.getEString(), \"fields\", null, 0, -1, EReferenceName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n // Create resource\n createResource(eNS_URI);\n }", "public void initializePackageContents() {\n\t\tif (isInitialized)\n\t\t\treturn;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tPivotModelPackage thePivotModelPackage = (PivotModelPackage) EPackage.Registry.INSTANCE\n\t\t\t\t.getEPackage(PivotModelPackage.eNS_URI);\n\t\tExpressionsPackageImpl theExpressionsPackage = (ExpressionsPackageImpl) EPackage.Registry.INSTANCE\n\t\t\t\t.getEPackage(ExpressionsPackageImpl.eNS_URI);\n\t\tDatatypesPackage theDatatypesPackage = (DatatypesPackage) EPackage.Registry.INSTANCE\n\t\t\t\t.getEPackage(DatatypesPackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tbagTypeEClass.getESuperTypes().add(this.getCollectionType());\n\t\ttupleTypeEClass.getESuperTypes().add(thePivotModelPackage.getType());\n\t\tcollectionTypeEClass.getESuperTypes().add(\n\t\t\t\tthePivotModelPackage.getType());\n\t\tinvalidTypeEClass.getESuperTypes().add(thePivotModelPackage.getType());\n\t\torderedSetTypeEClass.getESuperTypes().add(this.getCollectionType());\n\t\tsequenceTypeEClass.getESuperTypes().add(this.getCollectionType());\n\t\tsetTypeEClass.getESuperTypes().add(this.getCollectionType());\n\t\tvoidTypeEClass.getESuperTypes().add(thePivotModelPackage.getType());\n\t\ttypeTypeEClass.getESuperTypes().add(thePivotModelPackage.getType());\n\t\tanyTypeEClass.getESuperTypes().add(thePivotModelPackage.getType());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(\n\t\t\t\tbagTypeEClass,\n\t\t\t\tBagType.class,\n\t\t\t\t\"BagType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\n\t\tinitEClass(\n\t\t\t\ttupleTypeEClass,\n\t\t\t\tTupleType.class,\n\t\t\t\t\"TupleType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetTupleType_OclLibrary(),\n\t\t\t\tthis.getOclLibrary(),\n\t\t\t\tnull,\n\t\t\t\t\"oclLibrary\", null, 1, 1, TupleType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\n\t\tinitEClass(\n\t\t\t\tcollectionTypeEClass,\n\t\t\t\tCollectionType.class,\n\t\t\t\t\"CollectionType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetCollectionType_ElementType(),\n\t\t\t\tthePivotModelPackage.getType(),\n\t\t\t\tnull,\n\t\t\t\t\"elementType\", null, 0, 1, CollectionType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetCollectionType_OclLibrary(),\n\t\t\t\tthis.getOclLibrary(),\n\t\t\t\tnull,\n\t\t\t\t\"oclLibrary\", null, 1, 1, CollectionType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\t\tinitEAttribute(\n\t\t\t\tgetCollectionType_Kind(),\n\t\t\t\ttheExpressionsPackage.getCollectionKind(),\n\t\t\t\t\"kind\", null, 1, 1, CollectionType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\n\t\tinitEClass(\n\t\t\t\tinvalidTypeEClass,\n\t\t\t\tInvalidType.class,\n\t\t\t\t\"InvalidType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetInvalidType_OclLibrary(),\n\t\t\t\tthis.getOclLibrary(),\n\t\t\t\tthis.getOclLibrary_OclInvalid(),\n\t\t\t\t\"oclLibrary\", null, 1, 1, InvalidType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\n\t\tinitEClass(\n\t\t\t\torderedSetTypeEClass,\n\t\t\t\tOrderedSetType.class,\n\t\t\t\t\"OrderedSetType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\n\t\tinitEClass(\n\t\t\t\tsequenceTypeEClass,\n\t\t\t\tSequenceType.class,\n\t\t\t\t\"SequenceType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\n\t\tinitEClass(\n\t\t\t\tsetTypeEClass,\n\t\t\t\tSetType.class,\n\t\t\t\t\"SetType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\n\t\tinitEClass(\n\t\t\t\tvoidTypeEClass,\n\t\t\t\tVoidType.class,\n\t\t\t\t\"VoidType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetVoidType_OclLibrary(),\n\t\t\t\tthis.getOclLibrary(),\n\t\t\t\tthis.getOclLibrary_OclVoid(),\n\t\t\t\t\"oclLibrary\", null, 1, 1, VoidType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\n\t\tinitEClass(\n\t\t\t\ttypeTypeEClass,\n\t\t\t\tTypeType.class,\n\t\t\t\t\"TypeType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetTypeType_RepresentedType(),\n\t\t\t\tthePivotModelPackage.getType(),\n\t\t\t\tnull,\n\t\t\t\t\"representedType\", null, 0, 1, TypeType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\n\t\tinitEClass(\n\t\t\t\toclLibraryEClass,\n\t\t\t\tOclLibrary.class,\n\t\t\t\t\"OclLibrary\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetOclLibrary_OclBoolean(),\n\t\t\t\tthePivotModelPackage.getPrimitiveType(),\n\t\t\t\tnull,\n\t\t\t\t\"oclBoolean\", null, 1, 1, OclLibrary.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetOclLibrary_OclString(),\n\t\t\t\tthePivotModelPackage.getPrimitiveType(),\n\t\t\t\tnull,\n\t\t\t\t\"oclString\", null, 1, 1, OclLibrary.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetOclLibrary_OclInteger(),\n\t\t\t\tthePivotModelPackage.getPrimitiveType(),\n\t\t\t\tnull,\n\t\t\t\t\"oclInteger\", null, 1, 1, OclLibrary.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetOclLibrary_OclReal(),\n\t\t\t\tthePivotModelPackage.getPrimitiveType(),\n\t\t\t\tnull,\n\t\t\t\t\"oclReal\", null, 1, 1, OclLibrary.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetOclLibrary_OclAny(),\n\t\t\t\tthis.getAnyType(),\n\t\t\t\tnull,\n\t\t\t\t\"oclAny\", null, 1, 1, OclLibrary.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetOclLibrary_OclVoid(),\n\t\t\t\tthis.getVoidType(),\n\t\t\t\tthis.getVoidType_OclLibrary(),\n\t\t\t\t\"oclVoid\", null, 1, 1, OclLibrary.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetOclLibrary_OclInvalid(),\n\t\t\t\tthis.getInvalidType(),\n\t\t\t\tthis.getInvalidType_OclLibrary(),\n\t\t\t\t\"oclInvalid\", null, 1, 1, OclLibrary.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetOclLibrary_OclType(),\n\t\t\t\tthis.getTypeType(),\n\t\t\t\tnull,\n\t\t\t\t\"oclType\", null, 1, 1, OclLibrary.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetOclLibrary_OclCollection(),\n\t\t\t\tthis.getCollectionType(),\n\t\t\t\tnull,\n\t\t\t\t\"oclCollection\", null, 1, 1, OclLibrary.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetOclLibrary_OclSequence(),\n\t\t\t\tthis.getSequenceType(),\n\t\t\t\tnull,\n\t\t\t\t\"oclSequence\", null, 1, 1, OclLibrary.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetOclLibrary_OclBag(),\n\t\t\t\tthis.getBagType(),\n\t\t\t\tnull,\n\t\t\t\t\"oclBag\", null, 1, 1, OclLibrary.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetOclLibrary_OclSet(),\n\t\t\t\tthis.getSetType(),\n\t\t\t\tnull,\n\t\t\t\t\"oclSet\", null, 1, 1, OclLibrary.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetOclLibrary_OclOrderedSet(),\n\t\t\t\tthis.getOrderedSetType(),\n\t\t\t\tnull,\n\t\t\t\t\"oclOrderedSet\", null, 1, 1, OclLibrary.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetOclLibrary_OclTuple(),\n\t\t\t\tthis.getTupleType(),\n\t\t\t\tnull,\n\t\t\t\t\"oclTuple\", null, 1, -1, OclLibrary.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\n\t\tEOperation op = addEOperation(oclLibraryEClass, this.getTupleType(),\n\t\t\t\t\"makeTupleType\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\t\tEGenericType g1 = createEGenericType(theDatatypesPackage.getSequence());\n\t\tEGenericType g2 = createEGenericType(thePivotModelPackage.getProperty());\n\t\tg1.getETypeArguments().add(g2);\n\t\taddEParameter(op, g1, \"atts\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\n\t\top = addEOperation(oclLibraryEClass, this.getCollectionType(),\n\t\t\t\t\"getCollectionType\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\t\taddEParameter(op, thePivotModelPackage.getType(),\n\t\t\t\t\"elementType\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\n\t\top = addEOperation(oclLibraryEClass, this.getSequenceType(),\n\t\t\t\t\"getSequenceType\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\t\taddEParameter(op, thePivotModelPackage.getType(),\n\t\t\t\t\"elementType\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\n\t\top = addEOperation(oclLibraryEClass, this.getBagType(),\n\t\t\t\t\"getBagType\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\t\taddEParameter(op, thePivotModelPackage.getType(),\n\t\t\t\t\"elementType\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\n\t\top = addEOperation(oclLibraryEClass, this.getSetType(),\n\t\t\t\t\"getSetType\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\t\taddEParameter(op, thePivotModelPackage.getType(),\n\t\t\t\t\"elementType\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\n\t\top = addEOperation(oclLibraryEClass, this.getOrderedSetType(),\n\t\t\t\t\"getOrderedSetType\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\t\taddEParameter(op, thePivotModelPackage.getType(),\n\t\t\t\t\"elementType\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\n\t\top = addEOperation(oclLibraryEClass, this.getTypeType(),\n\t\t\t\t\"getTypeType\", 1, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\t\taddEParameter(op, thePivotModelPackage.getType(),\n\t\t\t\t\"representedType\", 1, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\n\t\tinitEClass(\n\t\t\t\tanyTypeEClass,\n\t\t\t\tAnyType.class,\n\t\t\t\t\"AnyType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "public void registerMetamodels(ResourceSet rs, IbexExecutable executable) throws IOException {\r\n\t\t\r\n\t\t// Set correct workspace root\r\n\t\tsetWorkspaceRootDirectory(rs);\r\n\t\t\r\n\t\t// Load and register source and target metamodels\r\n\t\tEPackage familiesPack = null;\r\n\t\tEPackage personsPack = null;\r\n\t\tEPackage benchmarxfamiliestopersonsPack = null;\r\n\t\t\r\n\t\tif(executable instanceof FWD_OPT) {\r\n\t\t\tResource res = executable.getResourceHandler().loadResource(\"platform:/resource/Persons/model/Persons.ecore\");\r\n\t\t\tpersonsPack = (EPackage) res.getContents().get(0);\r\n\t\t\trs.getResources().remove(res);\r\n\t\t\t\r\n\t\t\tres = executable.getResourceHandler().loadResource(\"platform:/resource/BenchmarxFamiliesToPersons/model/BenchmarxFamiliesToPersons.ecore\");\r\n\t\t\tbenchmarxfamiliestopersonsPack = (EPackage) res.getContents().get(0);\r\n\t\t\trs.getResources().remove(res);\r\n\t\t}\r\n\t\t\t\t\r\n\t\tif(executable instanceof BWD_OPT) {\r\n\t\t\tResource res = executable.getResourceHandler().loadResource(\"platform:/resource/Families/model/Families.ecore\");\r\n\t\t\tfamiliesPack = (EPackage) res.getContents().get(0);\r\n\t\t\trs.getResources().remove(res);\r\n\t\t\t\r\n\t\t\tres = executable.getResourceHandler().loadResource(\"platform:/resource/BenchmarxFamiliesToPersons/model/BenchmarxFamiliesToPersons.ecore\");\r\n\t\t\tbenchmarxfamiliestopersonsPack = (EPackage) res.getContents().get(0);\r\n\t\t\trs.getResources().remove(res);\r\n\t\t}\r\n\r\n\t\tif(familiesPack == null)\r\n\t\t\tfamiliesPack = FamiliesPackageImpl.init();\r\n\t\t\t\t\r\n\t\tif(personsPack == null)\r\n\t\t\tpersonsPack = PersonsPackageImpl.init();\r\n\t\t\r\n\t\tif(benchmarxfamiliestopersonsPack == null) {\r\n\t\t\tbenchmarxfamiliestopersonsPack = BenchmarxFamiliesToPersonsPackageImpl.init();\r\n\t\t\trs.getPackageRegistry().put(\"platform:/resource/BenchmarxFamiliesToPersons/model/BenchmarxFamiliesToPersons.ecore\", BenchmarxFamiliesToPersonsPackage.eINSTANCE);\r\n\t\t\trs.getPackageRegistry().put(\"platform:/plugin/BenchmarxFamiliesToPersons/model/BenchmarxFamiliesToPersons.ecore\", BenchmarxFamiliesToPersonsPackage.eINSTANCE);\r\n\t\t}\r\n\t\t\t\r\n\t\trs.getPackageRegistry().put(\"platform:/resource/Families/model/Families.ecore\", familiesPack);\r\n\t rs.getPackageRegistry().put(\"platform:/plugin/Families/model/Families.ecore\", familiesPack);\t\r\n\t\t\t\r\n\t\trs.getPackageRegistry().put(\"platform:/resource/Persons/model/Persons.ecore\", personsPack);\r\n\t\trs.getPackageRegistry().put(\"platform:/plugin/Persons/model/Persons.ecore\", personsPack);\r\n\t}", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tCommonPackage theCommonPackage = (CommonPackage)EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI);\n\t\tModelPackage theModelPackage = (ModelPackage)EPackage.Registry.INSTANCE.getEPackage(ModelPackage.eNS_URI);\n\t\tColumnPackage theColumnPackage = (ColumnPackage)EPackage.Registry.INSTANCE.getEPackage(ColumnPackage.eNS_URI);\n\t\tExpressionPackage theExpressionPackage = (ExpressionPackage)EPackage.Registry.INSTANCE.getEPackage(ExpressionPackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\ttableEClass.getESuperTypes().add(theCommonPackage.getNameProvider());\n\t\tprimaryKeyTableConstraintEClass.getESuperTypes().add(this.getTableConstraint());\n\t\tuniqueTableConstraintEClass.getESuperTypes().add(this.getTableConstraint());\n\t\tcheckTableConstraintEClass.getESuperTypes().add(this.getTableConstraint());\n\t\tforeignKeyTableConstraintEClass.getESuperTypes().add(this.getTableConstraint());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(tableEClass, Table.class, \"Table\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getTable_Database(), theModelPackage.getDatabase(), theModelPackage.getDatabase_Tables(), \"database\", null, 1, 1, Table.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTable_Columns(), theColumnPackage.getColumn(), theColumnPackage.getColumn_Table(), \"columns\", null, 0, -1, Table.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTable_Constraints(), this.getTableConstraint(), this.getTableConstraint_Table(), \"constraints\", null, 0, -1, Table.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(tableConstraintEClass, TableConstraint.class, \"TableConstraint\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getTableConstraint_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, TableConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTableConstraint_Table(), this.getTable(), this.getTable_Constraints(), \"table\", null, 1, 1, TableConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(primaryKeyTableConstraintEClass, PrimaryKeyTableConstraint.class, \"PrimaryKeyTableConstraint\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPrimaryKeyTableConstraint_Columns(), theColumnPackage.getIndexedColumn(), null, \"columns\", null, 1, -1, PrimaryKeyTableConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(uniqueTableConstraintEClass, UniqueTableConstraint.class, \"UniqueTableConstraint\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getUniqueTableConstraint_Columns(), theColumnPackage.getIndexedColumn(), null, \"columns\", null, 1, -1, UniqueTableConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(checkTableConstraintEClass, CheckTableConstraint.class, \"CheckTableConstraint\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getCheckTableConstraint_Expression(), theExpressionPackage.getExpression(), null, \"expression\", null, 1, 1, CheckTableConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(foreignKeyTableConstraintEClass, ForeignKeyTableConstraint.class, \"ForeignKeyTableConstraint\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getForeignKeyTableConstraint_Columns(), theColumnPackage.getColumn(), null, \"columns\", null, 1, -1, ForeignKeyTableConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getForeignKeyTableConstraint_ForeignTable(), this.getTable(), null, \"foreignTable\", null, 1, 1, ForeignKeyTableConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getForeignKeyTableConstraint_ForeignColumns(), theColumnPackage.getColumn(), null, \"foreignColumns\", null, 1, -1, ForeignKeyTableConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t}", "IoT_metamodelPackage getIoT_metamodelPackage();", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tdeferedFlatReferenceTableEditorSampleEClass = createEClass(DEFERED_FLAT_REFERENCE_TABLE_EDITOR_SAMPLE);\n\t\tcreateEReference(deferedFlatReferenceTableEditorSampleEClass, DEFERED_FLAT_REFERENCE_TABLE_EDITOR_SAMPLE__REFERENCES);\n\n\t\tdeferedReferenceEClass = createEClass(DEFERED_REFERENCE);\n\t\tcreateEReference(deferedReferenceEClass, DEFERED_REFERENCE__FLATREFERENCE_EDITOR);\n\n\t\tdeferedReferenceTableEditorSampleEClass = createEClass(DEFERED_REFERENCE_TABLE_EDITOR_SAMPLE);\n\t\tcreateEReference(deferedReferenceTableEditorSampleEClass, DEFERED_REFERENCE_TABLE_EDITOR_SAMPLE__REFERENCES);\n\n\t\townerEClass = createEClass(OWNER);\n\t\tcreateEReference(ownerEClass, OWNER__MULTIPLE_REFERENCERS);\n\t\tcreateEReference(ownerEClass, OWNER__SINGLE_REFERENCERS);\n\n\t\tmultipleReferencerEClass = createEClass(MULTIPLE_REFERENCER);\n\t\tcreateEReference(multipleReferencerEClass, MULTIPLE_REFERENCER__MULTIPLE_SAMPLE_FOR_TABLE_COMPOSITION);\n\t\tcreateEReference(multipleReferencerEClass, MULTIPLE_REFERENCER__MULTIPLE_SAMPLE_FOR_ADVANCED_TABLE_COMPOSITION);\n\t\tcreateEReference(multipleReferencerEClass, MULTIPLE_REFERENCER__MULTIPLE_SAMPLE_FOR_REFERENCES_TABLE);\n\t\tcreateEReference(multipleReferencerEClass, MULTIPLE_REFERENCER__MULTIPLE_SAMPLE_ADVANCED_REFERENCES_TABLE);\n\t\tcreateEReference(multipleReferencerEClass, MULTIPLE_REFERENCER__MULTIPLE_SAMPLE_FOR_FLAT_REFERENCES_TABLE);\n\n\t\tsubtypeEClass = createEClass(SUBTYPE);\n\t\tcreateEAttribute(subtypeEClass, SUBTYPE__SPECIALISED_ELEMENT);\n\n\t\tsingleReferencerEClass = createEClass(SINGLE_REFERENCER);\n\t\tcreateEReference(singleReferencerEClass, SINGLE_REFERENCER__SINGLE_SAMPLE_FOR_TABLE_COMPOSITION);\n\t\tcreateEReference(singleReferencerEClass, SINGLE_REFERENCER__SINGLE_SAMPLE_FOR_ADVANCED_TABLE_COMPOSITION);\n\t\tcreateEReference(singleReferencerEClass, SINGLE_REFERENCER__SINGLE_SAMPLE_FOR_REFERENCES_TABLE);\n\t\tcreateEReference(singleReferencerEClass, SINGLE_REFERENCER__SINGLE_SAMPLE_ADVANCED_REFERENCES_TABLE);\n\t\tcreateEReference(singleReferencerEClass, SINGLE_REFERENCER__SINGLE_SAMPLE_FOR_FLAT_REFERENCES_TABLE);\n\t\tcreateEReference(singleReferencerEClass, SINGLE_REFERENCER__SINGLE_CONTAINMENT_FOR_EOBJECT_FLAT_COMBO_VIEWER);\n\t\tcreateEReference(singleReferencerEClass, SINGLE_REFERENCER__SINGLE_REFERENCE_FOR_EOBJECT_FLAT_COMBO_VIEWER);\n\t\tcreateEReference(singleReferencerEClass, SINGLE_REFERENCER__SINGLE_CONTAINMENT_FOR_ADVANCED_EOBJECT_FLAT_COMBO_VIEWER);\n\t\tcreateEReference(singleReferencerEClass, SINGLE_REFERENCER__SINGLE_REFERENCE_FOR_ADVANCED_EOBJECT_FLAT_COMBO_VIEWER);\n\t\tcreateEAttribute(singleReferencerEClass, SINGLE_REFERENCER__BOOLEAN_ATTRIBUTE);\n\t\tcreateEAttribute(singleReferencerEClass, SINGLE_REFERENCER__EENUM_ATTRIBUTE);\n\t\tcreateEAttribute(singleReferencerEClass, SINGLE_REFERENCER__STRING_ATTRIBUTE);\n\t\tcreateEAttribute(singleReferencerEClass, SINGLE_REFERENCER__LIST_ATTRIBUTE);\n\n\t\tanotherSubTypeEClass = createEClass(ANOTHER_SUB_TYPE);\n\t\tcreateEAttribute(anotherSubTypeEClass, ANOTHER_SUB_TYPE__ANOTHER_SPECIALISATION);\n\n\t\telementEClass = createEClass(ELEMENT);\n\t\tcreateEAttribute(elementEClass, ELEMENT__VISIBLE);\n\n\t\tattributeNavigationSampleEClass = createEClass(ATTRIBUTE_NAVIGATION_SAMPLE);\n\t\tcreateEReference(attributeNavigationSampleEClass, ATTRIBUTE_NAVIGATION_SAMPLE__SINGLE_VALUED_ATTRIBUTE_DELEGATE);\n\t\tcreateEReference(attributeNavigationSampleEClass, ATTRIBUTE_NAVIGATION_SAMPLE__MULTI_VALUED_ATTRIBUTE_DELEGATE);\n\n\t\tattributeDelegateEClass = createEClass(ATTRIBUTE_DELEGATE);\n\t\tcreateEAttribute(attributeDelegateEClass, ATTRIBUTE_DELEGATE__DELEGATE1);\n\t\tcreateEAttribute(attributeDelegateEClass, ATTRIBUTE_DELEGATE__DELEGATE2);\n\t}", "public static ModelPackage init() {\n\t\tif (isInited) return (ModelPackage)EPackage.Registry.INSTANCE.getEPackage(ModelPackage.eNS_URI);\n\n\t\t// Obtain or create and register package\n\t\tModelPackageImpl theModelPackage = (ModelPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof ModelPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new ModelPackageImpl());\n\n\t\tisInited = true;\n\n\t\t// Create package meta-data objects\n\t\ttheModelPackage.createPackageContents();\n\n\t\t// Initialize created meta-data\n\t\ttheModelPackage.initializePackageContents();\n\n\t\t// Mark meta-data to indicate it can't be changed\n\t\ttheModelPackage.freeze();\n\n\t\treturn theModelPackage;\n\t}", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\teActorEClass.getESuperTypes().add(this.getEDomainSpecificEntity());\n\t\teItemEClass.getESuperTypes().add(this.getEDomainSpecificEntity());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(eDomainSchemaEClass, EDomainSchema.class, \"EDomainSchema\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getEDomainSchema_Cs(), this.getEControlSchema(), null, \"cs\", null, 0, 1, EDomainSchema.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getEDomainSchema_Ds(), this.getEDataSchema(), null, \"ds\", null, 0, 1, EDomainSchema.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(eControlSchemaEClass, EControlSchema.class, \"EControlSchema\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getEControlSchema_Actor(), this.getEActor(), null, \"actor\", null, 1, -1, EControlSchema.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(eDataSchemaEClass, EDataSchema.class, \"EDataSchema\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getEDataSchema_Cs(), this.getEControlSchema(), null, \"cs\", null, 1, 1, EDataSchema.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getEDataSchema_Item(), this.getEItem(), null, \"item\", null, 1, -1, EDataSchema.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(eDomainSpecificEntityEClass, EDomainSpecificEntity.class, \"EDomainSpecificEntity\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getEDomainSpecificEntity_CommandPriority(), ecorePackage.getEInt(), \"commandPriority\", null, 0, 1, EDomainSpecificEntity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getEDomainSpecificEntity_Cmd(), this.getEDomainSpecificCommand(), null, \"cmd\", null, 0, -1, EDomainSpecificEntity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(eDomainSpecificCommandEClass, EDomainSpecificCommand.class, \"EDomainSpecificCommand\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getEDomainSpecificCommand_CmdId(), ecorePackage.getEInt(), \"cmdId\", null, 0, 1, EDomainSpecificCommand.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(eActorEClass, EActor.class, \"EActor\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getEActor_KindInteraction(), this.getECoordinationBehavior(), \"kindInteraction\", null, 0, 1, EActor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getEActor_TypesControlled(), this.getEDomainSpecificType(), null, \"typesControlled\", null, 0, -1, EActor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(eItemEClass, EItem.class, \"EItem\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getEItem_ArisingBehavior(), this.getEArising(), \"arisingBehavior\", null, 0, 1, EItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getEItem_Type(), this.getEDomainSpecificType(), null, \"type\", null, 1, 1, EItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(eDomainSpecificTypeEClass, EDomainSpecificType.class, \"EDomainSpecificType\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getEDomainSpecificType_InteractionBehavior(), this.getEInteractionBehavior(), \"interactionBehavior\", null, 0, 1, EDomainSpecificType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getEDomainSpecificType_Cardinality(), this.getECardinality(), \"cardinality\", null, 0, 1, EDomainSpecificType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Initialize enums and add enum literals\n\t\tinitEEnum(eArisingEEnum, EArising.class, \"EArising\");\n\t\taddEEnumLiteral(eArisingEEnum, EArising.STATIC);\n\t\taddEEnumLiteral(eArisingEEnum, EArising.DYNAMIC);\n\n\t\tinitEEnum(eCardinalityEEnum, ECardinality.class, \"ECardinality\");\n\t\taddEEnumLiteral(eCardinalityEEnum, ECardinality.ONE);\n\t\taddEEnumLiteral(eCardinalityEEnum, ECardinality.MANY);\n\n\t\tinitEEnum(eInteractionBehaviorEEnum, EInteractionBehavior.class, \"EInteractionBehavior\");\n\t\taddEEnumLiteral(eInteractionBehaviorEEnum, EInteractionBehavior.SYNC);\n\t\taddEEnumLiteral(eInteractionBehaviorEEnum, EInteractionBehavior.ASYNC);\n\n\t\tinitEEnum(eCoordinationBehaviorEEnum, ECoordinationBehavior.class, \"ECoordinationBehavior\");\n\t\taddEEnumLiteral(eCoordinationBehaviorEEnum, ECoordinationBehavior.LOCAL);\n\t\taddEEnumLiteral(eCoordinationBehaviorEEnum, ECoordinationBehavior.DISTRIBUTED);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "private void setupModel() {\n\n //Chooses which model gets prepared\n switch (id) {\n case 2:\n singlePackage = new Node();\n activeNode = singlePackage;\n\n //Builder for model\n ModelRenderable.builder()\n .setSource(ArActivity.this, R.raw.package_solo)\n .build().thenAccept(renderable -> activeRenderable = renderable)\n .exceptionally(\n throwable -> {\n Toast.makeText(this, \"Unable to show \", Toast.LENGTH_SHORT).show();\n return null;\n }\n );\n break;\n\n case 3:\n multiPackage = new Node();\n activeNode = multiPackage;\n\n //Builder for model\n ModelRenderable.builder()\n .setSource(ArActivity.this, R.raw.package_multi_new)\n .build().thenAccept(renderable -> activeRenderable = renderable)\n .exceptionally(\n throwable -> {\n Toast.makeText(this, \"Unable to show \", Toast.LENGTH_SHORT).show();\n return null;\n }\n );\n break;\n\n case 4:\n wagonPackage = new Node();\n activeNode = wagonPackage;\n\n //Builder for model\n ModelRenderable.builder()\n .setSource(ArActivity.this, R.raw.package_car_new)\n .build().thenAccept(a -> activeRenderable = a)\n .exceptionally(\n throwable -> {\n Toast.makeText(this, \"Unable to show \", Toast.LENGTH_SHORT).show();\n return null;\n }\n );\n break;\n\n default:\n mailbox = new Node();\n activeNode = mailbox;\n\n //Builder for model\n ModelRenderable.builder()\n .setSource(ArActivity.this, R.raw.mailbox)\n .build().thenAccept(renderable -> activeRenderable = renderable)\n .exceptionally(\n throwable -> {\n Toast.makeText(this, \"Unable to show \", Toast.LENGTH_SHORT).show();\n return null;\n }\n );\n break;\n }\n }", "public void createPackageContents() {\r\n\t\tif (isCreated) return;\r\n\t\tisCreated = true;\r\n\r\n\t\t// Create classes and their features\r\n\t\tpuzzleTaskEClass = createEClass(PUZZLE_TASK);\r\n\t\tcreateEReference(puzzleTaskEClass, PUZZLE_TASK__PUZZLES);\r\n\t\tcreateEReference(puzzleTaskEClass, PUZZLE_TASK__PLAYER_LEVELS);\r\n\t\tcreateEReference(puzzleTaskEClass, PUZZLE_TASK__PLAYER_TASK_SCORES);\r\n\t\tcreateEOperation(puzzleTaskEClass, PUZZLE_TASK___ACCEPT_PUZZLE_PROPOSAL__STRING_PLAYER);\r\n\t\tcreateEOperation(puzzleTaskEClass, PUZZLE_TASK___CALCULATE_SCORE__INT_PLAYER_BOOLEAN);\r\n\t\tcreateEOperation(puzzleTaskEClass, PUZZLE_TASK___ACCEPT_PLAYER__PLAYER);\r\n\r\n\t\tpuzzlePieceEClass = createEClass(PUZZLE_PIECE);\r\n\t\tcreateEAttribute(puzzlePieceEClass, PUZZLE_PIECE__IMAGE);\r\n\t\tcreateEAttribute(puzzlePieceEClass, PUZZLE_PIECE__PLAYER_COUNT);\r\n\r\n\t\tpuzzleTaskViewEClass = createEClass(PUZZLE_TASK_VIEW);\r\n\t\tcreateEAttribute(puzzleTaskViewEClass, PUZZLE_TASK_VIEW__IMAGE);\r\n\t\tcreateEAttribute(puzzleTaskViewEClass, PUZZLE_TASK_VIEW__SCORE);\r\n\t\tcreateEAttribute(puzzleTaskViewEClass, PUZZLE_TASK_VIEW__LEVEL);\r\n\t\tcreateEOperation(puzzleTaskViewEClass, PUZZLE_TASK_VIEW___PROPOSE_ANSWER__STRING);\r\n\t\tcreateEOperation(puzzleTaskViewEClass, PUZZLE_TASK_VIEW___FINISH);\r\n\t\tcreateEOperation(puzzleTaskViewEClass, PUZZLE_TASK_VIEW___START_PUZZLE);\r\n\t\tcreateEOperation(puzzleTaskViewEClass, PUZZLE_TASK_VIEW___ACCEPT_PLAYER);\r\n\r\n\t\tplayerToIntEClass = createEClass(PLAYER_TO_INT);\r\n\t\tcreateEReference(playerToIntEClass, PLAYER_TO_INT__KEY);\r\n\t\tcreateEAttribute(playerToIntEClass, PLAYER_TO_INT__VALUE);\r\n\r\n\t\tpuzzleEClass = createEClass(PUZZLE);\r\n\t\tcreateEAttribute(puzzleEClass, PUZZLE__LEVEL);\r\n\t\tcreateEOperation(puzzleEClass, PUZZLE___ACCEPT_PROPOSAL__STRING);\r\n\t\tcreateEOperation(puzzleEClass, PUZZLE___FINISH_PUZZLE__PLAYER);\r\n\t\tcreateEOperation(puzzleEClass, PUZZLE___START_PUZZLE__PLAYER);\r\n\t\tcreateEOperation(puzzleEClass, PUZZLE___GET_IMAGE__PLAYER);\r\n\r\n\t\tsimplePuzzleEClass = createEClass(SIMPLE_PUZZLE);\r\n\t\tcreateEReference(simplePuzzleEClass, SIMPLE_PUZZLE__INSTRUCTIONS);\r\n\t\tcreateEAttribute(simplePuzzleEClass, SIMPLE_PUZZLE__SOLUTION);\r\n\t\tcreateEReference(simplePuzzleEClass, SIMPLE_PUZZLE__PUZZLE_PIECES);\r\n\t\tcreateEReference(simplePuzzleEClass, SIMPLE_PUZZLE__PLAYER_PIECES);\r\n\t\tcreateEOperation(simplePuzzleEClass, SIMPLE_PUZZLE___ACCEPT_PROPOSAL__STRING);\r\n\t\tcreateEOperation(simplePuzzleEClass, SIMPLE_PUZZLE___FINISH_PUZZLE__PLAYER);\r\n\t\tcreateEOperation(simplePuzzleEClass, SIMPLE_PUZZLE___START_PUZZLE__PLAYER);\r\n\t\tcreateEOperation(simplePuzzleEClass, SIMPLE_PUZZLE___GET_IMAGE__PLAYER);\r\n\r\n\t\tplayerTaskScoreEClass = createEClass(PLAYER_TASK_SCORE);\r\n\t\tcreateEReference(playerTaskScoreEClass, PLAYER_TASK_SCORE__PLAYER);\r\n\t\tcreateEAttribute(playerTaskScoreEClass, PLAYER_TASK_SCORE__SCORE);\r\n\t\tcreateEAttribute(playerTaskScoreEClass, PLAYER_TASK_SCORE__LEVEL);\r\n\r\n\t\tplayerTaskScoresEClass = createEClass(PLAYER_TASK_SCORES);\r\n\t\tcreateEReference(playerTaskScoresEClass, PLAYER_TASK_SCORES__SCORES);\r\n\r\n\t\tplayerToPuzzlePieceEClass = createEClass(PLAYER_TO_PUZZLE_PIECE);\r\n\t\tcreateEReference(playerToPuzzlePieceEClass, PLAYER_TO_PUZZLE_PIECE__KEY);\r\n\t\tcreateEReference(playerToPuzzlePieceEClass, PLAYER_TO_PUZZLE_PIECE__VALUE);\r\n\t}", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(treeEClass, Tree.class, \"Tree\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getTree_Children(), this.getNode(), null, \"children\", null, 0, -1, Tree.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(nodeEClass, Node.class, \"Node\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getNode_Children(), this.getNode(), null, \"children\", null, 0, -1, Node.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getNode_Name(), ecorePackage.getEString(), \"name\", \"Node\", 0, 1, Node.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\n\t\t// Create annotations\n\t\t// gmf.diagram\n\t\tcreateGmfAnnotations();\n\t\t// gmf.node\n\t\tcreateGmf_1Annotations();\n\t\t// gmf.compartment\n\t\tcreateGmf_2Annotations();\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\tsecurityEClass = createEClass(SECURITY);\n\t\tcreateEReference(securityEClass, SECURITY__AUTHENTICATION);\n\n\t\tauthenticationEClass = createEClass(AUTHENTICATION);\n\t\tcreateEReference(authenticationEClass, AUTHENTICATION__SECURITY);\n\t\tcreateEReference(authenticationEClass, AUTHENTICATION__USER_MODEL);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_REGISTRATION_NAME);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_REGISTRATION_UNIT_LABEL);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_REGISTRATION_ACTION_LABEL);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_REGISTRATION_CONFIRM_LABEL);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_REGISTRATION_URI);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_LOGIN_NAME);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_LOGIN_UNIT_LABEL);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_LOGIN_ACTION_LABEL);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_LOGIN_CONFIRM_LABEL);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_LOGIN_URI);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_LOGOUT_NAME);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_LOGOUT_UNIT_LABEL);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_LOGOUT_ACTION_LABEL);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_LOGOUT_CONFIRM_LABEL);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_LOGOUT_URI);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_FORGOTTEN_PASSWORD_NAME);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_FORGOTTEN_PASSWORD_UNIT_LABEL);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_FORGOTTEN_PASSWORD_ACTION_LABEL);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_FORGOTTEN_PASSWORD_CONFIRM_LABEL);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_FORGOTTEN_PASSWORD_URI_REQUEST);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_FORGOTTEN_PASSWORD_URI_EMAIL_SENT);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_FORGOTTEN_PASSWORD_EMAIL_SUBJECT);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_FORGOTTEN_PASSWORD_EMAIL_MESSAGE);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_FORGOTTEN_PASSWORD_EMAIL_SENT_CAPTION);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_FORGOTTEN_PASSWORD_EMAIL_SENT_MESSAGE);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_RESET_PASSWORD_NAME);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_RESET_PASSWORD_UNIT_LABEL);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_RESET_PASSWORD_ACTION_LABEL);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_RESET_PASSWORD_CONFIRM_LABEL);\n\t\tcreateEAttribute(authenticationEClass, AUTHENTICATION__IMPLICIT_RESET_PASSWORD_URI);\n\n\t\tlocalAuthenticationSystemEClass = createEClass(LOCAL_AUTHENTICATION_SYSTEM);\n\t\tcreateEReference(localAuthenticationSystemEClass, LOCAL_AUTHENTICATION_SYSTEM__AUTHENTICATION_MODEL);\n\t\tcreateEAttribute(localAuthenticationSystemEClass, LOCAL_AUTHENTICATION_SYSTEM__AUTHENTICATION_NAME);\n\t\tcreateEReference(localAuthenticationSystemEClass, LOCAL_AUTHENTICATION_SYSTEM__USER_KEY);\n\t\tcreateEReference(localAuthenticationSystemEClass, LOCAL_AUTHENTICATION_SYSTEM__AUTHENTICATION_KEY);\n\t\tcreateEReference(localAuthenticationSystemEClass, LOCAL_AUTHENTICATION_SYSTEM__IDENTIFIER_FEATURE);\n\t\tcreateEReference(localAuthenticationSystemEClass, LOCAL_AUTHENTICATION_SYSTEM__PASSWORD_FEATURE);\n\t\tcreateEReference(localAuthenticationSystemEClass, LOCAL_AUTHENTICATION_SYSTEM__RESET_PASSWORD_REQUEST_MODEL);\n\t\tcreateEAttribute(localAuthenticationSystemEClass, LOCAL_AUTHENTICATION_SYSTEM__RESET_PASSWORD_REQUEST_NAME);\n\t\tcreateEReference(localAuthenticationSystemEClass, LOCAL_AUTHENTICATION_SYSTEM__REGISTRATION_UNIT);\n\t\tcreateEReference(localAuthenticationSystemEClass, LOCAL_AUTHENTICATION_SYSTEM__LOGIN_UNIT);\n\t\tcreateEReference(localAuthenticationSystemEClass, LOCAL_AUTHENTICATION_SYSTEM__LOGOUT_UNIT);\n\t\tcreateEReference(localAuthenticationSystemEClass, LOCAL_AUTHENTICATION_SYSTEM__FORGOTTEN_PASSWORD_UNIT);\n\t\tcreateEReference(localAuthenticationSystemEClass, LOCAL_AUTHENTICATION_SYSTEM__RESET_PASSWORD_UNIT);\n\t\tcreateEAttribute(localAuthenticationSystemEClass, LOCAL_AUTHENTICATION_SYSTEM__VIEW_ROLE);\n\t\tcreateEAttribute(localAuthenticationSystemEClass, LOCAL_AUTHENTICATION_SYSTEM__EDIT_ROLE);\n\t\tcreateEAttribute(localAuthenticationSystemEClass, LOCAL_AUTHENTICATION_SYSTEM__USE_CAPTCHA);\n\t\tcreateEAttribute(localAuthenticationSystemEClass, LOCAL_AUTHENTICATION_SYSTEM__ALLOW_REMEMBER_ME);\n\t\tcreateEAttribute(localAuthenticationSystemEClass, LOCAL_AUTHENTICATION_SYSTEM__ALLOW_SELF_REGISTRATION);\n\t\tcreateEAttribute(localAuthenticationSystemEClass, LOCAL_AUTHENTICATION_SYSTEM__TRACK_LOGIN_ATTEMPTS);\n\t\tcreateEAttribute(localAuthenticationSystemEClass, LOCAL_AUTHENTICATION_SYSTEM__USE_EMAIL_ACTIVATION);\n\t\tcreateEAttribute(localAuthenticationSystemEClass, LOCAL_AUTHENTICATION_SYSTEM__SEND_WELCOME_EMAIL);\n\n\t\tcasAuthenticationEClass = createEClass(CAS_AUTHENTICATION);\n\t\tcreateEAttribute(casAuthenticationEClass, CAS_AUTHENTICATION__LOGIN_LABEL);\n\t\tcreateEAttribute(casAuthenticationEClass, CAS_AUTHENTICATION__LOGOUT_LABEL);\n\n\t\tsecurityUnitEClass = createEClass(SECURITY_UNIT);\n\t}", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(metadataEClass, Metadata.class, \"Metadata\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMetadata_Gamename(), ecorePackage.getEString(), \"Gamename\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_Shortname(), ecorePackage.getEString(), \"Shortname\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_Timing(), ecorePackage.getEString(), \"Timing\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_Adressing(), ecorePackage.getEString(), \"Adressing\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_CartridgeType(), ecorePackage.getEString(), \"CartridgeType\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_RomSize(), ecorePackage.getEString(), \"RomSize\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_RamSize(), ecorePackage.getEString(), \"RamSize\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_Licensee(), ecorePackage.getEString(), \"Licensee\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_Country(), ecorePackage.getEString(), \"Country\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_Videoformat(), ecorePackage.getEString(), \"Videoformat\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_Version(), ecorePackage.getEInt(), \"Version\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_IdeVersion(), ecorePackage.getEString(), \"IdeVersion\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tuserTaskEClass.getESuperTypes().add(this.getTask());\n\t\tapplicationTaskEClass.getESuperTypes().add(this.getTask());\n\t\tinteractionTaskEClass.getESuperTypes().add(this.getTask());\n\t\tabstractionTaskEClass.getESuperTypes().add(this.getTask());\n\t\tnullTaskEClass.getESuperTypes().add(this.getTask());\n\t\tchoiceOperatorEClass.getESuperTypes().add(this.getTemporalOperator());\n\t\torderIndependenceOperatorEClass.getESuperTypes().add(this.getTemporalOperator());\n\t\tinterleavingOperatorEClass.getESuperTypes().add(this.getTemporalOperator());\n\t\tsynchronizationOperatorEClass.getESuperTypes().add(this.getTemporalOperator());\n\t\tparallelOperatorEClass.getESuperTypes().add(this.getTemporalOperator());\n\t\tdisablingOperatorEClass.getESuperTypes().add(this.getTemporalOperator());\n\t\tsequentialEnablingInfoOperatorEClass.getESuperTypes().add(this.getTemporalOperator());\n\t\tsequentialEnablingOperatorEClass.getESuperTypes().add(this.getTemporalOperator());\n\t\tsuspendResumeOperatorEClass.getESuperTypes().add(this.getTemporalOperator());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(taskModelEClass, TaskModel.class, \"TaskModel\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getTaskModel_Root(), this.getTask(), null, \"root\", null, 1, 1, TaskModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTaskModel_Tasks(), this.getTask(), null, \"tasks\", null, 1, -1, TaskModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getTaskModel_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, TaskModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(taskEClass, Task.class, \"Task\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getTask_Id(), ecorePackage.getEString(), \"id\", null, 0, 1, Task.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getTask_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Task.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTask_Operator(), this.getTemporalOperator(), null, \"operator\", null, 0, 1, Task.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTask_Subtasks(), this.getTask(), this.getTask_Parent(), \"subtasks\", null, 0, -1, Task.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTask_Parent(), this.getTask(), this.getTask_Subtasks(), \"parent\", null, 0, 1, Task.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getTask_Min(), ecorePackage.getEIntegerObject(), \"min\", null, 0, 1, Task.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getTask_Max(), ecorePackage.getEIntegerObject(), \"max\", null, 0, 1, Task.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getTask_Iterative(), ecorePackage.getEBooleanObject(), \"iterative\", null, 0, 1, Task.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(userTaskEClass, UserTask.class, \"UserTask\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(applicationTaskEClass, ApplicationTask.class, \"ApplicationTask\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(interactionTaskEClass, InteractionTask.class, \"InteractionTask\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(abstractionTaskEClass, AbstractionTask.class, \"AbstractionTask\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(nullTaskEClass, NullTask.class, \"NullTask\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(temporalOperatorEClass, TemporalOperator.class, \"TemporalOperator\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(choiceOperatorEClass, ChoiceOperator.class, \"ChoiceOperator\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(orderIndependenceOperatorEClass, OrderIndependenceOperator.class, \"OrderIndependenceOperator\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(interleavingOperatorEClass, InterleavingOperator.class, \"InterleavingOperator\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(synchronizationOperatorEClass, SynchronizationOperator.class, \"SynchronizationOperator\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(parallelOperatorEClass, ParallelOperator.class, \"ParallelOperator\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(disablingOperatorEClass, DisablingOperator.class, \"DisablingOperator\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(sequentialEnablingInfoOperatorEClass, SequentialEnablingInfoOperator.class, \"SequentialEnablingInfoOperator\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(sequentialEnablingOperatorEClass, SequentialEnablingOperator.class, \"SequentialEnablingOperator\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(suspendResumeOperatorEClass, SuspendResumeOperator.class, \"SuspendResumeOperator\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "public void registerMetamodels(ResourceSet rs, IbexExecutable executable) throws IOException {\n\t\t\n\t\t// Set correct workspace root\n\t\tsetWorkspaceRootDirectory(rs);\n\t\t\n\t\t// Load and register source and target metamodels\n\t\tEPackage languagePack = null;\n\t\tEPackage henshinPack = null;\n\t\tEPackage ecorePack = null;\n\t\tEPackage emoflontohenshinPack = null;\n\t\t\n\t\tif(executable instanceof FWD_OPT) {\n\t\t\tResource res = executable.getResourceHandler().loadResource(\"platform:/resource/org.eclipse.emf.henshin.model/model/henshin.ecore\");\n\t\t\thenshinPack = (EPackage) res.getContents().get(0);\n\t\t\trs.getResources().remove(res);\n\t\t\t\n\t\t\tres = executable.getResourceHandler().loadResource(\"http://www.eclipse.org/emf/2002/Ecore\");\n\t\t\tecorePack = (EPackage) res.getContents().get(0);\n\t\t\trs.getResources().remove(res);\n\t\t\t\n\t\t\tres = executable.getResourceHandler().loadResource(\"platform:/resource/EMoflonToHenshin/model/EMoflonToHenshin.ecore\");\n\t\t\temoflontohenshinPack = (EPackage) res.getContents().get(0);\n\t\t\trs.getResources().remove(res);\n\t\t}\n\t\t\t\t\n\t\tif(executable instanceof BWD_OPT) {\n\t\t\tResource res = executable.getResourceHandler().loadResource(\"platform:/plugin/org.emoflon.ibex.tgg.language/model/Language.ecore\");\n\t\t\tlanguagePack = (EPackage) res.getContents().get(0);\n\t\t\trs.getResources().remove(res);\n\t\t\t\n\t\t\tres = executable.getResourceHandler().loadResource(\"http://www.eclipse.org/emf/2002/Ecore\");\n\t\t\tecorePack = (EPackage) res.getContents().get(0);\n\t\t\trs.getResources().remove(res);\n\t\t\t\n\t\t\tres = executable.getResourceHandler().loadResource(\"platform:/resource/EMoflonToHenshin/model/EMoflonToHenshin.ecore\");\n\t\t\temoflontohenshinPack = (EPackage) res.getContents().get(0);\n\t\t\trs.getResources().remove(res);\n\t\t}\n\n\t\tif(languagePack == null)\n\t\t\tlanguagePack = LanguagePackageImpl.init();\n\t\t\t\t\n\t\tif(henshinPack == null)\n\t\t\thenshinPack = HenshinPackageImpl.init();\n\t\t\n\t\tif(ecorePack == null)\n\t\t\tecorePack = EcorePackageImpl.init();\n\t\t\n\t\tif(emoflontohenshinPack == null) {\n\t\t\temoflontohenshinPack = EMoflonToHenshinPackageImpl.init();\n\t\t\trs.getPackageRegistry().put(\"platform:/resource/EMoflonToHenshin/model/EMoflonToHenshin.ecore\", EMoflonToHenshinPackage.eINSTANCE);\n\t\t\trs.getPackageRegistry().put(\"platform:/plugin/EMoflonToHenshin/model/EMoflonToHenshin.ecore\", EMoflonToHenshinPackage.eINSTANCE);\n\t\t}\n\t\t\t\n\t\trs.getPackageRegistry().put(\"platform:/resource/org.emoflon.ibex.tgg.language/model/Language.ecore\", languagePack);\n\t rs.getPackageRegistry().put(\"platform:/plugin/org.emoflon.ibex.tgg.language/model/Language.ecore\", languagePack);\t\n\t\t\t\n\t\trs.getPackageRegistry().put(\"platform:/resource/org.eclipse.emf.henshin.model/model/henshin.ecore\", henshinPack);\n\t\trs.getPackageRegistry().put(\"platform:/plugin/org.eclipse.emf.henshin.model/model/henshin.ecore\", henshinPack);\n\t\t\n\t\trs.getPackageRegistry().put(\"http://www.eclipse.org/emf/2002/Ecore\", henshinPack);\n\t}", "public void initializePackageContents()\n {\n if (isInitialized) return;\n isInitialized = true;\n\n // Initialize package\n setName(eNAME);\n setNsPrefix(eNS_PREFIX);\n setNsURI(eNS_URI);\n\n // Create type parameters\n\n // Set bounds for type parameters\n\n // Add supertypes to classes\n intentEClass.getESuperTypes().add(this.getAgent());\n entityEClass.getESuperTypes().add(this.getAgent());\n\n // Initialize classes and features; add operations and parameters\n initEClass(modelEClass, Model.class, \"Model\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getModel_Agent(), this.getAgent(), null, \"agent\", null, 0, -1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(agentEClass, Agent.class, \"Agent\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getAgent_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Agent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(intentEClass, Intent.class, \"Intent\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getIntent_SuperType(), this.getIntent(), null, \"superType\", null, 0, 1, Intent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getIntent_IsFollowUp(), this.getIsFollowUp(), null, \"isFollowUp\", null, 0, 1, Intent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getIntent_Question(), this.getQuestion(), null, \"question\", null, 0, -1, Intent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getIntent_Training(), this.getTraining(), null, \"training\", null, 0, 1, Intent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(isFollowUpEClass, IsFollowUp.class, \"IsFollowUp\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getIsFollowUp_Intent(), this.getIntent(), null, \"intent\", null, 0, 1, IsFollowUp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(entityEClass, Entity.class, \"Entity\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getEntity_Example(), this.getEntityExample(), null, \"example\", null, 0, -1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(questionEClass, Question.class, \"Question\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getQuestion_QuestionEntity(), this.getQuestionEntity(), null, \"questionEntity\", null, 0, 1, Question.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getQuestion_Prompt(), ecorePackage.getEString(), \"prompt\", null, 0, 1, Question.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(questionEntityEClass, QuestionEntity.class, \"QuestionEntity\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getQuestionEntity_WithEntity(), this.getReference(), null, \"withEntity\", null, 0, 1, QuestionEntity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(trainingEClass, Training.class, \"Training\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getTraining_Trainingref(), this.getTrainingRef(), null, \"trainingref\", null, 0, -1, Training.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(trainingRefEClass, TrainingRef.class, \"TrainingRef\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getTrainingRef_Phrase(), ecorePackage.getEString(), \"phrase\", null, 0, 1, TrainingRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getTrainingRef_Declaration(), this.getDeclaration(), null, \"declaration\", null, 0, 1, TrainingRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(declarationEClass, Declaration.class, \"Declaration\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getDeclaration_Trainingstring(), ecorePackage.getEString(), \"trainingstring\", null, 0, 1, Declaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getDeclaration_Reference(), this.getReference(), null, \"reference\", null, 0, 1, Declaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(entityExampleEClass, EntityExample.class, \"EntityExample\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getEntityExample_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, EntityExample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(sysvariableEClass, Sysvariable.class, \"Sysvariable\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getSysvariable_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, Sysvariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(referenceEClass, Reference.class, \"Reference\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getReference_Entity(), this.getEntity(), null, \"entity\", null, 0, 1, Reference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getReference_Sysvar(), this.getSysvariable(), null, \"sysvar\", null, 0, 1, Reference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n // Create resource\n createResource(eNS_URI);\n }", "public void initializePackageContents() {\r\n\t\tif (isInitialized)\r\n\t\t\treturn;\r\n\t\tisInitialized = true;\r\n\r\n\t\t// Initialize package\r\n\t\tsetName(eNAME);\r\n\t\tsetNsPrefix(eNS_PREFIX);\r\n\t\tsetNsURI(eNS_URI);\r\n\r\n\t\t// Obtain other dependent packages\r\n\t\torg.unicase.model.ModelPackage theModelPackage_1 = (org.unicase.model.ModelPackage) EPackage.Registry.INSTANCE\r\n\t\t\t\t.getEPackage(org.unicase.model.ModelPackage.eNS_URI);\r\n\t\tTaskPackage theTaskPackage = (TaskPackage) EPackage.Registry.INSTANCE\r\n\t\t\t\t.getEPackage(TaskPackage.eNS_URI);\r\n\t\torg.eclipse.emf.emfstore.internal.common.model.ModelPackage theModelPackage_2 = (org.eclipse.emf.emfstore.internal.common.model.ModelPackage) EPackage.Registry.INSTANCE\r\n\t\t\t\t.getEPackage(org.eclipse.emf.emfstore.internal.common.model.ModelPackage.eNS_URI);\r\n\t\tOrganizationPackage theOrganizationPackage = (OrganizationPackage) EPackage.Registry.INSTANCE\r\n\t\t\t\t.getEPackage(OrganizationPackage.eNS_URI);\r\n\t\tAttachmentPackage theAttachmentPackage = (AttachmentPackage) EPackage.Registry.INSTANCE\r\n\t\t\t\t.getEPackage(AttachmentPackage.eNS_URI);\r\n\r\n\t\t// Create type parameters\r\n\r\n\t\t// Set bounds for type parameters\r\n\r\n\t\t// Add supertypes to classes\r\n\t\tissueEClass.getESuperTypes().add(theModelPackage_1.getAnnotation());\r\n\t\tissueEClass.getESuperTypes().add(theTaskPackage.getCheckable());\r\n\t\tissueEClass.getESuperTypes().add(theTaskPackage.getWorkItem());\r\n\t\tproposalEClass.getESuperTypes().add(\r\n\t\t\t\ttheModelPackage_1.getUnicaseModelElement());\r\n\t\tproposalEClass.getESuperTypes().add(\r\n\t\t\t\ttheModelPackage_2.getNonDomainElement());\r\n\t\tsolutionEClass.getESuperTypes().add(\r\n\t\t\t\ttheModelPackage_1.getUnicaseModelElement());\r\n\t\tsolutionEClass.getESuperTypes().add(\r\n\t\t\t\ttheModelPackage_2.getNonDomainElement());\r\n\t\tcriterionEClass.getESuperTypes().add(\r\n\t\t\t\ttheModelPackage_1.getUnicaseModelElement());\r\n\t\tassessmentEClass.getESuperTypes().add(\r\n\t\t\t\ttheModelPackage_1.getUnicaseModelElement());\r\n\t\tassessmentEClass.getESuperTypes().add(\r\n\t\t\t\ttheModelPackage_2.getNonDomainElement());\r\n\t\tcommentEClass.getESuperTypes().add(\r\n\t\t\t\ttheModelPackage_1.getUnicaseModelElement());\r\n\t\tcommentEClass.getESuperTypes().add(\r\n\t\t\t\ttheModelPackage_2.getNonDomainElement());\r\n\r\n\t\t// Initialize classes and features; add operations and parameters\r\n\t\tinitEClass(issueEClass, Issue.class, \"Issue\", !IS_ABSTRACT,\r\n\t\t\t\t!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getIssue_Proposals(), this.getProposal(),\r\n\t\t\t\tthis.getProposal_Issue(), \"proposals\", null, 0, -1,\r\n\t\t\t\tIssue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\r\n\t\t\t\tIS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getIssue_Solution(), this.getSolution(),\r\n\t\t\t\tthis.getSolution_Issue(), \"solution\", null, 0, 1, Issue.class,\r\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,\r\n\t\t\t\tIS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\t\tinitEReference(getIssue_Criteria(), this.getCriterion(), null,\r\n\t\t\t\t\"criteria\", null, 0, -1, Issue.class, !IS_TRANSIENT,\r\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,\r\n\t\t\t\t!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getIssue_Activity(), theTaskPackage.getActivityType(),\r\n\t\t\t\t\"activity\", null, 0, 1, Issue.class, !IS_TRANSIENT,\r\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getIssue_Assessments(), this.getAssessment(), null,\r\n\t\t\t\t\"assessments\", null, 0, -1, Issue.class, IS_TRANSIENT,\r\n\t\t\t\tIS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,\r\n\t\t\t\t!IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(proposalEClass, Proposal.class, \"Proposal\", !IS_ABSTRACT,\r\n\t\t\t\t!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getProposal_Assessments(), this.getAssessment(),\r\n\t\t\t\tthis.getAssessment_Proposal(), \"assessments\", null, 0, -1,\r\n\t\t\t\tProposal.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\r\n\t\t\t\tIS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getProposal_Issue(), this.getIssue(),\r\n\t\t\t\tthis.getIssue_Proposals(), \"issue\", null, 0, 1, Proposal.class,\r\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE,\r\n\t\t\t\tIS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\r\n\t\tinitEClass(solutionEClass, Solution.class, \"Solution\", !IS_ABSTRACT,\r\n\t\t\t\t!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getSolution_UnderlyingProposals(), this.getProposal(),\r\n\t\t\t\tnull, \"underlyingProposals\", null, 0, -1, Solution.class,\r\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE,\r\n\t\t\t\tIS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\t\tinitEReference(getSolution_Issue(), this.getIssue(),\r\n\t\t\t\tthis.getIssue_Solution(), \"issue\", null, 0, 1, Solution.class,\r\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE,\r\n\t\t\t\tIS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\r\n\t\tinitEClass(criterionEClass, Criterion.class, \"Criterion\", !IS_ABSTRACT,\r\n\t\t\t\t!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getCriterion_Assessments(), this.getAssessment(),\r\n\t\t\t\tthis.getAssessment_Criterion(), \"assessments\", null, 0, -1,\r\n\t\t\t\tCriterion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\r\n\t\t\t\t!IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(assessmentEClass, Assessment.class, \"Assessment\",\r\n\t\t\t\t!IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getAssessment_Proposal(), this.getProposal(),\r\n\t\t\t\tthis.getProposal_Assessments(), \"proposal\", null, 0, 1,\r\n\t\t\t\tAssessment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\r\n\t\t\t\t!IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getAssessment_Criterion(), this.getCriterion(),\r\n\t\t\t\tthis.getCriterion_Assessments(), \"criterion\", null, 0, 1,\r\n\t\t\t\tAssessment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\r\n\t\t\t\t!IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getAssessment_Value(), ecorePackage.getEInt(), \"value\",\r\n\t\t\t\tnull, 0, 1, Assessment.class, !IS_TRANSIENT, !IS_VOLATILE,\r\n\t\t\t\tIS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\r\n\t\tinitEClass(commentEClass, Comment.class, \"Comment\", !IS_ABSTRACT,\r\n\t\t\t\t!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getComment_Sender(),\r\n\t\t\t\ttheOrganizationPackage.getOrgUnit(), null, \"sender\", null, 0,\r\n\t\t\t\t1, Comment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\r\n\t\t\t\t!IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getComment_Recipients(),\r\n\t\t\t\ttheOrganizationPackage.getOrgUnit(), null, \"recipients\", null,\r\n\t\t\t\t0, -1, Comment.class, !IS_TRANSIENT, !IS_VOLATILE,\r\n\t\t\t\tIS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,\r\n\t\t\t\t!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getComment_CommentedElement(),\r\n\t\t\t\ttheModelPackage_1.getUnicaseModelElement(),\r\n\t\t\t\ttheModelPackage_1.getUnicaseModelElement_Comments(),\r\n\t\t\t\t\"commentedElement\", null, 0, 1, Comment.class, !IS_TRANSIENT,\r\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,\r\n\t\t\t\t!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(audioCommentEClass, AudioComment.class, \"AudioComment\",\r\n\t\t\t\t!IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getAudioComment_AudioFile(),\r\n\t\t\t\ttheAttachmentPackage.getFileAttachment(), null, \"audioFile\",\r\n\t\t\t\tnull, 0, 1, AudioComment.class, !IS_TRANSIENT, !IS_VOLATILE,\r\n\t\t\t\tIS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES,\r\n\t\t\t\t!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\t// Create annotations\r\n\t\t// org.eclipse.emf.ecp.editor\r\n\t\tcreateOrgAnnotations();\r\n\t}", "public ViewMetamodel getMetamodel();", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(maturityModelEClass, MaturityModel.class, \"MaturityModel\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMaturityModel_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, MaturityModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMaturityModel_Version(), ecorePackage.getEString(), \"version\", null, 0, 1, MaturityModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMaturityModel_ReleaseDate(), ecorePackage.getEDate(), \"releaseDate\", null, 0, 1, MaturityModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMaturityModel_Author(), ecorePackage.getEString(), \"author\", null, 0, 1, MaturityModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMaturityModel_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, MaturityModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMaturityModel_Acronym(), ecorePackage.getEString(), \"acronym\", null, 0, 1, MaturityModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMaturityModel_Url(), ecorePackage.getEString(), \"url\", null, 0, 1, MaturityModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMaturityModel_Organizes(), this.getProcessArea(), null, \"organizes\", null, 0, -1, MaturityModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMaturityModel_EvolvesInto(), this.getMaturityLevel(), null, \"evolvesInto\", null, 0, -1, MaturityModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(processAreaEClass, ProcessArea.class, \"ProcessArea\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getProcessArea_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, ProcessArea.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getProcessArea_ShortDescription(), ecorePackage.getEString(), \"shortDescription\", null, 0, 1, ProcessArea.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getProcessArea_MainDescription(), ecorePackage.getEString(), \"mainDescription\", null, 0, 1, ProcessArea.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getProcessArea_Acronym(), ecorePackage.getEString(), \"acronym\", null, 0, 1, ProcessArea.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getProcessArea_Defines(), this.getSpecificPractice(), null, \"defines\", null, 0, -1, ProcessArea.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getProcessArea_Implements(), this.getMaturityLevel(), null, \"implements\", null, 0, 1, ProcessArea.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(specificPracticeEClass, SpecificPractice.class, \"SpecificPractice\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getSpecificPractice_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, SpecificPractice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSpecificPractice_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, SpecificPractice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSpecificPractice_Acronym(), ecorePackage.getEString(), \"acronym\", null, 0, 1, SpecificPractice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSpecificPractice_ComplementaryDescription(), ecorePackage.getEString(), \"complementaryDescription\", null, 0, 1, SpecificPractice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(maturityLevelEClass, MaturityLevel.class, \"MaturityLevel\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMaturityLevel_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, MaturityLevel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMaturityLevel_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, MaturityLevel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMaturityLevel_Acronym(), ecorePackage.getEString(), \"acronym\", null, 0, 1, MaturityLevel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMaturityLevel_EvolvesInto(), this.getGenericPractice(), null, \"evolvesInto\", null, 0, -1, MaturityLevel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(genericPracticeEClass, GenericPractice.class, \"GenericPractice\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getGenericPractice_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, GenericPractice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getGenericPractice_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, GenericPractice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getGenericPractice_Acronym(), ecorePackage.getEString(), \"acronym\", null, 0, 1, GenericPractice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getGenericPractice_ComplementaryDescription(), ecorePackage.getEString(), \"complementaryDescription\", null, 0, 1, GenericPractice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getGenericPractice_Divided(), this.getGPSubPractice(), null, \"divided\", null, 0, -1, GenericPractice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(gpSubPracticeEClass, GPSubPractice.class, \"GPSubPractice\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getGPSubPractice_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, GPSubPractice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getGPSubPractice_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, GPSubPractice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getGPSubPractice_Acronym(), ecorePackage.getEString(), \"acronym\", null, 0, 1, GPSubPractice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "@Override\n\tpublic Metamodel getMetamodel() {\n\t\treturn null;\n\t}", "public void initializePackageContents()\n {\n if (isInitialized) return;\n isInitialized = true;\n\n // Initialize package\n setName(eNAME);\n setNsPrefix(eNS_PREFIX);\n setNsURI(eNS_URI);\n\n // Create type parameters\n\n // Set bounds for type parameters\n\n // Add supertypes to classes\n\n // Initialize classes and features; add operations and parameters\n initEClass(modelEClass, Model.class, \"Model\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getModel_Elements(), this.getElement(), null, \"elements\", null, 0, -1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(elementEClass, Element.class, \"Element\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getElement_State(), this.getState(), null, \"state\", null, 0, 1, Element.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getElement_Transition(), this.getTransition(), null, \"transition\", null, 0, 1, Element.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(stateEClass, State.class, \"State\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getState_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, State.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getState_StatesProperties(), this.getStatesProperties(), null, \"statesProperties\", null, 0, -1, State.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(statesPropertiesEClass, StatesProperties.class, \"StatesProperties\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getStatesProperties_Color(), ecorePackage.getEString(), \"color\", null, 0, 1, StatesProperties.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getStatesProperties_Thickness(), ecorePackage.getEString(), \"thickness\", null, 0, 1, StatesProperties.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getStatesProperties_Position(), ecorePackage.getEString(), \"position\", null, 0, 1, StatesProperties.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(transitionEClass, Transition.class, \"Transition\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getTransition_Start(), this.getCoordinatesStatesTransition(), null, \"start\", null, 0, 1, Transition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getTransition_End(), this.getCoordinatesStatesTransition(), null, \"end\", null, 0, 1, Transition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getTransition_TransitionProperties(), this.getTransitionProperties(), null, \"transitionProperties\", null, 0, -1, Transition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getTransition_Label(), this.getLabel(), null, \"label\", null, 0, 1, Transition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getTransition_Init(), ecorePackage.getEString(), \"init\", null, 0, 1, Transition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(labelEClass, Label.class, \"Label\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getLabel_Text(), ecorePackage.getEString(), \"text\", null, 0, 1, Label.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getLabel_Position(), ecorePackage.getEString(), \"position\", null, 0, 1, Label.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(coordinatesStatesTransitionEClass, CoordinatesStatesTransition.class, \"CoordinatesStatesTransition\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getCoordinatesStatesTransition_StateTransition(), ecorePackage.getEString(), \"stateTransition\", null, 0, 1, CoordinatesStatesTransition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(transitionPropertiesEClass, TransitionProperties.class, \"TransitionProperties\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getTransitionProperties_Color(), ecorePackage.getEString(), \"color\", null, 0, 1, TransitionProperties.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getTransitionProperties_Thickness(), ecorePackage.getEString(), \"thickness\", null, 0, 1, TransitionProperties.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getTransitionProperties_Curve(), ecorePackage.getEString(), \"curve\", null, 0, 1, TransitionProperties.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n // Create resource\n createResource(eNS_URI);\n }", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tEntityPackage theEntityPackage = (EntityPackage)EPackage.Registry.INSTANCE.getEPackage(EntityPackage.eNS_URI);\n\t\tContextPackage theContextPackage = (ContextPackage)EPackage.Registry.INSTANCE.getEPackage(ContextPackage.eNS_URI);\n\t\tJavaPackage theJavaPackage = (JavaPackage)EPackage.Registry.INSTANCE.getEPackage(JavaPackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\taudioEClass.getESuperTypes().add(theEntityPackage.getEntityIdentifiable());\n\t\taudioRecorderEClass.getESuperTypes().add(theJavaPackage.getJavaCloseable());\n\t\taudioPlayerEClass.getESuperTypes().add(theJavaPackage.getJavaCloseable());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(audioEClass, Audio.class, \"Audio\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getAudio_Content(), ecorePackage.getEByteArray(), \"content\", null, 0, 1, Audio.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAudio_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, Audio.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAudio_Text(), ecorePackage.getEString(), \"text\", null, 1, 1, Audio.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(audioManagerEClass, AudioManager.class, \"AudioManager\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tEOperation op = addEOperation(audioManagerEClass, this.getAudioRecorder(), \"record\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, theContextPackage.getContext(), \"context\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\top = addEOperation(audioManagerEClass, this.getAudioPlayer(), \"play\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, theContextPackage.getContext(), \"context\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, this.getAudio(), \"audio\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEBoolean(), \"start\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEBoolean(), \"waitEnd\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\top = addEOperation(audioManagerEClass, this.getAudioPlayer(), \"play\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, theContextPackage.getContext(), \"context\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, this.getAudioStyle(), \"style\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEString(), \"text\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEBoolean(), \"start\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEBoolean(), \"waitEnd\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(audioRecorderEClass, AudioRecorder.class, \"AudioRecorder\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\taddEOperation(audioRecorderEClass, null, \"close\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(audioRecorderEClass, theJavaPackage.getJavaOutputStream(), \"getOutputStream\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(audioRecorderEClass, ecorePackage.getEBoolean(), \"isStopped\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(audioRecorderEClass, null, \"start\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(audioRecorderEClass, null, \"stop\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(audioPlayerEClass, AudioPlayer.class, \"AudioPlayer\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\taddEOperation(audioPlayerEClass, null, \"close\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(audioPlayerEClass, this.getAudio(), \"getAudio\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(audioPlayerEClass, ecorePackage.getEBoolean(), \"isStopped\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(audioPlayerEClass, null, \"start\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(audioPlayerEClass, null, \"stop\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\t// Initialize enums and add enum literals\n\t\tinitEEnum(audioStyleEEnum, AudioStyle.class, \"AudioStyle\");\n\t\taddEEnumLiteral(audioStyleEEnum, AudioStyle.A);\n\t\taddEEnumLiteral(audioStyleEEnum, AudioStyle.B);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "public void initializePackageContents() {\r\n\t\tif (isInitialized) return;\r\n\t\tisInitialized = true;\r\n\r\n\t\t// Initialize package\r\n\t\tsetName(eNAME);\r\n\t\tsetNsPrefix(eNS_PREFIX);\r\n\t\tsetNsURI(eNS_URI);\r\n\r\n\t\t// Obtain other dependent packages\r\n\t\tServiceCIMPackage theServiceCIMPackage = (ServiceCIMPackage)EPackage.Registry.INSTANCE.getEPackage(ServiceCIMPackage.eNS_URI);\r\n\r\n\t\t// Create type parameters\r\n\r\n\t\t// Set bounds for type parameters\r\n\r\n\t\t// Add supertypes to classes\r\n\t\tauthorizableResourceEClass.getESuperTypes().add(this.getAnnotation());\r\n\t\tannResourceEClass.getESuperTypes().add(this.getAnnotatedElement());\r\n\t\tannPropertyEClass.getESuperTypes().add(this.getAnnotatedElement());\r\n\t\tauthorizationSubjectEClass.getESuperTypes().add(this.getAnnotation());\r\n\t\tannCRUDActivityEClass.getESuperTypes().add(this.getAnnotatedElement());\r\n\t\tnewPropertyEClass.getESuperTypes().add(this.getAnnotation());\r\n\r\n\t\t// Initialize classes, features, and operations; add parameters\r\n\t\tinitEClass(annotationModelEClass, AnnotationModel.class, \"AnnotationModel\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getAnnotationModel_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, AnnotationModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getAnnotationModel_HasAnnotatedElement(), this.getAnnotatedElement(), null, \"hasAnnotatedElement\", null, 1, -1, AnnotationModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getAnnotationModel_HasAnnotation(), this.getAnnotation(), null, \"hasAnnotation\", null, 1, -1, AnnotationModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(annotationEClass, Annotation.class, \"Annotation\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEClass(authorizableResourceEClass, AuthorizableResource.class, \"AuthorizableResource\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getAuthorizableResource_HasResourceAccessPolicySet(), this.getResourceAccessPolicySet(), null, \"hasResourceAccessPolicySet\", null, 1, 1, AuthorizableResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getAuthorizableResource_IsAuthorizableResource(), this.getAnnResource(), null, \"isAuthorizableResource\", null, 1, 1, AuthorizableResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getAuthorizableResource_BTrackOwnership(), ecorePackage.getEBoolean(), \"bTrackOwnership\", null, 1, 1, AuthorizableResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(resourceAccessPolicySetEClass, ResourceAccessPolicySet.class, \"ResourceAccessPolicySet\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getResourceAccessPolicySet_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, ResourceAccessPolicySet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getResourceAccessPolicySet_PolicyCombiningAlgorithm(), this.getCombiningAlgorithm(), \"policyCombiningAlgorithm\", null, 1, 1, ResourceAccessPolicySet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getResourceAccessPolicySet_HasResourceAccessPolicy(), this.getResourceAccessPolicy(), null, \"hasResourceAccessPolicy\", null, 1, -1, ResourceAccessPolicySet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getResourceAccessPolicySet_HasResourceAccessPolicySet(), this.getResourceAccessPolicySet(), null, \"hasResourceAccessPolicySet\", null, 0, -1, ResourceAccessPolicySet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(annotatedElementEClass, AnnotatedElement.class, \"AnnotatedElement\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEClass(annResourceEClass, AnnResource.class, \"AnnResource\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getAnnResource_AnnotatesResource(), theServiceCIMPackage.getResource(), null, \"annotatesResource\", null, 1, 1, AnnResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(resourceAccessPolicyEClass, ResourceAccessPolicy.class, \"ResourceAccessPolicy\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getResourceAccessPolicy_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, ResourceAccessPolicy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getResourceAccessPolicy_RuleCombiningAlgorithm(), this.getCombiningAlgorithm(), \"ruleCombiningAlgorithm\", null, 1, 1, ResourceAccessPolicy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getResourceAccessPolicy_HasApplyCondition(), this.getCondition(), null, \"hasApplyCondition\", null, 0, -1, ResourceAccessPolicy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getResourceAccessPolicy_HasResourceAccessRule(), this.getResourceAccessRule(), null, \"hasResourceAccessRule\", null, 1, -1, ResourceAccessPolicy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(conditionEClass, Condition.class, \"Condition\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getCondition_Operator(), this.getOperator(), \"operator\", \"UNDEFINED\", 1, 1, Condition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getCondition_HasLeftSideOperand(), this.getAttribute(), null, \"hasLeftSideOperand\", null, 1, 1, Condition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getCondition_HasRightSideOperand(), this.getAttribute(), null, \"hasRightSideOperand\", null, 1, 1, Condition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(attributeEClass, Attribute.class, \"Attribute\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getAttribute_AttributeCategory(), this.getAttributeCategory(), \"attributeCategory\", null, 1, 1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getAttribute_IsAttributeExistingProperty(), this.getAnnProperty(), null, \"isAttributeExistingProperty\", null, 0, 1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getAttribute_Value(), ecorePackage.getEString(), \"value\", null, 0, -1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getAttribute_IsAttributeNewProperty(), this.getNewProperty(), null, \"isAttributeNewProperty\", null, 0, 1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getAttribute_IsAttributeResource(), this.getAnnResource(), null, \"isAttributeResource\", null, 0, 1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(annPropertyEClass, AnnProperty.class, \"AnnProperty\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getAnnProperty_AnnotatesProperty(), theServiceCIMPackage.getProperty(), null, \"annotatesProperty\", null, 1, 1, AnnProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(resourceAccessRuleEClass, ResourceAccessRule.class, \"ResourceAccessRule\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getResourceAccessRule_HasMatchCondition(), this.getCondition(), null, \"hasMatchCondition\", null, 1, -1, ResourceAccessRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getResourceAccessRule_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, ResourceAccessRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getResourceAccessRule_RuleType(), this.getRuleType(), \"ruleType\", null, 1, 1, ResourceAccessRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getResourceAccessRule_HasAllowedAction(), this.getAllowedAction(), null, \"hasAllowedAction\", null, 1, -1, ResourceAccessRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(authorizationSubjectEClass, AuthorizationSubject.class, \"AuthorizationSubject\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getAuthorizationSubject_IsAuthorizationSubject(), this.getAnnResource(), null, \"isAuthorizationSubject\", null, 1, 1, AuthorizationSubject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(annCRUDActivityEClass, AnnCRUDActivity.class, \"AnnCRUDActivity\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getAnnCRUDActivity_AnnotatesCRUDActivity(), theServiceCIMPackage.getCRUDActivity(), null, \"annotatesCRUDActivity\", null, 1, 1, AnnCRUDActivity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(allowedActionEClass, AllowedAction.class, \"AllowedAction\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getAllowedAction_IsAllowedAction(), this.getAnnCRUDActivity(), null, \"isAllowedAction\", null, 1, 1, AllowedAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(newPropertyEClass, NewProperty.class, \"NewProperty\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getNewProperty_BelongsToResource(), this.getAnnResource(), null, \"belongsToResource\", null, 1, 1, NewProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getNewProperty_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, NewProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getNewProperty_Type(), ecorePackage.getEString(), \"type\", null, 1, 1, NewProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getNewProperty_BIsUnique(), ecorePackage.getEBoolean(), \"bIsUnique\", null, 1, 1, NewProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\t// Initialize enums and add enum literals\r\n\t\tinitEEnum(combiningAlgorithmEEnum, CombiningAlgorithm.class, \"CombiningAlgorithm\");\r\n\t\taddEEnumLiteral(combiningAlgorithmEEnum, CombiningAlgorithm.DENY_OVERRIDES);\r\n\t\taddEEnumLiteral(combiningAlgorithmEEnum, CombiningAlgorithm.PERMIT_OVERRIDES);\r\n\t\taddEEnumLiteral(combiningAlgorithmEEnum, CombiningAlgorithm.DENY_UNLESS_PERMIT);\r\n\t\taddEEnumLiteral(combiningAlgorithmEEnum, CombiningAlgorithm.PERMIT_UNLESS_DENY);\r\n\r\n\t\tinitEEnum(operatorEEnum, Operator.class, \"Operator\");\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.EQUAL);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.GREATER_THAN);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.LESS_THAN);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.GREATER_THAN_OR_EQUAL);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.LESS_THAN_OR_EQUAL);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.NOT_EQUAL);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.SUBSET);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.NOT_SUBSET);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.SET_CONTAINS);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.SET_NOT_CONTAINS);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.REGEX);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.UNDEFINED);\r\n\r\n\t\tinitEEnum(attributeCategoryEEnum, AttributeCategory.class, \"AttributeCategory\");\r\n\t\taddEEnumLiteral(attributeCategoryEEnum, AttributeCategory.ACCESS_SUBJECT);\r\n\t\taddEEnumLiteral(attributeCategoryEEnum, AttributeCategory.ACCESSED_RESOURCE);\r\n\t\taddEEnumLiteral(attributeCategoryEEnum, AttributeCategory.PARENT_RESOURCE);\r\n\t\taddEEnumLiteral(attributeCategoryEEnum, AttributeCategory.CHILD_RESOURCE);\r\n\t\taddEEnumLiteral(attributeCategoryEEnum, AttributeCategory.INCLUDED_RESOURCE);\r\n\t\taddEEnumLiteral(attributeCategoryEEnum, AttributeCategory.CONSTANT);\r\n\r\n\t\tinitEEnum(ruleTypeEEnum, RuleType.class, \"RuleType\");\r\n\t\taddEEnumLiteral(ruleTypeEEnum, RuleType.PERMIT);\r\n\t\taddEEnumLiteral(ruleTypeEEnum, RuleType.DENY);\r\n\r\n\t\t// Create resource\r\n\t\tcreateResource(eNS_URI);\r\n\t}", "DataPackage createDataPackage();", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tSQLSchemaPackage theSQLSchemaPackage = (SQLSchemaPackage)EPackage.Registry.INSTANCE.getEPackage(SQLSchemaPackage.eNS_URI);\n\n\t\t// Add supertypes to classes\n\t\tqueryExpressionDefaultEClass.getESuperTypes().add(theSQLSchemaPackage.getSQLObject());\n\t\tqueryExpressionDefaultEClass.getESuperTypes().add(this.getQueryExpression());\n\t\tsearchConditionDefaultEClass.getESuperTypes().add(theSQLSchemaPackage.getSQLObject());\n\t\tsearchConditionDefaultEClass.getESuperTypes().add(this.getSearchCondition());\n\t\tvalueExpressionDefaultEClass.getESuperTypes().add(theSQLSchemaPackage.getSQLObject());\n\t\tvalueExpressionDefaultEClass.getESuperTypes().add(this.getValueExpression());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(queryExpressionEClass, QueryExpression.class, \"QueryExpression\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\n\t\taddEOperation(queryExpressionEClass, ecorePackage.getEString(), \"getSQL\", 0, 1); //$NON-NLS-1$\n\n\t\tEOperation op = addEOperation(queryExpressionEClass, null, \"setSQL\"); //$NON-NLS-1$\n\t\taddEParameter(op, ecorePackage.getEString(), \"sqlText\", 0, 1); //$NON-NLS-1$\n\n\t\tinitEClass(valueExpressionEClass, ValueExpression.class, \"ValueExpression\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\n\t\taddEOperation(valueExpressionEClass, ecorePackage.getEString(), \"getSQL\", 0, 1); //$NON-NLS-1$\n\n\t\top = addEOperation(valueExpressionEClass, null, \"setSQL\"); //$NON-NLS-1$\n\t\taddEParameter(op, ecorePackage.getEString(), \"sqlText\", 0, 1); //$NON-NLS-1$\n\n\t\tinitEClass(searchConditionEClass, SearchCondition.class, \"SearchCondition\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\n\t\taddEOperation(searchConditionEClass, ecorePackage.getEString(), \"getSQL\", 0, 1); //$NON-NLS-1$\n\n\t\top = addEOperation(searchConditionEClass, null, \"setSQL\"); //$NON-NLS-1$\n\t\taddEParameter(op, ecorePackage.getEString(), \"sqlText\", 0, 1); //$NON-NLS-1$\n\n\t\tinitEClass(queryExpressionDefaultEClass, QueryExpressionDefault.class, \"QueryExpressionDefault\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\t\tinitEAttribute(getQueryExpressionDefault_SQL(), ecorePackage.getEString(), \"SQL\", null, 0, 1, QueryExpressionDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\n\t\tinitEClass(searchConditionDefaultEClass, SearchConditionDefault.class, \"SearchConditionDefault\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\t\tinitEAttribute(getSearchConditionDefault_SQL(), ecorePackage.getEString(), \"SQL\", null, 0, 1, SearchConditionDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\n\t\tinitEClass(valueExpressionDefaultEClass, ValueExpressionDefault.class, \"ValueExpressionDefault\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\t\tinitEAttribute(getValueExpressionDefault_SQL(), ecorePackage.getEString(), \"SQL\", null, 0, 1, ValueExpressionDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "private void initializeShapesModel() {\n\t\t// Initialize the model\n\t\tShapesPackage.eINSTANCE.eClass();\n\t\tShapesPackage.eINSTANCE.setNsURI(METAMODEL_PATH_SHAPES);\n\n\t\t// Retrieve the default factory singleton\n\t\tfactory = ShapesFactory.eINSTANCE;\n\n\t\t// Create the content of the model via this program\n\t\ttargetRootBlock = factory.createRootBlock();\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\tinternalFailureOccurrenceDescriptionEClass = createEClass(INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION);\n\t\tcreateEReference(internalFailureOccurrenceDescriptionEClass, INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION__INTERNAL_ACTION_INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION);\n\t\tcreateEReference(internalFailureOccurrenceDescriptionEClass, INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION__SOFTWARE_INDUCED_FAILURE_TYPE_INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION);\n\n\t\trecoveryActionEClass = createEClass(RECOVERY_ACTION);\n\t\tcreateEReference(recoveryActionEClass, RECOVERY_ACTION__PRIMARY_BEHAVIOUR_RECOVERY_ACTION);\n\t\tcreateEReference(recoveryActionEClass, RECOVERY_ACTION__RECOVERY_ACTION_BEHAVIOURS_RECOVERY_ACTION);\n\n\t\trecoveryActionBehaviourEClass = createEClass(RECOVERY_ACTION_BEHAVIOUR);\n\t\tcreateEReference(recoveryActionBehaviourEClass, RECOVERY_ACTION_BEHAVIOUR__FAILURE_HANDLING_ALTERNATIVES_RECOVERY_ACTION_BEHAVIOUR);\n\t\tcreateEReference(recoveryActionBehaviourEClass, RECOVERY_ACTION_BEHAVIOUR__RECOVERY_ACTION_RECOVERY_ACTION_BEHAVIOUR);\n\n\t\tfailureHandlingEntityEClass = createEClass(FAILURE_HANDLING_ENTITY);\n\t\tcreateEReference(failureHandlingEntityEClass, FAILURE_HANDLING_ENTITY__FAILURE_TYPES_FAILURE_HANDLING_ENTITY);\n\n\t\tfailureHandlingExternalCallActionEClass = createEClass(FAILURE_HANDLING_EXTERNAL_CALL_ACTION);\n\t\tcreateEReference(failureHandlingExternalCallActionEClass, FAILURE_HANDLING_EXTERNAL_CALL_ACTION__OWNER);\n\n\t\tacquireActionTimeoutEClass = createEClass(ACQUIRE_ACTION_TIMEOUT);\n\t\tcreateEReference(acquireActionTimeoutEClass, ACQUIRE_ACTION_TIMEOUT__OWNER);\n\t\tcreateEAttribute(acquireActionTimeoutEClass, ACQUIRE_ACTION_TIMEOUT__TIMEOUT_VALUE);\n\t}", "public void initializePackageContents() {\n if (this.isInitialized) {\n return;\n }\n this.isInitialized = true;\n\n // Initialize package\n this.setName(eNAME);\n this.setNsPrefix(eNS_PREFIX);\n this.setNsURI(eNS_URI);\n\n // Obtain other dependent packages\n final QosannotationsPackage theQosannotationsPackage = (QosannotationsPackage) EPackage.Registry.INSTANCE\n .getEPackage(QosannotationsPackage.eNS_URI);\n final CorePackage theCorePackage = (CorePackage) EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI);\n final CompositionPackage theCompositionPackage = (CompositionPackage) EPackage.Registry.INSTANCE\n .getEPackage(CompositionPackage.eNS_URI);\n\n // Create type parameters\n\n // Set bounds for type parameters\n\n // Add supertypes to classes\n this.systemSpecifiedExecutionTimeEClass.getESuperTypes().add(this.getSpecifiedExecutionTime());\n this.specifiedExecutionTimeEClass.getESuperTypes().add(theQosannotationsPackage.getSpecifiedQoSAnnotation());\n this.componentSpecifiedExecutionTimeEClass.getESuperTypes().add(this.getSpecifiedExecutionTime());\n\n // Initialize classes and features; add operations and parameters\n this.initEClass(this.systemSpecifiedExecutionTimeEClass, SystemSpecifiedExecutionTime.class,\n \"SystemSpecifiedExecutionTime\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n final EOperation op = this.addEOperation(this.systemSpecifiedExecutionTimeEClass,\n this.ecorePackage.getEBoolean(), \"SystemSpecifiedExecutionTimeMustReferenceRequiredRoleOfASystem\", 0, 1,\n IS_UNIQUE, IS_ORDERED);\n this.addEParameter(op, this.ecorePackage.getEDiagnosticChain(), \"diagnostics\", 0, 1, IS_UNIQUE, IS_ORDERED);\n final EGenericType g1 = this.createEGenericType(this.ecorePackage.getEMap());\n EGenericType g2 = this.createEGenericType(this.ecorePackage.getEJavaObject());\n g1.getETypeArguments().add(g2);\n g2 = this.createEGenericType(this.ecorePackage.getEJavaObject());\n g1.getETypeArguments().add(g2);\n this.addEParameter(op, g1, \"context\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n this.initEClass(this.specifiedExecutionTimeEClass, SpecifiedExecutionTime.class, \"SpecifiedExecutionTime\",\n IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n this.initEReference(this.getSpecifiedExecutionTime_Specification_SpecifiedExecutionTime(),\n theCorePackage.getPCMRandomVariable(),\n theCorePackage.getPCMRandomVariable_SpecifiedExecutionTime_PCMRandomVariable(),\n \"specification_SpecifiedExecutionTime\", null, 1, 1, SpecifiedExecutionTime.class, !IS_TRANSIENT,\n !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,\n !IS_ORDERED);\n\n this.initEClass(this.componentSpecifiedExecutionTimeEClass, ComponentSpecifiedExecutionTime.class,\n \"ComponentSpecifiedExecutionTime\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n this.initEReference(this.getComponentSpecifiedExecutionTime_AssemblyContext_ComponentSpecifiedExecutionTime(),\n theCompositionPackage.getAssemblyContext(), null, \"assemblyContext_ComponentSpecifiedExecutionTime\",\n null, 1, 1, ComponentSpecifiedExecutionTime.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\n !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n }", "public void initializePackageContents() {\n\t\tif (isInitialized)\n\t\t\treturn;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tpluginEClass.getESuperTypes().add(this.getAnalysisComponent());\n\t\tinputPortEClass.getESuperTypes().add(this.getPort());\n\t\toutputPortEClass.getESuperTypes().add(this.getPort());\n\t\tfilterEClass.getESuperTypes().add(this.getPlugin());\n\t\treaderEClass.getESuperTypes().add(this.getPlugin());\n\t\trepositoryEClass.getESuperTypes().add(this.getAnalysisComponent());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(projectEClass, MIProject.class, \"Project\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getProject_Plugins(), this.getPlugin(), null, \"plugins\", null, 0, -1, MIProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\n\t\t\t\tIS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getProject_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, MIProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE,\n\t\t\t\t!IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getProject_Repositories(), this.getRepository(), null, \"repositories\", null, 0, -1, MIProject.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getProject_Dependencies(), this.getDependency(), null, \"dependencies\", null, 0, -1, MIProject.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getProject_Views(), this.getView(), null, \"views\", null, 0, -1, MIProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,\n\t\t\t\t!IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getProject_Properties(), this.getProperty(), null, \"properties\", null, 0, -1, MIProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\n\t\t\t\tIS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(pluginEClass, MIPlugin.class, \"Plugin\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPlugin_Repositories(), this.getRepositoryConnector(), null, \"repositories\", null, 0, -1, MIPlugin.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPlugin_OutputPorts(), this.getOutputPort(), this.getOutputPort_Parent(), \"outputPorts\", null, 0, -1, MIPlugin.class, !IS_TRANSIENT,\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPlugin_Displays(), this.getDisplay(), this.getDisplay_Parent(), \"displays\", null, 0, -1, MIPlugin.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(portEClass, MIPort.class, \"Port\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getPort_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, MIPort.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE,\n\t\t\t\t!IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPort_EventTypes(), ecorePackage.getEString(), \"eventTypes\", null, 1, -1, MIPort.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\n\t\t\t\t!IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPort_Id(), ecorePackage.getEString(), \"id\", null, 1, 1, MIPort.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID,\n\t\t\t\tIS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(inputPortEClass, MIInputPort.class, \"InputPort\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInputPort_Parent(), this.getFilter(), this.getFilter_InputPorts(), \"parent\", null, 1, 1, MIInputPort.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(outputPortEClass, MIOutputPort.class, \"OutputPort\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getOutputPort_Subscribers(), this.getInputPort(), null, \"subscribers\", null, 0, -1, MIOutputPort.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getOutputPort_Parent(), this.getPlugin(), this.getPlugin_OutputPorts(), \"parent\", null, 1, 1, MIOutputPort.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(propertyEClass, MIProperty.class, \"Property\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getProperty_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, MIProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\n\t\t\t\t!IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getProperty_Value(), ecorePackage.getEString(), \"value\", null, 1, 1, MIProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\n\t\t\t\t!IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(filterEClass, MIFilter.class, \"Filter\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getFilter_InputPorts(), this.getInputPort(), this.getInputPort_Parent(), \"inputPorts\", null, 0, -1, MIFilter.class, !IS_TRANSIENT,\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(readerEClass, MIReader.class, \"Reader\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(repositoryEClass, MIRepository.class, \"Repository\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(dependencyEClass, MIDependency.class, \"Dependency\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getDependency_FilePath(), ecorePackage.getEString(), \"filePath\", null, 1, 1, MIDependency.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\n\t\t\t\t!IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(repositoryConnectorEClass, MIRepositoryConnector.class, \"RepositoryConnector\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getRepositoryConnector_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, MIRepositoryConnector.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getRepositoryConnector_Repository(), this.getRepository(), null, \"repository\", null, 1, 1, MIRepositoryConnector.class, !IS_TRANSIENT,\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getRepositoryConnector_Id(), ecorePackage.getEString(), \"id\", null, 1, 1, MIRepositoryConnector.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(displayEClass, MIDisplay.class, \"Display\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getDisplay_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, MIDisplay.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE,\n\t\t\t\t!IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getDisplay_Parent(), this.getPlugin(), this.getPlugin_Displays(), \"parent\", null, 1, 1, MIDisplay.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getDisplay_Id(), ecorePackage.getEString(), \"id\", null, 1, 1, MIDisplay.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE,\n\t\t\t\tIS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(viewEClass, MIView.class, \"View\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getView_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, MIView.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE,\n\t\t\t\t!IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getView_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, MIView.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\n\t\t\t\t!IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getView_DisplayConnectors(), this.getDisplayConnector(), null, \"displayConnectors\", null, 0, -1, MIView.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getView_Id(), ecorePackage.getEString(), \"id\", null, 1, 1, MIView.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID,\n\t\t\t\tIS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(displayConnectorEClass, MIDisplayConnector.class, \"DisplayConnector\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getDisplayConnector_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, MIDisplayConnector.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getDisplayConnector_Display(), this.getDisplay(), null, \"display\", null, 1, 1, MIDisplayConnector.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getDisplayConnector_Id(), ecorePackage.getEString(), \"id\", null, 1, 1, MIDisplayConnector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\n\t\t\t\t!IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(analysisComponentEClass, MIAnalysisComponent.class, \"AnalysisComponent\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getAnalysisComponent_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, MIAnalysisComponent.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAnalysisComponent_Classname(), ecorePackage.getEString(), \"classname\", null, 1, 1, MIAnalysisComponent.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getAnalysisComponent_Properties(), this.getProperty(), null, \"properties\", null, 0, -1, MIAnalysisComponent.class, !IS_TRANSIENT,\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAnalysisComponent_Id(), ecorePackage.getEString(), \"id\", null, 1, 1, MIAnalysisComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\n\t\t\t\t!IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}" ]
[ "0.6877529", "0.6802357", "0.66864955", "0.66605544", "0.66467", "0.66181123", "0.6607485", "0.6604758", "0.6577712", "0.6567993", "0.655177", "0.65493155", "0.65404004", "0.6535015", "0.6533158", "0.65296984", "0.6514776", "0.6512043", "0.6500722", "0.6488522", "0.6481276", "0.6453481", "0.64472747", "0.6439122", "0.6432894", "0.6414194", "0.63951224", "0.63936186", "0.63839173", "0.63718927", "0.63698685", "0.63671625", "0.6361668", "0.63593066", "0.6344884", "0.63401824", "0.6336755", "0.6318529", "0.6316238", "0.63112646", "0.63078845", "0.62901455", "0.62878877", "0.62714493", "0.6270785", "0.62622225", "0.6256508", "0.6248846", "0.6244314", "0.6235287", "0.62326926", "0.623049", "0.6223449", "0.62213147", "0.62174535", "0.61806244", "0.6169316", "0.616737", "0.61629033", "0.6158268", "0.6156599", "0.61306673", "0.61299765", "0.61182225", "0.6112438", "0.60971326", "0.6091738", "0.60907453", "0.60845065", "0.6075814", "0.6029925", "0.5999489", "0.5978544", "0.5977973", "0.5923769", "0.5903927", "0.5884946", "0.5834262", "0.5821324", "0.5803325", "0.57827914", "0.5760247", "0.5757371", "0.5741079", "0.5721045", "0.5712146", "0.5704392", "0.5695302", "0.5666623", "0.56342447", "0.5630841", "0.5599988", "0.55983305", "0.5586457", "0.55820084", "0.5579882", "0.5576847", "0.5569872", "0.55580693", "0.55546904" ]
0.6394011
27
Complete the initialization of the package and its metamodel. This method is guarded to have no affect on any invocation but its first.
public void initializePackageContents() { if (isInitialized) return; isInitialized = true; // Initialize package setName(eNAME); setNsPrefix(eNS_PREFIX); setNsURI(eNS_URI); // Create type parameters // Set bounds for type parameters // Add supertypes to classes logicalConditionEClass.getESuperTypes().add(this.getCondition()); naturalLangConditionEClass.getESuperTypes().add(this.getCondition()); mathConditionEClass.getESuperTypes().add(this.getCondition()); negformulaEClass.getESuperTypes().add(this.getLogicalCondition()); oRformulaEClass.getESuperTypes().add(this.getLogicalCondition()); anDformulaEClass.getESuperTypes().add(this.getLogicalCondition()); equalFormulaEClass.getESuperTypes().add(this.getMathCondition()); moreEqformulaEClass.getESuperTypes().add(this.getMathCondition()); lessformulaEClass.getESuperTypes().add(this.getMathCondition()); numberPropertyEClass.getESuperTypes().add(this.getProperty()); booleanPropertyEClass.getESuperTypes().add(this.getProperty()); stringPropertyEClass.getESuperTypes().add(this.getProperty()); // Initialize classes, features, and operations; add parameters initEClass(ontologicalStructureEClass, OntologicalStructure.class, "OntologicalStructure", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getOntologicalStructure_OntologicalConcepts(), this.getOntologicalConcept(), null, "ontologicalConcepts", null, 0, -1, OntologicalStructure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getOntologicalStructure_Conditions(), this.getCondition(), null, "conditions", null, 0, -1, OntologicalStructure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getOntologicalStructure_Properties(), this.getProperty(), null, "properties", null, 0, -1, OntologicalStructure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(ontologicalConceptEClass, OntologicalConcept.class, "OntologicalConcept", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getOntologicalConcept_Label(), ecorePackage.getEString(), "label", null, 1, 1, OntologicalConcept.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getOntologicalConcept_URI(), ecorePackage.getEString(), "URI", null, 1, 1, OntologicalConcept.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(conditionEClass, Condition.class, "Condition", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getCondition_Label(), ecorePackage.getEString(), "label", null, 0, 1, Condition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(logicalConditionEClass, LogicalCondition.class, "LogicalCondition", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEClass(naturalLangConditionEClass, NaturalLangCondition.class, "NaturalLangCondition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getNaturalLangCondition_Statement(), ecorePackage.getEString(), "statement", null, 1, 1, NaturalLangCondition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(mathConditionEClass, MathCondition.class, "MathCondition", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEClass(negformulaEClass, Negformula.class, "Negformula", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getNegformula_ConditionStatement(), this.getCondition(), null, "conditionStatement", null, 0, 1, Negformula.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(oRformulaEClass, ORformula.class, "ORformula", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getORformula_LeftConditionStatement(), this.getCondition(), null, "leftConditionStatement", null, 1, 1, ORformula.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getORformula_RightConditionStatement(), this.getCondition(), null, "rightConditionStatement", null, 1, 1, ORformula.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(anDformulaEClass, ANDformula.class, "ANDformula", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getANDformula_LeftConditionStatement(), this.getCondition(), null, "leftConditionStatement", null, 1, 1, ANDformula.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getANDformula_RightConditionStatement(), this.getCondition(), null, "rightConditionStatement", null, 1, 1, ANDformula.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(equalFormulaEClass, equalFormula.class, "equalFormula", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getequalFormula_LeftConditionStatement(), this.getCondition(), null, "leftConditionStatement", null, 1, 1, equalFormula.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getequalFormula_RightConditionStatement(), this.getCondition(), null, "rightConditionStatement", null, 1, 1, equalFormula.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(moreEqformulaEClass, moreEqformula.class, "moreEqformula", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getmoreEqformula_LeftConditionStatement(), this.getCondition(), null, "leftConditionStatement", null, 1, 1, moreEqformula.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getmoreEqformula_RightConditionStatement(), this.getCondition(), null, "rightConditionStatement", null, 1, 1, moreEqformula.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(lessformulaEClass, lessformula.class, "lessformula", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getlessformula_LeftConditionStatement(), this.getCondition(), null, "leftConditionStatement", null, 1, 1, lessformula.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getlessformula_RightConditionStatement(), this.getCondition(), null, "rightConditionStatement", null, 1, 1, lessformula.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(propertyEClass, Property.class, "Property", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getProperty_Label(), ecorePackage.getEString(), "label", null, 1, 1, Property.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(numberPropertyEClass, NumberProperty.class, "NumberProperty", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getNumberProperty_Value(), ecorePackage.getEDouble(), "value", null, 0, 1, NumberProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(booleanPropertyEClass, BooleanProperty.class, "BooleanProperty", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getBooleanProperty_Value(), ecorePackage.getEBoolean(), "value", null, 0, 1, BooleanProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(stringPropertyEClass, StringProperty.class, "StringProperty", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getStringProperty_Value(), ecorePackage.getEString(), "value", null, 0, 1, StringProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tEnginePackage theEnginePackage = (EnginePackage)EPackage.Registry.INSTANCE.getEPackage(EnginePackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tbluetoothPortEClass.getESuperTypes().add(theEnginePackage.getPort());\n\t\tl2CAPInJobEClass.getESuperTypes().add(theEnginePackage.getInputJob());\n\t\tl2CAPoutJobEClass.getESuperTypes().add(theEnginePackage.getOutputJob());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(bluetoothPortEClass, BluetoothPort.class, \"BluetoothPort\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(l2CAPInJobEClass, L2CAPInJob.class, \"L2CAPInJob\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(l2CAPoutJobEClass, L2CAPoutJob.class, \"L2CAPoutJob\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "public void initializePackageContents()\n {\n if (isInitialized) return;\n isInitialized = true;\n\n // Initialize package\n setName(eNAME);\n setNsPrefix(eNS_PREFIX);\n setNsURI(eNS_URI);\n\n // Create type parameters\n\n // Set bounds for type parameters\n\n // Add supertypes to classes\n\n // Initialize classes and features; add operations and parameters\n initEClass(modelEClass, Model.class, \"Model\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getModel_Elements(), this.getElement(), null, \"elements\", null, 0, -1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(elementEClass, Element.class, \"Element\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getElement_State(), this.getState(), null, \"state\", null, 0, 1, Element.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getElement_Transition(), this.getTransition(), null, \"transition\", null, 0, 1, Element.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(stateEClass, State.class, \"State\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getState_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, State.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getState_StatesProperties(), this.getStatesProperties(), null, \"statesProperties\", null, 0, -1, State.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(statesPropertiesEClass, StatesProperties.class, \"StatesProperties\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getStatesProperties_Color(), ecorePackage.getEString(), \"color\", null, 0, 1, StatesProperties.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getStatesProperties_Thickness(), ecorePackage.getEString(), \"thickness\", null, 0, 1, StatesProperties.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getStatesProperties_Position(), ecorePackage.getEString(), \"position\", null, 0, 1, StatesProperties.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(transitionEClass, Transition.class, \"Transition\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getTransition_Start(), this.getCoordinatesStatesTransition(), null, \"start\", null, 0, 1, Transition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getTransition_End(), this.getCoordinatesStatesTransition(), null, \"end\", null, 0, 1, Transition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getTransition_TransitionProperties(), this.getTransitionProperties(), null, \"transitionProperties\", null, 0, -1, Transition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getTransition_Label(), this.getLabel(), null, \"label\", null, 0, 1, Transition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getTransition_Init(), ecorePackage.getEString(), \"init\", null, 0, 1, Transition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(labelEClass, Label.class, \"Label\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getLabel_Text(), ecorePackage.getEString(), \"text\", null, 0, 1, Label.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getLabel_Position(), ecorePackage.getEString(), \"position\", null, 0, 1, Label.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(coordinatesStatesTransitionEClass, CoordinatesStatesTransition.class, \"CoordinatesStatesTransition\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getCoordinatesStatesTransition_StateTransition(), ecorePackage.getEString(), \"stateTransition\", null, 0, 1, CoordinatesStatesTransition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(transitionPropertiesEClass, TransitionProperties.class, \"TransitionProperties\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getTransitionProperties_Color(), ecorePackage.getEString(), \"color\", null, 0, 1, TransitionProperties.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getTransitionProperties_Thickness(), ecorePackage.getEString(), \"thickness\", null, 0, 1, TransitionProperties.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getTransitionProperties_Curve(), ecorePackage.getEString(), \"curve\", null, 0, 1, TransitionProperties.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n // Create resource\n createResource(eNS_URI);\n }", "public void initializePackageContents() {\n if (this.isInitialized) {\n return;\n }\n this.isInitialized = true;\n\n // Initialize package\n this.setName(eNAME);\n this.setNsPrefix(eNS_PREFIX);\n this.setNsURI(eNS_URI);\n\n // Obtain other dependent packages\n final QosannotationsPackage theQosannotationsPackage = (QosannotationsPackage) EPackage.Registry.INSTANCE\n .getEPackage(QosannotationsPackage.eNS_URI);\n final CorePackage theCorePackage = (CorePackage) EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI);\n final CompositionPackage theCompositionPackage = (CompositionPackage) EPackage.Registry.INSTANCE\n .getEPackage(CompositionPackage.eNS_URI);\n\n // Create type parameters\n\n // Set bounds for type parameters\n\n // Add supertypes to classes\n this.systemSpecifiedExecutionTimeEClass.getESuperTypes().add(this.getSpecifiedExecutionTime());\n this.specifiedExecutionTimeEClass.getESuperTypes().add(theQosannotationsPackage.getSpecifiedQoSAnnotation());\n this.componentSpecifiedExecutionTimeEClass.getESuperTypes().add(this.getSpecifiedExecutionTime());\n\n // Initialize classes and features; add operations and parameters\n this.initEClass(this.systemSpecifiedExecutionTimeEClass, SystemSpecifiedExecutionTime.class,\n \"SystemSpecifiedExecutionTime\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n final EOperation op = this.addEOperation(this.systemSpecifiedExecutionTimeEClass,\n this.ecorePackage.getEBoolean(), \"SystemSpecifiedExecutionTimeMustReferenceRequiredRoleOfASystem\", 0, 1,\n IS_UNIQUE, IS_ORDERED);\n this.addEParameter(op, this.ecorePackage.getEDiagnosticChain(), \"diagnostics\", 0, 1, IS_UNIQUE, IS_ORDERED);\n final EGenericType g1 = this.createEGenericType(this.ecorePackage.getEMap());\n EGenericType g2 = this.createEGenericType(this.ecorePackage.getEJavaObject());\n g1.getETypeArguments().add(g2);\n g2 = this.createEGenericType(this.ecorePackage.getEJavaObject());\n g1.getETypeArguments().add(g2);\n this.addEParameter(op, g1, \"context\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n this.initEClass(this.specifiedExecutionTimeEClass, SpecifiedExecutionTime.class, \"SpecifiedExecutionTime\",\n IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n this.initEReference(this.getSpecifiedExecutionTime_Specification_SpecifiedExecutionTime(),\n theCorePackage.getPCMRandomVariable(),\n theCorePackage.getPCMRandomVariable_SpecifiedExecutionTime_PCMRandomVariable(),\n \"specification_SpecifiedExecutionTime\", null, 1, 1, SpecifiedExecutionTime.class, !IS_TRANSIENT,\n !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,\n !IS_ORDERED);\n\n this.initEClass(this.componentSpecifiedExecutionTimeEClass, ComponentSpecifiedExecutionTime.class,\n \"ComponentSpecifiedExecutionTime\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n this.initEReference(this.getComponentSpecifiedExecutionTime_AssemblyContext_ComponentSpecifiedExecutionTime(),\n theCompositionPackage.getAssemblyContext(), null, \"assemblyContext_ComponentSpecifiedExecutionTime\",\n null, 1, 1, ComponentSpecifiedExecutionTime.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\n !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n }", "public void initializePackageContents() {\n\t\tif (isInitialized)\n\t\t\treturn;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tPivotModelPackage thePivotModelPackage = (PivotModelPackage) EPackage.Registry.INSTANCE\n\t\t\t\t.getEPackage(PivotModelPackage.eNS_URI);\n\t\tExpressionsPackageImpl theExpressionsPackage = (ExpressionsPackageImpl) EPackage.Registry.INSTANCE\n\t\t\t\t.getEPackage(ExpressionsPackageImpl.eNS_URI);\n\t\tDatatypesPackage theDatatypesPackage = (DatatypesPackage) EPackage.Registry.INSTANCE\n\t\t\t\t.getEPackage(DatatypesPackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tbagTypeEClass.getESuperTypes().add(this.getCollectionType());\n\t\ttupleTypeEClass.getESuperTypes().add(thePivotModelPackage.getType());\n\t\tcollectionTypeEClass.getESuperTypes().add(\n\t\t\t\tthePivotModelPackage.getType());\n\t\tinvalidTypeEClass.getESuperTypes().add(thePivotModelPackage.getType());\n\t\torderedSetTypeEClass.getESuperTypes().add(this.getCollectionType());\n\t\tsequenceTypeEClass.getESuperTypes().add(this.getCollectionType());\n\t\tsetTypeEClass.getESuperTypes().add(this.getCollectionType());\n\t\tvoidTypeEClass.getESuperTypes().add(thePivotModelPackage.getType());\n\t\ttypeTypeEClass.getESuperTypes().add(thePivotModelPackage.getType());\n\t\tanyTypeEClass.getESuperTypes().add(thePivotModelPackage.getType());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(\n\t\t\t\tbagTypeEClass,\n\t\t\t\tBagType.class,\n\t\t\t\t\"BagType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\n\t\tinitEClass(\n\t\t\t\ttupleTypeEClass,\n\t\t\t\tTupleType.class,\n\t\t\t\t\"TupleType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetTupleType_OclLibrary(),\n\t\t\t\tthis.getOclLibrary(),\n\t\t\t\tnull,\n\t\t\t\t\"oclLibrary\", null, 1, 1, TupleType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\n\t\tinitEClass(\n\t\t\t\tcollectionTypeEClass,\n\t\t\t\tCollectionType.class,\n\t\t\t\t\"CollectionType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetCollectionType_ElementType(),\n\t\t\t\tthePivotModelPackage.getType(),\n\t\t\t\tnull,\n\t\t\t\t\"elementType\", null, 0, 1, CollectionType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetCollectionType_OclLibrary(),\n\t\t\t\tthis.getOclLibrary(),\n\t\t\t\tnull,\n\t\t\t\t\"oclLibrary\", null, 1, 1, CollectionType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\t\tinitEAttribute(\n\t\t\t\tgetCollectionType_Kind(),\n\t\t\t\ttheExpressionsPackage.getCollectionKind(),\n\t\t\t\t\"kind\", null, 1, 1, CollectionType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\n\t\tinitEClass(\n\t\t\t\tinvalidTypeEClass,\n\t\t\t\tInvalidType.class,\n\t\t\t\t\"InvalidType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetInvalidType_OclLibrary(),\n\t\t\t\tthis.getOclLibrary(),\n\t\t\t\tthis.getOclLibrary_OclInvalid(),\n\t\t\t\t\"oclLibrary\", null, 1, 1, InvalidType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\n\t\tinitEClass(\n\t\t\t\torderedSetTypeEClass,\n\t\t\t\tOrderedSetType.class,\n\t\t\t\t\"OrderedSetType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\n\t\tinitEClass(\n\t\t\t\tsequenceTypeEClass,\n\t\t\t\tSequenceType.class,\n\t\t\t\t\"SequenceType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\n\t\tinitEClass(\n\t\t\t\tsetTypeEClass,\n\t\t\t\tSetType.class,\n\t\t\t\t\"SetType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\n\t\tinitEClass(\n\t\t\t\tvoidTypeEClass,\n\t\t\t\tVoidType.class,\n\t\t\t\t\"VoidType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetVoidType_OclLibrary(),\n\t\t\t\tthis.getOclLibrary(),\n\t\t\t\tthis.getOclLibrary_OclVoid(),\n\t\t\t\t\"oclLibrary\", null, 1, 1, VoidType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\n\t\tinitEClass(\n\t\t\t\ttypeTypeEClass,\n\t\t\t\tTypeType.class,\n\t\t\t\t\"TypeType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetTypeType_RepresentedType(),\n\t\t\t\tthePivotModelPackage.getType(),\n\t\t\t\tnull,\n\t\t\t\t\"representedType\", null, 0, 1, TypeType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\n\t\tinitEClass(\n\t\t\t\toclLibraryEClass,\n\t\t\t\tOclLibrary.class,\n\t\t\t\t\"OclLibrary\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetOclLibrary_OclBoolean(),\n\t\t\t\tthePivotModelPackage.getPrimitiveType(),\n\t\t\t\tnull,\n\t\t\t\t\"oclBoolean\", null, 1, 1, OclLibrary.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetOclLibrary_OclString(),\n\t\t\t\tthePivotModelPackage.getPrimitiveType(),\n\t\t\t\tnull,\n\t\t\t\t\"oclString\", null, 1, 1, OclLibrary.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetOclLibrary_OclInteger(),\n\t\t\t\tthePivotModelPackage.getPrimitiveType(),\n\t\t\t\tnull,\n\t\t\t\t\"oclInteger\", null, 1, 1, OclLibrary.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetOclLibrary_OclReal(),\n\t\t\t\tthePivotModelPackage.getPrimitiveType(),\n\t\t\t\tnull,\n\t\t\t\t\"oclReal\", null, 1, 1, OclLibrary.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetOclLibrary_OclAny(),\n\t\t\t\tthis.getAnyType(),\n\t\t\t\tnull,\n\t\t\t\t\"oclAny\", null, 1, 1, OclLibrary.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetOclLibrary_OclVoid(),\n\t\t\t\tthis.getVoidType(),\n\t\t\t\tthis.getVoidType_OclLibrary(),\n\t\t\t\t\"oclVoid\", null, 1, 1, OclLibrary.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetOclLibrary_OclInvalid(),\n\t\t\t\tthis.getInvalidType(),\n\t\t\t\tthis.getInvalidType_OclLibrary(),\n\t\t\t\t\"oclInvalid\", null, 1, 1, OclLibrary.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetOclLibrary_OclType(),\n\t\t\t\tthis.getTypeType(),\n\t\t\t\tnull,\n\t\t\t\t\"oclType\", null, 1, 1, OclLibrary.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetOclLibrary_OclCollection(),\n\t\t\t\tthis.getCollectionType(),\n\t\t\t\tnull,\n\t\t\t\t\"oclCollection\", null, 1, 1, OclLibrary.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetOclLibrary_OclSequence(),\n\t\t\t\tthis.getSequenceType(),\n\t\t\t\tnull,\n\t\t\t\t\"oclSequence\", null, 1, 1, OclLibrary.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetOclLibrary_OclBag(),\n\t\t\t\tthis.getBagType(),\n\t\t\t\tnull,\n\t\t\t\t\"oclBag\", null, 1, 1, OclLibrary.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetOclLibrary_OclSet(),\n\t\t\t\tthis.getSetType(),\n\t\t\t\tnull,\n\t\t\t\t\"oclSet\", null, 1, 1, OclLibrary.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetOclLibrary_OclOrderedSet(),\n\t\t\t\tthis.getOrderedSetType(),\n\t\t\t\tnull,\n\t\t\t\t\"oclOrderedSet\", null, 1, 1, OclLibrary.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\t\tinitEReference(\n\t\t\t\tgetOclLibrary_OclTuple(),\n\t\t\t\tthis.getTupleType(),\n\t\t\t\tnull,\n\t\t\t\t\"oclTuple\", null, 1, -1, OclLibrary.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\n\t\tEOperation op = addEOperation(oclLibraryEClass, this.getTupleType(),\n\t\t\t\t\"makeTupleType\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\t\tEGenericType g1 = createEGenericType(theDatatypesPackage.getSequence());\n\t\tEGenericType g2 = createEGenericType(thePivotModelPackage.getProperty());\n\t\tg1.getETypeArguments().add(g2);\n\t\taddEParameter(op, g1, \"atts\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\n\t\top = addEOperation(oclLibraryEClass, this.getCollectionType(),\n\t\t\t\t\"getCollectionType\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\t\taddEParameter(op, thePivotModelPackage.getType(),\n\t\t\t\t\"elementType\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\n\t\top = addEOperation(oclLibraryEClass, this.getSequenceType(),\n\t\t\t\t\"getSequenceType\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\t\taddEParameter(op, thePivotModelPackage.getType(),\n\t\t\t\t\"elementType\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\n\t\top = addEOperation(oclLibraryEClass, this.getBagType(),\n\t\t\t\t\"getBagType\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\t\taddEParameter(op, thePivotModelPackage.getType(),\n\t\t\t\t\"elementType\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\n\t\top = addEOperation(oclLibraryEClass, this.getSetType(),\n\t\t\t\t\"getSetType\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\t\taddEParameter(op, thePivotModelPackage.getType(),\n\t\t\t\t\"elementType\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\n\t\top = addEOperation(oclLibraryEClass, this.getOrderedSetType(),\n\t\t\t\t\"getOrderedSetType\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\t\taddEParameter(op, thePivotModelPackage.getType(),\n\t\t\t\t\"elementType\", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\n\t\top = addEOperation(oclLibraryEClass, this.getTypeType(),\n\t\t\t\t\"getTypeType\", 1, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\t\taddEParameter(op, thePivotModelPackage.getType(),\n\t\t\t\t\"representedType\", 1, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$\n\n\t\tinitEClass(\n\t\t\t\tanyTypeEClass,\n\t\t\t\tAnyType.class,\n\t\t\t\t\"AnyType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tCommonPackage theCommonPackage = (CommonPackage)EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI);\n\t\tModelPackage theModelPackage = (ModelPackage)EPackage.Registry.INSTANCE.getEPackage(ModelPackage.eNS_URI);\n\t\tColumnPackage theColumnPackage = (ColumnPackage)EPackage.Registry.INSTANCE.getEPackage(ColumnPackage.eNS_URI);\n\t\tExpressionPackage theExpressionPackage = (ExpressionPackage)EPackage.Registry.INSTANCE.getEPackage(ExpressionPackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\ttableEClass.getESuperTypes().add(theCommonPackage.getNameProvider());\n\t\tprimaryKeyTableConstraintEClass.getESuperTypes().add(this.getTableConstraint());\n\t\tuniqueTableConstraintEClass.getESuperTypes().add(this.getTableConstraint());\n\t\tcheckTableConstraintEClass.getESuperTypes().add(this.getTableConstraint());\n\t\tforeignKeyTableConstraintEClass.getESuperTypes().add(this.getTableConstraint());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(tableEClass, Table.class, \"Table\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getTable_Database(), theModelPackage.getDatabase(), theModelPackage.getDatabase_Tables(), \"database\", null, 1, 1, Table.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTable_Columns(), theColumnPackage.getColumn(), theColumnPackage.getColumn_Table(), \"columns\", null, 0, -1, Table.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTable_Constraints(), this.getTableConstraint(), this.getTableConstraint_Table(), \"constraints\", null, 0, -1, Table.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(tableConstraintEClass, TableConstraint.class, \"TableConstraint\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getTableConstraint_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, TableConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTableConstraint_Table(), this.getTable(), this.getTable_Constraints(), \"table\", null, 1, 1, TableConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(primaryKeyTableConstraintEClass, PrimaryKeyTableConstraint.class, \"PrimaryKeyTableConstraint\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPrimaryKeyTableConstraint_Columns(), theColumnPackage.getIndexedColumn(), null, \"columns\", null, 1, -1, PrimaryKeyTableConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(uniqueTableConstraintEClass, UniqueTableConstraint.class, \"UniqueTableConstraint\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getUniqueTableConstraint_Columns(), theColumnPackage.getIndexedColumn(), null, \"columns\", null, 1, -1, UniqueTableConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(checkTableConstraintEClass, CheckTableConstraint.class, \"CheckTableConstraint\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getCheckTableConstraint_Expression(), theExpressionPackage.getExpression(), null, \"expression\", null, 1, 1, CheckTableConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(foreignKeyTableConstraintEClass, ForeignKeyTableConstraint.class, \"ForeignKeyTableConstraint\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getForeignKeyTableConstraint_Columns(), theColumnPackage.getColumn(), null, \"columns\", null, 1, -1, ForeignKeyTableConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getForeignKeyTableConstraint_ForeignTable(), this.getTable(), null, \"foreignTable\", null, 1, 1, ForeignKeyTableConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getForeignKeyTableConstraint_ForeignColumns(), theColumnPackage.getColumn(), null, \"foreignColumns\", null, 1, -1, ForeignKeyTableConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t}", "public void initializePackageContents() {\r\n\t\tif (isInitialized) return;\r\n\t\tisInitialized = true;\r\n\r\n\t\t// Initialize package\r\n\t\tsetName(eNAME);\r\n\t\tsetNsPrefix(eNS_PREFIX);\r\n\t\tsetNsURI(eNS_URI);\r\n\r\n\t\t// Obtain other dependent packages\r\n\t\tCorePackage theCorePackage = (CorePackage)EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI);\r\n\t\tInstancePackage theInstancePackage = (InstancePackage)EPackage.Registry.INSTANCE.getEPackage(InstancePackage.eNS_URI);\r\n\t\tValuetypePackage theValuetypePackage = (ValuetypePackage)EPackage.Registry.INSTANCE.getEPackage(ValuetypePackage.eNS_URI);\r\n\t\tRealtimestatechartPackage theRealtimestatechartPackage = (RealtimestatechartPackage)EPackage.Registry.INSTANCE.getEPackage(RealtimestatechartPackage.eNS_URI);\r\n\r\n\t\t// Create type parameters\r\n\r\n\t\t// Set bounds for type parameters\r\n\r\n\t\t// Add supertypes to classes\r\n\t\trunnableEClass.getESuperTypes().add(theCorePackage.getNamedElement());\r\n\t\tlabelEClass.getESuperTypes().add(theCorePackage.getNamedElement());\r\n\t\tlabelAccessEClass.getESuperTypes().add(theCorePackage.getNamedElement());\r\n\r\n\t\t// Initialize classes, features, and operations; add parameters\r\n\t\tinitEClass(runnableEClass, org.muml.pim.runnable.Runnable.class, \"Runnable\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getRunnable_ComponentInstance(), theInstancePackage.getComponentInstance(), theInstancePackage.getComponentInstance_Runnables(), \"componentInstance\", null, 1, 1, org.muml.pim.runnable.Runnable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getRunnable_PortInstance(), theInstancePackage.getPortInstance(), theInstancePackage.getPortInstance_Runnable(), \"portInstance\", null, 0, -1, org.muml.pim.runnable.Runnable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getRunnable_Period(), theValuetypePackage.getTimeValue(), null, \"period\", null, 1, 1, org.muml.pim.runnable.Runnable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getRunnable_LabelAccesses(), this.getLabelAccess(), this.getLabelAccess_AccessingRunnable(), \"labelAccesses\", null, 0, -1, org.muml.pim.runnable.Runnable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getRunnable_Deadline(), theValuetypePackage.getTimeValue(), null, \"deadline\", null, 0, 1, org.muml.pim.runnable.Runnable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(labelEClass, Label.class, \"Label\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getLabel_ComponentInstance(), theInstancePackage.getComponentInstance(), theInstancePackage.getComponentInstance_Labels(), \"componentInstance\", null, 1, 1, Label.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getLabel_ComponentStatechart(), theRealtimestatechartPackage.getRealtimeStatechart(), null, \"componentStatechart\", null, 0, 1, Label.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getLabel_IsConstant(), ecorePackage.getEBoolean(), \"isConstant\", \"false\", 1, 1, Label.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(labelAccessEClass, LabelAccess.class, \"LabelAccess\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getLabelAccess_AccessKind(), this.getLabelAccessKind(), \"accessKind\", null, 1, 1, LabelAccess.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getLabelAccess_AccessLabel(), this.getLabel(), null, \"accessLabel\", null, 1, 1, LabelAccess.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getLabelAccess_AccessingRunnable(), this.getRunnable(), this.getRunnable_LabelAccesses(), \"accessingRunnable\", null, 1, 1, LabelAccess.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\t// Initialize enums and add enum literals\r\n\t\tinitEEnum(labelAccessKindEEnum, LabelAccessKind.class, \"LabelAccessKind\");\r\n\t\taddEEnumLiteral(labelAccessKindEEnum, LabelAccessKind.READACCESS);\r\n\t\taddEEnumLiteral(labelAccessKindEEnum, LabelAccessKind.WRITEACCESS);\r\n\t}", "public void initializePackageContents()\n {\n if (isInitialized) return;\n isInitialized = true;\n\n // Initialize package\n setName(eNAME);\n setNsPrefix(eNS_PREFIX);\n setNsURI(eNS_URI);\n\n // Create type parameters\n\n // Set bounds for type parameters\n\n // Add supertypes to classes\n intentEClass.getESuperTypes().add(this.getAgent());\n entityEClass.getESuperTypes().add(this.getAgent());\n\n // Initialize classes and features; add operations and parameters\n initEClass(modelEClass, Model.class, \"Model\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getModel_Agent(), this.getAgent(), null, \"agent\", null, 0, -1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(agentEClass, Agent.class, \"Agent\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getAgent_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Agent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(intentEClass, Intent.class, \"Intent\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getIntent_SuperType(), this.getIntent(), null, \"superType\", null, 0, 1, Intent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getIntent_IsFollowUp(), this.getIsFollowUp(), null, \"isFollowUp\", null, 0, 1, Intent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getIntent_Question(), this.getQuestion(), null, \"question\", null, 0, -1, Intent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getIntent_Training(), this.getTraining(), null, \"training\", null, 0, 1, Intent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(isFollowUpEClass, IsFollowUp.class, \"IsFollowUp\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getIsFollowUp_Intent(), this.getIntent(), null, \"intent\", null, 0, 1, IsFollowUp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(entityEClass, Entity.class, \"Entity\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getEntity_Example(), this.getEntityExample(), null, \"example\", null, 0, -1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(questionEClass, Question.class, \"Question\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getQuestion_QuestionEntity(), this.getQuestionEntity(), null, \"questionEntity\", null, 0, 1, Question.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getQuestion_Prompt(), ecorePackage.getEString(), \"prompt\", null, 0, 1, Question.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(questionEntityEClass, QuestionEntity.class, \"QuestionEntity\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getQuestionEntity_WithEntity(), this.getReference(), null, \"withEntity\", null, 0, 1, QuestionEntity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(trainingEClass, Training.class, \"Training\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getTraining_Trainingref(), this.getTrainingRef(), null, \"trainingref\", null, 0, -1, Training.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(trainingRefEClass, TrainingRef.class, \"TrainingRef\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getTrainingRef_Phrase(), ecorePackage.getEString(), \"phrase\", null, 0, 1, TrainingRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getTrainingRef_Declaration(), this.getDeclaration(), null, \"declaration\", null, 0, 1, TrainingRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(declarationEClass, Declaration.class, \"Declaration\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getDeclaration_Trainingstring(), ecorePackage.getEString(), \"trainingstring\", null, 0, 1, Declaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getDeclaration_Reference(), this.getReference(), null, \"reference\", null, 0, 1, Declaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(entityExampleEClass, EntityExample.class, \"EntityExample\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getEntityExample_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, EntityExample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(sysvariableEClass, Sysvariable.class, \"Sysvariable\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getSysvariable_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, Sysvariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(referenceEClass, Reference.class, \"Reference\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getReference_Entity(), this.getEntity(), null, \"entity\", null, 0, 1, Reference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getReference_Sysvar(), this.getSysvariable(), null, \"sysvar\", null, 0, 1, Reference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n // Create resource\n createResource(eNS_URI);\n }", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(metadataEClass, Metadata.class, \"Metadata\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMetadata_Gamename(), ecorePackage.getEString(), \"Gamename\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_Shortname(), ecorePackage.getEString(), \"Shortname\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_Timing(), ecorePackage.getEString(), \"Timing\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_Adressing(), ecorePackage.getEString(), \"Adressing\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_CartridgeType(), ecorePackage.getEString(), \"CartridgeType\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_RomSize(), ecorePackage.getEString(), \"RomSize\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_RamSize(), ecorePackage.getEString(), \"RamSize\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_Licensee(), ecorePackage.getEString(), \"Licensee\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_Country(), ecorePackage.getEString(), \"Country\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_Videoformat(), ecorePackage.getEString(), \"Videoformat\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_Version(), ecorePackage.getEInt(), \"Version\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_IdeVersion(), ecorePackage.getEString(), \"IdeVersion\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\torg.abchip.mimo.entity.EntityPackage theEntityPackage_1 = (org.abchip.mimo.entity.EntityPackage)EPackage.Registry.INSTANCE.getEPackage(org.abchip.mimo.entity.EntityPackage.eNS_URI);\n\t\tPartyPackage thePartyPackage_1 = (PartyPackage)EPackage.Registry.INSTANCE.getEPackage(PartyPackage.eNS_URI);\n\t\tStatusPackage theStatusPackage = (StatusPackage)EPackage.Registry.INSTANCE.getEPackage(StatusPackage.eNS_URI);\n\t\tContentPackage theContentPackage = (ContentPackage)EPackage.Registry.INSTANCE.getEPackage(ContentPackage.eNS_URI);\n\t\tPositionPackage thePositionPackage = (PositionPackage)EPackage.Registry.INSTANCE.getEPackage(PositionPackage.eNS_URI);\n\t\tPaymentPackage thePaymentPackage = (PaymentPackage)EPackage.Registry.INSTANCE.getEPackage(PaymentPackage.eNS_URI);\n\t\tTrainingsPackage theTrainingsPackage = (TrainingsPackage)EPackage.Registry.INSTANCE.getEPackage(TrainingsPackage.eNS_URI);\n\t\tWorkeffortPackage theWorkeffortPackage = (WorkeffortPackage)EPackage.Registry.INSTANCE.getEPackage(WorkeffortPackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tEGenericType g1 = createEGenericType(theEntityPackage_1.getEntityTyped());\n\t\tEGenericType g2 = createEGenericType(this.getPartyQualType());\n\t\tg1.getETypeArguments().add(g2);\n\t\tpartyQualEClass.getEGenericSuperTypes().add(g1);\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityInfo());\n\t\tpartyQualEClass.getEGenericSuperTypes().add(g1);\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityType());\n\t\tg2 = createEGenericType(this.getPartyQual());\n\t\tg1.getETypeArguments().add(g2);\n\t\tpartyQualTypeEClass.getEGenericSuperTypes().add(g1);\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityInfo());\n\t\tpartyQualTypeEClass.getEGenericSuperTypes().add(g1);\n\t\tpartyResumeEClass.getESuperTypes().add(theEntityPackage_1.getEntityIdentifiable());\n\t\tpartyResumeEClass.getESuperTypes().add(theEntityPackage_1.getEntityInfo());\n\t\tpartySkillEClass.getESuperTypes().add(theEntityPackage_1.getEntityIdentifiable());\n\t\tpartySkillEClass.getESuperTypes().add(theEntityPackage_1.getEntityInfo());\n\t\tperfRatingTypeEClass.getESuperTypes().add(theEntityPackage_1.getEntityIdentifiable());\n\t\tperfRatingTypeEClass.getESuperTypes().add(theEntityPackage_1.getEntityInfo());\n\t\tperfReviewEClass.getESuperTypes().add(theEntityPackage_1.getEntityIdentifiable());\n\t\tperfReviewEClass.getESuperTypes().add(theEntityPackage_1.getEntityInfo());\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityTyped());\n\t\tg2 = createEGenericType(this.getPerfReviewItemType());\n\t\tg1.getETypeArguments().add(g2);\n\t\tperfReviewItemEClass.getEGenericSuperTypes().add(g1);\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityInfo());\n\t\tperfReviewItemEClass.getEGenericSuperTypes().add(g1);\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityType());\n\t\tg2 = createEGenericType(this.getPerfReviewItem());\n\t\tg1.getETypeArguments().add(g2);\n\t\tperfReviewItemTypeEClass.getEGenericSuperTypes().add(g1);\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityInfo());\n\t\tperfReviewItemTypeEClass.getEGenericSuperTypes().add(g1);\n\t\tperformanceNoteEClass.getESuperTypes().add(theEntityPackage_1.getEntityIdentifiable());\n\t\tperformanceNoteEClass.getESuperTypes().add(theEntityPackage_1.getEntityInfo());\n\t\tpersonTrainingEClass.getESuperTypes().add(theEntityPackage_1.getEntityIdentifiable());\n\t\tpersonTrainingEClass.getESuperTypes().add(theEntityPackage_1.getEntityInfo());\n\t\tresponsibilityTypeEClass.getESuperTypes().add(theEntityPackage_1.getEntityIdentifiable());\n\t\tresponsibilityTypeEClass.getESuperTypes().add(theEntityPackage_1.getEntityInfo());\n\t\tskillTypeEClass.getESuperTypes().add(theEntityPackage_1.getEntityIdentifiable());\n\t\tskillTypeEClass.getESuperTypes().add(theEntityPackage_1.getEntityInfo());\n\t\ttrainingClassTypeEClass.getESuperTypes().add(theEntityPackage_1.getEntityIdentifiable());\n\t\ttrainingClassTypeEClass.getESuperTypes().add(theEntityPackage_1.getEntityInfo());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(partyQualEClass, PartyQual.class, \"PartyQual\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPartyQual_Party(), thePartyPackage_1.getParty(), null, \"party\", null, 1, 1, PartyQual.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPartyQual_PartyQualType(), this.getPartyQualType(), null, \"partyQualType\", null, 1, 1, PartyQual.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPartyQual_FromDate(), ecorePackage.getEDate(), \"fromDate\", null, 1, 1, PartyQual.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPartyQual_QualificationDesc(), ecorePackage.getEString(), \"qualificationDesc\", null, 0, 1, PartyQual.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPartyQual_Status(), theStatusPackage.getStatusItem(), null, \"status\", null, 0, 1, PartyQual.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPartyQual_ThruDate(), ecorePackage.getEDate(), \"thruDate\", null, 0, 1, PartyQual.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPartyQual_Title(), ecorePackage.getEString(), \"title\", null, 0, 1, PartyQual.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPartyQual_VerifStatus(), theStatusPackage.getStatusItem(), null, \"verifStatus\", null, 0, 1, PartyQual.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(partyQualTypeEClass, PartyQualType.class, \"PartyQualType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getPartyQualType_PartyQualTypeId(), ecorePackage.getEString(), \"partyQualTypeId\", null, 1, 1, PartyQualType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPartyQualType_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, PartyQualType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPartyQualType_HasTable(), ecorePackage.getEBooleanObject(), \"hasTable\", null, 0, 1, PartyQualType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPartyQualType_ParentType(), this.getPartyQualType(), null, \"parentType\", null, 0, 1, PartyQualType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(partyResumeEClass, PartyResume.class, \"PartyResume\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getPartyResume_ResumeId(), ecorePackage.getEString(), \"resumeId\", null, 1, 1, PartyResume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPartyResume_Content(), theContentPackage.getContent(), null, \"content\", null, 0, 1, PartyResume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPartyResume_Party(), thePartyPackage_1.getParty(), null, \"party\", null, 0, 1, PartyResume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPartyResume_ResumeDate(), ecorePackage.getEDate(), \"resumeDate\", null, 0, 1, PartyResume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPartyResume_ResumeText(), ecorePackage.getEString(), \"resumeText\", null, 0, 1, PartyResume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(partySkillEClass, PartySkill.class, \"PartySkill\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPartySkill_Party(), thePartyPackage_1.getParty(), null, \"party\", null, 1, 1, PartySkill.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPartySkill_SkillType(), this.getSkillType(), null, \"skillType\", null, 1, 1, PartySkill.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPartySkill_Rating(), ecorePackage.getELong(), \"rating\", null, 0, 1, PartySkill.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPartySkill_SkillLevel(), ecorePackage.getELong(), \"skillLevel\", null, 0, 1, PartySkill.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPartySkill_StartedUsingDate(), ecorePackage.getEDate(), \"startedUsingDate\", null, 0, 1, PartySkill.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPartySkill_YearsExperience(), ecorePackage.getELong(), \"yearsExperience\", null, 0, 1, PartySkill.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(perfRatingTypeEClass, PerfRatingType.class, \"PerfRatingType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getPerfRatingType_PerfRatingTypeId(), ecorePackage.getEString(), \"perfRatingTypeId\", null, 1, 1, PerfRatingType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPerfRatingType_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, PerfRatingType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPerfRatingType_HasTable(), ecorePackage.getEBooleanObject(), \"hasTable\", null, 0, 1, PerfRatingType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPerfRatingType_ParentType(), this.getPerfRatingType(), null, \"parentType\", null, 0, 1, PerfRatingType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(perfReviewEClass, PerfReview.class, \"PerfReview\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPerfReview_EmployeeParty(), thePartyPackage_1.getParty(), null, \"employeeParty\", null, 1, 1, PerfReview.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPerfReview_EmployeeRoleTypeId(), ecorePackage.getEString(), \"employeeRoleTypeId\", null, 1, 1, PerfReview.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPerfReview_PerfReviewId(), ecorePackage.getEString(), \"perfReviewId\", null, 1, 1, PerfReview.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPerfReview_Comments(), ecorePackage.getEString(), \"comments\", null, 0, 1, PerfReview.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPerfReview_EmplPosition(), thePositionPackage.getEmplPosition(), null, \"emplPosition\", null, 0, 1, PerfReview.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPerfReview_FromDate(), ecorePackage.getEDate(), \"fromDate\", null, 0, 1, PerfReview.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPerfReview_ManagerParty(), thePartyPackage_1.getParty(), null, \"managerParty\", null, 0, 1, PerfReview.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPerfReview_ManagerRoleTypeId(), ecorePackage.getEString(), \"managerRoleTypeId\", null, 0, 1, PerfReview.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPerfReview_Payment(), thePaymentPackage.getPayment(), null, \"payment\", null, 0, 1, PerfReview.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPerfReview_ThruDate(), ecorePackage.getEDate(), \"thruDate\", null, 0, 1, PerfReview.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(perfReviewItemEClass, PerfReviewItem.class, \"PerfReviewItem\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPerfReviewItem_EmployeeParty(), thePartyPackage_1.getParty(), null, \"employeeParty\", null, 1, 1, PerfReviewItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPerfReviewItem_EmployeeRoleTypeId(), ecorePackage.getEString(), \"employeeRoleTypeId\", null, 1, 1, PerfReviewItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPerfReviewItem_PerfReviewId(), ecorePackage.getEString(), \"perfReviewId\", null, 1, 1, PerfReviewItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPerfReviewItem_PerfReviewItemSeqId(), ecorePackage.getEString(), \"perfReviewItemSeqId\", null, 1, 1, PerfReviewItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPerfReviewItem_Comments(), ecorePackage.getEString(), \"comments\", null, 0, 1, PerfReviewItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPerfReviewItem_PerfRatingType(), this.getPerfRatingType(), null, \"perfRatingType\", null, 0, 1, PerfReviewItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPerfReviewItem_PerfReviewItemType(), this.getPerfReviewItemType(), null, \"perfReviewItemType\", null, 0, 1, PerfReviewItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(perfReviewItemTypeEClass, PerfReviewItemType.class, \"PerfReviewItemType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getPerfReviewItemType_PerfReviewItemTypeId(), ecorePackage.getEString(), \"perfReviewItemTypeId\", null, 1, 1, PerfReviewItemType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPerfReviewItemType_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, PerfReviewItemType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPerfReviewItemType_HasTable(), ecorePackage.getEBooleanObject(), \"hasTable\", null, 0, 1, PerfReviewItemType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPerfReviewItemType_ParentType(), this.getPerfReviewItemType(), null, \"parentType\", null, 0, 1, PerfReviewItemType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(performanceNoteEClass, PerformanceNote.class, \"PerformanceNote\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPerformanceNote_Party(), thePartyPackage_1.getParty(), null, \"party\", null, 1, 1, PerformanceNote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPerformanceNote_FromDate(), ecorePackage.getEDate(), \"fromDate\", null, 1, 1, PerformanceNote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPerformanceNote_RoleTypeId(), ecorePackage.getEString(), \"roleTypeId\", null, 1, 1, PerformanceNote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPerformanceNote_Comments(), ecorePackage.getEString(), \"comments\", null, 0, 1, PerformanceNote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPerformanceNote_CommunicationDate(), ecorePackage.getEDate(), \"communicationDate\", null, 0, 1, PerformanceNote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPerformanceNote_ThruDate(), ecorePackage.getEDate(), \"thruDate\", null, 0, 1, PerformanceNote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(personTrainingEClass, PersonTraining.class, \"PersonTraining\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPersonTraining_Party(), thePartyPackage_1.getPerson(), null, \"party\", null, 1, 1, PersonTraining.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPersonTraining_TrainingClassType(), this.getTrainingClassType(), null, \"trainingClassType\", null, 1, 1, PersonTraining.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPersonTraining_FromDate(), ecorePackage.getEDate(), \"fromDate\", null, 1, 1, PersonTraining.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPersonTraining_ApprovalStatus(), ecorePackage.getEString(), \"approvalStatus\", null, 0, 1, PersonTraining.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPersonTraining_Approver(), thePartyPackage_1.getPerson(), null, \"approver\", null, 0, 1, PersonTraining.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPersonTraining_Reason(), ecorePackage.getEString(), \"reason\", null, 0, 1, PersonTraining.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPersonTraining_ThruDate(), ecorePackage.getEDate(), \"thruDate\", null, 0, 1, PersonTraining.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPersonTraining_TrainingRequest(), theTrainingsPackage.getTrainingRequest(), null, \"trainingRequest\", null, 0, 1, PersonTraining.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPersonTraining_WorkEffort(), theWorkeffortPackage.getWorkEffort(), null, \"workEffort\", null, 0, 1, PersonTraining.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(responsibilityTypeEClass, ResponsibilityType.class, \"ResponsibilityType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getResponsibilityType_ResponsibilityTypeId(), ecorePackage.getEString(), \"responsibilityTypeId\", null, 1, 1, ResponsibilityType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getResponsibilityType_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, ResponsibilityType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getResponsibilityType_HasTable(), ecorePackage.getEBooleanObject(), \"hasTable\", null, 0, 1, ResponsibilityType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getResponsibilityType_ParentType(), this.getResponsibilityType(), null, \"parentType\", null, 0, 1, ResponsibilityType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(skillTypeEClass, SkillType.class, \"SkillType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getSkillType_SkillTypeId(), ecorePackage.getEString(), \"skillTypeId\", null, 1, 1, SkillType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSkillType_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, SkillType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSkillType_HasTable(), ecorePackage.getEBooleanObject(), \"hasTable\", null, 0, 1, SkillType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSkillType_ParentType(), this.getSkillType(), null, \"parentType\", null, 0, 1, SkillType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(trainingClassTypeEClass, TrainingClassType.class, \"TrainingClassType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getTrainingClassType_TrainingClassTypeId(), ecorePackage.getEString(), \"trainingClassTypeId\", null, 1, 1, TrainingClassType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getTrainingClassType_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, TrainingClassType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getTrainingClassType_HasTable(), ecorePackage.getEBooleanObject(), \"hasTable\", null, 0, 1, TrainingClassType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTrainingClassType_ParentType(), this.getTrainingClassType(), null, \"parentType\", null, 0, 1, TrainingClassType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\n\t\t// Create annotations\n\t\t// mimo-ent-frame\n\t\tcreateMimoentframeAnnotations();\n\t\t// mimo-ent-slot\n\t\tcreateMimoentslotAnnotations();\n\t\t// mimo-ent-format\n\t\tcreateMimoentformatAnnotations();\n\t}", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tEntityPackage theEntityPackage = (EntityPackage)EPackage.Registry.INSTANCE.getEPackage(EntityPackage.eNS_URI);\n\t\tContextPackage theContextPackage = (ContextPackage)EPackage.Registry.INSTANCE.getEPackage(ContextPackage.eNS_URI);\n\t\tJavaPackage theJavaPackage = (JavaPackage)EPackage.Registry.INSTANCE.getEPackage(JavaPackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\taudioEClass.getESuperTypes().add(theEntityPackage.getEntityIdentifiable());\n\t\taudioRecorderEClass.getESuperTypes().add(theJavaPackage.getJavaCloseable());\n\t\taudioPlayerEClass.getESuperTypes().add(theJavaPackage.getJavaCloseable());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(audioEClass, Audio.class, \"Audio\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getAudio_Content(), ecorePackage.getEByteArray(), \"content\", null, 0, 1, Audio.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAudio_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, Audio.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAudio_Text(), ecorePackage.getEString(), \"text\", null, 1, 1, Audio.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(audioManagerEClass, AudioManager.class, \"AudioManager\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tEOperation op = addEOperation(audioManagerEClass, this.getAudioRecorder(), \"record\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, theContextPackage.getContext(), \"context\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\top = addEOperation(audioManagerEClass, this.getAudioPlayer(), \"play\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, theContextPackage.getContext(), \"context\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, this.getAudio(), \"audio\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEBoolean(), \"start\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEBoolean(), \"waitEnd\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\top = addEOperation(audioManagerEClass, this.getAudioPlayer(), \"play\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, theContextPackage.getContext(), \"context\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, this.getAudioStyle(), \"style\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEString(), \"text\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEBoolean(), \"start\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEBoolean(), \"waitEnd\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(audioRecorderEClass, AudioRecorder.class, \"AudioRecorder\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\taddEOperation(audioRecorderEClass, null, \"close\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(audioRecorderEClass, theJavaPackage.getJavaOutputStream(), \"getOutputStream\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(audioRecorderEClass, ecorePackage.getEBoolean(), \"isStopped\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(audioRecorderEClass, null, \"start\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(audioRecorderEClass, null, \"stop\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(audioPlayerEClass, AudioPlayer.class, \"AudioPlayer\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\taddEOperation(audioPlayerEClass, null, \"close\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(audioPlayerEClass, this.getAudio(), \"getAudio\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(audioPlayerEClass, ecorePackage.getEBoolean(), \"isStopped\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(audioPlayerEClass, null, \"start\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(audioPlayerEClass, null, \"stop\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\t// Initialize enums and add enum literals\n\t\tinitEEnum(audioStyleEEnum, AudioStyle.class, \"AudioStyle\");\n\t\taddEEnumLiteral(audioStyleEEnum, AudioStyle.A);\n\t\taddEEnumLiteral(audioStyleEEnum, AudioStyle.B);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "public void initializePackageContents()\n\t{\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Initialize data types\n\t\tinitEDataType(featureNotFoundExceptionEDataType, FeatureNotFoundException.class, \"FeatureNotFoundException\", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);\n\t}", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tUMLPackage theUMLPackage = (UMLPackage)EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI);\n\t\tTypesPackage theTypesPackage = (TypesPackage)EPackage.Registry.INSTANCE.getEPackage(TypesPackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(textualRepresentationEClass, TextualRepresentation.class, \"TextualRepresentation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getTextualRepresentation_Base_Comment(), theUMLPackage.getComment(), null, \"base_Comment\", null, 1, 1, TextualRepresentation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getTextualRepresentation_Language(), theTypesPackage.getString(), \"language\", null, 1, 1, TextualRepresentation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "public void initializePackageContents() {\r\n\t\tif (isInitialized)\r\n\t\t\treturn;\r\n\t\tisInitialized = true;\r\n\r\n\t\t// Initialize package\r\n\t\tsetName(eNAME);\r\n\t\tsetNsPrefix(eNS_PREFIX);\r\n\t\tsetNsURI(eNS_URI);\r\n\r\n\t\t// Obtain other dependent packages\r\n\t\torg.unicase.model.ModelPackage theModelPackage_1 = (org.unicase.model.ModelPackage) EPackage.Registry.INSTANCE\r\n\t\t\t\t.getEPackage(org.unicase.model.ModelPackage.eNS_URI);\r\n\t\tTaskPackage theTaskPackage = (TaskPackage) EPackage.Registry.INSTANCE\r\n\t\t\t\t.getEPackage(TaskPackage.eNS_URI);\r\n\t\torg.eclipse.emf.emfstore.internal.common.model.ModelPackage theModelPackage_2 = (org.eclipse.emf.emfstore.internal.common.model.ModelPackage) EPackage.Registry.INSTANCE\r\n\t\t\t\t.getEPackage(org.eclipse.emf.emfstore.internal.common.model.ModelPackage.eNS_URI);\r\n\t\tOrganizationPackage theOrganizationPackage = (OrganizationPackage) EPackage.Registry.INSTANCE\r\n\t\t\t\t.getEPackage(OrganizationPackage.eNS_URI);\r\n\t\tAttachmentPackage theAttachmentPackage = (AttachmentPackage) EPackage.Registry.INSTANCE\r\n\t\t\t\t.getEPackage(AttachmentPackage.eNS_URI);\r\n\r\n\t\t// Create type parameters\r\n\r\n\t\t// Set bounds for type parameters\r\n\r\n\t\t// Add supertypes to classes\r\n\t\tissueEClass.getESuperTypes().add(theModelPackage_1.getAnnotation());\r\n\t\tissueEClass.getESuperTypes().add(theTaskPackage.getCheckable());\r\n\t\tissueEClass.getESuperTypes().add(theTaskPackage.getWorkItem());\r\n\t\tproposalEClass.getESuperTypes().add(\r\n\t\t\t\ttheModelPackage_1.getUnicaseModelElement());\r\n\t\tproposalEClass.getESuperTypes().add(\r\n\t\t\t\ttheModelPackage_2.getNonDomainElement());\r\n\t\tsolutionEClass.getESuperTypes().add(\r\n\t\t\t\ttheModelPackage_1.getUnicaseModelElement());\r\n\t\tsolutionEClass.getESuperTypes().add(\r\n\t\t\t\ttheModelPackage_2.getNonDomainElement());\r\n\t\tcriterionEClass.getESuperTypes().add(\r\n\t\t\t\ttheModelPackage_1.getUnicaseModelElement());\r\n\t\tassessmentEClass.getESuperTypes().add(\r\n\t\t\t\ttheModelPackage_1.getUnicaseModelElement());\r\n\t\tassessmentEClass.getESuperTypes().add(\r\n\t\t\t\ttheModelPackage_2.getNonDomainElement());\r\n\t\tcommentEClass.getESuperTypes().add(\r\n\t\t\t\ttheModelPackage_1.getUnicaseModelElement());\r\n\t\tcommentEClass.getESuperTypes().add(\r\n\t\t\t\ttheModelPackage_2.getNonDomainElement());\r\n\r\n\t\t// Initialize classes and features; add operations and parameters\r\n\t\tinitEClass(issueEClass, Issue.class, \"Issue\", !IS_ABSTRACT,\r\n\t\t\t\t!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getIssue_Proposals(), this.getProposal(),\r\n\t\t\t\tthis.getProposal_Issue(), \"proposals\", null, 0, -1,\r\n\t\t\t\tIssue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\r\n\t\t\t\tIS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getIssue_Solution(), this.getSolution(),\r\n\t\t\t\tthis.getSolution_Issue(), \"solution\", null, 0, 1, Issue.class,\r\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,\r\n\t\t\t\tIS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\t\tinitEReference(getIssue_Criteria(), this.getCriterion(), null,\r\n\t\t\t\t\"criteria\", null, 0, -1, Issue.class, !IS_TRANSIENT,\r\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,\r\n\t\t\t\t!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getIssue_Activity(), theTaskPackage.getActivityType(),\r\n\t\t\t\t\"activity\", null, 0, 1, Issue.class, !IS_TRANSIENT,\r\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getIssue_Assessments(), this.getAssessment(), null,\r\n\t\t\t\t\"assessments\", null, 0, -1, Issue.class, IS_TRANSIENT,\r\n\t\t\t\tIS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,\r\n\t\t\t\t!IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(proposalEClass, Proposal.class, \"Proposal\", !IS_ABSTRACT,\r\n\t\t\t\t!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getProposal_Assessments(), this.getAssessment(),\r\n\t\t\t\tthis.getAssessment_Proposal(), \"assessments\", null, 0, -1,\r\n\t\t\t\tProposal.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\r\n\t\t\t\tIS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getProposal_Issue(), this.getIssue(),\r\n\t\t\t\tthis.getIssue_Proposals(), \"issue\", null, 0, 1, Proposal.class,\r\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE,\r\n\t\t\t\tIS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\r\n\t\tinitEClass(solutionEClass, Solution.class, \"Solution\", !IS_ABSTRACT,\r\n\t\t\t\t!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getSolution_UnderlyingProposals(), this.getProposal(),\r\n\t\t\t\tnull, \"underlyingProposals\", null, 0, -1, Solution.class,\r\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE,\r\n\t\t\t\tIS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\t\tinitEReference(getSolution_Issue(), this.getIssue(),\r\n\t\t\t\tthis.getIssue_Solution(), \"issue\", null, 0, 1, Solution.class,\r\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE,\r\n\t\t\t\tIS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\r\n\t\tinitEClass(criterionEClass, Criterion.class, \"Criterion\", !IS_ABSTRACT,\r\n\t\t\t\t!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getCriterion_Assessments(), this.getAssessment(),\r\n\t\t\t\tthis.getAssessment_Criterion(), \"assessments\", null, 0, -1,\r\n\t\t\t\tCriterion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\r\n\t\t\t\t!IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(assessmentEClass, Assessment.class, \"Assessment\",\r\n\t\t\t\t!IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getAssessment_Proposal(), this.getProposal(),\r\n\t\t\t\tthis.getProposal_Assessments(), \"proposal\", null, 0, 1,\r\n\t\t\t\tAssessment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\r\n\t\t\t\t!IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getAssessment_Criterion(), this.getCriterion(),\r\n\t\t\t\tthis.getCriterion_Assessments(), \"criterion\", null, 0, 1,\r\n\t\t\t\tAssessment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\r\n\t\t\t\t!IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getAssessment_Value(), ecorePackage.getEInt(), \"value\",\r\n\t\t\t\tnull, 0, 1, Assessment.class, !IS_TRANSIENT, !IS_VOLATILE,\r\n\t\t\t\tIS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\r\n\t\tinitEClass(commentEClass, Comment.class, \"Comment\", !IS_ABSTRACT,\r\n\t\t\t\t!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getComment_Sender(),\r\n\t\t\t\ttheOrganizationPackage.getOrgUnit(), null, \"sender\", null, 0,\r\n\t\t\t\t1, Comment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\r\n\t\t\t\t!IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getComment_Recipients(),\r\n\t\t\t\ttheOrganizationPackage.getOrgUnit(), null, \"recipients\", null,\r\n\t\t\t\t0, -1, Comment.class, !IS_TRANSIENT, !IS_VOLATILE,\r\n\t\t\t\tIS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,\r\n\t\t\t\t!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getComment_CommentedElement(),\r\n\t\t\t\ttheModelPackage_1.getUnicaseModelElement(),\r\n\t\t\t\ttheModelPackage_1.getUnicaseModelElement_Comments(),\r\n\t\t\t\t\"commentedElement\", null, 0, 1, Comment.class, !IS_TRANSIENT,\r\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,\r\n\t\t\t\t!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(audioCommentEClass, AudioComment.class, \"AudioComment\",\r\n\t\t\t\t!IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getAudioComment_AudioFile(),\r\n\t\t\t\ttheAttachmentPackage.getFileAttachment(), null, \"audioFile\",\r\n\t\t\t\tnull, 0, 1, AudioComment.class, !IS_TRANSIENT, !IS_VOLATILE,\r\n\t\t\t\tIS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES,\r\n\t\t\t\t!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\t// Create annotations\r\n\t\t// org.eclipse.emf.ecp.editor\r\n\t\tcreateOrgAnnotations();\r\n\t}", "public void initializePackageContents() {\r\n\t\tif (isInitialized)\r\n\t\t\treturn;\r\n\t\tisInitialized = true;\r\n\r\n\t\t// Initialize package\r\n\t\tsetName(eNAME);\r\n\t\tsetNsPrefix(eNS_PREFIX);\r\n\t\tsetNsURI(eNS_URI);\r\n\r\n\t\t// Obtain other dependent packages\r\n\t\torg.palladiosimulator.pcm.core.composition.CompositionPackage theCompositionPackage_1 = (org.palladiosimulator.pcm.core.composition.CompositionPackage) EPackage.Registry.INSTANCE\r\n\t\t\t\t.getEPackage(org.palladiosimulator.pcm.core.composition.CompositionPackage.eNS_URI);\r\n\t\torg.palladiosimulator.pcm.repository.RepositoryPackage theRepositoryPackage_1 = (org.palladiosimulator.pcm.repository.RepositoryPackage) EPackage.Registry.INSTANCE\r\n\t\t\t\t.getEPackage(org.palladiosimulator.pcm.repository.RepositoryPackage.eNS_URI);\r\n\t\tCompositionPackage theCompositionPackage = (CompositionPackage) EPackage.Registry.INSTANCE\r\n\t\t\t\t.getEPackage(CompositionPackage.eNS_URI);\r\n\t\tPartitioningPackage thePartitioningPackage = (PartitioningPackage) EPackage.Registry.INSTANCE\r\n\t\t\t\t.getEPackage(PartitioningPackage.eNS_URI);\r\n\t\tDatatypesPackage theDatatypesPackage = (DatatypesPackage) EPackage.Registry.INSTANCE\r\n\t\t\t\t.getEPackage(DatatypesPackage.eNS_URI);\r\n\r\n\t\t// Create type parameters\r\n\r\n\t\t// Set bounds for type parameters\r\n\r\n\t\t// Add supertypes to classes\r\n\t\tdataChannelEClass.getESuperTypes().add(theCompositionPackage_1.getEventChannel());\r\n\r\n\t\t// Initialize classes and features; add operations and parameters\r\n\t\tinitEClass(dataChannelEClass, DataChannel.class, \"DataChannel\", !IS_ABSTRACT, !IS_INTERFACE,\r\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getDataChannel_Capacity(), ecorePackage.getEInt(), \"capacity\", \"-1\", 1, 1, DataChannel.class,\r\n\t\t\t\tIS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getDataChannel_SourceEventGroup(), theRepositoryPackage_1.getEventGroup(), null,\r\n\t\t\t\t\"sourceEventGroup\", null, 1, 1, DataChannel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\r\n\t\t\t\t!IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getDataChannel_SinkEventGroup(), theRepositoryPackage_1.getEventGroup(), null, \"sinkEventGroup\",\r\n\t\t\t\tnull, 1, 1, DataChannel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE,\r\n\t\t\t\tIS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getDataChannel_DataChannelSourceConnector(),\r\n\t\t\t\ttheCompositionPackage.getDataChannelSourceConnector(),\r\n\t\t\t\ttheCompositionPackage.getDataChannelSourceConnector_DataChannel(), \"dataChannelSourceConnector\", null,\r\n\t\t\t\t0, -1, DataChannel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,\r\n\t\t\t\t!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\r\n\t\tinitEReference(getDataChannel_DataChannelSinkConnector(), theCompositionPackage.getDataChannelSinkConnector(),\r\n\t\t\t\ttheCompositionPackage.getDataChannelSinkConnector_DataChannel(), \"dataChannelSinkConnector\", null, 0,\r\n\t\t\t\t-1, DataChannel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,\r\n\t\t\t\t!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\r\n\t\tinitEReference(getDataChannel_Partitioning(), thePartitioningPackage.getPartitioning(), null, \"partitioning\",\r\n\t\t\t\tnull, 0, 1, DataChannel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,\r\n\t\t\t\t!IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getDataChannel_TimeGrouping(), thePartitioningPackage.getTimeGrouping(), null, \"timeGrouping\",\r\n\t\t\t\tnull, 0, 1, DataChannel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,\r\n\t\t\t\t!IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getDataChannel_Joins(), thePartitioningPackage.getJoining(), null, \"joins\", null, 0, -1,\r\n\t\t\t\tDataChannel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,\r\n\t\t\t\t!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getDataChannel_OutgoingDistribution(), theDatatypesPackage.getOutgoingDistribution(),\r\n\t\t\t\t\"outgoingDistribution\", null, 0, 1, DataChannel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\r\n\t\t\t\t!IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getDataChannel_Scheduling(), theDatatypesPackage.getScheduling(), \"scheduling\", null, 0, 1,\r\n\t\t\t\tDataChannel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getDataChannel_PutPolicy(), theDatatypesPackage.getPutPolicy(), \"putPolicy\", null, 0, 1,\r\n\t\t\t\tDataChannel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\r\n\t\t// Create resource\r\n\t\tcreateResource(eNS_URI);\r\n\t}", "public void initializePackageContents()\n {\n if (isInitialized) return;\n isInitialized = true;\n\n // Initialize package\n setName(eNAME);\n setNsPrefix(eNS_PREFIX);\n setNsURI(eNS_URI);\n\n // Create type parameters\n\n // Set bounds for type parameters\n\n // Add supertypes to classes\n openEClass.getESuperTypes().add(this.getINSTRUCTION());\n gotoEClass.getESuperTypes().add(this.getINSTRUCTION());\n clickEClass.getESuperTypes().add(this.getINSTRUCTION());\n fillEClass.getESuperTypes().add(this.getINSTRUCTION());\n checkEClass.getESuperTypes().add(this.getINSTRUCTION());\n uncheckEClass.getESuperTypes().add(this.getINSTRUCTION());\n selectEClass.getESuperTypes().add(this.getINSTRUCTION());\n readEClass.getESuperTypes().add(this.getINSTRUCTION());\n verifyEClass.getESuperTypes().add(this.getINSTRUCTION());\n verifY_CONTAINSEClass.getESuperTypes().add(this.getVERIFY());\n verifY_EQUALSEClass.getESuperTypes().add(this.getVERIFY());\n countEClass.getESuperTypes().add(this.getINSTRUCTION());\n playEClass.getESuperTypes().add(this.getINSTRUCTION());\n\n // Initialize classes and features; add operations and parameters\n initEClass(programmeEClass, org.xtext.project.browserautomationdsl.domainmodel.PROGRAMME.class, \"PROGRAMME\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getPROGRAMME_Procedures(), this.getPROCEDURE(), null, \"procedures\", null, 0, -1, org.xtext.project.browserautomationdsl.domainmodel.PROGRAMME.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(procedureEClass, org.xtext.project.browserautomationdsl.domainmodel.PROCEDURE.class, \"PROCEDURE\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getPROCEDURE_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.PROCEDURE.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getPROCEDURE_Param(), ecorePackage.getEString(), \"param\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.PROCEDURE.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getPROCEDURE_Params(), ecorePackage.getEString(), \"params\", null, 0, -1, org.xtext.project.browserautomationdsl.domainmodel.PROCEDURE.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getPROCEDURE_Inst(), this.getINSTRUCTION(), null, \"inst\", null, 0, -1, org.xtext.project.browserautomationdsl.domainmodel.PROCEDURE.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(instructionEClass, org.xtext.project.browserautomationdsl.domainmodel.INSTRUCTION.class, \"INSTRUCTION\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(openEClass, org.xtext.project.browserautomationdsl.domainmodel.OPEN.class, \"OPEN\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getOPEN_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.OPEN.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getOPEN_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.OPEN.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(gotoEClass, org.xtext.project.browserautomationdsl.domainmodel.GOTO.class, \"GOTO\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getGOTO_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.GOTO.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getGOTO_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.GOTO.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(clickEClass, org.xtext.project.browserautomationdsl.domainmodel.CLICK.class, \"CLICK\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getCLICK_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.CLICK.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getCLICK_Type(), ecorePackage.getEString(), \"type\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.CLICK.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getCLICK_Identifier(), this.getELEMENTIDENTIFIER(), null, \"identifier\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.CLICK.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(fillEClass, org.xtext.project.browserautomationdsl.domainmodel.FILL.class, \"FILL\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getFILL_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.FILL.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getFILL_FieldType(), ecorePackage.getEString(), \"fieldType\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.FILL.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getFILL_Identifier(), this.getELEMENTIDENTIFIER(), null, \"identifier\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.FILL.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getFILL_Var(), ecorePackage.getEString(), \"var\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.FILL.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getFILL_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.FILL.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(checkEClass, org.xtext.project.browserautomationdsl.domainmodel.CHECK.class, \"CHECK\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getCHECK_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.CHECK.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getCHECK_All(), ecorePackage.getEString(), \"all\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.CHECK.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getCHECK_Identifier(), this.getELEMENTIDENTIFIER(), null, \"identifier\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.CHECK.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(uncheckEClass, org.xtext.project.browserautomationdsl.domainmodel.UNCHECK.class, \"UNCHECK\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getUNCHECK_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.UNCHECK.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getUNCHECK_All(), ecorePackage.getEString(), \"all\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.UNCHECK.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getUNCHECK_Identifier(), this.getELEMENTIDENTIFIER(), null, \"identifier\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.UNCHECK.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(selectEClass, org.xtext.project.browserautomationdsl.domainmodel.SELECT.class, \"SELECT\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getSELECT_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.SELECT.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getSELECT_Elem(), ecorePackage.getEString(), \"elem\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.SELECT.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getSELECT_Identifier(), this.getELEMENTIDENTIFIER(), null, \"identifier\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.SELECT.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(readEClass, org.xtext.project.browserautomationdsl.domainmodel.READ.class, \"READ\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getREAD_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.READ.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getREAD_Identifier(), this.getELEMENTIDENTIFIER(), null, \"identifier\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.READ.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getREAD_SavePath(), this.getSAVEVAR(), null, \"savePath\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.READ.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(elementidentifierEClass, org.xtext.project.browserautomationdsl.domainmodel.ELEMENTIDENTIFIER.class, \"ELEMENTIDENTIFIER\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getELEMENTIDENTIFIER_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.ELEMENTIDENTIFIER.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getELEMENTIDENTIFIER_Type(), ecorePackage.getEString(), \"type\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.ELEMENTIDENTIFIER.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getELEMENTIDENTIFIER_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.ELEMENTIDENTIFIER.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getELEMENTIDENTIFIER_Info(), ecorePackage.getEString(), \"info\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.ELEMENTIDENTIFIER.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getELEMENTIDENTIFIER_Var(), ecorePackage.getEString(), \"var\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.ELEMENTIDENTIFIER.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(verifyEClass, org.xtext.project.browserautomationdsl.domainmodel.VERIFY.class, \"VERIFY\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getVERIFY_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.VERIFY.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(verifY_CONTAINSEClass, org.xtext.project.browserautomationdsl.domainmodel.VERIFY_CONTAINS.class, \"VERIFY_CONTAINS\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getVERIFY_CONTAINS_Type(), ecorePackage.getEString(), \"type\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.VERIFY_CONTAINS.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getVERIFY_CONTAINS_Identifier(), this.getELEMENTIDENTIFIER(), null, \"identifier\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.VERIFY_CONTAINS.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getVERIFY_CONTAINS_ContainedIdentifier(), this.getELEMENTIDENTIFIER(), null, \"containedIdentifier\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.VERIFY_CONTAINS.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getVERIFY_CONTAINS_Variable(), this.getREGISTERED_VALUE(), null, \"variable\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.VERIFY_CONTAINS.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(verifY_EQUALSEClass, org.xtext.project.browserautomationdsl.domainmodel.VERIFY_EQUALS.class, \"VERIFY_EQUALS\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getVERIFY_EQUALS_Operation(), this.getCOUNT(), null, \"operation\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.VERIFY_EQUALS.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getVERIFY_EQUALS_RegisteredValue(), this.getREGISTERED_VALUE(), null, \"registeredValue\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.VERIFY_EQUALS.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(registereD_VALUEEClass, org.xtext.project.browserautomationdsl.domainmodel.REGISTERED_VALUE.class, \"REGISTERED_VALUE\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getREGISTERED_VALUE_Var(), ecorePackage.getEString(), \"var\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.REGISTERED_VALUE.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(countEClass, org.xtext.project.browserautomationdsl.domainmodel.COUNT.class, \"COUNT\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getCOUNT_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.COUNT.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getCOUNT_Identifier(), this.getELEMENTIDENTIFIER(), null, \"identifier\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.COUNT.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getCOUNT_SaveVariable(), this.getSAVEVAR(), null, \"saveVariable\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.COUNT.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(savevarEClass, org.xtext.project.browserautomationdsl.domainmodel.SAVEVAR.class, \"SAVEVAR\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getSAVEVAR_Var(), ecorePackage.getEString(), \"var\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.SAVEVAR.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(playEClass, org.xtext.project.browserautomationdsl.domainmodel.PLAY.class, \"PLAY\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getPLAY_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.PLAY.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getPLAY_Preocedure(), ecorePackage.getEString(), \"preocedure\", null, 0, 1, org.xtext.project.browserautomationdsl.domainmodel.PLAY.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getPLAY_Params(), ecorePackage.getEString(), \"params\", null, 0, -1, org.xtext.project.browserautomationdsl.domainmodel.PLAY.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n // Create resource\n createResource(eNS_URI);\n }", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tCapellacorePackage theCapellacorePackage = (CapellacorePackage)EPackage.Registry.INSTANCE.getEPackage(CapellacorePackage.eNS_URI);\n\t\tFaPackage theFaPackage = (FaPackage)EPackage.Registry.INSTANCE.getEPackage(FaPackage.eNS_URI);\n\t\tRequirementPackage theRequirementPackage = (RequirementPackage)EPackage.Registry.INSTANCE.getEPackage(RequirementPackage.eNS_URI);\n\t\tCapellacommonPackage theCapellacommonPackage = (CapellacommonPackage)EPackage.Registry.INSTANCE.getEPackage(CapellacommonPackage.eNS_URI);\n\t\tInformationPackage theInformationPackage = (InformationPackage)EPackage.Registry.INSTANCE.getEPackage(InformationPackage.eNS_URI);\n\t\tCommunicationPackage theCommunicationPackage = (CommunicationPackage)EPackage.Registry.INSTANCE.getEPackage(CommunicationPackage.eNS_URI);\n\t\tModellingcorePackage theModellingcorePackage = (ModellingcorePackage)EPackage.Registry.INSTANCE.getEPackage(ModellingcorePackage.eNS_URI);\n\t\tEpbsPackage theEpbsPackage = (EpbsPackage)EPackage.Registry.INSTANCE.getEPackage(EpbsPackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tblockArchitecturePkgEClass.getESuperTypes().add(theCapellacorePackage.getModellingArchitecturePkg());\n\t\tblockArchitectureEClass.getESuperTypes().add(theFaPackage.getAbstractFunctionalArchitecture());\n\t\tblockEClass.getESuperTypes().add(theCapellacorePackage.getModellingBlock());\n\t\tblockEClass.getESuperTypes().add(theFaPackage.getAbstractFunctionalBlock());\n\t\tcomponentArchitectureEClass.getESuperTypes().add(this.getBlockArchitecture());\n\t\tcomponentEClass.getESuperTypes().add(this.getBlock());\n\t\tcomponentEClass.getESuperTypes().add(theInformationPackage.getPartitionableElement());\n\t\tcomponentEClass.getESuperTypes().add(this.getInterfaceAllocator());\n\t\tcomponentEClass.getESuperTypes().add(theCommunicationPackage.getCommunicationLinkExchanger());\n\t\tabstractActorEClass.getESuperTypes().add(this.getComponent());\n\t\tabstractActorEClass.getESuperTypes().add(theCapellacommonPackage.getCapabilityRealizationInvolvedElement());\n\t\tpartEClass.getESuperTypes().add(theInformationPackage.getPartition());\n\t\tpartEClass.getESuperTypes().add(theModellingcorePackage.getInformationsExchanger());\n\t\tpartEClass.getESuperTypes().add(this.getDeployableElement());\n\t\tpartEClass.getESuperTypes().add(this.getDeploymentTarget());\n\t\tpartEClass.getESuperTypes().add(this.getAbstractPathInvolvedElement());\n\t\tarchitectureAllocationEClass.getESuperTypes().add(theCapellacorePackage.getAllocation());\n\t\tcomponentAllocationEClass.getESuperTypes().add(theCapellacorePackage.getAllocation());\n\t\tsystemComponentEClass.getESuperTypes().add(this.getComponent());\n\t\tsystemComponentEClass.getESuperTypes().add(theCapellacommonPackage.getCapabilityRealizationInvolvedElement());\n\t\tinterfacePkgEClass.getESuperTypes().add(theCommunicationPackage.getMessageReferencePkg());\n\t\tinterfacePkgEClass.getESuperTypes().add(theCapellacorePackage.getAbstractDependenciesPkg());\n\t\tinterfacePkgEClass.getESuperTypes().add(theCapellacorePackage.getAbstractExchangeItemPkg());\n\t\tinterfaceEClass.getESuperTypes().add(theCapellacorePackage.getGeneralClass());\n\t\tinterfaceEClass.getESuperTypes().add(this.getInterfaceAllocator());\n\t\tinterfaceImplementationEClass.getESuperTypes().add(theCapellacorePackage.getRelationship());\n\t\tinterfaceUseEClass.getESuperTypes().add(theCapellacorePackage.getRelationship());\n\t\tprovidedInterfaceLinkEClass.getESuperTypes().add(theCapellacorePackage.getRelationship());\n\t\trequiredInterfaceLinkEClass.getESuperTypes().add(theCapellacorePackage.getRelationship());\n\t\tinterfaceAllocationEClass.getESuperTypes().add(theCapellacorePackage.getAllocation());\n\t\tinterfaceAllocatorEClass.getESuperTypes().add(theCapellacorePackage.getCapellaElement());\n\t\tactorCapabilityRealizationInvolvementEClass.getESuperTypes().add(theCapellacommonPackage.getCapabilityRealizationInvolvement());\n\t\tsystemComponentCapabilityRealizationInvolvementEClass.getESuperTypes().add(theCapellacommonPackage.getCapabilityRealizationInvolvement());\n\t\tcomponentContextEClass.getESuperTypes().add(this.getComponent());\n\t\texchangeItemAllocationEClass.getESuperTypes().add(theCapellacorePackage.getRelationship());\n\t\texchangeItemAllocationEClass.getESuperTypes().add(theInformationPackage.getAbstractEventOperation());\n\t\texchangeItemAllocationEClass.getESuperTypes().add(theModellingcorePackage.getFinalizableElement());\n\t\tdeployableElementEClass.getESuperTypes().add(theCapellacorePackage.getNamedElement());\n\t\tdeploymentTargetEClass.getESuperTypes().add(theCapellacorePackage.getNamedElement());\n\t\tabstractDeploymentLinkEClass.getESuperTypes().add(theCapellacorePackage.getRelationship());\n\t\tabstractPathInvolvedElementEClass.getESuperTypes().add(theCapellacorePackage.getInvolvedElement());\n\t\tabstractPhysicalArtifactEClass.getESuperTypes().add(theCapellacorePackage.getCapellaElement());\n\t\tabstractPhysicalLinkEndEClass.getESuperTypes().add(theCapellacorePackage.getCapellaElement());\n\t\tabstractPhysicalPathLinkEClass.getESuperTypes().add(theFaPackage.getComponentExchangeAllocator());\n\t\tphysicalLinkEClass.getESuperTypes().add(this.getAbstractPhysicalPathLink());\n\t\tphysicalLinkEClass.getESuperTypes().add(this.getAbstractPhysicalArtifact());\n\t\tphysicalLinkEClass.getESuperTypes().add(this.getAbstractPathInvolvedElement());\n\t\tphysicalLinkCategoryEClass.getESuperTypes().add(theCapellacorePackage.getNamedElement());\n\t\tphysicalLinkEndEClass.getESuperTypes().add(this.getAbstractPhysicalLinkEnd());\n\t\tphysicalLinkRealizationEClass.getESuperTypes().add(theCapellacorePackage.getAllocation());\n\t\tphysicalPathEClass.getESuperTypes().add(theCapellacorePackage.getNamedElement());\n\t\tphysicalPathEClass.getESuperTypes().add(theFaPackage.getComponentExchangeAllocator());\n\t\tphysicalPathEClass.getESuperTypes().add(this.getAbstractPathInvolvedElement());\n\t\tphysicalPathEClass.getESuperTypes().add(theCapellacorePackage.getInvolverElement());\n\t\tphysicalPathInvolvementEClass.getESuperTypes().add(theCapellacorePackage.getInvolvement());\n\t\tphysicalPathReferenceEClass.getESuperTypes().add(this.getPhysicalPathInvolvement());\n\t\tphysicalPathRealizationEClass.getESuperTypes().add(theCapellacorePackage.getAllocation());\n\t\tphysicalPortEClass.getESuperTypes().add(theInformationPackage.getPartition());\n\t\tphysicalPortEClass.getESuperTypes().add(theInformationPackage.getPort());\n\t\tphysicalPortEClass.getESuperTypes().add(this.getAbstractPhysicalArtifact());\n\t\tphysicalPortEClass.getESuperTypes().add(theModellingcorePackage.getInformationsExchanger());\n\t\tphysicalPortEClass.getESuperTypes().add(this.getAbstractPhysicalLinkEnd());\n\t\tphysicalPortRealizationEClass.getESuperTypes().add(theCapellacorePackage.getAllocation());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(blockArchitecturePkgEClass, BlockArchitecturePkg.class, \"BlockArchitecturePkg\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(blockArchitectureEClass, BlockArchitecture.class, \"BlockArchitecture\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getBlockArchitecture_OwnedRequirementPkgs(), theRequirementPackage.getRequirementsPkg(), null, \"ownedRequirementPkgs\", null, 0, -1, BlockArchitecture.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getBlockArchitecture_OwnedAbstractCapabilityPkg(), theCapellacommonPackage.getAbstractCapabilityPkg(), null, \"ownedAbstractCapabilityPkg\", null, 0, 1, BlockArchitecture.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getBlockArchitecture_OwnedInterfacePkg(), this.getInterfacePkg(), null, \"ownedInterfacePkg\", null, 0, 1, BlockArchitecture.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getBlockArchitecture_OwnedDataPkg(), theInformationPackage.getDataPkg(), null, \"ownedDataPkg\", null, 0, 1, BlockArchitecture.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getBlockArchitecture_ProvisionedArchitectureAllocations(), this.getArchitectureAllocation(), this.getArchitectureAllocation_AllocatingArchitecture(), \"provisionedArchitectureAllocations\", null, 0, -1, BlockArchitecture.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getBlockArchitecture_ProvisioningArchitectureAllocations(), this.getArchitectureAllocation(), this.getArchitectureAllocation_AllocatedArchitecture(), \"provisioningArchitectureAllocations\", null, 0, -1, BlockArchitecture.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getBlockArchitecture_AllocatedArchitectures(), this.getBlockArchitecture(), null, \"allocatedArchitectures\", null, 0, -1, BlockArchitecture.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getBlockArchitecture_AllocatingArchitectures(), this.getBlockArchitecture(), null, \"allocatingArchitectures\", null, 0, -1, BlockArchitecture.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(blockEClass, Block.class, \"Block\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getBlock_OwnedAbstractCapabilityPkg(), theCapellacommonPackage.getAbstractCapabilityPkg(), null, \"ownedAbstractCapabilityPkg\", null, 0, 1, Block.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getBlock_OwnedInterfacePkg(), this.getInterfacePkg(), null, \"ownedInterfacePkg\", null, 0, 1, Block.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getBlock_OwnedDataPkg(), theInformationPackage.getDataPkg(), null, \"ownedDataPkg\", null, 0, 1, Block.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getBlock_OwnedStateMachines(), theCapellacommonPackage.getStateMachine(), null, \"ownedStateMachines\", null, 0, -1, Block.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(componentArchitectureEClass, ComponentArchitecture.class, \"ComponentArchitecture\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(componentEClass, Component.class, \"Component\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getComponent_OwnedInterfaceUses(), this.getInterfaceUse(), null, \"ownedInterfaceUses\", null, 0, -1, Component.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponent_UsedInterfaceLinks(), this.getInterfaceUse(), this.getInterfaceUse_InterfaceUser(), \"usedInterfaceLinks\", null, 0, -1, Component.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponent_UsedInterfaces(), this.getInterface(), this.getInterface_UserComponents(), \"usedInterfaces\", null, 0, -1, Component.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponent_OwnedInterfaceImplementations(), this.getInterfaceImplementation(), null, \"ownedInterfaceImplementations\", null, 0, -1, Component.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponent_ImplementedInterfaceLinks(), this.getInterfaceImplementation(), this.getInterfaceImplementation_InterfaceImplementor(), \"implementedInterfaceLinks\", null, 0, -1, Component.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponent_ImplementedInterfaces(), this.getInterface(), this.getInterface_ImplementorComponents(), \"implementedInterfaces\", null, 0, -1, Component.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponent_ProvisionedComponentAllocations(), this.getComponentAllocation(), this.getComponentAllocation_AllocatingComponent(), \"provisionedComponentAllocations\", null, 0, -1, Component.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponent_ProvisioningComponentAllocations(), this.getComponentAllocation(), this.getComponentAllocation_AllocatedComponent(), \"provisioningComponentAllocations\", null, 0, -1, Component.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponent_AllocatedComponents(), this.getComponent(), null, \"allocatedComponents\", null, 0, -1, Component.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponent_AllocatingComponents(), this.getComponent(), null, \"allocatingComponents\", null, 0, -1, Component.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponent_ProvidedInterfaces(), this.getInterface(), null, \"providedInterfaces\", null, 0, -1, Component.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponent_RequiredInterfaces(), this.getInterface(), null, \"requiredInterfaces\", null, 0, -1, Component.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponent_ContainedComponentPorts(), theFaPackage.getComponentPort(), null, \"containedComponentPorts\", null, 0, -1, Component.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponent_ContainedParts(), this.getPart(), null, \"containedParts\", null, 0, -1, Component.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponent_ContainedPhysicalPorts(), this.getPhysicalPort(), null, \"containedPhysicalPorts\", null, 0, -1, Component.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponent_OwnedPhysicalPath(), this.getPhysicalPath(), null, \"ownedPhysicalPath\", null, 0, -1, Component.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponent_OwnedPhysicalLinks(), this.getPhysicalLink(), null, \"ownedPhysicalLinks\", null, 0, -1, Component.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponent_OwnedPhysicalLinkCategories(), this.getPhysicalLinkCategory(), null, \"ownedPhysicalLinkCategories\", null, 0, -1, Component.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(abstractActorEClass, AbstractActor.class, \"AbstractActor\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(partEClass, Part.class, \"Part\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPart_ProvidedInterfaces(), this.getInterface(), null, \"providedInterfaces\", null, 0, -1, Part.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPart_RequiredInterfaces(), this.getInterface(), null, \"requiredInterfaces\", null, 0, -1, Part.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPart_OwnedDeploymentLinks(), this.getAbstractDeploymentLink(), null, \"ownedDeploymentLinks\", null, 0, -1, Part.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPart_DeployedParts(), this.getPart(), null, \"deployedParts\", null, 0, -1, Part.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPart_DeployingParts(), this.getPart(), null, \"deployingParts\", null, 0, -1, Part.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPart_OwnedAbstractType(), theModellingcorePackage.getAbstractType(), null, \"ownedAbstractType\", null, 0, 1, Part.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPart_Value(), ecorePackage.getEInt(), \"value\", null, 0, 1, Part.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPart_MaxValue(), ecorePackage.getEInt(), \"maxValue\", null, 0, 1, Part.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPart_MinValue(), ecorePackage.getEInt(), \"minValue\", null, 0, 1, Part.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPart_CurrentMass(), ecorePackage.getEInt(), \"currentMass\", null, 0, 1, Part.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\taddEOperation(partEClass, ecorePackage.getEBoolean(), \"isOverhead\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(partEClass, ecorePackage.getEBoolean(), \"isSatured\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(partEClass, ecorePackage.getEInt(), \"computeMass\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(partEClass, null, \"print\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(architectureAllocationEClass, ArchitectureAllocation.class, \"ArchitectureAllocation\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getArchitectureAllocation_AllocatedArchitecture(), this.getBlockArchitecture(), this.getBlockArchitecture_ProvisioningArchitectureAllocations(), \"allocatedArchitecture\", null, 1, 1, ArchitectureAllocation.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getArchitectureAllocation_AllocatingArchitecture(), this.getBlockArchitecture(), this.getBlockArchitecture_ProvisionedArchitectureAllocations(), \"allocatingArchitecture\", null, 1, 1, ArchitectureAllocation.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(componentAllocationEClass, ComponentAllocation.class, \"ComponentAllocation\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getComponentAllocation_AllocatedComponent(), this.getComponent(), this.getComponent_ProvisioningComponentAllocations(), \"allocatedComponent\", null, 0, 1, ComponentAllocation.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponentAllocation_AllocatingComponent(), this.getComponent(), this.getComponent_ProvisionedComponentAllocations(), \"allocatingComponent\", null, 0, 1, ComponentAllocation.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(systemComponentEClass, SystemComponent.class, \"SystemComponent\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getSystemComponent_DataComponent(), ecorePackage.getEBoolean(), \"dataComponent\", null, 0, 1, SystemComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSystemComponent_DataType(), theCapellacorePackage.getClassifier(), null, \"dataType\", null, 0, -1, SystemComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSystemComponent_ParticipationsInCapabilityRealizations(), this.getSystemComponentCapabilityRealizationInvolvement(), null, \"participationsInCapabilityRealizations\", null, 0, -1, SystemComponent.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(interfacePkgEClass, InterfacePkg.class, \"InterfacePkg\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInterfacePkg_OwnedInterfaces(), this.getInterface(), null, \"ownedInterfaces\", null, 0, -1, InterfacePkg.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterfacePkg_OwnedInterfacePkgs(), this.getInterfacePkg(), null, \"ownedInterfacePkgs\", null, 0, -1, InterfacePkg.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(interfaceEClass, Interface.class, \"Interface\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getInterface_Mechanism(), ecorePackage.getEString(), \"mechanism\", null, 0, 1, Interface.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInterface_Structural(), ecorePackage.getEBoolean(), \"structural\", \"true\", 0, 1, Interface.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterface_ImplementorComponents(), this.getComponent(), this.getComponent_ImplementedInterfaces(), \"implementorComponents\", null, 0, -1, Interface.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterface_UserComponents(), this.getComponent(), this.getComponent_UsedInterfaces(), \"userComponents\", null, 0, -1, Interface.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterface_InterfaceImplementations(), this.getInterfaceImplementation(), null, \"interfaceImplementations\", null, 0, -1, Interface.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterface_InterfaceUses(), this.getInterfaceUse(), null, \"interfaceUses\", null, 0, -1, Interface.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterface_ProvisioningInterfaceAllocations(), this.getInterfaceAllocation(), this.getInterfaceAllocation_AllocatedInterface(), \"provisioningInterfaceAllocations\", null, 0, -1, Interface.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterface_AllocatingInterfaces(), this.getInterface(), null, \"allocatingInterfaces\", null, 0, -1, Interface.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterface_AllocatingComponents(), this.getComponent(), null, \"allocatingComponents\", null, 0, -1, Interface.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterface_ExchangeItems(), theInformationPackage.getExchangeItem(), null, \"exchangeItems\", null, 0, -1, Interface.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterface_OwnedExchangeItemAllocations(), this.getExchangeItemAllocation(), null, \"ownedExchangeItemAllocations\", null, 0, -1, Interface.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterface_RequiringComponents(), this.getComponent(), null, \"requiringComponents\", null, 0, -1, Interface.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterface_RequiringComponentPorts(), theFaPackage.getComponentPort(), null, \"requiringComponentPorts\", null, 0, -1, Interface.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterface_ProvidingComponents(), this.getComponent(), null, \"providingComponents\", null, 0, -1, Interface.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterface_ProvidingComponentPorts(), theFaPackage.getComponentPort(), null, \"providingComponentPorts\", null, 0, -1, Interface.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterface_RealizingLogicalInterfaces(), this.getInterface(), null, \"realizingLogicalInterfaces\", null, 0, -1, Interface.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterface_RealizedContextInterfaces(), this.getInterface(), null, \"realizedContextInterfaces\", null, 0, -1, Interface.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterface_RealizingPhysicalInterfaces(), this.getInterface(), null, \"realizingPhysicalInterfaces\", null, 0, -1, Interface.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterface_RealizedLogicalInterfaces(), this.getInterface(), null, \"realizedLogicalInterfaces\", null, 0, -1, Interface.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(interfaceImplementationEClass, InterfaceImplementation.class, \"InterfaceImplementation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInterfaceImplementation_InterfaceImplementor(), this.getComponent(), this.getComponent_ImplementedInterfaceLinks(), \"interfaceImplementor\", null, 1, 1, InterfaceImplementation.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterfaceImplementation_ImplementedInterface(), this.getInterface(), null, \"implementedInterface\", null, 1, 1, InterfaceImplementation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(interfaceUseEClass, InterfaceUse.class, \"InterfaceUse\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInterfaceUse_InterfaceUser(), this.getComponent(), this.getComponent_UsedInterfaceLinks(), \"interfaceUser\", null, 1, 1, InterfaceUse.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterfaceUse_UsedInterface(), this.getInterface(), null, \"usedInterface\", null, 1, 1, InterfaceUse.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(providedInterfaceLinkEClass, ProvidedInterfaceLink.class, \"ProvidedInterfaceLink\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getProvidedInterfaceLink_Interface(), this.getInterface(), null, \"interface\", null, 1, 1, ProvidedInterfaceLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(requiredInterfaceLinkEClass, RequiredInterfaceLink.class, \"RequiredInterfaceLink\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getRequiredInterfaceLink_Interface(), this.getInterface(), null, \"interface\", null, 1, 1, RequiredInterfaceLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(interfaceAllocationEClass, InterfaceAllocation.class, \"InterfaceAllocation\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInterfaceAllocation_AllocatedInterface(), this.getInterface(), this.getInterface_ProvisioningInterfaceAllocations(), \"allocatedInterface\", null, 1, 1, InterfaceAllocation.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterfaceAllocation_AllocatingInterfaceAllocator(), this.getInterfaceAllocator(), this.getInterfaceAllocator_ProvisionedInterfaceAllocations(), \"allocatingInterfaceAllocator\", null, 1, 1, InterfaceAllocation.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(interfaceAllocatorEClass, InterfaceAllocator.class, \"InterfaceAllocator\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInterfaceAllocator_OwnedInterfaceAllocations(), this.getInterfaceAllocation(), null, \"ownedInterfaceAllocations\", null, 0, -1, InterfaceAllocator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterfaceAllocator_ProvisionedInterfaceAllocations(), this.getInterfaceAllocation(), this.getInterfaceAllocation_AllocatingInterfaceAllocator(), \"provisionedInterfaceAllocations\", null, 0, -1, InterfaceAllocator.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterfaceAllocator_AllocatedInterfaces(), this.getInterface(), null, \"allocatedInterfaces\", null, 0, -1, InterfaceAllocator.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(actorCapabilityRealizationInvolvementEClass, ActorCapabilityRealizationInvolvement.class, \"ActorCapabilityRealizationInvolvement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(systemComponentCapabilityRealizationInvolvementEClass, SystemComponentCapabilityRealizationInvolvement.class, \"SystemComponentCapabilityRealizationInvolvement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(componentContextEClass, ComponentContext.class, \"ComponentContext\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(exchangeItemAllocationEClass, ExchangeItemAllocation.class, \"ExchangeItemAllocation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getExchangeItemAllocation_SendProtocol(), theCommunicationPackage.getCommunicationLinkProtocol(), \"sendProtocol\", null, 0, 1, ExchangeItemAllocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getExchangeItemAllocation_ReceiveProtocol(), theCommunicationPackage.getCommunicationLinkProtocol(), \"receiveProtocol\", null, 0, 1, ExchangeItemAllocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getExchangeItemAllocation_AllocatedItem(), theInformationPackage.getExchangeItem(), null, \"allocatedItem\", null, 0, 1, ExchangeItemAllocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getExchangeItemAllocation_AllocatingInterface(), this.getInterface(), null, \"allocatingInterface\", null, 0, 1, ExchangeItemAllocation.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(deployableElementEClass, DeployableElement.class, \"DeployableElement\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getDeployableElement_DeployingLinks(), this.getAbstractDeploymentLink(), null, \"deployingLinks\", null, 0, -1, DeployableElement.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(deploymentTargetEClass, DeploymentTarget.class, \"DeploymentTarget\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getDeploymentTarget_DeploymentLinks(), this.getAbstractDeploymentLink(), null, \"deploymentLinks\", null, 0, -1, DeploymentTarget.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(abstractDeploymentLinkEClass, AbstractDeploymentLink.class, \"AbstractDeploymentLink\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAbstractDeploymentLink_DeployedElement(), this.getDeployableElement(), null, \"deployedElement\", null, 1, 1, AbstractDeploymentLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getAbstractDeploymentLink_Location(), this.getDeploymentTarget(), null, \"location\", null, 1, 1, AbstractDeploymentLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(abstractPathInvolvedElementEClass, AbstractPathInvolvedElement.class, \"AbstractPathInvolvedElement\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(abstractPhysicalArtifactEClass, AbstractPhysicalArtifact.class, \"AbstractPhysicalArtifact\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAbstractPhysicalArtifact_AllocatorConfigurationItems(), theEpbsPackage.getConfigurationItem(), theEpbsPackage.getConfigurationItem_AllocatedPhysicalArtifacts(), \"allocatorConfigurationItems\", null, 0, -1, AbstractPhysicalArtifact.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(abstractPhysicalLinkEndEClass, AbstractPhysicalLinkEnd.class, \"AbstractPhysicalLinkEnd\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAbstractPhysicalLinkEnd_InvolvedLinks(), this.getPhysicalLink(), null, \"involvedLinks\", null, 0, -1, AbstractPhysicalLinkEnd.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(abstractPhysicalPathLinkEClass, AbstractPhysicalPathLink.class, \"AbstractPhysicalPathLink\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(physicalLinkEClass, PhysicalLink.class, \"PhysicalLink\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPhysicalLink_LinkEnds(), this.getAbstractPhysicalLinkEnd(), null, \"linkEnds\", null, 2, 2, PhysicalLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalLink_OwnedComponentExchangeFunctionalExchangeAllocations(), theFaPackage.getComponentExchangeFunctionalExchangeAllocation(), null, \"ownedComponentExchangeFunctionalExchangeAllocations\", null, 0, -1, PhysicalLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalLink_OwnedPhysicalLinkEnds(), this.getPhysicalLinkEnd(), null, \"ownedPhysicalLinkEnds\", null, 0, -1, PhysicalLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalLink_OwnedPhysicalLinkRealizations(), this.getPhysicalLinkRealization(), null, \"ownedPhysicalLinkRealizations\", null, 0, -1, PhysicalLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalLink_Categories(), this.getPhysicalLinkCategory(), this.getPhysicalLinkCategory_Links(), \"categories\", null, 0, -1, PhysicalLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalLink_SourcePhysicalPort(), this.getPhysicalPort(), null, \"sourcePhysicalPort\", null, 0, 1, PhysicalLink.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalLink_TargetPhysicalPort(), this.getPhysicalPort(), null, \"targetPhysicalPort\", null, 0, 1, PhysicalLink.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalLink_RealizedPhysicalLinks(), this.getPhysicalLink(), null, \"realizedPhysicalLinks\", null, 0, -1, PhysicalLink.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalLink_RealizingPhysicalLinks(), this.getPhysicalLink(), null, \"realizingPhysicalLinks\", null, 0, -1, PhysicalLink.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(physicalLinkCategoryEClass, PhysicalLinkCategory.class, \"PhysicalLinkCategory\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPhysicalLinkCategory_Links(), this.getPhysicalLink(), this.getPhysicalLink_Categories(), \"links\", null, 0, -1, PhysicalLinkCategory.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(physicalLinkEndEClass, PhysicalLinkEnd.class, \"PhysicalLinkEnd\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPhysicalLinkEnd_Port(), this.getPhysicalPort(), null, \"port\", null, 0, 1, PhysicalLinkEnd.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalLinkEnd_Part(), this.getPart(), null, \"part\", null, 0, 1, PhysicalLinkEnd.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(physicalLinkRealizationEClass, PhysicalLinkRealization.class, \"PhysicalLinkRealization\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(physicalPathEClass, PhysicalPath.class, \"PhysicalPath\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPhysicalPath_InvolvedLinks(), this.getAbstractPhysicalPathLink(), null, \"involvedLinks\", null, 0, -1, PhysicalPath.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalPath_OwnedPhysicalPathInvolvements(), this.getPhysicalPathInvolvement(), null, \"ownedPhysicalPathInvolvements\", null, 0, -1, PhysicalPath.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalPath_FirstPhysicalPathInvolvements(), this.getPhysicalPathInvolvement(), null, \"firstPhysicalPathInvolvements\", null, 0, -1, PhysicalPath.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalPath_OwnedPhysicalPathRealizations(), this.getPhysicalPathRealization(), null, \"ownedPhysicalPathRealizations\", null, 0, -1, PhysicalPath.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalPath_RealizedPhysicalPaths(), this.getPhysicalPath(), null, \"realizedPhysicalPaths\", null, 0, -1, PhysicalPath.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalPath_RealizingPhysicalPaths(), this.getPhysicalPath(), null, \"realizingPhysicalPaths\", null, 0, -1, PhysicalPath.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(physicalPathInvolvementEClass, PhysicalPathInvolvement.class, \"PhysicalPathInvolvement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPhysicalPathInvolvement_NextInvolvements(), this.getPhysicalPathInvolvement(), null, \"nextInvolvements\", null, 0, -1, PhysicalPathInvolvement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalPathInvolvement_PreviousInvolvements(), this.getPhysicalPathInvolvement(), null, \"previousInvolvements\", null, 0, -1, PhysicalPathInvolvement.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalPathInvolvement_InvolvedElement(), this.getAbstractPathInvolvedElement(), null, \"involvedElement\", null, 0, 1, PhysicalPathInvolvement.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalPathInvolvement_InvolvedComponent(), this.getComponent(), null, \"involvedComponent\", null, 0, 1, PhysicalPathInvolvement.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(physicalPathReferenceEClass, PhysicalPathReference.class, \"PhysicalPathReference\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPhysicalPathReference_ReferencedPhysicalPath(), this.getPhysicalPath(), null, \"referencedPhysicalPath\", null, 0, 1, PhysicalPathReference.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(physicalPathRealizationEClass, PhysicalPathRealization.class, \"PhysicalPathRealization\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(physicalPortEClass, PhysicalPort.class, \"PhysicalPort\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPhysicalPort_OwnedComponentPortAllocations(), theFaPackage.getComponentPortAllocation(), null, \"ownedComponentPortAllocations\", null, 0, -1, PhysicalPort.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalPort_OwnedPhysicalPortRealizations(), this.getPhysicalPortRealization(), null, \"ownedPhysicalPortRealizations\", null, 0, -1, PhysicalPort.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalPort_AllocatedComponentPorts(), theFaPackage.getComponentPort(), theFaPackage.getComponentPort_AllocatingPhysicalPorts(), \"allocatedComponentPorts\", null, 0, -1, PhysicalPort.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalPort_RealizedPhysicalPorts(), this.getPhysicalPort(), null, \"realizedPhysicalPorts\", null, 0, -1, PhysicalPort.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalPort_RealizingPhysicalPorts(), this.getPhysicalPort(), null, \"realizingPhysicalPorts\", null, 0, -1, PhysicalPort.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(physicalPortRealizationEClass, PhysicalPortRealization.class, \"PhysicalPortRealization\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\n\t\t// Create annotations\n\t\t// http://www.polarsys.org/kitalpha/dsl/2007/dslfactory\n\t\tcreateDslfactoryAnnotations();\n\t\t// http://www.polarsys.org/kitalpha/ecore/documentation\n\t\tcreateDocumentationAnnotations();\n\t\t// http://www.polarsys.org/capella/semantic\n\t\tcreateSemanticAnnotations();\n\t\t// http://www.polarsys.org/capella/MNoE/CapellaLike/Mapping\n\t\tcreateMappingAnnotations();\n\t\t// http://www.polarsys.org/capella/2007/BusinessInformation\n\t\tcreateBusinessInformationAnnotations();\n\t\t// http://www.polarsys.org/capella/2007/UML2Mapping\n\t\tcreateUML2MappingAnnotations();\n\t\t// http://www.polarsys.org/capella/2007/ImpactAnalysis/Segment\n\t\tcreateSegmentAnnotations();\n\t\t// http://www.polarsys.org/capella/derived\n\t\tcreateDerivedAnnotations();\n\t\t// aspect\n\t\tcreateAspectAnnotations();\n\t\t// http://www.polarsys.org/capella/2007/ImpactAnalysis/Ignore\n\t\tcreateIgnoreAnnotations();\n\t}", "void finishInitialization() throws SetupException;", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(treeEClass, Tree.class, \"Tree\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getTree_Children(), this.getNode(), null, \"children\", null, 0, -1, Tree.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(nodeEClass, Node.class, \"Node\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getNode_Children(), this.getNode(), null, \"children\", null, 0, -1, Node.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getNode_Name(), ecorePackage.getEString(), \"name\", \"Node\", 0, 1, Node.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\n\t\t// Create annotations\n\t\t// gmf.diagram\n\t\tcreateGmfAnnotations();\n\t\t// gmf.node\n\t\tcreateGmf_1Annotations();\n\t\t// gmf.compartment\n\t\tcreateGmf_2Annotations();\n\t}", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tQIntegratedLanguageCorePackage theIntegratedLanguageCorePackage = (QIntegratedLanguageCorePackage)EPackage.Registry.INSTANCE.getEPackage(QIntegratedLanguageCorePackage.eNS_URI);\n\t\tQIntegratedLanguageCoreCtxPackage theIntegratedLanguageCoreCtxPackage = (QIntegratedLanguageCoreCtxPackage)EPackage.Registry.INSTANCE.getEPackage(QIntegratedLanguageCoreCtxPackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\trepositoryEClass.getESuperTypes().add(theIntegratedLanguageCorePackage.getObjectNameable());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(repositoryEClass, QRepository.class, \"Repository\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getRepository_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, QRepository.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getRepository_Location(), ecorePackage.getEString(), \"location\", null, 1, 1, QRepository.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(repositoryManagerEClass, QRepositoryManager.class, \"RepositoryManager\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tEOperation op = addEOperation(repositoryManagerEClass, ecorePackage.getEBoolean(), \"checkUpdates\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEString(), \"repositoryLocation\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\top = addEOperation(repositoryManagerEClass, ecorePackage.getEBoolean(), \"update\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEString(), \"repositoryLocation\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\top = addEOperation(repositoryManagerEClass, null, \"updateAll\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, theIntegratedLanguageCoreCtxPackage.getContextProvider(), \"contextProvider\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\torg.abchip.mimo.entity.EntityPackage theEntityPackage_1 = (org.abchip.mimo.entity.EntityPackage)EPackage.Registry.INSTANCE.getEPackage(org.abchip.mimo.entity.EntityPackage.eNS_URI);\n\t\tPaymentPackage thePaymentPackage = (PaymentPackage)EPackage.Registry.INSTANCE.getEPackage(PaymentPackage.eNS_URI);\n\t\torg.abchip.mimo.biz.model.party.contact.ContactPackage theContactPackage_1 = (org.abchip.mimo.biz.model.party.contact.ContactPackage)EPackage.Registry.INSTANCE.getEPackage(org.abchip.mimo.biz.model.party.contact.ContactPackage.eNS_URI);\n\t\tUomPackage theUomPackage = (UomPackage)EPackage.Registry.INSTANCE.getEPackage(UomPackage.eNS_URI);\n\t\tPartyPackage thePartyPackage_1 = (PartyPackage)EPackage.Registry.INSTANCE.getEPackage(PartyPackage.eNS_URI);\n\t\tSchedulePackage theSchedulePackage = (SchedulePackage)EPackage.Registry.INSTANCE.getEPackage(SchedulePackage.eNS_URI);\n\t\tStatusPackage theStatusPackage = (StatusPackage)EPackage.Registry.INSTANCE.getEPackage(StatusPackage.eNS_URI);\n\t\tContentPackage theContentPackage = (ContentPackage)EPackage.Registry.INSTANCE.getEPackage(ContentPackage.eNS_URI);\n\t\tInventoryPackage theInventoryPackage = (InventoryPackage)EPackage.Registry.INSTANCE.getEPackage(InventoryPackage.eNS_URI);\n\t\tLedgerPackage theLedgerPackage = (LedgerPackage)EPackage.Registry.INSTANCE.getEPackage(LedgerPackage.eNS_URI);\n\t\tProductPackage theProductPackage = (ProductPackage)EPackage.Registry.INSTANCE.getEPackage(ProductPackage.eNS_URI);\n\t\tFeaturePackage theFeaturePackage = (FeaturePackage)EPackage.Registry.INSTANCE.getEPackage(FeaturePackage.eNS_URI);\n\t\tOpportunityPackage theOpportunityPackage = (OpportunityPackage)EPackage.Registry.INSTANCE.getEPackage(OpportunityPackage.eNS_URI);\n\t\tGeoPackage theGeoPackage = (GeoPackage)EPackage.Registry.INSTANCE.getEPackage(GeoPackage.eNS_URI);\n\t\tTaxPackage theTaxPackage = (TaxPackage)EPackage.Registry.INSTANCE.getEPackage(TaxPackage.eNS_URI);\n\t\tBizPackage theBizPackage = (BizPackage)EPackage.Registry.INSTANCE.getEPackage(BizPackage.eNS_URI);\n\t\tLoginPackage theLoginPackage = (LoginPackage)EPackage.Registry.INSTANCE.getEPackage(LoginPackage.eNS_URI);\n\t\tAgreementPackage theAgreementPackage = (AgreementPackage)EPackage.Registry.INSTANCE.getEPackage(AgreementPackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tEGenericType g1 = createEGenericType(theEntityPackage_1.getEntityTyped());\n\t\tEGenericType g2 = createEGenericType(this.getInvoiceType());\n\t\tg1.getETypeArguments().add(g2);\n\t\tinvoiceEClass.getEGenericSuperTypes().add(g1);\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityInfo());\n\t\tinvoiceEClass.getEGenericSuperTypes().add(g1);\n\t\tinvoiceAttributeEClass.getESuperTypes().add(theEntityPackage_1.getEntityIdentifiable());\n\t\tinvoiceAttributeEClass.getESuperTypes().add(theEntityPackage_1.getEntityInfo());\n\t\tinvoiceContactMechEClass.getESuperTypes().add(theEntityPackage_1.getEntityIdentifiable());\n\t\tinvoiceContactMechEClass.getESuperTypes().add(theEntityPackage_1.getEntityInfo());\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityTyped());\n\t\tg2 = createEGenericType(this.getInvoiceContentType());\n\t\tg1.getETypeArguments().add(g2);\n\t\tinvoiceContentEClass.getEGenericSuperTypes().add(g1);\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityInfo());\n\t\tinvoiceContentEClass.getEGenericSuperTypes().add(g1);\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityType());\n\t\tg2 = createEGenericType(this.getInvoiceContent());\n\t\tg1.getETypeArguments().add(g2);\n\t\tinvoiceContentTypeEClass.getEGenericSuperTypes().add(g1);\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityInfo());\n\t\tinvoiceContentTypeEClass.getEGenericSuperTypes().add(g1);\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityTyped());\n\t\tg2 = createEGenericType(this.getInvoiceItemType());\n\t\tg1.getETypeArguments().add(g2);\n\t\tinvoiceItemEClass.getEGenericSuperTypes().add(g1);\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityInfo());\n\t\tinvoiceItemEClass.getEGenericSuperTypes().add(g1);\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityTyped());\n\t\tg2 = createEGenericType(this.getInvoiceItemAssocType());\n\t\tg1.getETypeArguments().add(g2);\n\t\tinvoiceItemAssocEClass.getEGenericSuperTypes().add(g1);\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityInfo());\n\t\tinvoiceItemAssocEClass.getEGenericSuperTypes().add(g1);\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityType());\n\t\tg2 = createEGenericType(this.getInvoiceItemAssoc());\n\t\tg1.getETypeArguments().add(g2);\n\t\tinvoiceItemAssocTypeEClass.getEGenericSuperTypes().add(g1);\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityInfo());\n\t\tinvoiceItemAssocTypeEClass.getEGenericSuperTypes().add(g1);\n\t\tinvoiceItemAttributeEClass.getESuperTypes().add(theEntityPackage_1.getEntityIdentifiable());\n\t\tinvoiceItemAttributeEClass.getESuperTypes().add(theEntityPackage_1.getEntityInfo());\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityType());\n\t\tg2 = createEGenericType(this.getInvoiceItem());\n\t\tg1.getETypeArguments().add(g2);\n\t\tinvoiceItemTypeEClass.getEGenericSuperTypes().add(g1);\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityInfo());\n\t\tinvoiceItemTypeEClass.getEGenericSuperTypes().add(g1);\n\t\tinvoiceItemTypeAttrEClass.getESuperTypes().add(theEntityPackage_1.getEntityIdentifiable());\n\t\tinvoiceItemTypeAttrEClass.getESuperTypes().add(theEntityPackage_1.getEntityInfo());\n\t\tinvoiceItemTypeGlAccountEClass.getESuperTypes().add(theEntityPackage_1.getEntityIdentifiable());\n\t\tinvoiceItemTypeGlAccountEClass.getESuperTypes().add(theEntityPackage_1.getEntityInfo());\n\t\tinvoiceItemTypeMapEClass.getESuperTypes().add(theEntityPackage_1.getEntityIdentifiable());\n\t\tinvoiceItemTypeMapEClass.getESuperTypes().add(theEntityPackage_1.getEntityInfo());\n\t\tinvoiceNoteEClass.getESuperTypes().add(theBizPackage.getBizEntityNote());\n\t\tinvoiceRoleEClass.getESuperTypes().add(theEntityPackage_1.getEntityIdentifiable());\n\t\tinvoiceRoleEClass.getESuperTypes().add(theEntityPackage_1.getEntityInfo());\n\t\tinvoiceStatusEClass.getESuperTypes().add(theEntityPackage_1.getEntityIdentifiable());\n\t\tinvoiceStatusEClass.getESuperTypes().add(theEntityPackage_1.getEntityInfo());\n\t\tinvoiceTermEClass.getESuperTypes().add(theEntityPackage_1.getEntityIdentifiable());\n\t\tinvoiceTermEClass.getESuperTypes().add(theEntityPackage_1.getEntityInfo());\n\t\tinvoiceTermAttributeEClass.getESuperTypes().add(theEntityPackage_1.getEntityIdentifiable());\n\t\tinvoiceTermAttributeEClass.getESuperTypes().add(theEntityPackage_1.getEntityInfo());\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityType());\n\t\tg2 = createEGenericType(this.getInvoice());\n\t\tg1.getETypeArguments().add(g2);\n\t\tinvoiceTypeEClass.getEGenericSuperTypes().add(g1);\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityInfo());\n\t\tinvoiceTypeEClass.getEGenericSuperTypes().add(g1);\n\t\tinvoiceTypeAttrEClass.getESuperTypes().add(theEntityPackage_1.getEntityIdentifiable());\n\t\tinvoiceTypeAttrEClass.getESuperTypes().add(theEntityPackage_1.getEntityInfo());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(invoiceEClass, Invoice.class, \"Invoice\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getInvoice_InvoiceId(), ecorePackage.getEString(), \"invoiceId\", null, 1, 1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoice_BillingAccount(), thePaymentPackage.getBillingAccount(), null, \"billingAccount\", null, 0, 1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoice_ContactMech(), theContactPackage_1.getContactMech(), null, \"contactMech\", null, 0, 1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoice_CurrencyUom(), theUomPackage.getUom(), null, \"currencyUom\", null, 0, 1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoice_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoice_DueDate(), ecorePackage.getEDate(), \"dueDate\", null, 0, 1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoice_InvoiceAttributes(), this.getInvoiceAttribute(), null, \"invoiceAttributes\", null, 0, -1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoice_InvoiceDate(), ecorePackage.getEDate(), \"invoiceDate\", null, 0, 1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoice_InvoiceItems(), this.getInvoiceItem(), null, \"invoiceItems\", null, 0, -1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoice_InvoiceMessage(), ecorePackage.getEString(), \"invoiceMessage\", null, 0, 1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoice_InvoiceNotes(), this.getInvoiceNote(), null, \"invoiceNotes\", null, 0, -1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoice_InvoiceStatuses(), this.getInvoiceStatus(), null, \"invoiceStatuses\", null, 0, -1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoice_InvoiceType(), this.getInvoiceType(), null, \"invoiceType\", null, 0, 1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoice_PaidDate(), ecorePackage.getEDate(), \"paidDate\", null, 0, 1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoice_Party(), thePartyPackage_1.getParty(), null, \"party\", null, 0, 1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoice_PartyIdFrom(), thePartyPackage_1.getParty(), null, \"partyIdFrom\", null, 0, 1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoice_RecurrenceInfo(), theSchedulePackage.getRecurrenceInfo(), null, \"recurrenceInfo\", null, 0, 1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoice_ReferenceNumber(), ecorePackage.getEString(), \"referenceNumber\", null, 0, 1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoice_RoleType(), thePartyPackage_1.getRoleType(), null, \"roleType\", null, 0, 1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoice_Status(), theStatusPackage.getStatusItem(), null, \"status\", null, 0, 1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\taddEOperation(invoiceEClass, ecorePackage.getEBigDecimal(), \"getTotal\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(invoiceAttributeEClass, InvoiceAttribute.class, \"InvoiceAttribute\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInvoiceAttribute_Invoice(), this.getInvoice(), null, \"invoice\", null, 1, 1, InvoiceAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceAttribute_AttrName(), ecorePackage.getEString(), \"attrName\", null, 1, 1, InvoiceAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceAttribute_AttrDescription(), ecorePackage.getEString(), \"attrDescription\", null, 0, 1, InvoiceAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceAttribute_AttrValue(), ecorePackage.getEString(), \"attrValue\", null, 0, 1, InvoiceAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(invoiceContactMechEClass, InvoiceContactMech.class, \"InvoiceContactMech\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInvoiceContactMech_Invoice(), this.getInvoice(), null, \"invoice\", null, 1, 1, InvoiceContactMech.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceContactMech_ContactMech(), theContactPackage_1.getContactMech(), null, \"contactMech\", null, 1, 1, InvoiceContactMech.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceContactMech_ContactMechPurposeType(), theContactPackage_1.getContactMechPurposeType(), null, \"contactMechPurposeType\", null, 1, 1, InvoiceContactMech.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(invoiceContentEClass, InvoiceContent.class, \"InvoiceContent\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInvoiceContent_Invoice(), this.getInvoice(), null, \"invoice\", null, 1, 1, InvoiceContent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceContent_Content(), theContentPackage.getContent(), null, \"content\", null, 1, 1, InvoiceContent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceContent_InvoiceContentType(), this.getInvoiceContentType(), null, \"invoiceContentType\", null, 1, 1, InvoiceContent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceContent_FromDate(), ecorePackage.getEDate(), \"fromDate\", null, 1, 1, InvoiceContent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceContent_ThruDate(), ecorePackage.getEDate(), \"thruDate\", null, 0, 1, InvoiceContent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(invoiceContentTypeEClass, InvoiceContentType.class, \"InvoiceContentType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getInvoiceContentType_InvoiceContentTypeId(), ecorePackage.getEString(), \"invoiceContentTypeId\", null, 1, 1, InvoiceContentType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceContentType_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, InvoiceContentType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceContentType_HasTable(), ecorePackage.getEBooleanObject(), \"hasTable\", null, 0, 1, InvoiceContentType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceContentType_ParentType(), this.getInvoiceContentType(), null, \"parentType\", null, 0, 1, InvoiceContentType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(invoiceItemEClass, InvoiceItem.class, \"InvoiceItem\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInvoiceItem_Invoice(), this.getInvoice(), null, \"invoice\", null, 1, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItem_InvoiceItemSeqId(), ecorePackage.getEString(), \"invoiceItemSeqId\", null, 1, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItem_Amount(), ecorePackage.getEBigDecimal(), \"amount\", null, 0, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItem_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItem_InventoryItem(), theInventoryPackage.getInventoryItem(), null, \"inventoryItem\", null, 0, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItem_InvoiceItemType(), this.getInvoiceItemType(), null, \"invoiceItemType\", null, 0, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItem_OverrideGlAccount(), theLedgerPackage.getGlAccount(), null, \"overrideGlAccount\", null, 0, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItem_OverrideOrgParty(), thePartyPackage_1.getParty(), null, \"overrideOrgParty\", null, 0, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItem_ParentInvoiceId(), ecorePackage.getEString(), \"parentInvoiceId\", null, 0, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItem_ParentInvoiceItemSeqId(), ecorePackage.getEString(), \"parentInvoiceItemSeqId\", null, 0, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItem_Product(), theProductPackage.getProduct(), null, \"product\", null, 0, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItem_ProductFeature(), theFeaturePackage.getProductFeature(), null, \"productFeature\", null, 0, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItem_Quantity(), ecorePackage.getEBigDecimal(), \"quantity\", null, 0, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItem_SalesOpportunity(), theOpportunityPackage.getSalesOpportunity(), null, \"salesOpportunity\", null, 0, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItem_TaxAuthGeo(), theGeoPackage.getGeo(), null, \"taxAuthGeo\", null, 0, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItem_TaxAuthParty(), thePartyPackage_1.getParty(), null, \"taxAuthParty\", null, 0, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItem_TaxAuthorityRateSeq(), theTaxPackage.getTaxAuthorityRateProduct(), null, \"taxAuthorityRateSeq\", null, 0, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItem_TaxableFlag(), ecorePackage.getEBoolean(), \"taxableFlag\", null, 1, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItem_Uom(), theUomPackage.getUom(), null, \"uom\", null, 0, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(invoiceItemAssocEClass, InvoiceItemAssoc.class, \"InvoiceItemAssoc\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInvoiceItemAssoc_InvoiceItemAssocType(), this.getInvoiceItemAssocType(), null, \"invoiceItemAssocType\", null, 1, 1, InvoiceItemAssoc.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemAssoc_FromDate(), ecorePackage.getEDate(), \"fromDate\", null, 1, 1, InvoiceItemAssoc.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemAssoc_InvoiceIdFrom(), ecorePackage.getEString(), \"invoiceIdFrom\", null, 1, 1, InvoiceItemAssoc.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemAssoc_InvoiceIdTo(), ecorePackage.getEString(), \"invoiceIdTo\", null, 1, 1, InvoiceItemAssoc.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemAssoc_InvoiceItemSeqIdFrom(), ecorePackage.getEString(), \"invoiceItemSeqIdFrom\", null, 1, 1, InvoiceItemAssoc.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemAssoc_InvoiceItemSeqIdTo(), ecorePackage.getEString(), \"invoiceItemSeqIdTo\", null, 1, 1, InvoiceItemAssoc.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemAssoc_Amount(), ecorePackage.getEBigDecimal(), \"amount\", null, 0, 1, InvoiceItemAssoc.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItemAssoc_PartyIdFrom(), thePartyPackage_1.getParty(), null, \"partyIdFrom\", null, 0, 1, InvoiceItemAssoc.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItemAssoc_PartyIdTo(), thePartyPackage_1.getParty(), null, \"partyIdTo\", null, 0, 1, InvoiceItemAssoc.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemAssoc_Quantity(), ecorePackage.getEBigDecimal(), \"quantity\", null, 0, 1, InvoiceItemAssoc.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemAssoc_ThruDate(), ecorePackage.getEDate(), \"thruDate\", null, 0, 1, InvoiceItemAssoc.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(invoiceItemAssocTypeEClass, InvoiceItemAssocType.class, \"InvoiceItemAssocType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getInvoiceItemAssocType_InvoiceItemAssocTypeId(), ecorePackage.getEString(), \"invoiceItemAssocTypeId\", null, 1, 1, InvoiceItemAssocType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemAssocType_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, InvoiceItemAssocType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemAssocType_HasTable(), ecorePackage.getEBooleanObject(), \"hasTable\", null, 0, 1, InvoiceItemAssocType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItemAssocType_ParentType(), this.getInvoiceItemAssocType(), null, \"parentType\", null, 0, 1, InvoiceItemAssocType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(invoiceItemAttributeEClass, InvoiceItemAttribute.class, \"InvoiceItemAttribute\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getInvoiceItemAttribute_AttrName(), ecorePackage.getEString(), \"attrName\", null, 1, 1, InvoiceItemAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemAttribute_InvoiceId(), ecorePackage.getEString(), \"invoiceId\", null, 1, 1, InvoiceItemAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemAttribute_InvoiceItemSeqId(), ecorePackage.getEString(), \"invoiceItemSeqId\", null, 1, 1, InvoiceItemAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemAttribute_AttrDescription(), ecorePackage.getEString(), \"attrDescription\", null, 0, 1, InvoiceItemAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemAttribute_AttrValue(), ecorePackage.getEString(), \"attrValue\", null, 0, 1, InvoiceItemAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(invoiceItemTypeEClass, InvoiceItemType.class, \"InvoiceItemType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getInvoiceItemType_InvoiceItemTypeId(), ecorePackage.getEString(), \"invoiceItemTypeId\", null, 1, 1, InvoiceItemType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItemType_DefaultGlAccount(), theLedgerPackage.getGlAccount(), null, \"defaultGlAccount\", null, 0, 1, InvoiceItemType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemType_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, InvoiceItemType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemType_HasTable(), ecorePackage.getEBooleanObject(), \"hasTable\", null, 0, 1, InvoiceItemType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItemType_InvoiceItemTypeAttrs(), this.getInvoiceItemTypeAttr(), null, \"invoiceItemTypeAttrs\", null, 0, -1, InvoiceItemType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItemType_InvoiceItemTypeGlAccounts(), this.getInvoiceItemTypeGlAccount(), null, \"invoiceItemTypeGlAccounts\", null, 0, -1, InvoiceItemType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItemType_ParentType(), this.getInvoiceItemType(), null, \"parentType\", null, 0, 1, InvoiceItemType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(invoiceItemTypeAttrEClass, InvoiceItemTypeAttr.class, \"InvoiceItemTypeAttr\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInvoiceItemTypeAttr_InvoiceItemType(), this.getInvoiceItemType(), null, \"invoiceItemType\", null, 1, 1, InvoiceItemTypeAttr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemTypeAttr_AttrName(), ecorePackage.getEString(), \"attrName\", null, 1, 1, InvoiceItemTypeAttr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemTypeAttr_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, InvoiceItemTypeAttr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(invoiceItemTypeGlAccountEClass, InvoiceItemTypeGlAccount.class, \"InvoiceItemTypeGlAccount\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInvoiceItemTypeGlAccount_InvoiceItemType(), this.getInvoiceItemType(), null, \"invoiceItemType\", null, 1, 1, InvoiceItemTypeGlAccount.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItemTypeGlAccount_OrganizationParty(), thePartyPackage_1.getParty(), null, \"organizationParty\", null, 1, 1, InvoiceItemTypeGlAccount.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItemTypeGlAccount_GlAccount(), theLedgerPackage.getGlAccount(), null, \"glAccount\", null, 0, 1, InvoiceItemTypeGlAccount.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(invoiceItemTypeMapEClass, InvoiceItemTypeMap.class, \"InvoiceItemTypeMap\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInvoiceItemTypeMap_InvoiceType(), this.getInvoiceType(), null, \"invoiceType\", null, 1, 1, InvoiceItemTypeMap.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemTypeMap_InvoiceItemMapKey(), ecorePackage.getEString(), \"invoiceItemMapKey\", null, 1, 1, InvoiceItemTypeMap.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItemTypeMap_InvoiceItemType(), this.getInvoiceItemType(), null, \"invoiceItemType\", null, 0, 1, InvoiceItemTypeMap.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(invoiceNoteEClass, InvoiceNote.class, \"InvoiceNote\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInvoiceNote_Invoice(), this.getInvoice(), null, \"invoice\", null, 1, 1, InvoiceNote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(invoiceRoleEClass, InvoiceRole.class, \"InvoiceRole\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInvoiceRole_Invoice(), this.getInvoice(), null, \"invoice\", null, 1, 1, InvoiceRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceRole_Party(), thePartyPackage_1.getParty(), null, \"party\", null, 1, 1, InvoiceRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceRole_RoleType(), thePartyPackage_1.getRoleType(), null, \"roleType\", null, 1, 1, InvoiceRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceRole_DatetimePerformed(), ecorePackage.getEDate(), \"datetimePerformed\", null, 0, 1, InvoiceRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceRole_Percentage(), ecorePackage.getEBigDecimal(), \"percentage\", null, 0, 1, InvoiceRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(invoiceStatusEClass, InvoiceStatus.class, \"InvoiceStatus\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInvoiceStatus_Status(), theStatusPackage.getStatusItem(), null, \"status\", null, 1, 1, InvoiceStatus.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceStatus_Invoice(), this.getInvoice(), null, \"invoice\", null, 1, 1, InvoiceStatus.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceStatus_StatusDate(), ecorePackage.getEDate(), \"statusDate\", null, 1, 1, InvoiceStatus.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceStatus_ChangeByUserLogin(), theLoginPackage.getUserLogin(), null, \"changeByUserLogin\", null, 0, 1, InvoiceStatus.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(invoiceTermEClass, InvoiceTerm.class, \"InvoiceTerm\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getInvoiceTerm_InvoiceTermId(), ecorePackage.getEString(), \"invoiceTermId\", null, 1, 1, InvoiceTerm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceTerm_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, InvoiceTerm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceTerm_Invoice(), this.getInvoice(), null, \"invoice\", null, 0, 1, InvoiceTerm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceTerm_InvoiceItemSeqId(), ecorePackage.getEString(), \"invoiceItemSeqId\", null, 0, 1, InvoiceTerm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceTerm_InvoiceTermAttributes(), this.getInvoiceTermAttribute(), null, \"invoiceTermAttributes\", null, 0, -1, InvoiceTerm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceTerm_TermDays(), ecorePackage.getELong(), \"termDays\", null, 0, 1, InvoiceTerm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceTerm_TermType(), theAgreementPackage.getTermType(), null, \"termType\", null, 0, 1, InvoiceTerm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceTerm_TermValue(), ecorePackage.getEBigDecimal(), \"termValue\", null, 0, 1, InvoiceTerm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceTerm_TextValue(), ecorePackage.getEString(), \"textValue\", null, 0, 1, InvoiceTerm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceTerm_UomId(), ecorePackage.getEString(), \"uomId\", null, 0, 1, InvoiceTerm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(invoiceTermAttributeEClass, InvoiceTermAttribute.class, \"InvoiceTermAttribute\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInvoiceTermAttribute_InvoiceTerm(), this.getInvoiceTerm(), null, \"invoiceTerm\", null, 1, 1, InvoiceTermAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceTermAttribute_AttrName(), ecorePackage.getEString(), \"attrName\", null, 1, 1, InvoiceTermAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceTermAttribute_AttrDescription(), ecorePackage.getEString(), \"attrDescription\", null, 0, 1, InvoiceTermAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceTermAttribute_AttrValue(), ecorePackage.getEString(), \"attrValue\", null, 0, 1, InvoiceTermAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(invoiceTypeEClass, InvoiceType.class, \"InvoiceType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getInvoiceType_InvoiceTypeId(), ecorePackage.getEString(), \"invoiceTypeId\", null, 1, 1, InvoiceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceType_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, InvoiceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceType_HasTable(), ecorePackage.getEBooleanObject(), \"hasTable\", null, 0, 1, InvoiceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceType_InvoiceTypeAttrs(), this.getInvoiceTypeAttr(), null, \"invoiceTypeAttrs\", null, 0, -1, InvoiceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceType_ParentType(), this.getInvoiceType(), null, \"parentType\", null, 0, 1, InvoiceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(invoiceTypeAttrEClass, InvoiceTypeAttr.class, \"InvoiceTypeAttr\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInvoiceTypeAttr_InvoiceType(), this.getInvoiceType(), null, \"invoiceType\", null, 1, 1, InvoiceTypeAttr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceTypeAttr_AttrName(), ecorePackage.getEString(), \"attrName\", null, 1, 1, InvoiceTypeAttr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceTypeAttr_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, InvoiceTypeAttr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Create annotations\n\t\t// http://www.eclipse.org/emf/2002/Ecore\n\t\tcreateEcoreAnnotations();\n\t\t// mimo-ent-frame\n\t\tcreateMimoentframeAnnotations();\n\t\t// org.abchip.mimo.core.base.invocation\n\t\tcreateOrgAnnotations();\n\t\t// mimo-ent-format\n\t\tcreateMimoentformatAnnotations();\n\t\t// mimo-ent-slot-constraints\n\t\tcreateMimoentslotconstraintsAnnotations();\n\t\t// mimo-ent-slot\n\t\tcreateMimoentslotAnnotations();\n\t}", "public void initializePackageContents()\n {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tclarityAddFilesEClass.getESuperTypes().add(this.getClarityAbstractObject());\n\t\tclarityGetBatchResultEClass.getESuperTypes().add(this.getClarityAbstractObject());\n\t\tclarityGetKeyEClass.getESuperTypes().add(this.getClarityAbstractObject());\n\t\tclarityQueryBatchEClass.getESuperTypes().add(this.getClarityAbstractObject());\n\t\tclarityReloadFileEClass.getESuperTypes().add(this.getClarityAbstractObject());\n\t\tclarityRemoveFilesEClass.getESuperTypes().add(this.getClarityAbstractObject());\n\t\tstartBatchEClass.getESuperTypes().add(this.getClarityAbstractObject());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(clarityAbstractObjectEClass, ClarityAbstractObject.class, \"ClarityAbstractObject\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getClarityAbstractObject_ClarityConnection(), ecorePackage.getEString(), \"clarityConnection\", null, 0, 1, ClarityAbstractObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(clarityAddFilesEClass, ClarityAddFiles.class, \"ClarityAddFiles\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(clarityGetBatchResultEClass, ClarityGetBatchResult.class, \"ClarityGetBatchResult\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(clarityGetKeyEClass, ClarityGetKey.class, \"ClarityGetKey\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(clarityQueryBatchEClass, ClarityQueryBatch.class, \"ClarityQueryBatch\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(clarityReloadFileEClass, ClarityReloadFile.class, \"ClarityReloadFile\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(clarityRemoveFilesEClass, ClarityRemoveFiles.class, \"ClarityRemoveFiles\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(startBatchEClass, StartBatch.class, \"StartBatch\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\n\t\t// Create annotations\n\t\t// cbgeneralcontrol\n\t\tcreateCbgeneralcontrolAnnotations();\n\t}", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\teActorEClass.getESuperTypes().add(this.getEDomainSpecificEntity());\n\t\teItemEClass.getESuperTypes().add(this.getEDomainSpecificEntity());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(eDomainSchemaEClass, EDomainSchema.class, \"EDomainSchema\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getEDomainSchema_Cs(), this.getEControlSchema(), null, \"cs\", null, 0, 1, EDomainSchema.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getEDomainSchema_Ds(), this.getEDataSchema(), null, \"ds\", null, 0, 1, EDomainSchema.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(eControlSchemaEClass, EControlSchema.class, \"EControlSchema\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getEControlSchema_Actor(), this.getEActor(), null, \"actor\", null, 1, -1, EControlSchema.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(eDataSchemaEClass, EDataSchema.class, \"EDataSchema\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getEDataSchema_Cs(), this.getEControlSchema(), null, \"cs\", null, 1, 1, EDataSchema.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getEDataSchema_Item(), this.getEItem(), null, \"item\", null, 1, -1, EDataSchema.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(eDomainSpecificEntityEClass, EDomainSpecificEntity.class, \"EDomainSpecificEntity\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getEDomainSpecificEntity_CommandPriority(), ecorePackage.getEInt(), \"commandPriority\", null, 0, 1, EDomainSpecificEntity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getEDomainSpecificEntity_Cmd(), this.getEDomainSpecificCommand(), null, \"cmd\", null, 0, -1, EDomainSpecificEntity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(eDomainSpecificCommandEClass, EDomainSpecificCommand.class, \"EDomainSpecificCommand\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getEDomainSpecificCommand_CmdId(), ecorePackage.getEInt(), \"cmdId\", null, 0, 1, EDomainSpecificCommand.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(eActorEClass, EActor.class, \"EActor\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getEActor_KindInteraction(), this.getECoordinationBehavior(), \"kindInteraction\", null, 0, 1, EActor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getEActor_TypesControlled(), this.getEDomainSpecificType(), null, \"typesControlled\", null, 0, -1, EActor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(eItemEClass, EItem.class, \"EItem\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getEItem_ArisingBehavior(), this.getEArising(), \"arisingBehavior\", null, 0, 1, EItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getEItem_Type(), this.getEDomainSpecificType(), null, \"type\", null, 1, 1, EItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(eDomainSpecificTypeEClass, EDomainSpecificType.class, \"EDomainSpecificType\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getEDomainSpecificType_InteractionBehavior(), this.getEInteractionBehavior(), \"interactionBehavior\", null, 0, 1, EDomainSpecificType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getEDomainSpecificType_Cardinality(), this.getECardinality(), \"cardinality\", null, 0, 1, EDomainSpecificType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Initialize enums and add enum literals\n\t\tinitEEnum(eArisingEEnum, EArising.class, \"EArising\");\n\t\taddEEnumLiteral(eArisingEEnum, EArising.STATIC);\n\t\taddEEnumLiteral(eArisingEEnum, EArising.DYNAMIC);\n\n\t\tinitEEnum(eCardinalityEEnum, ECardinality.class, \"ECardinality\");\n\t\taddEEnumLiteral(eCardinalityEEnum, ECardinality.ONE);\n\t\taddEEnumLiteral(eCardinalityEEnum, ECardinality.MANY);\n\n\t\tinitEEnum(eInteractionBehaviorEEnum, EInteractionBehavior.class, \"EInteractionBehavior\");\n\t\taddEEnumLiteral(eInteractionBehaviorEEnum, EInteractionBehavior.SYNC);\n\t\taddEEnumLiteral(eInteractionBehaviorEEnum, EInteractionBehavior.ASYNC);\n\n\t\tinitEEnum(eCoordinationBehaviorEEnum, ECoordinationBehavior.class, \"ECoordinationBehavior\");\n\t\taddEEnumLiteral(eCoordinationBehaviorEEnum, ECoordinationBehavior.LOCAL);\n\t\taddEEnumLiteral(eCoordinationBehaviorEEnum, ECoordinationBehavior.DISTRIBUTED);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "public void initializePackageContents() {\r\n\t\tif (isInitialized) return;\r\n\t\tisInitialized = true;\r\n\r\n\t\t// Initialize package\r\n\t\tsetName(eNAME);\r\n\t\tsetNsPrefix(eNS_PREFIX);\r\n\t\tsetNsURI(eNS_URI);\r\n\r\n\t\t// Obtain other dependent packages\r\n\t\tServiceCIMPackage theServiceCIMPackage = (ServiceCIMPackage)EPackage.Registry.INSTANCE.getEPackage(ServiceCIMPackage.eNS_URI);\r\n\r\n\t\t// Create type parameters\r\n\r\n\t\t// Set bounds for type parameters\r\n\r\n\t\t// Add supertypes to classes\r\n\t\tauthorizableResourceEClass.getESuperTypes().add(this.getAnnotation());\r\n\t\tannResourceEClass.getESuperTypes().add(this.getAnnotatedElement());\r\n\t\tannPropertyEClass.getESuperTypes().add(this.getAnnotatedElement());\r\n\t\tauthorizationSubjectEClass.getESuperTypes().add(this.getAnnotation());\r\n\t\tannCRUDActivityEClass.getESuperTypes().add(this.getAnnotatedElement());\r\n\t\tnewPropertyEClass.getESuperTypes().add(this.getAnnotation());\r\n\r\n\t\t// Initialize classes, features, and operations; add parameters\r\n\t\tinitEClass(annotationModelEClass, AnnotationModel.class, \"AnnotationModel\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getAnnotationModel_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, AnnotationModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getAnnotationModel_HasAnnotatedElement(), this.getAnnotatedElement(), null, \"hasAnnotatedElement\", null, 1, -1, AnnotationModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getAnnotationModel_HasAnnotation(), this.getAnnotation(), null, \"hasAnnotation\", null, 1, -1, AnnotationModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(annotationEClass, Annotation.class, \"Annotation\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEClass(authorizableResourceEClass, AuthorizableResource.class, \"AuthorizableResource\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getAuthorizableResource_HasResourceAccessPolicySet(), this.getResourceAccessPolicySet(), null, \"hasResourceAccessPolicySet\", null, 1, 1, AuthorizableResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getAuthorizableResource_IsAuthorizableResource(), this.getAnnResource(), null, \"isAuthorizableResource\", null, 1, 1, AuthorizableResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getAuthorizableResource_BTrackOwnership(), ecorePackage.getEBoolean(), \"bTrackOwnership\", null, 1, 1, AuthorizableResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(resourceAccessPolicySetEClass, ResourceAccessPolicySet.class, \"ResourceAccessPolicySet\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getResourceAccessPolicySet_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, ResourceAccessPolicySet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getResourceAccessPolicySet_PolicyCombiningAlgorithm(), this.getCombiningAlgorithm(), \"policyCombiningAlgorithm\", null, 1, 1, ResourceAccessPolicySet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getResourceAccessPolicySet_HasResourceAccessPolicy(), this.getResourceAccessPolicy(), null, \"hasResourceAccessPolicy\", null, 1, -1, ResourceAccessPolicySet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getResourceAccessPolicySet_HasResourceAccessPolicySet(), this.getResourceAccessPolicySet(), null, \"hasResourceAccessPolicySet\", null, 0, -1, ResourceAccessPolicySet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(annotatedElementEClass, AnnotatedElement.class, \"AnnotatedElement\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEClass(annResourceEClass, AnnResource.class, \"AnnResource\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getAnnResource_AnnotatesResource(), theServiceCIMPackage.getResource(), null, \"annotatesResource\", null, 1, 1, AnnResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(resourceAccessPolicyEClass, ResourceAccessPolicy.class, \"ResourceAccessPolicy\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getResourceAccessPolicy_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, ResourceAccessPolicy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getResourceAccessPolicy_RuleCombiningAlgorithm(), this.getCombiningAlgorithm(), \"ruleCombiningAlgorithm\", null, 1, 1, ResourceAccessPolicy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getResourceAccessPolicy_HasApplyCondition(), this.getCondition(), null, \"hasApplyCondition\", null, 0, -1, ResourceAccessPolicy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getResourceAccessPolicy_HasResourceAccessRule(), this.getResourceAccessRule(), null, \"hasResourceAccessRule\", null, 1, -1, ResourceAccessPolicy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(conditionEClass, Condition.class, \"Condition\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getCondition_Operator(), this.getOperator(), \"operator\", \"UNDEFINED\", 1, 1, Condition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getCondition_HasLeftSideOperand(), this.getAttribute(), null, \"hasLeftSideOperand\", null, 1, 1, Condition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getCondition_HasRightSideOperand(), this.getAttribute(), null, \"hasRightSideOperand\", null, 1, 1, Condition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(attributeEClass, Attribute.class, \"Attribute\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getAttribute_AttributeCategory(), this.getAttributeCategory(), \"attributeCategory\", null, 1, 1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getAttribute_IsAttributeExistingProperty(), this.getAnnProperty(), null, \"isAttributeExistingProperty\", null, 0, 1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getAttribute_Value(), ecorePackage.getEString(), \"value\", null, 0, -1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getAttribute_IsAttributeNewProperty(), this.getNewProperty(), null, \"isAttributeNewProperty\", null, 0, 1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getAttribute_IsAttributeResource(), this.getAnnResource(), null, \"isAttributeResource\", null, 0, 1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(annPropertyEClass, AnnProperty.class, \"AnnProperty\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getAnnProperty_AnnotatesProperty(), theServiceCIMPackage.getProperty(), null, \"annotatesProperty\", null, 1, 1, AnnProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(resourceAccessRuleEClass, ResourceAccessRule.class, \"ResourceAccessRule\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getResourceAccessRule_HasMatchCondition(), this.getCondition(), null, \"hasMatchCondition\", null, 1, -1, ResourceAccessRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getResourceAccessRule_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, ResourceAccessRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getResourceAccessRule_RuleType(), this.getRuleType(), \"ruleType\", null, 1, 1, ResourceAccessRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getResourceAccessRule_HasAllowedAction(), this.getAllowedAction(), null, \"hasAllowedAction\", null, 1, -1, ResourceAccessRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(authorizationSubjectEClass, AuthorizationSubject.class, \"AuthorizationSubject\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getAuthorizationSubject_IsAuthorizationSubject(), this.getAnnResource(), null, \"isAuthorizationSubject\", null, 1, 1, AuthorizationSubject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(annCRUDActivityEClass, AnnCRUDActivity.class, \"AnnCRUDActivity\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getAnnCRUDActivity_AnnotatesCRUDActivity(), theServiceCIMPackage.getCRUDActivity(), null, \"annotatesCRUDActivity\", null, 1, 1, AnnCRUDActivity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(allowedActionEClass, AllowedAction.class, \"AllowedAction\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getAllowedAction_IsAllowedAction(), this.getAnnCRUDActivity(), null, \"isAllowedAction\", null, 1, 1, AllowedAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(newPropertyEClass, NewProperty.class, \"NewProperty\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getNewProperty_BelongsToResource(), this.getAnnResource(), null, \"belongsToResource\", null, 1, 1, NewProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getNewProperty_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, NewProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getNewProperty_Type(), ecorePackage.getEString(), \"type\", null, 1, 1, NewProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getNewProperty_BIsUnique(), ecorePackage.getEBoolean(), \"bIsUnique\", null, 1, 1, NewProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\t// Initialize enums and add enum literals\r\n\t\tinitEEnum(combiningAlgorithmEEnum, CombiningAlgorithm.class, \"CombiningAlgorithm\");\r\n\t\taddEEnumLiteral(combiningAlgorithmEEnum, CombiningAlgorithm.DENY_OVERRIDES);\r\n\t\taddEEnumLiteral(combiningAlgorithmEEnum, CombiningAlgorithm.PERMIT_OVERRIDES);\r\n\t\taddEEnumLiteral(combiningAlgorithmEEnum, CombiningAlgorithm.DENY_UNLESS_PERMIT);\r\n\t\taddEEnumLiteral(combiningAlgorithmEEnum, CombiningAlgorithm.PERMIT_UNLESS_DENY);\r\n\r\n\t\tinitEEnum(operatorEEnum, Operator.class, \"Operator\");\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.EQUAL);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.GREATER_THAN);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.LESS_THAN);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.GREATER_THAN_OR_EQUAL);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.LESS_THAN_OR_EQUAL);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.NOT_EQUAL);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.SUBSET);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.NOT_SUBSET);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.SET_CONTAINS);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.SET_NOT_CONTAINS);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.REGEX);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.UNDEFINED);\r\n\r\n\t\tinitEEnum(attributeCategoryEEnum, AttributeCategory.class, \"AttributeCategory\");\r\n\t\taddEEnumLiteral(attributeCategoryEEnum, AttributeCategory.ACCESS_SUBJECT);\r\n\t\taddEEnumLiteral(attributeCategoryEEnum, AttributeCategory.ACCESSED_RESOURCE);\r\n\t\taddEEnumLiteral(attributeCategoryEEnum, AttributeCategory.PARENT_RESOURCE);\r\n\t\taddEEnumLiteral(attributeCategoryEEnum, AttributeCategory.CHILD_RESOURCE);\r\n\t\taddEEnumLiteral(attributeCategoryEEnum, AttributeCategory.INCLUDED_RESOURCE);\r\n\t\taddEEnumLiteral(attributeCategoryEEnum, AttributeCategory.CONSTANT);\r\n\r\n\t\tinitEEnum(ruleTypeEEnum, RuleType.class, \"RuleType\");\r\n\t\taddEEnumLiteral(ruleTypeEEnum, RuleType.PERMIT);\r\n\t\taddEEnumLiteral(ruleTypeEEnum, RuleType.DENY);\r\n\r\n\t\t// Create resource\r\n\t\tcreateResource(eNS_URI);\r\n\t}", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tServicesPackage theServicesPackage = (ServicesPackage)EPackage.Registry.INSTANCE.getEPackage(ServicesPackage.eNS_URI);\n\t\tLibraryPackage theLibraryPackage = (LibraryPackage)EPackage.Registry.INSTANCE.getEPackage(LibraryPackage.eNS_URI);\n\t\tXMLTypePackage theXMLTypePackage = (XMLTypePackage)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI);\n\t\tGenericsPackage theGenericsPackage = (GenericsPackage)EPackage.Registry.INSTANCE.getEPackage(GenericsPackage.eNS_URI);\n\t\tMetricsPackage theMetricsPackage = (MetricsPackage)EPackage.Registry.INSTANCE.getEPackage(MetricsPackage.eNS_URI);\n\t\tOperatorsPackage theOperatorsPackage = (OperatorsPackage)EPackage.Registry.INSTANCE.getEPackage(OperatorsPackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tanalyzerJobEClass.getESuperTypes().add(this.getJob());\n\t\tcomponentFailureEClass.getESuperTypes().add(this.getExpressionFailure());\n\t\tcomponentWorkFlowRunEClass.getESuperTypes().add(this.getWorkFlowRun());\n\t\texpressionFailureEClass.getESuperTypes().add(this.getFailure());\n\t\tjobEClass.getESuperTypes().add(theGenericsPackage.getBase());\n\t\tmetricSourceJobEClass.getESuperTypes().add(this.getJob());\n\t\tnodeReporterJobEClass.getESuperTypes().add(this.getJob());\n\t\tnodeTypeReporterJobEClass.getESuperTypes().add(this.getJob());\n\t\toperatorReporterJobEClass.getESuperTypes().add(this.getJob());\n\t\tretentionJobEClass.getESuperTypes().add(this.getJob());\n\t\trfsServiceMonitoringJobEClass.getESuperTypes().add(this.getJob());\n\t\trfsServiceReporterJobEClass.getESuperTypes().add(this.getJob());\n\t\tserviceUserFailureEClass.getESuperTypes().add(this.getExpressionFailure());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(analyzerJobEClass, AnalyzerJob.class, \"AnalyzerJob\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAnalyzerJob_RFSService(), theServicesPackage.getRFSService(), null, \"rFSService\", null, 1, 1, AnalyzerJob.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(componentFailureEClass, ComponentFailure.class, \"ComponentFailure\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getComponentFailure_ComponentRef(), theLibraryPackage.getComponent(), null, \"componentRef\", null, 0, 1, ComponentFailure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(componentWorkFlowRunEClass, ComponentWorkFlowRun.class, \"ComponentWorkFlowRun\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getComponentWorkFlowRun_FailureRefs(), this.getFailure(), null, \"failureRefs\", null, 0, -1, ComponentWorkFlowRun.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(expressionFailureEClass, ExpressionFailure.class, \"ExpressionFailure\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getExpressionFailure_ExpressionRef(), theLibraryPackage.getExpression(), null, \"expressionRef\", null, 0, 1, ExpressionFailure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(failureEClass, Failure.class, \"Failure\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getFailure_Message(), theXMLTypePackage.getString(), \"message\", null, 0, 1, Failure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(jobEClass, Job.class, \"Job\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getJob_EndTime(), theXMLTypePackage.getDateTime(), \"endTime\", null, 0, 1, Job.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJob_Interval(), theXMLTypePackage.getInt(), \"interval\", null, 0, 1, Job.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJob_JobState(), this.getJobState(), \"jobState\", null, 0, 1, Job.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJob_Name(), theXMLTypePackage.getString(), \"name\", null, 0, 1, Job.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJob_Repeat(), theXMLTypePackage.getInt(), \"repeat\", null, 0, 1, Job.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJob_StartTime(), theXMLTypePackage.getDateTime(), \"startTime\", null, 0, 1, Job.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(jobRunContainerEClass, JobRunContainer.class, \"JobRunContainer\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getJobRunContainer_Job(), this.getJob(), null, \"job\", null, 1, 1, JobRunContainer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJobRunContainer_WorkFlowRuns(), this.getWorkFlowRun(), null, \"workFlowRuns\", null, 0, -1, JobRunContainer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(metricSourceJobEClass, MetricSourceJob.class, \"MetricSourceJob\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getMetricSourceJob_MetricSources(), theMetricsPackage.getMetricSource(), null, \"metricSources\", null, 1, -1, MetricSourceJob.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(nodeReporterJobEClass, NodeReporterJob.class, \"NodeReporterJob\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getNodeReporterJob_Node(), theOperatorsPackage.getNode(), null, \"node\", null, 1, 1, NodeReporterJob.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(nodeTypeReporterJobEClass, NodeTypeReporterJob.class, \"NodeTypeReporterJob\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getNodeTypeReporterJob_NodeType(), theLibraryPackage.getNodeType(), null, \"nodeType\", null, 1, 1, NodeTypeReporterJob.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getNodeTypeReporterJob_ScopeObject(), ecorePackage.getEObject(), null, \"scopeObject\", null, 1, 1, NodeTypeReporterJob.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(operatorReporterJobEClass, OperatorReporterJob.class, \"OperatorReporterJob\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getOperatorReporterJob_Operator(), theOperatorsPackage.getOperator(), null, \"operator\", null, 1, 1, OperatorReporterJob.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(retentionJobEClass, RetentionJob.class, \"RetentionJob\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(rfsServiceMonitoringJobEClass, RFSServiceMonitoringJob.class, \"RFSServiceMonitoringJob\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getRFSServiceMonitoringJob_RFSService(), theServicesPackage.getRFSService(), null, \"rFSService\", null, 1, 1, RFSServiceMonitoringJob.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(rfsServiceReporterJobEClass, RFSServiceReporterJob.class, \"RFSServiceReporterJob\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getRFSServiceReporterJob_RFSService(), theServicesPackage.getRFSService(), null, \"rFSService\", null, 1, 1, RFSServiceReporterJob.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(serviceUserFailureEClass, ServiceUserFailure.class, \"ServiceUserFailure\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getServiceUserFailure_ServiceUserRef(), theServicesPackage.getServiceUser(), null, \"serviceUserRef\", null, 0, 1, ServiceUserFailure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(workFlowRunEClass, WorkFlowRun.class, \"WorkFlowRun\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getWorkFlowRun_Ended(), theXMLTypePackage.getDateTime(), \"ended\", null, 0, 1, WorkFlowRun.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getWorkFlowRun_Log(), theGenericsPackage.getLongText(), \"log\", null, 0, 1, WorkFlowRun.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getWorkFlowRun_Progress(), theXMLTypePackage.getInt(), \"progress\", null, 0, 1, WorkFlowRun.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getWorkFlowRun_ProgressMessage(), theXMLTypePackage.getString(), \"progressMessage\", null, 0, 1, WorkFlowRun.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getWorkFlowRun_ProgressTask(), theXMLTypePackage.getString(), \"progressTask\", null, 0, 1, WorkFlowRun.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getWorkFlowRun_Started(), theXMLTypePackage.getDateTime(), \"started\", null, 0, 1, WorkFlowRun.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getWorkFlowRun_State(), this.getJobRunState(), \"state\", null, 0, 1, WorkFlowRun.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Initialize enums and add enum literals\n\t\tinitEEnum(jobRunStateEEnum, JobRunState.class, \"JobRunState\");\n\t\taddEEnumLiteral(jobRunStateEEnum, JobRunState.RUNNING);\n\t\taddEEnumLiteral(jobRunStateEEnum, JobRunState.FINISHED_SUCCESSFULLY);\n\t\taddEEnumLiteral(jobRunStateEEnum, JobRunState.FINISHED_WITH_ERROR);\n\n\t\tinitEEnum(jobStateEEnum, JobState.class, \"JobState\");\n\t\taddEEnumLiteral(jobStateEEnum, JobState.ACTIVE);\n\t\taddEEnumLiteral(jobStateEEnum, JobState.IN_ACTIVE);\n\n\t\t// Initialize data types\n\t\tinitEDataType(jobRunStateObjectEDataType, JobRunState.class, \"JobRunStateObject\", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEDataType(jobStateObjectEDataType, JobState.class, \"JobStateObject\", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\n\t\t// Create annotations\n\t\t// http://www.eclipse.org/emf/2002/Ecore\n\t\tcreateEcoreAnnotations();\n\t\t// http:///org/eclipse/emf/ecore/util/ExtendedMetaData\n\t\tcreateExtendedMetaDataAnnotations();\n\t}", "public void initializePackageContents()\n {\n if (isInitialized) return;\n isInitialized = true;\n\n // Initialize package\n setName(eNAME);\n setNsPrefix(eNS_PREFIX);\n setNsURI(eNS_URI);\n\n // Create type parameters\n\n // Set bounds for type parameters\n\n // Add supertypes to classes\n acT_SpNoMsgEClass.getESuperTypes().add(this.getACTION());\n acT_SpBrEClass.getESuperTypes().add(this.getACTION());\n acT_SpUniEClass.getESuperTypes().add(this.getACTION());\n acT_InBrEClass.getESuperTypes().add(this.getACTION());\n acT_InUniEClass.getESuperTypes().add(this.getACTION());\n pR_ExprEClass.getESuperTypes().add(this.getTerminal_PR_Expr());\n ratE_ExprEClass.getESuperTypes().add(this.getIRange());\n ratE_ExprEClass.getESuperTypes().add(this.getTerminal_RATE_Expr());\n agenT_NUMEClass.getESuperTypes().add(this.getTerminal_PR_Expr());\n\n // Initialize classes and features; add operations and parameters\n initEClass(modelEClass, Model.class, \"Model\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getModel_Params(), this.getParam(), null, \"params\", null, 0, -1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getModel_States(), this.getAgentState(), null, \"states\", null, 0, -1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getModel_Population(), this.getPOPULATION(), null, \"population\", null, 0, 1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(paramEClass, Param.class, \"Param\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getParam_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Param.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getParam_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, Param.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(agentStateEClass, AgentState.class, \"AgentState\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getAgentState_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, AgentState.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getAgentState_Prefixs(), this.getPrefix(), null, \"prefixs\", null, 0, -1, AgentState.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(prefixEClass, Prefix.class, \"Prefix\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getPrefix_Action(), this.getACTION(), null, \"action\", null, 0, 1, Prefix.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getPrefix_Continue(), ecorePackage.getEString(), \"continue\", null, 0, 1, Prefix.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(actionEClass, org.xtext.edinburgh.paloma.ACTION.class, \"ACTION\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getACTION_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, org.xtext.edinburgh.paloma.ACTION.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getACTION_Rate(), this.getRATE_Expr(), null, \"rate\", null, 0, 1, org.xtext.edinburgh.paloma.ACTION.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(acT_SpNoMsgEClass, ACT_SpNoMsg.class, \"ACT_SpNoMsg\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(acT_SpBrEClass, ACT_SpBr.class, \"ACT_SpBr\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getACT_SpBr_Range(), this.getIRange(), null, \"range\", null, 0, 1, ACT_SpBr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(acT_SpUniEClass, ACT_SpUni.class, \"ACT_SpUni\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getACT_SpUni_Range(), this.getIRange(), null, \"range\", null, 0, 1, ACT_SpUni.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(acT_InBrEClass, ACT_InBr.class, \"ACT_InBr\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getACT_InBr_Value(), this.getPR_Expr(), null, \"value\", null, 0, 1, ACT_InBr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(acT_InUniEClass, ACT_InUni.class, \"ACT_InUni\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getACT_InUni_Value(), this.getPR_Expr(), null, \"value\", null, 0, 1, ACT_InUni.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(iRangeEClass, IRange.class, \"IRange\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(pR_ExprEClass, PR_Expr.class, \"PR_Expr\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getPR_Expr_PrE(), this.getTerminal_PR_Expr(), null, \"prE\", null, 0, -1, PR_Expr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(terminal_PR_ExprEClass, Terminal_PR_Expr.class, \"Terminal_PR_Expr\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getTerminal_PR_Expr_LinkedParam(), ecorePackage.getEString(), \"linkedParam\", null, 0, 1, Terminal_PR_Expr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(ratE_ExprEClass, RATE_Expr.class, \"RATE_Expr\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getRATE_Expr_Rt(), this.getTerminal_RATE_Expr(), null, \"rt\", null, 0, -1, RATE_Expr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(terminal_RATE_ExprEClass, Terminal_RATE_Expr.class, \"Terminal_RATE_Expr\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getTerminal_RATE_Expr_LinkedParam(), ecorePackage.getEString(), \"linkedParam\", null, 0, 1, Terminal_RATE_Expr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(agenT_NUMEClass, org.xtext.edinburgh.paloma.AGENT_NUM.class, \"AGENT_NUM\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getAGENT_NUM_Type(), ecorePackage.getEString(), \"type\", null, 0, 1, org.xtext.edinburgh.paloma.AGENT_NUM.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(populationEClass, org.xtext.edinburgh.paloma.POPULATION.class, \"POPULATION\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getPOPULATION_Popu(), this.getAGENTS(), null, \"popu\", null, 0, -1, org.xtext.edinburgh.paloma.POPULATION.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(agentsEClass, org.xtext.edinburgh.paloma.AGENTS.class, \"AGENTS\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getAGENTS_Type(), ecorePackage.getEString(), \"type\", null, 0, 1, org.xtext.edinburgh.paloma.AGENTS.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n // Create resource\n createResource(eNS_URI);\n }", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tCorePackage theCorePackage = (CorePackage)EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI);\n\t\tEcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI);\n\t\tObjectsPackage theObjectsPackage = (ObjectsPackage)EPackage.Registry.INSTANCE.getEPackage(ObjectsPackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\treadCsvFileEClass.getESuperTypes().add(theCorePackage.getCommand());\n\t\tprintEClass.getESuperTypes().add(theCorePackage.getCommand());\n\t\twriteCsvFileEClass.getESuperTypes().add(theCorePackage.getCommand());\n\t\texcludeColumnsEClass.getESuperTypes().add(theCorePackage.getCommand());\n\t\tselectColumnsEClass.getESuperTypes().add(theCorePackage.getCommand());\n\t\tassertTablesMatchEClass.getESuperTypes().add(theCorePackage.getCommand());\n\t\twriteLinesEClass.getESuperTypes().add(theCorePackage.getCommand());\n\t\treadLinesEClass.getESuperTypes().add(theCorePackage.getCommand());\n\t\tselectRowsEClass.getESuperTypes().add(theCorePackage.getCommand());\n\t\texcludeRowsEClass.getESuperTypes().add(theCorePackage.getCommand());\n\t\tasTableDataEClass.getESuperTypes().add(theCorePackage.getCommand());\n\t\treadPropertiesEClass.getESuperTypes().add(theCorePackage.getCommand());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(readCsvFileEClass, ReadCsvFile.class, \"ReadCsvFile\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getReadCsvFile_Uri(), ecorePackage.getEString(), \"uri\", null, 0, 1, ReadCsvFile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(printEClass, Print.class, \"Print\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPrint_Input(), theEcorePackage.getEObject(), null, \"input\", null, 0, -1, Print.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(writeCsvFileEClass, WriteCsvFile.class, \"WriteCsvFile\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getWriteCsvFile_Table(), theObjectsPackage.getTable(), null, \"table\", null, 0, 1, WriteCsvFile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getWriteCsvFile_Uri(), theEcorePackage.getEString(), \"uri\", null, 0, 1, WriteCsvFile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(excludeColumnsEClass, ExcludeColumns.class, \"ExcludeColumns\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getExcludeColumns_Table(), theObjectsPackage.getTable(), null, \"table\", null, 0, 1, ExcludeColumns.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getExcludeColumns_Columns(), theEcorePackage.getEString(), \"columns\", null, 0, -1, ExcludeColumns.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(selectColumnsEClass, SelectColumns.class, \"SelectColumns\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getSelectColumns_Table(), theObjectsPackage.getTable(), null, \"table\", null, 0, 1, SelectColumns.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSelectColumns_Columns(), theEcorePackage.getEString(), \"columns\", null, 0, -1, SelectColumns.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(assertTablesMatchEClass, AssertTablesMatch.class, \"AssertTablesMatch\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAssertTablesMatch_Left(), theObjectsPackage.getTable(), null, \"left\", null, 0, 1, AssertTablesMatch.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getAssertTablesMatch_Right(), theObjectsPackage.getTable(), null, \"right\", null, 0, 1, AssertTablesMatch.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAssertTablesMatch_IgnoreColumnOrder(), theEcorePackage.getEBoolean(), \"ignoreColumnOrder\", \"false\", 0, 1, AssertTablesMatch.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAssertTablesMatch_IgnoreMissingColumns(), this.getIgnoreColumnsMode(), \"ignoreMissingColumns\", \"NONE\", 0, 1, AssertTablesMatch.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(writeLinesEClass, WriteLines.class, \"WriteLines\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getWriteLines_Uri(), theEcorePackage.getEString(), \"uri\", null, 0, 1, WriteLines.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getWriteLines_Append(), theEcorePackage.getEBoolean(), \"append\", \"false\", 0, 1, WriteLines.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(readLinesEClass, ReadLines.class, \"ReadLines\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getReadLines_Uri(), theEcorePackage.getEString(), \"uri\", null, 1, 1, ReadLines.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(selectRowsEClass, SelectRows.class, \"SelectRows\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getSelectRows_Table(), theObjectsPackage.getTable(), null, \"table\", null, 0, 1, SelectRows.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSelectRows_Column(), theEcorePackage.getEString(), \"column\", null, 0, 1, SelectRows.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSelectRows_Value(), theEcorePackage.getEString(), \"value\", null, 0, 1, SelectRows.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSelectRows_Match(), this.getRowMatchMode(), \"match\", null, 0, 1, SelectRows.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(excludeRowsEClass, ExcludeRows.class, \"ExcludeRows\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getExcludeRows_Table(), theObjectsPackage.getTable(), null, \"table\", null, 0, 1, ExcludeRows.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getExcludeRows_Column(), theEcorePackage.getEString(), \"column\", null, 0, 1, ExcludeRows.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getExcludeRows_Value(), theEcorePackage.getEString(), \"value\", null, 0, 1, ExcludeRows.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getExcludeRows_Match(), this.getRowMatchMode(), \"match\", null, 0, 1, ExcludeRows.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(asTableDataEClass, AsTableData.class, \"AsTableData\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAsTableData_Input(), theEcorePackage.getEObject(), null, \"input\", null, 0, -1, AsTableData.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(readPropertiesEClass, ReadProperties.class, \"ReadProperties\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getReadProperties_Uri(), ecorePackage.getEString(), \"uri\", null, 0, 1, ReadProperties.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Initialize enums and add enum literals\n\t\tinitEEnum(ignoreColumnsModeEEnum, IgnoreColumnsMode.class, \"IgnoreColumnsMode\");\n\t\taddEEnumLiteral(ignoreColumnsModeEEnum, IgnoreColumnsMode.NONE);\n\t\taddEEnumLiteral(ignoreColumnsModeEEnum, IgnoreColumnsMode.LEFT);\n\t\taddEEnumLiteral(ignoreColumnsModeEEnum, IgnoreColumnsMode.RIGHT);\n\t\taddEEnumLiteral(ignoreColumnsModeEEnum, IgnoreColumnsMode.BOTH);\n\n\t\tinitEEnum(rowMatchModeEEnum, RowMatchMode.class, \"RowMatchMode\");\n\t\taddEEnumLiteral(rowMatchModeEEnum, RowMatchMode.EXACT);\n\t\taddEEnumLiteral(rowMatchModeEEnum, RowMatchMode.GLOB);\n\t\taddEEnumLiteral(rowMatchModeEEnum, RowMatchMode.REGEXP);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\n\t\t// Create annotations\n\t\t// http://www.eclipse.org/ecl/docs\n\t\tcreateDocsAnnotations();\n\t\t// http://www.eclipse.org/ecl/internal\n\t\tcreateInternalAnnotations();\n\t\t// http://www.eclipse.org/ecl/input\n\t\tcreateInputAnnotations();\n\t}", "public void initializePackageContents()\n {\n if (isInitialized) return;\n isInitialized = true;\n\n // Initialize package\n setName(eNAME);\n setNsPrefix(eNS_PREFIX);\n setNsURI(eNS_URI);\n\n // Create type parameters\n\n // Set bounds for type parameters\n\n // Add supertypes to classes\n createFolderStatementEClass.getESuperTypes().add(this.getCreateStatement());\n createFileStatementEClass.getESuperTypes().add(this.getCreateStatement());\n\n // Initialize classes and features; add operations and parameters\n initEClass(persistEClass, Persist.class, \"Persist\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getPersist_Model(), ecorePackage.getEString(), \"model\", null, 0, 1, Persist.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getPersist_Statements(), this.getRuleStatement(), null, \"statements\", null, 0, -1, Persist.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(ruleStatementEClass, RuleStatement.class, \"RuleStatement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getRuleStatement_Id(), ecorePackage.getEString(), \"id\", null, 0, 1, RuleStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getRuleStatement_Rules(), this.getForEachStatement(), null, \"rules\", null, 0, -1, RuleStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(forEachStatementEClass, ForEachStatement.class, \"ForEachStatement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getForEachStatement_Class(), this.getEClassName(), null, \"class\", null, 0, 1, ForEachStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getForEachStatement_Contents(), this.getCreateStatement(), null, \"contents\", null, 0, -1, ForEachStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getForEachStatement_Calls(), this.getCallStatement(), null, \"calls\", null, 0, -1, ForEachStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(createStatementEClass, CreateStatement.class, \"CreateStatement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getCreateStatement_Name(), this.getFileName(), null, \"name\", null, 0, 1, CreateStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(createFolderStatementEClass, CreateFolderStatement.class, \"CreateFolderStatement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getCreateFolderStatement_Contents(), this.getCreateStatement(), null, \"contents\", null, 0, -1, CreateFolderStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getCreateFolderStatement_Calls(), this.getCallStatement(), null, \"calls\", null, 0, -1, CreateFolderStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(createFileStatementEClass, CreateFileStatement.class, \"CreateFileStatement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getCreateFileStatement_IncludedReferencing(), this.getWithStatement(), null, \"includedReferencing\", null, 0, 1, CreateFileStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getCreateFileStatement_IncludedAttributes(), this.getIncludeStatement(), null, \"includedAttributes\", null, 0, 1, CreateFileStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(fileNameEClass, FileName.class, \"FileName\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getFileName_Prefix(), ecorePackage.getEString(), \"prefix\", null, 0, 1, FileName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getFileName_Attr(), this.getEAttributeName(), null, \"attr\", null, 0, 1, FileName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getFileName_Right(), this.getFileName(), null, \"right\", null, 0, 1, FileName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(includeStatementEClass, IncludeStatement.class, \"IncludeStatement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getIncludeStatement_Included(), this.getEReferenceName(), null, \"included\", null, 0, -1, IncludeStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(withStatementEClass, WithStatement.class, \"WithStatement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getWithStatement_Included(), this.getEClassName(), null, \"included\", null, 0, -1, WithStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(callStatementEClass, CallStatement.class, \"CallStatement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getCallStatement_Rules(), ecorePackage.getEString(), \"rules\", null, 0, -1, CallStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(eClassNameEClass, EClassName.class, \"EClassName\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getEClassName_Base(), ecorePackage.getEString(), \"base\", null, 0, 1, EClassName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getEClassName_Fields(), ecorePackage.getEString(), \"fields\", null, 0, -1, EClassName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(eAttributeNameEClass, EAttributeName.class, \"EAttributeName\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getEAttributeName_Base(), ecorePackage.getEString(), \"base\", null, 0, 1, EAttributeName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getEAttributeName_Fields(), ecorePackage.getEString(), \"fields\", null, 0, -1, EAttributeName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(eReferenceNameEClass, EReferenceName.class, \"EReferenceName\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getEReferenceName_Base(), ecorePackage.getEString(), \"base\", null, 0, 1, EReferenceName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getEReferenceName_Fields(), ecorePackage.getEString(), \"fields\", null, 0, -1, EReferenceName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n // Create resource\n createResource(eNS_URI);\n }", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tuserTaskEClass.getESuperTypes().add(this.getTask());\n\t\tapplicationTaskEClass.getESuperTypes().add(this.getTask());\n\t\tinteractionTaskEClass.getESuperTypes().add(this.getTask());\n\t\tabstractionTaskEClass.getESuperTypes().add(this.getTask());\n\t\tnullTaskEClass.getESuperTypes().add(this.getTask());\n\t\tchoiceOperatorEClass.getESuperTypes().add(this.getTemporalOperator());\n\t\torderIndependenceOperatorEClass.getESuperTypes().add(this.getTemporalOperator());\n\t\tinterleavingOperatorEClass.getESuperTypes().add(this.getTemporalOperator());\n\t\tsynchronizationOperatorEClass.getESuperTypes().add(this.getTemporalOperator());\n\t\tparallelOperatorEClass.getESuperTypes().add(this.getTemporalOperator());\n\t\tdisablingOperatorEClass.getESuperTypes().add(this.getTemporalOperator());\n\t\tsequentialEnablingInfoOperatorEClass.getESuperTypes().add(this.getTemporalOperator());\n\t\tsequentialEnablingOperatorEClass.getESuperTypes().add(this.getTemporalOperator());\n\t\tsuspendResumeOperatorEClass.getESuperTypes().add(this.getTemporalOperator());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(taskModelEClass, TaskModel.class, \"TaskModel\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getTaskModel_Root(), this.getTask(), null, \"root\", null, 1, 1, TaskModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTaskModel_Tasks(), this.getTask(), null, \"tasks\", null, 1, -1, TaskModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getTaskModel_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, TaskModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(taskEClass, Task.class, \"Task\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getTask_Id(), ecorePackage.getEString(), \"id\", null, 0, 1, Task.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getTask_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Task.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTask_Operator(), this.getTemporalOperator(), null, \"operator\", null, 0, 1, Task.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTask_Subtasks(), this.getTask(), this.getTask_Parent(), \"subtasks\", null, 0, -1, Task.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTask_Parent(), this.getTask(), this.getTask_Subtasks(), \"parent\", null, 0, 1, Task.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getTask_Min(), ecorePackage.getEIntegerObject(), \"min\", null, 0, 1, Task.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getTask_Max(), ecorePackage.getEIntegerObject(), \"max\", null, 0, 1, Task.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getTask_Iterative(), ecorePackage.getEBooleanObject(), \"iterative\", null, 0, 1, Task.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(userTaskEClass, UserTask.class, \"UserTask\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(applicationTaskEClass, ApplicationTask.class, \"ApplicationTask\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(interactionTaskEClass, InteractionTask.class, \"InteractionTask\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(abstractionTaskEClass, AbstractionTask.class, \"AbstractionTask\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(nullTaskEClass, NullTask.class, \"NullTask\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(temporalOperatorEClass, TemporalOperator.class, \"TemporalOperator\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(choiceOperatorEClass, ChoiceOperator.class, \"ChoiceOperator\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(orderIndependenceOperatorEClass, OrderIndependenceOperator.class, \"OrderIndependenceOperator\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(interleavingOperatorEClass, InterleavingOperator.class, \"InterleavingOperator\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(synchronizationOperatorEClass, SynchronizationOperator.class, \"SynchronizationOperator\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(parallelOperatorEClass, ParallelOperator.class, \"ParallelOperator\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(disablingOperatorEClass, DisablingOperator.class, \"DisablingOperator\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(sequentialEnablingInfoOperatorEClass, SequentialEnablingInfoOperator.class, \"SequentialEnablingInfoOperator\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(sequentialEnablingOperatorEClass, SequentialEnablingOperator.class, \"SequentialEnablingOperator\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(suspendResumeOperatorEClass, SuspendResumeOperator.class, \"SuspendResumeOperator\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tstateEClass.getESuperTypes().add(this.getEndPoint());\n\t\tconnectorEClass.getESuperTypes().add(this.getEndPoint());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(stateEClass, State.class, \"State\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getState_Name(), ecorePackage.getEString(), \"Name\", null, 0, 1, State.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getState_Invariant(), ecorePackage.getEString(), \"Invariant\", null, 0, 1, State.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getState_Initial(), ecorePackage.getEBoolean(), \"Initial\", null, 0, 1, State.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getState_Urgent(), ecorePackage.getEBoolean(), \"Urgent\", null, 0, 1, State.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getState_Committed(), ecorePackage.getEBoolean(), \"Committed\", null, 0, 1, State.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(connectorEClass, Connector.class, \"Connector\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getConnector_Name(), ecorePackage.getEString(), \"Name\", null, 0, 1, Connector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getConnector_Diagram(), this.getDiagram(), this.getDiagram_Connectors(), \"diagram\", null, 1, 1, Connector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(diagramEClass, Diagram.class, \"Diagram\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getDiagram_Name(), ecorePackage.getEString(), \"Name\", null, 0, 1, Diagram.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getDiagram_Connectors(), this.getConnector(), this.getConnector_Diagram(), \"connectors\", null, 0, -1, Diagram.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getDiagram_States(), this.getState(), null, \"states\", null, 0, -1, Diagram.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getDiagram_Subdiagrams(), this.getDiagram(), null, \"subdiagrams\", null, 0, -1, Diagram.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getDiagram_Edges(), this.getEdge(), null, \"edges\", null, 0, -1, Diagram.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getDiagram_IsParallel(), ecorePackage.getEBoolean(), \"IsParallel\", null, 0, 1, Diagram.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(edgeEClass, Edge.class, \"Edge\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getEdge_Start(), this.getEndPoint(), this.getEndPoint_OutgoingEdges(), \"start\", null, 1, 1, Edge.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getEdge_End(), this.getEndPoint(), null, \"end\", null, 1, 1, Edge.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getEdge_EReference0(), this.getDiagram(), null, \"EReference0\", null, 0, 1, Edge.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getEdge_Select(), ecorePackage.getEString(), \"Select\", null, 0, 1, Edge.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getEdge_Guard(), ecorePackage.getEString(), \"Guard\", null, 0, 1, Edge.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getEdge_Sync(), ecorePackage.getEString(), \"Sync\", null, 0, 1, Edge.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getEdge_Update(), ecorePackage.getEString(), \"Update\", null, 0, 1, Edge.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getEdge_Comments(), ecorePackage.getEString(), \"Comments\", null, 0, 1, Edge.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(endPointEClass, EndPoint.class, \"EndPoint\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getEndPoint_OutgoingEdges(), this.getEdge(), this.getEdge_Start(), \"outgoingEdges\", null, 0, -1, EndPoint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tannotationEClass.getESuperTypes().add(this.getNamedElement());\n\t\ttargetLanguageEClass.getESuperTypes().add(this.getNamedElement());\n\t\ttechnologyEClass.getESuperTypes().add(this.getNamedElement());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(annotationEClass, Annotation.class, \"Annotation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAnnotation_Implementations(), this.getImplementation(), null, \"implementations\", null, 0, -1, Annotation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(implementationEClass, Implementation.class, \"Implementation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getImplementation_Code(), ecorePackage.getEString(), \"code\", null, 1, 1, Implementation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getImplementation_Technology(), this.getTechnology(), null, \"technology\", null, 1, 1, Implementation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getImplementation_Language(), this.getTargetLanguage(), null, \"language\", null, 1, 1, Implementation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(semanticsEClass, Semantics.class, \"Semantics\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getSemantics_Annotations(), this.getAnnotation(), null, \"annotations\", null, 0, -1, Semantics.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSemantics_Languages(), this.getTargetLanguage(), null, \"languages\", null, 0, -1, Semantics.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSemantics_Technologies(), this.getTechnology(), null, \"technologies\", null, 0, -1, Semantics.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(targetLanguageEClass, TargetLanguage.class, \"TargetLanguage\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(technologyEClass, Technology.class, \"Technology\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(namedElementEClass, NamedElement.class, \"NamedElement\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getNamedElement_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, NamedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(namedElementEClass, NamedElement.class, \"NamedElement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getNamedElement_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, NamedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(packageDeclarationEClass, PackageDeclaration.class, \"PackageDeclaration\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getPackageDeclaration_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, PackageDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPackageDeclaration_Content(), this.getNamedElement(), null, \"content\", null, 0, -1, PackageDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(referenceableEClass, Referenceable.class, \"Referenceable\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "public void initializePackageContents()\n {\n if (isInitialized) return;\n isInitialized = true;\n\n // Initialize package\n setName(eNAME);\n setNsPrefix(eNS_PREFIX);\n setNsURI(eNS_URI);\n\n // Create type parameters\n\n // Set bounds for type parameters\n\n // Add supertypes to classes\n\n // Initialize classes and features; add operations and parameters\n initEClass(ledsCodeDSLEClass, LedsCodeDSL.class, \"LedsCodeDSL\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getLedsCodeDSL_Project(), this.getProject(), null, \"project\", null, 0, -1, LedsCodeDSL.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(projectEClass, Project.class, \"Project\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getProject_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Project.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getProject_InfrastructureBlock(), this.getInfrastructureBlock(), null, \"infrastructureBlock\", null, 0, 1, Project.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getProject_InterfaceBlock(), this.getInterfaceBlock(), null, \"interfaceBlock\", null, 0, 1, Project.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getProject_ApplicationBlock(), this.getApplicationBlock(), null, \"applicationBlock\", null, 0, -1, Project.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getProject_DomainBlock(), this.getDomainBlock(), null, \"domainBlock\", null, 0, -1, Project.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(interfaceBlockEClass, InterfaceBlock.class, \"InterfaceBlock\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getInterfaceBlock_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, InterfaceBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getInterfaceBlock_InterfaceApplication(), this.getInterfaceApplication(), null, \"interfaceApplication\", null, 0, -1, InterfaceBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(interfaceApplicationEClass, InterfaceApplication.class, \"InterfaceApplication\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getInterfaceApplication_Type(), ecorePackage.getEString(), \"type\", null, 0, 1, InterfaceApplication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getInterfaceApplication_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, InterfaceApplication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getInterfaceApplication_NameApp(), ecorePackage.getEString(), \"nameApp\", null, 0, 1, InterfaceApplication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(infrastructureBlockEClass, InfrastructureBlock.class, \"InfrastructureBlock\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getInfrastructureBlock_BasePackage(), ecorePackage.getEString(), \"basePackage\", null, 0, 1, InfrastructureBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getInfrastructureBlock_ProjectVersion(), ecorePackage.getEString(), \"projectVersion\", null, 0, 1, InfrastructureBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getInfrastructureBlock_Language(), this.getNameVersion(), null, \"language\", null, 0, 1, InfrastructureBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getInfrastructureBlock_Framework(), this.getNameVersion(), null, \"framework\", null, 0, 1, InfrastructureBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getInfrastructureBlock_Orm(), this.getNameVersion(), null, \"orm\", null, 0, 1, InfrastructureBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getInfrastructureBlock_Database(), this.getDatabase(), null, \"database\", null, 0, 1, InfrastructureBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(databaseEClass, Database.class, \"Database\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getDatabase_VersionValue(), ecorePackage.getEString(), \"versionValue\", null, 0, 1, Database.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getDatabase_NameValue(), ecorePackage.getEString(), \"nameValue\", null, 0, 1, Database.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getDatabase_UserValue(), ecorePackage.getEString(), \"userValue\", null, 0, 1, Database.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getDatabase_PassValue(), ecorePackage.getEString(), \"passValue\", null, 0, 1, Database.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getDatabase_HostValue(), ecorePackage.getEString(), \"hostValue\", null, 0, 1, Database.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getDatabase_EnvValue(), ecorePackage.getEString(), \"envValue\", null, 0, 1, Database.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(nameVersionEClass, NameVersion.class, \"NameVersion\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getNameVersion_NameValue(), ecorePackage.getEString(), \"nameValue\", null, 0, 1, NameVersion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getNameVersion_VersionValue(), ecorePackage.getEString(), \"versionValue\", null, 0, 1, NameVersion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(applicationBlockEClass, ApplicationBlock.class, \"ApplicationBlock\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getApplicationBlock_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, ApplicationBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getApplicationBlock_ApplicationDomain(), ecorePackage.getEString(), \"applicationDomain\", null, 0, -1, ApplicationBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(domainBlockEClass, DomainBlock.class, \"DomainBlock\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getDomainBlock_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, DomainBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getDomainBlock_Module(), this.getModuleBlock(), null, \"module\", null, 0, -1, DomainBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(moduleBlockEClass, ModuleBlock.class, \"ModuleBlock\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getModuleBlock_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, ModuleBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getModuleBlock_EnumBlock(), this.getEnumBlock(), null, \"enumBlock\", null, 0, -1, ModuleBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getModuleBlock_EntityBlock(), this.getEntityBlock(), null, \"entityBlock\", null, 0, -1, ModuleBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getModuleBlock_ServiceBlock(), this.getServiceBlock(), null, \"serviceBlock\", null, 0, -1, ModuleBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(serviceBlockEClass, ServiceBlock.class, \"ServiceBlock\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getServiceBlock_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, ServiceBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getServiceBlock_ServiceFields(), this.getServiceMethod(), null, \"serviceFields\", null, 0, -1, ServiceBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(serviceMethodEClass, ServiceMethod.class, \"ServiceMethod\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getServiceMethod_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, ServiceMethod.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getServiceMethod_MethodAcess(), this.getRepositoryFields(), null, \"methodAcess\", null, 0, 1, ServiceMethod.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(entityBlockEClass, EntityBlock.class, \"EntityBlock\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getEntityBlock_AcessModifier(), ecorePackage.getEString(), \"acessModifier\", null, 0, 1, EntityBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getEntityBlock_IsAbstract(), ecorePackage.getEBoolean(), \"isAbstract\", null, 0, 1, EntityBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getEntityBlock_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, EntityBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getEntityBlock_ClassExtends(), this.getExtendBlock(), null, \"classExtends\", null, 0, 1, EntityBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getEntityBlock_Attributes(), this.getAttribute(), null, \"attributes\", null, 0, -1, EntityBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getEntityBlock_Repository(), this.getRepository(), null, \"repository\", null, 0, 1, EntityBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(attributeEClass, Attribute.class, \"Attribute\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getAttribute_AcessModifier(), ecorePackage.getEString(), \"acessModifier\", null, 0, 1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getAttribute_Type(), ecorePackage.getEString(), \"type\", null, 0, 1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getAttribute_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getAttribute_Pk(), ecorePackage.getEBoolean(), \"pk\", null, 0, 1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getAttribute_Unique(), ecorePackage.getEString(), \"unique\", null, 0, 1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getAttribute_Nullable(), ecorePackage.getEString(), \"nullable\", null, 0, 1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getAttribute_Min(), ecorePackage.getEIntegerObject(), \"min\", null, 0, 1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getAttribute_Max(), ecorePackage.getEIntegerObject(), \"max\", null, 0, 1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(repositoryEClass, Repository.class, \"Repository\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getRepository_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Repository.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getRepository_Methods(), this.getRepositoryFields(), null, \"methods\", null, 0, -1, Repository.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(repositoryFieldsEClass, RepositoryFields.class, \"RepositoryFields\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getRepositoryFields_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, RepositoryFields.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getRepositoryFields_MethodsParameters(), this.getMethodParameter(), null, \"methodsParameters\", null, 0, 1, RepositoryFields.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getRepositoryFields_ReturnType(), ecorePackage.getEString(), \"returnType\", null, 0, 1, RepositoryFields.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(enumBlockEClass, EnumBlock.class, \"EnumBlock\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getEnumBlock_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, EnumBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getEnumBlock_Values(), ecorePackage.getEString(), \"values\", null, 0, -1, EnumBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(methodParameterEClass, MethodParameter.class, \"MethodParameter\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getMethodParameter_TypeAndAttr(), this.getTypeAndAttribute(), null, \"typeAndAttr\", null, 0, -1, MethodParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(typeAndAttributeEClass, TypeAndAttribute.class, \"TypeAndAttribute\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getTypeAndAttribute_Type(), ecorePackage.getEString(), \"type\", null, 0, 1, TypeAndAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getTypeAndAttribute_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, TypeAndAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(extendBlockEClass, ExtendBlock.class, \"ExtendBlock\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getExtendBlock_Values(), this.getEntityBlock(), null, \"values\", null, 0, -1, ExtendBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n // Create resource\n createResource(eNS_URI);\n }", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Add supertypes to classes\n\t\tinstructionEClass.getESuperTypes().add(this.getNamedElement());\n\t\tgoForwardEClass.getESuperTypes().add(this.getAction());\n\t\tgoBackwardEClass.getESuperTypes().add(this.getAction());\n\t\tbeginEClass.getESuperTypes().add(this.getAction());\n\t\trotateEClass.getESuperTypes().add(this.getAction());\n\t\treleaseEClass.getESuperTypes().add(this.getAction());\n\t\tactionEClass.getESuperTypes().add(this.getBlock());\n\t\tblockEClass.getESuperTypes().add(this.getInstruction());\n\t\tendEClass.getESuperTypes().add(this.getAction());\n\t\tchoreographyEClass.getESuperTypes().add(this.getInstruction());\n\t\tgrabEClass.getESuperTypes().add(this.getAction());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(instructionEClass, Instruction.class, \"Instruction\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(namedElementEClass, NamedElement.class, \"NamedElement\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getNamedElement_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, NamedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(goForwardEClass, GoForward.class, \"GoForward\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getGoForward_Cm(), ecorePackage.getEInt(), \"cm\", null, 0, 1, GoForward.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getGoForward_Infinite(), ecorePackage.getEBoolean(), \"infinite\", null, 0, 1, GoForward.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(goBackwardEClass, GoBackward.class, \"GoBackward\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getGoBackward_Cm(), ecorePackage.getEInt(), \"cm\", null, 0, 1, GoBackward.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getGoBackward_Infinite(), ecorePackage.getEBoolean(), \"infinite\", null, 0, 1, GoBackward.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(beginEClass, Begin.class, \"Begin\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(rotateEClass, Rotate.class, \"Rotate\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getRotate_Degrees(), ecorePackage.getEInt(), \"degrees\", null, 0, 1, Rotate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getRotate_Random(), ecorePackage.getEBoolean(), \"random\", null, 0, 1, Rotate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(releaseEClass, Release.class, \"Release\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(actionEClass, Action.class, \"Action\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(blockEClass, Block.class, \"Block\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(endEClass, End.class, \"End\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(choreographyEClass, Choreography.class, \"Choreography\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getChoreography_Instructions(), this.getInstruction(), null, \"instructions\", null, 0, -1, Choreography.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getChoreography_EdgeInstructions(), this.getEdgeInstruction(), null, \"edgeInstructions\", null, 0, -1, Choreography.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(edgeInstructionEClass, EdgeInstruction.class, \"EdgeInstruction\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getEdgeInstruction_Source(), this.getInstruction(), null, \"source\", null, 0, 1, EdgeInstruction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getEdgeInstruction_Target(), this.getInstruction(), null, \"target\", null, 0, 1, EdgeInstruction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(grabEClass, Grab.class, \"Grab\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "public void initializePackageContents() {\n\t\tif (isInitialized)\n\t\t\treturn;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tpluginEClass.getESuperTypes().add(this.getAnalysisComponent());\n\t\tinputPortEClass.getESuperTypes().add(this.getPort());\n\t\toutputPortEClass.getESuperTypes().add(this.getPort());\n\t\tfilterEClass.getESuperTypes().add(this.getPlugin());\n\t\treaderEClass.getESuperTypes().add(this.getPlugin());\n\t\trepositoryEClass.getESuperTypes().add(this.getAnalysisComponent());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(projectEClass, MIProject.class, \"Project\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getProject_Plugins(), this.getPlugin(), null, \"plugins\", null, 0, -1, MIProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\n\t\t\t\tIS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getProject_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, MIProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE,\n\t\t\t\t!IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getProject_Repositories(), this.getRepository(), null, \"repositories\", null, 0, -1, MIProject.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getProject_Dependencies(), this.getDependency(), null, \"dependencies\", null, 0, -1, MIProject.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getProject_Views(), this.getView(), null, \"views\", null, 0, -1, MIProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,\n\t\t\t\t!IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getProject_Properties(), this.getProperty(), null, \"properties\", null, 0, -1, MIProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\n\t\t\t\tIS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(pluginEClass, MIPlugin.class, \"Plugin\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPlugin_Repositories(), this.getRepositoryConnector(), null, \"repositories\", null, 0, -1, MIPlugin.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPlugin_OutputPorts(), this.getOutputPort(), this.getOutputPort_Parent(), \"outputPorts\", null, 0, -1, MIPlugin.class, !IS_TRANSIENT,\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPlugin_Displays(), this.getDisplay(), this.getDisplay_Parent(), \"displays\", null, 0, -1, MIPlugin.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(portEClass, MIPort.class, \"Port\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getPort_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, MIPort.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE,\n\t\t\t\t!IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPort_EventTypes(), ecorePackage.getEString(), \"eventTypes\", null, 1, -1, MIPort.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\n\t\t\t\t!IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPort_Id(), ecorePackage.getEString(), \"id\", null, 1, 1, MIPort.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID,\n\t\t\t\tIS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(inputPortEClass, MIInputPort.class, \"InputPort\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInputPort_Parent(), this.getFilter(), this.getFilter_InputPorts(), \"parent\", null, 1, 1, MIInputPort.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(outputPortEClass, MIOutputPort.class, \"OutputPort\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getOutputPort_Subscribers(), this.getInputPort(), null, \"subscribers\", null, 0, -1, MIOutputPort.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getOutputPort_Parent(), this.getPlugin(), this.getPlugin_OutputPorts(), \"parent\", null, 1, 1, MIOutputPort.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(propertyEClass, MIProperty.class, \"Property\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getProperty_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, MIProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\n\t\t\t\t!IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getProperty_Value(), ecorePackage.getEString(), \"value\", null, 1, 1, MIProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\n\t\t\t\t!IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(filterEClass, MIFilter.class, \"Filter\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getFilter_InputPorts(), this.getInputPort(), this.getInputPort_Parent(), \"inputPorts\", null, 0, -1, MIFilter.class, !IS_TRANSIENT,\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(readerEClass, MIReader.class, \"Reader\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(repositoryEClass, MIRepository.class, \"Repository\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(dependencyEClass, MIDependency.class, \"Dependency\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getDependency_FilePath(), ecorePackage.getEString(), \"filePath\", null, 1, 1, MIDependency.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\n\t\t\t\t!IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(repositoryConnectorEClass, MIRepositoryConnector.class, \"RepositoryConnector\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getRepositoryConnector_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, MIRepositoryConnector.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getRepositoryConnector_Repository(), this.getRepository(), null, \"repository\", null, 1, 1, MIRepositoryConnector.class, !IS_TRANSIENT,\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getRepositoryConnector_Id(), ecorePackage.getEString(), \"id\", null, 1, 1, MIRepositoryConnector.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(displayEClass, MIDisplay.class, \"Display\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getDisplay_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, MIDisplay.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE,\n\t\t\t\t!IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getDisplay_Parent(), this.getPlugin(), this.getPlugin_Displays(), \"parent\", null, 1, 1, MIDisplay.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getDisplay_Id(), ecorePackage.getEString(), \"id\", null, 1, 1, MIDisplay.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE,\n\t\t\t\tIS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(viewEClass, MIView.class, \"View\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getView_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, MIView.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE,\n\t\t\t\t!IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getView_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, MIView.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\n\t\t\t\t!IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getView_DisplayConnectors(), this.getDisplayConnector(), null, \"displayConnectors\", null, 0, -1, MIView.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getView_Id(), ecorePackage.getEString(), \"id\", null, 1, 1, MIView.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID,\n\t\t\t\tIS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(displayConnectorEClass, MIDisplayConnector.class, \"DisplayConnector\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getDisplayConnector_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, MIDisplayConnector.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getDisplayConnector_Display(), this.getDisplay(), null, \"display\", null, 1, 1, MIDisplayConnector.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getDisplayConnector_Id(), ecorePackage.getEString(), \"id\", null, 1, 1, MIDisplayConnector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\n\t\t\t\t!IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(analysisComponentEClass, MIAnalysisComponent.class, \"AnalysisComponent\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getAnalysisComponent_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, MIAnalysisComponent.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAnalysisComponent_Classname(), ecorePackage.getEString(), \"classname\", null, 1, 1, MIAnalysisComponent.class, !IS_TRANSIENT, !IS_VOLATILE,\n\t\t\t\tIS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getAnalysisComponent_Properties(), this.getProperty(), null, \"properties\", null, 0, -1, MIAnalysisComponent.class, !IS_TRANSIENT,\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAnalysisComponent_Id(), ecorePackage.getEString(), \"id\", null, 1, 1, MIAnalysisComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\n\t\t\t\t!IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\talVarRefEClass.getESuperTypes().add(this.getArith());\n\t\tarithLitEClass.getESuperTypes().add(this.getArith());\n\t\tarithOpEClass.getESuperTypes().add(this.getArith());\n\t\tarithPlusEClass.getESuperTypes().add(this.getArithOp());\n\t\tarithMinusEClass.getESuperTypes().add(this.getArithOp());\n\t\tprintEClass.getESuperTypes().add(this.getStmt());\n\t\tassignEClass.getESuperTypes().add(this.getStmt());\n\t\tifStmtEClass.getESuperTypes().add(this.getStmt());\n\t\trandRangeEClass.getESuperTypes().add(this.getArith());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(blockEClass, Block.class, \"Block\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getBlock_Stmts(), this.getStmt(), null, \"stmts\", null, 0, -1, Block.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(stmtEClass, Stmt.class, \"Stmt\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(arithEClass, Arith.class, \"Arith\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(alVarRefEClass, ALVarRef.class, \"ALVarRef\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getALVarRef_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, ALVarRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(arithLitEClass, ArithLit.class, \"ArithLit\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getArithLit_Val(), ecorePackage.getEInt(), \"val\", null, 0, 1, ArithLit.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(arithOpEClass, ArithOp.class, \"ArithOp\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getArithOp_Lhs(), this.getArith(), null, \"lhs\", null, 0, 1, ArithOp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getArithOp_Rhs(), this.getArith(), null, \"rhs\", null, 0, 1, ArithOp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(arithPlusEClass, ArithPlus.class, \"ArithPlus\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(arithMinusEClass, ArithMinus.class, \"ArithMinus\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(printEClass, Print.class, \"Print\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getPrint_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Print.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(assignEClass, Assign.class, \"Assign\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getAssign_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Assign.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getAssign_Val(), this.getArith(), null, \"val\", null, 1, 1, Assign.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(ifStmtEClass, IfStmt.class, \"IfStmt\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getIfStmt_IfBranch(), this.getAssign(), null, \"ifBranch\", null, 1, 1, IfStmt.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getIfStmt_ElseBranch(), this.getAssign(), null, \"elseBranch\", null, 0, 1, IfStmt.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getIfStmt_Test(), this.getEqualityTest(), null, \"test\", null, 1, 1, IfStmt.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(randRangeEClass, RandRange.class, \"RandRange\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getRandRange_Min(), ecorePackage.getEInt(), \"min\", null, 0, 1, RandRange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getRandRange_Max(), ecorePackage.getEInt(), \"max\", null, 0, 1, RandRange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(equalityTestEClass, EqualityTest.class, \"EqualityTest\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getEqualityTest_Lhs(), this.getArith(), null, \"lhs\", null, 1, 1, EqualityTest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getEqualityTest_Rhs(), this.getArith(), null, \"rhs\", null, 1, 1, EqualityTest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "public void initializePackageContents() {\n\t\tif (isInitialized)\n\t\t\treturn;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(userEClass, User.class, \"User\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getUser_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, User.class, !IS_TRANSIENT,\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getUser_UR(), this.getRole(), this.getRole_RU(), \"UR\", null, 0, -1, User.class, !IS_TRANSIENT,\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,\n\t\t\t\tIS_ORDERED);\n\n\t\tinitEClass(roleEClass, Role.class, \"Role\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getRole_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Role.class, !IS_TRANSIENT,\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getRole_RD(), this.getDemarcation(), this.getDemarcation_DR(), \"RD\", null, 0, -1, Role.class,\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE,\n\t\t\t\tIS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getRole_Seniors(), this.getRole(), this.getRole_Juniors(), \"seniors\", null, 0, -1, Role.class,\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE,\n\t\t\t\tIS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getRole_Juniors(), this.getRole(), this.getRole_Seniors(), \"juniors\", null, 0, -1, Role.class,\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE,\n\t\t\t\tIS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getRole_RU(), this.getUser(), this.getUser_UR(), \"RU\", null, 0, -1, Role.class, !IS_TRANSIENT,\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,\n\t\t\t\tIS_ORDERED);\n\n\t\tinitEClass(permissionEClass, Permission.class, \"Permission\", !IS_ABSTRACT, !IS_INTERFACE,\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getPermission_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Permission.class,\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPermission_PD(), this.getDemarcation(), this.getDemarcation_DP(), \"PD\", null, 0, -1,\n\t\t\t\tPermission.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,\n\t\t\t\t!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(policyEClass, Policy.class, \"Policy\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPolicy_Users(), this.getUser(), null, \"users\", null, 0, -1, Policy.class, !IS_TRANSIENT,\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,\n\t\t\t\tIS_ORDERED);\n\t\tinitEReference(getPolicy_Roles(), this.getRole(), null, \"roles\", null, 0, -1, Policy.class, !IS_TRANSIENT,\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,\n\t\t\t\tIS_ORDERED);\n\t\tinitEReference(getPolicy_Permissions(), this.getPermission(), null, \"permissions\", null, 0, -1, Policy.class,\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE,\n\t\t\t\tIS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPolicy_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Policy.class, !IS_TRANSIENT,\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPolicy_Demarcations(), this.getDemarcation(), null, \"demarcations\", null, 0, -1, Policy.class,\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE,\n\t\t\t\tIS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(demarcationEClass, Demarcation.class, \"Demarcation\", !IS_ABSTRACT, !IS_INTERFACE,\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getDemarcation_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Demarcation.class,\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getDemarcation_DP(), this.getPermission(), this.getPermission_PD(), \"DP\", null, 0, -1,\n\t\t\t\tDemarcation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,\n\t\t\t\t!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getDemarcation_Subs(), this.getDemarcation(), this.getDemarcation_Sups(), \"subs\", null, 0, -1,\n\t\t\t\tDemarcation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,\n\t\t\t\t!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getDemarcation_Sups(), this.getDemarcation(), this.getDemarcation_Subs(), \"sups\", null, 0, -1,\n\t\t\t\tDemarcation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,\n\t\t\t\t!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getDemarcation_DR(), this.getRole(), this.getRole_RD(), \"DR\", null, 0, -1, Demarcation.class,\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE,\n\t\t\t\tIS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "public void initializePackageContents() {\r\n\t\tif (isInitialized) return;\r\n\t\tisInitialized = true;\r\n\r\n\t\t// Initialize package\r\n\t\tsetName(eNAME);\r\n\t\tsetNsPrefix(eNS_PREFIX);\r\n\t\tsetNsURI(eNS_URI);\r\n\r\n\t\t// Obtain other dependent packages\r\n\t\tno.hal.pg.runtime.RuntimePackage theRuntimePackage_1 = (no.hal.pg.runtime.RuntimePackage)EPackage.Registry.INSTANCE.getEPackage(no.hal.pg.runtime.RuntimePackage.eNS_URI);\r\n\t\tOsmPackage theOsmPackage = (OsmPackage)EPackage.Registry.INSTANCE.getEPackage(OsmPackage.eNS_URI);\r\n\t\tEcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI);\r\n\t\tAppPackage theAppPackage = (AppPackage)EPackage.Registry.INSTANCE.getEPackage(AppPackage.eNS_URI);\r\n\r\n\t\t// Create type parameters\r\n\r\n\t\t// Set bounds for type parameters\r\n\r\n\t\t// Add supertypes to classes\r\n\t\tEGenericType g1 = createEGenericType(theRuntimePackage_1.getTask());\r\n\t\tEGenericType g2 = createEGenericType(this.getPlayerTaskScores());\r\n\t\tg1.getETypeArguments().add(g2);\r\n\t\tpuzzleTaskEClass.getEGenericSuperTypes().add(g1);\r\n\t\tg1 = createEGenericType(theOsmPackage.getGeoLocation());\r\n\t\tpuzzleTaskEClass.getEGenericSuperTypes().add(g1);\r\n\t\tg1 = createEGenericType(theAppPackage.getTaskView());\r\n\t\tg2 = createEGenericType(this.getPuzzleTask());\r\n\t\tg1.getETypeArguments().add(g2);\r\n\t\tpuzzleTaskViewEClass.getEGenericSuperTypes().add(g1);\r\n\t\tsimplePuzzleEClass.getESuperTypes().add(this.getPuzzle());\r\n\r\n\t\t// Initialize classes, features, and operations; add parameters\r\n\t\tinitEClass(puzzleTaskEClass, PuzzleTask.class, \"PuzzleTask\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getPuzzleTask_Puzzles(), this.getPuzzle(), null, \"puzzles\", null, 0, -1, PuzzleTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getPuzzleTask_PlayerLevels(), this.getPlayerToInt(), null, \"playerLevels\", null, 0, -1, PuzzleTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getPuzzleTask_PlayerTaskScores(), this.getPlayerTaskScores(), null, \"playerTaskScores\", null, 0, 1, PuzzleTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tEOperation op = initEOperation(getPuzzleTask__AcceptPuzzleProposal__String_Player(), theEcorePackage.getEBoolean(), \"acceptPuzzleProposal\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, theEcorePackage.getEString(), \"proposal\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, theRuntimePackage_1.getPlayer(), \"player\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n\t\top = initEOperation(getPuzzleTask__CalculateScore__int_Player_boolean(), theEcorePackage.getEInt(), \"calculateScore\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, theEcorePackage.getEInt(), \"puzzleLevel\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, theRuntimePackage_1.getPlayer(), \"player\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, theEcorePackage.getEBoolean(), \"isProposalCorrect\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n\t\top = initEOperation(getPuzzleTask__AcceptPlayer__Player(), theEcorePackage.getEBoolean(), \"acceptPlayer\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, theRuntimePackage_1.getPlayer(), \"player\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n\t\tinitEClass(puzzlePieceEClass, PuzzlePiece.class, \"PuzzlePiece\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getPuzzlePiece_Image(), theEcorePackage.getEString(), \"image\", null, 0, 1, PuzzlePiece.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getPuzzlePiece_PlayerCount(), theEcorePackage.getEInt(), \"playerCount\", null, 0, 1, PuzzlePiece.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(puzzleTaskViewEClass, PuzzleTaskView.class, \"PuzzleTaskView\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getPuzzleTaskView_Image(), theEcorePackage.getEString(), \"image\", null, 0, 1, PuzzleTaskView.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getPuzzleTaskView_Score(), theEcorePackage.getEInt(), \"score\", null, 0, 1, PuzzleTaskView.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getPuzzleTaskView_Level(), theEcorePackage.getEInt(), \"level\", null, 0, 1, PuzzleTaskView.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\r\n\r\n\t\top = initEOperation(getPuzzleTaskView__ProposeAnswer__String(), this.getPuzzleTaskView(), \"proposeAnswer\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, theEcorePackage.getEString(), \"proposal\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n\t\tinitEOperation(getPuzzleTaskView__Finish(), null, \"finish\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n\t\tinitEOperation(getPuzzleTaskView__StartPuzzle(), null, \"startPuzzle\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n\t\tinitEOperation(getPuzzleTaskView__AcceptPlayer(), theEcorePackage.getEBoolean(), \"acceptPlayer\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n\t\tinitEClass(playerToIntEClass, Map.Entry.class, \"PlayerToInt\", !IS_ABSTRACT, !IS_INTERFACE, !IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getPlayerToInt_Key(), theRuntimePackage_1.getPlayer(), null, \"key\", null, 0, 1, Map.Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getPlayerToInt_Value(), theEcorePackage.getEIntegerObject(), \"value\", null, 0, 1, Map.Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(puzzleEClass, Puzzle.class, \"Puzzle\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getPuzzle_Level(), theEcorePackage.getEInt(), \"level\", null, 0, 1, Puzzle.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\top = initEOperation(getPuzzle__AcceptProposal__String(), theEcorePackage.getEBoolean(), \"acceptProposal\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, theEcorePackage.getEString(), \"proposal\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n\t\top = initEOperation(getPuzzle__FinishPuzzle__Player(), theEcorePackage.getEBoolean(), \"finishPuzzle\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, theRuntimePackage_1.getPlayer(), \"player\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n\t\top = initEOperation(getPuzzle__StartPuzzle__Player(), theEcorePackage.getEBoolean(), \"startPuzzle\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, theRuntimePackage_1.getPlayer(), \"player\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n\t\top = initEOperation(getPuzzle__GetImage__Player(), theEcorePackage.getEString(), \"getImage\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, theRuntimePackage_1.getPlayer(), \"player\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n\t\tinitEClass(simplePuzzleEClass, SimplePuzzle.class, \"SimplePuzzle\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getSimplePuzzle_Instructions(), theRuntimePackage_1.getInfoItem(), null, \"instructions\", null, 0, 1, SimplePuzzle.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getSimplePuzzle_Solution(), theEcorePackage.getEString(), \"solution\", null, 0, 1, SimplePuzzle.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getSimplePuzzle_PuzzlePieces(), this.getPuzzlePiece(), null, \"puzzlePieces\", null, 0, -1, SimplePuzzle.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getSimplePuzzle_PlayerPieces(), this.getPlayerToPuzzlePiece(), null, \"playerPieces\", null, 0, -1, SimplePuzzle.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\top = initEOperation(getSimplePuzzle__AcceptProposal__String(), theEcorePackage.getEBoolean(), \"acceptProposal\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, theEcorePackage.getEString(), \"proposal\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n\t\top = initEOperation(getSimplePuzzle__FinishPuzzle__Player(), theEcorePackage.getEBoolean(), \"finishPuzzle\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, theRuntimePackage_1.getPlayer(), \"player\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n\t\top = initEOperation(getSimplePuzzle__StartPuzzle__Player(), theEcorePackage.getEBoolean(), \"startPuzzle\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, theRuntimePackage_1.getPlayer(), \"player\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n\t\top = initEOperation(getSimplePuzzle__GetImage__Player(), theEcorePackage.getEString(), \"getImage\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\t\taddEParameter(op, theRuntimePackage_1.getPlayer(), \"player\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n\t\tinitEClass(playerTaskScoreEClass, PlayerTaskScore.class, \"PlayerTaskScore\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getPlayerTaskScore_Player(), theRuntimePackage_1.getPlayer(), null, \"player\", null, 0, 1, PlayerTaskScore.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getPlayerTaskScore_Score(), theEcorePackage.getEInt(), \"score\", null, 0, 1, PlayerTaskScore.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getPlayerTaskScore_Level(), theEcorePackage.getEInt(), \"level\", null, 0, 1, PlayerTaskScore.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(playerTaskScoresEClass, PlayerTaskScores.class, \"PlayerTaskScores\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getPlayerTaskScores_Scores(), this.getPlayerTaskScore(), null, \"scores\", null, 0, -1, PlayerTaskScores.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(playerToPuzzlePieceEClass, Map.Entry.class, \"PlayerToPuzzlePiece\", !IS_ABSTRACT, !IS_INTERFACE, !IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getPlayerToPuzzlePiece_Key(), theRuntimePackage_1.getPlayer(), null, \"key\", null, 0, 1, Map.Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getPlayerToPuzzlePiece_Value(), this.getPuzzlePiece(), null, \"value\", null, 0, 1, Map.Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\t// Create resource\r\n\t\tcreateResource(eNS_URI);\r\n\t}", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\troleEClass.getESuperTypes().add(this.getSocialInstance());\n\t\tindividualInstanceEClass.getESuperTypes().add(this.getSocialInstance());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(roleEClass, Role.class, \"Role\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getRole_Society(), this.getSociety(), this.getSociety_Roles(), \"society\", null, 1, 1, Role.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getRole_IsRealizedByIndividual(), this.getIndividualRealization(), this.getIndividualRealization_Target(), \"isRealizedByIndividual\", null, 0, -1, Role.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getRole_Parent(), this.getSpecialization(), this.getSpecialization_Target(), \"parent\", null, 0, -1, Role.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getRole_Children(), this.getSpecialization(), this.getSpecialization_Source(), \"children\", null, 0, -1, Role.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getRole_Id(), ecorePackage.getEInt(), \"id\", null, 1, 1, Role.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getRole_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, Role.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(individualRealizationEClass, IndividualRealization.class, \"IndividualRealization\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getIndividualRealization_Target(), this.getRole(), this.getRole_IsRealizedByIndividual(), \"target\", null, 1, 1, IndividualRealization.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getIndividualRealization_Source(), this.getIndividualInstance(), this.getIndividualInstance_Realizes(), \"source\", null, 1, 1, IndividualRealization.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getIndividualRealization_Society(), this.getSociety(), this.getSociety_Relaizations(), \"society\", null, 1, 1, IndividualRealization.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getIndividualRealization_Id(), ecorePackage.getEInt(), \"id\", null, 1, 1, IndividualRealization.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(societyEClass, Society.class, \"Society\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getSociety_Generalizations(), this.getSpecialization(), this.getSpecialization_Society(), \"generalizations\", null, 0, -1, Society.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSociety_Relaizations(), this.getIndividualRealization(), this.getIndividualRealization_Society(), \"relaizations\", null, 0, -1, Society.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSociety_Individuals(), this.getIndividualInstance(), this.getIndividualInstance_Society(), \"individuals\", null, 0, -1, Society.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSociety_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, Society.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSociety_Roles(), this.getRole(), this.getRole_Society(), \"roles\", null, 1, -1, Society.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(specializationEClass, Specialization.class, \"Specialization\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getSpecialization_Target(), this.getRole(), this.getRole_Parent(), \"target\", null, 1, 1, Specialization.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSpecialization_Source(), this.getRole(), this.getRole_Children(), \"source\", null, 1, 1, Specialization.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSpecialization_Society(), this.getSociety(), this.getSociety_Generalizations(), \"society\", null, 1, 1, Specialization.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSpecialization_Id(), ecorePackage.getEInt(), \"id\", null, 1, 1, Specialization.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(individualInstanceEClass, IndividualInstance.class, \"IndividualInstance\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getIndividualInstance_Realizes(), this.getIndividualRealization(), this.getIndividualRealization_Source(), \"realizes\", null, 1, -1, IndividualInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getIndividualInstance_Id(), ecorePackage.getEInt(), \"id\", null, 1, 1, IndividualInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getIndividualInstance_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, IndividualInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getIndividualInstance_Society(), this.getSociety(), this.getSociety_Individuals(), \"society\", null, 1, 1, IndividualInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(socialInstanceEClass, SocialInstance.class, \"SocialInstance\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEOperation(getSocialInstance__GetID(), ecorePackage.getEInt(), \"getID\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getSocialInstance__GetName(), ecorePackage.getEString(), \"getName\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tOCCIPackage theOCCIPackage = (OCCIPackage)EPackage.Registry.INSTANCE.getEPackage(OCCIPackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tldprojectEClass.getESuperTypes().add(theOCCIPackage.getResource());\n\t\tlddatabaselinkEClass.getESuperTypes().add(theOCCIPackage.getLink());\n\t\tldprojectlinkEClass.getESuperTypes().add(theOCCIPackage.getLink());\n\t\tldnodeEClass.getESuperTypes().add(theOCCIPackage.getResource());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(ldprojectEClass, Ldproject.class, \"Ldproject\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getLdproject_Name(), theOCCIPackage.getString(), \"name\", null, 1, 1, Ldproject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getLdproject_Lifecycle(), this.getLifecycle(), \"lifecycle\", null, 0, 1, Ldproject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getLdproject_Robustness(), this.getRobustness(), \"robustness\", null, 0, 1, Ldproject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getLdproject__Publish(), null, \"publish\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getLdproject__Unpublish(), null, \"unpublish\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getLdproject__Update(), null, \"update\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(lddatabaselinkEClass, Lddatabaselink.class, \"Lddatabaselink\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getLddatabaselink_Database(), theOCCIPackage.getString(), \"database\", \"datacore\", 1, 1, Lddatabaselink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getLddatabaselink_Port(), theOCCIPackage.getNumber(), \"port\", \"27017\", 0, 1, Lddatabaselink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(ldprojectlinkEClass, Ldprojectlink.class, \"Ldprojectlink\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(ldnodeEClass, Ldnode.class, \"Ldnode\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getLdnode_Name(), theOCCIPackage.getString(), \"name\", null, 1, 1, Ldnode.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getLdnode_MongoHosts(), theOCCIPackage.getString(), \"mongoHosts\", null, 1, 1, Ldnode.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getLdnode_MainProject(), theOCCIPackage.getString(), \"mainProject\", null, 1, 1, Ldnode.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getLdnode_AnalyticsReadPreference(), theOCCIPackage.getString(), \"analyticsReadPreference\", null, 1, 1, Ldnode.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Initialize enums and add enum literals\n\t\tinitEEnum(lifecycleEEnum, Lifecycle.class, \"Lifecycle\");\n\t\taddEEnumLiteral(lifecycleEEnum, Lifecycle.DRAFT);\n\t\taddEEnumLiteral(lifecycleEEnum, Lifecycle.PUBLISHED);\n\n\t\tinitEEnum(robustnessEEnum, Robustness.class, \"Robustness\");\n\t\taddEEnumLiteral(robustnessEEnum, Robustness.CLUSTER);\n\t\taddEEnumLiteral(robustnessEEnum, Robustness.NODE);\n\t\taddEEnumLiteral(robustnessEEnum, Robustness.NONE);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\n\t\t// Create annotations\n\t\t// OCCIE2Ecore\n\t\tcreateOCCIE2EcoreAnnotations();\n\t}", "public void initializePackageContents() {\r\n\t\tif (isInitialized) return;\r\n\t\tisInitialized = true;\r\n\r\n\t\t// Initialize package\r\n\t\tsetName(eNAME);\r\n\t\tsetNsPrefix(eNS_PREFIX);\r\n\t\tsetNsURI(eNS_URI);\r\n\r\n\t\t// Obtain other dependent packages\r\n\t\tVpmlPackage theVpmlPackage = (VpmlPackage)EPackage.Registry.INSTANCE.getEPackage(VpmlPackage.eNS_URI);\r\n\t\tProcesspackagePackage theProcesspackagePackage = (ProcesspackagePackage)EPackage.Registry.INSTANCE.getEPackage(ProcesspackagePackage.eNS_URI);\r\n\t\tResourcepackagePackage theResourcepackagePackage = (ResourcepackagePackage)EPackage.Registry.INSTANCE.getEPackage(ResourcepackagePackage.eNS_URI);\r\n\t\tOrganizationpackagePackage theOrganizationpackagePackage = (OrganizationpackagePackage)EPackage.Registry.INSTANCE.getEPackage(OrganizationpackagePackage.eNS_URI);\r\n\r\n\t\t// Add supertypes to classes\r\n\t\temcLogicalConnectorEClass.getESuperTypes().add(theVpmlPackage.getEMObject());\r\n\t\temcAndEClass.getESuperTypes().add(this.getEMCLogicalConnector());\r\n\t\temcorEClass.getESuperTypes().add(this.getEMCLogicalConnector());\r\n\t\temcCollaborationGroupEClass.getESuperTypes().add(theVpmlPackage.getEMObject());\r\n\t\temcDiagramEClass.getESuperTypes().add(theVpmlPackage.getEMDiagram());\r\n\t\temcCollaborationRelationEClass.getESuperTypes().add(this.getEMCRelation());\r\n\t\temcSequenceRelationEClass.getESuperTypes().add(this.getEMCRelation());\r\n\r\n\t\t// Initialize classes and features; add operations and parameters\r\n\t\tinitEClass(emcLogicalConnectorEClass, EMCLogicalConnector.class, \"EMCLogicalConnector\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEClass(emcAndEClass, EMCAnd.class, \"EMCAnd\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getEMCAnd_ColAndDiagram(), this.getEMCDiagram(), this.getEMCDiagram_ColAnd(), \"colAndDiagram\", null, 0, 1, EMCAnd.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(emcorEClass, vpml.collaborationpackage.EMCOR.class, \"EMCOR\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getEMCOR_ColORDiagram(), this.getEMCDiagram(), this.getEMCDiagram_ColOR(), \"colORDiagram\", null, 0, 1, vpml.collaborationpackage.EMCOR.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(emcCollaborationGroupEClass, EMCCollaborationGroup.class, \"EMCCollaborationGroup\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getEMCCollaborationGroup_ColColGroupDiagram(), this.getEMCDiagram(), this.getEMCDiagram_ColColGroup(), \"colColGroupDiagram\", null, 0, 1, EMCCollaborationGroup.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(emcDiagramEClass, EMCDiagram.class, \"EMCDiagram\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getEMCDiagram_EmpDiagram(), theProcesspackagePackage.getEMPDiagram(), theProcesspackagePackage.getEMPDiagram_EmcDiagram(), \"empDiagram\", null, 1, 1, EMCDiagram.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getEMCDiagram_AssociatePrModel(), ecorePackage.getEString(), \"associatePrModel\", null, 0, 1, EMCDiagram.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEMCDiagram_ColAnd(), this.getEMCAnd(), this.getEMCAnd_ColAndDiagram(), \"colAnd\", null, 0, -1, EMCDiagram.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEMCDiagram_ColOR(), this.getEMCOR(), this.getEMCOR_ColORDiagram(), \"colOR\", null, 0, -1, EMCDiagram.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEMCDiagram_ColRole(), theResourcepackagePackage.getEMRRole(), theResourcepackagePackage.getEMRRole_ColRoleDiagram(), \"colRole\", null, 0, -1, EMCDiagram.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEMCDiagram_ColLocation(), theResourcepackagePackage.getEMRLocationType(), theResourcepackagePackage.getEMRLocationType_ColLocationDiagram(), \"colLocation\", null, 0, -1, EMCDiagram.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEMCDiagram_ColMachine(), theResourcepackagePackage.getEMRMachineType(), theResourcepackagePackage.getEMRMachineType_ColMachineDiagram(), \"colMachine\", null, 0, -1, EMCDiagram.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEMCDiagram_ColEMOGroup(), theOrganizationpackagePackage.getEMOResourceGroupType(), theOrganizationpackagePackage.getEMOResourceGroupType_ColEMOGroupDiagram(), \"colEMOGroup\", null, 0, -1, EMCDiagram.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEMCDiagram_ColColGroup(), this.getEMCCollaborationGroup(), this.getEMCCollaborationGroup_ColColGroupDiagram(), \"colColGroup\", null, 0, -1, EMCDiagram.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEMCDiagram_ColColRelation(), this.getEMCCollaborationRelation(), this.getEMCCollaborationRelation_ColColRelationDiagram(), \"colColRelation\", null, 0, -1, EMCDiagram.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEMCDiagram_ColSeqRelation(), this.getEMCSequenceRelation(), this.getEMCSequenceRelation_ColSeqRelationDiagram(), \"colSeqRelation\", null, 0, -1, EMCDiagram.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(emcRelationEClass, EMCRelation.class, \"EMCRelation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getEMCRelation_SourceRelationSourceObj(), theVpmlPackage.getEMObject(), theVpmlPackage.getEMObject_SourceObjSourceRelation(), \"sourceRelationSourceObj\", null, 0, 1, EMCRelation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEMCRelation_TargetRelationTargetObj(), theVpmlPackage.getEMObject(), theVpmlPackage.getEMObject_TargetObjTargetRelation(), \"targetRelationTargetObj\", null, 0, 1, EMCRelation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(emcCollaborationRelationEClass, EMCCollaborationRelation.class, \"EMCCollaborationRelation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getEMCCollaborationRelation_ColColRelationDiagram(), this.getEMCDiagram(), this.getEMCDiagram_ColColRelation(), \"colColRelationDiagram\", null, 0, 1, EMCCollaborationRelation.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(emcSequenceRelationEClass, EMCSequenceRelation.class, \"EMCSequenceRelation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getEMCSequenceRelation_ColSeqRelationDiagram(), this.getEMCDiagram(), this.getEMCDiagram_ColSeqRelation(), \"colSeqRelationDiagram\", null, 0, 1, EMCSequenceRelation.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t}", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tPersistencePackage thePersistencePackage = (PersistencePackage)EPackage.Registry.INSTANCE.getEPackage(PersistencePackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tlocalAuthenticationSystemEClass.getESuperTypes().add(this.getAuthentication());\n\t\tcasAuthenticationEClass.getESuperTypes().add(this.getAuthentication());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(securityEClass, Security.class, \"Security\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getSecurity_Authentication(), this.getAuthentication(), this.getAuthentication_Security(), \"authentication\", null, 0, 1, Security.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(authenticationEClass, Authentication.class, \"Authentication\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAuthentication_Security(), this.getSecurity(), this.getSecurity_Authentication(), \"security\", null, 1, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getAuthentication_UserModel(), thePersistencePackage.getEntity(), null, \"userModel\", null, 1, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitRegistrationName(), ecorePackage.getEString(), \"implicitRegistrationName\", \"registration\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitRegistrationUnitLabel(), ecorePackage.getEString(), \"implicitRegistrationUnitLabel\", \"Create Account\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitRegistrationActionLabel(), ecorePackage.getEString(), \"implicitRegistrationActionLabel\", \"Create Account\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitRegistrationConfirmLabel(), ecorePackage.getEString(), \"implicitRegistrationConfirmLabel\", \"Create Account\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitRegistrationUri(), ecorePackage.getEString(), \"implicitRegistrationUri\", \"register\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitLoginName(), ecorePackage.getEString(), \"implicitLoginName\", \"login\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitLoginUnitLabel(), ecorePackage.getEString(), \"implicitLoginUnitLabel\", \"Login\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitLoginActionLabel(), ecorePackage.getEString(), \"implicitLoginActionLabel\", \"Login\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitLoginConfirmLabel(), ecorePackage.getEString(), \"implicitLoginConfirmLabel\", \"Login\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitLoginUri(), ecorePackage.getEString(), \"implicitLoginUri\", \"login\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitLogoutName(), ecorePackage.getEString(), \"implicitLogoutName\", \"logout\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitLogoutUnitLabel(), ecorePackage.getEString(), \"implicitLogoutUnitLabel\", \"Logout\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitLogoutActionLabel(), ecorePackage.getEString(), \"implicitLogoutActionLabel\", \"Logout\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitLogoutConfirmLabel(), ecorePackage.getEString(), \"implicitLogoutConfirmLabel\", \"Logout\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitLogoutUri(), ecorePackage.getEString(), \"implicitLogoutUri\", \"logout\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitForgottenPasswordName(), ecorePackage.getEString(), \"implicitForgottenPasswordName\", \"forgotten\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitForgottenPasswordUnitLabel(), ecorePackage.getEString(), \"implicitForgottenPasswordUnitLabel\", \"Reset Password Request\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitForgottenPasswordActionLabel(), ecorePackage.getEString(), \"implicitForgottenPasswordActionLabel\", \"Forgotten Password\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitForgottenPasswordConfirmLabel(), ecorePackage.getEString(), \"implicitForgottenPasswordConfirmLabel\", \"Reset Password\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitForgottenPasswordUriRequest(), ecorePackage.getEString(), \"implicitForgottenPasswordUriRequest\", \"reset-password\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitForgottenPasswordUriEmailSent(), ecorePackage.getEString(), \"implicitForgottenPasswordUriEmailSent\", \"check-email\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitForgottenPasswordEmailSubject(), ecorePackage.getEString(), \"implicitForgottenPasswordEmailSubject\", \"Your password reset request\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitForgottenPasswordEmailMessage(), ecorePackage.getEString(), \"implicitForgottenPasswordEmailMessage\", \"Your password reset request\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitForgottenPasswordEmailSentCaption(), ecorePackage.getEString(), \"implicitForgottenPasswordEmailSentCaption\", \"Your password reset request\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitForgottenPasswordEmailSentMessage(), ecorePackage.getEString(), \"implicitForgottenPasswordEmailSentMessage\", \"Your password reset request\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitResetPasswordName(), ecorePackage.getEString(), \"implicitResetPasswordName\", \"reset\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitResetPasswordUnitLabel(), ecorePackage.getEString(), \"implicitResetPasswordUnitLabel\", \"Reset Password\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitResetPasswordActionLabel(), ecorePackage.getEString(), \"implicitResetPasswordActionLabel\", \"Reset Password\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitResetPasswordConfirmLabel(), ecorePackage.getEString(), \"implicitResetPasswordConfirmLabel\", \"Set Password\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAuthentication_ImplicitResetPasswordUri(), ecorePackage.getEString(), \"implicitResetPasswordUri\", \"reset\", 0, 1, Authentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(localAuthenticationSystemEClass, LocalAuthenticationSystem.class, \"LocalAuthenticationSystem\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getLocalAuthenticationSystem_AuthenticationModel(), thePersistencePackage.getEntity(), null, \"authenticationModel\", null, 0, 1, LocalAuthenticationSystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getLocalAuthenticationSystem_AuthenticationName(), ecorePackage.getEString(), \"authenticationName\", \"Authentication\", 0, 1, LocalAuthenticationSystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getLocalAuthenticationSystem_UserKey(), thePersistencePackage.getAttribute(), null, \"userKey\", null, 0, 1, LocalAuthenticationSystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getLocalAuthenticationSystem_AuthenticationKey(), thePersistencePackage.getAttribute(), null, \"authenticationKey\", null, 1, 1, LocalAuthenticationSystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getLocalAuthenticationSystem_IdentifierFeature(), thePersistencePackage.getAttribute(), null, \"identifierFeature\", null, 0, 1, LocalAuthenticationSystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getLocalAuthenticationSystem_PasswordFeature(), thePersistencePackage.getAttribute(), null, \"passwordFeature\", null, 0, 1, LocalAuthenticationSystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getLocalAuthenticationSystem_ResetPasswordRequestModel(), thePersistencePackage.getEntity(), null, \"resetPasswordRequestModel\", null, 0, 1, LocalAuthenticationSystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getLocalAuthenticationSystem_ResetPasswordRequestName(), ecorePackage.getEString(), \"resetPasswordRequestName\", \"ResetPasswordRequest\", 0, 1, LocalAuthenticationSystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getLocalAuthenticationSystem_RegistrationUnit(), this.getSecurityUnit(), null, \"registrationUnit\", null, 0, 1, LocalAuthenticationSystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getLocalAuthenticationSystem_LoginUnit(), this.getSecurityUnit(), null, \"loginUnit\", null, 0, 1, LocalAuthenticationSystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getLocalAuthenticationSystem_LogoutUnit(), this.getSecurityUnit(), null, \"logoutUnit\", null, 0, 1, LocalAuthenticationSystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getLocalAuthenticationSystem_ForgottenPasswordUnit(), this.getSecurityUnit(), null, \"forgottenPasswordUnit\", null, 0, 1, LocalAuthenticationSystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getLocalAuthenticationSystem_ResetPasswordUnit(), this.getSecurityUnit(), null, \"resetPasswordUnit\", null, 0, 1, LocalAuthenticationSystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getLocalAuthenticationSystem_ViewRole(), ecorePackage.getEString(), \"viewRole\", \"ROLE_SECURITY\", 0, 1, LocalAuthenticationSystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getLocalAuthenticationSystem_EditRole(), ecorePackage.getEString(), \"editRole\", \"ROLE_SECURITY\", 0, 1, LocalAuthenticationSystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getLocalAuthenticationSystem_UseCaptcha(), ecorePackage.getEBoolean(), \"useCaptcha\", \"true\", 1, 1, LocalAuthenticationSystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getLocalAuthenticationSystem_AllowRememberMe(), ecorePackage.getEBoolean(), \"allowRememberMe\", \"false\", 1, 1, LocalAuthenticationSystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getLocalAuthenticationSystem_AllowSelfRegistration(), ecorePackage.getEBoolean(), \"allowSelfRegistration\", \"false\", 1, 1, LocalAuthenticationSystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getLocalAuthenticationSystem_TrackLoginAttempts(), ecorePackage.getEBoolean(), \"trackLoginAttempts\", \"true\", 1, 1, LocalAuthenticationSystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getLocalAuthenticationSystem_UseEmailActivation(), ecorePackage.getEBoolean(), \"useEmailActivation\", \"true\", 1, 1, LocalAuthenticationSystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getLocalAuthenticationSystem_SendWelcomeEmail(), ecorePackage.getEBoolean(), \"sendWelcomeEmail\", \"true\", 1, 1, LocalAuthenticationSystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(casAuthenticationEClass, CasAuthentication.class, \"CasAuthentication\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getCasAuthentication_LoginLabel(), ecorePackage.getEString(), \"loginLabel\", \"login\", 0, 1, CasAuthentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getCasAuthentication_LogoutLabel(), ecorePackage.getEString(), \"logoutLabel\", \"logout\", 0, 1, CasAuthentication.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(securityUnitEClass, SecurityUnit.class, \"SecurityUnit\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\n\t\t// Create annotations\n\t\t// http://www.eclipse.org/emf/2002/Ecore\n\t\tcreateEcoreAnnotations();\n\t\t// http://www.eclipse.org/emf/2002/Ecore/OCL\n\t\tcreateOCLAnnotations();\n\t}", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tSQLSchemaPackage theSQLSchemaPackage = (SQLSchemaPackage)EPackage.Registry.INSTANCE.getEPackage(SQLSchemaPackage.eNS_URI);\n\n\t\t// Add supertypes to classes\n\t\tqueryExpressionDefaultEClass.getESuperTypes().add(theSQLSchemaPackage.getSQLObject());\n\t\tqueryExpressionDefaultEClass.getESuperTypes().add(this.getQueryExpression());\n\t\tsearchConditionDefaultEClass.getESuperTypes().add(theSQLSchemaPackage.getSQLObject());\n\t\tsearchConditionDefaultEClass.getESuperTypes().add(this.getSearchCondition());\n\t\tvalueExpressionDefaultEClass.getESuperTypes().add(theSQLSchemaPackage.getSQLObject());\n\t\tvalueExpressionDefaultEClass.getESuperTypes().add(this.getValueExpression());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(queryExpressionEClass, QueryExpression.class, \"QueryExpression\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\n\t\taddEOperation(queryExpressionEClass, ecorePackage.getEString(), \"getSQL\", 0, 1); //$NON-NLS-1$\n\n\t\tEOperation op = addEOperation(queryExpressionEClass, null, \"setSQL\"); //$NON-NLS-1$\n\t\taddEParameter(op, ecorePackage.getEString(), \"sqlText\", 0, 1); //$NON-NLS-1$\n\n\t\tinitEClass(valueExpressionEClass, ValueExpression.class, \"ValueExpression\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\n\t\taddEOperation(valueExpressionEClass, ecorePackage.getEString(), \"getSQL\", 0, 1); //$NON-NLS-1$\n\n\t\top = addEOperation(valueExpressionEClass, null, \"setSQL\"); //$NON-NLS-1$\n\t\taddEParameter(op, ecorePackage.getEString(), \"sqlText\", 0, 1); //$NON-NLS-1$\n\n\t\tinitEClass(searchConditionEClass, SearchCondition.class, \"SearchCondition\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\n\t\taddEOperation(searchConditionEClass, ecorePackage.getEString(), \"getSQL\", 0, 1); //$NON-NLS-1$\n\n\t\top = addEOperation(searchConditionEClass, null, \"setSQL\"); //$NON-NLS-1$\n\t\taddEParameter(op, ecorePackage.getEString(), \"sqlText\", 0, 1); //$NON-NLS-1$\n\n\t\tinitEClass(queryExpressionDefaultEClass, QueryExpressionDefault.class, \"QueryExpressionDefault\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\t\tinitEAttribute(getQueryExpressionDefault_SQL(), ecorePackage.getEString(), \"SQL\", null, 0, 1, QueryExpressionDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\n\t\tinitEClass(searchConditionDefaultEClass, SearchConditionDefault.class, \"SearchConditionDefault\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\t\tinitEAttribute(getSearchConditionDefault_SQL(), ecorePackage.getEString(), \"SQL\", null, 0, 1, SearchConditionDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\n\t\tinitEClass(valueExpressionDefaultEClass, ValueExpressionDefault.class, \"ValueExpressionDefault\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$\n\t\tinitEAttribute(getValueExpressionDefault_SQL(), ecorePackage.getEString(), \"SQL\", null, 0, 1, ValueExpressionDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "public void initializePackageContents() {\n if(isInitialized) {\n return;\n }\n isInitialized = true;\n\n // Initialize package\n setName(eNAME);\n setNsPrefix(eNS_PREFIX);\n setNsURI(eNS_URI);\n\n // Create type parameters\n\n // Set bounds for type parameters\n\n // Add supertypes to classes\n modularizationModelEClass.getESuperTypes().add(this.getNamedElement());\n moduleEClass.getESuperTypes().add(this.getNamedElement());\n classEClass.getESuperTypes().add(this.getNamedElement());\n\n // Initialize classes, features, and operations; add parameters\n initEClass(namedElementEClass, NamedElement.class, \"NamedElement\", !IS_ABSTRACT, !IS_INTERFACE,\n IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getNamedElement_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, NamedElement.class,\n !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(modularizationModelEClass, ModularizationModel.class, \"ModularizationModel\", !IS_ABSTRACT,\n !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getModularizationModel_Modules(), this.getModule(), null, \"modules\", null, 0, -1,\n ModularizationModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,\n !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n initEReference(getModularizationModel_Classes(), this.getClass_(), null, \"classes\", null, 0, -1,\n ModularizationModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,\n !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n initEClass(moduleEClass, Module.class, \"Module\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getModule_Classes(), this.getClass_(), this.getClass_Module(), \"classes\", null, 0, -1,\n Module.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE,\n IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(classEClass, at.ac.tuwien.big.momot.examples.modularization.jsme.modularization.Class.class, \"Class\",\n !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getClass_Module(), this.getModule(), this.getModule_Classes(), \"module\", null, 0, 1,\n at.ac.tuwien.big.momot.examples.modularization.jsme.modularization.Class.class, !IS_TRANSIENT, !IS_VOLATILE,\n IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getClass_DependsOn(), this.getClass_(), this.getClass_DependedOnBy(), \"dependsOn\", null, 0, -1,\n at.ac.tuwien.big.momot.examples.modularization.jsme.modularization.Class.class, !IS_TRANSIENT, !IS_VOLATILE,\n IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getClass_DependedOnBy(), this.getClass_(), this.getClass_DependsOn(), \"dependedOnBy\", null, 0, -1,\n at.ac.tuwien.big.momot.examples.modularization.jsme.modularization.Class.class, !IS_TRANSIENT, !IS_VOLATILE,\n IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n // Create resource\n createResource(eNS_URI);\n }", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(baseElementEClass, BaseElement.class, \"BaseElement\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getBaseElement_KeyValueMaps(), this.getKeyValueMap(), null, \"keyValueMaps\", null, 0, -1, BaseElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getBaseElement_Id(), ecorePackage.getELong(), \"Id\", null, 0, 1, BaseElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getBaseElement_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, BaseElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getBaseElement_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, BaseElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(keyValueMapEClass, KeyValueMap.class, \"KeyValueMap\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getKeyValueMap_Key(), ecorePackage.getEString(), \"key\", null, 0, 1, KeyValueMap.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getKeyValueMap_Values(), this.getValue(), null, \"values\", null, 0, -1, KeyValueMap.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(valueEClass, Value.class, \"Value\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getValue_Tag(), ecorePackage.getEString(), \"tag\", null, 0, 1, Value.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getValue_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, Value.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Initialize enums and add enum literals\n\t\tinitEEnum(timeUnitEEnum, TimeUnit.class, \"TimeUnit\");\n\t\taddEEnumLiteral(timeUnitEEnum, TimeUnit.MILLISECOND);\n\t\taddEEnumLiteral(timeUnitEEnum, TimeUnit.SECOND);\n\t\taddEEnumLiteral(timeUnitEEnum, TimeUnit.MINUTE);\n\t\taddEEnumLiteral(timeUnitEEnum, TimeUnit.HOUR);\n\t\taddEEnumLiteral(timeUnitEEnum, TimeUnit.DAY);\n\t\taddEEnumLiteral(timeUnitEEnum, TimeUnit.WEEK);\n\t\taddEEnumLiteral(timeUnitEEnum, TimeUnit.MONTH);\n\t\taddEEnumLiteral(timeUnitEEnum, TimeUnit.YEAR);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tperiodicTaskEClass.getESuperTypes().add(this.getTask());\n\t\taperiodicTaskEClass.getESuperTypes().add(this.getTask());\n\t\tconstantEClass.getESuperTypes().add(this.getDistribution());\n\t\texponentialEClass.getESuperTypes().add(this.getDistribution());\n\t\tuniformEClass.getESuperTypes().add(this.getDistribution());\n\t\tunknownEClass.getESuperTypes().add(this.getDistribution());\n\t\tnormalEClass.getESuperTypes().add(this.getDistribution());\n\t\tssTaskEClass.getESuperTypes().add(this.getAperiodicTask());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(taskEClass, Task.class, \"Task\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getTask_TaskId(), ecorePackage.getEInt(), \"taskId\", null, 0, 1, Task.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getTask_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Task.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTask_Subtasks(), this.getSubtask(), null, \"subtasks\", null, 0, -1, Task.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getTask_Deadline(), ecorePackage.getEDouble(), \"deadline\", null, 0, 1, Task.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\taddEOperation(taskEClass, ecorePackage.getEDouble(), \"getComputedExecutionMean\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(taskEClass, ecorePackage.getEDoubleObject(), \"getEffectiveDeadline\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(periodicTaskEClass, PeriodicTask.class, \"PeriodicTask\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getPeriodicTask_Period(), ecorePackage.getEDouble(), \"period\", null, 0, 1, PeriodicTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPeriodicTask_Offset(), ecorePackage.getEDouble(), \"offset\", null, 0, 1, PeriodicTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(aperiodicTaskEClass, AperiodicTask.class, \"AperiodicTask\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAperiodicTask_InterarrivalDistribution(), this.getDistribution(), null, \"interarrivalDistribution\", null, 1, 1, AperiodicTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(subtaskEClass, Subtask.class, \"Subtask\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getSubtask_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Subtask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSubtask_Priority(), ecorePackage.getEInt(), \"priority\", null, 0, 1, Subtask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSubtask_RetAnchorUsed(), ecorePackage.getEBoolean(), \"retAnchorUsed\", null, 0, 1, Subtask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSubtask_ActivationSynchronous(), ecorePackage.getEBoolean(), \"activationSynchronous\", null, 0, 1, Subtask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSubtask_ExecTimeDistribution(), this.getDistribution(), null, \"execTimeDistribution\", null, 1, 1, Subtask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSubtask_Bypass(), ecorePackage.getEInt(), \"bypass\", null, 0, 1, Subtask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSubtask_DownsamplingFactor(), ecorePackage.getEInt(), \"downsamplingFactor\", null, 0, 1, Subtask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSubtask_CallingThreadPriority(), ecorePackage.getEInt(), \"callingThreadPriority\", null, 0, 1, Subtask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSubtask_Mutexes(), this.getMutex(), null, \"mutexes\", null, 0, -1, Subtask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSubtask_PinId(), ecorePackage.getEInt(), \"pinId\", null, 0, 1, Subtask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(distributionEClass, Distribution.class, \"Distribution\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tEOperation op = addEOperation(distributionEClass, null, \"add\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEDouble(), \"value\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(distributionEClass, ecorePackage.getEDouble(), \"getComputedMean\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(distributionEClass, ecorePackage.getEString(), \"toString\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(constantEClass, Constant.class, \"Constant\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getConstant_Value(), ecorePackage.getEDouble(), \"value\", null, 0, 1, Constant.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(exponentialEClass, Exponential.class, \"Exponential\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getExponential_Mean(), ecorePackage.getEDouble(), \"mean\", null, 0, 1, Exponential.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(uniformEClass, Uniform.class, \"Uniform\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getUniform_Max(), ecorePackage.getEDouble(), \"max\", null, 0, 1, Uniform.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getUniform_Min(), ecorePackage.getEDouble(), \"min\", null, 0, 1, Uniform.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(unknownEClass, Unknown.class, \"Unknown\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getUnknown_Mean(), ecorePackage.getEDouble(), \"mean\", null, 0, 1, Unknown.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getUnknown_Min(), ecorePackage.getEDouble(), \"min\", null, 0, 1, Unknown.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getUnknown_Max(), ecorePackage.getEDouble(), \"max\", null, 0, 1, Unknown.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(normalEClass, Normal.class, \"Normal\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getNormal_Mean(), ecorePackage.getEDouble(), \"mean\", null, 0, 1, Normal.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getNormal_StdDev(), ecorePackage.getEDouble(), \"stdDev\", null, 0, 1, Normal.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(performanceModelEClass, PerformanceModel.class, \"PerformanceModel\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPerformanceModel_Tasks(), this.getTask(), null, \"tasks\", null, 0, -1, PerformanceModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPerformanceModel_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, PerformanceModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPerformanceModel_Mutexes(), this.getMutex(), null, \"mutexes\", null, 0, -1, PerformanceModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPerformanceModel_SourceFile(), ecorePackage.getEString(), \"sourceFile\", null, 0, 1, PerformanceModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(ssTaskEClass, SSTask.class, \"SSTask\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getSSTask_Budget(), ecorePackage.getEDouble(), \"budget\", null, 0, 1, SSTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSSTask_ReplenishmentPeriod(), ecorePackage.getEInt(), \"replenishmentPeriod\", null, 0, 1, SSTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSSTask_BackgroundPriority(), ecorePackage.getEInt(), \"backgroundPriority\", null, 0, 1, SSTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(mutexEClass, Mutex.class, \"Mutex\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMutex_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Mutex.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tfticBaseEClass.getESuperTypes().add(ecorePackage.getEObject());\n\t\titemEClass.getESuperTypes().add(this.getFTICBase());\n\t\thypertextEClass.getESuperTypes().add(this.getFTICBase());\n\t\ttextElementEClass.getESuperTypes().add(this.getFTICBase());\n\t\tlinkEClass.getESuperTypes().add(this.getTextElement());\n\t\ttermEClass.getESuperTypes().add(this.getTextElement());\n\t\tfactorTableEClass.getESuperTypes().add(this.getFTICBase());\n\t\tftEntryEClass.getESuperTypes().add(this.getItem());\n\t\tfactorCategoryEClass.getESuperTypes().add(this.getFTEntry());\n\t\tfactorEClass.getESuperTypes().add(this.getFTEntry());\n\t\tissueCardEClass.getESuperTypes().add(this.getItem());\n\t\tstrategyEClass.getESuperTypes().add(this.getItem());\n\t\tinfluencingFactorEClass.getESuperTypes().add(this.getFTICBase());\n\t\trelatedIssueEClass.getESuperTypes().add(this.getFTICBase());\n\t\tfticPackageEClass.getESuperTypes().add(this.getFTICBase());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(fticBaseEClass, FTICBase.class, \"FTICBase\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(itemEClass, Item.class, \"Item\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(hypertextEClass, Hypertext.class, \"Hypertext\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getHypertext_Content(), this.getTextElement(), null, \"content\", null, 0, -1, Hypertext.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(textElementEClass, TextElement.class, \"TextElement\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getTextElement_VisibleContent(), ecorePackage.getEString(), \"visibleContent\", null, 0, 1, TextElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(linkEClass, Link.class, \"Link\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getLink_Target(), ecorePackage.getEObject(), null, \"target\", null, 1, 1, Link.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(termEClass, Term.class, \"Term\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(factorTableEClass, FactorTable.class, \"FactorTable\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getFactorTable_Type(), this.getCategoryType(), \"type\", null, 0, 1, FactorTable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getFactorTable_Entries(), this.getFTEntry(), null, \"entries\", null, 0, -1, FactorTable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(ftEntryEClass, FTEntry.class, \"FTEntry\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getFTEntry_Numbering(), ecorePackage.getEString(), \"numbering\", null, 1, 1, FTEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getFTEntry_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, FTEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getFTEntry_Children(), this.getFTEntry(), null, \"children\", null, 0, -1, FTEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(factorCategoryEClass, FactorCategory.class, \"FactorCategory\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(factorEClass, Factor.class, \"Factor\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getFactor_Description(), this.getHypertext(), null, \"description\", null, 1, 1, Factor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getFactor_Flexibility(), this.getHypertext(), null, \"flexibility\", null, 1, 1, Factor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getFactor_Changeability(), this.getHypertext(), null, \"changeability\", null, 1, 1, Factor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getFactor_Influence(), this.getHypertext(), null, \"influence\", null, 1, 1, Factor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getFactor_Priority(), ecorePackage.getEString(), \"priority\", null, 1, 1, Factor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(issueCardEClass, IssueCard.class, \"IssueCard\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getIssueCard_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, IssueCard.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getIssueCard_Description(), this.getHypertext(), null, \"description\", null, 1, 1, IssueCard.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getIssueCard_Solution(), this.getHypertext(), null, \"solution\", null, 1, 1, IssueCard.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getIssueCard_Strategies(), this.getStrategy(), null, \"strategies\", null, 1, -1, IssueCard.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getIssueCard_InfluencingFactors(), this.getInfluencingFactor(), null, \"influencingFactors\", null, 1, -1, IssueCard.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getIssueCard_RelatedIssues(), this.getRelatedIssue(), null, \"relatedIssues\", null, 0, -1, IssueCard.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(strategyEClass, Strategy.class, \"Strategy\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getStrategy_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, Strategy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getStrategy_Description(), this.getHypertext(), null, \"description\", null, 1, 1, Strategy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(influencingFactorEClass, InfluencingFactor.class, \"InfluencingFactor\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInfluencingFactor_Description(), this.getHypertext(), null, \"description\", null, 1, 1, InfluencingFactor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInfluencingFactor_Factor(), this.getFactor(), null, \"factor\", null, 1, 1, InfluencingFactor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(relatedIssueEClass, RelatedIssue.class, \"RelatedIssue\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getRelatedIssue_Issue(), this.getItem(), null, \"Issue\", null, 0, 1, RelatedIssue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getRelatedIssue_Description(), this.getHypertext(), null, \"description\", null, 0, 1, RelatedIssue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(fticPackageEClass, FTICPackage.class, \"FTICPackage\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getFTICPackage_Tables(), this.getFactorTable(), null, \"tables\", null, 0, -1, FTICPackage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getFTICPackage_IssueCards(), this.getIssueCard(), null, \"issueCards\", null, 0, -1, FTICPackage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getFTICPackage_Name(), ecorePackage.getEString(), \"Name\", null, 1, 1, FTICPackage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Initialize enums and add enum literals\n\t\tinitEEnum(categoryTypeEEnum, CategoryType.class, \"CategoryType\");\n\t\taddEEnumLiteral(categoryTypeEEnum, CategoryType.ORGANIZATIONAL);\n\t\taddEEnumLiteral(categoryTypeEEnum, CategoryType.TECHNOLOGICAL);\n\t\taddEEnumLiteral(categoryTypeEEnum, CategoryType.PRODUCT);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "public void initializePackageContents()\n {\n if (isInitialized) return;\n isInitialized = true;\n\n // Initialize package\n setName(eNAME);\n setNsPrefix(eNS_PREFIX);\n setNsURI(eNS_URI);\n\n // Create type parameters\n\n // Set bounds for type parameters\n\n // Add supertypes to classes\n externalDefEClass.getESuperTypes().add(this.getDeclaration());\n typeEClass.getESuperTypes().add(this.getDeclaration());\n resultStatementEClass.getESuperTypes().add(this.getDeclaration());\n plusEClass.getESuperTypes().add(this.getExpression());\n minusEClass.getESuperTypes().add(this.getExpression());\n multEClass.getESuperTypes().add(this.getExpression());\n divEClass.getESuperTypes().add(this.getExpression());\n varEClass.getESuperTypes().add(this.getExpression());\n letEClass.getESuperTypes().add(this.getExpression());\n externalUseEClass.getESuperTypes().add(this.getExpression());\n numEClass.getESuperTypes().add(this.getExpression());\n\n // Initialize classes and features; add operations and parameters\n initEClass(mathExpEClass, MathExp.class, \"MathExp\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getMathExp_Declarations(), this.getDeclaration(), null, \"declarations\", null, 0, -1, MathExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(declarationEClass, Declaration.class, \"Declaration\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(externalDefEClass, ExternalDef.class, \"ExternalDef\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getExternalDef_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, ExternalDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getExternalDef_Parameters(), this.getParameter(), null, \"parameters\", null, 0, -1, ExternalDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(parameterEClass, Parameter.class, \"Parameter\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getParameter_Type(), this.getType(), null, \"type\", null, 0, 1, Parameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getParameter_ParameterName(), ecorePackage.getEString(), \"parameterName\", null, 0, 1, Parameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(typeEClass, Type.class, \"Type\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getType_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Type.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(resultStatementEClass, ResultStatement.class, \"ResultStatement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getResultStatement_Label(), ecorePackage.getEString(), \"label\", null, 0, 1, ResultStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getResultStatement_Exp(), this.getExpression(), null, \"exp\", null, 0, 1, ResultStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(expressionEClass, Expression.class, \"Expression\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(plusEClass, Plus.class, \"Plus\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getPlus_Left(), this.getExpression(), null, \"left\", null, 0, 1, Plus.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getPlus_Right(), this.getExpression(), null, \"right\", null, 0, 1, Plus.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(minusEClass, Minus.class, \"Minus\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getMinus_Left(), this.getExpression(), null, \"left\", null, 0, 1, Minus.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getMinus_Right(), this.getExpression(), null, \"right\", null, 0, 1, Minus.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(multEClass, Mult.class, \"Mult\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getMult_Left(), this.getExpression(), null, \"left\", null, 0, 1, Mult.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getMult_Right(), this.getExpression(), null, \"right\", null, 0, 1, Mult.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(divEClass, Div.class, \"Div\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getDiv_Left(), this.getExpression(), null, \"left\", null, 0, 1, Div.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getDiv_Right(), this.getExpression(), null, \"right\", null, 0, 1, Div.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(varEClass, Var.class, \"Var\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getVar_Id(), ecorePackage.getEString(), \"id\", null, 0, 1, Var.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(letEClass, Let.class, \"Let\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getLet_Id(), ecorePackage.getEString(), \"id\", null, 0, 1, Let.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getLet_Binding(), this.getExpression(), null, \"binding\", null, 0, 1, Let.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getLet_Body(), this.getExpression(), null, \"body\", null, 0, 1, Let.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(externalUseEClass, ExternalUse.class, \"ExternalUse\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getExternalUse_External(), this.getExternalDef(), null, \"external\", null, 0, 1, ExternalUse.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getExternalUse_Arguments(), this.getExpression(), null, \"arguments\", null, 0, -1, ExternalUse.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(numEClass, Num.class, \"Num\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getNum_Value(), ecorePackage.getEInt(), \"value\", null, 0, 1, Num.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n // Create resource\n createResource(eNS_URI);\n }", "public void initializePackageContents() {\r\n\t\tif (isInitialized) return;\r\n\t\tisInitialized = true;\r\n\r\n\t\t// Initialize package\r\n\t\tsetName(eNAME);\r\n\t\tsetNsPrefix(eNS_PREFIX);\r\n\t\tsetNsURI(eNS_URI);\r\n\r\n\t\t// Create type parameters\r\n\r\n\t\t// Set bounds for type parameters\r\n\r\n\t\t// Add supertypes to classes\r\n\t\ttrasicionEntreOmOmEClass.getESuperTypes().add(this.getTransicion());\r\n\t\ttransicionEntreMacroOmOmEClass.getESuperTypes().add(this.getTransicion());\r\n\t\texpresionBinariaEClass.getESuperTypes().add(this.getElementoExpresion());\r\n\t\trefVariableGemmaEClass.getESuperTypes().add(this.getElementoExpresion());\r\n\t\texpresionNotEClass.getESuperTypes().add(this.getElementoExpresion());\r\n\t\trefVariableOmEClass.getESuperTypes().add(this.getElementoExpresion());\r\n\t\texpresionConjuntaEClass.getESuperTypes().add(this.getElementoExpresion());\r\n\r\n\t\t// Initialize classes, features, and operations; add parameters\r\n\t\tinitEClass(gemmaEClass, Gemma.class, \"Gemma\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getGemma_MacroOms(), this.getMacroOm(), null, \"macroOms\", null, 1, -1, Gemma.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getGemma_Transiciones(), this.getTransicion(), null, \"transiciones\", null, 1, -1, Gemma.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getGemma_VariablesGemma(), this.getVariableGemma(), null, \"variablesGemma\", null, 0, -1, Gemma.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(macroOmEClass, MacroOm.class, \"MacroOm\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getMacroOm_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, MacroOm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getMacroOm_Tipo(), this.getTipoMacroOm(), \"tipo\", null, 0, 1, MacroOm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getMacroOm_Oms(), this.getOm(), null, \"oms\", null, 1, -1, MacroOm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(omEClass, Om.class, \"Om\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getOm_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Om.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getOm_Tipo(), this.getTipoOm(), \"tipo\", null, 0, 1, Om.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getOm_EsOmRaiz(), ecorePackage.getEBoolean(), \"esOmRaiz\", null, 0, 1, Om.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getOm_VariablesOm(), this.getVariableOm(), null, \"variablesOm\", null, 0, -1, Om.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getOm_EsVisible(), ecorePackage.getEBoolean(), \"esVisible\", null, 0, 1, Om.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(trasicionEntreOmOmEClass, TrasicionEntreOmOm.class, \"TrasicionEntreOmOm\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getTrasicionEntreOmOm_Origen(), this.getOm(), null, \"origen\", null, 1, 1, TrasicionEntreOmOm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getTrasicionEntreOmOm_Destino(), this.getOm(), null, \"destino\", null, 1, 1, TrasicionEntreOmOm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(transicionEntreMacroOmOmEClass, TransicionEntreMacroOmOm.class, \"TransicionEntreMacroOmOm\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getTransicionEntreMacroOmOm_Origen(), this.getMacroOm(), null, \"origen\", null, 1, 1, TransicionEntreMacroOmOm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getTransicionEntreMacroOmOm_Destino(), this.getOm(), null, \"destino\", null, 1, 1, TransicionEntreMacroOmOm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(expresionBinariaEClass, ExpresionBinaria.class, \"ExpresionBinaria\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getExpresionBinaria_ExpresionIzquierda(), this.getElementoExpresion(), null, \"expresionIzquierda\", null, 0, 1, ExpresionBinaria.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getExpresionBinaria_ExpresionDerecha(), this.getElementoExpresion(), null, \"expresionDerecha\", null, 0, 1, ExpresionBinaria.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getExpresionBinaria_Operador(), this.getTipoOperador(), \"operador\", null, 0, 1, ExpresionBinaria.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(elementoExpresionEClass, ElementoExpresion.class, \"ElementoExpresion\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEClass(variableOmEClass, VariableOm.class, \"VariableOm\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getVariableOm_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, VariableOm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(transicionEClass, Transicion.class, \"Transicion\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getTransicion_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Transicion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getTransicion_ElementoExpresion(), this.getElementoExpresion(), null, \"elementoExpresion\", null, 1, 1, Transicion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(variableGemmaEClass, VariableGemma.class, \"VariableGemma\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getVariableGemma_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, VariableGemma.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(refVariableGemmaEClass, RefVariableGemma.class, \"RefVariableGemma\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getRefVariableGemma_VariableGemma(), this.getVariableGemma(), null, \"variableGemma\", null, 1, 1, RefVariableGemma.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getRefVariableGemma_NivelDeEscritura(), this.getNivelDeEscritura(), \"nivelDeEscritura\", null, 0, 1, RefVariableGemma.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(expresionNotEClass, ExpresionNot.class, \"ExpresionNot\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getExpresionNot_ElementoExpresion(), this.getElementoExpresion(), null, \"elementoExpresion\", null, 1, 1, ExpresionNot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(refVariableOmEClass, RefVariableOm.class, \"RefVariableOm\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getRefVariableOm_VariableOm(), this.getVariableOm(), null, \"variableOm\", null, 1, 1, RefVariableOm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(expresionConjuntaEClass, ExpresionConjunta.class, \"ExpresionConjunta\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getExpresionConjunta_ElementoExpresion(), this.getElementoExpresion(), null, \"elementoExpresion\", null, 1, 1, ExpresionConjunta.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\t// Initialize enums and add enum literals\r\n\t\tinitEEnum(tipoOmEEnum, TipoOm.class, \"TipoOm\");\r\n\t\taddEEnumLiteral(tipoOmEEnum, TipoOm.A1);\r\n\t\taddEEnumLiteral(tipoOmEEnum, TipoOm.A2);\r\n\t\taddEEnumLiteral(tipoOmEEnum, TipoOm.A3);\r\n\t\taddEEnumLiteral(tipoOmEEnum, TipoOm.A4);\r\n\t\taddEEnumLiteral(tipoOmEEnum, TipoOm.A5);\r\n\t\taddEEnumLiteral(tipoOmEEnum, TipoOm.A6);\r\n\t\taddEEnumLiteral(tipoOmEEnum, TipoOm.A7);\r\n\t\taddEEnumLiteral(tipoOmEEnum, TipoOm.F1);\r\n\t\taddEEnumLiteral(tipoOmEEnum, TipoOm.F2);\r\n\t\taddEEnumLiteral(tipoOmEEnum, TipoOm.F3);\r\n\t\taddEEnumLiteral(tipoOmEEnum, TipoOm.F4);\r\n\t\taddEEnumLiteral(tipoOmEEnum, TipoOm.F5);\r\n\t\taddEEnumLiteral(tipoOmEEnum, TipoOm.F6);\r\n\t\taddEEnumLiteral(tipoOmEEnum, TipoOm.D1);\r\n\t\taddEEnumLiteral(tipoOmEEnum, TipoOm.D2);\r\n\t\taddEEnumLiteral(tipoOmEEnum, TipoOm.D3);\r\n\r\n\t\tinitEEnum(tipoMacroOmEEnum, TipoMacroOm.class, \"TipoMacroOm\");\r\n\t\taddEEnumLiteral(tipoMacroOmEEnum, TipoMacroOm.A);\r\n\t\taddEEnumLiteral(tipoMacroOmEEnum, TipoMacroOm.F);\r\n\t\taddEEnumLiteral(tipoMacroOmEEnum, TipoMacroOm.D);\r\n\r\n\t\tinitEEnum(tipoOperadorEEnum, TipoOperador.class, \"TipoOperador\");\r\n\t\taddEEnumLiteral(tipoOperadorEEnum, TipoOperador.AND);\r\n\t\taddEEnumLiteral(tipoOperadorEEnum, TipoOperador.OR);\r\n\r\n\t\tinitEEnum(nivelDeEscrituraEEnum, NivelDeEscritura.class, \"NivelDeEscritura\");\r\n\t\taddEEnumLiteral(nivelDeEscrituraEEnum, NivelDeEscritura.GEMMA);\r\n\t\taddEEnumLiteral(nivelDeEscrituraEEnum, NivelDeEscritura.OM);\r\n\r\n\t\t// Create resource\r\n\t\tcreateResource(eNS_URI);\r\n\t}", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(mealyMachineEClass, MealyMachine.class, \"MealyMachine\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getMealyMachine_InitialState(), this.getState(), null, \"initialState\", null, 1, 1, MealyMachine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMealyMachine_States(), this.getState(), null, \"states\", null, 1, -1, MealyMachine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMealyMachine_InputAlphabet(), this.getAlphabet(), null, \"inputAlphabet\", null, 1, 1, MealyMachine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMealyMachine_OutputAlphabet(), this.getAlphabet(), null, \"outputAlphabet\", null, 1, 1, MealyMachine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMealyMachine_Transitions(), this.getTransition(), null, \"transitions\", null, 1, -1, MealyMachine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(stateEClass, State.class, \"State\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getState_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, State.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(alphabetEClass, Alphabet.class, \"Alphabet\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getAlphabet_Characters(), ecorePackage.getEString(), \"characters\", null, 1, -1, Alphabet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(transitionEClass, Transition.class, \"Transition\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getTransition_SourceState(), this.getState(), null, \"sourceState\", null, 1, 1, Transition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTransition_TargetState(), this.getState(), null, \"targetState\", null, 1, 1, Transition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getTransition_Input(), ecorePackage.getEString(), \"input\", null, 1, 1, Transition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getTransition_Output(), ecorePackage.getEString(), \"output\", null, 1, 1, Transition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tjTypeEClass.getESuperTypes().add(this.getJElement());\n\t\tjTypedElementEClass.getESuperTypes().add(this.getJElement());\n\t\tjPrimitiveEClass.getESuperTypes().add(this.getJType());\n\t\tjEnumerationEClass.getESuperTypes().add(this.getJType());\n\t\tjClassEClass.getESuperTypes().add(this.getJType());\n\t\tjAttributeEClass.getESuperTypes().add(this.getJTypedElement());\n\t\tjOperationEClass.getESuperTypes().add(this.getJElement());\n\t\tjParameterEClass.getESuperTypes().add(this.getJTypedElement());\n\t\tjRelationshipEClass.getESuperTypes().add(this.getJElement());\n\t\tjRoleEClass.getESuperTypes().add(this.getJElement());\n\t\tjLiteralEClass.getESuperTypes().add(this.getJElement());\n\t\tjPackageEClass.getESuperTypes().add(this.getJElement());\n\t\tjStateMachineEClass.getESuperTypes().add(this.getJElement());\n\t\tjTransitionEClass.getESuperTypes().add(this.getJElement());\n\t\tjStateEClass.getESuperTypes().add(this.getJElement());\n\t\tjGuardEClass.getESuperTypes().add(this.getJElement());\n\t\tjModelEClass.getESuperTypes().add(this.getJElement());\n\t\tjuiMenuItemEClass.getESuperTypes().add(this.getJElement());\n\t\tjuiAttributeGroupEClass.getESuperTypes().add(this.getJElement());\n\t\tjuiFilterEClass.getESuperTypes().add(this.getJElement());\n\t\tjuiAliasEClass.getESuperTypes().add(this.getJElement());\n\t\tjInfoEClass.getESuperTypes().add(this.getJElement());\n\t\tjSubmodelEClass.getESuperTypes().add(this.getJElement());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(jElementEClass, JElement.class, \"JElement\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getJElement_Uuid(), ecorePackage.getEString(), \"uuid\", null, 1, 1, JElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJElement_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, JElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJElement_ShortName(), ecorePackage.getEString(), \"shortName\", null, 0, 1, JElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJElement_FullName(), ecorePackage.getEString(), \"fullName\", null, 0, 1, JElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJElement_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, JElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJElement_Framework(), ecorePackage.getEBoolean(), \"framework\", null, 0, 1, JElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJElement_Participates(), this.getJLayer(), \"participates\", null, 0, -1, JElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJElement_Visibility(), this.getJVisibility(), \"visibility\", null, 0, 1, JElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(jTypeEClass, JType.class, \"JType\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(jTypedElementEClass, JTypedElement.class, \"JTypedElement\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getJTypedElement_Type(), this.getJType(), null, \"type\", null, 1, 1, JTypedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJTypedElement_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, JTypedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJTypedElement_Derived(), ecorePackage.getEBoolean(), \"derived\", null, 0, 1, JTypedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJTypedElement_Calculated(), ecorePackage.getEBoolean(), \"calculated\", null, 0, 1, JTypedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJTypedElement_Lower(), ecorePackage.getEInt(), \"lower\", \"0\", 0, 1, JTypedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJTypedElement_Upper(), ecorePackage.getEInt(), \"upper\", \"1\", 0, 1, JTypedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJTypedElement_Ordered(), ecorePackage.getEBoolean(), \"ordered\", null, 0, 1, JTypedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJTypedElement_Unique(), ecorePackage.getEBoolean(), \"unique\", null, 0, 1, JTypedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(jPrimitiveEClass, JPrimitive.class, \"JPrimitive\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getJPrimitive_Package(), this.getJPackage(), this.getJPackage_Primitives(), \"package\", null, 0, 1, JPrimitive.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJPrimitive_UseForIdType(), ecorePackage.getEBoolean(), \"useForIdType\", null, 0, 1, JPrimitive.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(jEnumerationEClass, JEnumeration.class, \"JEnumeration\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getJEnumeration_Package(), this.getJPackage(), this.getJPackage_Enumerations(), \"package\", null, 0, 1, JEnumeration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJEnumeration_Literals(), this.getJLiteral(), this.getJLiteral_Enumeration(), \"literals\", null, 0, -1, JEnumeration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJEnumeration_ClassRepresentation(), this.getJClass(), this.getJClass_FixedEnum(), \"classRepresentation\", null, 0, 1, JEnumeration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(jClassEClass, JClass.class, \"JClass\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getJClass_Abstract(), ecorePackage.getEBoolean(), \"abstract\", null, 0, 1, JClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJClass_StateMachines(), this.getJStateMachine(), this.getJStateMachine_OwnerClass(), \"stateMachines\", null, 0, -1, JClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJClass_Operations(), this.getJOperation(), this.getJOperation_OwnerClass(), \"operations\", null, 0, -1, JClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJClass_AttributeOrder(), this.getJUIAttributeGroup(), null, \"attributeOrder\", null, 0, -1, JClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJClass_AttributesForListing(), this.getJAttribute(), null, \"attributesForListing\", null, 0, -1, JClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJClass_FixedEnum(), this.getJEnumeration(), this.getJEnumeration_ClassRepresentation(), \"fixedEnum\", null, 0, 1, JClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJClass_RepresentsTenant(), ecorePackage.getEBoolean(), \"representsTenant\", null, 0, 1, JClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJClass_TenantMember(), ecorePackage.getEBoolean(), \"tenantMember\", null, 0, 1, JClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJClass_Representation(), this.getJAttribute(), null, \"representation\", null, 0, 1, JClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJClass_RepresentsEnum(), ecorePackage.getEBoolean(), \"representsEnum\", null, 0, 1, JClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJClass_RepresentsTenantUser(), ecorePackage.getEBoolean(), \"representsTenantUser\", null, 0, 1, JClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJClass_RepresentsUser(), ecorePackage.getEBoolean(), \"representsUser\", null, 0, 1, JClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJClass_Supertype(), this.getJClass(), null, \"supertype\", null, 0, 1, JClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJClass_Package(), this.getJPackage(), this.getJPackage_Classes(), \"package\", null, 0, 1, JClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJClass_Roles(), this.getJRole(), this.getJRole_OwnerClass(), \"roles\", null, 0, -1, JClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJClass_Attributes(), this.getJAttribute(), this.getJAttribute_OwnerClass(), \"attributes\", null, 0, -1, JClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJClass_BusinessSingleton(), ecorePackage.getEBoolean(), \"businessSingleton\", null, 0, 1, JClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJClass_Aliases(), this.getJUIAlias(), this.getJUIAlias_OwnerClass(), \"aliases\", null, 0, -1, JClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJClass_Watched(), ecorePackage.getEBoolean(), \"watched\", \"false\", 0, 1, JClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJClass_RepresentsEnumValue(), ecorePackage.getEBoolean(), \"representsEnumValue\", null, 0, 1, JClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(jAttributeEClass, JAttribute.class, \"JAttribute\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getJAttribute_Placeholder(), ecorePackage.getEString(), \"placeholder\", null, 0, 1, JAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJAttribute_Regexp(), ecorePackage.getEString(), \"regexp\", null, 0, 1, JAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJAttribute_Mandatory(), ecorePackage.getEBoolean(), \"mandatory\", null, 0, 1, JAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJAttribute_Decimals(), ecorePackage.getEInt(), \"decimals\", null, 0, 1, JAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJAttribute_Interval(), ecorePackage.getEString(), \"interval\", null, 0, 1, JAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJAttribute_Technical(), ecorePackage.getEBoolean(), \"technical\", null, 0, 1, JAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJAttribute_OwnerClass(), this.getJClass(), this.getJClass_Attributes(), \"ownerClass\", null, 0, 1, JAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJAttribute_UiNoSearch(), ecorePackage.getEBoolean(), \"uiNoSearch\", \"false\", 0, 1, JAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJAttribute_Watched(), ecorePackage.getEBoolean(), \"watched\", \"false\", 0, 1, JAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJAttribute_RepresentsId(), ecorePackage.getEBoolean(), \"representsId\", \"false\", 0, 1, JAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(jOperationEClass, JOperation.class, \"JOperation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getJOperation_ClassBased(), ecorePackage.getEBoolean(), \"classBased\", null, 0, 1, JOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJOperation_OwnerClass(), this.getJClass(), this.getJClass_Operations(), \"ownerClass\", null, 0, 1, JOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJOperation_Parameters(), this.getJParameter(), this.getJParameter_OwnerOperation(), \"parameters\", null, 0, -1, JOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJOperation_Transition(), this.getJTransition(), this.getJTransition_ExecutingOperation(), \"transition\", null, 0, -1, JOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJOperation_Bulk(), ecorePackage.getEBoolean(), \"bulk\", null, 0, 1, JOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJOperation_Kind(), this.getJOperationKind(), \"kind\", null, 0, 1, JOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJOperation_UiMustConfirm(), ecorePackage.getEBoolean(), \"uiMustConfirm\", \"false\", 0, 1, JOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(jParameterEClass, JParameter.class, \"JParameter\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getJParameter_OwnerOperation(), this.getJOperation(), this.getJOperation_Parameters(), \"ownerOperation\", null, 0, 1, JParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJParameter_Input(), ecorePackage.getEBoolean(), \"input\", \"true\", 0, 1, JParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJParameter_Interval(), ecorePackage.getEString(), \"interval\", null, 0, 1, JParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(jRelationshipEClass, JRelationship.class, \"JRelationship\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getJRelationship_Package(), this.getJPackage(), this.getJPackage_Relationships(), \"package\", null, 0, 1, JRelationship.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJRelationship_Roles(), this.getJRole(), this.getJRole_OwnerRelationship(), \"roles\", null, 2, 2, JRelationship.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJRelationship_Derived(), ecorePackage.getEBoolean(), \"derived\", null, 0, 1, JRelationship.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(jRoleEClass, JRole.class, \"JRole\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getJRole_Lower(), ecorePackage.getEInt(), \"lower\", \"0\", 0, 1, JRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJRole_Upper(), ecorePackage.getEInt(), \"upper\", \"1\", 0, 1, JRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJRole_Navigable(), ecorePackage.getEBoolean(), \"navigable\", null, 0, 1, JRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJRole_Unique(), ecorePackage.getEBoolean(), \"unique\", null, 0, 1, JRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJRole_Ordered(), ecorePackage.getEBoolean(), \"ordered\", \"true\", 0, 1, JRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJRole_OwnerRelationship(), this.getJRelationship(), this.getJRelationship_Roles(), \"ownerRelationship\", null, 1, 1, JRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJRole_DerivedExpression(), ecorePackage.getEString(), \"derivedExpression\", null, 0, 1, JRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJRole_DerivedDescription(), ecorePackage.getEString(), \"derivedDescription\", null, 0, 1, JRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJRole_Kind(), this.getJAssociationKind(), \"kind\", \"ASSOCIATION\", 0, 1, JRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJRole_OptionScript(), ecorePackage.getEString(), \"optionScript\", null, 0, 1, JRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJRole_OwnerClass(), this.getJClass(), this.getJClass_Roles(), \"ownerClass\", null, 1, 1, JRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJRole_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, JRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJRole_Calculated(), ecorePackage.getEBoolean(), \"calculated\", null, 0, 1, JRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJRole_Interval(), ecorePackage.getEString(), \"interval\", null, 0, 1, JRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(jLiteralEClass, JLiteral.class, \"JLiteral\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getJLiteral_Enumeration(), this.getJEnumeration(), this.getJEnumeration_Literals(), \"enumeration\", null, 0, 1, JLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(jPackageEClass, JPackage.class, \"JPackage\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getJPackage_Enumerations(), this.getJEnumeration(), this.getJEnumeration_Package(), \"enumerations\", null, 0, -1, JPackage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJPackage_Primitives(), this.getJPrimitive(), this.getJPrimitive_Package(), \"primitives\", null, 0, -1, JPackage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJPackage_Relationships(), this.getJRelationship(), this.getJRelationship_Package(), \"relationships\", null, 0, -1, JPackage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJPackage_Children(), this.getJPackage(), this.getJPackage_Parent(), \"children\", null, 0, -1, JPackage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJPackage_Parent(), this.getJPackage(), this.getJPackage_Children(), \"parent\", null, 0, 1, JPackage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJPackage_OwnerModel(), this.getJModel(), this.getJModel_Packages(), \"ownerModel\", null, 0, 1, JPackage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJPackage_Classes(), this.getJClass(), this.getJClass_Package(), \"classes\", null, 0, -1, JPackage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(jStateMachineEClass, JStateMachine.class, \"JStateMachine\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getJStateMachine_OwnerClass(), this.getJClass(), this.getJClass_StateMachines(), \"ownerClass\", null, 0, 1, JStateMachine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJStateMachine_States(), this.getJState(), this.getJState_OwnerStateMachine(), \"states\", null, 0, -1, JStateMachine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJStateMachine_Transitions(), this.getJTransition(), this.getJTransition_StateMachine(), \"transitions\", null, 0, -1, JStateMachine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJStateMachine_CorrespondingEnum(), this.getJEnumeration(), null, \"correspondingEnum\", null, 1, 1, JStateMachine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(jTransitionEClass, JTransition.class, \"JTransition\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getJTransition_StateMachine(), this.getJStateMachine(), this.getJStateMachine_Transitions(), \"stateMachine\", null, 0, 1, JTransition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJTransition_Guard(), this.getJGuard(), this.getJGuard_Transition(), \"guard\", null, 0, 1, JTransition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJTransition_ToState(), this.getJState(), this.getJState_IncomingTransitions(), \"toState\", null, 1, 1, JTransition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJTransition_FromState(), this.getJState(), this.getJState_OutgoingTransitions(), \"fromState\", null, 1, 1, JTransition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJTransition_ExecutingOperation(), this.getJOperation(), this.getJOperation_Transition(), \"executingOperation\", null, 0, 1, JTransition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(jStateEClass, JState.class, \"JState\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getJState_OwnerStateMachine(), this.getJStateMachine(), this.getJStateMachine_States(), \"ownerStateMachine\", null, 0, 1, JState.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJState_IncomingTransitions(), this.getJTransition(), this.getJTransition_ToState(), \"incomingTransitions\", null, 0, -1, JState.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJState_OutgoingTransitions(), this.getJTransition(), this.getJTransition_FromState(), \"outgoingTransitions\", null, 0, -1, JState.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJState_InitialState(), ecorePackage.getEBoolean(), \"initialState\", null, 0, 1, JState.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJState_FinalState(), ecorePackage.getEBoolean(), \"finalState\", null, 0, 1, JState.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(jGuardEClass, JGuard.class, \"JGuard\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getJGuard_Transition(), this.getJTransition(), this.getJTransition_Guard(), \"transition\", null, 0, 1, JGuard.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJGuard_Text(), ecorePackage.getEString(), \"text\", null, 0, 1, JGuard.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJGuard_Expression(), ecorePackage.getEString(), \"expression\", null, 0, 1, JGuard.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(jModelEClass, JModel.class, \"JModel\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getJModel_Packages(), this.getJPackage(), this.getJPackage_OwnerModel(), \"packages\", null, 0, -1, JModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJModel_PackagePrefix(), ecorePackage.getEString(), \"packagePrefix\", null, 0, 1, JModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJModel_ApplicationTop(), this.getJPackage(), null, \"applicationTop\", null, 1, 1, JModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJModel_RootMenuItems(), this.getJUIMenuItem(), null, \"rootMenuItems\", null, 0, -1, JModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJModel_Info(), this.getJInfo(), null, \"info\", null, 0, 1, JModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(juiMenuItemEClass, JUIMenuItem.class, \"JUIMenuItem\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getJUIMenuItem_Children(), this.getJUIMenuItem(), this.getJUIMenuItem_Parent(), \"children\", null, 0, -1, JUIMenuItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJUIMenuItem_Parent(), this.getJUIMenuItem(), this.getJUIMenuItem_Children(), \"parent\", null, 0, 1, JUIMenuItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJUIMenuItem_Represent(), this.getJClass(), null, \"represent\", null, 0, 1, JUIMenuItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJUIMenuItem_Uifilters(), this.getJUIFilter(), null, \"uifilters\", null, 0, -1, JUIMenuItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJUIMenuItem_Type(), this.getJMenuItemType(), \"type\", null, 0, 1, JUIMenuItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getJUIMenuItem_Alias(), this.getJUIAlias(), null, \"alias\", null, 0, 1, JUIMenuItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(juiAttributeGroupEClass, JUIAttributeGroup.class, \"JUIAttributeGroup\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getJUIAttributeGroup_Attributes(), this.getJAttribute(), null, \"attributes\", null, 0, -1, JUIAttributeGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJUIAttributeGroup_Position(), ecorePackage.getEInt(), \"position\", null, 0, 1, JUIAttributeGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(juiFilterEClass, JUIFilter.class, \"JUIFilter\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getJUIFilter_Attribute(), this.getJAttribute(), null, \"attribute\", null, 1, 1, JUIFilter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJUIFilter_Operator(), this.getJOperator(), \"operator\", null, 1, 1, JUIFilter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getJUIFilter_Value(), ecorePackage.getEString(), \"value\", null, 1, 1, JUIFilter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(juiAliasEClass, JUIAlias.class, \"JUIAlias\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getJUIAlias_OwnerClass(), this.getJClass(), this.getJClass_Aliases(), \"ownerClass\", null, 1, 1, JUIAlias.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(jInfoEClass, JInfo.class, \"JInfo\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getJInfo_Submodels(), this.getJSubmodel(), null, \"submodels\", null, 0, -1, JInfo.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(jSubmodelEClass, JSubmodel.class, \"JSubmodel\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getJSubmodel_Version(), ecorePackage.getEString(), \"version\", null, 0, 1, JSubmodel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Initialize enums and add enum literals\n\t\tinitEEnum(jVisibilityEEnum, JVisibility.class, \"JVisibility\");\n\t\taddEEnumLiteral(jVisibilityEEnum, JVisibility.PUBLIC);\n\t\taddEEnumLiteral(jVisibilityEEnum, JVisibility.PROTECTED);\n\t\taddEEnumLiteral(jVisibilityEEnum, JVisibility.PACKAGE);\n\t\taddEEnumLiteral(jVisibilityEEnum, JVisibility.PRIVATE);\n\n\t\tinitEEnum(jAssociationKindEEnum, JAssociationKind.class, \"JAssociationKind\");\n\t\taddEEnumLiteral(jAssociationKindEEnum, JAssociationKind.ASSOCIATION);\n\t\taddEEnumLiteral(jAssociationKindEEnum, JAssociationKind.AGGREGATION);\n\t\taddEEnumLiteral(jAssociationKindEEnum, JAssociationKind.COMPOSITION);\n\n\t\tinitEEnum(jOperationKindEEnum, JOperationKind.class, \"JOperationKind\");\n\t\taddEEnumLiteral(jOperationKindEEnum, JOperationKind.CUSTOM);\n\t\taddEEnumLiteral(jOperationKindEEnum, JOperationKind.QUERY);\n\n\t\tinitEEnum(jLayerEEnum, JLayer.class, \"JLayer\");\n\t\taddEEnumLiteral(jLayerEEnum, JLayer.ALL);\n\t\taddEEnumLiteral(jLayerEEnum, JLayer.PERSISTENCE);\n\t\taddEEnumLiteral(jLayerEEnum, JLayer.SERVICE);\n\t\taddEEnumLiteral(jLayerEEnum, JLayer.OPERATION);\n\t\taddEEnumLiteral(jLayerEEnum, JLayer.REST);\n\t\taddEEnumLiteral(jLayerEEnum, JLayer.UI);\n\t\taddEEnumLiteral(jLayerEEnum, JLayer.DOCUMENT);\n\t\taddEEnumLiteral(jLayerEEnum, JLayer.PERMISSION);\n\t\taddEEnumLiteral(jLayerEEnum, JLayer.SCREEN);\n\n\t\tinitEEnum(jMenuItemTypeEEnum, JMenuItemType.class, \"JMenuItemType\");\n\t\taddEEnumLiteral(jMenuItemTypeEEnum, JMenuItemType.OBJECT);\n\t\taddEEnumLiteral(jMenuItemTypeEEnum, JMenuItemType.LIST);\n\t\taddEEnumLiteral(jMenuItemTypeEEnum, JMenuItemType.NONE);\n\n\t\tinitEEnum(jOperatorEEnum, JOperator.class, \"JOperator\");\n\t\taddEEnumLiteral(jOperatorEEnum, JOperator.EQ);\n\t\taddEEnumLiteral(jOperatorEEnum, JOperator.NE);\n\t\taddEEnumLiteral(jOperatorEEnum, JOperator.LT);\n\t\taddEEnumLiteral(jOperatorEEnum, JOperator.LTE);\n\t\taddEEnumLiteral(jOperatorEEnum, JOperator.GT);\n\t\taddEEnumLiteral(jOperatorEEnum, JOperator.GTE);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\n\t\t// Create annotations\n\t\t// http:///org/eclipse/emf/ecore/util/ExtendedMetaData\n\t\tcreateExtendedMetaDataAnnotations();\n\t}", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tEcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(oml2OTIProvenanceEClass, OML2OTIProvenance.class, \"OML2OTIProvenance\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getOML2OTIProvenance_OmlUUID(), this.getUUID(), \"omlUUID\", null, 1, 1, OML2OTIProvenance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getOML2OTIProvenance_OmlIRI(), this.getOML_IRI(), \"omlIRI\", null, 0, 1, OML2OTIProvenance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getOML2OTIProvenance_OtiID(), this.getOTI_TOOL_SPECIFIC_ID(), \"otiID\", null, 1, 1, OML2OTIProvenance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getOML2OTIProvenance_OtiURL(), this.getOTI_TOOL_SPECIFIC_URL(), \"otiURL\", null, 1, 1, OML2OTIProvenance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getOML2OTIProvenance_OtiUUID(), this.getOTI_TOOL_SPECIFIC_UUID(), \"otiUUID\", null, 0, 1, OML2OTIProvenance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getOML2OTIProvenance_Explanation(), theEcorePackage.getEString(), \"explanation\", null, 1, 1, OML2OTIProvenance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Initialize data types\n\t\tinitEDataType(uuidEDataType, String.class, \"UUID\", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEDataType(omL_IRIEDataType, String.class, \"OML_IRI\", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEDataType(otI_TOOL_SPECIFIC_IDEDataType, String.class, \"OTI_TOOL_SPECIFIC_ID\", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEDataType(otI_TOOL_SPECIFIC_UUIDEDataType, String.class, \"OTI_TOOL_SPECIFIC_UUID\", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEDataType(otI_TOOL_SPECIFIC_URLEDataType, String.class, \"OTI_TOOL_SPECIFIC_URL\", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\n\t\t// Create annotations\n\t\t// http://www.eclipse.org/emf/2002/Ecore\n\t\tcreateEcoreAnnotations();\n\t}", "public void initializePackageContents() {\r\n\t\tif (isInitialized) return;\r\n\t\tisInitialized = true;\r\n\r\n\t\t// Initialize package\r\n\t\tsetName(eNAME);\r\n\t\tsetNsPrefix(eNS_PREFIX);\r\n\t\tsetNsURI(eNS_URI);\r\n\r\n\t\t// Create type parameters\r\n\r\n\t\t// Set bounds for type parameters\r\n\r\n\t\t// Add supertypes to classes\r\n\r\n\t\t// Initialize classes, features, and operations; add parameters\r\n\t\tinitEClass(bankEClass, Bank.class, \"Bank\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getBank_Managers(), this.getManager(), null, \"managers\", null, 0, -1, Bank.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getBank_Accounts(), this.getAccount(), null, \"accounts\", null, 0, -1, Bank.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getBank_Clients(), this.getClient(), null, \"clients\", null, 0, -1, Bank.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(clientEClass, Client.class, \"Client\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getClient_Manager(), this.getManager(), this.getManager_Clients(), \"manager\", null, 0, -1, Client.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getClient_Accounts(), this.getAccount(), this.getAccount_Owners(), \"accounts\", null, 0, -1, Client.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getClient_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Client.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getClient_Sponsorships(), this.getClient(), null, \"sponsorships\", null, 0, -1, Client.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getClient_Capacity(), ecorePackage.getEInt(), \"capacity\", null, 0, 1, Client.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(managerEClass, Manager.class, \"Manager\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getManager_Clients(), this.getClient(), this.getClient_Manager(), \"clients\", null, 0, -1, Manager.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getManager_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Manager.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(accountEClass, Account.class, \"Account\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getAccount_Owners(), this.getClient(), this.getClient_Accounts(), \"owners\", null, 0, -1, Account.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getAccount_Credit(), ecorePackage.getEDouble(), \"credit\", null, 0, 1, Account.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getAccount_Overdraft(), ecorePackage.getEDouble(), \"overdraft\", null, 0, 1, Account.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getAccount_Cards(), this.getCard(), null, \"cards\", null, 0, -1, Account.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(cardEClass, Card.class, \"Card\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getCard_Number(), ecorePackage.getEBigInteger(), \"number\", null, 0, 1, Card.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getCard_Type(), this.getCardType(), \"type\", null, 0, 1, Card.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\t// Initialize enums and add enum literals\r\n\t\tinitEEnum(cardTypeEEnum, CardType.class, \"CardType\");\r\n\r\n\t\t// Create resource\r\n\t\tcreateResource(eNS_URI);\r\n\t}", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tScenarioPackage theScenarioPackage = (ScenarioPackage)EPackage.Registry.INSTANCE.getEPackage(ScenarioPackage.eNS_URI);\n\t\tXActivityDiagramPropertyPackage theXActivityDiagramPropertyPackage = (XActivityDiagramPropertyPackage)EPackage.Registry.INSTANCE.getEPackage(XActivityDiagramPropertyPackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tEGenericType g1 = createEGenericType(theScenarioPackage.getArbiter());\n\t\tEGenericType g2 = createEGenericType(theXActivityDiagramPropertyPackage.getXActivityDiagramProperty());\n\t\tg1.getETypeArguments().add(g2);\n\t\tg2 = createEGenericType(this.getXActivityDiagramArbiterState());\n\t\tg1.getETypeArguments().add(g2);\n\t\tg2 = createEGenericType(this.getXActivityDiagramArbiterTransition());\n\t\tg1.getETypeArguments().add(g2);\n\t\txActivityDiagramArbiterEClass.getEGenericSuperTypes().add(g1);\n\t\tg1 = createEGenericType(theScenarioPackage.getArbiterState());\n\t\tg2 = createEGenericType(theXActivityDiagramPropertyPackage.getXActivityDiagramProperty());\n\t\tg1.getETypeArguments().add(g2);\n\t\tg2 = createEGenericType(this.getXActivityDiagramArbiterTransition());\n\t\tg1.getETypeArguments().add(g2);\n\t\txActivityDiagramArbiterStateEClass.getEGenericSuperTypes().add(g1);\n\t\tg1 = createEGenericType(theScenarioPackage.getArbiterTransition());\n\t\tg2 = createEGenericType(theXActivityDiagramPropertyPackage.getXActivityDiagramProperty());\n\t\tg1.getETypeArguments().add(g2);\n\t\tg2 = createEGenericType(this.getXActivityDiagramArbiterState());\n\t\tg1.getETypeArguments().add(g2);\n\t\txActivityDiagramArbiterTransitionEClass.getEGenericSuperTypes().add(g1);\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(xActivityDiagramArbiterEClass, XActivityDiagramArbiter.class, \"XActivityDiagramArbiter\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(xActivityDiagramArbiterStateEClass, XActivityDiagramArbiterState.class, \"XActivityDiagramArbiterState\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(xActivityDiagramArbiterTransitionEClass, XActivityDiagramArbiterTransition.class, \"XActivityDiagramArbiterTransition\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "public void initializePackageContents() {\r\n if (isInitialized) return;\r\n isInitialized = true;\r\n\r\n // Initialize package\r\n setName(eNAME);\r\n setNsPrefix(eNS_PREFIX);\r\n setNsURI(eNS_URI);\r\n\r\n // Obtain other dependent packages\r\n KGraphPackage theKGraphPackage = (KGraphPackage)EPackage.Registry.INSTANCE.getEPackage(KGraphPackage.eNS_URI);\r\n\r\n // Create type parameters\r\n\r\n // Set bounds for type parameters\r\n\r\n // Add supertypes to classes\r\n kShapeLayoutEClass.getESuperTypes().add(this.getKLayoutData());\r\n kEdgeLayoutEClass.getESuperTypes().add(this.getKLayoutData());\r\n kLayoutDataEClass.getESuperTypes().add(theKGraphPackage.getKGraphData());\r\n kIdentifierEClass.getESuperTypes().add(theKGraphPackage.getKGraphData());\r\n\r\n // Initialize classes and features; add operations and parameters\r\n initEClass(kShapeLayoutEClass, KShapeLayout.class, \"KShapeLayout\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEAttribute(getKShapeLayout_Xpos(), ecorePackage.getEFloat(), \"xpos\", \"0.0f\", 0, 1, KShapeLayout.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEAttribute(getKShapeLayout_Ypos(), ecorePackage.getEFloat(), \"ypos\", \"0.0f\", 0, 1, KShapeLayout.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEAttribute(getKShapeLayout_Width(), ecorePackage.getEFloat(), \"width\", \"0.0f\", 0, 1, KShapeLayout.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEAttribute(getKShapeLayout_Height(), ecorePackage.getEFloat(), \"height\", \"0.0f\", 0, 1, KShapeLayout.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEReference(getKShapeLayout_Insets(), this.getKInsets(), null, \"insets\", null, 0, 1, KShapeLayout.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n EOperation op = addEOperation(kShapeLayoutEClass, null, \"setPos\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n addEParameter(op, ecorePackage.getEFloat(), \"x\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n addEParameter(op, ecorePackage.getEFloat(), \"y\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n op = addEOperation(kShapeLayoutEClass, null, \"applyVector\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n addEParameter(op, this.getKVector(), \"pos\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n addEOperation(kShapeLayoutEClass, this.getKVector(), \"createVector\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n op = addEOperation(kShapeLayoutEClass, null, \"setSize\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n addEParameter(op, ecorePackage.getEFloat(), \"width\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n addEParameter(op, ecorePackage.getEFloat(), \"height\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n initEClass(kEdgeLayoutEClass, KEdgeLayout.class, \"KEdgeLayout\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEReference(getKEdgeLayout_BendPoints(), this.getKPoint(), null, \"bendPoints\", null, 0, -1, KEdgeLayout.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEReference(getKEdgeLayout_SourcePoint(), this.getKPoint(), null, \"sourcePoint\", null, 1, 1, KEdgeLayout.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEReference(getKEdgeLayout_TargetPoint(), this.getKPoint(), null, \"targetPoint\", null, 1, 1, KEdgeLayout.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n op = addEOperation(kEdgeLayoutEClass, null, \"applyVectorChain\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n addEParameter(op, this.getKVectorChain(), \"points\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n addEOperation(kEdgeLayoutEClass, this.getKVectorChain(), \"createVectorChain\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n initEClass(kLayoutDataEClass, KLayoutData.class, \"KLayoutData\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n addEOperation(kLayoutDataEClass, ecorePackage.getEBoolean(), \"isModified\", 1, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n addEOperation(kLayoutDataEClass, null, \"resetModificationFlag\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n initEClass(kPointEClass, KPoint.class, \"KPoint\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEAttribute(getKPoint_X(), ecorePackage.getEFloat(), \"x\", \"0.0f\", 0, 1, KPoint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEAttribute(getKPoint_Y(), ecorePackage.getEFloat(), \"y\", \"0.0f\", 0, 1, KPoint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n op = addEOperation(kPointEClass, null, \"setPos\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n addEParameter(op, ecorePackage.getEFloat(), \"x\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n addEParameter(op, ecorePackage.getEFloat(), \"y\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n op = addEOperation(kPointEClass, null, \"applyVector\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n addEParameter(op, this.getKVector(), \"pos\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n addEOperation(kPointEClass, this.getKVector(), \"createVector\", 0, 1, IS_UNIQUE, IS_ORDERED);\r\n\r\n initEClass(kInsetsEClass, KInsets.class, \"KInsets\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEAttribute(getKInsets_Top(), ecorePackage.getEFloat(), \"top\", null, 0, 1, KInsets.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEAttribute(getKInsets_Bottom(), ecorePackage.getEFloat(), \"bottom\", null, 0, 1, KInsets.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEAttribute(getKInsets_Left(), ecorePackage.getEFloat(), \"left\", null, 0, 1, KInsets.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEAttribute(getKInsets_Right(), ecorePackage.getEFloat(), \"right\", null, 0, 1, KInsets.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n initEClass(kIdentifierEClass, KIdentifier.class, \"KIdentifier\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEAttribute(getKIdentifier_Id(), ecorePackage.getEString(), \"id\", null, 1, 1, KIdentifier.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n initEClass(kVectorEClass, KVector.class, \"KVector\", IS_ABSTRACT, IS_INTERFACE, !IS_GENERATED_INSTANCE_CLASS);\r\n initEAttribute(getKVector_X(), ecorePackage.getEDouble(), \"x\", null, 0, 1, KVector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEAttribute(getKVector_Y(), ecorePackage.getEDouble(), \"y\", null, 0, 1, KVector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n initEClass(kVectorChainEClass, KVectorChain.class, \"KVectorChain\", IS_ABSTRACT, IS_INTERFACE, !IS_GENERATED_INSTANCE_CLASS);\r\n\r\n // Create resource\r\n createResource(eNS_URI);\r\n }", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(maturityModelEClass, MaturityModel.class, \"MaturityModel\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMaturityModel_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, MaturityModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMaturityModel_Version(), ecorePackage.getEString(), \"version\", null, 0, 1, MaturityModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMaturityModel_ReleaseDate(), ecorePackage.getEDate(), \"releaseDate\", null, 0, 1, MaturityModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMaturityModel_Author(), ecorePackage.getEString(), \"author\", null, 0, 1, MaturityModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMaturityModel_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, MaturityModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMaturityModel_Acronym(), ecorePackage.getEString(), \"acronym\", null, 0, 1, MaturityModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMaturityModel_Url(), ecorePackage.getEString(), \"url\", null, 0, 1, MaturityModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMaturityModel_Organizes(), this.getProcessArea(), null, \"organizes\", null, 0, -1, MaturityModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMaturityModel_EvolvesInto(), this.getMaturityLevel(), null, \"evolvesInto\", null, 0, -1, MaturityModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(processAreaEClass, ProcessArea.class, \"ProcessArea\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getProcessArea_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, ProcessArea.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getProcessArea_ShortDescription(), ecorePackage.getEString(), \"shortDescription\", null, 0, 1, ProcessArea.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getProcessArea_MainDescription(), ecorePackage.getEString(), \"mainDescription\", null, 0, 1, ProcessArea.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getProcessArea_Acronym(), ecorePackage.getEString(), \"acronym\", null, 0, 1, ProcessArea.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getProcessArea_Defines(), this.getSpecificPractice(), null, \"defines\", null, 0, -1, ProcessArea.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getProcessArea_Implements(), this.getMaturityLevel(), null, \"implements\", null, 0, 1, ProcessArea.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(specificPracticeEClass, SpecificPractice.class, \"SpecificPractice\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getSpecificPractice_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, SpecificPractice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSpecificPractice_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, SpecificPractice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSpecificPractice_Acronym(), ecorePackage.getEString(), \"acronym\", null, 0, 1, SpecificPractice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSpecificPractice_ComplementaryDescription(), ecorePackage.getEString(), \"complementaryDescription\", null, 0, 1, SpecificPractice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(maturityLevelEClass, MaturityLevel.class, \"MaturityLevel\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMaturityLevel_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, MaturityLevel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMaturityLevel_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, MaturityLevel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMaturityLevel_Acronym(), ecorePackage.getEString(), \"acronym\", null, 0, 1, MaturityLevel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMaturityLevel_EvolvesInto(), this.getGenericPractice(), null, \"evolvesInto\", null, 0, -1, MaturityLevel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(genericPracticeEClass, GenericPractice.class, \"GenericPractice\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getGenericPractice_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, GenericPractice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getGenericPractice_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, GenericPractice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getGenericPractice_Acronym(), ecorePackage.getEString(), \"acronym\", null, 0, 1, GenericPractice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getGenericPractice_ComplementaryDescription(), ecorePackage.getEString(), \"complementaryDescription\", null, 0, 1, GenericPractice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getGenericPractice_Divided(), this.getGPSubPractice(), null, \"divided\", null, 0, -1, GenericPractice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(gpSubPracticeEClass, GPSubPractice.class, \"GPSubPractice\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getGPSubPractice_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, GPSubPractice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getGPSubPractice_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, GPSubPractice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getGPSubPractice_Acronym(), ecorePackage.getEString(), \"acronym\", null, 0, 1, GPSubPractice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tSolverPackage theSolverPackage = (SolverPackage)EPackage.Registry.INSTANCE.getEPackage(SolverPackage.eNS_URI);\n\t\tSolverjacopPackage theSolverjacopPackage = (SolverjacopPackage)EPackage.Registry.INSTANCE.getEPackage(SolverjacopPackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\ttoUseSolverCpGeneratorEClass.getESuperTypes().add(theSolverPackage.getGenerator());\n\t\ttoUseSolverCpTupleEClass.getESuperTypes().add(theSolverPackage.getGeneratorTuple());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(toUseSolverCpFolderEClass, ToUseSolverCpFolder.class, \"ToUseSolverCpFolder\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getToUseSolverCpFolder_SubFolders(), this.getToUseSolverCpFolder(), null, \"SubFolders\", null, 0, -1, ToUseSolverCpFolder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getToUseSolverCpFolder_Name(), ecorePackage.getEString(), \"Name\", null, 0, 1, ToUseSolverCpFolder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getToUseSolverCpFolder_ToUseGenerators(), this.getToUseSolverCpGenerator(), null, \"ToUseGenerators\", null, 0, -1, ToUseSolverCpFolder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(toUseSolverCpGeneratorEClass, ToUseSolverCpGenerator.class, \"ToUseSolverCpGenerator\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getToUseSolverCpGenerator_Solver(), theSolverjacopPackage.getSolverJacop(), null, \"Solver\", null, 0, -1, ToUseSolverCpGenerator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getToUseSolverCpGenerator_ToUseTuples(), this.getToUseSolverCpTuple(), null, \"ToUseTuples\", null, 0, -1, ToUseSolverCpGenerator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(toUseSolverCpTupleEClass, ToUseSolverCpTuple.class, \"ToUseSolverCpTuple\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getToUseSolverCpTuple_ToUseLinears(), theSolverPackage.getGeneratorCpLinear(), null, \"ToUseLinears\", null, 0, -1, ToUseSolverCpTuple.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getToUseSolverCpTuple_ToUseVars(), theSolverPackage.getGeneratorCpVarAtomic(), null, \"ToUseVars\", null, 0, -1, ToUseSolverCpTuple.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getToUseSolverCpTuple_ToUseLogicals(), theSolverPackage.getGeneratorCpLogical(), null, \"ToUseLogicals\", null, 0, -1, ToUseSolverCpTuple.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tReliabilityPackage theReliabilityPackage = (ReliabilityPackage)EPackage.Registry.INSTANCE.getEPackage(ReliabilityPackage.eNS_URI);\n\t\tseff.SeffPackage theSeffPackage_1 = (seff.SeffPackage)EPackage.Registry.INSTANCE.getEPackage(seff.SeffPackage.eNS_URI);\n\t\tFailuretypesPackage theFailuretypesPackage = (FailuretypesPackage)EPackage.Registry.INSTANCE.getEPackage(FailuretypesPackage.eNS_URI);\n\t\tBasePackage theBasePackage = (BasePackage)EPackage.Registry.INSTANCE.getEPackage(BasePackage.eNS_URI);\n\t\tBehaviourseffPackage theBehaviourseffPackage = (BehaviourseffPackage)EPackage.Registry.INSTANCE.getEPackage(BehaviourseffPackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tinternalFailureOccurrenceDescriptionEClass.getESuperTypes().add(theReliabilityPackage.getFailureOccurrenceDescription());\n\t\trecoveryActionEClass.getESuperTypes().add(theSeffPackage_1.getAbstractInternalControlFlowAction());\n\t\trecoveryActionBehaviourEClass.getESuperTypes().add(this.getFailureHandlingEntity());\n\t\trecoveryActionBehaviourEClass.getESuperTypes().add(theSeffPackage_1.getBehaviour());\n\t\tfailureHandlingEntityEClass.getESuperTypes().add(theBasePackage.getEntity());\n\t\tfailureHandlingExternalCallActionEClass.getESuperTypes().add(this.getFailureHandlingEntity());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(internalFailureOccurrenceDescriptionEClass, InternalFailureOccurrenceDescription.class, \"InternalFailureOccurrenceDescription\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInternalFailureOccurrenceDescription_InternalAction__InternalFailureOccurrenceDescription(), theSeffPackage_1.getInternalAction(), null, \"internalAction__InternalFailureOccurrenceDescription\", null, 1, 1, InternalFailureOccurrenceDescription.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getInternalFailureOccurrenceDescription_SoftwareInducedFailureType__InternalFailureOccurrenceDescription(), theFailuretypesPackage.getSoftwareInducedFailureType(), theFailuretypesPackage.getSoftwareInducedFailureType_InternalFailureOccurrenceDescriptions__SoftwareInducedFailureType(), \"softwareInducedFailureType__InternalFailureOccurrenceDescription\", null, 1, 1, InternalFailureOccurrenceDescription.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tEOperation op = addEOperation(internalFailureOccurrenceDescriptionEClass, ecorePackage.getEBoolean(), \"NoResourceTimeoutFailureAllowedForInternalFailureOccurrenceDescription\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEDiagnosticChain(), \"diagnostics\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\tEGenericType g1 = createEGenericType(ecorePackage.getEMap());\n\t\tEGenericType g2 = createEGenericType(ecorePackage.getEJavaObject());\n\t\tg1.getETypeArguments().add(g2);\n\t\tg2 = createEGenericType(ecorePackage.getEJavaObject());\n\t\tg1.getETypeArguments().add(g2);\n\t\taddEParameter(op, g1, \"context\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(recoveryActionEClass, RecoveryAction.class, \"RecoveryAction\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getRecoveryAction_PrimaryBehaviour__RecoveryAction(), this.getRecoveryActionBehaviour(), null, \"primaryBehaviour__RecoveryAction\", null, 1, 1, RecoveryAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getRecoveryAction_RecoveryActionBehaviours__RecoveryAction(), this.getRecoveryActionBehaviour(), this.getRecoveryActionBehaviour_RecoveryAction__RecoveryActionBehaviour(), \"recoveryActionBehaviours__RecoveryAction\", null, 2, -1, RecoveryAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\top = addEOperation(recoveryActionEClass, ecorePackage.getEBoolean(), \"PrimaryBehaviourOfRecoveryActionMustBeSet\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEDiagnosticChain(), \"diagnostics\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\tg1 = createEGenericType(ecorePackage.getEMap());\n\t\tg2 = createEGenericType(ecorePackage.getEJavaObject());\n\t\tg1.getETypeArguments().add(g2);\n\t\tg2 = createEGenericType(ecorePackage.getEJavaObject());\n\t\tg1.getETypeArguments().add(g2);\n\t\taddEParameter(op, g1, \"context\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(recoveryActionBehaviourEClass, RecoveryActionBehaviour.class, \"RecoveryActionBehaviour\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getRecoveryActionBehaviour_FailureHandlingAlternatives__RecoveryActionBehaviour(), this.getRecoveryActionBehaviour(), null, \"failureHandlingAlternatives__RecoveryActionBehaviour\", null, 0, -1, RecoveryActionBehaviour.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEReference(getRecoveryActionBehaviour_RecoveryAction__RecoveryActionBehaviour(), this.getRecoveryAction(), this.getRecoveryAction_RecoveryActionBehaviours__RecoveryAction(), \"recoveryAction__RecoveryActionBehaviour\", null, 1, 1, RecoveryActionBehaviour.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\top = addEOperation(recoveryActionBehaviourEClass, ecorePackage.getEBoolean(), \"RecoveryActionBehaviourHasOnlyOnePredecessor\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEDiagnosticChain(), \"diagnostics\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\tg1 = createEGenericType(ecorePackage.getEMap());\n\t\tg2 = createEGenericType(ecorePackage.getEJavaObject());\n\t\tg1.getETypeArguments().add(g2);\n\t\tg2 = createEGenericType(ecorePackage.getEJavaObject());\n\t\tg1.getETypeArguments().add(g2);\n\t\taddEParameter(op, g1, \"context\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\top = addEOperation(recoveryActionBehaviourEClass, ecorePackage.getEBoolean(), \"RecoveryActionBehaviourIsNotSuccessorOfItself\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEDiagnosticChain(), \"diagnostics\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\tg1 = createEGenericType(ecorePackage.getEMap());\n\t\tg2 = createEGenericType(ecorePackage.getEJavaObject());\n\t\tg1.getETypeArguments().add(g2);\n\t\tg2 = createEGenericType(ecorePackage.getEJavaObject());\n\t\tg1.getETypeArguments().add(g2);\n\t\taddEParameter(op, g1, \"context\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\top = addEOperation(recoveryActionBehaviourEClass, ecorePackage.getEBoolean(), \"SuccessorsOfRecoveryActionBehaviourHandleDisjointFailureTypes\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEDiagnosticChain(), \"diagnostics\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\tg1 = createEGenericType(ecorePackage.getEMap());\n\t\tg2 = createEGenericType(ecorePackage.getEJavaObject());\n\t\tg1.getETypeArguments().add(g2);\n\t\tg2 = createEGenericType(ecorePackage.getEJavaObject());\n\t\tg1.getETypeArguments().add(g2);\n\t\taddEParameter(op, g1, \"context\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(failureHandlingEntityEClass, FailureHandlingEntity.class, \"FailureHandlingEntity\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getFailureHandlingEntity_FailureTypes_FailureHandlingEntity(), theFailuretypesPackage.getFailureType(), null, \"failureTypes_FailureHandlingEntity\", null, 0, -1, FailureHandlingEntity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(failureHandlingExternalCallActionEClass, FailureHandlingExternalCallAction.class, \"FailureHandlingExternalCallAction\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getFailureHandlingExternalCallAction_Owner(), theBehaviourseffPackage.getExternalCallAction(), null, \"owner\", null, 1, 1, FailureHandlingExternalCallAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(acquireActionTimeoutEClass, AcquireActionTimeout.class, \"AcquireActionTimeout\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAcquireActionTimeout_Owner(), theBehaviourseffPackage.getAcquireAction(), null, \"owner\", null, 1, 1, AcquireActionTimeout.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAcquireActionTimeout_TimeoutValue(), ecorePackage.getEDouble(), \"timeoutValue\", null, 1, 1, AcquireActionTimeout.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\t// Create annotations\n\t\t// http://www.eclipse.org/uml2/1.1.0/GenModel\n\t\tcreateGenModel_1Annotations();\n\t}", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tEcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tannotationEClass.getESuperTypes().add(this.getElement());\n\t\tidentifiedElementEClass.getESuperTypes().add(this.getElement());\n\t\timportEClass.getESuperTypes().add(this.getElement());\n\t\tinstanceEClass.getESuperTypes().add(this.getElement());\n\t\taxiomEClass.getESuperTypes().add(this.getElement());\n\t\tassertionEClass.getESuperTypes().add(this.getElement());\n\t\tpredicateEClass.getESuperTypes().add(this.getElement());\n\t\targumentEClass.getESuperTypes().add(this.getElement());\n\t\tliteralEClass.getESuperTypes().add(this.getElement());\n\t\tontologyEClass.getESuperTypes().add(this.getIdentifiedElement());\n\t\tmemberEClass.getESuperTypes().add(this.getIdentifiedElement());\n\t\tvocabularyBoxEClass.getESuperTypes().add(this.getOntology());\n\t\tdescriptionBoxEClass.getESuperTypes().add(this.getOntology());\n\t\tvocabularyEClass.getESuperTypes().add(this.getVocabularyBox());\n\t\tvocabularyBundleEClass.getESuperTypes().add(this.getVocabularyBox());\n\t\tdescriptionEClass.getESuperTypes().add(this.getDescriptionBox());\n\t\tdescriptionBundleEClass.getESuperTypes().add(this.getDescriptionBox());\n\t\tstatementEClass.getESuperTypes().add(this.getMember());\n\t\tvocabularyMemberEClass.getESuperTypes().add(this.getMember());\n\t\tdescriptionMemberEClass.getESuperTypes().add(this.getMember());\n\t\tvocabularyStatementEClass.getESuperTypes().add(this.getStatement());\n\t\tvocabularyStatementEClass.getESuperTypes().add(this.getVocabularyMember());\n\t\tdescriptionStatementEClass.getESuperTypes().add(this.getStatement());\n\t\tdescriptionStatementEClass.getESuperTypes().add(this.getDescriptionMember());\n\t\ttermEClass.getESuperTypes().add(this.getVocabularyMember());\n\t\truleEClass.getESuperTypes().add(this.getVocabularyStatement());\n\t\tbuiltInEClass.getESuperTypes().add(this.getVocabularyStatement());\n\t\tspecializableTermEClass.getESuperTypes().add(this.getTerm());\n\t\tspecializableTermEClass.getESuperTypes().add(this.getVocabularyStatement());\n\t\tpropertyEClass.getESuperTypes().add(this.getTerm());\n\t\ttypeEClass.getESuperTypes().add(this.getSpecializableTerm());\n\t\trelationBaseEClass.getESuperTypes().add(this.getSpecializableTerm());\n\t\tspecializablePropertyEClass.getESuperTypes().add(this.getSpecializableTerm());\n\t\tspecializablePropertyEClass.getESuperTypes().add(this.getProperty());\n\t\tclassifierEClass.getESuperTypes().add(this.getType());\n\t\tscalarEClass.getESuperTypes().add(this.getType());\n\t\tentityEClass.getESuperTypes().add(this.getClassifier());\n\t\tstructureEClass.getESuperTypes().add(this.getClassifier());\n\t\taspectEClass.getESuperTypes().add(this.getEntity());\n\t\tconceptEClass.getESuperTypes().add(this.getEntity());\n\t\trelationEntityEClass.getESuperTypes().add(this.getEntity());\n\t\trelationEntityEClass.getESuperTypes().add(this.getRelationBase());\n\t\tannotationPropertyEClass.getESuperTypes().add(this.getSpecializableProperty());\n\t\tsemanticPropertyEClass.getESuperTypes().add(this.getProperty());\n\t\tscalarPropertyEClass.getESuperTypes().add(this.getSemanticProperty());\n\t\tscalarPropertyEClass.getESuperTypes().add(this.getSpecializableProperty());\n\t\tstructuredPropertyEClass.getESuperTypes().add(this.getSemanticProperty());\n\t\tstructuredPropertyEClass.getESuperTypes().add(this.getSpecializableProperty());\n\t\trelationEClass.getESuperTypes().add(this.getSemanticProperty());\n\t\tforwardRelationEClass.getESuperTypes().add(this.getRelation());\n\t\treverseRelationEClass.getESuperTypes().add(this.getRelation());\n\t\tunreifiedRelationEClass.getESuperTypes().add(this.getRelation());\n\t\tunreifiedRelationEClass.getESuperTypes().add(this.getRelationBase());\n\t\tunreifiedRelationEClass.getESuperTypes().add(this.getSpecializableProperty());\n\t\tnamedInstanceEClass.getESuperTypes().add(this.getDescriptionStatement());\n\t\tnamedInstanceEClass.getESuperTypes().add(this.getInstance());\n\t\tconceptInstanceEClass.getESuperTypes().add(this.getNamedInstance());\n\t\trelationInstanceEClass.getESuperTypes().add(this.getNamedInstance());\n\t\tstructureInstanceEClass.getESuperTypes().add(this.getInstance());\n\t\tkeyAxiomEClass.getESuperTypes().add(this.getAxiom());\n\t\tspecializationAxiomEClass.getESuperTypes().add(this.getAxiom());\n\t\tinstanceEnumerationAxiomEClass.getESuperTypes().add(this.getAxiom());\n\t\tpropertyRestrictionAxiomEClass.getESuperTypes().add(this.getAxiom());\n\t\tliteralEnumerationAxiomEClass.getESuperTypes().add(this.getAxiom());\n\t\tclassifierEquivalenceAxiomEClass.getESuperTypes().add(this.getAxiom());\n\t\tscalarEquivalenceAxiomEClass.getESuperTypes().add(this.getAxiom());\n\t\tpropertyEquivalenceAxiomEClass.getESuperTypes().add(this.getAxiom());\n\t\tpropertyRangeRestrictionAxiomEClass.getESuperTypes().add(this.getPropertyRestrictionAxiom());\n\t\tpropertyCardinalityRestrictionAxiomEClass.getESuperTypes().add(this.getPropertyRestrictionAxiom());\n\t\tpropertyValueRestrictionAxiomEClass.getESuperTypes().add(this.getPropertyRestrictionAxiom());\n\t\tpropertySelfRestrictionAxiomEClass.getESuperTypes().add(this.getPropertyRestrictionAxiom());\n\t\ttypeAssertionEClass.getESuperTypes().add(this.getAssertion());\n\t\tpropertyValueAssertionEClass.getESuperTypes().add(this.getAssertion());\n\t\tunaryPredicateEClass.getESuperTypes().add(this.getPredicate());\n\t\tbinaryPredicateEClass.getESuperTypes().add(this.getPredicate());\n\t\tbuiltInPredicateEClass.getESuperTypes().add(this.getPredicate());\n\t\ttypePredicateEClass.getESuperTypes().add(this.getUnaryPredicate());\n\t\trelationEntityPredicateEClass.getESuperTypes().add(this.getUnaryPredicate());\n\t\trelationEntityPredicateEClass.getESuperTypes().add(this.getBinaryPredicate());\n\t\tpropertyPredicateEClass.getESuperTypes().add(this.getBinaryPredicate());\n\t\tsameAsPredicateEClass.getESuperTypes().add(this.getBinaryPredicate());\n\t\tdifferentFromPredicateEClass.getESuperTypes().add(this.getBinaryPredicate());\n\t\tquotedLiteralEClass.getESuperTypes().add(this.getLiteral());\n\t\tintegerLiteralEClass.getESuperTypes().add(this.getLiteral());\n\t\tdecimalLiteralEClass.getESuperTypes().add(this.getLiteral());\n\t\tdoubleLiteralEClass.getESuperTypes().add(this.getLiteral());\n\t\tbooleanLiteralEClass.getESuperTypes().add(this.getLiteral());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(elementEClass, Element.class, \"Element\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEOperation(getElement__GetOntology(), this.getOntology(), \"getOntology\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tEOperation op = initEOperation(getElement__ExtraValidate__DiagnosticChain_Map(), theEcorePackage.getEBoolean(), \"extraValidate\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, theEcorePackage.getEDiagnosticChain(), \"diagnostics\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\t\tEGenericType g1 = createEGenericType(theEcorePackage.getEMap());\n\t\tEGenericType g2 = createEGenericType(theEcorePackage.getEJavaObject());\n\t\tg1.getETypeArguments().add(g2);\n\t\tg2 = createEGenericType(theEcorePackage.getEJavaObject());\n\t\tg1.getETypeArguments().add(g2);\n\t\taddEParameter(op, g1, \"context\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(annotationEClass, Annotation.class, \"Annotation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAnnotation_Property(), this.getAnnotationProperty(), null, \"property\", null, 1, 1, Annotation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getAnnotation_LiteralValue(), this.getLiteral(), null, \"literalValue\", null, 0, 1, Annotation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getAnnotation_ReferenceValue(), this.getMember(), null, \"referenceValue\", null, 0, 1, Annotation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getAnnotation_OwningElement(), this.getIdentifiedElement(), this.getIdentifiedElement_OwnedAnnotations(), \"owningElement\", null, 0, 1, Annotation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getAnnotation__GetValue(), this.getElement(), \"getValue\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getAnnotation__GetAnnotatedElement(), this.getIdentifiedElement(), \"getAnnotatedElement\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(identifiedElementEClass, IdentifiedElement.class, \"IdentifiedElement\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getIdentifiedElement_OwnedAnnotations(), this.getAnnotation(), this.getAnnotation_OwningElement(), \"ownedAnnotations\", null, 0, -1, IdentifiedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getIdentifiedElement__GetIri(), theEcorePackage.getEString(), \"getIri\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(importEClass, Import.class, \"Import\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getImport_Kind(), this.getImportKind(), \"kind\", null, 1, 1, Import.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getImport_Namespace(), this.getNamespace(), \"namespace\", null, 1, 1, Import.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getImport_Prefix(), this.getID(), \"prefix\", null, 0, 1, Import.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getImport_OwningOntology(), this.getOntology(), this.getOntology_OwnedImports(), \"owningOntology\", null, 1, 1, Import.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getImport__GetIri(), theEcorePackage.getEString(), \"getIri\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getImport__GetSeparator(), this.getSeparatorKind(), \"getSeparator\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(instanceEClass, Instance.class, \"Instance\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInstance_OwnedPropertyValues(), this.getPropertyValueAssertion(), this.getPropertyValueAssertion_OwningInstance(), \"ownedPropertyValues\", null, 0, -1, Instance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(axiomEClass, Axiom.class, \"Axiom\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEOperation(getAxiom__GetCharacterizedTerm(), this.getTerm(), \"getCharacterizedTerm\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(assertionEClass, Assertion.class, \"Assertion\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEOperation(getAssertion__GetSubject(), this.getInstance(), \"getSubject\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getAssertion__GetObject(), this.getElement(), \"getObject\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(predicateEClass, Predicate.class, \"Predicate\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPredicate_AntecedentRule(), this.getRule(), this.getRule_Antecedent(), \"antecedentRule\", null, 0, 1, Predicate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPredicate_ConsequentRule(), this.getRule(), this.getRule_Consequent(), \"consequentRule\", null, 0, 1, Predicate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(argumentEClass, Argument.class, \"Argument\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getArgument_Variable(), this.getID(), \"variable\", null, 0, 1, Argument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getArgument_Literal(), this.getLiteral(), null, \"literal\", null, 0, 1, Argument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getArgument_Instance(), this.getNamedInstance(), null, \"instance\", null, 0, 1, Argument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(literalEClass, Literal.class, \"Literal\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEOperation(getLiteral__GetValue(), theEcorePackage.getEJavaObject(), \"getValue\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getLiteral__GetStringValue(), theEcorePackage.getEString(), \"getStringValue\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getLiteral__GetLexicalValue(), theEcorePackage.getEString(), \"getLexicalValue\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getLiteral__GetTypeIri(), theEcorePackage.getEString(), \"getTypeIri\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(ontologyEClass, Ontology.class, \"Ontology\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getOntology_Namespace(), this.getNamespace(), \"namespace\", null, 1, 1, Ontology.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getOntology_Prefix(), this.getID(), \"prefix\", null, 1, 1, Ontology.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getOntology_OwnedImports(), this.getImport(), this.getImport_OwningOntology(), \"ownedImports\", null, 0, -1, Ontology.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getOntology__GetIri(), theEcorePackage.getEString(), \"getIri\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getOntology__GetSeparator(), this.getSeparatorKind(), \"getSeparator\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(memberEClass, Member.class, \"Member\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMember_Name(), this.getID(), \"name\", null, 0, 1, Member.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getMember__GetRef(), this.getMember(), \"getRef\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getMember__IsRef(), theEcorePackage.getEBoolean(), \"isRef\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getMember__Resolve(), this.getMember(), \"resolve\", 1, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getMember__GetIri(), theEcorePackage.getEString(), \"getIri\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getMember__GetAbbreviatedIri(), theEcorePackage.getEString(), \"getAbbreviatedIri\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(vocabularyBoxEClass, VocabularyBox.class, \"VocabularyBox\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(descriptionBoxEClass, DescriptionBox.class, \"DescriptionBox\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(vocabularyEClass, Vocabulary.class, \"Vocabulary\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getVocabulary_OwnedStatements(), this.getVocabularyStatement(), this.getVocabularyStatement_OwningVocabulary(), \"ownedStatements\", null, 0, -1, Vocabulary.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(vocabularyBundleEClass, VocabularyBundle.class, \"VocabularyBundle\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(descriptionEClass, Description.class, \"Description\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getDescription_OwnedStatements(), this.getDescriptionStatement(), this.getDescriptionStatement_OwningDescription(), \"ownedStatements\", null, 0, -1, Description.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(descriptionBundleEClass, DescriptionBundle.class, \"DescriptionBundle\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(statementEClass, Statement.class, \"Statement\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(vocabularyMemberEClass, VocabularyMember.class, \"VocabularyMember\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(descriptionMemberEClass, DescriptionMember.class, \"DescriptionMember\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(vocabularyStatementEClass, VocabularyStatement.class, \"VocabularyStatement\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getVocabularyStatement_OwningVocabulary(), this.getVocabulary(), this.getVocabulary_OwnedStatements(), \"owningVocabulary\", null, 1, 1, VocabularyStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(descriptionStatementEClass, DescriptionStatement.class, \"DescriptionStatement\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getDescriptionStatement_OwningDescription(), this.getDescription(), this.getDescription_OwnedStatements(), \"owningDescription\", null, 1, 1, DescriptionStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(termEClass, Term.class, \"Term\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(ruleEClass, Rule.class, \"Rule\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getRule_Ref(), this.getRule(), null, \"ref\", null, 0, 1, Rule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getRule_Antecedent(), this.getPredicate(), this.getPredicate_AntecedentRule(), \"antecedent\", null, 0, -1, Rule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getRule_Consequent(), this.getPredicate(), this.getPredicate_ConsequentRule(), \"consequent\", null, 0, -1, Rule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(builtInEClass, BuiltIn.class, \"BuiltIn\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getBuiltIn_Ref(), this.getBuiltIn(), null, \"ref\", null, 0, 1, BuiltIn.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(specializableTermEClass, SpecializableTerm.class, \"SpecializableTerm\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getSpecializableTerm_OwnedSpecializations(), this.getSpecializationAxiom(), this.getSpecializationAxiom_OwningTerm(), \"ownedSpecializations\", null, 0, -1, SpecializableTerm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(propertyEClass, Property.class, \"Property\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(typeEClass, Type.class, \"Type\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(relationBaseEClass, RelationBase.class, \"RelationBase\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getRelationBase_Sources(), this.getEntity(), null, \"sources\", null, 0, -1, RelationBase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getRelationBase_Targets(), this.getEntity(), null, \"targets\", null, 0, -1, RelationBase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getRelationBase_ReverseRelation(), this.getReverseRelation(), this.getReverseRelation_RelationBase(), \"reverseRelation\", null, 0, 1, RelationBase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getRelationBase_Functional(), theEcorePackage.getEBoolean(), \"functional\", null, 0, 1, RelationBase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getRelationBase_InverseFunctional(), theEcorePackage.getEBoolean(), \"inverseFunctional\", null, 0, 1, RelationBase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getRelationBase_Symmetric(), theEcorePackage.getEBoolean(), \"symmetric\", null, 0, 1, RelationBase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getRelationBase_Asymmetric(), theEcorePackage.getEBoolean(), \"asymmetric\", null, 0, 1, RelationBase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getRelationBase_Reflexive(), theEcorePackage.getEBoolean(), \"reflexive\", null, 0, 1, RelationBase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getRelationBase_Irreflexive(), theEcorePackage.getEBoolean(), \"irreflexive\", null, 0, 1, RelationBase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getRelationBase_Transitive(), theEcorePackage.getEBoolean(), \"transitive\", null, 0, 1, RelationBase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(specializablePropertyEClass, SpecializableProperty.class, \"SpecializableProperty\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getSpecializableProperty_OwnedEquivalences(), this.getPropertyEquivalenceAxiom(), this.getPropertyEquivalenceAxiom_OwningProperty(), \"ownedEquivalences\", null, 0, -1, SpecializableProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(classifierEClass, Classifier.class, \"Classifier\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getClassifier_OwnedEquivalences(), this.getClassifierEquivalenceAxiom(), this.getClassifierEquivalenceAxiom_OwningClassifier(), \"ownedEquivalences\", null, 0, -1, Classifier.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getClassifier_OwnedPropertyRestrictions(), this.getPropertyRestrictionAxiom(), this.getPropertyRestrictionAxiom_OwningClassifier(), \"ownedPropertyRestrictions\", null, 0, -1, Classifier.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(scalarEClass, Scalar.class, \"Scalar\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getScalar_Ref(), this.getScalar(), null, \"ref\", null, 0, 1, Scalar.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getScalar_OwnedEnumeration(), this.getLiteralEnumerationAxiom(), this.getLiteralEnumerationAxiom_OwningScalar(), \"ownedEnumeration\", null, 0, 1, Scalar.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getScalar_OwnedEquivalences(), this.getScalarEquivalenceAxiom(), this.getScalarEquivalenceAxiom_OwningScalar(), \"ownedEquivalences\", null, 0, -1, Scalar.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(entityEClass, Entity.class, \"Entity\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getEntity_OwnedKeys(), this.getKeyAxiom(), this.getKeyAxiom_OwningEntity(), \"ownedKeys\", null, 0, -1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(structureEClass, Structure.class, \"Structure\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getStructure_Ref(), this.getStructure(), null, \"ref\", null, 0, 1, Structure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(aspectEClass, Aspect.class, \"Aspect\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAspect_Ref(), this.getAspect(), null, \"ref\", null, 0, 1, Aspect.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(conceptEClass, Concept.class, \"Concept\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getConcept_Ref(), this.getConcept(), null, \"ref\", null, 0, 1, Concept.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getConcept_OwnedEnumeration(), this.getInstanceEnumerationAxiom(), this.getInstanceEnumerationAxiom_OwningConcept(), \"ownedEnumeration\", null, 0, 1, Concept.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(relationEntityEClass, RelationEntity.class, \"RelationEntity\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getRelationEntity_Ref(), this.getRelationEntity(), null, \"ref\", null, 0, 1, RelationEntity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getRelationEntity_ForwardRelation(), this.getForwardRelation(), this.getForwardRelation_RelationEntity(), \"forwardRelation\", null, 0, 1, RelationEntity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(annotationPropertyEClass, AnnotationProperty.class, \"AnnotationProperty\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAnnotationProperty_Ref(), this.getAnnotationProperty(), null, \"ref\", null, 0, 1, AnnotationProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(semanticPropertyEClass, SemanticProperty.class, \"SemanticProperty\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEOperation(getSemanticProperty__IsFunctional(), theEcorePackage.getEBoolean(), \"isFunctional\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getSemanticProperty__GetDomainList(), this.getClassifier(), \"getDomainList\", 0, -1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getSemanticProperty__GetRangeList(), this.getType(), \"getRangeList\", 0, -1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(scalarPropertyEClass, ScalarProperty.class, \"ScalarProperty\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getScalarProperty_Ref(), this.getScalarProperty(), null, \"ref\", null, 0, 1, ScalarProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getScalarProperty_Functional(), theEcorePackage.getEBoolean(), \"functional\", null, 0, 1, ScalarProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getScalarProperty_Domains(), this.getClassifier(), null, \"domains\", null, 0, -1, ScalarProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getScalarProperty_Ranges(), this.getScalar(), null, \"ranges\", null, 0, -1, ScalarProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getScalarProperty__GetDomainList(), this.getClassifier(), \"getDomainList\", 0, -1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getScalarProperty__GetRangeList(), this.getType(), \"getRangeList\", 0, -1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(structuredPropertyEClass, StructuredProperty.class, \"StructuredProperty\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getStructuredProperty_Ref(), this.getStructuredProperty(), null, \"ref\", null, 0, 1, StructuredProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getStructuredProperty_Functional(), theEcorePackage.getEBoolean(), \"functional\", null, 0, 1, StructuredProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getStructuredProperty_Domains(), this.getClassifier(), null, \"domains\", null, 0, -1, StructuredProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getStructuredProperty_Ranges(), this.getStructure(), null, \"ranges\", null, 0, -1, StructuredProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getStructuredProperty__GetDomainList(), this.getClassifier(), \"getDomainList\", 0, -1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getStructuredProperty__GetRangeList(), this.getType(), \"getRangeList\", 0, -1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(relationEClass, Relation.class, \"Relation\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEOperation(getRelation__IsInverseFunctional(), theEcorePackage.getEBoolean(), \"isInverseFunctional\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getRelation__IsSymmetric(), theEcorePackage.getEBoolean(), \"isSymmetric\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getRelation__IsAsymmetric(), theEcorePackage.getEBoolean(), \"isAsymmetric\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getRelation__IsReflexive(), theEcorePackage.getEBoolean(), \"isReflexive\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getRelation__IsIrreflexive(), theEcorePackage.getEBoolean(), \"isIrreflexive\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getRelation__IsTransitive(), theEcorePackage.getEBoolean(), \"isTransitive\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getRelation__GetDomains(), this.getEntity(), \"getDomains\", 0, -1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getRelation__GetRanges(), this.getEntity(), \"getRanges\", 0, -1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getRelation__GetInverse(), this.getRelation(), \"getInverse\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getRelation__GetDomainList(), this.getClassifier(), \"getDomainList\", 0, -1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getRelation__GetRangeList(), this.getType(), \"getRangeList\", 0, -1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(forwardRelationEClass, ForwardRelation.class, \"ForwardRelation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getForwardRelation_RelationEntity(), this.getRelationEntity(), this.getRelationEntity_ForwardRelation(), \"relationEntity\", null, 1, 1, ForwardRelation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getForwardRelation__GetRef(), this.getMember(), \"getRef\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getForwardRelation__IsFunctional(), theEcorePackage.getEBoolean(), \"isFunctional\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getForwardRelation__IsInverseFunctional(), theEcorePackage.getEBoolean(), \"isInverseFunctional\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getForwardRelation__IsSymmetric(), theEcorePackage.getEBoolean(), \"isSymmetric\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getForwardRelation__IsAsymmetric(), theEcorePackage.getEBoolean(), \"isAsymmetric\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getForwardRelation__IsReflexive(), theEcorePackage.getEBoolean(), \"isReflexive\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getForwardRelation__IsIrreflexive(), theEcorePackage.getEBoolean(), \"isIrreflexive\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getForwardRelation__IsTransitive(), theEcorePackage.getEBoolean(), \"isTransitive\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getForwardRelation__GetDomains(), this.getEntity(), \"getDomains\", 0, -1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getForwardRelation__GetRanges(), this.getEntity(), \"getRanges\", 0, -1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getForwardRelation__GetInverse(), this.getRelation(), \"getInverse\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(reverseRelationEClass, ReverseRelation.class, \"ReverseRelation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getReverseRelation_RelationBase(), this.getRelationBase(), this.getRelationBase_ReverseRelation(), \"relationBase\", null, 1, 1, ReverseRelation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getReverseRelation__GetRef(), this.getMember(), \"getRef\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getReverseRelation__IsFunctional(), theEcorePackage.getEBoolean(), \"isFunctional\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getReverseRelation__IsInverseFunctional(), theEcorePackage.getEBoolean(), \"isInverseFunctional\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getReverseRelation__IsSymmetric(), theEcorePackage.getEBoolean(), \"isSymmetric\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getReverseRelation__IsAsymmetric(), theEcorePackage.getEBoolean(), \"isAsymmetric\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getReverseRelation__IsReflexive(), theEcorePackage.getEBoolean(), \"isReflexive\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getReverseRelation__IsIrreflexive(), theEcorePackage.getEBoolean(), \"isIrreflexive\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getReverseRelation__IsTransitive(), theEcorePackage.getEBoolean(), \"isTransitive\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getReverseRelation__GetDomains(), this.getEntity(), \"getDomains\", 0, -1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getReverseRelation__GetRanges(), this.getEntity(), \"getRanges\", 0, -1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getReverseRelation__GetInverse(), this.getRelation(), \"getInverse\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(unreifiedRelationEClass, UnreifiedRelation.class, \"UnreifiedRelation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getUnreifiedRelation_Ref(), this.getRelation(), null, \"ref\", null, 0, 1, UnreifiedRelation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getUnreifiedRelation__GetDomains(), this.getEntity(), \"getDomains\", 0, -1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getUnreifiedRelation__GetRanges(), this.getEntity(), \"getRanges\", 0, -1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getUnreifiedRelation__GetInverse(), this.getRelation(), \"getInverse\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(namedInstanceEClass, NamedInstance.class, \"NamedInstance\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getNamedInstance_OwnedTypes(), this.getTypeAssertion(), this.getTypeAssertion_OwningInstance(), \"ownedTypes\", null, 0, -1, NamedInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(conceptInstanceEClass, ConceptInstance.class, \"ConceptInstance\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getConceptInstance_Ref(), this.getConceptInstance(), null, \"ref\", null, 0, 1, ConceptInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(relationInstanceEClass, RelationInstance.class, \"RelationInstance\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getRelationInstance_Ref(), this.getRelationInstance(), null, \"ref\", null, 0, 1, RelationInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getRelationInstance_Sources(), this.getNamedInstance(), null, \"sources\", null, 0, -1, RelationInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getRelationInstance_Targets(), this.getNamedInstance(), null, \"targets\", null, 0, -1, RelationInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(structureInstanceEClass, StructureInstance.class, \"StructureInstance\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getStructureInstance_Type(), this.getStructure(), null, \"type\", null, 1, 1, StructureInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getStructureInstance_OwningAxiom(), this.getPropertyValueRestrictionAxiom(), this.getPropertyValueRestrictionAxiom_StructureInstanceValue(), \"owningAxiom\", null, 0, 1, StructureInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getStructureInstance_OwningAssertion(), this.getPropertyValueAssertion(), this.getPropertyValueAssertion_StructureInstanceValue(), \"owningAssertion\", null, 0, 1, StructureInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(keyAxiomEClass, KeyAxiom.class, \"KeyAxiom\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getKeyAxiom_Properties(), this.getProperty(), null, \"properties\", null, 1, -1, KeyAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getKeyAxiom_OwningEntity(), this.getEntity(), this.getEntity_OwnedKeys(), \"owningEntity\", null, 0, 1, KeyAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getKeyAxiom__GetKeyedEntity(), this.getEntity(), \"getKeyedEntity\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getKeyAxiom__GetCharacterizedTerm(), this.getEntity(), \"getCharacterizedTerm\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(specializationAxiomEClass, SpecializationAxiom.class, \"SpecializationAxiom\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getSpecializationAxiom_SuperTerm(), this.getTerm(), null, \"superTerm\", null, 1, 1, SpecializationAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSpecializationAxiom_OwningTerm(), this.getSpecializableTerm(), this.getSpecializableTerm_OwnedSpecializations(), \"owningTerm\", null, 0, 1, SpecializationAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getSpecializationAxiom__GetSubTerm(), this.getTerm(), \"getSubTerm\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getSpecializationAxiom__GetCharacterizedTerm(), this.getTerm(), \"getCharacterizedTerm\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(instanceEnumerationAxiomEClass, InstanceEnumerationAxiom.class, \"InstanceEnumerationAxiom\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInstanceEnumerationAxiom_Instances(), this.getConceptInstance(), null, \"instances\", null, 1, -1, InstanceEnumerationAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInstanceEnumerationAxiom_OwningConcept(), this.getConcept(), this.getConcept_OwnedEnumeration(), \"owningConcept\", null, 0, 1, InstanceEnumerationAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getInstanceEnumerationAxiom__GetEnumeratedConcept(), this.getConcept(), \"getEnumeratedConcept\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getInstanceEnumerationAxiom__GetCharacterizedTerm(), this.getConcept(), \"getCharacterizedTerm\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(propertyRestrictionAxiomEClass, PropertyRestrictionAxiom.class, \"PropertyRestrictionAxiom\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPropertyRestrictionAxiom_Property(), this.getSemanticProperty(), null, \"property\", null, 1, 1, PropertyRestrictionAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPropertyRestrictionAxiom_OwningClassifier(), this.getClassifier(), this.getClassifier_OwnedPropertyRestrictions(), \"owningClassifier\", null, 0, 1, PropertyRestrictionAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPropertyRestrictionAxiom_OwningAxiom(), this.getClassifierEquivalenceAxiom(), this.getClassifierEquivalenceAxiom_OwnedPropertyRestrictions(), \"owningAxiom\", null, 0, 1, PropertyRestrictionAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getPropertyRestrictionAxiom__GetRestrictingDomain(), this.getClassifier(), \"getRestrictingDomain\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getPropertyRestrictionAxiom__GetCharacterizedTerm(), this.getClassifier(), \"getCharacterizedTerm\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(literalEnumerationAxiomEClass, LiteralEnumerationAxiom.class, \"LiteralEnumerationAxiom\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getLiteralEnumerationAxiom_Literals(), this.getLiteral(), null, \"literals\", null, 1, -1, LiteralEnumerationAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getLiteralEnumerationAxiom_OwningScalar(), this.getScalar(), this.getScalar_OwnedEnumeration(), \"owningScalar\", null, 0, 1, LiteralEnumerationAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getLiteralEnumerationAxiom__GetEnumeratedScalar(), this.getScalar(), \"getEnumeratedScalar\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getLiteralEnumerationAxiom__GetCharacterizedTerm(), this.getScalar(), \"getCharacterizedTerm\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(classifierEquivalenceAxiomEClass, ClassifierEquivalenceAxiom.class, \"ClassifierEquivalenceAxiom\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getClassifierEquivalenceAxiom_SuperClassifiers(), this.getClassifier(), null, \"superClassifiers\", null, 0, -1, ClassifierEquivalenceAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getClassifierEquivalenceAxiom_OwnedPropertyRestrictions(), this.getPropertyRestrictionAxiom(), this.getPropertyRestrictionAxiom_OwningAxiom(), \"ownedPropertyRestrictions\", null, 0, -1, ClassifierEquivalenceAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getClassifierEquivalenceAxiom_OwningClassifier(), this.getClassifier(), this.getClassifier_OwnedEquivalences(), \"owningClassifier\", null, 0, 1, ClassifierEquivalenceAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getClassifierEquivalenceAxiom__GetSubClassifier(), this.getClassifier(), \"getSubClassifier\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getClassifierEquivalenceAxiom__GetCharacterizedTerm(), this.getClassifier(), \"getCharacterizedTerm\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(scalarEquivalenceAxiomEClass, ScalarEquivalenceAxiom.class, \"ScalarEquivalenceAxiom\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getScalarEquivalenceAxiom_SuperScalar(), this.getScalar(), null, \"superScalar\", null, 1, 1, ScalarEquivalenceAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getScalarEquivalenceAxiom_OwningScalar(), this.getScalar(), this.getScalar_OwnedEquivalences(), \"owningScalar\", null, 1, 1, ScalarEquivalenceAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getScalarEquivalenceAxiom_Length(), this.getUnsignedInteger(), \"length\", null, 0, 1, ScalarEquivalenceAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getScalarEquivalenceAxiom_MinLength(), this.getUnsignedInteger(), \"minLength\", null, 0, 1, ScalarEquivalenceAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getScalarEquivalenceAxiom_MaxLength(), this.getUnsignedInteger(), \"maxLength\", null, 0, 1, ScalarEquivalenceAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getScalarEquivalenceAxiom_Pattern(), theEcorePackage.getEString(), \"pattern\", null, 0, 1, ScalarEquivalenceAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getScalarEquivalenceAxiom_Language(), theEcorePackage.getEString(), \"language\", null, 0, 1, ScalarEquivalenceAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getScalarEquivalenceAxiom_MinInclusive(), this.getLiteral(), null, \"minInclusive\", null, 0, 1, ScalarEquivalenceAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getScalarEquivalenceAxiom_MinExclusive(), this.getLiteral(), null, \"minExclusive\", null, 0, 1, ScalarEquivalenceAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getScalarEquivalenceAxiom_MaxInclusive(), this.getLiteral(), null, \"maxInclusive\", null, 0, 1, ScalarEquivalenceAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getScalarEquivalenceAxiom_MaxExclusive(), this.getLiteral(), null, \"maxExclusive\", null, 0, 1, ScalarEquivalenceAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getScalarEquivalenceAxiom__GetSubScalar(), this.getScalar(), \"getSubScalar\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getScalarEquivalenceAxiom__GetCharacterizedTerm(), this.getScalar(), \"getCharacterizedTerm\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(propertyEquivalenceAxiomEClass, PropertyEquivalenceAxiom.class, \"PropertyEquivalenceAxiom\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPropertyEquivalenceAxiom_SuperProperty(), this.getProperty(), null, \"superProperty\", null, 1, 1, PropertyEquivalenceAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPropertyEquivalenceAxiom_OwningProperty(), this.getSpecializableProperty(), this.getSpecializableProperty_OwnedEquivalences(), \"owningProperty\", null, 0, 1, PropertyEquivalenceAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getPropertyEquivalenceAxiom__GetSubProperty(), this.getProperty(), \"getSubProperty\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getPropertyEquivalenceAxiom__GetCharacterizedTerm(), this.getProperty(), \"getCharacterizedTerm\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(propertyRangeRestrictionAxiomEClass, PropertyRangeRestrictionAxiom.class, \"PropertyRangeRestrictionAxiom\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getPropertyRangeRestrictionAxiom_Kind(), this.getRangeRestrictionKind(), \"kind\", \"all\", 1, 1, PropertyRangeRestrictionAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPropertyRangeRestrictionAxiom_Range(), this.getType(), null, \"range\", null, 1, 1, PropertyRangeRestrictionAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(propertyCardinalityRestrictionAxiomEClass, PropertyCardinalityRestrictionAxiom.class, \"PropertyCardinalityRestrictionAxiom\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getPropertyCardinalityRestrictionAxiom_Kind(), this.getCardinalityRestrictionKind(), \"kind\", \"exactly\", 1, 1, PropertyCardinalityRestrictionAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPropertyCardinalityRestrictionAxiom_Cardinality(), this.getUnsignedInt(), \"cardinality\", \"1\", 1, 1, PropertyCardinalityRestrictionAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPropertyCardinalityRestrictionAxiom_Range(), this.getType(), null, \"range\", null, 0, 1, PropertyCardinalityRestrictionAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(propertyValueRestrictionAxiomEClass, PropertyValueRestrictionAxiom.class, \"PropertyValueRestrictionAxiom\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPropertyValueRestrictionAxiom_LiteralValue(), this.getLiteral(), null, \"literalValue\", null, 0, 1, PropertyValueRestrictionAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPropertyValueRestrictionAxiom_StructureInstanceValue(), this.getStructureInstance(), this.getStructureInstance_OwningAxiom(), \"structureInstanceValue\", null, 0, 1, PropertyValueRestrictionAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPropertyValueRestrictionAxiom_NamedInstanceValue(), this.getNamedInstance(), null, \"namedInstanceValue\", null, 0, 1, PropertyValueRestrictionAxiom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getPropertyValueRestrictionAxiom__GetValue(), this.getElement(), \"getValue\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(propertySelfRestrictionAxiomEClass, PropertySelfRestrictionAxiom.class, \"PropertySelfRestrictionAxiom\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(typeAssertionEClass, TypeAssertion.class, \"TypeAssertion\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getTypeAssertion_Type(), this.getEntity(), null, \"type\", null, 1, 1, TypeAssertion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getTypeAssertion_OwningInstance(), this.getNamedInstance(), this.getNamedInstance_OwnedTypes(), \"owningInstance\", null, 0, 1, TypeAssertion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getTypeAssertion__GetSubject(), this.getNamedInstance(), \"getSubject\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getTypeAssertion__GetObject(), this.getElement(), \"getObject\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(propertyValueAssertionEClass, PropertyValueAssertion.class, \"PropertyValueAssertion\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPropertyValueAssertion_Property(), this.getSemanticProperty(), null, \"property\", null, 1, 1, PropertyValueAssertion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPropertyValueAssertion_LiteralValue(), this.getLiteral(), null, \"literalValue\", null, 0, 1, PropertyValueAssertion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPropertyValueAssertion_StructureInstanceValue(), this.getStructureInstance(), this.getStructureInstance_OwningAssertion(), \"structureInstanceValue\", null, 0, 1, PropertyValueAssertion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPropertyValueAssertion_NamedInstanceValue(), this.getNamedInstance(), null, \"namedInstanceValue\", null, 0, 1, PropertyValueAssertion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPropertyValueAssertion_OwningInstance(), this.getInstance(), this.getInstance_OwnedPropertyValues(), \"owningInstance\", null, 0, 1, PropertyValueAssertion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getPropertyValueAssertion__GetValue(), this.getElement(), \"getValue\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getPropertyValueAssertion__GetSubject(), this.getInstance(), \"getSubject\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getPropertyValueAssertion__GetObject(), this.getElement(), \"getObject\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(unaryPredicateEClass, UnaryPredicate.class, \"UnaryPredicate\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getUnaryPredicate_Argument(), this.getArgument(), null, \"argument\", null, 1, 1, UnaryPredicate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(binaryPredicateEClass, BinaryPredicate.class, \"BinaryPredicate\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getBinaryPredicate_Argument1(), this.getArgument(), null, \"argument1\", null, 1, 1, BinaryPredicate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getBinaryPredicate_Argument2(), this.getArgument(), null, \"argument2\", null, 1, 1, BinaryPredicate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(builtInPredicateEClass, BuiltInPredicate.class, \"BuiltInPredicate\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getBuiltInPredicate_BuiltIn(), this.getBuiltIn(), null, \"builtIn\", null, 1, 1, BuiltInPredicate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getBuiltInPredicate_Arguments(), this.getArgument(), null, \"arguments\", null, 1, -1, BuiltInPredicate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(typePredicateEClass, TypePredicate.class, \"TypePredicate\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getTypePredicate_Type(), this.getType(), null, \"type\", null, 1, 1, TypePredicate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(relationEntityPredicateEClass, RelationEntityPredicate.class, \"RelationEntityPredicate\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getRelationEntityPredicate_Type(), this.getRelationEntity(), null, \"type\", null, 1, 1, RelationEntityPredicate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(propertyPredicateEClass, PropertyPredicate.class, \"PropertyPredicate\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPropertyPredicate_Property(), this.getProperty(), null, \"property\", null, 1, 1, PropertyPredicate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(sameAsPredicateEClass, SameAsPredicate.class, \"SameAsPredicate\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(differentFromPredicateEClass, DifferentFromPredicate.class, \"DifferentFromPredicate\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(quotedLiteralEClass, QuotedLiteral.class, \"QuotedLiteral\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getQuotedLiteral_Value(), theEcorePackage.getEString(), \"value\", null, 1, 1, QuotedLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getQuotedLiteral_LangTag(), theEcorePackage.getEString(), \"langTag\", null, 0, 1, QuotedLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getQuotedLiteral_Type(), this.getScalar(), null, \"type\", null, 0, 1, QuotedLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getQuotedLiteral__GetLexicalValue(), theEcorePackage.getEString(), \"getLexicalValue\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getQuotedLiteral__GetTypeIri(), theEcorePackage.getEString(), \"getTypeIri\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(integerLiteralEClass, IntegerLiteral.class, \"IntegerLiteral\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getIntegerLiteral_Value(), theEcorePackage.getEIntegerObject(), \"value\", \"0\", 0, 1, IntegerLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getIntegerLiteral__GetTypeIri(), theEcorePackage.getEString(), \"getTypeIri\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(decimalLiteralEClass, DecimalLiteral.class, \"DecimalLiteral\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getDecimalLiteral_Value(), this.getDecimal(), \"value\", \"0.0\", 1, 1, DecimalLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getDecimalLiteral__GetTypeIri(), theEcorePackage.getEString(), \"getTypeIri\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(doubleLiteralEClass, DoubleLiteral.class, \"DoubleLiteral\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getDoubleLiteral_Value(), theEcorePackage.getEDoubleObject(), \"value\", \"0.0\", 0, 1, DoubleLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getDoubleLiteral__GetTypeIri(), theEcorePackage.getEString(), \"getTypeIri\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(booleanLiteralEClass, BooleanLiteral.class, \"BooleanLiteral\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getBooleanLiteral_Value(), theEcorePackage.getEBooleanObject(), \"value\", \"false\", 0, 1, BooleanLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getBooleanLiteral__IsValue(), theEcorePackage.getEBoolean(), \"isValue\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getBooleanLiteral__GetTypeIri(), theEcorePackage.getEString(), \"getTypeIri\", 0, 1, !IS_UNIQUE, IS_ORDERED);\n\n\t\t// Initialize enums and add enum literals\n\t\tinitEEnum(separatorKindEEnum, SeparatorKind.class, \"SeparatorKind\");\n\t\taddEEnumLiteral(separatorKindEEnum, SeparatorKind.HASH);\n\t\taddEEnumLiteral(separatorKindEEnum, SeparatorKind.SLASH);\n\n\t\tinitEEnum(rangeRestrictionKindEEnum, RangeRestrictionKind.class, \"RangeRestrictionKind\");\n\t\taddEEnumLiteral(rangeRestrictionKindEEnum, RangeRestrictionKind.ALL);\n\t\taddEEnumLiteral(rangeRestrictionKindEEnum, RangeRestrictionKind.SOME);\n\n\t\tinitEEnum(cardinalityRestrictionKindEEnum, CardinalityRestrictionKind.class, \"CardinalityRestrictionKind\");\n\t\taddEEnumLiteral(cardinalityRestrictionKindEEnum, CardinalityRestrictionKind.EXACTLY);\n\t\taddEEnumLiteral(cardinalityRestrictionKindEEnum, CardinalityRestrictionKind.MIN);\n\t\taddEEnumLiteral(cardinalityRestrictionKindEEnum, CardinalityRestrictionKind.MAX);\n\n\t\tinitEEnum(importKindEEnum, ImportKind.class, \"ImportKind\");\n\t\taddEEnumLiteral(importKindEEnum, ImportKind.EXTENSION);\n\t\taddEEnumLiteral(importKindEEnum, ImportKind.USAGE);\n\t\taddEEnumLiteral(importKindEEnum, ImportKind.INCLUSION);\n\n\t\t// Initialize data types\n\t\tinitEDataType(unsignedIntEDataType, long.class, \"UnsignedInt\", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEDataType(unsignedIntegerEDataType, Long.class, \"UnsignedInteger\", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEDataType(decimalEDataType, BigDecimal.class, \"Decimal\", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEDataType(idEDataType, String.class, \"ID\", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEDataType(namespaceEDataType, String.class, \"Namespace\", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\n\t\t// Create annotations\n\t\t// https://tabatkins.github.io/bikeshed/headings\n\t\tcreateHeadingsAnnotations();\n\t\t// https://tabatkins.github.io/bikeshed\n\t\tcreateBikeshedAnnotations();\n\t\t// http://www.eclipse.org/emf/2011/Xcore\n\t\tcreateXcoreAnnotations();\n\t\t// http:///org/eclipse/emf/ecore/util/ExtendedMetaData\n\t\tcreateExtendedMetaDataAnnotations();\n\t}", "public void initializePackageContents()\n {\n if (isInitialized) return;\n isInitialized = true;\n\n // Initialize package\n setName(eNAME);\n setNsPrefix(eNS_PREFIX);\n setNsURI(eNS_URI);\n\n // Create type parameters\n\n // Set bounds for type parameters\n\n // Add supertypes to classes\n assignmentEClass.getESuperTypes().add(this.getSimpleStatement());\n expressionEClass.getESuperTypes().add(this.getSimpleStatement());\n unaryMinusExpressionEClass.getESuperTypes().add(this.getExpression());\n unaryPlusExpressionEClass.getESuperTypes().add(this.getExpression());\n logicalNegationExpressionEClass.getESuperTypes().add(this.getExpression());\n bracketExpressionEClass.getESuperTypes().add(this.getExpression());\n pointerCallEClass.getESuperTypes().add(this.getExpression());\n variableCallEClass.getESuperTypes().add(this.getExpression());\n unarySpecifierEClass.getESuperTypes().add(this.getArraySpecifier());\n rangeSpecifierEClass.getESuperTypes().add(this.getArraySpecifier());\n ioFunctionsEClass.getESuperTypes().add(this.getExpression());\n infoFunctionsEClass.getESuperTypes().add(this.getExpression());\n manipFunctionsEClass.getESuperTypes().add(this.getExpression());\n arithFunctionsEClass.getESuperTypes().add(this.getExpression());\n loadEClass.getESuperTypes().add(this.getIOFunctions());\n storeEClass.getESuperTypes().add(this.getIOFunctions());\n exportEClass.getESuperTypes().add(this.getIOFunctions());\n printEClass.getESuperTypes().add(this.getSimpleStatement());\n depthEClass.getESuperTypes().add(this.getInfoFunctions());\n fieldInfoEClass.getESuperTypes().add(this.getInfoFunctions());\n containsEClass.getESuperTypes().add(this.getInfoFunctions());\n selectEClass.getESuperTypes().add(this.getManipFunctions());\n lengthEClass.getESuperTypes().add(this.getInfoFunctions());\n sumEClass.getESuperTypes().add(this.getArithFunctions());\n productEClass.getESuperTypes().add(this.getArithFunctions());\n constantEClass.getESuperTypes().add(this.getExpression());\n primitiveEClass.getESuperTypes().add(this.getConstant());\n arrayEClass.getESuperTypes().add(this.getConstant());\n jSonObjectEClass.getESuperTypes().add(this.getConstant());\n disjunctionExpressionEClass.getESuperTypes().add(this.getExpression());\n conjunctionExpressionEClass.getESuperTypes().add(this.getExpression());\n equalityExpressionEClass.getESuperTypes().add(this.getExpression());\n inequalityExpressionEClass.getESuperTypes().add(this.getExpression());\n superiorExpressionEClass.getESuperTypes().add(this.getExpression());\n superiorOrEqualExpressionEClass.getESuperTypes().add(this.getExpression());\n inferiorExpressionEClass.getESuperTypes().add(this.getExpression());\n inferiorOrEqualExpressionEClass.getESuperTypes().add(this.getExpression());\n additionExpressionEClass.getESuperTypes().add(this.getExpression());\n substractionExpressionEClass.getESuperTypes().add(this.getExpression());\n multiplicationExpressionEClass.getESuperTypes().add(this.getExpression());\n divisionExpressionEClass.getESuperTypes().add(this.getExpression());\n moduloExpressionEClass.getESuperTypes().add(this.getExpression());\n arrayCallEClass.getESuperTypes().add(this.getExpression());\n fieldCallEClass.getESuperTypes().add(this.getExpression());\n\n // Initialize classes and features; add operations and parameters\n initEClass(modelEClass, Model.class, \"Model\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getModel_Stmts(), this.getSimpleStatement(), null, \"stmts\", null, 0, -1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(simpleStatementEClass, SimpleStatement.class, \"SimpleStatement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(assignmentEClass, Assignment.class, \"Assignment\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getAssignment_LeftHandSide(), this.getVariableCall(), null, \"leftHandSide\", null, 0, 1, Assignment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getAssignment_RightHandSide(), this.getExpression(), null, \"rightHandSide\", null, 0, 1, Assignment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(expressionEClass, Expression.class, \"Expression\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(unaryMinusExpressionEClass, UnaryMinusExpression.class, \"UnaryMinusExpression\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getUnaryMinusExpression_Sub(), this.getExpression(), null, \"sub\", null, 0, 1, UnaryMinusExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(unaryPlusExpressionEClass, UnaryPlusExpression.class, \"UnaryPlusExpression\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getUnaryPlusExpression_Sub(), this.getExpression(), null, \"sub\", null, 0, 1, UnaryPlusExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(logicalNegationExpressionEClass, LogicalNegationExpression.class, \"LogicalNegationExpression\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getLogicalNegationExpression_Sub(), this.getExpression(), null, \"sub\", null, 0, 1, LogicalNegationExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(bracketExpressionEClass, BracketExpression.class, \"BracketExpression\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getBracketExpression_Sub(), this.getExpression(), null, \"sub\", null, 0, 1, BracketExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(pointerCallEClass, PointerCall.class, \"PointerCall\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(variableCallEClass, VariableCall.class, \"VariableCall\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getVariableCall_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, VariableCall.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(arraySpecifierEClass, ArraySpecifier.class, \"ArraySpecifier\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(unarySpecifierEClass, UnarySpecifier.class, \"UnarySpecifier\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getUnarySpecifier_Index(), ecorePackage.getEInt(), \"index\", null, 0, 1, UnarySpecifier.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(rangeSpecifierEClass, RangeSpecifier.class, \"RangeSpecifier\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getRangeSpecifier_From(), ecorePackage.getEInt(), \"from\", null, 0, 1, RangeSpecifier.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getRangeSpecifier_To(), ecorePackage.getEInt(), \"to\", null, 0, 1, RangeSpecifier.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(ioFunctionsEClass, IOFunctions.class, \"IOFunctions\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getIOFunctions_FileName(), ecorePackage.getEString(), \"fileName\", null, 0, 1, IOFunctions.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(infoFunctionsEClass, InfoFunctions.class, \"InfoFunctions\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(manipFunctionsEClass, ManipFunctions.class, \"ManipFunctions\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(arithFunctionsEClass, ArithFunctions.class, \"ArithFunctions\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getArithFunctions_Expression(), this.getExpression(), null, \"expression\", null, 0, 1, ArithFunctions.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getArithFunctions_Field(), this.getExpression(), null, \"field\", null, 0, 1, ArithFunctions.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getArithFunctions_WhereExpression(), this.getExpression(), null, \"whereExpression\", null, 0, 1, ArithFunctions.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(loadEClass, Load.class, \"Load\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(storeEClass, Store.class, \"Store\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getStore_Expression(), this.getExpression(), null, \"expression\", null, 0, 1, Store.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(exportEClass, Export.class, \"Export\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getExport_Expression(), this.getExpression(), null, \"expression\", null, 0, 1, Export.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(printEClass, Print.class, \"Print\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getPrint_Expression(), this.getExpression(), null, \"expression\", null, 0, 1, Print.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(depthEClass, Depth.class, \"Depth\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getDepth_Expression(), this.getExpression(), null, \"expression\", null, 0, 1, Depth.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(fieldInfoEClass, FieldInfo.class, \"FieldInfo\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getFieldInfo_Expression(), this.getExpression(), null, \"expression\", null, 0, 1, FieldInfo.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(containsEClass, Contains.class, \"Contains\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getContains_Keys(), this.getExpression(), null, \"keys\", null, 0, -1, Contains.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getContains_Right(), this.getExpression(), null, \"right\", null, 0, 1, Contains.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(selectEClass, Select.class, \"Select\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getSelect_Fields(), this.getExpression(), null, \"fields\", null, 0, -1, Select.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getSelect_FromExpression(), this.getExpression(), null, \"fromExpression\", null, 0, 1, Select.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getSelect_WhereExpression(), this.getExpression(), null, \"whereExpression\", null, 0, 1, Select.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(lengthEClass, Length.class, \"Length\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getLength_Expression(), this.getExpression(), null, \"expression\", null, 0, 1, Length.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(sumEClass, Sum.class, \"Sum\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(productEClass, Product.class, \"Product\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(constantEClass, Constant.class, \"Constant\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(primitiveEClass, Primitive.class, \"Primitive\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getPrimitive_Str(), ecorePackage.getEString(), \"str\", null, 0, 1, Primitive.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getPrimitive_IntNum(), ecorePackage.getEInt(), \"intNum\", null, 0, 1, Primitive.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getPrimitive_FloatNum(), ecorePackage.getEString(), \"floatNum\", null, 0, 1, Primitive.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getPrimitive_Bool(), ecorePackage.getEString(), \"bool\", null, 0, 1, Primitive.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getPrimitive_Nil(), ecorePackage.getEString(), \"nil\", null, 0, 1, Primitive.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(arrayEClass, Array.class, \"Array\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getArray_Values(), this.getExpression(), null, \"values\", null, 0, -1, Array.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(jSonObjectEClass, JSonObject.class, \"JSonObject\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getJSonObject_Fields(), this.getField(), null, \"fields\", null, 0, -1, JSonObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(fieldEClass, Field.class, \"Field\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getField_Key(), this.getExpression(), null, \"key\", null, 0, 1, Field.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getField_Value(), this.getExpression(), null, \"value\", null, 0, 1, Field.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(disjunctionExpressionEClass, DisjunctionExpression.class, \"DisjunctionExpression\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getDisjunctionExpression_Left(), this.getExpression(), null, \"left\", null, 0, 1, DisjunctionExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getDisjunctionExpression_Right(), this.getExpression(), null, \"right\", null, 0, 1, DisjunctionExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(conjunctionExpressionEClass, ConjunctionExpression.class, \"ConjunctionExpression\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getConjunctionExpression_Left(), this.getExpression(), null, \"left\", null, 0, 1, ConjunctionExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getConjunctionExpression_Right(), this.getExpression(), null, \"right\", null, 0, 1, ConjunctionExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(equalityExpressionEClass, EqualityExpression.class, \"EqualityExpression\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getEqualityExpression_Left(), this.getExpression(), null, \"left\", null, 0, 1, EqualityExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getEqualityExpression_Right(), this.getExpression(), null, \"right\", null, 0, 1, EqualityExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(inequalityExpressionEClass, InequalityExpression.class, \"InequalityExpression\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getInequalityExpression_Left(), this.getExpression(), null, \"left\", null, 0, 1, InequalityExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getInequalityExpression_Right(), this.getExpression(), null, \"right\", null, 0, 1, InequalityExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(superiorExpressionEClass, SuperiorExpression.class, \"SuperiorExpression\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getSuperiorExpression_Left(), this.getExpression(), null, \"left\", null, 0, 1, SuperiorExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getSuperiorExpression_Right(), this.getExpression(), null, \"right\", null, 0, 1, SuperiorExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(superiorOrEqualExpressionEClass, SuperiorOrEqualExpression.class, \"SuperiorOrEqualExpression\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getSuperiorOrEqualExpression_Left(), this.getExpression(), null, \"left\", null, 0, 1, SuperiorOrEqualExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getSuperiorOrEqualExpression_Right(), this.getExpression(), null, \"right\", null, 0, 1, SuperiorOrEqualExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(inferiorExpressionEClass, InferiorExpression.class, \"InferiorExpression\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getInferiorExpression_Left(), this.getExpression(), null, \"left\", null, 0, 1, InferiorExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getInferiorExpression_Right(), this.getExpression(), null, \"right\", null, 0, 1, InferiorExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(inferiorOrEqualExpressionEClass, InferiorOrEqualExpression.class, \"InferiorOrEqualExpression\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getInferiorOrEqualExpression_Left(), this.getExpression(), null, \"left\", null, 0, 1, InferiorOrEqualExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getInferiorOrEqualExpression_Right(), this.getExpression(), null, \"right\", null, 0, 1, InferiorOrEqualExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(additionExpressionEClass, AdditionExpression.class, \"AdditionExpression\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getAdditionExpression_Left(), this.getExpression(), null, \"left\", null, 0, 1, AdditionExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getAdditionExpression_Right(), this.getExpression(), null, \"right\", null, 0, 1, AdditionExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(substractionExpressionEClass, SubstractionExpression.class, \"SubstractionExpression\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getSubstractionExpression_Left(), this.getExpression(), null, \"left\", null, 0, 1, SubstractionExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getSubstractionExpression_Right(), this.getExpression(), null, \"right\", null, 0, 1, SubstractionExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(multiplicationExpressionEClass, MultiplicationExpression.class, \"MultiplicationExpression\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getMultiplicationExpression_Left(), this.getExpression(), null, \"left\", null, 0, 1, MultiplicationExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getMultiplicationExpression_Right(), this.getExpression(), null, \"right\", null, 0, 1, MultiplicationExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(divisionExpressionEClass, DivisionExpression.class, \"DivisionExpression\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getDivisionExpression_Left(), this.getExpression(), null, \"left\", null, 0, 1, DivisionExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getDivisionExpression_Right(), this.getExpression(), null, \"right\", null, 0, 1, DivisionExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(moduloExpressionEClass, ModuloExpression.class, \"ModuloExpression\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getModuloExpression_Left(), this.getExpression(), null, \"left\", null, 0, 1, ModuloExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getModuloExpression_Right(), this.getExpression(), null, \"right\", null, 0, 1, ModuloExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(arrayCallEClass, ArrayCall.class, \"ArrayCall\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getArrayCall_Callee(), this.getExpression(), null, \"callee\", null, 0, 1, ArrayCall.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getArrayCall_Specifier(), this.getArraySpecifier(), null, \"specifier\", null, 0, 1, ArrayCall.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(fieldCallEClass, FieldCall.class, \"FieldCall\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getFieldCall_Callee(), this.getExpression(), null, \"callee\", null, 0, 1, FieldCall.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getFieldCall_Field(), ecorePackage.getEString(), \"field\", null, 0, 1, FieldCall.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n // Create resource\n createResource(eNS_URI);\n }", "public void initializePackageContents() {\r\n\t\tif (isInitialized)\r\n\t\t\treturn;\r\n\t\tisInitialized = true;\r\n\r\n\t\t// Initialize package\r\n\t\tsetName(eNAME);\r\n\t\tsetNsPrefix(eNS_PREFIX);\r\n\t\tsetNsURI(eNS_URI);\r\n\r\n\t\t// Obtain other dependent packages\r\n\t\tEcorePackage theEcorePackage = (EcorePackage) EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI);\r\n\r\n\t\t// Create type parameters\r\n\r\n\t\t// Set bounds for type parameters\r\n\r\n\t\t// Add supertypes to classes\r\n\t\tgetMappingEClass.getESuperTypes().add(this.getRestMapping());\r\n\t\tpostMappingEClass.getESuperTypes().add(this.getRestMapping());\r\n\t\toneToManyEClass.getESuperTypes().add(this.getMappingType());\r\n\t\tmanyToOneEClass.getESuperTypes().add(this.getMappingType());\r\n\t\tmanyToManyEClass.getESuperTypes().add(this.getMappingType());\r\n\t\toneToOneEClass.getESuperTypes().add(this.getMappingType());\r\n\r\n\t\t// Initialize classes, features, and operations; add parameters\r\n\t\tinitEClass(springProjectEClass, SpringProject.class, \"SpringProject\", !IS_ABSTRACT, !IS_INTERFACE,\r\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getSpringProject_BasePackage(), theEcorePackage.getEString(), \"basePackage\", null, 0, 1,\r\n\t\t\t\tSpringProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getSpringProject_Name(), theEcorePackage.getEString(), \"name\", null, 0, 1, SpringProject.class,\r\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\t\tinitEReference(getSpringProject_DbSource(), this.getDBSource(), null, \"dbSource\", null, 0, 1,\r\n\t\t\t\tSpringProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,\r\n\t\t\t\t!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getSpringProject_Entities(), this.getEntity(), null, \"entities\", null, 0, -1,\r\n\t\t\t\tSpringProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,\r\n\t\t\t\t!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getSpringProject_Controllers(), this.getRestController(), null, \"controllers\", null, 0, -1,\r\n\t\t\t\tSpringProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,\r\n\t\t\t\t!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(restControllerEClass, RestController.class, \"RestController\", !IS_ABSTRACT, !IS_INTERFACE,\r\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getRestController_Name(), theEcorePackage.getEString(), \"name\", null, 0, 1, RestController.class,\r\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\t\tinitEAttribute(getRestController_Path(), theEcorePackage.getEString(), \"path\", null, 0, 1, RestController.class,\r\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\t\tinitEReference(getRestController_UsedEntities(), this.getEntity(), null, \"usedEntities\", null, 0, -1,\r\n\t\t\t\tRestController.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,\r\n\t\t\t\t!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getRestController_Mappings(), this.getRestMapping(), null, \"mappings\", null, 0, -1,\r\n\t\t\t\tRestController.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,\r\n\t\t\t\t!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(restMappingEClass, RestMapping.class, \"RestMapping\", IS_ABSTRACT, !IS_INTERFACE,\r\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getRestMapping_Path(), theEcorePackage.getEString(), \"path\", null, 0, 1, RestMapping.class,\r\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\t\tinitEAttribute(getRestMapping_Name(), theEcorePackage.getEString(), \"name\", null, 0, 1, RestMapping.class,\r\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\t\tinitEReference(getRestMapping_UsedEntity(), this.getEntity(), null, \"usedEntity\", null, 0, 1, RestMapping.class,\r\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE,\r\n\t\t\t\tIS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getRestMapping_Body(), theEcorePackage.getEString(), \"body\", null, 0, 1, RestMapping.class,\r\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\r\n\t\tinitEClass(getMappingEClass, GetMapping.class, \"GetMapping\", !IS_ABSTRACT, !IS_INTERFACE,\r\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEClass(postMappingEClass, PostMapping.class, \"PostMapping\", !IS_ABSTRACT, !IS_INTERFACE,\r\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getPostMapping_Parameters(), this.getField(), null, \"parameters\", null, 0, -1, PostMapping.class,\r\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE,\r\n\t\t\t\tIS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(entityEClass, Entity.class, \"Entity\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getEntity_SuperClass(), this.getEntity(), null, \"superClass\", null, 0, 1, Entity.class,\r\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE,\r\n\t\t\t\tIS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getEntity_Name(), theEcorePackage.getEString(), \"name\", null, 0, 1, Entity.class, !IS_TRANSIENT,\r\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getEntity_GenerateRepository(), theEcorePackage.getEBoolean(), \"generateRepository\", \"true\", 0,\r\n\t\t\t\t1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getEntity_Fields(), this.getField(), null, \"fields\", null, 0, -1, Entity.class, !IS_TRANSIENT,\r\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\t\tinitEReference(getEntity_Mapping(), this.getMapping(), null, \"mapping\", null, 0, -1, Entity.class,\r\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE,\r\n\t\t\t\tIS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(mappingEClass, Mapping.class, \"Mapping\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getMapping_Name(), theEcorePackage.getEString(), \"name\", null, 0, 1, Mapping.class,\r\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\t\tinitEReference(getMapping_Entity(), this.getEntity(), null, \"entity\", null, 0, 1, Mapping.class, !IS_TRANSIENT,\r\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\t\tinitEAttribute(getMapping_IsList(), theEcorePackage.getEBoolean(), \"isList\", \"true\", 0, 1, Mapping.class,\r\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\t\tinitEReference(getMapping_MappingType(), this.getMappingType(), null, \"mappingType\", null, 0, 1, Mapping.class,\r\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE,\r\n\t\t\t\tIS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(mappingTypeEClass, MappingType.class, \"MappingType\", IS_ABSTRACT, !IS_INTERFACE,\r\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getMappingType_Cascade(), this.getCascade(), \"cascade\", \"ALL\", 0, 1, MappingType.class,\r\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\t\tinitEReference(getMappingType_MappedBy(), this.getEntity(), null, \"mappedBy\", null, 0, 1, MappingType.class,\r\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE,\r\n\t\t\t\tIS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(oneToManyEClass, OneToMany.class, \"OneToMany\", !IS_ABSTRACT, !IS_INTERFACE,\r\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEClass(manyToOneEClass, ManyToOne.class, \"ManyToOne\", !IS_ABSTRACT, !IS_INTERFACE,\r\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEClass(manyToManyEClass, ManyToMany.class, \"ManyToMany\", !IS_ABSTRACT, !IS_INTERFACE,\r\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getManyToMany_JoinTableName(), theEcorePackage.getEString(), \"joinTableName\", null, 0, 1,\r\n\t\t\t\tManyToMany.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getManyToMany_JoinColumns(), theEcorePackage.getEString(), \"joinColumns\", null, 0, 1,\r\n\t\t\t\tManyToMany.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getManyToMany_InverseJoinColumns(), theEcorePackage.getEString(), \"inverseJoinColumns\", null, 0,\r\n\t\t\t\t1, ManyToMany.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(oneToOneEClass, OneToOne.class, \"OneToOne\", !IS_ABSTRACT, !IS_INTERFACE,\r\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEClass(fieldEClass, Field.class, \"Field\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getField_IsId(), theEcorePackage.getEBoolean(), \"isId\", \"false\", 0, 1, Field.class,\r\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\t\tinitEAttribute(getField_Name(), theEcorePackage.getEString(), \"name\", null, 0, 1, Field.class, !IS_TRANSIENT,\r\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getField_Datatype(), theEcorePackage.getEString(), \"datatype\", \"String\", 0, 1, Field.class,\r\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\r\n\t\tinitEClass(dbSourceEClass, DBSource.class, \"DBSource\", !IS_ABSTRACT, !IS_INTERFACE,\r\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getDBSource_EnableConsole(), theEcorePackage.getEBoolean(), \"enableConsole\", \"true\", 0, 1,\r\n\t\t\t\tDBSource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getDBSource_WebAllowOothers(), theEcorePackage.getEBoolean(), \"webAllowOothers\", \"true\", 0, 1,\r\n\t\t\t\tDBSource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getDBSource_ConsolePath(), theEcorePackage.getEString(), \"consolePath\", \"/h2-console\", 0, 1,\r\n\t\t\t\tDBSource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getDBSource_Url(), theEcorePackage.getEString(), \"url\",\r\n\t\t\t\t\"jdbc:h2:file:./data/Repository;DB_CLOSE_ON_EXIT=true;\", 0, 1, DBSource.class, !IS_TRANSIENT,\r\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getDBSource_User(), theEcorePackage.getEString(), \"user\", \"SA\", 0, 1, DBSource.class,\r\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\t\tinitEAttribute(getDBSource_Password(), theEcorePackage.getEString(), \"password\", \"SA\", 0, 1, DBSource.class,\r\n\t\t\t\t!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\t\tinitEAttribute(getDBSource_DriveClassName(), theEcorePackage.getEString(), \"driveClassName\", \"org.h2.Driver\", 0,\r\n\t\t\t\t1, DBSource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getDBSource_ServerPort(), theEcorePackage.getEString(), \"serverPort\", \"2001\", 0, 1,\r\n\t\t\t\tDBSource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\r\n\t\t// Initialize enums and add enum literals\r\n\t\tinitEEnum(cascadeEEnum, Cascade.class, \"Cascade\");\r\n\t\taddEEnumLiteral(cascadeEEnum, Cascade.ALL);\r\n\r\n\t\t// Create resource\r\n\t\tcreateResource(eNS_URI);\r\n\t}", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(liveScoreEClass, LiveScore.class, \"LiveScore\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getLiveScore_Preferedplayer(), this.getPreferedPlayer(), null, \"preferedplayer\", null, 0, -1, LiveScore.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getLiveScore_Salonname(), ecorePackage.getEString(), \"salonname\", null, 0, 1, LiveScore.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(preferedPlayerEClass, PreferedPlayer.class, \"PreferedPlayer\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getPreferedPlayer_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, PreferedPlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPreferedPlayer_Won(), ecorePackage.getEInt(), \"won\", null, 0, 1, PreferedPlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPreferedPlayer_Playings(), ecorePackage.getEInt(), \"playings\", null, 0, 1, PreferedPlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "@Override\n public void initialize() {\n emissary.core.MetadataDictionary.initialize();\n }", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tEefnrPackage theEefnrPackage = (EefnrPackage)EPackage.Registry.INSTANCE.getEPackage(EefnrPackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tdeferedFlatReferenceTableEditorSampleEClass.getESuperTypes().add(theEefnrPackage.getAbstractSample());\n\t\tdeferedReferenceTableEditorSampleEClass.getESuperTypes().add(theEefnrPackage.getAbstractSample());\n\t\townerEClass.getESuperTypes().add(theEefnrPackage.getAbstractSample());\n\t\tsubtypeEClass.getESuperTypes().add(this.getOwner());\n\t\tanotherSubTypeEClass.getESuperTypes().add(this.getSubtype());\n\t\telementEClass.getESuperTypes().add(theEefnrPackage.getNamedElement());\n\t\tattributeNavigationSampleEClass.getESuperTypes().add(theEefnrPackage.getAbstractSample());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(deferedFlatReferenceTableEditorSampleEClass, DeferedFlatReferenceTableEditorSample.class, \"DeferedFlatReferenceTableEditorSample\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getDeferedFlatReferenceTableEditorSample_References(), this.getDeferedReference(), null, \"references\", null, 0, -1, DeferedFlatReferenceTableEditorSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(deferedReferenceEClass, DeferedReference.class, \"DeferedReference\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getDeferedReference_FlatreferenceEditor(), theEefnrPackage.getTotalSample(), null, \"flatreferenceEditor\", null, 1, 1, DeferedReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(deferedReferenceTableEditorSampleEClass, DeferedReferenceTableEditorSample.class, \"DeferedReferenceTableEditorSample\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getDeferedReferenceTableEditorSample_References(), this.getDeferedReference(), null, \"references\", null, 0, -1, DeferedReferenceTableEditorSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(ownerEClass, Owner.class, \"Owner\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getOwner_MultipleReferencers(), this.getMultipleReferencer(), null, \"multipleReferencers\", null, 0, -1, Owner.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getOwner_SingleReferencers(), this.getSingleReferencer(), null, \"singleReferencers\", null, 0, 1, Owner.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(multipleReferencerEClass, MultipleReferencer.class, \"MultipleReferencer\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getMultipleReferencer_MultipleSampleForTableComposition(), this.getOwner(), null, \"multipleSampleForTableComposition\", null, 0, 1, MultipleReferencer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMultipleReferencer_MultipleSampleForAdvancedTableComposition(), this.getOwner(), null, \"multipleSampleForAdvancedTableComposition\", null, 0, 1, MultipleReferencer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMultipleReferencer_MultipleSampleForReferencesTable(), this.getOwner(), null, \"multipleSampleForReferencesTable\", null, 0, 1, MultipleReferencer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMultipleReferencer_MultipleSampleAdvancedReferencesTable(), this.getOwner(), null, \"multipleSampleAdvancedReferencesTable\", null, 0, 1, MultipleReferencer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMultipleReferencer_MultipleSampleForFlatReferencesTable(), this.getOwner(), null, \"multipleSampleForFlatReferencesTable\", null, 0, 1, MultipleReferencer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(subtypeEClass, Subtype.class, \"Subtype\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getSubtype_SpecialisedElement(), ecorePackage.getEBoolean(), \"specialisedElement\", null, 0, 1, Subtype.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(singleReferencerEClass, SingleReferencer.class, \"SingleReferencer\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getSingleReferencer_SingleSampleForTableComposition(), this.getOwner(), null, \"singleSampleForTableComposition\", null, 0, -1, SingleReferencer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSingleReferencer_SingleSampleForAdvancedTableComposition(), this.getOwner(), null, \"singleSampleForAdvancedTableComposition\", null, 0, -1, SingleReferencer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSingleReferencer_SingleSampleForReferencesTable(), this.getOwner(), null, \"singleSampleForReferencesTable\", null, 0, -1, SingleReferencer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSingleReferencer_SingleSampleAdvancedReferencesTable(), this.getOwner(), null, \"singleSampleAdvancedReferencesTable\", null, 0, -1, SingleReferencer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSingleReferencer_SingleSampleForFlatReferencesTable(), this.getOwner(), null, \"singleSampleForFlatReferencesTable\", null, 0, -1, SingleReferencer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSingleReferencer_SingleContainmentForEObjectFlatComboViewer(), this.getOwner(), null, \"singleContainmentForEObjectFlatComboViewer\", null, 0, 1, SingleReferencer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSingleReferencer_SingleReferenceForEObjectFlatComboViewer(), this.getOwner(), null, \"singleReferenceForEObjectFlatComboViewer\", null, 0, 1, SingleReferencer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSingleReferencer_SingleContainmentForAdvancedEObjectFlatComboViewer(), this.getOwner(), null, \"singleContainmentForAdvancedEObjectFlatComboViewer\", null, 0, 1, SingleReferencer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSingleReferencer_SingleReferenceForAdvancedEObjectFlatComboViewer(), this.getOwner(), null, \"singleReferenceForAdvancedEObjectFlatComboViewer\", null, 0, 1, SingleReferencer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSingleReferencer_BooleanAttribute(), ecorePackage.getEBoolean(), \"booleanAttribute\", null, 0, 1, SingleReferencer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSingleReferencer_EenumAttribute(), ecorePackage.getEEnumerator(), \"eenumAttribute\", null, 0, 1, SingleReferencer.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSingleReferencer_StringAttribute(), ecorePackage.getEString(), \"stringAttribute\", null, 0, 1, SingleReferencer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tEGenericType g1 = createEGenericType(ecorePackage.getEEList());\n\t\tEGenericType g2 = createEGenericType();\n\t\tg1.getETypeArguments().add(g2);\n\t\tinitEAttribute(getSingleReferencer_ListAttribute(), g1, \"listAttribute\", null, 0, 1, SingleReferencer.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(anotherSubTypeEClass, AnotherSubType.class, \"AnotherSubType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getAnotherSubType_AnotherSpecialisation(), ecorePackage.getEBoolean(), \"anotherSpecialisation\", null, 0, 1, AnotherSubType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(elementEClass, Element.class, \"Element\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getElement_Visible(), ecorePackage.getEBoolean(), \"visible\", null, 0, 1, Element.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(attributeNavigationSampleEClass, AttributeNavigationSample.class, \"AttributeNavigationSample\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAttributeNavigationSample_SingleValuedAttributeDelegate(), this.getAttributeDelegate(), null, \"singleValuedAttributeDelegate\", null, 0, 1, AttributeNavigationSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getAttributeNavigationSample_MultiValuedAttributeDelegate(), this.getAttributeDelegate(), null, \"multiValuedAttributeDelegate\", null, 0, -1, AttributeNavigationSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(attributeDelegateEClass, AttributeDelegate.class, \"AttributeDelegate\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getAttributeDelegate_Delegate1(), ecorePackage.getEString(), \"delegate1\", null, 1, 1, AttributeDelegate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAttributeDelegate_Delegate2(), ecorePackage.getEInt(), \"delegate2\", null, 0, 1, AttributeDelegate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t}", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tGraphic_representationPackage theGraphic_representationPackage = (Graphic_representationPackage)EPackage.Registry.INSTANCE.getEPackage(Graphic_representationPackage.eNS_URI);\n\t\tSplitterLibraryPackage theSplitterLibraryPackage = (SplitterLibraryPackage)EPackage.Registry.INSTANCE.getEPackage(SplitterLibraryPackage.eNS_URI);\n\t\tEcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tconcreteStrategyLabelFirstStringEClass.getESuperTypes().add(this.getStrategyLabel());\n\t\tconcreteStrategyLabelIdentifierEClass.getESuperTypes().add(this.getStrategyLabel());\n\t\tconcreteStrategyLabelParameterEClass.getESuperTypes().add(this.getStrategyLabel());\n\t\tconcreteStrategyMaxContainmentEClass.getESuperTypes().add(this.getStrategyRootSelection());\n\t\tconcreteStrategyNoParentEClass.getESuperTypes().add(this.getStrategyRootSelection());\n\t\tconcreteStrategyPaletteEClass.getESuperTypes().add(this.getStrategyPalette());\n\t\tconcreteStrategyArcSelectionEClass.getESuperTypes().add(this.getStrategyArcSelection());\n\t\tdefaultArcParameterEClass.getESuperTypes().add(this.getArcParameter());\n\t\tconcreteStrategyArcDirectionEClass.getESuperTypes().add(this.getStrategyArcDirection());\n\t\tconcreteStrategyDefaultDirectionEClass.getESuperTypes().add(this.getStrategyArcDirection());\n\t\tconcreteStrategyDefaultNodeSelectionEClass.getESuperTypes().add(this.getStrategyNodeSelection());\n\t\tconcreteStrategyContainmentDiagramElementEClass.getESuperTypes().add(this.getStrategyPossibleElements());\n\t\tconcreteContainmentasAffixedEClass.getESuperTypes().add(this.getStrategyLinkCompartment());\n\t\tconcreteContainmentasLinksEClass.getESuperTypes().add(this.getStrategyLinkCompartment());\n\t\tconcreteContainmentasCompartmentsEClass.getESuperTypes().add(this.getStrategyLinkCompartment());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(heuristicStrategyEClass, HeuristicStrategy.class, \"HeuristicStrategy\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getHeuristicStrategy_Graphic_representation(), theGraphic_representationPackage.getGraphicRepresentation(), null, \"graphic_representation\", null, 0, 1, HeuristicStrategy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getHeuristicStrategy_Nemf(), theSplitterLibraryPackage.getEcoreEMF(), null, \"nemf\", null, 0, 1, HeuristicStrategy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getHeuristicStrategy_EcoreContainment(), this.getEcoreMatrixContainment(), null, \"ecoreContainment\", null, 0, 1, HeuristicStrategy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getHeuristicStrategy_CurrentRepresentation(), ecorePackage.getEIntegerObject(), \"currentRepresentation\", null, 0, 1, HeuristicStrategy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getHeuristicStrategy_CurrentMMGR(), theEcorePackage.getEIntegerObject(), \"currentMMGR\", null, 0, 1, HeuristicStrategy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getHeuristicStrategy_ListRepresentation(), this.getRepreHeurSS(), null, \"listRepresentation\", null, 0, -1, HeuristicStrategy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getHeuristicStrategy__ExecuteHeuristics(), null, \"ExecuteHeuristics\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getHeuristicStrategy__Execute_Root_Element(), null, \"Execute_Root_Element\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getHeuristicStrategy__Execute_Graphical_Elements(), null, \"Execute_Graphical_Elements\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tEOperation op = initEOperation(getHeuristicStrategy__GetFeatureName__EClass_EClass(), ecorePackage.getEReference(), \"GetFeatureName\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEClass(), \"parentEClass\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEClass(), \"childEClass\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\top = initEOperation(getHeuristicStrategy__GetEListEClassfromEReference__EReference(), theGraphic_representationPackage.getNode(), \"GetEListEClassfromEReference\", 0, -1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEReference(), \"anEReference\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getHeuristicStrategy__ExecuteDirectPathMatrix(), null, \"ExecuteDirectPathMatrix\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(concreteStrategyLinkEClass, ConcreteStrategyLink.class, \"ConcreteStrategyLink\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(strategyLabelEClass, StrategyLabel.class, \"StrategyLabel\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\top = initEOperation(getStrategyLabel__GetLabel__EClass(), ecorePackage.getEAttribute(), \"GetLabel\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEClass(), \"anEClass\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(concreteStrategyLabelFirstStringEClass, ConcreteStrategyLabelFirstString.class, \"ConcreteStrategyLabelFirstString\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(concreteStrategyLabelIdentifierEClass, ConcreteStrategyLabelIdentifier.class, \"ConcreteStrategyLabelIdentifier\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(concreteStrategyLabelParameterEClass, ConcreteStrategyLabelParameter.class, \"ConcreteStrategyLabelParameter\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getConcreteStrategyLabelParameter_Label_parameter(), this.getLabelParameter(), null, \"label_parameter\", null, 0, 1, ConcreteStrategyLabelParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(labelParameterEClass, LabelParameter.class, \"LabelParameter\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getLabelParameter_List_label(), ecorePackage.getEString(), \"list_label\", null, 0, -1, LabelParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getLabelParameter__ToCommaSeparatedStringLabel(), ecorePackage.getEString(), \"toCommaSeparatedStringLabel\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getLabelParameter__DefaultParameters(), null, \"DefaultParameters\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(strategyRootSelectionEClass, StrategyRootSelection.class, \"StrategyRootSelection\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\top = initEOperation(getStrategyRootSelection__Get_Root__EList_EList(), ecorePackage.getEClass(), \"Get_Root\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\tEGenericType g1 = createEGenericType(ecorePackage.getEEList());\n\t\tEGenericType g2 = createEGenericType(ecorePackage.getEBooleanObject());\n\t\tg1.getETypeArguments().add(g2);\n\t\taddEParameter(op, g1, \"ContainmentMatrix\", 0, -1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEClass(), \"listEClass\", 0, -1, IS_UNIQUE, IS_ORDERED);\n\n\t\top = initEOperation(getStrategyRootSelection__List_Root__EList_EList(), ecorePackage.getEClass(), \"List_Root\", 0, -1, IS_UNIQUE, IS_ORDERED);\n\t\tg1 = createEGenericType(ecorePackage.getEEList());\n\t\tg2 = createEGenericType(ecorePackage.getEBooleanObject());\n\t\tg1.getETypeArguments().add(g2);\n\t\taddEParameter(op, g1, \"ContainmentMatrix\", 0, -1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEClass(), \"listEClass\", 0, -1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(concreteStrategyMaxContainmentEClass, ConcreteStrategyMaxContainment.class, \"ConcreteStrategyMaxContainment\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(concreteStrategyNoParentEClass, ConcreteStrategyNoParent.class, \"ConcreteStrategyNoParent\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(strategyPaletteEClass, StrategyPalette.class, \"StrategyPalette\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\top = initEOperation(getStrategyPalette__Get_Palette__EObject(), ecorePackage.getEString(), \"Get_Palette\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEObject(), \"anEObject\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(concreteStrategyPaletteEClass, ConcreteStrategyPalette.class, \"ConcreteStrategyPalette\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(strategyArcSelectionEClass, StrategyArcSelection.class, \"StrategyArcSelection\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getStrategyArcSelection_Arc_direction(), this.getStrategyArcDirection(), null, \"arc_direction\", null, 0, 1, StrategyArcSelection.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\top = initEOperation(getStrategyArcSelection__IsArc__EClass(), ecorePackage.getEBooleanObject(), \"IsArc\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEClass(), \"anEClass\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(concreteStrategyArcSelectionEClass, ConcreteStrategyArcSelection.class, \"ConcreteStrategyArcSelection\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(strategyArcDirectionEClass, StrategyArcDirection.class, \"StrategyArcDirection\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\top = initEOperation(getStrategyArcDirection__Get_Direction__EClass(), theGraphic_representationPackage.getEdge_Direction(), \"Get_Direction\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEClass(), \"anEClass\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(arcParameterEClass, ArcParameter.class, \"ArcParameter\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getArcParameter_Source(), ecorePackage.getEString(), \"source\", null, 0, -1, ArcParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getArcParameter_Target(), ecorePackage.getEString(), \"target\", null, 0, -1, ArcParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getArcParameter__DefaultParam(), null, \"DefaultParam\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(defaultArcParameterEClass, DefaultArcParameter.class, \"DefaultArcParameter\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEOperation(getDefaultArcParameter__ToCommaSeparatedStringSource(), ecorePackage.getEString(), \"toCommaSeparatedStringSource\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getDefaultArcParameter__ToCommaSeparatedStringTarget(), ecorePackage.getEString(), \"toCommaSeparatedStringTarget\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(concreteStrategyArcDirectionEClass, ConcreteStrategyArcDirection.class, \"ConcreteStrategyArcDirection\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getConcreteStrategyArcDirection_Param(), this.getArcParameter(), null, \"param\", null, 0, 1, ConcreteStrategyArcDirection.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\top = initEOperation(getConcreteStrategyArcDirection__ContainsStringEReferenceName__EList_String(), ecorePackage.getEBoolean(), \"ContainsStringEReferenceName\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEString(), \"ListStrings\", 0, -1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEString(), \"anString\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(concreteStrategyDefaultDirectionEClass, ConcreteStrategyDefaultDirection.class, \"ConcreteStrategyDefaultDirection\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(strategyNodeSelectionEClass, StrategyNodeSelection.class, \"StrategyNodeSelection\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\top = initEOperation(getStrategyNodeSelection__IsNode__EClass(), ecorePackage.getEBooleanObject(), \"IsNode\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEClass(), \"anEClass\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(concreteStrategyDefaultNodeSelectionEClass, ConcreteStrategyDefaultNodeSelection.class, \"ConcreteStrategyDefaultNodeSelection\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(strategyPossibleElementsEClass, StrategyPossibleElements.class, \"StrategyPossibleElements\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getStrategyPossibleElements_EClassNoElements(), ecorePackage.getEClass(), null, \"EClassNoElements\", null, 0, -1, StrategyPossibleElements.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\top = initEOperation(getStrategyPossibleElements__PossibleElements__EClass_EList_EList(), ecorePackage.getEClass(), \"PossibleElements\", 0, -1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEClass(), \"rootEClass\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\tg1 = createEGenericType(ecorePackage.getEEList());\n\t\tg2 = createEGenericType(ecorePackage.getEEList());\n\t\tg1.getETypeArguments().add(g2);\n\t\tEGenericType g3 = createEGenericType(ecorePackage.getEBooleanObject());\n\t\tg2.getETypeArguments().add(g3);\n\t\taddEParameter(op, g1, \"pathMatrix\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEClass(), \"listEClass\", 0, -1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(concreteStrategyContainmentDiagramElementEClass, ConcreteStrategyContainmentDiagramElement.class, \"ConcreteStrategyContainmentDiagramElement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(ecoreMatrixContainmentEClass, EcoreMatrixContainment.class, \"EcoreMatrixContainment\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tg1 = createEGenericType(ecorePackage.getEEList());\n\t\tg2 = createEGenericType(ecorePackage.getEEList());\n\t\tg1.getETypeArguments().add(g2);\n\t\tg3 = createEGenericType(ecorePackage.getEBooleanObject());\n\t\tg2.getETypeArguments().add(g3);\n\t\tinitEAttribute(getEcoreMatrixContainment_Direct_MatrixContainment(), g1, \"direct_MatrixContainment\", null, 0, 1, EcoreMatrixContainment.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tg1 = createEGenericType(ecorePackage.getEEList());\n\t\tg2 = createEGenericType(ecorePackage.getEEList());\n\t\tg1.getETypeArguments().add(g2);\n\t\tg3 = createEGenericType(ecorePackage.getEBooleanObject());\n\t\tg2.getETypeArguments().add(g3);\n\t\tinitEAttribute(getEcoreMatrixContainment_PathMatrix(), g1, \"pathMatrix\", null, 0, 1, EcoreMatrixContainment.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\top = initEOperation(getEcoreMatrixContainment__GetParent__Integer(), ecorePackage.getEIntegerObject(), \"GetParent\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEIntegerObject(), \"index\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\top = initEOperation(getEcoreMatrixContainment__GetDirectMatrixContainment__EList(), ecorePackage.getEBooleanObject(), \"GetDirectMatrixContainment\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEClass(), \"listEClass\", 0, -1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getEcoreMatrixContainment__GetPathMatrix(), ecorePackage.getEBooleanObject(), \"GetPathMatrix\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getEcoreMatrixContainment__CopyMatrix(), null, \"CopyMatrix\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\top = initEOperation(getEcoreMatrixContainment__PrintDirectMatrixContainment__EList(), null, \"PrintDirectMatrixContainment\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, theEcorePackage.getEClass(), \"listEClass\", 0, -1, IS_UNIQUE, IS_ORDERED);\n\n\t\top = initEOperation(getEcoreMatrixContainment__GetEAllChilds__EClass_EList(), theEcorePackage.getEClass(), \"getEAllChilds\", 0, -1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, theEcorePackage.getEClass(), \"eClass\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, theEcorePackage.getEClass(), \"listEClass\", 0, -1, IS_UNIQUE, IS_ORDERED);\n\n\t\top = initEOperation(getEcoreMatrixContainment__GetAllParents__Integer(), ecorePackage.getEIntegerObject(), \"getAllParents\", 0, -1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEIntegerObject(), \"index\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(heuristicStrategySettingsEClass, HeuristicStrategySettings.class, \"HeuristicStrategySettings\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getHeuristicStrategySettings_Strategy_label(), this.getStrategyLabel(), null, \"strategy_label\", null, 0, 1, HeuristicStrategySettings.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getHeuristicStrategySettings_Strategy_root(), this.getStrategyRootSelection(), null, \"strategy_root\", null, 0, 1, HeuristicStrategySettings.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getHeuristicStrategySettings_Strategy_palette(), this.getStrategyPalette(), null, \"strategy_palette\", null, 0, 1, HeuristicStrategySettings.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getHeuristicStrategySettings_Strategy_arcSelection(), this.getStrategyArcSelection(), null, \"strategy_arcSelection\", null, 0, 1, HeuristicStrategySettings.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getHeuristicStrategySettings_Strategy_node_selection(), this.getStrategyNodeSelection(), null, \"strategy_node_selection\", null, 0, 1, HeuristicStrategySettings.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getHeuristicStrategySettings_Strategy_possibleElements(), this.getStrategyPossibleElements(), null, \"strategy_possibleElements\", null, 0, 1, HeuristicStrategySettings.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getHeuristicStrategySettings_Strategy_linkcompartment(), this.getStrategyLinkCompartment(), null, \"strategy_linkcompartment\", null, 0, 1, HeuristicStrategySettings.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(strategyLinkCompartmentEClass, StrategyLinkCompartment.class, \"StrategyLinkCompartment\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getStrategyLinkCompartment_ListLinks(), ecorePackage.getEReference(), null, \"listLinks\", null, 0, -1, StrategyLinkCompartment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getStrategyLinkCompartment_ListCompartment(), ecorePackage.getEReference(), null, \"listCompartment\", null, 0, -1, StrategyLinkCompartment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getStrategyLinkCompartment_ListAffixed(), ecorePackage.getEReference(), null, \"listAffixed\", null, 0, -1, StrategyLinkCompartment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\top = initEOperation(getStrategyLinkCompartment__ExecuteLinkCompartmentsHeuristics__EClass(), null, \"ExecuteLinkCompartmentsHeuristics\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEClass(), \"anEClass\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(concreteContainmentasAffixedEClass, ConcreteContainmentasAffixed.class, \"ConcreteContainmentasAffixed\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(concreteContainmentasLinksEClass, ConcreteContainmentasLinks.class, \"ConcreteContainmentasLinks\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(concreteContainmentasCompartmentsEClass, ConcreteContainmentasCompartments.class, \"ConcreteContainmentasCompartments\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(repreHeurSSEClass, RepreHeurSS.class, \"RepreHeurSS\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getRepreHeurSS_HeuristicStrategySettings(), this.getHeuristicStrategySettings(), null, \"heuristicStrategySettings\", null, 0, -1, RepreHeurSS.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tInfrastructurePackage theInfrastructurePackage = (InfrastructurePackage)EPackage.Registry.INSTANCE.getEPackage(InfrastructurePackage.eNS_URI);\n\t\tOCCIPackage theOCCIPackage = (OCCIPackage)EPackage.Registry.INSTANCE.getEPackage(OCCIPackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tcontainerEClass.getESuperTypes().add(theInfrastructurePackage.getCompute());\n\t\tlinkEClass.getESuperTypes().add(theOCCIPackage.getLink());\n\t\tnetworklinkEClass.getESuperTypes().add(this.getLink());\n\t\tvolumesfromEClass.getESuperTypes().add(theOCCIPackage.getLink());\n\t\tcontainsEClass.getESuperTypes().add(theOCCIPackage.getLink());\n\t\tmachineEClass.getESuperTypes().add(theInfrastructurePackage.getCompute());\n\t\tvolumeEClass.getESuperTypes().add(theInfrastructurePackage.getStorage());\n\t\tnetworkEClass.getESuperTypes().add(theInfrastructurePackage.getNetwork());\n\t\tmachinegenericEClass.getESuperTypes().add(this.getMachine());\n\t\tmachineamazonec2EClass.getESuperTypes().add(this.getMachine());\n\t\tmachinedigitaloceanEClass.getESuperTypes().add(this.getMachine());\n\t\tmachinegooglecomputeengineEClass.getESuperTypes().add(this.getMachine());\n\t\tmachineibmsoftlayerEClass.getESuperTypes().add(this.getMachine());\n\t\tmachinemicrosoftazureEClass.getESuperTypes().add(this.getMachine());\n\t\tmachinemicrosofthypervEClass.getESuperTypes().add(this.getMachine());\n\t\tmachineopenstackEClass.getESuperTypes().add(this.getMachine());\n\t\tmachinerackspaceEClass.getESuperTypes().add(this.getMachine());\n\t\tmachinevirtualboxEClass.getESuperTypes().add(this.getMachine());\n\t\tmachinevmwarefusionEClass.getESuperTypes().add(this.getMachine());\n\t\tmachinevmwarevcloudairEClass.getESuperTypes().add(this.getMachine());\n\t\tmachinevmwarevsphereEClass.getESuperTypes().add(this.getMachine());\n\t\tmachineexoscaleEClass.getESuperTypes().add(this.getMachine());\n\t\tmachinegrid5000EClass.getESuperTypes().add(this.getMachine());\n\t\tclusterEClass.getESuperTypes().add(theInfrastructurePackage.getCompute());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(arrayOfStringEClass, ArrayOfString.class, \"ArrayOfString\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getArrayOfString_Values(), ecorePackage.getEString(), \"values\", null, 0, -1, ArrayOfString.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(containerEClass, org.eclipse.cmf.occi.docker.Container.class, \"Container\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getContainer_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Containerid(), ecorePackage.getEString(), \"containerid\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Image(), ecorePackage.getEString(), \"image\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Build(), ecorePackage.getEString(), \"build\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Command(), ecorePackage.getEString(), \"command\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Ports(), ecorePackage.getEString(), \"ports\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Expose(), ecorePackage.getEString(), \"expose\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Volumes(), ecorePackage.getEString(), \"volumes\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Environment(), ecorePackage.getEString(), \"environment\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_EnvFile(), ecorePackage.getEString(), \"envFile\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Net(), ecorePackage.getEString(), \"net\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Dns(), ecorePackage.getEString(), \"dns\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_DnsSearch(), ecorePackage.getEString(), \"dnsSearch\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_CapAdd(), ecorePackage.getEString(), \"capAdd\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_CapDrop(), ecorePackage.getEString(), \"capDrop\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_WorkingDir(), ecorePackage.getEString(), \"workingDir\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Entrypoint(), ecorePackage.getEString(), \"entrypoint\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_User(), ecorePackage.getEString(), \"user\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_DomainName(), ecorePackage.getEString(), \"domainName\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_MemLimit(), ecorePackage.getEBigInteger(), \"memLimit\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_MemorySwap(), ecorePackage.getEBigInteger(), \"memorySwap\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Privileged(), ecorePackage.getEBoolean(), \"privileged\", \"false\", 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Restart(), ecorePackage.getEString(), \"restart\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_StdinOpen(), ecorePackage.getEBoolean(), \"stdinOpen\", \"false\", 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Interactive(), ecorePackage.getEBoolean(), \"interactive\", \"false\", 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_CpuShares(), ecorePackage.getEBigInteger(), \"cpuShares\", \"0\", 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Pid(), ecorePackage.getEString(), \"pid\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Ipc(), ecorePackage.getEString(), \"ipc\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_AddHost(), ecorePackage.getEString(), \"addHost\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_MacAddress(), theInfrastructurePackage.getMac(), \"macAddress\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Rm(), ecorePackage.getEBoolean(), \"rm\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_SecurityOpt(), ecorePackage.getEString(), \"securityOpt\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Device(), ecorePackage.getEString(), \"device\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_LxcConf(), ecorePackage.getEString(), \"lxcConf\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_PublishAll(), ecorePackage.getEBoolean(), \"publishAll\", \"false\", 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_ReadOnly(), ecorePackage.getEBoolean(), \"readOnly\", \"false\", 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Monitored(), ecorePackage.getEBoolean(), \"monitored\", \"false\", 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_CpuUsed(), ecorePackage.getEBigInteger(), \"cpuUsed\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_MemoryUsed(), ecorePackage.getEBigInteger(), \"memoryUsed\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_CpuPercent(), ecorePackage.getEString(), \"cpuPercent\", \"0\", 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_MemoryPercent(), ecorePackage.getEString(), \"memoryPercent\", \"0\", 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_DiskUsed(), ecorePackage.getEBigInteger(), \"diskUsed\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_DiskPercent(), ecorePackage.getEString(), \"diskPercent\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_BandwidthUsed(), ecorePackage.getEBigInteger(), \"bandwidthUsed\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_BandwidthPercent(), ecorePackage.getEString(), \"bandwidthPercent\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_MonitoringInterval(), ecorePackage.getEBigInteger(), \"monitoringInterval\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_CpuMaxValue(), ecorePackage.getEBigInteger(), \"cpuMaxValue\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_MemoryMaxValue(), ecorePackage.getEBigInteger(), \"memoryMaxValue\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_CoreMax(), ecorePackage.getEBigInteger(), \"coreMax\", \"1\", 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_CpuSetCpus(), ecorePackage.getEString(), \"cpuSetCpus\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_CpuSetMems(), ecorePackage.getEString(), \"cpuSetMems\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Tty(), ecorePackage.getEBoolean(), \"tty\", \"false\", 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getContainer__Create(), null, \"create\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getContainer__Stop(), null, \"stop\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getContainer__Run(), null, \"run\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getContainer__Pause(), null, \"pause\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getContainer__Unpause(), null, \"unpause\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tEOperation op = initEOperation(getContainer__Kill__String(), null, \"kill\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEString(), \"signal\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(linkEClass, Link.class, \"Link\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getLink_Alias(), ecorePackage.getEString(), \"alias\", null, 0, 1, Link.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(networklinkEClass, Networklink.class, \"Networklink\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(volumesfromEClass, Volumesfrom.class, \"Volumesfrom\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getVolumesfrom_Mode(), this.getMode(), \"mode\", \"readWrite\", 0, 1, Volumesfrom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(containsEClass, Contains.class, \"Contains\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(machineEClass, Machine.class, \"Machine\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachine_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_EngineInstallURL(), ecorePackage.getEString(), \"engineInstallURL\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_EngineOpt(), ecorePackage.getEString(), \"engineOpt\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_EngineInsecureRegistry(), ecorePackage.getEString(), \"engineInsecureRegistry\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_EngineRegistryMirror(), ecorePackage.getEString(), \"engineRegistryMirror\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_EngineLabel(), ecorePackage.getEString(), \"engineLabel\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_EngineStorageDriver(), ecorePackage.getEString(), \"engineStorageDriver\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_EngineEnv(), ecorePackage.getEString(), \"engineEnv\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_Swarm(), ecorePackage.getEBoolean(), \"swarm\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_SwarmImage(), ecorePackage.getEString(), \"swarmImage\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_SwarmMaster(), ecorePackage.getEBoolean(), \"swarmMaster\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_SwarmDiscovery(), ecorePackage.getEString(), \"swarmDiscovery\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_SwarmStrategy(), ecorePackage.getEString(), \"swarmStrategy\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_SwarmOpt(), ecorePackage.getEString(), \"swarmOpt\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_SwarmHost(), ecorePackage.getEString(), \"swarmHost\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_SwarmAddr(), ecorePackage.getEString(), \"swarmAddr\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_SwarmExperimental(), ecorePackage.getEString(), \"swarmExperimental\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_TlsSan(), ecorePackage.getEString(), \"tlsSan\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getMachine__Startall(), null, \"startall\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(volumeEClass, Volume.class, \"Volume\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getVolume_Driver(), ecorePackage.getEString(), \"driver\", \"local\", 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVolume_Labels(), ecorePackage.getEString(), \"labels\", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVolume_Options(), ecorePackage.getEString(), \"options\", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVolume_Source(), ecorePackage.getEString(), \"source\", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVolume_Destination(), ecorePackage.getEString(), \"destination\", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVolume_Mode(), ecorePackage.getEString(), \"mode\", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVolume_Rw(), ecorePackage.getEString(), \"rw\", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVolume_Propagation(), ecorePackage.getEString(), \"propagation\", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVolume_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(networkEClass, Network.class, \"Network\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getNetwork_NetworkId(), ecorePackage.getEString(), \"networkId\", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getNetwork_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getNetwork_AuxAddress(), ecorePackage.getEString(), \"auxAddress\", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getNetwork_Driver(), ecorePackage.getEString(), \"driver\", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getNetwork_Gateway(), ecorePackage.getEString(), \"gateway\", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getNetwork_Internal(), ecorePackage.getEBoolean(), \"internal\", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getNetwork_IpRange(), ecorePackage.getEString(), \"ipRange\", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getNetwork_IpamDriver(), ecorePackage.getEString(), \"ipamDriver\", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getNetwork_IpamOpt(), ecorePackage.getEString(), \"ipamOpt\", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getNetwork_Ipv6(), ecorePackage.getEBoolean(), \"ipv6\", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getNetwork_Opt(), ecorePackage.getEString(), \"opt\", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getNetwork_Subnet(), ecorePackage.getEString(), \"subnet\", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machinegenericEClass, Machinegeneric.class, \"Machinegeneric\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachinegeneric_EnginePort(), ecorePackage.getEBigInteger(), \"enginePort\", null, 0, 1, Machinegeneric.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegeneric_IpAddress(), ecorePackage.getEString(), \"ipAddress\", null, 0, 1, Machinegeneric.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegeneric_SshKey(), ecorePackage.getEString(), \"sshKey\", null, 0, 1, Machinegeneric.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegeneric_SshUser(), ecorePackage.getEString(), \"sshUser\", null, 0, 1, Machinegeneric.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegeneric_SshPort(), ecorePackage.getEBigInteger(), \"sshPort\", \"22\", 0, 1, Machinegeneric.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machineamazonec2EClass, Machineamazonec2.class, \"Machineamazonec2\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachineamazonec2_AccessKey(), ecorePackage.getEString(), \"accessKey\", null, 0, 1, Machineamazonec2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineamazonec2_Ami(), ecorePackage.getEString(), \"ami\", \"ami-4ae27e22\", 0, 1, Machineamazonec2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineamazonec2_InstanceType(), ecorePackage.getEString(), \"instanceType\", \"t2.micro\", 0, 1, Machineamazonec2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineamazonec2_Region(), ecorePackage.getEString(), \"region\", \"us-east-1\", 0, 1, Machineamazonec2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineamazonec2_RootSize(), ecorePackage.getEBigInteger(), \"rootSize\", \"16\", 0, 1, Machineamazonec2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineamazonec2_SecretKey(), ecorePackage.getEString(), \"secretKey\", null, 0, 1, Machineamazonec2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineamazonec2_SecurityGroup(), ecorePackage.getEString(), \"securityGroup\", \"docker-machine\", 0, 1, Machineamazonec2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineamazonec2_SessionToken(), ecorePackage.getEString(), \"sessionToken\", null, 0, 1, Machineamazonec2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineamazonec2_SubnetId(), ecorePackage.getEString(), \"subnetId\", null, 0, 1, Machineamazonec2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineamazonec2_VpcId(), ecorePackage.getEString(), \"vpcId\", null, 0, 1, Machineamazonec2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineamazonec2_Zone(), ecorePackage.getEString(), \"zone\", \"a\", 0, 1, Machineamazonec2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machinedigitaloceanEClass, Machinedigitalocean.class, \"Machinedigitalocean\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachinedigitalocean_AccessToken(), ecorePackage.getEString(), \"accessToken\", null, 0, 1, Machinedigitalocean.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinedigitalocean_Image(), ecorePackage.getEString(), \"image\", \"docker\", 0, 1, Machinedigitalocean.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinedigitalocean_Region(), ecorePackage.getEString(), \"region\", \"nyc3\", 0, 1, Machinedigitalocean.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinedigitalocean_Size(), ecorePackage.getEString(), \"size\", \"512mb\", 0, 1, Machinedigitalocean.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machinegooglecomputeengineEClass, Machinegooglecomputeengine.class, \"Machinegooglecomputeengine\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachinegooglecomputeengine_Zone(), ecorePackage.getEString(), \"zone\", \"us-central1-a\", 0, 1, Machinegooglecomputeengine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegooglecomputeengine_MachineType(), ecorePackage.getEString(), \"machineType\", \"f1-micro\", 0, 1, Machinegooglecomputeengine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegooglecomputeengine_Username(), ecorePackage.getEString(), \"username\", \"docker-user\", 0, 1, Machinegooglecomputeengine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegooglecomputeengine_InstanceName(), ecorePackage.getEString(), \"instanceName\", \"docker-machine\", 0, 1, Machinegooglecomputeengine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegooglecomputeengine_Project(), ecorePackage.getEString(), \"project\", null, 0, 1, Machinegooglecomputeengine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machineibmsoftlayerEClass, Machineibmsoftlayer.class, \"Machineibmsoftlayer\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachineibmsoftlayer_ApiEndpoint(), ecorePackage.getEString(), \"apiEndpoint\", \"api.softlayer.com/rest/v3\", 0, 1, Machineibmsoftlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineibmsoftlayer_User(), ecorePackage.getEString(), \"user\", null, 0, 1, Machineibmsoftlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineibmsoftlayer_ApiKey(), ecorePackage.getEString(), \"apiKey\", null, 0, 1, Machineibmsoftlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineibmsoftlayer_Cpu(), ecorePackage.getEBigInteger(), \"cpu\", null, 0, 1, Machineibmsoftlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineibmsoftlayer_DiskSize(), ecorePackage.getEBigInteger(), \"diskSize\", null, 0, 1, Machineibmsoftlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineibmsoftlayer_Domain(), ecorePackage.getEString(), \"domain\", null, 0, 1, Machineibmsoftlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineibmsoftlayer_HourlyBilling(), ecorePackage.getEBoolean(), \"hourlyBilling\", \"false\", 0, 1, Machineibmsoftlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineibmsoftlayer_Image(), ecorePackage.getEString(), \"image\", \"UBUNTU_LATEST\", 0, 1, Machineibmsoftlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineibmsoftlayer_LocalDisk(), ecorePackage.getEBoolean(), \"localDisk\", \"false\", 0, 1, Machineibmsoftlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineibmsoftlayer_PrivateNetOnly(), ecorePackage.getEBoolean(), \"privateNetOnly\", null, 0, 1, Machineibmsoftlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineibmsoftlayer_Region(), ecorePackage.getEString(), \"region\", null, 0, 1, Machineibmsoftlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineibmsoftlayer_PublicVlanId(), ecorePackage.getEString(), \"publicVlanId\", \"0\", 0, 1, Machineibmsoftlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineibmsoftlayer_PrivateVlanId(), ecorePackage.getEString(), \"privateVlanId\", \"0\", 0, 1, Machineibmsoftlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machinemicrosoftazureEClass, Machinemicrosoftazure.class, \"Machinemicrosoftazure\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachinemicrosoftazure_SubscriptionId(), ecorePackage.getEString(), \"subscriptionId\", null, 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_SubscriptionCert(), ecorePackage.getEString(), \"subscriptionCert\", null, 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_Environment(), ecorePackage.getEString(), \"environment\", \"AzurePublicCloud\", 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_MachineLocation(), ecorePackage.getEString(), \"machineLocation\", null, 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_ResourceGroup(), ecorePackage.getEString(), \"resourceGroup\", \"docker-machine\", 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_Size(), ecorePackage.getEString(), \"size\", null, 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_SshUser(), ecorePackage.getEString(), \"sshUser\", null, 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_Vnet(), ecorePackage.getEString(), \"vnet\", null, 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_Subnet(), ecorePackage.getEString(), \"subnet\", null, 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_SubnetPrefix(), ecorePackage.getEString(), \"subnetPrefix\", \"192.168.0.0/16\", 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_AvailabilitySet(), ecorePackage.getEString(), \"availabilitySet\", \"docker-machine\", 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_OpenPort(), ecorePackage.getEBigInteger(), \"openPort\", null, 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_PrivateIpAddress(), ecorePackage.getEString(), \"privateIpAddress\", null, 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_NoPublicIp(), ecorePackage.getEString(), \"noPublicIp\", null, 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_StaticPublicIp(), ecorePackage.getEString(), \"staticPublicIp\", null, 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_DockerPort(), ecorePackage.getEString(), \"dockerPort\", \"2376\", 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_UsePrivateIp(), ecorePackage.getEString(), \"usePrivateIp\", null, 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_Image(), ecorePackage.getEString(), \"image\", null, 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machinemicrosofthypervEClass, Machinemicrosofthyperv.class, \"Machinemicrosofthyperv\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachinemicrosofthyperv_VirtualSwitch(), ecorePackage.getEString(), \"virtualSwitch\", null, 0, 1, Machinemicrosofthyperv.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosofthyperv_Boot2dockerURL(), ecorePackage.getEString(), \"boot2dockerURL\", null, 0, 1, Machinemicrosofthyperv.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosofthyperv_DiskSize(), ecorePackage.getEBigInteger(), \"diskSize\", \"20000\", 0, 1, Machinemicrosofthyperv.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosofthyperv_StaticMacAddress(), theInfrastructurePackage.getMac(), \"staticMacAddress\", null, 0, 1, Machinemicrosofthyperv.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosofthyperv_VlanId(), ecorePackage.getEString(), \"vlanId\", null, 0, 1, Machinemicrosofthyperv.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machineopenstackEClass, Machineopenstack.class, \"Machineopenstack\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachineopenstack_FlavorId(), ecorePackage.getEString(), \"flavorId\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_FlavorName(), ecorePackage.getEString(), \"flavorName\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_ImageId(), ecorePackage.getEString(), \"imageId\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_ImageName(), ecorePackage.getEString(), \"imageName\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_AuthUrl(), ecorePackage.getEString(), \"authUrl\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_Username(), ecorePackage.getEString(), \"username\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_Password(), ecorePackage.getEString(), \"password\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_TenantName(), ecorePackage.getEString(), \"tenantName\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_TenantId(), ecorePackage.getEString(), \"tenantId\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_Region(), ecorePackage.getEString(), \"region\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_EndpointType(), ecorePackage.getEString(), \"endpointType\", \"publicURL\", 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_NetId(), ecorePackage.getEString(), \"netId\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_NetName(), ecorePackage.getEString(), \"netName\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_SecGroups(), ecorePackage.getEString(), \"secGroups\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_FloatingIpPool(), ecorePackage.getEString(), \"floatingIpPool\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_ActiveTimeOut(), ecorePackage.getEBigInteger(), \"activeTimeOut\", \"200\", 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_AvailabilityZone(), ecorePackage.getEString(), \"availabilityZone\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_DomainId(), ecorePackage.getEString(), \"domainId\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_DomainName(), ecorePackage.getEString(), \"domainName\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_Insecure(), ecorePackage.getEBoolean(), \"insecure\", \"false\", 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_IpVersion(), ecorePackage.getEBigInteger(), \"ipVersion\", \"4\", 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_KeypairName(), ecorePackage.getEString(), \"keypairName\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_PrivateKeyFile(), ecorePackage.getEString(), \"privateKeyFile\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_SshPort(), ecorePackage.getEBigInteger(), \"sshPort\", \"22\", 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_SshUser(), ecorePackage.getEString(), \"sshUser\", \"root\", 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machinerackspaceEClass, Machinerackspace.class, \"Machinerackspace\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachinerackspace_Username(), ecorePackage.getEString(), \"username\", null, 0, 1, Machinerackspace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinerackspace_ApiKey(), ecorePackage.getEString(), \"apiKey\", null, 0, 1, Machinerackspace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinerackspace_Region(), ecorePackage.getEString(), \"region\", null, 0, 1, Machinerackspace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinerackspace_EndPointType(), ecorePackage.getEString(), \"endPointType\", \"publicURL\", 0, 1, Machinerackspace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinerackspace_ImageId(), ecorePackage.getEString(), \"imageId\", \"59a3fadd-93e7-4674-886a-64883e17115f\", 0, 1, Machinerackspace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinerackspace_FlavorId(), ecorePackage.getEString(), \"flavorId\", \"general1-1\", 0, 1, Machinerackspace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinerackspace_SshUser(), ecorePackage.getEString(), \"sshUser\", \"root\", 0, 1, Machinerackspace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinerackspace_SshPort(), ecorePackage.getEBigInteger(), \"sshPort\", \"22\", 0, 1, Machinerackspace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinerackspace_DockerInstall(), ecorePackage.getEBoolean(), \"dockerInstall\", \"true\", 0, 1, Machinerackspace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machinevirtualboxEClass, Machinevirtualbox.class, \"Machinevirtualbox\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachinevirtualbox_Boot2dockerURL(), ecorePackage.getEString(), \"boot2dockerURL\", null, 0, 1, Machinevirtualbox.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevirtualbox_DiskSize(), ecorePackage.getEBigInteger(), \"diskSize\", \"20000\", 0, 1, Machinevirtualbox.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevirtualbox_HostDNSResolver(), ecorePackage.getEBoolean(), \"hostDNSResolver\", \"false\", 0, 1, Machinevirtualbox.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevirtualbox_ImportBoot2DockerVM(), ecorePackage.getEString(), \"importBoot2DockerVM\", null, 0, 1, Machinevirtualbox.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevirtualbox_HostOnlyCIDR(), ecorePackage.getEString(), \"hostOnlyCIDR\", \"192.168.99.1/24\", 0, 1, Machinevirtualbox.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevirtualbox_HostOnlyNICType(), ecorePackage.getEString(), \"hostOnlyNICType\", \"82540EM\", 0, 1, Machinevirtualbox.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevirtualbox_HostOnlyNICPromisc(), ecorePackage.getEString(), \"hostOnlyNICPromisc\", \"deny\", 0, 1, Machinevirtualbox.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevirtualbox_NoShare(), ecorePackage.getEBoolean(), \"noShare\", \"false\", 0, 1, Machinevirtualbox.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevirtualbox_NoDNSProxy(), ecorePackage.getEBoolean(), \"noDNSProxy\", \"false\", 0, 1, Machinevirtualbox.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevirtualbox_NoVTXCheck(), ecorePackage.getEBoolean(), \"noVTXCheck\", \"false\", 0, 1, Machinevirtualbox.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevirtualbox_ShareFolder(), ecorePackage.getEString(), \"shareFolder\", null, 0, 1, Machinevirtualbox.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machinevmwarefusionEClass, Machinevmwarefusion.class, \"Machinevmwarefusion\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachinevmwarefusion_Boot2dockerURL(), ecorePackage.getEString(), \"boot2dockerURL\", null, 0, 1, Machinevmwarefusion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarefusion_DiskSize(), ecorePackage.getEBigInteger(), \"diskSize\", \"20000\", 0, 1, Machinevmwarefusion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarefusion_MemorySize(), ecorePackage.getEBigInteger(), \"memorySize\", \"1024\", 0, 1, Machinevmwarefusion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarefusion_NoShare(), ecorePackage.getEBoolean(), \"noShare\", \"false\", 0, 1, Machinevmwarefusion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machinevmwarevcloudairEClass, Machinevmwarevcloudair.class, \"Machinevmwarevcloudair\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachinevmwarevcloudair_Username(), ecorePackage.getEString(), \"username\", null, 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_Password(), ecorePackage.getEString(), \"password\", null, 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_Catalog(), ecorePackage.getEString(), \"catalog\", \"Public Catalog\", 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_CatalogItem(), ecorePackage.getEString(), \"catalogItem\", \"Ubuntu Server 12.04 LTS (amd64 20140927)\", 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_ComputeId(), ecorePackage.getEString(), \"computeId\", null, 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_CpuCount(), ecorePackage.getEBigInteger(), \"cpuCount\", \"1\", 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_DockerPort(), ecorePackage.getEBigInteger(), \"dockerPort\", \"2376\", 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_Edgegateway(), ecorePackage.getEString(), \"edgegateway\", \"&lt;vdcid>\", 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_MemorySize(), ecorePackage.getEBigInteger(), \"memorySize\", \"2048\", 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_VappName(), ecorePackage.getEString(), \"vappName\", \"&lt;autogenerated>\", 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_Orgvdcnetwork(), ecorePackage.getEString(), \"orgvdcnetwork\", \"&lt;vdcid>-default-routed\", 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_Provision(), ecorePackage.getEBoolean(), \"provision\", \"true\", 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_PublicIp(), ecorePackage.getEString(), \"publicIp\", null, 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_SshPort(), ecorePackage.getEBigInteger(), \"sshPort\", \"22\", 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_VdcId(), ecorePackage.getEString(), \"vdcId\", null, 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machinevmwarevsphereEClass, Machinevmwarevsphere.class, \"Machinevmwarevsphere\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachinevmwarevsphere_Username(), ecorePackage.getEString(), \"username\", null, 0, 1, Machinevmwarevsphere.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevsphere_Password(), ecorePackage.getEString(), \"password\", null, 0, 1, Machinevmwarevsphere.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevsphere_Boot2dockerURL(), ecorePackage.getEString(), \"boot2dockerURL\", null, 0, 1, Machinevmwarevsphere.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevsphere_ComputeIp(), ecorePackage.getEString(), \"computeIp\", null, 0, 1, Machinevmwarevsphere.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevsphere_CpuCount(), ecorePackage.getEBigInteger(), \"cpuCount\", \"2\", 0, 1, Machinevmwarevsphere.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevsphere_Datacenter(), ecorePackage.getEString(), \"datacenter\", null, 0, 1, Machinevmwarevsphere.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevsphere_Datastore(), ecorePackage.getEString(), \"datastore\", null, 0, 1, Machinevmwarevsphere.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevsphere_DiskSize(), ecorePackage.getEBigInteger(), \"diskSize\", \"20000\", 0, 1, Machinevmwarevsphere.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevsphere_MemorySize(), ecorePackage.getEBigInteger(), \"memorySize\", \"2048\", 0, 1, Machinevmwarevsphere.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevsphere_Network(), ecorePackage.getEString(), \"network\", null, 0, 1, Machinevmwarevsphere.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevsphere_Pool(), ecorePackage.getEString(), \"pool\", null, 0, 1, Machinevmwarevsphere.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevsphere_Vcenter(), ecorePackage.getEString(), \"vcenter\", null, 0, 1, Machinevmwarevsphere.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machineexoscaleEClass, Machineexoscale.class, \"Machineexoscale\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachineexoscale_Url(), ecorePackage.getEString(), \"url\", \"https://api.exoscale.ch/compute\", 0, 1, Machineexoscale.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineexoscale_ApiKey(), ecorePackage.getEString(), \"apiKey\", null, 0, 1, Machineexoscale.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineexoscale_ApiSecretKey(), ecorePackage.getEString(), \"apiSecretKey\", null, 0, 1, Machineexoscale.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineexoscale_InstanceProfile(), ecorePackage.getEString(), \"instanceProfile\", \"small\", 0, 1, Machineexoscale.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineexoscale_Image(), ecorePackage.getEString(), \"image\", \"ubuntu-16.04\", 0, 1, Machineexoscale.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineexoscale_SecurityGroup(), ecorePackage.getEString(), \"securityGroup\", null, 0, 1, Machineexoscale.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineexoscale_AvailabilityZone(), ecorePackage.getEString(), \"availabilityZone\", null, 0, 1, Machineexoscale.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineexoscale_SshUser(), ecorePackage.getEString(), \"sshUser\", \"ubuntu\", 0, 1, Machineexoscale.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineexoscale_UserData(), ecorePackage.getEString(), \"userData\", null, 0, 1, Machineexoscale.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineexoscale_AffinityGroup(), ecorePackage.getEString(), \"affinityGroup\", \"docker-machine\", 0, 1, Machineexoscale.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machinegrid5000EClass, Machinegrid5000.class, \"Machinegrid5000\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachinegrid5000_Username(), ecorePackage.getEString(), \"username\", null, 0, 1, Machinegrid5000.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegrid5000_Password(), ecorePackage.getEString(), \"password\", null, 0, 1, Machinegrid5000.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegrid5000_Site(), ecorePackage.getEString(), \"site\", null, 0, 1, Machinegrid5000.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegrid5000_Walltime(), ecorePackage.getEString(), \"walltime\", null, 0, 1, Machinegrid5000.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegrid5000_SshPrivateKey(), ecorePackage.getEString(), \"sshPrivateKey\", null, 0, 1, Machinegrid5000.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegrid5000_SshPublicKey(), ecorePackage.getEString(), \"sshPublicKey\", null, 0, 1, Machinegrid5000.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegrid5000_Image(), ecorePackage.getEString(), \"image\", null, 0, 1, Machinegrid5000.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegrid5000_ResourceProperties(), ecorePackage.getEString(), \"resourceProperties\", null, 0, 1, Machinegrid5000.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegrid5000_UseJobReservation(), ecorePackage.getEString(), \"useJobReservation\", null, 0, 1, Machinegrid5000.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegrid5000_HostToProvision(), ecorePackage.getEString(), \"hostToProvision\", null, 0, 1, Machinegrid5000.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(clusterEClass, Cluster.class, \"Cluster\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getCluster_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Cluster.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Initialize enums and add enum literals\n\t\tinitEEnum(modeEEnum, Mode.class, \"Mode\");\n\t\taddEEnumLiteral(modeEEnum, Mode.READ_WRITE);\n\t\taddEEnumLiteral(modeEEnum, Mode.READ);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\n\t\t// Create annotations\n\t\t// http://www.eclipse.org/emf/2002/Ecore\n\t\tcreateEcoreAnnotations();\n\t}", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tcompoundCmdEClass.getESuperTypes().add(this.getCmd());\n\t\txCmdEClass.getESuperTypes().add(this.getCmd());\n\t\tbyteCmdEClass.getESuperTypes().add(this.getCmd());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(cmdEClass, Cmd.class, \"Cmd\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getCmd_Priority(), this.getPRIORITY(), \"priority\", null, 0, 1, Cmd.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getCmd_Stamp(), ecorePackage.getELong(), \"stamp\", null, 0, 1, Cmd.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(compoundCmdEClass, CompoundCmd.class, \"CompoundCmd\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getCompoundCmd_Children(), this.getCmd(), null, \"children\", null, 0, -1, CompoundCmd.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tEOperation op = addEOperation(compoundCmdEClass, null, \"add\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, this.getCmd(), \"cmd\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\top = addEOperation(compoundCmdEClass, null, \"add\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEInt(), \"index\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, this.getCmd(), \"cmd\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\top = addEOperation(compoundCmdEClass, null, \"queue\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, this.getCmd(), \"cmd\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(compoundCmdEClass, null, \"pop\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\top = addEOperation(compoundCmdEClass, null, \"remove\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEInt(), \"index\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\top = addEOperation(compoundCmdEClass, null, \"remove\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, this.getCmd(), \"cmd\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(compoundCmdEClass, null, \"drop\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(xCmdEClass, XCmd.class, \"XCmd\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getXCmd_Obj(), ecorePackage.getEJavaObject(), \"obj\", null, 0, 1, XCmd.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(byteCmdEClass, ByteCmd.class, \"ByteCmd\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getByteCmd_Message(), ecorePackage.getEByteArray(), \"message\", null, 0, 1, ByteCmd.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Initialize enums and add enum literals\n\t\tinitEEnum(priorityEEnum, net.sf.xqz.model.cmd.PRIORITY.class, \"PRIORITY\");\n\t\taddEEnumLiteral(priorityEEnum, net.sf.xqz.model.cmd.PRIORITY.LOWEST);\n\t\taddEEnumLiteral(priorityEEnum, net.sf.xqz.model.cmd.PRIORITY.LOW);\n\t\taddEEnumLiteral(priorityEEnum, net.sf.xqz.model.cmd.PRIORITY.MEDIUM);\n\t\taddEEnumLiteral(priorityEEnum, net.sf.xqz.model.cmd.PRIORITY.HIGH);\n\t\taddEEnumLiteral(priorityEEnum, net.sf.xqz.model.cmd.PRIORITY.HIGHEST);\n\t\taddEEnumLiteral(priorityEEnum, net.sf.xqz.model.cmd.PRIORITY.NONE);\n\t\taddEEnumLiteral(priorityEEnum, net.sf.xqz.model.cmd.PRIORITY.VITAL);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "public void initializePackageContents()\r\n {\r\n if (isInitialized) return;\r\n isInitialized = true;\r\n\r\n // Initialize package\r\n setName(eNAME);\r\n setNsPrefix(eNS_PREFIX);\r\n setNsURI(eNS_URI);\r\n\r\n // Create type parameters\r\n\r\n // Set bounds for type parameters\r\n\r\n // Add supertypes to classes\r\n bookEClass.getESuperTypes().add(this.getProduct());\r\n dvdEClass.getESuperTypes().add(this.getProduct());\r\n\r\n // Initialize classes and features; add operations and parameters\r\n initEClass(productEClass, Product.class, \"Product\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEAttribute(getProduct_Price(), ecorePackage.getEDouble(), \"price\", null, 0, 1, Product.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEAttribute(getProduct_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Product.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEAttribute(getProduct_Id(), ecorePackage.getEString(), \"id\", null, 0, 1, Product.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEReference(getProduct_Producer(), this.getProducer(), this.getProducer_Products(), \"producer\", null, 1, 1, Product.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEReference(getProduct_Wishlists(), this.getWishlist(), this.getWishlist_Products(), \"wishlists\", null, 0, -1, Product.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEReference(getProduct_OfferedBy(), this.getSeller(), this.getSeller_AllProductsToSell(), \"offeredBy\", null, 0, -1, Product.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n initEClass(customerEClass, Customer.class, \"Customer\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEReference(getCustomer_AllBoughtProducts(), this.getProduct(), null, \"allBoughtProducts\", null, 0, -1, Customer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEAttribute(getCustomer_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Customer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEAttribute(getCustomer_Age(), ecorePackage.getEInt(), \"age\", null, 0, 1, Customer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEAttribute(getCustomer_Id(), ecorePackage.getEString(), \"id\", null, 0, 1, Customer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEReference(getCustomer_Wishlists(), this.getWishlist(), null, \"wishlists\", null, 0, -1, Customer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEAttribute(getCustomer_Username(), ecorePackage.getEString(), \"username\", null, 0, 1, Customer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n initEClass(producerEClass, Producer.class, \"Producer\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEAttribute(getProducer_Id(), ecorePackage.getEString(), \"id\", null, 0, 1, Producer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEAttribute(getProducer_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Producer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEReference(getProducer_Products(), this.getProduct(), this.getProduct_Producer(), \"products\", null, 0, -1, Producer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n initEClass(storeEClass, Store.class, \"Store\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEReference(getStore_Customers(), this.getCustomer(), null, \"customers\", null, 0, -1, Store.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEReference(getStore_Products(), this.getProduct(), null, \"products\", null, 0, -1, Store.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEReference(getStore_Producers(), this.getProducer(), null, \"producers\", null, 0, -1, Store.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEReference(getStore_Sellers(), this.getSeller(), null, \"sellers\", null, 0, 1, Store.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n initEClass(bookEClass, Book.class, \"Book\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEAttribute(getBook_Author(), ecorePackage.getEString(), \"author\", null, 0, 1, Book.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n initEClass(dvdEClass, de.upb.examples.reengineering.store.model.DVD.class, \"DVD\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEAttribute(getDVD_Interpret(), ecorePackage.getEString(), \"interpret\", null, 0, 1, de.upb.examples.reengineering.store.model.DVD.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n initEClass(wishlistEClass, Wishlist.class, \"Wishlist\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEReference(getWishlist_Products(), this.getProduct(), this.getProduct_Wishlists(), \"products\", null, 0, -1, Wishlist.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n initEClass(sellerEClass, Seller.class, \"Seller\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n initEAttribute(getSeller_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Seller.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEAttribute(getSeller_Id(), ecorePackage.getEString(), \"id\", null, 0, 1, Seller.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEAttribute(getSeller_Username(), ecorePackage.getEString(), \"username\", null, 0, 1, Seller.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEReference(getSeller_AllProductsToSell(), this.getProduct(), this.getProduct_OfferedBy(), \"allProductsToSell\", null, 0, -1, Seller.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEReference(getSeller_EReference0(), this.getSeller(), null, \"EReference0\", null, 0, 1, Seller.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n initEReference(getSeller_SoldProducts(), this.getProduct(), null, \"soldProducts\", null, 0, -1, Seller.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n // Create resource\r\n createResource(eNS_URI);\r\n }", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tXMLTypePackage theXMLTypePackage = (XMLTypePackage)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(controlEClass, Control.class, \"Control\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getControl_Midi(), this.getMidi(), null, \"midi\", null, 1, 1, Control.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getControl_Background(), theXMLTypePackage.getString(), \"background\", null, 0, 1, Control.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getControl_Centered(), theXMLTypePackage.getString(), \"centered\", null, 0, 1, Control.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getControl_Color(), theXMLTypePackage.getString(), \"color\", null, 0, 1, Control.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getControl_H(), theXMLTypePackage.getString(), \"h\", null, 0, 1, Control.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getControl_Inverted(), theXMLTypePackage.getString(), \"inverted\", null, 0, 1, Control.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getControl_InvertedX(), theXMLTypePackage.getString(), \"invertedX\", null, 0, 1, Control.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getControl_InvertedY(), theXMLTypePackage.getString(), \"invertedY\", null, 0, 1, Control.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getControl_LocalOff(), theXMLTypePackage.getString(), \"localOff\", null, 0, 1, Control.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getControl_Name(), theXMLTypePackage.getString(), \"name\", null, 0, 1, Control.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getControl_Number(), theXMLTypePackage.getString(), \"number\", null, 0, 1, Control.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getControl_NumberX(), theXMLTypePackage.getString(), \"numberX\", null, 0, 1, Control.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getControl_NumberY(), theXMLTypePackage.getString(), \"numberY\", null, 0, 1, Control.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getControl_OscCs(), theXMLTypePackage.getString(), \"oscCs\", null, 0, 1, Control.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getControl_Outline(), theXMLTypePackage.getString(), \"outline\", null, 0, 1, Control.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getControl_Response(), theXMLTypePackage.getString(), \"response\", null, 0, 1, Control.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getControl_Scalef(), theXMLTypePackage.getString(), \"scalef\", null, 0, 1, Control.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getControl_Scalet(), theXMLTypePackage.getString(), \"scalet\", null, 0, 1, Control.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getControl_Seconds(), theXMLTypePackage.getString(), \"seconds\", null, 0, 1, Control.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getControl_Size(), theXMLTypePackage.getString(), \"size\", null, 0, 1, Control.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getControl_Text(), theXMLTypePackage.getString(), \"text\", null, 0, 1, Control.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getControl_Type(), theXMLTypePackage.getString(), \"type\", null, 0, 1, Control.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getControl_W(), theXMLTypePackage.getString(), \"w\", null, 0, 1, Control.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getControl_X(), theXMLTypePackage.getString(), \"x\", null, 0, 1, Control.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getControl_Y(), theXMLTypePackage.getString(), \"y\", null, 0, 1, Control.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(layoutEClass, Layout.class, \"Layout\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getLayout_Tabpage(), this.getTabpage(), null, \"tabpage\", null, 1, -1, Layout.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getLayout_Mode(), theXMLTypePackage.getString(), \"mode\", null, 0, 1, Layout.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getLayout_Orientation(), theXMLTypePackage.getString(), \"orientation\", null, 0, 1, Layout.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getLayout_Version(), theXMLTypePackage.getString(), \"version\", null, 0, 1, Layout.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(midiEClass, Midi.class, \"Midi\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMidi_Channel(), theXMLTypePackage.getString(), \"channel\", null, 0, 1, Midi.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMidi_Data1(), theXMLTypePackage.getString(), \"data1\", null, 0, 1, Midi.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMidi_Data2f(), theXMLTypePackage.getString(), \"data2f\", null, 0, 1, Midi.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMidi_Data2t(), theXMLTypePackage.getString(), \"data2t\", null, 0, 1, Midi.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMidi_Type(), theXMLTypePackage.getString(), \"type\", null, 0, 1, Midi.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMidi_Var(), theXMLTypePackage.getString(), \"var\", null, 0, 1, Midi.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(tabpageEClass, Tabpage.class, \"Tabpage\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getTabpage_Control(), this.getControl(), null, \"control\", null, 1, -1, Tabpage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getTabpage_Name(), theXMLTypePackage.getString(), \"name\", null, 0, 1, Tabpage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(topEClass, net.sf.smbt.touchosc.touchosc.TOP.class, \"TOP\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getTOP_Layout(), this.getLayout(), null, \"layout\", null, 1, 1, net.sf.smbt.touchosc.touchosc.TOP.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\n\t\t// Create annotations\n\t\t// http:///org/eclipse/emf/ecore/util/ExtendedMetaData\n\t\tcreateExtendedMetaDataAnnotations();\n\t}", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tBACIPropertiesPackage theBACIPropertiesPackage = (BACIPropertiesPackage)EPackage.Registry.INSTANCE.getEPackage(BACIPropertiesPackage.eNS_URI);\n\n\t\t// Add subpackages\n\t\tgetESubpackages().add(theBACIPropertiesPackage);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(characteristicComponentEClass, CharacteristicComponent.class, \"CharacteristicComponent\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getCharacteristicComponent_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, CharacteristicComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getCharacteristicComponent_Module(), ecorePackage.getEString(), \"module\", null, 1, 1, CharacteristicComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getCharacteristicComponent_Prefix(), ecorePackage.getEString(), \"prefix\", null, 0, 1, CharacteristicComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getCharacteristicComponent_Container(), ecorePackage.getEString(), \"container\", null, 1, 1, CharacteristicComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCharacteristicComponent_Actions(), this.getAction(), null, \"actions\", null, 0, -1, CharacteristicComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCharacteristicComponent_Attributes(), this.getAttribute(), null, \"attributes\", null, 0, -1, CharacteristicComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCharacteristicComponent_Properties(), this.getProperty(), null, \"properties\", null, 0, -1, CharacteristicComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCharacteristicComponent_UsedBaciTypes(), this.getUsedBaciTypes(), null, \"usedBaciTypes\", null, 1, 1, CharacteristicComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCharacteristicComponent_UsedDevIOs(), this.getUsedDevIOs(), null, \"usedDevIOs\", null, 1, 1, CharacteristicComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCharacteristicComponent_ComponentInstances(), this.getComponentInstances(), this.getComponentInstances_ContainingCaracteristicComponent(), \"componentInstances\", null, 1, 1, CharacteristicComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(actionEClass, Action.class, \"Action\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getAction_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, Action.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAction_Type(), ecorePackage.getEString(), \"type\", \"void\", 0, 1, Action.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getAction_Parameters(), this.getParameter(), null, \"parameters\", null, 0, -1, Action.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(parameterEClass, Parameter.class, \"Parameter\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getParameter_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, Parameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getParameter_Type(), ecorePackage.getEString(), \"type\", null, 1, 1, Parameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(attributeEClass, Attribute.class, \"Attribute\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getAttribute_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAttribute_Type(), ecorePackage.getEString(), \"type\", null, 0, 1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAttribute_Required(), ecorePackage.getEBoolean(), \"required\", null, 0, 1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAttribute_DefaultValue(), ecorePackage.getEString(), \"defaultValue\", null, 0, 1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(propertyEClass, Property.class, \"Property\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getProperty_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, Property.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getProperty_BaciType(), this.getBaciType(), null, \"baciType\", null, 1, 1, Property.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getProperty_DevIO(), this.getDevIO(), null, \"devIO\", null, 1, 1, Property.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(usedDevIOsEClass, UsedDevIOs.class, \"UsedDevIOs\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getUsedDevIOs_DevIOs(), this.getDevIO(), null, \"devIOs\", null, 0, -1, UsedDevIOs.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(devIOEClass, DevIO.class, \"DevIO\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getDevIO_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, DevIO.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getDevIO_RequiredLibraries(), ecorePackage.getEString(), \"requiredLibraries\", null, 0, 1, DevIO.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getDevIO_DevIOVariables(), this.getDevIOVariable(), null, \"devIOVariables\", null, 0, -1, DevIO.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(devIOVariableEClass, DevIOVariable.class, \"DevIOVariable\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getDevIOVariable_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, DevIOVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getDevIOVariable_Type(), ecorePackage.getEString(), \"type\", null, 0, 1, DevIOVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getDevIOVariable_IsRead(), ecorePackage.getEBoolean(), \"isRead\", null, 0, 1, DevIOVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getDevIOVariable_IsWrite(), ecorePackage.getEBoolean(), \"isWrite\", null, 0, 1, DevIOVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getDevIOVariable_IsPropertySpecific(), ecorePackage.getEBoolean(), \"isPropertySpecific\", null, 0, 1, DevIOVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(usedBaciTypesEClass, UsedBaciTypes.class, \"UsedBaciTypes\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getUsedBaciTypes_BaciTypes(), this.getBaciType(), null, \"baciTypes\", null, 0, -1, UsedBaciTypes.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(baciTypeEClass, BaciType.class, \"BaciType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getBaciType_Name(), ecorePackage.getEString(), \"name\", \"\", 1, 1, BaciType.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getBaciType_AccessType(), this.getAccessType(), \"accessType\", null, 0, 1, BaciType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getBaciType_BasicType(), this.getBasicType(), \"basicType\", null, 0, 1, BaciType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getBaciType_SeqType(), this.getSeqType(), \"seqType\", null, 0, 1, BaciType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(componentInstancesEClass, ComponentInstances.class, \"ComponentInstances\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getComponentInstances_Instances(), this.getInstance(), this.getInstance_ContainingComponentInstances(), \"instances\", null, 1, -1, ComponentInstances.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponentInstances_ContainingCaracteristicComponent(), this.getCharacteristicComponent(), this.getCharacteristicComponent_ComponentInstances(), \"containingCaracteristicComponent\", null, 1, 1, ComponentInstances.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(instanceEClass, Instance.class, \"Instance\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getInstance_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, Instance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInstance_ContainingComponentInstances(), this.getComponentInstances(), this.getComponentInstances_Instances(), \"containingComponentInstances\", null, 1, 1, Instance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInstance_AttributeValuesContainer(), this.getAttributeValues(), this.getAttributeValues_ContainingInstance(), \"attributeValuesContainer\", null, 1, 1, Instance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInstance_CharacteristicValuesContainer(), this.getCharacteristicValues(), this.getCharacteristicValues_ContainingInstance(), \"characteristicValuesContainer\", null, 0, -1, Instance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInstance_AutoStart(), ecorePackage.getEBoolean(), \"autoStart\", null, 0, 1, Instance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInstance_Default(), ecorePackage.getEBoolean(), \"default\", null, 0, 1, Instance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(attributeValuesEClass, AttributeValues.class, \"AttributeValues\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAttributeValues_InstanceAttributes(), this.getAttributeValue(), null, \"instanceAttributes\", null, 0, -1, AttributeValues.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getAttributeValues_ContainingInstance(), this.getInstance(), this.getInstance_AttributeValuesContainer(), \"containingInstance\", null, 0, 1, AttributeValues.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(attributeValueEClass, AttributeValue.class, \"AttributeValue\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getAttributeValue_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, AttributeValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getAttributeValue_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, AttributeValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(characteristicValuesEClass, CharacteristicValues.class, \"CharacteristicValues\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getCharacteristicValues_PropertyName(), ecorePackage.getEString(), \"propertyName\", null, 0, 1, CharacteristicValues.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCharacteristicValues_InstanceCharacteristics(), this.getCharacteristicValue(), null, \"instanceCharacteristics\", null, 0, -1, CharacteristicValues.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getCharacteristicValues_ContainingInstance(), this.getInstance(), this.getInstance_CharacteristicValuesContainer(), \"containingInstance\", null, 0, 1, CharacteristicValues.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(characteristicValueEClass, CharacteristicValue.class, \"CharacteristicValue\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getCharacteristicValue_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, CharacteristicValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getCharacteristicValue_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, CharacteristicValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(propertyDefinitionEClass, PropertyDefinition.class, \"PropertyDefinition\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\t// Initialize enums and add enum literals\n\t\tinitEEnum(accessTypeEEnum, AccessType.class, \"AccessType\");\n\t\taddEEnumLiteral(accessTypeEEnum, AccessType.RO);\n\t\taddEEnumLiteral(accessTypeEEnum, AccessType.RW);\n\n\t\tinitEEnum(basicTypeEEnum, BasicType.class, \"BasicType\");\n\t\taddEEnumLiteral(basicTypeEEnum, BasicType.BOOLEAN);\n\t\taddEEnumLiteral(basicTypeEEnum, BasicType.DOUBLE);\n\t\taddEEnumLiteral(basicTypeEEnum, BasicType.FLOAT);\n\t\taddEEnumLiteral(basicTypeEEnum, BasicType.LONG);\n\t\taddEEnumLiteral(basicTypeEEnum, BasicType.LONG_LONG);\n\t\taddEEnumLiteral(basicTypeEEnum, BasicType.ULONG);\n\t\taddEEnumLiteral(basicTypeEEnum, BasicType.ULONG_LONG);\n\t\taddEEnumLiteral(basicTypeEEnum, BasicType.PATTERN);\n\t\taddEEnumLiteral(basicTypeEEnum, BasicType.STRING);\n\n\t\tinitEEnum(seqTypeEEnum, SeqType.class, \"SeqType\");\n\t\taddEEnumLiteral(seqTypeEEnum, SeqType.NOT_SEQ);\n\t\taddEEnumLiteral(seqTypeEEnum, SeqType.SEQ);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "public void initializePackageContents()\n {\n if (isInitialized) return;\n isInitialized = true;\n\n // Initialize package\n setName(eNAME);\n setNsPrefix(eNS_PREFIX);\n setNsURI(eNS_URI);\n\n // Create type parameters\n\n // Set bounds for type parameters\n\n // Add supertypes to classes\n valueEClass.getESuperTypes().add(this.getexpression());\n ifStatementEClass.getESuperTypes().add(this.getexpression());\n operationEClass.getESuperTypes().add(this.getexpression());\n\n // Initialize classes and features; add operations and parameters\n initEClass(modelEClass, Model.class, \"Model\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getModel_Spec(), this.getStatement(), null, \"spec\", null, 0, -1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(statementEClass, Statement.class, \"Statement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getStatement_Def(), this.getdefinition(), null, \"def\", null, 0, 1, Statement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getStatement_Out(), this.getout(), null, \"out\", null, 0, 1, Statement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getStatement_In(), this.getin(), null, \"in\", null, 0, 1, Statement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getStatement_Comment(), ecorePackage.getEString(), \"comment\", null, 0, 1, Statement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(definitionEClass, definition.class, \"definition\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getdefinition_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, definition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getdefinition_ParamList(), this.getparamList(), null, \"paramList\", null, 0, 1, definition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getdefinition_Type(), ecorePackage.getEString(), \"type\", null, 0, 1, definition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getdefinition_Expression(), this.gettypedExpression(), null, \"expression\", null, 0, 1, definition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(paramListEClass, paramList.class, \"paramList\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getparamList_Params(), ecorePackage.getEString(), \"params\", null, 0, -1, paramList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getparamList_Types(), ecorePackage.getEString(), \"types\", null, 0, -1, paramList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(outEClass, out.class, \"out\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getout_Exp(), this.gettypedExpression(), null, \"exp\", null, 0, 1, out.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getout_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, out.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(inEClass, in.class, \"in\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getin_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, in.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getin_Type(), ecorePackage.getEString(), \"type\", null, 0, 1, in.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(typedExpressionEClass, typedExpression.class, \"typedExpression\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(gettypedExpression_Exp(), this.getexpression(), null, \"exp\", null, 0, 1, typedExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(gettypedExpression_Type(), ecorePackage.getEString(), \"type\", null, 0, 1, typedExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(expressionEClass, expression.class, \"expression\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(valueEClass, value.class, \"value\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getvalue_Op(), ecorePackage.getEString(), \"op\", null, 0, 1, value.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getvalue_Exp(), this.gettypedExpression(), null, \"exp\", null, 0, 1, value.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getvalue_Statements(), this.getStatement(), null, \"statements\", null, 0, -1, value.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getvalue_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, value.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getvalue_Args(), this.getarg(), null, \"args\", null, 0, -1, value.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(argEClass, arg.class, \"arg\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getarg_Arg(), ecorePackage.getEString(), \"arg\", null, 0, 1, arg.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getarg_Exp(), this.gettypedExpression(), null, \"exp\", null, 0, 1, arg.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(ifStatementEClass, IfStatement.class, \"IfStatement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getIfStatement_If(), this.gettypedExpression(), null, \"if\", null, 0, 1, IfStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getIfStatement_Then(), this.gettypedExpression(), null, \"then\", null, 0, 1, IfStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getIfStatement_Else(), this.gettypedExpression(), null, \"else\", null, 0, 1, IfStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(operationEClass, Operation.class, \"Operation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getOperation_Left(), this.getexpression(), null, \"left\", null, 0, 1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getOperation_Op(), ecorePackage.getEString(), \"op\", null, 0, 1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getOperation_Right(), this.getvalue(), null, \"right\", null, 0, 1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n // Create resource\n createResource(eNS_URI);\n }", "public void initializePackageContents()\n {\n if (isInitialized) return;\n isInitialized = true;\n\n // Initialize package\n setName(eNAME);\n setNsPrefix(eNS_PREFIX);\n setNsURI(eNS_URI);\n\n // Create type parameters\n\n // Set bounds for type parameters\n\n // Add supertypes to classes\n cssOtherTopLevelDeclarationEClass.getESuperTypes().add(this.getCSSTopLevelStatement());\n mediaDeclarationEClass.getESuperTypes().add(this.getCSSOtherTopLevelDeclaration());\n pageDeclarationEClass.getESuperTypes().add(this.getCSSOtherTopLevelDeclaration());\n namespaceDeclarationEClass.getESuperTypes().add(this.getCSSOtherTopLevelDeclaration());\n fontFaceDeclarationEClass.getESuperTypes().add(this.getCSSOtherTopLevelDeclaration());\n ruleSetEClass.getESuperTypes().add(this.getCSSTopLevelStatement());\n ruleSetEClass.getESuperTypes().add(this.getMediaDeclarationMembers());\n propertyDeclarationEClass.getESuperTypes().add(this.getMediaDeclarationMembers());\n knownPropertyDeclarationEClass.getESuperTypes().add(this.getPropertyDeclaration());\n unrecognizedPropertyDeclarationEClass.getESuperTypes().add(this.getPropertyDeclaration());\n typeSelectorEClass.getESuperTypes().add(this.getSimpleSelector());\n universalSelectorEClass.getESuperTypes().add(this.getSimpleSelector());\n attributeSelectorEClass.getESuperTypes().add(this.getSimpleSelector());\n idSelectorEClass.getESuperTypes().add(this.getSimpleSelector());\n classSelectorEClass.getESuperTypes().add(this.getSimpleSelector());\n pseudoSelectorEClass.getESuperTypes().add(this.getSimpleSelector());\n noArgsPseudoClassSelectorEClass.getESuperTypes().add(this.getPseudoSelector());\n pseudoElementSelectorEClass.getESuperTypes().add(this.getPseudoSelector());\n languagePseudoClassSelectorEClass.getESuperTypes().add(this.getPseudoSelector());\n functionalPseudoClassSelectorEClass.getESuperTypes().add(this.getPseudoSelector());\n linearArgumentEClass.getESuperTypes().add(this.getTypeArgument());\n constantArgumentEClass.getESuperTypes().add(this.getTypeArgument());\n parityArgumentEClass.getESuperTypes().add(this.getTypeArgument());\n negationSelectorEClass.getESuperTypes().add(this.getSimpleSelector());\n sizeLiteralEClass.getESuperTypes().add(this.getValueLiteral());\n stringLiteralEClass.getESuperTypes().add(this.getValueLiteral());\n colorLiteralEClass.getESuperTypes().add(this.getValueLiteral());\n componentColorLiteralEClass.getESuperTypes().add(this.getColorLiteral());\n urlLiteralEClass.getESuperTypes().add(this.getValueLiteral());\n functionCallLiteralEClass.getESuperTypes().add(this.getValueLiteral());\n descendantCombinatorEClass.getESuperTypes().add(this.getSelector());\n childCombinatorEClass.getESuperTypes().add(this.getSelector());\n adjacentSiblingCombinatorEClass.getESuperTypes().add(this.getSelector());\n generalSiblingCombinatorEClass.getESuperTypes().add(this.getSelector());\n simpleSelectorSequenceEClass.getESuperTypes().add(this.getSelector());\n universalNamespacePrefixEClass.getESuperTypes().add(this.getNamespacePrefix());\n withoutNamespacePrefixEClass.getESuperTypes().add(this.getNamespacePrefix());\n stringAttributeValueLiteralEClass.getESuperTypes().add(this.getAttributeValueLiteral());\n integerAttributeValueLiteralEClass.getESuperTypes().add(this.getAttributeValueLiteral());\n decimalAttributeValueLiteralEClass.getESuperTypes().add(this.getAttributeValueLiteral());\n integerLiteralEClass.getESuperTypes().add(this.getNumberLiteral());\n decimalLiteralEClass.getESuperTypes().add(this.getNumberLiteral());\n quantifiedSizeLiteralEClass.getESuperTypes().add(this.getSizeLiteral());\n qualifiedSizeLiteralEClass.getESuperTypes().add(this.getSizeLiteral());\n fontHeightLiteralEClass.getESuperTypes().add(this.getSizeLiteral());\n rgbColorEClass.getESuperTypes().add(this.getColorLiteral());\n namedColorEClass.getESuperTypes().add(this.getColorLiteral());\n componentRGBColorEClass.getESuperTypes().add(this.getComponentColorLiteral());\n componentRGBAlphaColorEClass.getESuperTypes().add(this.getComponentColorLiteral());\n componentHSLColorEClass.getESuperTypes().add(this.getComponentColorLiteral());\n componentHSLAlphaColorEClass.getESuperTypes().add(this.getComponentColorLiteral());\n alphaLiteralEClass.getESuperTypes().add(this.getFunctionCallLiteral());\n\n // Initialize classes and features; add operations and parameters\n initEClass(stylesheetEClass, Stylesheet.class, \"Stylesheet\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getStylesheet_CharSet(), ecorePackage.getEString(), \"charSet\", null, 0, 1, Stylesheet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getStylesheet_Imports(), this.getImportDeclaration(), null, \"imports\", null, 0, -1, Stylesheet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getStylesheet_Statements(), this.getCSSTopLevelStatement(), null, \"statements\", null, 0, -1, Stylesheet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(cssTopLevelStatementEClass, CSSTopLevelStatement.class, \"CSSTopLevelStatement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(cssOtherTopLevelDeclarationEClass, CSSOtherTopLevelDeclaration.class, \"CSSOtherTopLevelDeclaration\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(importDeclarationEClass, ImportDeclaration.class, \"ImportDeclaration\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getImportDeclaration_ImportURI(), ecorePackage.getEString(), \"importURI\", null, 0, 1, ImportDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getImportDeclaration_Url(), ecorePackage.getEString(), \"url\", null, 0, 1, ImportDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getImportDeclaration_Media(), ecorePackage.getEString(), \"media\", null, 0, -1, ImportDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(mediaDeclarationEClass, MediaDeclaration.class, \"MediaDeclaration\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getMediaDeclaration_MediaQueries(), this.getMediaQuery(), null, \"mediaQueries\", null, 0, -1, MediaDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getMediaDeclaration_Media(), this.getMediaQuery(), null, \"media\", null, 0, -1, MediaDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getMediaDeclaration_Members(), this.getMediaDeclarationMembers(), null, \"members\", null, 0, -1, MediaDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(mediaDeclarationMembersEClass, MediaDeclarationMembers.class, \"MediaDeclarationMembers\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(mediaQueryEClass, MediaQuery.class, \"MediaQuery\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getMediaQuery_Only(), ecorePackage.getEBoolean(), \"only\", null, 0, 1, MediaQuery.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getMediaQuery_Not(), ecorePackage.getEBoolean(), \"not\", null, 0, 1, MediaQuery.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getMediaQuery_MediaType(), ecorePackage.getEString(), \"mediaType\", null, 0, 1, MediaQuery.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getMediaQuery_Expressions(), this.getMediaQueryExpression(), null, \"expressions\", null, 0, -1, MediaQuery.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(mediaQueryExpressionEClass, MediaQueryExpression.class, \"MediaQueryExpression\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getMediaQueryExpression_Feature(), ecorePackage.getEString(), \"feature\", null, 0, 1, MediaQueryExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getMediaQueryExpression_Expression(), this.getValueLiteral(), null, \"expression\", null, 0, 1, MediaQueryExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(pageDeclarationEClass, PageDeclaration.class, \"PageDeclaration\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getPageDeclaration_PseudoPage(), ecorePackage.getEString(), \"pseudoPage\", null, 0, 1, PageDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getPageDeclaration_Body(), this.getRuleSetBody(), null, \"body\", null, 0, 1, PageDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(namespaceDeclarationEClass, NamespaceDeclaration.class, \"NamespaceDeclaration\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getNamespaceDeclaration_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, NamespaceDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getNamespaceDeclaration_Url(), ecorePackage.getEString(), \"url\", null, 0, 1, NamespaceDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(fontFaceDeclarationEClass, FontFaceDeclaration.class, \"FontFaceDeclaration\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getFontFaceDeclaration_Body(), this.getRuleSetBody(), null, \"body\", null, 0, 1, FontFaceDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(ruleSetEClass, RuleSet.class, \"RuleSet\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getRuleSet_Selectors(), this.getSelector(), null, \"selectors\", null, 0, -1, RuleSet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getRuleSet_Body(), this.getRuleSetBody(), null, \"body\", null, 0, 1, RuleSet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(ruleSetBodyEClass, RuleSetBody.class, \"RuleSetBody\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getRuleSetBody_Declarations(), this.getPropertyDeclaration(), null, \"declarations\", null, 0, -1, RuleSetBody.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(propertyDeclarationEClass, PropertyDeclaration.class, \"PropertyDeclaration\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getPropertyDeclaration_ValuesLists(), this.getPropertyValuesLists(), null, \"valuesLists\", null, 0, 1, PropertyDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(knownPropertyDeclarationEClass, KnownPropertyDeclaration.class, \"KnownPropertyDeclaration\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getKnownPropertyDeclaration_Name(), this.getKnownProperties(), \"name\", null, 0, 1, KnownPropertyDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(unrecognizedPropertyDeclarationEClass, UnrecognizedPropertyDeclaration.class, \"UnrecognizedPropertyDeclaration\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getUnrecognizedPropertyDeclaration_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, UnrecognizedPropertyDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(propertyValuesListsEClass, PropertyValuesLists.class, \"PropertyValuesLists\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getPropertyValuesLists_Lists(), this.getPropertyValuesList(), null, \"lists\", null, 0, -1, PropertyValuesLists.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(propertyValuesListEClass, PropertyValuesList.class, \"PropertyValuesList\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getPropertyValuesList_Values(), this.getPropertyValue(), null, \"values\", null, 0, -1, PropertyValuesList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(propertyValueEClass, PropertyValue.class, \"PropertyValue\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getPropertyValue_Value(), this.getValueLiteral(), null, \"value\", null, 0, 1, PropertyValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getPropertyValue_Important(), ecorePackage.getEBoolean(), \"important\", null, 0, 1, PropertyValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(selectorEClass, Selector.class, \"Selector\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(simpleSelectorEClass, SimpleSelector.class, \"SimpleSelector\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(typeSelectorEClass, TypeSelector.class, \"TypeSelector\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getTypeSelector_NamespacePrefix(), this.getNamespacePrefix(), null, \"namespacePrefix\", null, 0, 1, TypeSelector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getTypeSelector_Type(), ecorePackage.getEString(), \"type\", null, 0, 1, TypeSelector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(namespacePrefixEClass, NamespacePrefix.class, \"NamespacePrefix\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getNamespacePrefix_Namespace(), this.getNamespaceDeclaration(), null, \"namespace\", null, 0, 1, NamespacePrefix.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(universalSelectorEClass, UniversalSelector.class, \"UniversalSelector\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getUniversalSelector_NamespacePrefix(), this.getNamespacePrefix(), null, \"namespacePrefix\", null, 0, 1, UniversalSelector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(attributeSelectorEClass, AttributeSelector.class, \"AttributeSelector\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getAttributeSelector_Attribute(), this.getAttribute(), null, \"attribute\", null, 0, 1, AttributeSelector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getAttributeSelector_Matcher(), this.getAttributeSelectorMatchers(), \"matcher\", null, 0, 1, AttributeSelector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getAttributeSelector_Value(), this.getAttributeValueLiteral(), null, \"value\", null, 0, 1, AttributeSelector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(attributeEClass, Attribute.class, \"Attribute\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getAttribute_NamespacePrefix(), this.getNamespacePrefix(), null, \"namespacePrefix\", null, 0, 1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getAttribute_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(attributeValueLiteralEClass, AttributeValueLiteral.class, \"AttributeValueLiteral\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(idSelectorEClass, IDSelector.class, \"IDSelector\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getIDSelector_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, IDSelector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(classSelectorEClass, ClassSelector.class, \"ClassSelector\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getClassSelector_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, ClassSelector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(pseudoSelectorEClass, PseudoSelector.class, \"PseudoSelector\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(noArgsPseudoClassSelectorEClass, NoArgsPseudoClassSelector.class, \"NoArgsPseudoClassSelector\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getNoArgsPseudoClassSelector_Pseudo(), this.getNoArgsPseudos(), \"pseudo\", null, 0, 1, NoArgsPseudoClassSelector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(pseudoElementSelectorEClass, PseudoElementSelector.class, \"PseudoElementSelector\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getPseudoElementSelector_DoubleSemiColon(), ecorePackage.getEBoolean(), \"doubleSemiColon\", null, 0, 1, PseudoElementSelector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getPseudoElementSelector_Pseudo(), this.getPseudoElements(), \"pseudo\", null, 0, 1, PseudoElementSelector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(languagePseudoClassSelectorEClass, LanguagePseudoClassSelector.class, \"LanguagePseudoClassSelector\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getLanguagePseudoClassSelector_LangugageId(), ecorePackage.getEString(), \"langugageId\", null, 0, 1, LanguagePseudoClassSelector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(functionalPseudoClassSelectorEClass, FunctionalPseudoClassSelector.class, \"FunctionalPseudoClassSelector\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getFunctionalPseudoClassSelector_Pseudo(), this.getFunctionalPseudoClasses(), \"pseudo\", null, 0, 1, FunctionalPseudoClassSelector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getFunctionalPseudoClassSelector_Argument(), this.getTypeArgument(), null, \"argument\", null, 0, 1, FunctionalPseudoClassSelector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(typeArgumentEClass, TypeArgument.class, \"TypeArgument\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(linearArgumentEClass, LinearArgument.class, \"LinearArgument\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getLinearArgument_Coefficient(), this.getCoefficient(), null, \"coefficient\", null, 0, 1, LinearArgument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getLinearArgument_ConstantSign(), ecorePackage.getEString(), \"constantSign\", null, 0, 1, LinearArgument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getLinearArgument_Constant(), ecorePackage.getEInt(), \"constant\", null, 0, 1, LinearArgument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(coefficientEClass, Coefficient.class, \"Coefficient\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getCoefficient_Ident(), ecorePackage.getEString(), \"ident\", null, 0, 1, Coefficient.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getCoefficient_Int(), ecorePackage.getEInt(), \"int\", null, 0, 1, Coefficient.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(constantArgumentEClass, ConstantArgument.class, \"ConstantArgument\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getConstantArgument_Sign(), ecorePackage.getEString(), \"sign\", null, 0, 1, ConstantArgument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getConstantArgument_Int(), ecorePackage.getEInt(), \"int\", null, 0, 1, ConstantArgument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(parityArgumentEClass, ParityArgument.class, \"ParityArgument\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getParityArgument_Parity(), this.getParities(), \"parity\", null, 0, 1, ParityArgument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(negationSelectorEClass, NegationSelector.class, \"NegationSelector\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getNegationSelector_SimpleSelector(), this.getSimpleSelector(), null, \"simpleSelector\", null, 0, 1, NegationSelector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(valueLiteralEClass, ValueLiteral.class, \"ValueLiteral\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(numberLiteralEClass, NumberLiteral.class, \"NumberLiteral\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(sizeLiteralEClass, SizeLiteral.class, \"SizeLiteral\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(stringLiteralEClass, StringLiteral.class, \"StringLiteral\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getStringLiteral_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, StringLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(colorLiteralEClass, ColorLiteral.class, \"ColorLiteral\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(componentColorLiteralEClass, ComponentColorLiteral.class, \"ComponentColorLiteral\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(colorComponentLiteralEClass, ColorComponentLiteral.class, \"ColorComponentLiteral\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getColorComponentLiteral_Number(), this.getNumberLiteral(), null, \"number\", null, 0, 1, ColorComponentLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getColorComponentLiteral_Percentage(), ecorePackage.getEBoolean(), \"percentage\", null, 0, 1, ColorComponentLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(urlLiteralEClass, URLLiteral.class, \"URLLiteral\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getURLLiteral_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, URLLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(bareWordLiteralEClass, BareWordLiteral.class, \"BareWordLiteral\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getBareWordLiteral_BareWord(), ecorePackage.getEString(), \"bareWord\", null, 0, 1, BareWordLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(functionCallLiteralEClass, FunctionCallLiteral.class, \"FunctionCallLiteral\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getFunctionCallLiteral_Function(), ecorePackage.getEString(), \"function\", null, 0, 1, FunctionCallLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getFunctionCallLiteral_Arguments(), this.getValueLiteral(), null, \"arguments\", null, 0, -1, FunctionCallLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(descendantCombinatorEClass, DescendantCombinator.class, \"DescendantCombinator\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getDescendantCombinator_Left(), this.getSelector(), null, \"left\", null, 0, 1, DescendantCombinator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getDescendantCombinator_WsI(), ecorePackage.getEString(), \"wsI\", null, 0, 1, DescendantCombinator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getDescendantCombinator_Right(), this.getSelector(), null, \"right\", null, 0, 1, DescendantCombinator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(childCombinatorEClass, ChildCombinator.class, \"ChildCombinator\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getChildCombinator_Left(), this.getSelector(), null, \"left\", null, 0, 1, ChildCombinator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getChildCombinator_WsL(), ecorePackage.getEString(), \"wsL\", null, 0, 1, ChildCombinator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getChildCombinator_WsR(), ecorePackage.getEString(), \"wsR\", null, 0, 1, ChildCombinator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getChildCombinator_Right(), this.getSelector(), null, \"right\", null, 0, 1, ChildCombinator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(adjacentSiblingCombinatorEClass, AdjacentSiblingCombinator.class, \"AdjacentSiblingCombinator\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getAdjacentSiblingCombinator_Left(), this.getSelector(), null, \"left\", null, 0, 1, AdjacentSiblingCombinator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getAdjacentSiblingCombinator_WsL(), ecorePackage.getEString(), \"wsL\", null, 0, 1, AdjacentSiblingCombinator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getAdjacentSiblingCombinator_WsR(), ecorePackage.getEString(), \"wsR\", null, 0, 1, AdjacentSiblingCombinator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getAdjacentSiblingCombinator_Right(), this.getSelector(), null, \"right\", null, 0, 1, AdjacentSiblingCombinator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(generalSiblingCombinatorEClass, GeneralSiblingCombinator.class, \"GeneralSiblingCombinator\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getGeneralSiblingCombinator_Left(), this.getSelector(), null, \"left\", null, 0, 1, GeneralSiblingCombinator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getGeneralSiblingCombinator_WsL(), ecorePackage.getEString(), \"wsL\", null, 0, 1, GeneralSiblingCombinator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getGeneralSiblingCombinator_WsR(), ecorePackage.getEString(), \"wsR\", null, 0, 1, GeneralSiblingCombinator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getGeneralSiblingCombinator_Right(), this.getSelector(), null, \"right\", null, 0, 1, GeneralSiblingCombinator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(simpleSelectorSequenceEClass, SimpleSelectorSequence.class, \"SimpleSelectorSequence\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getSimpleSelectorSequence_Head(), this.getSimpleSelector(), null, \"head\", null, 0, 1, SimpleSelectorSequence.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getSimpleSelectorSequence_SimpleSelectors(), this.getSimpleSelector(), null, \"simpleSelectors\", null, 0, -1, SimpleSelectorSequence.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(universalNamespacePrefixEClass, UniversalNamespacePrefix.class, \"UniversalNamespacePrefix\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(withoutNamespacePrefixEClass, WithoutNamespacePrefix.class, \"WithoutNamespacePrefix\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(stringAttributeValueLiteralEClass, StringAttributeValueLiteral.class, \"StringAttributeValueLiteral\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getStringAttributeValueLiteral_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, StringAttributeValueLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(integerAttributeValueLiteralEClass, IntegerAttributeValueLiteral.class, \"IntegerAttributeValueLiteral\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getIntegerAttributeValueLiteral_Value(), ecorePackage.getEInt(), \"value\", null, 0, 1, IntegerAttributeValueLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(decimalAttributeValueLiteralEClass, DecimalAttributeValueLiteral.class, \"DecimalAttributeValueLiteral\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getDecimalAttributeValueLiteral_Value(), ecorePackage.getEDouble(), \"value\", null, 0, 1, DecimalAttributeValueLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(integerLiteralEClass, IntegerLiteral.class, \"IntegerLiteral\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getIntegerLiteral_Int(), ecorePackage.getEInt(), \"int\", null, 0, 1, IntegerLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(decimalLiteralEClass, DecimalLiteral.class, \"DecimalLiteral\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getDecimalLiteral_Decimal(), ecorePackage.getEDouble(), \"decimal\", null, 0, 1, DecimalLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(quantifiedSizeLiteralEClass, QuantifiedSizeLiteral.class, \"QuantifiedSizeLiteral\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getQuantifiedSizeLiteral_Number(), this.getNumberLiteral(), null, \"number\", null, 0, 1, QuantifiedSizeLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getQuantifiedSizeLiteral_Dimension(), this.getDimensions(), \"dimension\", null, 0, 1, QuantifiedSizeLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(qualifiedSizeLiteralEClass, QualifiedSizeLiteral.class, \"QualifiedSizeLiteral\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getQualifiedSizeLiteral_Bareword(), ecorePackage.getEString(), \"bareword\", null, 0, 1, QualifiedSizeLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(fontHeightLiteralEClass, FontHeightLiteral.class, \"FontHeightLiteral\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getFontHeightLiteral_FontHeight(), this.getSizeLiteral(), null, \"fontHeight\", null, 0, 1, FontHeightLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getFontHeightLiteral_LineHeight(), this.getNumberLiteral(), null, \"lineHeight\", null, 0, 1, FontHeightLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getFontHeightLiteral_LineHeightDimension(), this.getDimensions(), \"lineHeightDimension\", null, 0, 1, FontHeightLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(rgbColorEClass, RGBColor.class, \"RGBColor\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getRGBColor_Rgb(), ecorePackage.getEString(), \"rgb\", null, 0, 1, RGBColor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(namedColorEClass, NamedColor.class, \"NamedColor\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getNamedColor_Color(), this.getColorNames(), \"color\", null, 0, 1, NamedColor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(componentRGBColorEClass, ComponentRGBColor.class, \"ComponentRGBColor\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getComponentRGBColor_Red(), this.getColorComponentLiteral(), null, \"red\", null, 0, 1, ComponentRGBColor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getComponentRGBColor_Green(), this.getColorComponentLiteral(), null, \"green\", null, 0, 1, ComponentRGBColor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getComponentRGBColor_Blue(), this.getColorComponentLiteral(), null, \"blue\", null, 0, 1, ComponentRGBColor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(componentRGBAlphaColorEClass, ComponentRGBAlphaColor.class, \"ComponentRGBAlphaColor\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getComponentRGBAlphaColor_Red(), this.getColorComponentLiteral(), null, \"red\", null, 0, 1, ComponentRGBAlphaColor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getComponentRGBAlphaColor_Green(), this.getColorComponentLiteral(), null, \"green\", null, 0, 1, ComponentRGBAlphaColor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getComponentRGBAlphaColor_Blue(), this.getColorComponentLiteral(), null, \"blue\", null, 0, 1, ComponentRGBAlphaColor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getComponentRGBAlphaColor_Opacity(), this.getColorComponentLiteral(), null, \"opacity\", null, 0, 1, ComponentRGBAlphaColor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(componentHSLColorEClass, ComponentHSLColor.class, \"ComponentHSLColor\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getComponentHSLColor_Hue(), this.getColorComponentLiteral(), null, \"hue\", null, 0, 1, ComponentHSLColor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getComponentHSLColor_Saturation(), this.getColorComponentLiteral(), null, \"saturation\", null, 0, 1, ComponentHSLColor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getComponentHSLColor_Lightness(), this.getColorComponentLiteral(), null, \"lightness\", null, 0, 1, ComponentHSLColor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(componentHSLAlphaColorEClass, ComponentHSLAlphaColor.class, \"ComponentHSLAlphaColor\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getComponentHSLAlphaColor_Hue(), this.getColorComponentLiteral(), null, \"hue\", null, 0, 1, ComponentHSLAlphaColor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getComponentHSLAlphaColor_Saturation(), this.getColorComponentLiteral(), null, \"saturation\", null, 0, 1, ComponentHSLAlphaColor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getComponentHSLAlphaColor_Lightness(), this.getColorComponentLiteral(), null, \"lightness\", null, 0, 1, ComponentHSLAlphaColor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getComponentHSLAlphaColor_Opacity(), this.getColorComponentLiteral(), null, \"opacity\", null, 0, 1, ComponentHSLAlphaColor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(alphaLiteralEClass, AlphaLiteral.class, \"AlphaLiteral\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getAlphaLiteral_Opacity(), this.getNumberLiteral(), null, \"opacity\", null, 0, 1, AlphaLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n // Initialize enums and add enum literals\n initEEnum(knownPropertiesEEnum, KnownProperties.class, \"KnownProperties\");\n addEEnumLiteral(knownPropertiesEEnum, KnownProperties.COLOR);\n addEEnumLiteral(knownPropertiesEEnum, KnownProperties.BORDER_TOP);\n\n initEEnum(attributeSelectorMatchersEEnum, AttributeSelectorMatchers.class, \"AttributeSelectorMatchers\");\n addEEnumLiteral(attributeSelectorMatchersEEnum, AttributeSelectorMatchers.PREFIX);\n addEEnumLiteral(attributeSelectorMatchersEEnum, AttributeSelectorMatchers.SUFFIX);\n addEEnumLiteral(attributeSelectorMatchersEEnum, AttributeSelectorMatchers.SUBSTRING);\n addEEnumLiteral(attributeSelectorMatchersEEnum, AttributeSelectorMatchers.EXACT);\n addEEnumLiteral(attributeSelectorMatchersEEnum, AttributeSelectorMatchers.INCLUDES);\n addEEnumLiteral(attributeSelectorMatchersEEnum, AttributeSelectorMatchers.LANGUAGE);\n\n initEEnum(noArgsPseudosEEnum, NoArgsPseudos.class, \"NoArgsPseudos\");\n addEEnumLiteral(noArgsPseudosEEnum, NoArgsPseudos.LINK);\n addEEnumLiteral(noArgsPseudosEEnum, NoArgsPseudos.VISITED);\n addEEnumLiteral(noArgsPseudosEEnum, NoArgsPseudos.HOVER);\n addEEnumLiteral(noArgsPseudosEEnum, NoArgsPseudos.ACTIVE);\n addEEnumLiteral(noArgsPseudosEEnum, NoArgsPseudos.FOCUS);\n addEEnumLiteral(noArgsPseudosEEnum, NoArgsPseudos.TARGET);\n addEEnumLiteral(noArgsPseudosEEnum, NoArgsPseudos.ENABLED);\n addEEnumLiteral(noArgsPseudosEEnum, NoArgsPseudos.DISABLED);\n addEEnumLiteral(noArgsPseudosEEnum, NoArgsPseudos.CHECKED);\n addEEnumLiteral(noArgsPseudosEEnum, NoArgsPseudos.INDETERMINATE);\n addEEnumLiteral(noArgsPseudosEEnum, NoArgsPseudos.ROOT);\n addEEnumLiteral(noArgsPseudosEEnum, NoArgsPseudos.FIRST_CHILD);\n addEEnumLiteral(noArgsPseudosEEnum, NoArgsPseudos.LAST_CHILD);\n addEEnumLiteral(noArgsPseudosEEnum, NoArgsPseudos.ONLY_CHILD);\n addEEnumLiteral(noArgsPseudosEEnum, NoArgsPseudos.EMPTY);\n\n initEEnum(pseudoElementsEEnum, PseudoElements.class, \"PseudoElements\");\n addEEnumLiteral(pseudoElementsEEnum, PseudoElements.FIRST_LETTER);\n addEEnumLiteral(pseudoElementsEEnum, PseudoElements.FIRST_LINE);\n addEEnumLiteral(pseudoElementsEEnum, PseudoElements.BEFORE);\n addEEnumLiteral(pseudoElementsEEnum, PseudoElements.AFTER);\n\n initEEnum(functionalPseudoClassesEEnum, FunctionalPseudoClasses.class, \"FunctionalPseudoClasses\");\n addEEnumLiteral(functionalPseudoClassesEEnum, FunctionalPseudoClasses.NTH_CHILD);\n addEEnumLiteral(functionalPseudoClassesEEnum, FunctionalPseudoClasses.NTH_LAST_CHILD);\n addEEnumLiteral(functionalPseudoClassesEEnum, FunctionalPseudoClasses.NTH_OF_TYPE);\n addEEnumLiteral(functionalPseudoClassesEEnum, FunctionalPseudoClasses.NTH_LAST_OF_TYPE);\n addEEnumLiteral(functionalPseudoClassesEEnum, FunctionalPseudoClasses.FIRST_OF_TYPE);\n addEEnumLiteral(functionalPseudoClassesEEnum, FunctionalPseudoClasses.LAST_OF_TYPE);\n addEEnumLiteral(functionalPseudoClassesEEnum, FunctionalPseudoClasses.ONLY_OF_TYPE);\n\n initEEnum(paritiesEEnum, Parities.class, \"Parities\");\n addEEnumLiteral(paritiesEEnum, Parities.ODD);\n addEEnumLiteral(paritiesEEnum, Parities.EVEN);\n\n initEEnum(dimensionsEEnum, Dimensions.class, \"Dimensions\");\n addEEnumLiteral(dimensionsEEnum, Dimensions.IN);\n addEEnumLiteral(dimensionsEEnum, Dimensions.CM);\n addEEnumLiteral(dimensionsEEnum, Dimensions.MM);\n addEEnumLiteral(dimensionsEEnum, Dimensions.PT);\n addEEnumLiteral(dimensionsEEnum, Dimensions.PC);\n addEEnumLiteral(dimensionsEEnum, Dimensions.EM);\n addEEnumLiteral(dimensionsEEnum, Dimensions.EX);\n addEEnumLiteral(dimensionsEEnum, Dimensions.PX);\n addEEnumLiteral(dimensionsEEnum, Dimensions.PERC);\n\n initEEnum(colorNamesEEnum, ColorNames.class, \"ColorNames\");\n addEEnumLiteral(colorNamesEEnum, ColorNames.BLACK);\n addEEnumLiteral(colorNamesEEnum, ColorNames.WHITE);\n\n // Create resource\n createResource(eNS_URI);\n }", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tEcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI);\n\t\torg.openecomp.ncomp.core.CorePackage theCorePackage_1 = (org.openecomp.ncomp.core.CorePackage)EPackage.Registry.INSTANCE.getEPackage(org.openecomp.ncomp.core.CorePackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\topenstackRequestDeleteEClass.getESuperTypes().add(this.getOpenStackRequest());\n\t\topenstackRequestPollEClass.getESuperTypes().add(this.getOpenStackRequest());\n\t\tvirtualMachineTypeEClass.getESuperTypes().add(theCorePackage_1.getNamedEntity());\n\t\tsecurityRuleEClass.getESuperTypes().add(theCorePackage_1.getNamedEntity());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(openStackRequestEClass, OpenStackRequest.class, \"OpenStackRequest\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getOpenStackRequest_ProjectName(), theEcorePackage.getEString(), \"projectName\", null, 0, 1, OpenStackRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(openstackRequestDeleteEClass, OpenstackRequestDelete.class, \"OpenstackRequestDelete\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getOpenstackRequestDelete_ObjectType(), theEcorePackage.getEString(), \"objectType\", null, 0, 1, OpenstackRequestDelete.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getOpenstackRequestDelete_ObjectName(), theEcorePackage.getEString(), \"objectName\", null, 0, 1, OpenstackRequestDelete.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(openstackRequestPollEClass, OpenstackRequestPoll.class, \"OpenstackRequestPoll\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(virtualMachineTypeEClass, VirtualMachineType.class, \"VirtualMachineType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getVirtualMachineType_Description(), theEcorePackage.getEString(), \"description\", null, 0, 1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVirtualMachineType_NumberOfCores(), theEcorePackage.getEInt(), \"numberOfCores\", null, 0, 1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVirtualMachineType_MemorySizeMB(), theEcorePackage.getEInt(), \"memorySizeMB\", null, 0, 1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVirtualMachineType_RootDiskSizeGB(), theEcorePackage.getEInt(), \"rootDiskSizeGB\", null, 0, 1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVirtualMachineType_DiskSizeGB(), theEcorePackage.getEInt(), \"diskSizeGB\", null, 0, 1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVirtualMachineType_VolumeSizeGB(), theEcorePackage.getEInt(), \"volumeSizeGB\", null, 0, 1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVirtualMachineType_ImageName(), theEcorePackage.getEString(), \"imageName\", null, 0, 1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVirtualMachineType_FlavorName(), theEcorePackage.getEString(), \"flavorName\", null, 0, 1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVirtualMachineType_NeedPublicIp(), theEcorePackage.getEBoolean(), \"needPublicIp\", null, 0, 1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVirtualMachineType_DeploymentStatus(), theCorePackage_1.getDeploymentStatus(), \"deploymentStatus\", null, 0, 1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getVirtualMachineType_IncomingSecurityRules(), this.getSecurityRule(), null, \"incomingSecurityRules\", null, 0, -1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getVirtualMachineType_OutboundSecurityRules(), this.getSecurityRule(), null, \"outboundSecurityRules\", null, 0, -1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(securityRuleEClass, SecurityRule.class, \"SecurityRule\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getSecurityRule_PortRangeStart(), theEcorePackage.getEIntegerObject(), \"portRangeStart\", null, 0, 1, SecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSecurityRule_PortRangeEnd(), theEcorePackage.getEIntegerObject(), \"portRangeEnd\", null, 0, 1, SecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSecurityRule_Prefix(), theEcorePackage.getEString(), \"prefix\", null, 0, 1, SecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSecurityRule_IpProtocol(), this.getSecurityRuleProtocol(), \"ipProtocol\", null, 0, 1, SecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Initialize enums and add enum literals\n\t\tinitEEnum(securityRuleProtocolEEnum, SecurityRuleProtocol.class, \"SecurityRuleProtocol\");\n\t\taddEEnumLiteral(securityRuleProtocolEEnum, SecurityRuleProtocol.NONE);\n\t\taddEEnumLiteral(securityRuleProtocolEEnum, SecurityRuleProtocol.TCP);\n\t\taddEEnumLiteral(securityRuleProtocolEEnum, SecurityRuleProtocol.UDP);\n\t\taddEEnumLiteral(securityRuleProtocolEEnum, SecurityRuleProtocol.IMCP);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "public void loadPackage() {\r\n\t\tif (isLoaded)\r\n\t\t\treturn;\r\n\t\tisLoaded = true;\r\n\r\n\t\tURL url = getClass().getResource(packageFilename);\r\n\t\tif (url == null) {\r\n\t\t\tthrow new RuntimeException(\"Missing serialized package: \"\r\n\t\t\t\t\t+ packageFilename);\r\n\t\t}\r\n\t\tURI uri = URI.createURI(url.toString());\r\n\t\tResource resource = new EcoreResourceFactoryImpl().createResource(uri);\r\n\t\ttry {\r\n\t\t\tresource.load(null);\r\n\t\t} catch (IOException exception) {\r\n\t\t\tthrow new WrappedException(exception);\r\n\t\t}\r\n\t\tinitializeFromLoadedEPackage(this, (EPackage) resource.getContents()\r\n\t\t\t\t.get(0));\r\n\t\tcreateResource(eNS_URI);\r\n\t}", "public void setPackage()\n {\n ensureLoaded();\n m_flags.setPackage();\n setModified(true);\n }", "public void loadPackage() {\n\t\tif (isLoaded) return;\n\t\tisLoaded = true;\n\n\t\tURL url = getClass().getResource(packageFilename);\n\t\tif (url == null) {\n\t\t\tthrow new RuntimeException(\"Missing serialized package: \" + packageFilename); //$NON-NLS-1$\n\t\t}\n\t\tURI uri = URI.createURI(url.toString());\n\t\tResource resource = new EcoreResourceFactoryImpl().createResource(uri);\n\t\ttry {\n\t\t\tresource.load(null);\n\t\t}\n\t\tcatch (IOException exception) {\n\t\t\tthrow new WrappedException(exception);\n\t\t}\n\t\tinitializeFromLoadedEPackage(this, (EPackage)resource.getContents().get(0));\n\t\tcreateResource(eNS_URI);\n\t}", "public void initializePackageContents() {\r\n\t\tif (isInitialized)\r\n\t\t\treturn;\r\n\t\tisInitialized = true;\r\n\r\n\t\t// Initialize package\r\n\t\tsetName(eNAME);\r\n\t\tsetNsPrefix(eNS_PREFIX);\r\n\t\tsetNsURI(eNS_URI);\r\n\r\n\t\t// Create type parameters\r\n\r\n\t\t// Set bounds for type parameters\r\n\r\n\t\t// Add supertypes to classes\r\n\t\tcomDiagEClass.getESuperTypes().add(this.getNamedElement());\r\n\t\tcomDiagElementEClass.getESuperTypes().add(this.getNamedElement());\r\n\t\tlifelineEClass.getESuperTypes().add(this.getComDiagElement());\r\n\t\tmessageEClass.getESuperTypes().add(this.getComDiagElement());\r\n\r\n\t\t// Initialize classes and features; add operations and parameters\r\n\t\tinitEClass(namedElementEClass, NamedElement.class, \"NamedElement\",\r\n\t\t\t\t!IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getNamedElement_Name(), ecorePackage.getEString(),\r\n\t\t\t\t\"name\", null, 0, 1, NamedElement.class, !IS_TRANSIENT,\r\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(comDiagEClass, ComDiag.class, \"ComDiag\", !IS_ABSTRACT,\r\n\t\t\t\t!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getComDiag_Elements(), this.getComDiagElement(),\r\n\t\t\t\tthis.getComDiagElement_Graph(), \"elements\", null, 0, -1,\r\n\t\t\t\tComDiag.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\r\n\t\t\t\tIS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getComDiag_Level(), ecorePackage.getEString(), \"level\",\r\n\t\t\t\tnull, 0, 1, ComDiag.class, !IS_TRANSIENT, !IS_VOLATILE,\r\n\t\t\t\tIS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\r\n\t\tinitEClass(comDiagElementEClass, ComDiagElement.class,\r\n\t\t\t\t\"ComDiagElement\", !IS_ABSTRACT, !IS_INTERFACE,\r\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getComDiagElement_Graph(), this.getComDiag(),\r\n\t\t\t\tthis.getComDiag_Elements(), \"graph\", null, 0, 1,\r\n\t\t\t\tComDiagElement.class, !IS_TRANSIENT, !IS_VOLATILE,\r\n\t\t\t\tIS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES,\r\n\t\t\t\t!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(lifelineEClass, Lifeline.class, \"Lifeline\", !IS_ABSTRACT,\r\n\t\t\t\t!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getLifeline_Number(), ecorePackage.getEInt(), \"number\",\r\n\t\t\t\tnull, 0, 1, Lifeline.class, !IS_TRANSIENT, !IS_VOLATILE,\r\n\t\t\t\tIS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,\r\n\t\t\t\tIS_ORDERED);\r\n\r\n\t\tinitEClass(messageEClass, Message.class, \"Message\", !IS_ABSTRACT,\r\n\t\t\t\t!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getMessage_Occurence(), ecorePackage.getEInt(),\r\n\t\t\t\t\"occurence\", null, 0, 1, Message.class, !IS_TRANSIENT,\r\n\t\t\t\t!IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getMessage_Source(), this.getLifeline(), null, \"source\",\r\n\t\t\t\tnull, 0, 1, Message.class, !IS_TRANSIENT, !IS_VOLATILE,\r\n\t\t\t\tIS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,\r\n\t\t\t\t!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getMessage_Target(), this.getLifeline(), null, \"target\",\r\n\t\t\t\tnull, 0, 1, Message.class, !IS_TRANSIENT, !IS_VOLATILE,\r\n\t\t\t\tIS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,\r\n\t\t\t\t!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\t// Create resource\r\n\t\tcreateResource(eNS_URI);\r\n\t}", "private void init() {\n\t\tthis.model = ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM);\n\t\tthis.model.setNsPrefixes(INamespace.NAMSESPACE_MAP);\n\n\t\t// create classes and properties\n\t\tcreateClasses();\n\t\tcreateDatatypeProperties();\n\t\tcreateObjectProperties();\n\t\t// createFraktionResources();\n\t}", "public void initializePackageContents() {\n if (isInitialized) return;\n isInitialized = true;\n\n // Initialize package\n setName(eNAME);\n setNsPrefix(eNS_PREFIX);\n setNsURI(eNS_URI);\n\n // Create type parameters\n\n // Set bounds for type parameters\n\n // Add supertypes to classes\n bitShiftExprEClass.getESuperTypes().add(this.getExpr());\n bitShiftExprChildEClass.getESuperTypes().add(this.getExpr());\n additiveExprEClass.getESuperTypes().add(this.getBitShiftExprChild());\n additiveExprChildEClass.getESuperTypes().add(this.getBitShiftExprChild());\n multiplicativeExprEClass.getESuperTypes().add(this.getAdditiveExprChild());\n multiplicativeExprChildEClass.getESuperTypes().add(this.getAdditiveExprChild());\n numberEClass.getESuperTypes().add(this.getMultiplicativeExprChild());\n\n // Initialize classes and features; add operations and parameters\n initEClass(calcEClass, Calc.class, \"Calc\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getCalc_Expr(), this.getExpr(), null, \"expr\", null, 1, -1, Calc.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(exprEClass, Expr.class, \"Expr\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(bitShiftExprEClass, BitShiftExpr.class, \"BitShiftExpr\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getBitShiftExpr_Children(), this.getBitShiftExprChild(), null, \"children\", null, 2, -1, BitShiftExpr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getBitShiftExpr_Operators(), this.getBitShiftOp(), \"operators\", null, 1, -1, BitShiftExpr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(bitShiftExprChildEClass, BitShiftExprChild.class, \"BitShiftExprChild\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(additiveExprEClass, AdditiveExpr.class, \"AdditiveExpr\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getAdditiveExpr_Children(), this.getAdditiveExprChild(), null, \"children\", null, 2, -1, AdditiveExpr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getAdditiveExpr_Operators(), this.getAdditiveOp(), \"operators\", null, 1, -1, AdditiveExpr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(additiveExprChildEClass, AdditiveExprChild.class, \"AdditiveExprChild\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(multiplicativeExprEClass, MultiplicativeExpr.class, \"MultiplicativeExpr\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getMultiplicativeExpr_Children(), this.getMultiplicativeExprChild(), null, \"children\", null, 2, -1, MultiplicativeExpr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getMultiplicativeExpr_Operators(), this.getMultiplicativeOp(), \"operators\", null, 1, -1, MultiplicativeExpr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(multiplicativeExprChildEClass, MultiplicativeExprChild.class, \"MultiplicativeExprChild\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(numberEClass, org.emftext.language.arithm.Number.class, \"Number\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getNumber_Value(), ecorePackage.getEInt(), \"value\", null, 1, 1, org.emftext.language.arithm.Number.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n // Initialize enums and add enum literals\n initEEnum(bitShiftOpEEnum, BitShiftOp.class, \"BitShiftOp\");\n addEEnumLiteral(bitShiftOpEEnum, BitShiftOp.LEFT);\n addEEnumLiteral(bitShiftOpEEnum, BitShiftOp.RIGHT);\n\n initEEnum(additiveOpEEnum, AdditiveOp.class, \"AdditiveOp\");\n addEEnumLiteral(additiveOpEEnum, AdditiveOp.ADD);\n addEEnumLiteral(additiveOpEEnum, AdditiveOp.SUB);\n\n initEEnum(multiplicativeOpEEnum, MultiplicativeOp.class, \"MultiplicativeOp\");\n addEEnumLiteral(multiplicativeOpEEnum, MultiplicativeOp.MUL);\n addEEnumLiteral(multiplicativeOpEEnum, MultiplicativeOp.DIV);\n\n // Create resource\n createResource(eNS_URI);\n }", "public void performInitialisation() {\n \t\t// subclasses can override the behaviour for this method\n \t}", "public void initialize() {\n //TODO: Initialization steps\n\n initialized = true;\n }", "public void initialize() {\n // TODO\n }", "protected void install()\n {\n _parent = null;\n _label = new ScLocalString();\n _model = new ScLocalObject();\n }", "public void reInit() {\n super.reInit();\n m_strPackage = null;\n if (m_subPackages != null) {\n m_subPackages.clear();\n }\n }", "public static ModelPackage init() {\n\t\tif (isInited) return (ModelPackage)EPackage.Registry.INSTANCE.getEPackage(ModelPackage.eNS_URI);\n\n\t\t// Obtain or create and register package\n\t\tModelPackageImpl theModelPackage = (ModelPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof ModelPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new ModelPackageImpl());\n\n\t\tisInited = true;\n\n\t\t// Create package meta-data objects\n\t\ttheModelPackage.createPackageContents();\n\n\t\t// Initialize created meta-data\n\t\ttheModelPackage.initializePackageContents();\n\n\t\t// Mark meta-data to indicate it can't be changed\n\t\ttheModelPackage.freeze();\n\n\t\treturn theModelPackage;\n\t}", "public void initializationComplete() {\n System.out.println(\"CPM Initialization Complete\");\n mInitCompleteTime = System.currentTimeMillis();\n }", "public void initialize() {\n // empty for now\n }", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tOpenmlperfPerformanceMetricPackage theOpenmlperfPerformanceMetricPackage = (OpenmlperfPerformanceMetricPackage)EPackage.Registry.INSTANCE.getEPackage(OpenmlperfPerformanceMetricPackage.eNS_URI);\n\n\t\t// Add subpackages\n\t\tgetESubpackages().add(theOpenmlperfPerformanceMetricPackage);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(sutEClass, openmlperf.openmlperfPerformanceMonitoring.SUT.class, \"SUT\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getSUT_Hostname(), ecorePackage.getEString(), \"hostname\", null, 0, 1, openmlperf.openmlperfPerformanceMonitoring.SUT.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSUT_Ip(), ecorePackage.getEString(), \"ip\", null, 0, 1, openmlperf.openmlperfPerformanceMonitoring.SUT.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSUT_Hardware(), this.getHARDWARE(), \"hardware\", null, 0, 1, openmlperf.openmlperfPerformanceMonitoring.SUT.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSUT_Sut(), this.getSUT(), null, \"sut\", null, 0, -1, openmlperf.openmlperfPerformanceMonitoring.SUT.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSUT_Metricmodel(), this.getMetricModel(), null, \"metricmodel\", null, 0, 1, openmlperf.openmlperfPerformanceMonitoring.SUT.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getSUT_Type(), this.getSUT_TYPE(), \"type\", null, 0, 1, openmlperf.openmlperfPerformanceMonitoring.SUT.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(loadGeneratorEClass, LoadGenerator.class, \"LoadGenerator\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getLoadGenerator_Hostname(), ecorePackage.getEString(), \"hostname\", null, 0, 1, LoadGenerator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getLoadGenerator_Ip(), ecorePackage.getEString(), \"ip\", null, 0, 1, LoadGenerator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getLoadGenerator_IsMonitor(), ecorePackage.getEBoolean(), \"isMonitor\", null, 0, 1, LoadGenerator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getLoadGenerator_Sut(), this.getSUT(), null, \"sut\", null, 0, -1, LoadGenerator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getLoadGenerator_Metricmodel(), this.getMetricModel(), null, \"metricmodel\", null, 0, 1, LoadGenerator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getLoadGenerator_Hardware(), this.getHARDWARE(), \"hardware\", null, 0, 1, LoadGenerator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getLoadGenerator_Monitor(), this.getMonitor(), null, \"monitor\", null, 0, 1, LoadGenerator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(monitorEClass, Monitor.class, \"Monitor\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMonitor_Hostname(), ecorePackage.getEString(), \"hostname\", null, 0, 1, Monitor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMonitor_Ip(), ecorePackage.getEString(), \"ip\", null, 0, 1, Monitor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMonitor_Sut(), this.getSUT(), null, \"sut\", null, 0, -1, Monitor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMonitor_Hardware(), this.getHARDWARE(), \"hardware\", null, 0, 1, Monitor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMonitor_Description(), ecorePackage.getEString(), \"description\", \"Machine responsible for monitoring the performance metrics of the SUT. This object is optional, since the Load Generator object, besides generating workload for virtual users, can also play the role of monitoring.\", 0, 1, Monitor.class, !IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(metricModelEClass, MetricModel.class, \"MetricModel\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMetricModel_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, MetricModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMetricModel_Memory(), theOpenmlperfPerformanceMetricPackage.getMemory(), null, \"memory\", null, 0, 1, MetricModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMetricModel_Transaction(), theOpenmlperfPerformanceMetricPackage.getTransaction(), null, \"transaction\", null, 0, 1, MetricModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMetricModel_Disk(), theOpenmlperfPerformanceMetricPackage.getDisk(), null, \"disk\", null, 0, 1, MetricModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMetricModel_Criteria(), theOpenmlperfPerformanceMetricPackage.getCriteria(), null, \"criteria\", null, 0, -1, MetricModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMetricModel_Threshold(), theOpenmlperfPerformanceMetricPackage.getThreshold(), null, \"threshold\", null, 0, -1, MetricModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMetricModel_Associationcountercriteriathreshold(), theOpenmlperfPerformanceMetricPackage.getAssociationCounterCriteriaThreshold(), null, \"associationcountercriteriathreshold\", null, 0, -1, MetricModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMetricModel_DiskCounter(), theOpenmlperfPerformanceMetricPackage.getDisk_IO_Counter(), null, \"diskCounter\", null, 0, -1, MetricModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMetricModel_TransactionCounter(), theOpenmlperfPerformanceMetricPackage.getTransactionCounter(), null, \"transactionCounter\", null, 0, -1, MetricModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMetricModel_MemoryCounter(), theOpenmlperfPerformanceMetricPackage.getMemoryCounter(), null, \"memoryCounter\", null, 0, -1, MetricModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMetricModel_Counter(), theOpenmlperfPerformanceMetricPackage.getCounter(), null, \"counter\", null, 0, -1, MetricModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getMetricModel_Metric(), theOpenmlperfPerformanceMetricPackage.getMetric(), null, \"metric\", null, 0, -1, MetricModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Initialize enums and add enum literals\n\t\tinitEEnum(suT_TYPEEEnum, openmlperf.openmlperfPerformanceMonitoring.SUT_TYPE.class, \"SUT_TYPE\");\n\t\taddEEnumLiteral(suT_TYPEEEnum, openmlperf.openmlperfPerformanceMonitoring.SUT_TYPE.DESKTOPAPP);\n\t\taddEEnumLiteral(suT_TYPEEEnum, openmlperf.openmlperfPerformanceMonitoring.SUT_TYPE.DATABASE);\n\t\taddEEnumLiteral(suT_TYPEEEnum, openmlperf.openmlperfPerformanceMonitoring.SUT_TYPE.WEBAPP);\n\t\taddEEnumLiteral(suT_TYPEEEnum, openmlperf.openmlperfPerformanceMonitoring.SUT_TYPE.WEBSERVICE);\n\n\t\tinitEEnum(hardwareEEnum, openmlperf.openmlperfPerformanceMonitoring.HARDWARE.class, \"HARDWARE\");\n\t\taddEEnumLiteral(hardwareEEnum, openmlperf.openmlperfPerformanceMonitoring.HARDWARE.PHYSICAL_MACHINE);\n\t\taddEEnumLiteral(hardwareEEnum, openmlperf.openmlperfPerformanceMonitoring.HARDWARE.VIRTUAL_MACHINE);\n\t\taddEEnumLiteral(hardwareEEnum, openmlperf.openmlperfPerformanceMonitoring.HARDWARE.CLOUD_SERVICE);\n\t}", "public void initialize() {\r\n }", "public void finish() {\n if (Interpreter.getExtension() != null) {\n Interpreter.getExtension().setHierarchy(null);\n }\n }", "@Override\n\tpublic void afterClassSetup() {\n\t\t\n\t}", "public void initialize() {\n }", "public void initialize()\r\n\t{\r\n\t\tdatabaseHandler = DatabaseHandler.getInstance();\r\n\t\tfillPatientsTable();\r\n\t}", "public void onInitializeComplete() {\n }", "@Override\n public void prepare() {\n applicationDeployer.initialize();\n this.initialize();\n }", "public void initialize() {\n }", "public static void initialization() {\n System.out.println(\"initialization\");\n try {\n HibernateUtil.updateSchema();\n } catch (Exception e) {\n throw new RuntimeException(e.getMessage());\n }\n }", "private void initialize() {\n }", "@Override\n public void autonomousInit() {\n }", "@Override\n public void autonomousInit() {\n }", "public void autonomousInit() {\n \n }" ]
[ "0.65663505", "0.64637876", "0.6438184", "0.6420078", "0.6410195", "0.6408812", "0.6404318", "0.63993853", "0.6382283", "0.6365", "0.6354965", "0.6342994", "0.63416624", "0.632297", "0.63196874", "0.6313231", "0.6308082", "0.63057786", "0.62943226", "0.62855506", "0.62708074", "0.62597066", "0.62329084", "0.6228298", "0.6226964", "0.62242186", "0.62212896", "0.62173367", "0.62007475", "0.61997503", "0.61977553", "0.6187307", "0.6183317", "0.6175508", "0.61730516", "0.61604065", "0.6146499", "0.6124721", "0.61148447", "0.6110298", "0.60959584", "0.6095694", "0.6086047", "0.60633564", "0.60481924", "0.60477567", "0.60474014", "0.6046306", "0.6039733", "0.6031812", "0.60299885", "0.60262084", "0.60204154", "0.6017188", "0.6001922", "0.5998613", "0.5995112", "0.59869486", "0.59868115", "0.5965343", "0.59638476", "0.59518516", "0.5943304", "0.590921", "0.589073", "0.5878181", "0.5865756", "0.5828863", "0.58222365", "0.5805087", "0.5804521", "0.57671654", "0.5754328", "0.57337135", "0.57138824", "0.56638265", "0.5652016", "0.564152", "0.563264", "0.56214106", "0.5601626", "0.5600094", "0.5563308", "0.55628365", "0.5543726", "0.5537253", "0.55313003", "0.5521167", "0.5519326", "0.5504903", "0.5482522", "0.54818606", "0.5444578", "0.54409856", "0.5434347", "0.5434158", "0.5395082", "0.53858954", "0.53858954", "0.53804994" ]
0.6031409
50
Final part of setting AutoStopBackward. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result: Device is open, CapAutoStopBackward is true or flag is false, internal property AllowAlwaysSetProperties is true or flag equals the previous value of AutoStopBackward.
public void autoStopBackward(boolean flag) throws JposException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCanStop() {\n \tleftCanMotor.set(0.0);\n \trightCanMotor.set(0.0); \n\t}", "void driveStop() {\n flMotor.setPower(0);\n frMotor.setPower(0);\n blMotor.setPower(0);\n brMotor.setPower(0);\n }", "@Override\n public void stop() {\n\n leftDrive.setPower(0);\n rightDrive.setPower(0);\n armMotor.setPower(0);\n // extendingArm.setPower(0);\n\n telemetry.addData(\"Status\", \"Terminated Interative TeleOp Mode\");\n telemetry.update();\n\n\n }", "boolean isBackwardPredicted()\n {\n return (mbType & BACKWARD)!=0;\n }", "public void completeStop(){\n motorFrontLeft.setPower(0);\n motorFrontRight.setPower(0);\n motorBackLeft.setPower(0);\n motorBackRight.setPower(0);\n }", "public void stop()\n {\n robot.FL_drive.setPower(0);\n robot.FR_drive.setPower(0);\n robot.BL_drive.setPower(0);\n robot.BR_drive.setPower(0);\n }", "public boolean getAllowStop();", "@Override\n protected void end() {\n drive.setEnabled(false);\n drive.setLeftPower(0);\n drive.setRightPower(0);\n }", "public void down() {\n\t\tmotor1.set( -Constants.CLAW_MOTOR_SPEED );\n\t\t}", "private void turnBeaconOff() {\n\t\t\t\n\t\t\tString beaconSetAdvertisingDisable = getSetAdvertisingEnableCmd( false);\n\t\t\t\n\t\t\tfinal String envVars[] = { \n\t\t\t\t\t\"SET_ADV_ENABLE_CMD=\" + beaconSetAdvertisingDisable\n\t\t\t};\n\t\t\t\n\t\t\tfinal String cmd = \"./scripts/beacon_stop\";\n\t\t\t\n\t\t\tboolean status = runScript( cmd, envVars, null, null);\n\t\t\t\n\t\t}", "public void driveStraightBackwards(double speed) {\r\n \tspeed = Math.abs(speed);\r\n \tint angle = getGyroAngle();\r\n \tdrivetrain.drive(-1 * speed, angle * kP);\r\n \tTimer.delay(0.004); //4 millisecond delay to allow for gyro to calibrate\r\n }", "public void restoreValues() {\n drive_control.stopDriving();\n if (ACTUAL_DIFICULTY == EASY)\n drive_control.setSpeedScale(EASY_BASE_SPEED);\n if (ACTUAL_DIFICULTY == MEDIUM)\n drive_control.setSpeedScale(MEDIUM);\n if (ACTUAL_DIFICULTY == HARD)\n drive_control.setSpeedScale(HARD);\n drive_control.startDriving(getContext(), DriveControl.JOY_STICK);\n isUserControlAct = true;\n }", "boolean stop()\n {\n boolean success = true; // Tells whether attempt to stop lift is successful or not\n\n try\n {\n _motor.setPower(0);\n }\n catch(Exception e)\n {\n Log.e(\"Error\" , \"Cannot stop lift, check your mapping\");\n success = false;\n }\n\n return success;\n }", "@Override\n public void stop() {\n leftFrontDrive.setPower(0.0);\n rightFrontDrive.setPower(0.0);\n leftRearDrive.setPower(0.0);\n rightRearDrive.setPower(0.0);\n\n // Disable Tracking when we are done;\n targetsUltimateGoal.deactivate();\n\n //closes object detection to save system resouces\n if (tfod != null) {\n tfod.shutdown();\n }\n }", "public void stop(){\n started = false;\n for (DcMotor motor :this.motors) {\n motor.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n motor.setPower(0);\n }\n this.reset();\n }", "public Builder setBackToBackEnabled(boolean value) {\n \n backToBackEnabled_ = value;\n onChanged();\n return this;\n }", "public void setResetTimeOnStop(boolean aFlag) { _resetTimeOnStop = aFlag; }", "public void setAllowStop(boolean allowed);", "@SimpleProperty(description = \"Whether to stop the drive motors before disconnecting.\",\n category = PropertyCategory.BEHAVIOR)\n public boolean StopBeforeDisconnect() {\n return stopBeforeDisconnect;\n }", "@SimpleFunction(description = \"Stop the drive motors of the robot.\")\n public void Stop() {\n String functionName = \"Stop\";\n if (!checkBluetooth(functionName)) {\n return;\n }\n\n for (NxtMotorPort port : driveMotorPorts) {\n setOutputState(functionName, port, 0,\n NxtMotorMode.Brake, NxtRegulationMode.Disabled, 0, NxtRunState.Disabled, 0);\n }\n }", "public void setDown(boolean b){ down = b; }", "public void forceStop() {\r\n\t\tchaseObj = false;\r\n\t}", "public void liftDown() {\n set(m_defaultLiftSpeedDown);\n }", "public void goDown() {\n\t\tacceleration = 1;\n\t}", "boolean initializeStop() {\n if (state != PlatformState.STARTED) {\n return false;\n }\n state = PlatformState.STOPPING;\n return true;\n }", "@Override\n public void stop() {\n if (FLM != null) FLM.setPower(0);\n if (FRM != null) FRM.setPower(0);\n if (BLM != null) BLM.setPower(0);\n if (BRM != null) BRM.setPower(0);\n if (BigSuck != null) BigSuck.setPower(0);\n if (SmallSuck != null) SmallSuck.setPower(0);\n if (UpLift != null) UpLift.setPower(0);\n if (DragArm != null) DragArm.setPosition(DragArmRestPosition);\n if (LiftGrab != null) LiftGrab.setPosition(LiftGrabRestPosition);\n if (LiftSwivel != null) LiftSwivel.setPosition(LiftSwivelRestPosition);\n }", "public void autoStopForward(boolean flag) throws JposException;", "public boolean isStopSupported();", "public void setReverse(Boolean newValue);", "public void setReverse(Boolean newValue);", "@Override\r\n\tpublic boolean canSeekBackward() {\n\t\treturn true;\r\n\t}", "@Override\n protected void end() {\n //return control to joystick\n drivetrain.setStopArcadeDrive(false);\n drivetrain.tankDrive(0,0);\n System.out.println(\"STOPPED LINE FOLLOWER\");\n // led.setLEDB(false);\n // led.setLEDR(false);\n }", "public void intakeStop()\n {\n intake_up.set(ControlMode.PercentOutput, 0.0f);\n intake_down.set(ControlMode.PercentOutput, 0.0f);\n }", "static void changeDirectionBackwards() {\n\n if(--direction == -1)\n direction = 3;\n }", "public void autoStopBackwardDelayTime(int delay) throws JposException;", "public final void m15085b() {\n synchronized (this.f20399d) {\n this.f20409o = true;\n setEnabled(false);\n this.f20399d.setEnabled(false);\n }\n }", "public void stopDrive() {\n\t\tdifferentialDrive.stopMotor();\n\t}", "public void testSetBackButtonEnabled() {\n System.out.println(\"setBackButtonEnabled\");\n boolean newValue = false;\n Wizard instance = new Wizard();\n instance.setBackButtonEnabled(newValue);\n }", "public void backward()\n\t{\n\t\tupdateState( MotorPort.BACKWARD);\n\t}", "public boolean isBackward()\n {\n return (state == AnimationState.BACKWARD);\n }", "@ApiModelProperty(value = \"True if the auto order was canceled because the customer purchased a downgrade item\")\r\n public Boolean isCancelDowngrade() {\r\n return cancelDowngrade;\r\n }", "public void stop() {\n\t\tsetPower(Motor.STOP);\r\n\t}", "public void noteOff()\n\t{\n\t\ttimeFromOff = 0f;\n\t\tisTurnedOff = true;\n\t}", "public synchronized void setTimeToWakeUpToFalse() {\n this.timeToWakeUp = false;\n }", "protected synchronized boolean shouldStop() {\n\t\treturn shouldStop_;\n\t}", "@Override\n\tpublic void stop() {\n\t\tsetAccelerate(false);\n\t}", "@Override\n protected void end() {\n Robot.m_drive.SetPower(0);\n }", "@Override\n protected void end() {\n Robot.climber.frontStop();\n Robot.climber.rearStop();\n Robot.isAutonomous = false;\n }", "public void setReverseAgency(boolean value) {\r\n this.reverseAgency = value;\r\n }", "public void brake() {\n\t\tsetPower(Motor.STOP);\r\n\t}", "public void moveBackward(boolean endWithBrake){\r\n \r\n Motor.B.rotate(-1*DEGREES_PER_TILE, true);//Accesses Motor thread\r\n Motor.C.rotate(-1*DEGREES_PER_TILE, true);\r\n while(Motor.B.isMoving() || Motor.C.isMoving())\r\n ;//wait for motors to be done\r\n return;\r\n }", "void setForward(boolean isForward);", "public boolean goAllDown() {\n\t\tif ( botLimitSwitch.get() ) {\n\t\t\tstop();\n\t\t}\n\t\telse{\n\t\t\tdown();\n\t\t}\n\t\t\n\t\treturn botLimitSwitch.get();\n\t}", "@Override\n\tpublic boolean stopDown() {\n\t\tboolean rs = super.stopDown();\n\t\tif(rs == true && this.x_dir == STOP){\n\n\t\t}\n\t\treturn rs;\n\t}", "public void setVibrationOff() {\n\n }", "@Override\n public void stop()\n {\n final String funcName = \"stop\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API);\n }\n\n if (playing)\n {\n analogOut.setAnalogOutputMode((byte) 0);\n analogOut.setAnalogOutputFrequency(0);\n analogOut.setAnalogOutputVoltage(0);\n playing = false;\n expiredTime = 0.0;\n setTaskEnabled(false);\n }\n }", "@DesignerProperty(editorType = PropertyTypeConstants.PROPERTY_TYPE_BOOLEAN,\n defaultValue = \"True\")\n @SimpleProperty\n public void StopBeforeDisconnect(boolean stopBeforeDisconnect) {\n this.stopBeforeDisconnect = stopBeforeDisconnect;\n }", "void stop() {\n this.currentDirection = 0;\n this.currentVelocity = 0;\n }", "@Override\r\n public void turnOff() {\r\n isOn = false;\r\n Reporter.report(this, Reporter.Msg.SWITCHING_OFF);\r\n if (this.engaged()) {\r\n disengageLoads();\r\n }\r\n }", "@java.lang.Override\n public boolean getBackToBackEnabled() {\n return backToBackEnabled_;\n }", "public void freeze()\r\n\t\t{\r\n\t\tpause.setEnabled(false);\r\n\t\t}", "void atras(){\n\t\tMotorA.stop();\n\t\tMotorB.setSpeed(700);\n\t\tMotorC.setSpeed(700);\n\t\t\n\t\tMotorB.backward();\n\t\tMotorC.backward();\n\t}", "@java.lang.Override\n public boolean getBackToBackEnabled() {\n return backToBackEnabled_;\n }", "protected void setOffLineMode () {\n if (theDowntimeMgr != null)\n theDowntimeMgr.setOnLine(false);\n }", "public void setAsDown () \n\t{ \n\t\tn.setFailureState(false);\n\t\tfinal SortedSet<WLightpathRequest> affectedDemands = new TreeSet<> ();\n\t\tgetOutgoingFibers().forEach(f->affectedDemands.addAll(f.getTraversingLpRequestsInAtLeastOneLp()));\n\t\tgetIncomingFibers().forEach(f->affectedDemands.addAll(f.getTraversingLpRequestsInAtLeastOneLp()));\n\t\tfor (WLightpathRequest lpReq : affectedDemands)\n\t\t\tlpReq.internalUpdateOfRoutesCarriedTrafficFromFailureState();\n\t}", "public boolean shouldStop() {\n boolean isToStop = stop; // check if needs to stop\n stop = false; // update the flag for future use not to stop\n return isToStop;\n }", "@Override // com.oculus.modules.codegen.PreferencesStoreModule\n public void setForceApplicationFocusAwarenessImpl(double value) {\n Log.i(TAG, \"SETTING force_application_focus_awareness to \" + value);\n Log.i(TAG, \"SETTING system_force_application_focus_awareness to \" + value);\n this.mPreferencesManager.set(FORCE_APPLICATION_FOCUS_AWARENESS_KEY, (int) value);\n this.mPreferencesManager.set(SYSTEM_FORCE_APPLICATION_FOCUS_AWARENESS_KEY, (int) value);\n }", "public void setMoveRemainingStartsBack(boolean moveRemainingStartsBack)\r\n {\r\n m_moveRemainingStartsBack = moveRemainingStartsBack;\r\n }", "public void arcadeDrive() {\n\t\tif (fastBool) {\n\t\t\tmotorRB.set((joystickLYAxis + joystickLXAxis/2));\n\t\t\tmotorRF.set((joystickLYAxis + joystickLXAxis/2));\n\t\t\tmotorLB.set(-(joystickLYAxis - joystickLXAxis/2));\n\t\t\tmotorLF.set(-(joystickLYAxis - joystickLXAxis/2));\n\t\t} else {\n\t\t\tmotorRB.set((joystickLYAxis + joystickLXAxis/2)/2);\n\t\t\tmotorRF.set((joystickLYAxis + joystickLXAxis/2)/2);\n\t\t\tmotorLB.set(-(joystickLYAxis - joystickLXAxis/2)/2);\n\t\t\tmotorLF.set(-(joystickLYAxis - joystickLXAxis/2)/2);\n\t\t}\n\t}", "public void stop() {\n\t\tmotor1.set( Constants.CLAW_MOTOR_STOPPED );\n\t\t}", "@Override\n protected void end() {\n mDrive.setSpeed(0.0, 0.0);\n }", "private void setupAutomotiveMode() {\n // reset the margin value for arrow view\n if (mArrowView != null) {\n mArrowView.setImageResource(R.drawable.automotive_common_arrow_down);\n MarginLayoutParams mlp = (MarginLayoutParams) mArrowView.getLayoutParams();\n if (null != mlp) {\n if (ActionBarUtil.IS_SUPPORT_RTL) {\n mlp.setMarginStart(mMeasureSpecM2);\n } else {\n mlp.leftMargin = mMeasureSpecM2;\n }\n mArrowView.setLayoutParams(mlp);\n }\n }\n }", "@Override\n\tprotected void takeOff(){\n\t\tgvh.log.i(TAG, \"Drone taking off\");\n\t\tsetControlInput(0, 0, 0, 1);\n\t}", "public void turnOff() {\n\t\tOn = false;\n\t\tVolume = 1;\n\t\tChannel = 1;\n\t}", "public boolean shouldStop() {\r\n return this.stop;\r\n }", "public boolean shouldStop() {\r\n return this.stop;\r\n }", "public void turnOff() {\n update(0,0,0);\n this.status = false;\n }", "@Override\n public boolean shouldStop() {\n return this.stop;\n }", "public boolean getResetTimeOnStop() { return _resetTimeOnStop; }", "protected final boolean wasSwitchedOff() {\r\n\t\treturn switchedOff;\r\n\t}", "public boolean shouldStop() {\n return this.stop;\n }", "private void driveRight() {\n setSpeed(MAX_SPEED, MIN_SPEED);\n }", "@Override\n\tpublic void action() {\n\t\tsuppressed = false;\n\t\t//if (Settings.motorAAngle == -90) Settings.motorAAngle = -95;\n\n\t\tMotor.A.rotateTo(Settings.motorAAngle, true);\n\n\t\twhile (Motor.A.isMoving() && !Motor.A.isStalled() && !suppressed);\t\t\t\n\t\t\n\t\tMotor.A.stop();\n\t}", "@Override\n protected void end() {\n Robot.drive.setCoastMode();\n Robot.tapeAlignSys.disable();\n Robot.lidarAlignSys.disable();\n }", "@Override\n public void cancelAutoFocus() {\n mCameraDevice.cancelAutoFocus();\n if (mCameraState != SELFTIMER_COUNTING\n && mCameraState != SNAPSHOT_IN_PROGRESS) {\n setCameraState(IDLE);\n }\n setCameraParameters(UPDATE_PARAM_PREFERENCE);\n isTouchCalled = false;\n }", "public boolean isNeedStartRecordingOnSwitching() {\n return this.mIsVideoCaptureIntent;\n }", "public boolean isKeepGoingMode() {\n return this.keepGoingMode;\n }", "public void setReverse(boolean revVal) {\n\t\tRelay.Value currentValue = this.get(),\n\t\t\t newValue = currentValue;\n\t\n\tif(currentValue == Relay.Value.kForward) {\n\t\tif(revVal)\n\t\t\tnewValue = Relay.Value.kOn;\n\t} else if(currentValue == Relay.Value.kOff) {\n\t\tif(revVal)\n\t\t\tnewValue = Relay.Value.kReverse;\n\t} else if(currentValue == Relay.Value.kOn) {\n\t\tif(!revVal)\n\t\t\tnewValue = Relay.Value.kForward;\n\t} else if(currentValue == Relay.Value.kReverse) {\n\t\tif(!revVal)\n\t\t\tnewValue = Relay.Value.kOff;\n\t}\n\t\n\tthis.set(newValue);\n\t}", "public void pleaseStop()\n {\n\t this.doorgaan_thread = false;\n\t this.doorgaan_wheel = true;\n draad = null; // waarom? \n }", "public void turnStrobeOff(){\n Intent stop_strobe_intent = new Intent(FlareConstants.STOP_STROBE);\n stop_strobe_intent.putExtra(FlareConstants.STOP_STROBE, FlareConstants.STOP_STROBE);\n LocalBroadcastManager.getInstance(this).sendBroadcast(stop_strobe_intent);\n Log.d(TAG, \"Sent stop strobe intent broadcast\");\n }", "void stopAccelerating() {\n isAccelerating = false;\n }", "public void stop() {\n m_enabled = false;\n }", "public void turn_off () {\n this.on = false;\n }", "public void setStopTrainModel() {\n HwHidataJniAdapter hwHidataJniAdapter = HwHidataJniAdapter.getInstance();\n if (hwHidataJniAdapter != null) {\n hwHidataJniAdapter.nativeSetIsStop(true);\n }\n }", "public boolean shouldStop() {\n return this.shouldstop;\n }", "@Override\n\tpublic void onStop() {\n\t\tsuper.onStop();\n\n\t\tif (D)\n\t\t\tLog.e(TAG, \"-- ON STOP --\");\n\n\t\t// don't do anything bluetooth if debugging the user interface\n\t\tif (BTconnect)\n\t\t\tmyBT.cancel();\n\n\t\t// kill bt pitter and bump timer\n\t\tkillHandlers();\n\n\t\t// unregister the sensor listener\n\t\tmSensorManager.unregisterListener(mSensorListener);\n\n\t\t// shutoff bluetooth\n\t\tif (turnOffBluetoothShutdown) {\n\t\t\tmBluetoothAdapter.disable();\n\t\t}\n\t\t\n\t\t// save the checkbox states for the next run\n\t\t// We need an Editor object to make preference changes.\n\t\t// All objects are from android.context.Context\n\t\tSharedPreferences settings = getSharedPreferences(PREFS_NAME, 0);\n\t\tSharedPreferences.Editor editor = settings.edit();\n\t\teditor.putBoolean(\"ScreenOnOffEnable\", ScreenOnOffCheckBox.isChecked());\n\t\teditor.putBoolean(\"RetryConnEnable\", RetryConnBox.isChecked());\n\t\teditor.putString(\"MacAddress\", MAC_ADDRESS);\n\t\t// Commit the edits!\n\t\teditor.commit();\n\n\t}", "public boolean stopped() {\n\t\tif (change != null) {\n\t\t\t//Check if the bot's current speed is very low, and it wasn't before\n\t\t\treturn (getVelocity() < 0.01 && change.getVelocity() > 0.01);\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n \t}", "@Override\n\tpublic boolean takeControl() {\n\t\treturn (Math.abs(Motor.A.getTachoCount() - Settings.motorAAngle) > 5 || (Motor.A.getTachoCount() == 0 && Settings.motorAAngle == -90));\n\t}", "@Override\n\tpublic void drive() {\n\t\tif (gasoline > 0) {\n\t\t\tsetAccelerate(true);\n\t\t}\n\t}", "public boolean setVibrate() {\n boolean isVibrate = checkVibrate();\n editor.putBoolean(Constans.KeyPreference.TURN_VIBRATE, !isVibrate);\n editor.commit();\n return !isVibrate;\n }" ]
[ "0.5930046", "0.58047414", "0.5563893", "0.54935867", "0.5437859", "0.5437209", "0.5432637", "0.5416795", "0.54029375", "0.53579557", "0.5344623", "0.53145283", "0.53107", "0.5272225", "0.5244859", "0.5238568", "0.5226147", "0.5206634", "0.51991415", "0.5187087", "0.5184199", "0.51735306", "0.51611", "0.51499957", "0.51404965", "0.51288277", "0.51161027", "0.511025", "0.5100916", "0.5100916", "0.50951624", "0.5079167", "0.5070848", "0.50682443", "0.5066807", "0.50626403", "0.50179434", "0.50129235", "0.50087273", "0.50075823", "0.5003213", "0.5002788", "0.49990776", "0.49984682", "0.49973407", "0.49771997", "0.4975147", "0.49696952", "0.49639988", "0.49627346", "0.49591336", "0.49531564", "0.4951527", "0.49310952", "0.4931", "0.49303353", "0.49277952", "0.4925078", "0.49220562", "0.49218777", "0.4920578", "0.49165547", "0.4913159", "0.49064583", "0.49021354", "0.49010187", "0.4890035", "0.48893127", "0.48821223", "0.48777696", "0.48766956", "0.4865399", "0.48614827", "0.48611045", "0.486075", "0.486075", "0.48542967", "0.4847033", "0.48461276", "0.48415866", "0.48404902", "0.48399276", "0.48379284", "0.48299673", "0.48235217", "0.4806271", "0.47982803", "0.4796591", "0.47947153", "0.47920603", "0.47907802", "0.4787019", "0.47761285", "0.4768248", "0.47541508", "0.47519097", "0.4751777", "0.47506222", "0.4746397", "0.4737817" ]
0.62103003
0
Final part of setting AutoStopBackwardDelayTime. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result: Device is open, CapAutoStopBackward is true, delay is FOREVER or positive, internal property AllowAlwaysSetProperties is true or delay equals the previous value of AutoStopBackwardDelayTime.
public void autoStopBackwardDelayTime(int delay) throws JposException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void autoStopForwardDelayTime(int delay) throws JposException;", "@Override\n public native void setAutoDelay(int ms);", "private void updateAutoTriggerDelay(long delay) {\n if (mAutoTriggerDelay != delay) {\n mAutoTriggerDelay = delay;\n updateReachabilityStatus();\n }\n }", "public void setDelay(double clock);", "void setPaymentDelay(ch.crif_online.www.webservices.crifsoapservice.v1_00.PaymentDelay paymentDelay);", "public void setMaxDelayTime(Long MaxDelayTime) {\n this.MaxDelayTime = MaxDelayTime;\n }", "@Override\n public native int getAutoDelay();", "public void setDelay(long delay) {\n this.delay = delay;\n }", "boolean isSetPaymentDelay();", "public Builder setStateChangeDelayUntilTurn(long value) {\n \n stateChangeDelayUntilTurn_ = value;\n onChanged();\n return this;\n }", "public Integer getTolerableDelay() {\n\t\treturn tolerableDelay;\n\t}", "public void setDelayTime(int delayTime)\n\t{\n\t\tthis.delayTime = delayTime;\n\t\tthis.updateTimer.setDelay(delayTime);\n\t}", "public void setDelay(float time)\n\t{\n\t\tdelayMax=time;\n\t}", "public double getDelay();", "public void setDelay(long d){delay = d;}", "public void setTolerableDelay(Integer tolerableDelay) {\n\t\tthis.tolerableDelay = tolerableDelay;\n\t}", "public void setDelay(int delay)\n {\n this.delay = delay;\n }", "public void liftDown() {\n set(m_defaultLiftSpeedDown);\n }", "public void setDelay(int delay) {\n this.delay = delay;\n }", "public synchronized void setTimeToWakeUpToFalse() {\n this.timeToWakeUp = false;\n }", "public void setDelayMove(float delay_)\n\t{\n\t\tdelayMove=delayMove+delay_;\n\t}", "public void setStartDelay(long startDelay) {\n/* 211 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public long getDelay();", "int getAbsoluteMaximumDelay();", "boolean isBackwardPredicted()\n {\n return (mbType & BACKWARD)!=0;\n }", "public long getDelay() {\n return mDelay;\n }", "public void setDelay(int delayValue)\r\n {\r\n\t timer.setDelay(delayValue);\r\n }", "private void delayForDefocusTextFieldWorkaround() {\n if (Build.VERSION.SDK_INT <= 27) {\n alarmPeriodTextField.perform(waitMsec(60));\n }\n }", "public void driveStraightBackwards(double speed) {\r\n \tspeed = Math.abs(speed);\r\n \tint angle = getGyroAngle();\r\n \tdrivetrain.drive(-1 * speed, angle * kP);\r\n \tTimer.delay(0.004); //4 millisecond delay to allow for gyro to calibrate\r\n }", "public void setDelay(int delay) {\n\t\t if (delay != this.delay) logger.info(\"New delay is: \"+getElapsedTimeHoursMinutesSecondsString(delay)); \n\t\t if (delay < this.delay) {\n\t\t\t scheduledFuture.cancel(true);\n\t\t\t reset(delay); \n\t\t }\n\t\t this.delay = delay;\n\t }", "public Builder clearStateChangeDelayUntilTurn() {\n \n stateChangeDelayUntilTurn_ = 0L;\n onChanged();\n return this;\n }", "long getInitialDelayInSeconds();", "public void down() {\n\t\tmotor1.set( -Constants.CLAW_MOTOR_SPEED );\n\t\t}", "public void setDelaytime(Long delaytime) {\n this.delaytime = delaytime;\n }", "public void setAutoResetDelay(int delay) {\n this.mAutoResetDelay = delay;\n }", "int getMaximumDelay();", "@java.lang.Override\n public long getStateChangeDelayUntilTurn() {\n return stateChangeDelayUntilTurn_;\n }", "private void emulateDelay() {\n try {\n Thread.sleep(700);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "@java.lang.Override\n public long getStateChangeDelayUntilTurn() {\n return stateChangeDelayUntilTurn_;\n }", "private void strafe(double powerA, double powerB, int millis, boolean stopAfter) {\n motorFL.setPower(-powerA);\n motorBL.setPower(-powerB);\n motorFR.setPower( powerB);\n motorBR.setPower( powerA);\n\n sleep(millis);\n\n if (stopAfter) {\n motorFL.setPower(0);\n motorBL.setPower(0);\n motorFR.setPower(0);\n motorBR.setPower(0);\n sleep(200);\n }\n }", "public int getDelay() {\r\n return delay;\r\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 int getDelay()\r\n {\r\n return this.delay;\r\n }", "public void setDroneDelay(int delay)\r\n {\r\n droneDelay=delay;\r\n }", "@Override\n void slowDown() {\n if (this.speed>0){\n this.speed=this.speed-1;\n }\n }", "public void processDelay() {\n if (errorCounter > 0) {\n if (delayCounter >= AppyAdService.getInstance().maxDelay()) {\n setAdProcessing(true);\n errorCounter = AppyAdService.getInstance().maxErrors() - 1;\n delayCounter = 0;\n }\n else delayCounter++;\n }\n }", "public int getDelay() {\r\n\t\treturn delay;\r\n\t}", "public org.apache.axis.types.UnsignedInt getDelay() {\n return delay;\n }", "public long getDelay()\n {\n return delay;\n }", "private BackoffResult doBackoff() {\n if (attempt >= maxAttempts) {\n return BackoffResults.EXHAUSTED;\n }\n // Maximum cumulative backoff reached.\n if (cumulativeBackoff.compareTo(MAX_CUMULATIVE_BACKOFF) >= 0) {\n return BackoffResults.EXHAUSTED;\n }\n\n double currentIntervalMillis =\n Math.min(\n initialBackoff.getMillis() * Math.pow(1.5, attempt - 1), MAX_BACKOFF.getMillis());\n double randomOffset =\n (rand.nextDouble() * 2 - 1) * RANDOMIZATION_FACTOR * currentIntervalMillis;\n long nextBackoffMillis = Math.round(currentIntervalMillis + randomOffset);\n // Cap to limit on cumulative backoff\n Duration remainingCumulative = MAX_CUMULATIVE_BACKOFF.minus(cumulativeBackoff);\n nextBackoffMillis = Math.min(nextBackoffMillis, remainingCumulative.getMillis());\n\n // Update state and return backoff.\n cumulativeBackoff = cumulativeBackoff.plus(Duration.millis(nextBackoffMillis));\n attempt += 1;\n return new BackoffDuration(Duration.millis(nextBackoffMillis));\n }", "public void setEndGameDelay(boolean endGameDelay) {\n\t\tthis.endGameDelay = endGameDelay;\n\t}", "@Test\n public void testDelay() {\n long future = System.currentTimeMillis() + (rc.getRetryDelay() * 1000L);\n\n rc.delay();\n\n assertTrue(System.currentTimeMillis() >= future);\n }", "public void autoStopBackward(boolean flag) throws JposException;", "public int getDelay() {\n return delay;\n }", "void unsetPaymentDelay();", "public void setCanStop() {\n \tleftCanMotor.set(0.0);\n \trightCanMotor.set(0.0); \n\t}", "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 setDelay(org.apache.axis.types.UnsignedInt delay) {\n this.delay = delay;\n }", "public int getDelayTime()\n\t{\n\t\treturn delayTime;\n\t}", "protected void setAutoFallRate(long autoFallRate) {\r\n\t\tthis.autoFallRate = autoFallRate;\r\n\t}", "public DraggableBehavior setDelay(int delay)\n\t{\n\t\tthis.options.put(\"delay\", delay);\n\t\treturn this;\n\t}", "public long getDelay() {\n return this.delay;\n }", "private void changeDelay() {\n delay = ((int) (Math.random() * 10000) + 1000) / MAX_FRAMES;\n }", "public int getDelay() {\n\t\treturn delay;\n\t}", "public void frameBackward()\n{\n stop();\n setTime(getTime() - getInterval());\n}", "private void backoff() {\n nextSleep *= 2;\n if (nextSleep > MAX_SLEEP) nextSleep = MAX_SLEEP;\n try {\n Thread.sleep(nextSleep);\n } catch (InterruptedException e) {\n }\n }", "public void setDelay(BigDecimal delay) {\r\n this.delay = delay;\r\n }", "public boolean isEndGameDelay() {\n\t\treturn endGameDelay;\n\t}", "@Override\n public void setExecutionDelayTime(double delayTime)\n {\n this.executionDelayTime = delayTime;\n }", "public Long getMaxDelayTime() {\n return this.MaxDelayTime;\n }", "public int getDelay()\n {\n return delay;\n }", "public long getDelayTime() {\n return (long) this.DELAY_TIME;\n }", "public float getDelay()\n\t{\n\t\treturn delay;\n\t}", "public void crawlDelay()\n\t{\n//\t\tint delay = robot.getCrawlDelay(best_match);\n//\t\tif (delay!=-1)\n//\t\t{\n//\t\t\ttry \n//\t\t\t{\n//\t\t\t\tTimeUnit.SECONDS.sleep(robot.getCrawlDelay(best_match));\n//\t\t\t} \n//\t\t\tcatch (InterruptedException e) \n//\t\t\t{\n//\t\t\t\treturn;\n//\t\t\t}\n//\t\t}\n\t}", "void driveStop() {\n flMotor.setPower(0);\n frMotor.setPower(0);\n blMotor.setPower(0);\n brMotor.setPower(0);\n }", "@WithName(\"schedule.delay\")\n @WithDefault(\"5s\")\n Duration scheduleDelay();", "ch.crif_online.www.webservices.crifsoapservice.v1_00.PaymentDelay getPaymentDelay();", "public void setBetDelay(Integer betDelay){\n this.betDelay = betDelay;\n }", "public void setStartDelay(long delay){\n if(delay < 0){\n delay = 0;\n }\n this.mStartDelay = delay;\n }", "public void noteOff()\n\t{\n\t\ttimeFromOff = 0f;\n\t\tisTurnedOff = true;\n\t}", "public BigDecimal getDelay() {\r\n return delay;\r\n }", "public void setDelayedTimeout(int seconds);", "@Override\n public void tryVibrate() {\n performHapticFeedback(HapticFeedbackConstants.VIRTUAL_KEY\n /*(5) - HapticFeedbackConstants.CALENDAR_DATE*/);\n }", "@GuardedBy(\"mConnectedDevices\")\n private void makeA2dpDeviceUnavailableLater(String address, int delayMs) {\n AudioSystem.setParameters(\"A2dpSuspended=true\");\n // retrieve DeviceInfo before removing device\n final String deviceKey =\n DeviceInfo.makeDeviceListKey(AudioSystem.DEVICE_OUT_BLUETOOTH_A2DP, address);\n final DeviceInfo deviceInfo = mConnectedDevices.get(deviceKey);\n final int a2dpCodec = deviceInfo != null ? deviceInfo.mDeviceCodecFormat :\n AudioSystem.AUDIO_FORMAT_DEFAULT;\n // the device will be made unavailable later, so consider it disconnected right away\n mConnectedDevices.remove(deviceKey);\n // send the delayed message to make the device unavailable later\n mDeviceBroker.setA2dpDockTimeout(address, a2dpCodec, delayMs);\n }", "public int[] getDelays() {\n return delays;\n }", "public void strafeRightTimer()\r\n\t{\r\n\t\tif(timer.get() < Config.Auto.timeStrafe)\r\n\t\t{\r\n\t\t\tdrive.setSpeed(0, 0, Config.Auto.strafeSpeed, Config.Auto.strafeSpeed);\r\n\t\t}\r\n\t\t\r\n\t\telse if(timer.get() < Config.Auto.timeDriveTowardTote)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"in second else if\");\r\n\t\t\tdrive.setSpeed(Config.Auto.driveTowardToteSpeed, Config.Auto.driveTowardToteSpeed, 0, 0);\r\n\t\t}\r\n\t\t\r\n\t\telse if(timer.get() < Config.Auto.timeStrafeBackwards)\r\n\t\t\tdrive.setSpeed(0, 0, -Config.Auto.strafeSpeed, -Config.Auto.strafeSpeed);\r\n\t\t\r\n\t\telse\r\n\t\t\tendRoutine();\r\n\t}", "int getNominalDelay();", "@Override\n public void periodic()\n {\n if(AutoIntake)\n intake(-0.2f, -0.5f);\n }", "@Override\n public void maybeSetThrottleTimeMs(int throttleTimeMs) {\n }", "public Long getDelaytime() {\n return delaytime;\n }", "private void gyroSpinnerDelay(int index) {\n\t\tif (toggleServiceButton.isChecked()) {\n\t\t\tswitch (index) {\n\t\t\tcase 0:\n\t\t\t\tgyroSpinnerDelay = DELAY_FAST;\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tgyroSpinnerDelay = DELAY_GAME;\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tgyroSpinnerDelay = DELAY_UI;\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tgyroSpinnerDelay = DELAY_NORMAL;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tstopGyroService();\n\t\t\tstartGyroService();\n\t\t\tdoGyroBindService();\n\t\t\tstartGyro();\n\t\t} else {\n\t\t\tif (gyroService != null) {\n\t\t\t\tstopGyroService();\n\t\t\t}\n\t\t}\n\t\tgyroSpinnerDelay = index;\n\t\tSPE = SP.edit();\n\t\tSPE.putInt(\"gyroSpinnerDelay\", gyroSpinnerDelay);\n\t\tSPE.commit();\n\t}", "public void setDelay(int delay) {\n\t\ttimer.setInitialDelay(delay);\n\t}", "public void freeze()\r\n\t\t{\r\n\t\tpause.setEnabled(false);\r\n\t\t}", "public void moveBackward(boolean endWithBrake){\r\n \r\n Motor.B.rotate(-1*DEGREES_PER_TILE, true);//Accesses Motor thread\r\n Motor.C.rotate(-1*DEGREES_PER_TILE, true);\r\n while(Motor.B.isMoving() || Motor.C.isMoving())\r\n ;//wait for motors to be done\r\n return;\r\n }", "public Boolean waitMovingOff(Double timeout)\r\n\t{\r\n\t\treturn eventHandlers.waitCondition(TuxAPIConst.ST_NAME_FLIPPERS_MOTOR_ON, timeout,\r\n\t\t\t\t\"False\", null);\r\n\t}", "public float getDelayMove()\n\t{\n\t\treturn delayMove;\n\t}", "public void brake() {\n\t\tsetPower(Motor.STOP);\r\n\t}", "@Override\n public int getRetryDelay() {\n return retryDelay;\n }", "public int getDelayedTimeout();", "public void setColumnDelay(float columnDelay) {\n/* 109 */ throw new RuntimeException(\"Stub!\");\n/* */ }" ]
[ "0.622054", "0.6029802", "0.5668452", "0.55667233", "0.5543996", "0.5520008", "0.5487572", "0.5469888", "0.5427333", "0.54209983", "0.54185045", "0.54018784", "0.53923863", "0.53561085", "0.5353224", "0.5342955", "0.5341041", "0.5318232", "0.52931523", "0.52873933", "0.52329487", "0.5228336", "0.522729", "0.52171767", "0.5215032", "0.5206719", "0.5197991", "0.51959056", "0.519512", "0.5187792", "0.5183477", "0.5182072", "0.5181547", "0.5180806", "0.5155", "0.5136207", "0.5126594", "0.5125293", "0.5105328", "0.5104879", "0.5099803", "0.5089068", "0.5088402", "0.50812846", "0.50789255", "0.5061214", "0.50584567", "0.5055138", "0.5053918", "0.5050156", "0.5049588", "0.50419945", "0.5040104", "0.5027787", "0.5015921", "0.5015331", "0.50150794", "0.50107366", "0.5010345", "0.49945572", "0.49867854", "0.49821445", "0.4977101", "0.49743667", "0.49690878", "0.49623132", "0.49613294", "0.49518263", "0.49472058", "0.4944065", "0.49382553", "0.4934481", "0.49237663", "0.49051124", "0.48990455", "0.4892117", "0.4891825", "0.48895377", "0.48833463", "0.48784396", "0.4869648", "0.48651242", "0.4864688", "0.48595187", "0.4857008", "0.48400617", "0.48348102", "0.48277923", "0.48122957", "0.4801562", "0.479408", "0.4787019", "0.47865504", "0.47859484", "0.4777728", "0.47670794", "0.47651926", "0.4765054", "0.4761407", "0.47599733" ]
0.6865115
0
Final part of setting AutoStopForward. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result: Device is open, CapAutoStopForward is true or flag is false, internal property AllowAlwaysSetProperties is true or flag equals the previous value of AutoStopForward.
public void autoStopForward(boolean flag) throws JposException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setForward(boolean isForward);", "public void setCanStop() {\n \tleftCanMotor.set(0.0);\n \trightCanMotor.set(0.0); \n\t}", "public void setForward(boolean fwdVal) {\n\t\tRelay.Value currentValue = this.get(),\n\t\t\t\t newValue = currentValue;\n\t\t\n\t\tif(currentValue == Relay.Value.kForward) {\n\t\t\tif(!fwdVal)\n\t\t\t\tnewValue = Relay.Value.kOff;\n\t\t} else if(currentValue == Relay.Value.kOff) {\n\t\t\tif(fwdVal)\n\t\t\t\tnewValue = Relay.Value.kForward;\n\t\t} else if(currentValue == Relay.Value.kOn) {\n\t\t\tif(!fwdVal)\n\t\t\t\tnewValue = Relay.Value.kReverse;\n\t\t} else if(currentValue == Relay.Value.kReverse) {\n\t\t\tif(fwdVal)\n\t\t\t\tnewValue = Relay.Value.kOn;\n\t\t}\n\t\t\n\t\tthis.set(newValue);\n\t}", "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 boolean takeControl() {\n\t\treturn Project2a.curState == Project2a.RobotState.Forward && Project2a.getCurTime() - 500 > MoveForward.startTime;\n\t}", "public boolean isNeedStartRecordingOnSwitching() {\n return this.mIsVideoCaptureIntent;\n }", "public boolean getAllowStop();", "public void setAllowStop(boolean allowed);", "@Override\n\tpublic boolean takeControl() {\n\t\treturn (Math.abs(Motor.A.getTachoCount() - Settings.motorAAngle) > 5 || (Motor.A.getTachoCount() == 0 && Settings.motorAAngle == -90));\n\t}", "public AutoDriveForward()\r\n {\r\n addSequential(new DriveForward(6.5));\r\n }", "public void setAllowFlight ( boolean flight ) {\n\t\texecute ( handle -> handle.setAllowFlight ( flight ) );\n\t}", "public void setTurning(java.lang.Boolean value);", "public void configFwdLimitSwitchNormallyOpen(boolean normalOpen)\n {\n final String funcName = \"configFwdLimitSwitchNormallyOpen\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API, \"normalOpen=%s\", normalOpen);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API);\n }\n\n fwdLimitSwitch = motor.getForwardLimitSwitch(\n normalOpen ? LimitSwitchPolarity.kNormallyOpen : LimitSwitchPolarity.kNormallyClosed);\n }", "public boolean takeControl() {\n\t\tif (Squirrel.us.getDistance() <= 30 && Squirrel.notDetected)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "void driveStop() {\n flMotor.setPower(0);\n frMotor.setPower(0);\n blMotor.setPower(0);\n brMotor.setPower(0);\n }", "boolean stop()\n {\n boolean success = true; // Tells whether attempt to stop lift is successful or not\n\n try\n {\n _motor.setPower(0);\n }\n catch(Exception e)\n {\n Log.e(\"Error\" , \"Cannot stop lift, check your mapping\");\n success = false;\n }\n\n return success;\n }", "public void setDirectForward(boolean directForward)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DIRECTFORWARD$14, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DIRECTFORWARD$14);\n }\n target.setBooleanValue(directForward);\n }\n }", "private void setup3AControlsLocked(CaptureRequest.Builder builder) {\n builder.set(CaptureRequest.CONTROL_MODE,\n CaptureRequest.CONTROL_MODE_AUTO);\n\n Float minFocusDist =\n mCharacteristics.get(CameraCharacteristics.LENS_INFO_MINIMUM_FOCUS_DISTANCE);\n\n // If MINIMUM_FOCUS_DISTANCE is 0, lens is fixed-focus and we need to skip the AF run.\n mNoAFRun = (minFocusDist == null || minFocusDist == 0);\n\n if (!mNoAFRun) {\n // If there is a \"continuous picture\" mode available, use it, otherwise default to AUTO.\n if (contains(mCharacteristics.get(\n CameraCharacteristics.CONTROL_AF_AVAILABLE_MODES),\n CaptureRequest.CONTROL_AF_MODE_CONTINUOUS_PICTURE)) {\n builder.set(CaptureRequest.CONTROL_AF_MODE,\n CaptureRequest.CONTROL_AF_MODE_CONTINUOUS_PICTURE);\n } else {\n builder.set(CaptureRequest.CONTROL_AF_MODE,\n CaptureRequest.CONTROL_AF_MODE_AUTO);\n }\n }\n\n // If there is an auto-magical flash control mode available, use it, otherwise default to\n // the \"on\" mode, which is guaranteed to always be available.\n if (mNowFlashState != FlashState.CLOSE) {\n if (contains(mCharacteristics.get(\n CameraCharacteristics.CONTROL_AE_AVAILABLE_MODES),\n CaptureRequest.CONTROL_AE_MODE_ON_AUTO_FLASH)) {\n builder.set(CaptureRequest.CONTROL_AE_MODE,\n CaptureRequest.CONTROL_AE_MODE_ON_AUTO_FLASH);\n } else {\n builder.set(CaptureRequest.CONTROL_AE_MODE,\n CaptureRequest.CONTROL_AE_MODE_ON);\n }\n }\n\n // If there is an auto-magical white balance control mode available, use it.\n if (contains(mCharacteristics.get(\n CameraCharacteristics.CONTROL_AWB_AVAILABLE_MODES),\n CaptureRequest.CONTROL_AWB_MODE_AUTO)) {\n // Allow AWB to run auto-magically if this device supports this\n builder.set(CaptureRequest.CONTROL_AWB_MODE,\n CaptureRequest.CONTROL_AWB_MODE_AUTO);\n }\n }", "@SimpleProperty(description = \"Whether to stop the drive motors before disconnecting.\",\n category = PropertyCategory.BEHAVIOR)\n public boolean StopBeforeDisconnect() {\n return stopBeforeDisconnect;\n }", "public void turnStrobeOn(){\n if (!WatchFlags.gestureSensingOn){\n Log.d(TAG, \"Gesture sensing mode is off, aborting start strobe command\");\n return;\n }\n if (WatchFlags.strobeIsOn == false) {\n startActivity(new Intent(this, wSignalingActivity.class).setFlags(Intent.FLAG_ACTIVITY_NEW_TASK));\n }\n }", "public void updateFrontPhotoflipMode() {\n if (isCameraFrontFacing()) {\n this.mCameraSettings.setMirrorSelfieOn(Keys.isMirrorSelfieOn(this.mAppController.getSettingsManager()));\n }\n }", "private void setBooleanFlags (short flags){\n\t\tthis.flags = flags;\n\t\tflagResetNeeded = false;\n\t\tpartOfAPairedAlignment = isPartOfAPairedAlignment();\n\t\taProperPairedAlignment = isAProperPairedAlignment();\n\t\tunmapped = isUnmapped();\n\t\tmateUnMapped = isMateUnMapped();\n\t\treverseStrand = isReverseStrand();\n\t\tmateReverseStrand = isMateReverseStrand();\n\t\tfirstPair = isFirstPair();\n\t\tsecondPair = isSecondPair();\n\t\tnotAPrimaryAlignment = isNotAPrimaryAlignment();\n\t\tfailedQC = failedQC();\n\t\taDuplicate = isADuplicate();\n\t\t\n\t}", "@Override\n\tpublic void action() {\n\t\tsuppressed = false;\n\t\t//if (Settings.motorAAngle == -90) Settings.motorAAngle = -95;\n\n\t\tMotor.A.rotateTo(Settings.motorAAngle, true);\n\n\t\twhile (Motor.A.isMoving() && !Motor.A.isStalled() && !suppressed);\t\t\t\n\t\t\n\t\tMotor.A.stop();\n\t}", "public void setMoveRemainingStartsForward(boolean moveRemainingStartsForward)\r\n {\r\n m_moveRemainingStartsForward = moveRemainingStartsForward;\r\n }", "public boolean driveTruck(){\n\t\treturn driveTruck;\n\t}", "public boolean isForward() {\n return true;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Boolean isTurning();", "@Override\n protected void end() {\n drive.setEnabled(false);\n drive.setLeftPower(0);\n drive.setRightPower(0);\n }", "boolean initializeStop() {\n if (state != PlatformState.STARTED) {\n return false;\n }\n state = PlatformState.STOPPING;\n return true;\n }", "public void restoreValues() {\n drive_control.stopDriving();\n if (ACTUAL_DIFICULTY == EASY)\n drive_control.setSpeedScale(EASY_BASE_SPEED);\n if (ACTUAL_DIFICULTY == MEDIUM)\n drive_control.setSpeedScale(MEDIUM);\n if (ACTUAL_DIFICULTY == HARD)\n drive_control.setSpeedScale(HARD);\n drive_control.startDriving(getContext(), DriveControl.JOY_STICK);\n isUserControlAct = true;\n }", "public void liftDown() {\n set(m_defaultLiftSpeedDown);\n }", "@Override\r\n\tpublic void autonomous() {\n\r\n\t\tint autoMode = -1;\r\n\t\t\r\n\t\tif (!switch1.get() && !switch2.get() && !switch3.get()) {\r\n\t\t\t//if all the switches are off\r\n\t\t\tautoMode = 0;\r\n\t\t} else if (switch1.get() && !switch2.get() && !switch3.get()) {\r\n\t\t\tautoMode = 1;\r\n\t\t} else if (!switch1.get() && switch2.get() && !switch3.get()) {\r\n\t\t\tautoMode = 2;\r\n\t\t} else if (switch1.get() && switch2.get() && !switch3.get()) {\r\n\t\t\tautoMode = 3;\r\n\t\t}\r\n\r\n\t\tautotime.start();\r\n\r\n\t\t// double[] wheelSpeeds = new double[2];\r\n\t\t// double[] startCoords = {0, 0, Math.PI / 2};\r\n\t\t// double[] endCoords = {0, 1, Math.PI / 2};\r\n\t\t// AutoPath pathAuto = new AutoPath(startCoords, endCoords,\r\n\t\t// ahrs.getAngle());\r\n\t\t//\r\n\t\t// int i = 0;\r\n\t\t// boolean successfullyGrabbedRectangles = false;\r\n\t\t\r\n\t\tboolean shotGear = false;\r\n\t\t//boolean hasBackedUp = false;\r\n\t\twhile (isAutonomous() && isEnabled()) {\r\n\t\t\t// auto.drive(autoMode);\r\n\r\n\t\t\t// while(autotime.get() < 3) {\r\n\t\t\t// drive.drive(-0.9, -0.9);\r\n\t\t\t// }\r\n\r\n\t\t\t// grab the current switch status\r\n\r\n\t\t\tswitch (autoMode) {\r\n\t\t\tcase 0:\r\n\t\t\t\t//Mark: Drive forward\r\n\r\n\t\t\t\tif (autotime.get() < 3) {\r\n\t\t\t\t\tdrive.drive(-0.9, -0.9);\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase 1:\r\n\t\t\t\t// Mark: Drive Forward, NO turning, and shoot gear onto peg\r\n\r\n\t\t\t\tif (autotime.get() < 3) {\r\n\t\t\t\t\tdrive.drive(-0.75, -0.75);\r\n\t\t\t\t} else if(!shotGear) {\r\n\t\t\t\t\t// shoot the gear onto the peg\r\n\t\t\t\t\tgearOutput.autoOutput();\r\n\t\t\t\t\tshotGear = true;\r\n\t\t\t\t}else if(autotime.get() < 3.67) {\r\n\t\t\t\t\tdrive.drive(0.50, 0.50);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tdrive.drive(0,0);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tbreak;\r\n\t\t\tcase 2:\r\n\t\t\t\t//Mark: start LEFT of center, drive forward, turn -60 degrees, drive forward, shoot gear on peg\r\n\t\t\t\tif (autotime.get() < 2) {\r\n\t\t\t\t\tdrive.drive(-0.75, -0.75);\r\n\t\t\t\t} else if (autotime.get() < 2.5) {\r\n\t\t\t\t\tdrive.drive(1, 0);\r\n\t\t\t\t}else if(autotime.get() < 3.5) { \r\n\t\t\t\t\tdrive.drive(-.75,-.75);\r\n\t\t\t\t} else if (!shotGear) {\r\n\t\t\t\t\tgearOutput.autoOutput();\r\n\t\t\t\t\tshotGear = true;\r\n\t\t\t\t}else if(autotime.get() < 4.5) {\r\n\t\t\t\t\tdrive.drive(0.75, 0.75);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tdrive.drive(0,0);\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase 3:\r\n\t\t\t\t//Mark: start RIGHT of center, drive forward, turn 60 degrees, drive forward, shoot gear on peg\r\n\t\t\t\tif (autotime.get() < 2) {\r\n\t\t\t\t\tdrive.drive(-0.75, -0.75);\r\n\t\t\t\t} else if (autotime.get() < 2.25) {\r\n\t\t\t\t\tdrive.drive(0, 1);\r\n\t\t\t\t}else if(autotime.get() < 4) { \r\n\t\t\t\t\tdrive.drive(-.75,-.75);\r\n\t\t\t\t} else if (!shotGear) {\r\n\t\t\t\t\tgearOutput.autoOutput();\r\n\t\t\t\t\tshotGear = true;\r\n\t\t\t\t}else if(autotime.get() < 4.5) {\r\n\t\t\t\t\tdrive.drive(0.75, 0.75);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tdrive.drive(0,0);\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t\t// if(!successfullyGrabbedRectangles) {\r\n\t\t\t// Rectangle[] targets = grabRectangles();\r\n\t\t\t//\r\n\t\t\t//// System.out.println(\"-----\");\r\n\t\t\t//// for(Rectangle r : testing) {\r\n\t\t\t//// System.out.println(r.getArea());\r\n\t\t\t//// }\r\n\t\t\t//// System.out.println(\"-----\");\r\n\t\t\t//\r\n\t\t\t// if(targets[0].getArea() == 0) {\r\n\t\t\t// //since grabRectangles returns 1 rectangle with area of 0, so if\r\n\t\t\t// one of the area's\r\n\t\t\t// //equals 0, then it was a failed response\r\n\t\t\t// successfullyGrabbedRectangles = false;\r\n\t\t\t// }else{\r\n\t\t\t//\r\n\t\t\t// successfullyGrabbedRectangles = true;\r\n\t\t\t//\r\n\t\t\t// //call auto path to get the wheel speeds from the rectangle\r\n\t\t\t// pathAuto.makeNewPath(targets[0].getWidth(),\r\n\t\t\t// targets[1].getWidth(), targets[0].getXPos() - 240,\r\n\t\t\t// targets[1].getXPos() - 240, ahrs.getAngle());\r\n\t\t\t// //drive.drive(wheelSpeeds[0], wheelSpeeds[1]);\r\n\t\t\t//\r\n\t\t\t// }\r\n\t\t\t// }else{\r\n\t\t\t// //drive.drive(0,0);\r\n\t\t\t//\r\n\t\t\t// double[] wheelSpeedsFromPath = pathAuto.getWheelSpeeds(.4); //the\r\n\t\t\t// .4 doesn't mean anything at all; Beitel is just weird :^)\r\n\t\t\t// drive.drive(wheelSpeedsFromPath[0], wheelSpeedsFromPath[1]);\r\n\t\t\t// //System.out.println(\"Left:\" + wheelSpeedsFromPath[0]);\r\n\t\t\t// //System.out.println(\"Right: \" + wheelSpeedsFromPath[1]);\r\n\t\t\t// }\r\n\r\n\t\t}\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void carDriveModeChange() {\n\t\t\r\n\t}", "public boolean isSetSpeed() {\n return this.speed != null;\n }", "public void driveStraightBackwards(double speed) {\r\n \tspeed = Math.abs(speed);\r\n \tint angle = getGyroAngle();\r\n \tdrivetrain.drive(-1 * speed, angle * kP);\r\n \tTimer.delay(0.004); //4 millisecond delay to allow for gyro to calibrate\r\n }", "private boolean turnIfNeeded() {\n\t\tif (needToTurn()) {\n\t\t\tturnToDesiredDirection();\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "@Override\n\tpublic void drive() {\n\t\tif (gasoline > 0) {\n\t\t\tsetAccelerate(true);\n\t\t}\n\t}", "public void setResetTimeOnStop(boolean aFlag) { _resetTimeOnStop = aFlag; }", "private void setScreenProperty(boolean on) throws DeviceNotAvailableException {\n CLog.d(\"set svc power stay on \" + on);\n mTestDevice.executeShellCommand(\"svc power stayon \" + on);\n }", "private void controlLift()\n {\n if (gamepad1.dpad_up) {\n liftMotor.setPower(-0.5);\n } else if (gamepad1.dpad_down) {\n liftMotor.setPower(0.5);\n } else {++backInc;\n liftMotor.setPower(0);\n }\n }", "public void arcadeDrive(double forwardSpeed, double turnSpeed) {\n forwardSpeed = clipRange(forwardSpeed);\n turnSpeed = clipRange(turnSpeed);\n\n double[] wheelSpeeds = new double[2];\n wheelSpeeds[MotorType.kLeft.value] = forwardSpeed + turnSpeed;\n wheelSpeeds[MotorType.kRight.value] = forwardSpeed - turnSpeed;\n\n normalize(wheelSpeeds);\n\n motors[MotorType.kLeft.value].set(maxOutput * wheelSpeeds[0]);\n motors[MotorType.kRight.value].set(rightSideMultiplier * maxOutput * wheelSpeeds[1]);\n }", "public void completeStop(){\n motorFrontLeft.setPower(0);\n motorFrontRight.setPower(0);\n motorBackLeft.setPower(0);\n motorBackRight.setPower(0);\n }", "@Override\n public void initialize() {\n //manualActivated = !manualActivated;\n }", "protected void setAutoFallRate(long autoFallRate) {\r\n\t\tthis.autoFallRate = autoFallRate;\r\n\t}", "public void xsetDirectForward(org.apache.xmlbeans.XmlBoolean directForward)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlBoolean target = null;\n target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(DIRECTFORWARD$14, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(DIRECTFORWARD$14);\n }\n target.set(directForward);\n }\n }", "@Override\n\tpublic boolean gcSetAutoBackupAPScan(BluetoothDevice device, int option) {\n\t\treturn false;\n\t}", "@javax.annotation.Nullable\n @ApiModelProperty(example = \"true\", value = \"Indicates if call forwarding will be enabled for this number if forwards_to and forwarding_type are filled in. Defaults to true for backwards compatibility with APIV1 use of numbers endpoints.\")\n @JsonProperty(JSON_PROPERTY_CALL_FORWARDING_ENABLED)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public Boolean getCallForwardingEnabled() {\n return callForwardingEnabled;\n }", "public void forward()\n\t{ \n\t\tupdateState( MotorPort.FORWARD);\n\t}", "private void driveForwardEnc()\r\n\t{\r\n\t\t//drive.setPos(0, 0, Config.Auto.encDriveForwardDistance, Config.Auto.encDriveForwardDistance);\r\n\t}", "public void arcadeDrive() {\n\t\tif (fastBool) {\n\t\t\tmotorRB.set((joystickLYAxis + joystickLXAxis/2));\n\t\t\tmotorRF.set((joystickLYAxis + joystickLXAxis/2));\n\t\t\tmotorLB.set(-(joystickLYAxis - joystickLXAxis/2));\n\t\t\tmotorLF.set(-(joystickLYAxis - joystickLXAxis/2));\n\t\t} else {\n\t\t\tmotorRB.set((joystickLYAxis + joystickLXAxis/2)/2);\n\t\t\tmotorRF.set((joystickLYAxis + joystickLXAxis/2)/2);\n\t\t\tmotorLB.set(-(joystickLYAxis - joystickLXAxis/2)/2);\n\t\t\tmotorLF.set(-(joystickLYAxis - joystickLXAxis/2)/2);\n\t\t}\n\t}", "private boolean startApModeIfPossible() {\n if (canUseFeatureNow(Policy.Feature.WIFI_AP) && (mApIterations < WIFI_MAX_AP_COUNT)) {\n // we can use AP mode and we still didn't reach the max number of iteractions in AP mode\n mNetManager.createSavepoint();\n // switch to ap mode\n if (mNetManager.setApEnabled(true).or(false)) {\n // update beaconing state\n mWifiBeaconingState = WifiBeaconingState.AP_ENABLING;\n // stop sending beacons to neighbors, instead waits to receive them\n mBeaconingManager.stopWifiSender();\n // update number of ap mode iterations\n mApIterations++;\n return true;\n }\n Log.v(TAG, \"Could not switch to AP mode\");\n mNetManager.rollback();\n }\n return false;\n }", "public void setDriveSpeeds(double strafe, double forward, double rotate, double angle)\n {\n \tRobotMap.robotDrive.mecanumDrive_Cartesian(strafe, forward, rotate, angle);\n \tRobotMap.robotDrive.setInvertedMotor(RobotDrive.MotorType.kFrontLeft, true);\n \tRobotMap.robotDrive.setInvertedMotor(RobotDrive.MotorType.kRearLeft, true);\n\t\n }", "@DesignerProperty(editorType = PropertyTypeConstants.PROPERTY_TYPE_BOOLEAN,\n defaultValue = \"True\")\n @SimpleProperty\n public void StopBeforeDisconnect(boolean stopBeforeDisconnect) {\n this.stopBeforeDisconnect = stopBeforeDisconnect;\n }", "public boolean isStopSupported();", "public final void setAutoConsume(boolean value)\n {\n myAutoConsumeProperty.set(value);\n }", "@Override\n protected boolean syncUIControlState() {\n boolean disableControls = super.syncUIControlState();\n\n if (disableControls) {\n mBtnSwitchCamera.setEnabled(false);\n mBtnTorch.setEnabled(false);\n } else {\n boolean isDisplayingVideo = (this.hasDevicePermissionToAccess(Manifest.permission.CAMERA) && getBroadcastConfig().isVideoEnabled() && mWZCameraView.getCameras().length > 0);\n boolean isStreaming = getBroadcast().getStatus().isRunning();\n\n if (isDisplayingVideo) {\n WZCamera activeCamera = mWZCameraView.getCamera();\n\n boolean hasTorch = (activeCamera != null && activeCamera.hasCapability(WZCamera.TORCH));\n mBtnTorch.setEnabled(hasTorch);\n if (hasTorch) {\n mBtnTorch.setState(activeCamera.isTorchOn());\n }\n\n mBtnSwitchCamera.setEnabled(mWZCameraView.getCameras().length > 0);\n } else {\n mBtnSwitchCamera.setEnabled(false);\n mBtnTorch.setEnabled(false);\n }\n\n if (isStreaming && !mTimerView.isRunning()) {\n mTimerView.startTimer();\n } else if (getBroadcast().getStatus().isIdle() && mTimerView.isRunning()) {\n mTimerView.stopTimer();\n } else if (!isStreaming) {\n mTimerView.setVisibility(View.GONE);\n }\n }\n\n return disableControls;\n }", "public void DriveForwardSimple() {\n \ttheRobot.drive(-0.5, 0.0);\n }", "public void setStuckCall(){\n this.stuckCall = true;\n }", "@Override\n\tpublic void disabledInit() {\n\t\tRobot.driveSubsystem.setCoastMode();\n\t}", "public void autonomous() {\n /*myRobot.setSafetyEnabled(false);\n myRobot.drive(-0.5, 0.0);\t// drive forwards half speed\n Timer.delay(2.0);\t\t// for 2 seconds\n myRobot.drive(0.0, 0.0);\t// stop robot\n */\n \t/*gyro.reset();\n \twhile(isAutonomous()){\n \t\tdouble angle = gyro.getAngle();\n \tmyRobot.drive(0, -angle * Kp);\t\n \tTimer.delay(.004);\n \t}\n \tmyRobot.drive(0.0, 0.0);\n \t*/\n }", "public void setAgentForwarding(boolean enable){ \n agent_forwarding=enable;\n }", "public void autoStopBackward(boolean flag) throws JposException;", "private static void restartIfAutomaticOn(Context context) {\n Timber.i(\"method=restartIfAutomaticOn marker=RestartingTripDetectionServiceForAutomaticDetection\");\n //TODO Check if add restart to preferences\n //if (PreferencesManager.getInstance(context).getAutomatictTrackingSwitchState()) {\n startStartTripService(context, null);\n //}\n }", "public void forceStop() {\r\n\t\tchaseObj = false;\r\n\t}", "@Override\n public void teleopInit() {\n if (m_autonomousCommand != null) {\n m_autonomousCommand.cancel();\n }\n\n // Don't resume climbing\n IsHoldingBack = false;\n IsHoldingFront = false;\n\n safetyCount = 0;\n\n clearAllButtonStates();\n\n ArmsExtended = ArmsClosed = false;\n //ClimbFront.set(Value.kReverse);\n //ClimbBack.set(Value.kReverse);\n\n LiftSetpoint = Lifter.getSelectedSensorPosition();\n LiftRamp = new SRamp();\n LiftRamp.Rate = 300;\n LiftRamp.setOutput(Lifter.getSelectedSensorPosition());\n\n SpeedRamp = new SRamp();\n SpeedRamp.Rate = 0.06;\n SpeedRamp.setMaxAccelRate(0.004);\n\n VisionTable.getEntry(\"Tape\").setBoolean(true);\n\n Comp.start();\n }", "public synchronized void set (double speed){\n m_liftSpeed = speed;\n if (m_liftSpeed < 0 && isLowerLimit() == false) {\n m_liftMotor.set(m_liftSpeed);\n } else if (m_liftSpeed > 0 && isUpperLimit() == false){\n m_liftMotor.set(m_liftSpeed);\n } else {\n m_liftSpeed = 0;\n m_liftMotor.set(0); \n }\n }", "public void setupFocusable(){\n setFocusable(true);\n setFocusTraversalKeysEnabled(false);\n fwdButton.setFocusable(false);\n revButton.setFocusable(false);\n leftButton.setFocusable(false);\n rightButton.setFocusable(false);\n this.powerIcon.setFocusable(false);\n lServoWarn.setFocusable(false);\n startToggle.setFocusable(false);\n modeToggleButton.setFocusable(false);\n sensSlider.setFocusable(false);\n }", "public void setDirection() {\n frontLeft.setDirection(DcMotorSimple.Direction.REVERSE);\n backLeft.setDirection(DcMotorSimple.Direction.REVERSE);\n frontRight.setDirection(DcMotorSimple.Direction.FORWARD);\n backRight.setDirection(DcMotorSimple.Direction.FORWARD);\n }", "public synchronized void setTimeToWakeUpToFalse() {\n this.timeToWakeUp = false;\n }", "public void setFrontSpeed(double speed) { \r\n fmMotor.set(speed);\r\n }", "void accelerate() {\n isAccelerating = true;\n Bukkit.getScheduler().scheduleSyncRepeatingTask(Cars.getInstance(), new BukkitRunnable() {\n @Override\n public void run() {\n if (!isAccelerating) {\n cancel();\n return;\n } else if (CAR.getAcceleration(DIRECTION.getOpposite()).isAccelerating) {\n // Just stop the car if both cars are accelerating because it means the driver is holding down 's'\n // and 'w' at the same time.\n CAR.stopCompletely();\n return;\n }\n\n Minecart minecart = CAR.getMinecart();\n Vector velocity = minecart.getVelocity();\n velocity.add(/* TODO ACCELERATION direction*/new Vector());\n if (velocity.length() >= minecart.getMaxSpeed()) isAccelerating = false;\n minecart.setDerailedVelocityMod(velocity);\n }\n }, 1, 1);\n }", "@Override\n public void onRewordEnable(boolean arg0, boolean arg1) {\n\n }", "private void driveRight() {\n setSpeed(MAX_SPEED, MIN_SPEED);\n }", "public boolean getContinueFlag()\r\n {\r\n if (curTurn > 1) return false;\r\n return true;\r\n }", "public static void setBooleanSwitchPossible() {\n booleanSwitchPossible = true;\n }", "private void setupAutomotiveMode() {\n // reset the margin value for arrow view\n if (mArrowView != null) {\n mArrowView.setImageResource(R.drawable.automotive_common_arrow_down);\n MarginLayoutParams mlp = (MarginLayoutParams) mArrowView.getLayoutParams();\n if (null != mlp) {\n if (ActionBarUtil.IS_SUPPORT_RTL) {\n mlp.setMarginStart(mMeasureSpecM2);\n } else {\n mlp.leftMargin = mMeasureSpecM2;\n }\n mArrowView.setLayoutParams(mlp);\n }\n }\n }", "@Override\n public void stop() {\n leftFrontDrive.setPower(0.0);\n rightFrontDrive.setPower(0.0);\n leftRearDrive.setPower(0.0);\n rightRearDrive.setPower(0.0);\n\n // Disable Tracking when we are done;\n targetsUltimateGoal.deactivate();\n\n //closes object detection to save system resouces\n if (tfod != null) {\n tfod.shutdown();\n }\n }", "@Override\n public void cancelAutoFocus() {\n mCameraDevice.cancelAutoFocus();\n if (mCameraState != SELFTIMER_COUNTING\n && mCameraState != SNAPSHOT_IN_PROGRESS) {\n setCameraState(IDLE);\n }\n setCameraParameters(UPDATE_PARAM_PREFERENCE);\n isTouchCalled = false;\n }", "protected void setFlag() {\n flag = flagVal;\n }", "protected void setFlag() {\n flag = flagVal;\n }", "@Override\n\tpublic void autonomousInit() {\n\t\tRobot.driveSubsystem.shiftDown();\n\n\t\tRobot.driveSubsystem.setBrakeMode();\n\n\t\tm_autoCmd = m_chooser.getSelected();\n\t\tif (m_autoCmd != null) {\n\t\t\tm_autoCmd.start();\n\t\t}\n\t}", "public void stop(){\n started = false;\n for (DcMotor motor :this.motors) {\n motor.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n motor.setPower(0);\n }\n this.reset();\n }", "@Override\n protected void end() {\n mDrive.setSpeed(0.0, 0.0);\n }", "protected void setMotorStarted(boolean isStarted) {\n if (isDebugEnabled) {\n d(TAG, \"set floppy drives motor state: \" + (isStarted ? \"STARTED\" : \"STOPPED\"));\n }\n this.isMotorStarted = isStarted;\n }", "public void setAwake (boolean flag) {\n\t\tbody.setAwake(flag);\n\t}", "@Override\n public void start() {\n\n runtime.reset();\n currentSpeedRight = 0.0;\n currentSpeedLeft = 0.0;\n // currentSpeedArm = 0.0;\n currentLiftSpeed = 0.0;\n robot.rearTouch.setMode(DigitalChannel.Mode.INPUT);\n }", "@Override\n\tpublic void setEnabled(boolean flag) {\n\t\t\n\t}", "private static boolean moveForwardish() {\n if (moveForwardStrict()) return true;\n Direction f = forward;\n forward = f.rotateLeft();\n if (moveForwardStrict()) return true;\n forward = f.rotateRight();\n if (moveForwardStrict()) return true;\n forward = f;\n return false;\n }", "public void stop()\n {\n robot.FL_drive.setPower(0);\n robot.FR_drive.setPower(0);\n robot.BL_drive.setPower(0);\n robot.BR_drive.setPower(0);\n }", "public void setFlownThrough(boolean bool) {\r\n flownThrough = bool;\r\n }", "@javax.annotation.Nullable\n @ApiModelProperty(example = \"always\", value = \"Call forwarding type. 'forwards_to' must be set for this to have an effect.\")\n @JsonProperty(JSON_PROPERTY_FORWARDING_TYPE)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public ForwardingTypeEnum getForwardingType() {\n return forwardingType;\n }", "@Override\n protected void onEnable() {\n super.onEnable();\n setCameraControlMode(cameraMode);\n }", "public void setYourTurn(Boolean yourTurn) {\n this.yourTurn = yourTurn;\n }", "public void disabledInit()\n {\n //cam.stopCapture();\n m_USBVCommand.start();\n }", "public final void turnOver() {\n this.currentMovementAllowance = this.details.getMaxMovementAllowance();\n this.onTurnOver();\n }", "public void forceStart() {\r\n\t\tchaseObj = true;\r\n\t}", "public void forward() {\n forward(DEFAULT_SPEED);\n }", "protected boolean canUseOtherDirection() {\n return false;\n }", "private void clearRequestedToPauseOrResume() {\r\n requestedToPauseOrResume = false;\r\n }", "public boolean updateParametersFlashMode() {\n boolean bNeedUpdate = false;\n FlashMode flashMode = this.mCameraCapabilities.getStringifier().flashModeFromString(this.mActivity.getSettingsManager().getString(this.mAppController.getCameraScope(), Keys.KEY_FLASH_MODE));\n if (flashMode != FlashMode.OFF) {\n bNeedUpdate = true;\n }\n if (bNeedUpdate && this.mCameraSettings != null && FlashMode.TORCH == this.mCameraSettings.getCurrentFlashMode()) {\n this.mCameraSettings.setFlashMode(FlashMode.OFF);\n if (this.mCameraDevice != null) {\n this.mCameraDevice.applySettings(this.mCameraSettings);\n }\n }\n if (this.mCameraCapabilities.supports(flashMode) && this.mActivity.currentBatteryStatusOK()) {\n this.mCameraSettings.setFlashMode(flashMode);\n } else if (this.mCameraCapabilities.supports(FlashMode.OFF)) {\n this.mCameraSettings.setFlashMode(FlashMode.OFF);\n } else {\n this.mCameraSettings.setFlashMode(FlashMode.NO_FLASH);\n }\n if (!(this.mEvoFlashLock == null || this.mCameraSettings == null)) {\n Tag tag = TAG;\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"evo setFlashMode \");\n stringBuilder.append(FlashMode.OFF);\n Log.d(tag, stringBuilder.toString());\n }\n return bNeedUpdate;\n }" ]
[ "0.5978907", "0.5653047", "0.5582778", "0.55804795", "0.55722874", "0.5448406", "0.53815466", "0.5345135", "0.5322298", "0.529217", "0.5222079", "0.51959664", "0.5195593", "0.51745486", "0.5134072", "0.5133084", "0.51227874", "0.5065173", "0.5058528", "0.5049173", "0.50469345", "0.5029304", "0.50285447", "0.5026915", "0.5020871", "0.50174344", "0.49975574", "0.4990795", "0.49865824", "0.498016", "0.49759623", "0.49745277", "0.49714857", "0.4967733", "0.4958528", "0.49515152", "0.49497247", "0.49472886", "0.49427158", "0.49310687", "0.49224225", "0.49119183", "0.4911053", "0.4896646", "0.48929897", "0.4892701", "0.48883596", "0.48865697", "0.48860022", "0.48780906", "0.48721933", "0.48698726", "0.48643413", "0.48536786", "0.48530722", "0.4831174", "0.48291823", "0.4816864", "0.4813151", "0.48076674", "0.4799488", "0.47942275", "0.47845164", "0.4775792", "0.47756878", "0.477406", "0.4767663", "0.47628725", "0.47612214", "0.47595227", "0.47577786", "0.47538534", "0.47484088", "0.4743092", "0.4742095", "0.47382194", "0.473702", "0.47368425", "0.4731819", "0.4731819", "0.47277442", "0.4726752", "0.4726208", "0.47164625", "0.47154874", "0.47115198", "0.4711061", "0.4710518", "0.47093984", "0.46999305", "0.46983814", "0.4697966", "0.46962807", "0.46926382", "0.46901956", "0.46886063", "0.46867073", "0.46826512", "0.4680443", "0.4677112" ]
0.5520353
5
Final part of setting AutoStopForwardDelayTime. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result: Device is open, CapAutoStopForward is true, delay is FOREVER or positive, internal property AllowAlwaysSetProperties is true or delay equals the previous value of AutoStopForwardDelayTime.
public void autoStopForwardDelayTime(int delay) throws JposException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public native void setAutoDelay(int ms);", "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}", "private void updateAutoTriggerDelay(long delay) {\n if (mAutoTriggerDelay != delay) {\n mAutoTriggerDelay = delay;\n updateReachabilityStatus();\n }\n }", "boolean isSetPaymentDelay();", "public void setTolerableDelay(Integer tolerableDelay) {\n\t\tthis.tolerableDelay = tolerableDelay;\n\t}", "public void setStartDelay(long delay){\n if(delay < 0){\n delay = 0;\n }\n this.mStartDelay = delay;\n }", "public void setStartDelay(long startDelay) {\n/* 211 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void autoStopBackwardDelayTime(int delay) throws JposException;", "void setPaymentDelay(ch.crif_online.www.webservices.crifsoapservice.v1_00.PaymentDelay paymentDelay);", "public void setDelay(double clock);", "public void setDelay(long delay) {\n this.delay = delay;\n }", "public void setAutoResetDelay(int delay) {\n this.mAutoResetDelay = delay;\n }", "@Override\n public native int getAutoDelay();", "long getInitialDelayInSeconds();", "public boolean takeControl() {\n\t\treturn Project2a.curState == Project2a.RobotState.Forward && Project2a.getCurTime() - 500 > MoveForward.startTime;\n\t}", "public void setDelayMove(float delay_)\n\t{\n\t\tdelayMove=delayMove+delay_;\n\t}", "public void setDelay(int delay)\n {\n this.delay = delay;\n }", "public void setDelay(long d){delay = d;}", "public void setDelay(int delay) {\n this.delay = delay;\n }", "@Override\n public void maybeSetThrottleTimeMs(int throttleTimeMs) {\n }", "protected void setAutoFallRate(long autoFallRate) {\r\n\t\tthis.autoFallRate = autoFallRate;\r\n\t}", "public synchronized void setTimeToWakeUpToFalse() {\n this.timeToWakeUp = false;\n }", "public boolean canMove()\n\t{\n\t\tif(delayMove>compareSpeed())\n\t\t{\n\t\t\tdelayMove=0;\n\t\t\treturn true;\n\t\t\t\n\t\t}else\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "public void setDelayTime(int delayTime)\n\t{\n\t\tthis.delayTime = delayTime;\n\t\tthis.updateTimer.setDelay(delayTime);\n\t}", "public void setDelay(float time)\n\t{\n\t\tdelayMax=time;\n\t}", "public Integer getTolerableDelay() {\n\t\treturn tolerableDelay;\n\t}", "public void setDelay(int delay) {\n\t\t if (delay != this.delay) logger.info(\"New delay is: \"+getElapsedTimeHoursMinutesSecondsString(delay)); \n\t\t if (delay < this.delay) {\n\t\t\t scheduledFuture.cancel(true);\n\t\t\t reset(delay); \n\t\t }\n\t\t this.delay = delay;\n\t }", "public void processDelay() {\n if (errorCounter > 0) {\n if (delayCounter >= AppyAdService.getInstance().maxDelay()) {\n setAdProcessing(true);\n errorCounter = AppyAdService.getInstance().maxErrors() - 1;\n delayCounter = 0;\n }\n else delayCounter++;\n }\n }", "public void setMaxDelayTime(Long MaxDelayTime) {\n this.MaxDelayTime = MaxDelayTime;\n }", "public void setDelay(int delayValue)\r\n {\r\n\t timer.setDelay(delayValue);\r\n }", "public void setDroneDelay(int delay)\r\n {\r\n droneDelay=delay;\r\n }", "public void liftDown() {\n set(m_defaultLiftSpeedDown);\n }", "public boolean takeControl() {\n\t\tif (Squirrel.us.getDistance() <= 30 && Squirrel.notDetected)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "@Override\n public void setAutoTimeRequired(ComponentName who, boolean required) {\n if (!mHasFeature) {\n return;\n }\n Objects.requireNonNull(who, \"ComponentName is null\");\n final CallerIdentity caller = getCallerIdentity(who);\n\n boolean requireAutoTimeChanged = false;\n synchronized (getLockObject()) {\n Preconditions.checkCallAuthorization(!isManagedProfile(caller.getUserId()),\n \"Managed profile cannot set auto time required\");\n ActiveAdmin admin = getProfileOwnerOrDeviceOwnerLocked(caller);\n if (admin.requireAutoTime != required) {\n admin.requireAutoTime = required;\n saveSettingsLocked(caller.getUserId());\n requireAutoTimeChanged = true;\n }\n }\n // requireAutoTime is now backed by DISALLOW_CONFIG_DATE_TIME restriction, so propagate\n // updated restrictions to the framework.\n if (requireAutoTimeChanged) {\n pushUserRestrictions(caller.getUserId());\n }\n // Turn AUTO_TIME on in settings if it is required\n if (required) {\n mInjector.binderWithCleanCallingIdentity(\n () -> mInjector.settingsGlobalPutInt(Settings.Global.AUTO_TIME,\n 1 /* AUTO_TIME on */));\n }\n DevicePolicyEventLogger\n .createEvent(DevicePolicyEnums.SET_AUTO_TIME_REQUIRED)\n .setAdmin(who)\n .setBoolean(required)\n .write();\n }", "public void setDelayOnTouchOnly(boolean delayOnTouchOnly) {\n this.delayOnTouchOnly = delayOnTouchOnly;\n }", "public void setDelaytime(Long delaytime) {\n this.delaytime = delaytime;\n }", "public void strafeLeftTimer()\r\n\t{\r\n\t\tif(timer.get() < Config.Auto.timeStrafe)\r\n\t\t{\r\n\t\t\tdrive.setSpeed(0, 0, Config.Auto.strafeSpeed, Config.Auto.strafeSpeed);\r\n\t\t}\r\n\t\t\r\n\t\telse if(timer.get() < Config.Auto.timeDriveTowardTote)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"in second else if\");\r\n\t\t\tdrive.setSpeed(-Config.Auto.driveTowardToteSpeed, -Config.Auto.driveTowardToteSpeed, 0, 0);\r\n\t\t}\r\n\t\t\r\n\t\telse if(timer.get() < Config.Auto.timeStrafeBackwards)\r\n\t\t\tdrive.setSpeed(0, 0, -Config.Auto.strafeSpeed, -Config.Auto.strafeSpeed);\r\n\t\t\r\n\t\telse\r\n\t\t\tendRoutine();\r\n\t}", "private void emulateDelay() {\n try {\n Thread.sleep(700);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "private void showDelayTimeOptionDialog() {\n\t\t// TODO Auto-generated method stub\n\t\tCharSequence title = res.getString(R.string.stream_set_timer);\n\t\tfinal String[] delayTimeUIString = uiDisplayResource\n\t\t\t\t.getDelayTimeUIString();\n\t\tif (delayTimeUIString == null) {\n\t\t\tWriteLogToDevice.writeLog(\"[Error] -- SettingView: \",\n\t\t\t\t\t\"delayTimeUIString == null\");\n\t\t\treturn;\n\t\t}\n\t\tint length = delayTimeUIString.length;\n\n\t\tint curIdx = 0;\n\t\tUIInfo uiInfo = reflection.refecltFromSDKToUI(\n\t\t\t\tSDKReflectToUI.SETTING_UI_DELAY_TIME,\n\t\t\t\tcameraProperties.getCurrentCaptureDelay());\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tif (delayTimeUIString[i].equals(uiInfo.uiStringInSetting)) {\n\t\t\t\tcurIdx = i;\n\t\t\t}\n\t\t}\n\n\t\tDialogInterface.OnClickListener listener = new DialogInterface.OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\t\tint value = (Integer) reflection.refecltFromUItoSDK(\n\t\t\t\t\t\tUIReflectToSDK.SETTING_SDK_DELAY_TIME,\n\t\t\t\t\t\tdelayTimeUIString[arg1]);\n\t\t\t\tcameraProperties.setCaptureDelay(value);\n\t\t\t\tpreviewHandler.obtainMessage(\n\t\t\t\t\t\tGlobalApp.MESSAGE_UPDATE_UI_CAPTURE_DELAY)\n\t\t\t\t\t\t.sendToTarget();\n\t\t\t\targ0.dismiss();\n\t\t\t\tsettingValueList = getSettingValue();\n\t\t\t\tif (optionListAdapter == null) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\toptionListAdapter.notifyDataSetChanged();\n\t\t\t}\n\t\t};\n\t\tshowOptionDialog(title, delayTimeUIString, curIdx, listener, true);\n\t}", "public double getDelay();", "@Override\n public boolean getAutoTimeRequired() {\n if (!mHasFeature) {\n return false;\n }\n synchronized (getLockObject()) {\n ActiveAdmin deviceOwner = getDeviceOwnerAdminLocked();\n if (deviceOwner != null && deviceOwner.requireAutoTime) {\n // If the device owner enforces auto time, we don't need to check the PO's\n return true;\n }\n\n // Now check to see if any profile owner on any user enforces auto time\n for (Integer userId : mOwners.getProfileOwnerKeys()) {\n ActiveAdmin profileOwner = getProfileOwnerAdminLocked(userId);\n if (profileOwner != null && profileOwner.requireAutoTime) {\n return true;\n }\n }\n\n return false;\n }\n }", "public void setDelay(org.apache.axis.types.UnsignedInt delay) {\n this.delay = delay;\n }", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkAutoStandBy() {\n\t\tboolean flag = oTest.checkAutoStandBy();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "void setFastSpeed () {\n if (stepDelay == fastSpeed)\n return;\n stepDelay = fastSpeed;\n step();\n resetLoop();\n }", "public void setDelayedTimeout(int seconds);", "public void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t\t\n shooterArm.updateSmartDashboard();\n\t\tdriveTrain.getDegrees();\n\n\t\tvision.findGoal();\n\t\tvision.getGoalXAngleError();\n\t\tvision.getGoalArmAngle();\n\n\t\t// Stop auto mode if the robot is tilted too much\n\t\tif (Math.abs(driveTrain.getRobotPitch())<=60 && Math.abs(driveTrain.getRobotRoll())<=60)\n\t\t\ttimerTilt.reset();\n\t\t\n\t\t// For some reason, robot did not move in last match in auto, so this code is suspect\n\t\t// Do the Pitch/Roll values need to be zeroed?\n//\t\tif ( autonomousCommand != null && timerTilt.get()>0.5)\n//\t\t\tautonomousCommand.cancel();\n\n\t}", "@Override\n\t\t\tpublic int durationToWait() {\n\t\t\t\treturn getCarType() == 2 ? 60000 : 15000;\n\t\t\t}", "@Test\n public void testDelay() {\n long future = System.currentTimeMillis() + (rc.getRetryDelay() * 1000L);\n\n rc.delay();\n\n assertTrue(System.currentTimeMillis() >= future);\n }", "public boolean shouldHoldRecorderForSecond() {\n return true;\n }", "public int getDelayTime()\n\t{\n\t\treturn delayTime;\n\t}", "@Override\n\tpublic boolean takeControl() {\n\t\treturn (Math.abs(Motor.A.getTachoCount() - Settings.motorAAngle) > 5 || (Motor.A.getTachoCount() == 0 && Settings.motorAAngle == -90));\n\t}", "public void setDelay(int delay) {\n\t\ttimer.setInitialDelay(delay);\n\t}", "@Override\n public synchronized void enableIfPossible() {\n if (!enabled && analyticNotificationConfig != null) {\n if (lastNotificationTimeMs == null) {\n reset();\n\n } else {\n // See if we should resume notifications.\n if (analyticNotificationConfig.getResumeAfter() != null) {\n final Instant resumeTime = SimpleDurationUtil.plus(\n lastNotificationTimeMs,\n analyticNotificationConfig.getResumeAfter());\n final Instant now = Instant.now();\n if (now.isAfter(resumeTime)) {\n reset();\n }\n }\n }\n }\n }", "public void autonomousPeriodic() {\n //Scheduler.getInstance().run();\n /** if(autoLoopCounter < 100) { //Checks to see if the counter has reached 100 yet\n myRobot.drive(-0.5, 0.0); //If the robot hasn't reached 100 packets yet, the robot is set to drive forward at half speed, the next line increments the counter by 1\n autoLoopCounter++;\n } else {\n myRobot.drive(0.0, 0.0); //If the robot has reached 100 packets, this line tells the robot to stop\n }*/\n }", "public long getDelay();", "@java.lang.Override\n public long getStateChangeDelayUntilTurn() {\n return stateChangeDelayUntilTurn_;\n }", "public DraggableBehavior setDelay(int delay)\n\t{\n\t\tthis.options.put(\"delay\", delay);\n\t\treturn this;\n\t}", "@Override\n public void autonomousPeriodic() {\n \n //Switch is used to switch the autonomous code to whatever was chosen\n // on your dashboard.\n //Make sure to add the options under m_chooser in robotInit.\n switch (m_autoSelected) {\n case kCustomAuto:\n // Put custom auto code here\n break;\n case kDefaultAuto:\n default:\n if (m_timer.get() < 2.0){\n m_driveTrain.arcadeDrive(0.5, 0); //drive forward at half-speed\n } else {\n m_driveTrain.stopMotor(); //stops motors once 2 seconds have elapsed\n }\n break;\n }\n }", "@java.lang.Override\n public long getStateChangeDelayUntilTurn() {\n return stateChangeDelayUntilTurn_;\n }", "@Override\n protected void initialize() {\n desiredTime = System.currentTimeMillis() + (long) (seconds * 1000);\n Robot.driveTrain.configForTeleopMode();\n }", "void setNormalSpeed () {\n if (stepDelay == normalSpeed)\n return;\n stepDelay = normalSpeed;\n resetLoop();\n }", "public Builder setStateChangeDelayUntilTurn(long value) {\n \n stateChangeDelayUntilTurn_ = value;\n onChanged();\n return this;\n }", "public int getDelay() {\r\n return delay;\r\n }", "public long getDelay() {\n return mDelay;\n }", "private void changeDelay() {\n delay = ((int) (Math.random() * 10000) + 1000) / MAX_FRAMES;\n }", "private void setup3AControlsLocked(CaptureRequest.Builder builder) {\n builder.set(CaptureRequest.CONTROL_MODE,\n CaptureRequest.CONTROL_MODE_AUTO);\n\n Float minFocusDist =\n mCharacteristics.get(CameraCharacteristics.LENS_INFO_MINIMUM_FOCUS_DISTANCE);\n\n // If MINIMUM_FOCUS_DISTANCE is 0, lens is fixed-focus and we need to skip the AF run.\n mNoAFRun = (minFocusDist == null || minFocusDist == 0);\n\n if (!mNoAFRun) {\n // If there is a \"continuous picture\" mode available, use it, otherwise default to AUTO.\n if (contains(mCharacteristics.get(\n CameraCharacteristics.CONTROL_AF_AVAILABLE_MODES),\n CaptureRequest.CONTROL_AF_MODE_CONTINUOUS_PICTURE)) {\n builder.set(CaptureRequest.CONTROL_AF_MODE,\n CaptureRequest.CONTROL_AF_MODE_CONTINUOUS_PICTURE);\n } else {\n builder.set(CaptureRequest.CONTROL_AF_MODE,\n CaptureRequest.CONTROL_AF_MODE_AUTO);\n }\n }\n\n // If there is an auto-magical flash control mode available, use it, otherwise default to\n // the \"on\" mode, which is guaranteed to always be available.\n if (mNowFlashState != FlashState.CLOSE) {\n if (contains(mCharacteristics.get(\n CameraCharacteristics.CONTROL_AE_AVAILABLE_MODES),\n CaptureRequest.CONTROL_AE_MODE_ON_AUTO_FLASH)) {\n builder.set(CaptureRequest.CONTROL_AE_MODE,\n CaptureRequest.CONTROL_AE_MODE_ON_AUTO_FLASH);\n } else {\n builder.set(CaptureRequest.CONTROL_AE_MODE,\n CaptureRequest.CONTROL_AE_MODE_ON);\n }\n }\n\n // If there is an auto-magical white balance control mode available, use it.\n if (contains(mCharacteristics.get(\n CameraCharacteristics.CONTROL_AWB_AVAILABLE_MODES),\n CaptureRequest.CONTROL_AWB_MODE_AUTO)) {\n // Allow AWB to run auto-magically if this device supports this\n builder.set(CaptureRequest.CONTROL_AWB_MODE,\n CaptureRequest.CONTROL_AWB_MODE_AUTO);\n }\n }", "@Override\n public void periodic()\n {\n if(AutoIntake)\n intake(-0.2f, -0.5f);\n }", "protected boolean canFire()\n\t\t{\n\t\treturn ( TimeUtils.timeSinceMillis(startTime) > this.fireDelay );\n\t\t}", "public Long getAutomaticStartupActionDelay() {\n return automaticStartupActionDelay;\n }", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tif (edu.wpi.first.wpilibj.DriverStation.getInstance().getMatchTime() > 12.3) {\n\t\t\tdrive(0.3, 0.0);\n\t\t} else {\n\t\t\tdrive(0.0, 0.0);\n\t\t}\n\t}", "@WithName(\"schedule.delay\")\n @WithDefault(\"5s\")\n Duration scheduleDelay();", "public boolean updateParametersFlashMode() {\n boolean bNeedUpdate = false;\n FlashMode flashMode = this.mCameraCapabilities.getStringifier().flashModeFromString(this.mActivity.getSettingsManager().getString(this.mAppController.getCameraScope(), Keys.KEY_FLASH_MODE));\n if (flashMode != FlashMode.OFF) {\n bNeedUpdate = true;\n }\n if (bNeedUpdate && this.mCameraSettings != null && FlashMode.TORCH == this.mCameraSettings.getCurrentFlashMode()) {\n this.mCameraSettings.setFlashMode(FlashMode.OFF);\n if (this.mCameraDevice != null) {\n this.mCameraDevice.applySettings(this.mCameraSettings);\n }\n }\n if (this.mCameraCapabilities.supports(flashMode) && this.mActivity.currentBatteryStatusOK()) {\n this.mCameraSettings.setFlashMode(flashMode);\n } else if (this.mCameraCapabilities.supports(FlashMode.OFF)) {\n this.mCameraSettings.setFlashMode(FlashMode.OFF);\n } else {\n this.mCameraSettings.setFlashMode(FlashMode.NO_FLASH);\n }\n if (!(this.mEvoFlashLock == null || this.mCameraSettings == null)) {\n Tag tag = TAG;\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"evo setFlashMode \");\n stringBuilder.append(FlashMode.OFF);\n Log.d(tag, stringBuilder.toString());\n }\n return bNeedUpdate;\n }", "public void strafeRightTimer()\r\n\t{\r\n\t\tif(timer.get() < Config.Auto.timeStrafe)\r\n\t\t{\r\n\t\t\tdrive.setSpeed(0, 0, Config.Auto.strafeSpeed, Config.Auto.strafeSpeed);\r\n\t\t}\r\n\t\t\r\n\t\telse if(timer.get() < Config.Auto.timeDriveTowardTote)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"in second else if\");\r\n\t\t\tdrive.setSpeed(Config.Auto.driveTowardToteSpeed, Config.Auto.driveTowardToteSpeed, 0, 0);\r\n\t\t}\r\n\t\t\r\n\t\telse if(timer.get() < Config.Auto.timeStrafeBackwards)\r\n\t\t\tdrive.setSpeed(0, 0, -Config.Auto.strafeSpeed, -Config.Auto.strafeSpeed);\r\n\t\t\r\n\t\telse\r\n\t\t\tendRoutine();\r\n\t}", "public int getDelay() {\r\n\t\treturn delay;\r\n\t}", "public int getDelay()\r\n {\r\n return this.delay;\r\n }", "public void crawlDelay()\n\t{\n//\t\tint delay = robot.getCrawlDelay(best_match);\n//\t\tif (delay!=-1)\n//\t\t{\n//\t\t\ttry \n//\t\t\t{\n//\t\t\t\tTimeUnit.SECONDS.sleep(robot.getCrawlDelay(best_match));\n//\t\t\t} \n//\t\t\tcatch (InterruptedException e) \n//\t\t\t{\n//\t\t\t\treturn;\n//\t\t\t}\n//\t\t}\n\t}", "public void setSpeed() {\r\n\t\tint delay = 0;\r\n\t\tint value = h.getS(\"speed\").getValue();\r\n\t\t\r\n\t\tif(value == 0) {\r\n\t\t\ttimer.stop();\r\n\t\t} else if(value >= 1 && value < 50) {\r\n\t\t\tif(!timer.isRunning()) {\r\n\t\t\t\ttimer.start();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//exponential function. value (1) == delay (5000). value (50) == delay (25)\r\n\t\t\tdelay = (int)(a1 * (Math.pow(25/5000.0000, value / 49.0000)));\r\n\t\t} else if(value >= 50 && value <= 100) {\r\n\t\t\tif(!timer.isRunning()) {\r\n\t\t\t\ttimer.start();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//exponential function. value (50) == delay(25). value (100) == delay (1)\r\n\t\t\tdelay = (int)(a2 * (Math.pow(1/25.0000, value/50.0000)));\r\n\t\t}\r\n\t\ttimer.setDelay(delay);\r\n\t}", "public int getDelay() {\n return delay;\n }", "private void delayStart() {\n try {\n Thread.sleep(3000);\n } catch (InterruptedException e) {\n LOGGER.error(\"Could not sleep\", e);\n }\n }", "public void liftUp(){\n set(m_defaultLiftSpeedUp);\n }", "@Override\n\tpublic void teleopPeriodic() {\n\t\tRobot.intakeSubsystem._getSpeed();\n\n\t\tRobot.driveSubsystem.operatorOverride();\n\t\tScheduler.getInstance().run();\n\n\t\tTargetRegion boilerTarget = Robot.navigator.getBoilerTarget();\n\t\tif (boilerTarget != null) {\n\t\t\tSmartDashboard.putNumber(\"Target Center X\", boilerTarget.m_centerTop);\n\t\t\tSmartDashboard.putNumber(\"Target Center Y\", boilerTarget.m_bounds.m_top);\n\t\t} else {\n\t\t\tSmartDashboard.putNumber(\"Target Center X\", -1);\n\t\t\tSmartDashboard.putNumber(\"Target Center Y\", -1);\n\t\t}\n\t}", "public void setDelay(BigDecimal delay) {\r\n this.delay = delay;\r\n }", "int getChronicDelayTime();", "void unsetPaymentDelay();", "@Override\n public void setExecutionDelayTime(double delayTime)\n {\n this.executionDelayTime = delayTime;\n }", "public int getDelayedTimeout();", "public long getDelay()\n {\n return delay;\n }", "private boolean turnIfNeeded() {\n\t\tif (needToTurn()) {\n\t\t\tturnToDesiredDirection();\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean adaptiveRateControlEnabled();", "public T setDelay(float delay)\n\t{\n\t\tthis.delay = delay;\n\t\treturn (T) this;\n\t}", "private void resetCooldown() {\n nextAttack = tower.getFireFrequency();\n }", "public final void turnOver() {\n this.currentMovementAllowance = this.details.getMaxMovementAllowance();\n this.onTurnOver();\n }", "@Override\n public void periodic() {\n SmartDashboard.putBoolean(\"Climber Safety Mode: \", Robot.m_oi.getSafety());\n\n if (Robot.m_oi.getSafety()) {\n \t\tif (Robot.m_oi.getClimbUp()) {\n // if (printDebug) {\n // System.out.println(\"Climb: up speed = \" + speed);\n // }\n // talonMotor.setInverted(false); // do not reverse motor\n talonMotor.set(-speed); // activate motor\n\n \t\t} else if (Robot.m_oi.getClimbDown()) {\n // if (printDebug) {\n // System.out.println(\"IntakeArm: retract speed = \" + speed);\n // }\n // talonMotor.setInverted(true); // reverse motor\n talonMotor.set(speed);\n \n \t\t} else { // else no hand button pressed, so stop motor\n talonMotor.set(0);\n }\n\n if (climbState == 0 && Robot.m_oi.getClimbUp()) {\n climbState = 1;\n }\n\n if (climbState == 1 && Robot.m_oi.getClimbDown()) {\n climbState = 2;\n }\n\n if (climbState == 2 && talonMotor.getSensorCollection().isFwdLimitSwitchClosed()) {\n // Activiate the solenoid\n RobotMap.solenoid.extendSolenoid(true);\n }\n }\n }", "public void setRetryDelay(long retryDelay) {\n this.retryDelay = retryDelay;\n }", "public void driveStraightBackwards(double speed) {\r\n \tspeed = Math.abs(speed);\r\n \tint angle = getGyroAngle();\r\n \tdrivetrain.drive(-1 * speed, angle * kP);\r\n \tTimer.delay(0.004); //4 millisecond delay to allow for gyro to calibrate\r\n }", "int getAbsoluteMaximumDelay();", "public long getDelay() {\n return this.delay;\n }", "public int getDelay()\n {\n return delay;\n }", "public boolean timeToRefresh() {\n if (tozAdCampaignRetrievalCounter == null) {\n return (true);\n }\n else if (tozAdCampaignRetrievalInterval != 0) {\n tozAdCampaignRetrievalCounter += getSleepInterval();\n\n AppyAdService.getInstance().debugOut(TAG,\"Ad Campaign refresh counter=\"+tozAdCampaignRetrievalCounter);\n if (tozAdCampaignRetrievalCounter >= tozAdCampaignRetrievalInterval) {\n tozAdCampaignRetrievalCounter = 0;\n return (true);\n }\n }\n return (false);\n }", "@Override\n public int getRetryDelay() {\n return retryDelay;\n }" ]
[ "0.61960846", "0.61035347", "0.5966795", "0.5699695", "0.5686104", "0.560414", "0.55897164", "0.5575503", "0.55718076", "0.5568489", "0.5531601", "0.55141824", "0.54998523", "0.5492618", "0.54809237", "0.5448325", "0.5435209", "0.54170436", "0.53934014", "0.53741693", "0.535004", "0.5339882", "0.5333097", "0.529621", "0.52946556", "0.52884114", "0.52698904", "0.525728", "0.5249967", "0.52197653", "0.51893735", "0.5172093", "0.51705915", "0.5170153", "0.5155417", "0.5138689", "0.5125903", "0.51124245", "0.5110755", "0.50983566", "0.5094032", "0.5079114", "0.50781024", "0.5070273", "0.50464046", "0.50261605", "0.5023537", "0.5004933", "0.5002386", "0.4999319", "0.49795723", "0.49770957", "0.49732983", "0.49664885", "0.4961947", "0.4956156", "0.49492177", "0.49457747", "0.4941169", "0.49407214", "0.4938028", "0.4926661", "0.49229163", "0.49191803", "0.49166", "0.49057677", "0.49043092", "0.49031615", "0.48995602", "0.48958087", "0.48949748", "0.48809266", "0.48752266", "0.4859737", "0.48572215", "0.48492637", "0.48446268", "0.48337442", "0.48301727", "0.4830065", "0.4827152", "0.48246342", "0.48221865", "0.48182598", "0.4816847", "0.48040673", "0.48026907", "0.4802121", "0.4799738", "0.47966763", "0.47865313", "0.47862446", "0.47822952", "0.47745165", "0.47704917", "0.47693503", "0.47677514", "0.47656012", "0.476417", "0.47633207" ]
0.6088543
2
Final part of AdjustItemCount method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result: Device is enabled, Specified direction is AIC_BACKWARD or AIC_FORWARD, If direction is AIC_FORWARD, CapAutoStopForwardItemCount is true, If direction is AIC_BACKWARD, CapAutoStopBackwardItemCount is true.
public void adjustItemCount(int direction, int count) throws JposException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void resetItemCount(int direction) throws JposException;", "@Override\n public void onCardSwiped(Direction direction) {\n Log.d(TAG, \"onCardSwiped: p=\" + manager.getTopPosition() + \" d=\" + direction);\n if (direction == Direction.Right){\n //add into like list\n swipeLike();\n }\n if (direction == Direction.Top){\n //add into like list\n swipeLike();\n }\n if (direction == Direction.Left){\n\n }\n if (direction == Direction.Bottom){\n\n }\n // Paginating if top position exceed max item count\n if (manager.getTopPosition() == adapter.getItemCount() - 5){\n paginate();\n }\n\n }", "@Test\n\tpublic void testLimits() throws DeviceException {\n\t\tsetUpIncrement();\n\t\tdouble lastPos = INITIAL_POSITION;\n\t\tfor (int i = 0; i < 100; i++) {\n\t\t\tfinal double currentPos = (double) monitor.getPosition();\n\t\t\tassertTrue(Math.abs(currentPos - lastPos) > 0.001);\n\t\t\tassertTrue(currentPos - UPPER_LIMIT < 0.001);\n\t\t\tassertTrue(currentPos - LOWER_LIMIT > 0.001);\n\t\t\tlastPos = currentPos;\n\t\t}\n\t}", "private void changeDirectionIfReachedPacingAreaMax()\n {\n int totalDistance = Math.abs(xTotalDistance);\n\n if (totalDistance > this.currentDistance)\n {\n this.nextDirection();\n //this.isFollowLimitedByTerrain = false;\n }\n }", "@Override\n\tpublic boolean isAdvanceable() {\n\t\treturn false;\n\t}", "public void updateIndication() {\n int i;\n if (TextUtils.isEmpty(this.mTransientIndication)) {\n this.mWakeLock.setAcquired(false);\n }\n Log.i(\"KeyguardIndication\", \"updateIndication: mVisible \" + this.mVisible + \" mDozing \" + this.mDozing + \" mTransientIndication \" + this.mTransientIndication + \" mPowerPluggedIn \" + this.mPowerPluggedIn + \" mShouldUpdateBatteryIndication \" + this.mShouldUpdateBatteryIndication + \" mUpArrowIndication \" + this.mUpArrowIndication);\n if (this.mVisible) {\n if (this.mDozing) {\n if (!TextUtils.isEmpty(this.mTransientIndication)) {\n this.mTextView.switchIndication((CharSequence) this.mTransientIndication);\n this.mTextView.setTextColor(this.mTransientTextColor);\n } else {\n this.mTextView.switchIndication((CharSequence) null);\n }\n } else if (!TextUtils.isEmpty(this.mTransientIndication)) {\n this.mTextView.switchIndication((CharSequence) this.mTransientIndication);\n this.mTextView.setTextColor(this.mTransientTextColor);\n } else if (this.mPowerPluggedIn) {\n if (this.mShouldUpdateBatteryIndication) {\n this.mHandler.removeMessages(6);\n this.mHandler.sendEmptyMessageDelayed(6, 500);\n }\n } else if (Build.IS_CM_CUSTOMIZATION_TEST && this.mSignalAvailable && !this.mIsCMSingleClicking) {\n this.mTextView.switchIndication((int) R.string.emergency_call_string);\n this.mTextView.setTextColor(getTextColor());\n } else if (this.mUpdateMonitor.isFaceUnlock() && this.mUpdateMonitor.isStayScreenFaceUnlockSuccess() && shouldShowFaceTransientIndication()) {\n this.mTextView.switchIndication((int) R.string.face_unlock_success);\n this.mTextView.setTextColor(getTextColor());\n } else if (!TextUtils.isEmpty(this.mUpArrowIndication)) {\n this.mTextView.switchIndication((CharSequence) this.mUpArrowIndication);\n this.mTextView.setTextColor(getTextColor());\n ImageView imageView = this.mUpArrow;\n if (this.mDarkMode) {\n i = R.drawable.miui_default_lock_screen_up_arrow_dark;\n } else {\n i = R.drawable.miui_default_lock_screen_up_arrow;\n }\n imageView.setImageResource(i);\n } else {\n this.mTextView.switchIndication((CharSequence) this.mRestingIndication);\n this.mTextView.setTextColor(getTextColor());\n }\n }\n }", "public int howManyAvailable(Item i){/*NOT IMPLEMENTED*/return 0;}", "public void updatePageAccessibilityActions() {\n int itemCount;\n ViewPager2 viewPager2 = ViewPager2.this;\n int i = 16908360;\n ViewCompat.removeAccessibilityAction(viewPager2, 16908360);\n ViewCompat.removeAccessibilityAction(viewPager2, 16908361);\n ViewCompat.removeAccessibilityAction(viewPager2, 16908358);\n ViewCompat.removeAccessibilityAction(viewPager2, 16908359);\n if (ViewPager2.this.getAdapter() != null && (itemCount = ViewPager2.this.getAdapter().getItemCount()) != 0 && ViewPager2.this.isUserInputEnabled()) {\n if (ViewPager2.this.getOrientation() == 0) {\n boolean isRtl = ViewPager2.this.isRtl();\n int i2 = isRtl ? 16908360 : 16908361;\n if (isRtl) {\n i = 16908361;\n }\n if (ViewPager2.this.mCurrentItem < itemCount - 1) {\n ViewCompat.replaceAccessibilityAction(viewPager2, new AccessibilityNodeInfoCompat.AccessibilityActionCompat(i2, (CharSequence) null), (CharSequence) null, this.mActionPageForward);\n }\n if (ViewPager2.this.mCurrentItem > 0) {\n ViewCompat.replaceAccessibilityAction(viewPager2, new AccessibilityNodeInfoCompat.AccessibilityActionCompat(i, (CharSequence) null), (CharSequence) null, this.mActionPageBackward);\n return;\n }\n return;\n }\n if (ViewPager2.this.mCurrentItem < itemCount - 1) {\n ViewCompat.replaceAccessibilityAction(viewPager2, new AccessibilityNodeInfoCompat.AccessibilityActionCompat(16908359, (CharSequence) null), (CharSequence) null, this.mActionPageForward);\n }\n if (ViewPager2.this.mCurrentItem > 0) {\n ViewCompat.replaceAccessibilityAction(viewPager2, new AccessibilityNodeInfoCompat.AccessibilityActionCompat(16908358, (CharSequence) null), (CharSequence) null, this.mActionPageBackward);\n }\n }\n }", "public void adjustVolume(int direction) {\n Message msg = mHandler.obtainMessage(MESSAGE_ADJUST_VOLUME, direction, 0);\n mHandler.sendMessage(msg);\n }", "int increaseCapacity(int expectedCapacity)\r\n/* 425: */ {\r\n/* 426:456 */ int newCapacity = this.elements.length;\r\n/* 427:457 */ int maxCapacity = this.maxCapacity;\r\n/* 428: */ do\r\n/* 429: */ {\r\n/* 430:459 */ newCapacity <<= 1;\r\n/* 431:460 */ } while ((newCapacity < expectedCapacity) && (newCapacity < maxCapacity));\r\n/* 432:462 */ newCapacity = Math.min(newCapacity, maxCapacity);\r\n/* 433:463 */ if (newCapacity != this.elements.length) {\r\n/* 434:464 */ this.elements = ((Recycler.DefaultHandle[])Arrays.copyOf(this.elements, newCapacity));\r\n/* 435: */ }\r\n/* 436:467 */ return newCapacity;\r\n/* 437: */ }", "public void setCurrentItemInternal(int i, boolean z) {\n RecyclerView.Adapter adapter = getAdapter();\n if (adapter == null) {\n if (this.mPendingCurrentItem != -1) {\n this.mPendingCurrentItem = Math.max(i, 0);\n }\n } else if (adapter.getItemCount() > 0) {\n int min = Math.min(Math.max(i, 0), adapter.getItemCount() - 1);\n if (min == this.mCurrentItem && this.mScrollEventAdapter.isIdle()) {\n return;\n }\n if (min != this.mCurrentItem || !z) {\n double d = (double) this.mCurrentItem;\n this.mCurrentItem = min;\n this.mAccessibilityProvider.onSetNewCurrentItem();\n if (!this.mScrollEventAdapter.isIdle()) {\n d = this.mScrollEventAdapter.getRelativeScrollPosition();\n }\n this.mScrollEventAdapter.notifyProgrammaticScroll(min, z);\n if (!z) {\n this.mRecyclerView.scrollToPosition(min);\n return;\n }\n double d2 = (double) min;\n if (Math.abs(d2 - d) > 3.0d) {\n this.mRecyclerView.scrollToPosition(d2 > d ? min - 3 : min + 3);\n RecyclerView recyclerView = this.mRecyclerView;\n recyclerView.post(new SmoothScrollToPosition(min, recyclerView));\n return;\n }\n this.mRecyclerView.smoothScrollToPosition(min);\n }\n }\n }", "@Override\n boolean shouldFlush(TYPE item) {\n // increment the current item count, and get the modulus of size\n currentItem = ++currentItem % size;\n // if the modulus is 0, we've hit our max, and we flush the list\n return currentItem == 0;\n }", "@Test(expected=UnavailableItemException.class)\n\tpublic void testUnavailableItems() throws Exception {\n\t\td.dispense(50, 5);\n\t\td.dispense(50, 18);\n\t\td.dispense(50, 20);\n\t}", "public void dataSetChanged() {\n int count = this.mAdapter.getCount();\n this.mExpectedAdapterCount = count;\n boolean z = this.mItems.size() < (this.mOffscreenPageLimit * 2) + 1 && this.mItems.size() < count;\n int i = this.mCurItem;\n this.mChangeData = true;\n boolean z2 = z;\n int i2 = i;\n int i3 = 0;\n boolean z3 = false;\n while (i3 < this.mItems.size()) {\n ItemInfo itemInfo = this.mItems.get(i3);\n int itemPosition = this.mAdapter.getItemPosition(itemInfo.object);\n if (itemPosition != -1) {\n if (itemPosition == -2) {\n this.mItems.remove(i3);\n i3--;\n if (!z3) {\n this.mAdapter.startUpdate((ViewGroup) this);\n z3 = true;\n }\n this.mAdapter.destroyItem((ViewGroup) this, itemInfo.position, itemInfo.object);\n if (this.mCurItem == itemInfo.position) {\n i2 = Math.max(0, Math.min(this.mCurItem, count - 1));\n }\n } else if (itemInfo.position != itemPosition) {\n if (itemInfo.position == this.mCurItem) {\n i2 = itemPosition;\n }\n itemInfo.position = itemPosition;\n }\n z2 = true;\n }\n i3++;\n }\n if (z3) {\n this.mAdapter.finishUpdate((ViewGroup) this);\n }\n if (z2) {\n int childCount = getChildCount();\n for (int i4 = 0; i4 < childCount; i4++) {\n LayoutParams layoutParams = (LayoutParams) getChildAt(i4).getLayoutParams();\n if (!layoutParams.isDecor) {\n layoutParams.widthFactor = 0.0f;\n }\n }\n setCurrentItemInternal(i2, false, true);\n requestLayout();\n }\n }", "public boolean prepareNextAd() {\n boolean retVal = false;\n\n if (tozAdCampaign.size() <= 1) return (retVal);\n\n AppyAdService.getInstance().debugOut(TAG,\"Preparing next Ad... indexes: current=\"+curAd+\", next=\"+nextAd+\", base=\"+baseAd+\", last=\"+lastAd+\", repeatCycle=\"+repeatCycle);\n\n if ((repeatCycle != null) && (repeatCycle < 0)) return (false);\n\n if (curAd < lastAd) {\n nextAd = curAd + 1;\n retVal = true;\n AppyAdService.getInstance().debugOut(TAG,\"Prepared next Ad... next=\"+nextAd);\n }\n else if ((curAd == lastAd) && (curAd != baseViewIndex)) {\n nextAd = baseViewIndex;\n retVal = true;\n AppyAdService.getInstance().debugOut(TAG,\"Prepped next Ad... next=\"+nextAd+\" (Set to base view index, pending repeat cycle check.)\");\n if (repeatCycle != null) {\n repeatCycle--;\n if (repeatCycle < 0) {\n if (finalViewIndex != null) {\n if (finalViewIndex > lastAd) finalViewIndex = lastAd;\n if (finalViewIndex < 0) finalViewIndex = 0;\n nextAd = finalViewIndex;\n AppyAdService.getInstance().debugOut(TAG,\"Prepared next Ad... next=\"+nextAd+\" (Set to final view index)\");\n }\n }\n }\n }\n\n return (retVal);\n }", "private void manageSwipe() {\n\n mAudioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);\n\n mSwipe = new Swipe();\n\n mSubscription = mSwipe.observe()\n .subscribeOn(Schedulers.computation())\n .observeOn(AndroidSchedulers.mainThread())\n .subscribe(new Action1<SwipeEvent>() {\n @Override\n public void call(final SwipeEvent swipeEvent) {\n\n switch (swipeEvent) {\n case SWIPING_DOWN:\n case SWIPING_UP:\n case SWIPING_LEFT:\n case SWIPING_RIGHT:\n break;\n case SWIPED_DOWN:\n mAudioManager.adjustStreamVolume(AudioManager.STREAM_MUSIC, AudioManager.ADJUST_LOWER, AudioManager.FLAG_SHOW_UI);\n break;\n case SWIPED_UP:\n mAudioManager.adjustStreamVolume(AudioManager.STREAM_MUSIC, AudioManager.ADJUST_RAISE, AudioManager.FLAG_SHOW_UI);\n break;\n case SWIPED_LEFT:\n mBangingTunes.previous();\n break;\n case SWIPED_RIGHT:\n mBangingTunes.next();\n break;\n default:\n break;\n }\n }\n });\n }", "private int adjustAvailability(Uri itemUri, int newCount){\n if(newCount < 0) return 0;\n\n ContentValues values = new ContentValues();\n values.put(ItemEntry.COLUMN_ITEM_QUANTITY, newCount);\n int numRowsUpdated = getContentResolver().update(itemUri,values, null, null);\n\n return numRowsUpdated;\n }", "@Override\n public void moveTowards(int destination) throws FragileItemBrokenException {\n if(delaying){\n delaying = false;\n } else {\n super.moveTowards(destination);\n delaying = true;\n }\n }", "private boolean startApModeIfPossible() {\n if (canUseFeatureNow(Policy.Feature.WIFI_AP) && (mApIterations < WIFI_MAX_AP_COUNT)) {\n // we can use AP mode and we still didn't reach the max number of iteractions in AP mode\n mNetManager.createSavepoint();\n // switch to ap mode\n if (mNetManager.setApEnabled(true).or(false)) {\n // update beaconing state\n mWifiBeaconingState = WifiBeaconingState.AP_ENABLING;\n // stop sending beacons to neighbors, instead waits to receive them\n mBeaconingManager.stopWifiSender();\n // update number of ap mode iterations\n mApIterations++;\n return true;\n }\n Log.v(TAG, \"Could not switch to AP mode\");\n mNetManager.rollback();\n }\n return false;\n }", "private void advance() {\n assert currentItemState == ItemProcessingState.COMPLETED || currentIndex == -1\n : \"moving to next but current item wasn't completed (state: \" + currentItemState + \")\";\n currentItemState = ItemProcessingState.INITIAL;\n currentIndex = findNextNonAborted(currentIndex + 1);\n retryCounter = 0;\n requestToExecute = null;\n executionResult = null;\n assert assertInvariants(ItemProcessingState.INITIAL);\n }", "public void directionRestriction(){\n \t\n }", "@Override\r\n public void onItemsRemoved(RecyclerView recyclerView, int positionStart, int itemCount) {\r\n if(isBeforePreLayout){\r\n if(firstChangedPosition > positionStart || firstChangedPosition == -1)\r\n firstChangedPosition = positionStart;\r\n if(firstChangedPosition < firstAttachedItemPosition)\r\n removedTopAndBoundPositionCount += itemCount;\r\n }\r\n }", "@VisibleForTesting\n public void handleAdsAvailable() {\n if (this.mHasPlacedAds) {\n notifyNeedsPlacement();\n return;\n }\n if (this.mHasReceivedPositions) {\n placeInitialAds(this.mPendingPlacementData);\n }\n this.mHasReceivedAds = true;\n }", "@Override\n public boolean tryAdvance(Consumer<? super SampleDescriptor> action) {\n boolean retVal;\n if (pos < samples.size()) {\n // Here we have another sample to process.\n retVal = true;\n action.accept(samples.get(pos));\n pos++;\n } else {\n // Denote we are at the end.\n retVal = false;\n }\n return retVal;\n }", "public boolean flagActionItems() {\n /*\n r20 = this;\n r0 = r20;\n r1 = r0.mMenu;\n r2 = 0;\n if (r1 == 0) goto L_0x0012;\n L_0x0007:\n r1 = r0.mMenu;\n r1 = r1.m9494h();\n r3 = r1.size();\n goto L_0x0014;\n L_0x0012:\n r1 = 0;\n r3 = r2;\n L_0x0014:\n r4 = r0.mMaxItems;\n r5 = r0.mActionItemWidthLimit;\n r6 = android.view.View.MeasureSpec.makeMeasureSpec(r2, r2);\n r7 = r0.mMenuView;\n r7 = (android.view.ViewGroup) r7;\n r8 = r2;\n r9 = r8;\n r10 = r9;\n r11 = r4;\n r4 = r10;\n L_0x0025:\n if (r4 >= r3) goto L_0x004e;\n L_0x0027:\n r13 = r1.get(r4);\n r13 = (android.support.v7.view.menu.C4893j) r13;\n r14 = r13.m9518h();\n if (r14 == 0) goto L_0x0036;\n L_0x0033:\n r8 = r8 + 1;\n goto L_0x0040;\n L_0x0036:\n r14 = r13.m9517g();\n if (r14 == 0) goto L_0x003f;\n L_0x003c:\n r10 = r10 + 1;\n goto L_0x0040;\n L_0x003f:\n r9 = 1;\n L_0x0040:\n r12 = r0.mExpandedActionViewsExclusive;\n if (r12 == 0) goto L_0x004b;\n L_0x0044:\n r12 = r13.isActionViewExpanded();\n if (r12 == 0) goto L_0x004b;\n L_0x004a:\n r11 = r2;\n L_0x004b:\n r4 = r4 + 1;\n goto L_0x0025;\n L_0x004e:\n r4 = r0.mReserveOverflow;\n if (r4 == 0) goto L_0x0059;\n L_0x0052:\n if (r9 != 0) goto L_0x0057;\n L_0x0054:\n r10 = r10 + r8;\n if (r10 <= r11) goto L_0x0059;\n L_0x0057:\n r11 = r11 + -1;\n L_0x0059:\n r11 = r11 - r8;\n r4 = r0.mActionButtonGroups;\n r4.clear();\n r8 = r0.mStrictWidthLimit;\n if (r8 == 0) goto L_0x0070;\n L_0x0063:\n r8 = r0.mMinCellSize;\n r8 = r5 / r8;\n r9 = r0.mMinCellSize;\n r9 = r5 % r9;\n r10 = r0.mMinCellSize;\n r9 = r9 / r8;\n r9 = r9 + r10;\n goto L_0x0072;\n L_0x0070:\n r8 = r2;\n r9 = r8;\n L_0x0072:\n r13 = r2;\n r10 = r5;\n r5 = r13;\n L_0x0075:\n if (r5 >= r3) goto L_0x015e;\n L_0x0077:\n r14 = r1.get(r5);\n r14 = (android.support.v7.view.menu.C4893j) r14;\n r15 = r14.m9518h();\n if (r15 == 0) goto L_0x00b8;\n L_0x0083:\n r15 = r0.mScrapActionButtonView;\n r15 = r0.getItemView(r14, r15, r7);\n r12 = r0.mScrapActionButtonView;\n if (r12 != 0) goto L_0x008f;\n L_0x008d:\n r0.mScrapActionButtonView = r15;\n L_0x008f:\n r12 = r0.mStrictWidthLimit;\n if (r12 == 0) goto L_0x0099;\n L_0x0093:\n r12 = android.support.v7.widget.ActionMenuView.measureChildForCells(r15, r9, r8, r6, r2);\n r8 = r8 - r12;\n goto L_0x009c;\n L_0x0099:\n r15.measure(r6, r6);\n L_0x009c:\n r12 = r15.getMeasuredWidth();\n r10 = r10 - r12;\n if (r13 != 0) goto L_0x00a4;\n L_0x00a3:\n r13 = r12;\n L_0x00a4:\n r12 = r14.getGroupId();\n if (r12 == 0) goto L_0x00af;\n L_0x00aa:\n r15 = 1;\n r4.put(r12, r15);\n goto L_0x00b0;\n L_0x00af:\n r15 = 1;\n L_0x00b0:\n r14.m9512c(r15);\n r0 = r2;\n r17 = r3;\n goto L_0x0155;\n L_0x00b8:\n r12 = r14.m9517g();\n if (r12 == 0) goto L_0x014f;\n L_0x00be:\n r12 = r14.getGroupId();\n r15 = r4.get(r12);\n if (r11 > 0) goto L_0x00ca;\n L_0x00c8:\n if (r15 == 0) goto L_0x00d4;\n L_0x00ca:\n if (r10 <= 0) goto L_0x00d4;\n L_0x00cc:\n r2 = r0.mStrictWidthLimit;\n if (r2 == 0) goto L_0x00d2;\n L_0x00d0:\n if (r8 <= 0) goto L_0x00d4;\n L_0x00d2:\n r2 = 1;\n goto L_0x00d5;\n L_0x00d4:\n r2 = 0;\n L_0x00d5:\n if (r2 == 0) goto L_0x0113;\n L_0x00d7:\n r16 = r2;\n r2 = r0.mScrapActionButtonView;\n r2 = r0.getItemView(r14, r2, r7);\n r17 = r3;\n r3 = r0.mScrapActionButtonView;\n if (r3 != 0) goto L_0x00e7;\n L_0x00e5:\n r0.mScrapActionButtonView = r2;\n L_0x00e7:\n r3 = r0.mStrictWidthLimit;\n if (r3 == 0) goto L_0x00f7;\n L_0x00eb:\n r3 = 0;\n r18 = android.support.v7.widget.ActionMenuView.measureChildForCells(r2, r9, r8, r6, r3);\n r8 = r8 - r18;\n if (r18 != 0) goto L_0x00fa;\n L_0x00f4:\n r16 = 0;\n goto L_0x00fa;\n L_0x00f7:\n r2.measure(r6, r6);\n L_0x00fa:\n r2 = r2.getMeasuredWidth();\n r10 = r10 - r2;\n if (r13 != 0) goto L_0x0102;\n L_0x0101:\n r13 = r2;\n L_0x0102:\n r2 = r0.mStrictWidthLimit;\n if (r2 == 0) goto L_0x010e;\n L_0x0106:\n if (r10 < 0) goto L_0x010a;\n L_0x0108:\n r2 = 1;\n goto L_0x010b;\n L_0x010a:\n r2 = 0;\n L_0x010b:\n r2 = r16 & r2;\n goto L_0x0117;\n L_0x010e:\n r2 = r10 + r13;\n if (r2 <= 0) goto L_0x010a;\n L_0x0112:\n goto L_0x0108;\n L_0x0113:\n r16 = r2;\n r17 = r3;\n L_0x0117:\n if (r2 == 0) goto L_0x0120;\n L_0x0119:\n if (r12 == 0) goto L_0x0120;\n L_0x011b:\n r3 = 1;\n r4.put(r12, r3);\n goto L_0x0146;\n L_0x0120:\n if (r15 == 0) goto L_0x0146;\n L_0x0122:\n r3 = 0;\n r4.put(r12, r3);\n r3 = 0;\n L_0x0127:\n if (r3 >= r5) goto L_0x0146;\n L_0x0129:\n r15 = r1.get(r3);\n r15 = (android.support.v7.view.menu.C4893j) r15;\n r0 = r15.getGroupId();\n if (r0 != r12) goto L_0x0141;\n L_0x0135:\n r0 = r15.m9516f();\n if (r0 == 0) goto L_0x013d;\n L_0x013b:\n r11 = r11 + 1;\n L_0x013d:\n r0 = 0;\n r15.m9512c(r0);\n L_0x0141:\n r3 = r3 + 1;\n r0 = r20;\n goto L_0x0127;\n L_0x0146:\n if (r2 == 0) goto L_0x014a;\n L_0x0148:\n r11 = r11 + -1;\n L_0x014a:\n r14.m9512c(r2);\n r0 = 0;\n goto L_0x0155;\n L_0x014f:\n r0 = r2;\n r17 = r3;\n r14.m9512c(r0);\n L_0x0155:\n r5 = r5 + 1;\n r2 = r0;\n r3 = r17;\n r0 = r20;\n goto L_0x0075;\n L_0x015e:\n r2 = 1;\n return r2;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.support.v7.widget.ActionMenuPresenter.flagActionItems():boolean\");\n }", "@Override\n public int convertToAbsoluteDirection(int flags, int layoutDirection) {\n\n if (mSwipeBack) {\n\n mSwipeBack = mButtonShowedState != ButtonsState.GONE;\n\n return 0;\n }\n\n return super.convertToAbsoluteDirection(flags, layoutDirection);\n }", "@Override\n\tpublic void processUSData(int distance) { rudimentary filter - toss out invalid samples corresponding to null\n\t\t// signal.\n\t\t// (n.b. this was not included in the Bang-bang controller, but easily\n\t\t// could have).\n\t\t//\n\t\tif (distance >= 100 && filterControl < FILTER_OUT) {\n\t\t\t// bad value, do not set the distance var, however do increment the\n\t\t\t// filter value\n\t\t\tfilterControl++;\n\t\t} else if (distance >= 100) {\n\t\t\t// We have repeated large values, so there must actually be nothing\n\t\t\t// there: leave the distance alone\n\t\t\tthis.distance = distance;\n\t\t} else {\n\t\t\t// distance went below 100: reset filter and leave\n\t\t\t// distance alone.\n\t\t\tfilterControl = 0;\n\t\t\tthis.distance = distance;\n\t\t}\n\t\t\n\t\tint distError = this.distance - bandCenter;\n\t\t\n\n\t\t// TODO: process a movement based on the us distance passed in (P style)\n\n\t\t/* If we're too far from the wall, we want to decrease the left motor speed to\n\t\t make it turn left. Since it's very far, we will also want it to turn at a\n\t\tmore slow pace. */\n\t\tif (distError >= longDistance) {\n\n\t\t\tsteadySpeedCorrection = calcSpeed(maxSpeed, steadyProportion, distError);\n\n\t\t\tleftMotor.setSpeed(MOTOR_SPEED - steadySpeedCorrection);\n\t\t\trightMotor.setSpeed(MOTOR_SPEED + steadySpeedCorrection);\n\n\t\t\tleftMotor.forward();\n\t\t\trightMotor.forward();\n\n\t\t}\n\n\t\t/* here, we apply the same logic as previously but we want it to turn at a faster rate to avoid collision */\n\t\telse if (distError > 0 && distError < longDistance ) {\n\n\t\t\trapidSpeedCorrection = calcSpeed(maxSpeed, rapidProportion, distError);\n\n\t\t\tleftMotor.setSpeed(MOTOR_SPEED - rapidSpeedCorrection);\n\t\t\trightMotor.setSpeed(MOTOR_SPEED + rapidSpeedCorrection );\n\n\t\t\tleftMotor.forward();\n\t\t\trightMotor.forward();\n\n\t\t}\n\n\t\t/* in this case, we are close to the wall, however, not too close,so we apply a steady correction */\n\t\telse if (distError < 0 && distError > -10) {\n\n\t\t\tsteadySpeedCorrection = calcSpeed(maxSpeed, steadyProportion, distError);\n\n\t\t\tleftMotor.setSpeed(MOTOR_SPEED + steadySpeedCorrection);\n\t\t\trightMotor.setSpeed(MOTOR_SPEED - steadySpeedCorrection);\n\n\t\t\tleftMotor.forward();\n\t\t\trightMotor.forward();\n\n\t\t}\n\n\t\t/* in this case, we are too close to the wall so we apply a rapid correction. We also move the right motor backwards\n\t\t so it can turn in its place */\n\t\telse if (distError <= -10) {\n\n\t\t\trapidSpeedCorrection = calcSpeed(maxSpeed, rapidProportion, distError);\n\n\t\t\tleftMotor.setSpeed((MOTOR_SPEED + rapidSpeedCorrection));\n\t\t\trightMotor.setSpeed((MOTOR_SPEED - rapidSpeedCorrection));\n\n\t\t\tleftMotor.forward();\n\t\t\trightMotor.backward();\n\n\t\t}\n\t\t\n\t\t/*\n\t\t appropriate distance so we let it continue forward at the designated MOTOR_SPEED\n\t\t */\n\t\telse {\n\n\t\t\tleftMotor.setSpeed(MOTOR_SPEED);\n\t\t\trightMotor.setSpeed(MOTOR_SPEED);\n\n\t\t\tleftMotor.forward();\n\t\t\trightMotor.forward();\n\t\t}\n\n\t}", "public ArrayList<Discount> getDiscountsAvailable() throws WrongItemFormatException\n\t{\n\t\tArrayList<Discount> discounts = getDiscountList();\n\t\t\n\t\tIterator<Discount> iterator = discounts.iterator();\n\t\twhile( iterator.hasNext() )\n\t\t{\n\t\t\tif( isBeyondDuration(iterator.next()) )\n\t\t\t\titerator.remove();\n\t\t}\n\t\t\n\t\treturn discounts;\n\t}", "protected boolean canUseOtherDirection() {\n return false;\n }", "@Override\n\tpublic void computeScroll() {\n\t if (mAdapter == null) {\n\t return;\n\t }\n\t if(mAdapter.getCount() == 0){\n\t \treturn;\n\t }\n\t \n\t\tif (mScroller.computeScrollOffset()) {\n\t\t\tif(mScroller.getFinalX() == mScroller.getCurrX()){\n\t\t\t\tmScroller.abortAnimation();\n\t\t\t\tmTouchState = TOUCH_STATE_RESTING;\n\t\t\t\tif(!checkScrollPosition())\n\t\t\t\t\tclearChildrenCache();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t int x = mScroller.getCurrX();\n\t\t scrollTo(x, 0);\n\t\t \n postInvalidate();\n }\n\t\telse if(mTouchState == TOUCH_STATE_FLING || mTouchState == TOUCH_STATE_DISTANCE_SCROLL){\n\t\t\tmTouchState = TOUCH_STATE_RESTING;\n\t\t\tif(!checkScrollPosition())\n\t\t\t\tclearChildrenCache();\n\t\t}\n\t\t\n\t\tif(mDataChanged){\n\t\t\tremoveAllViewsInLayout();\n\t\t\trefillOnChange(mFirstItemPosition);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\trelayout();\n\t\tremoveNonVisibleViews();\n\t\trefillRight();\n\t\trefillLeft();\n\n\t}", "private void handleIdleIncrease() {\n int i;\n int i2;\n if (curState == 0 && (i = targetBuffer) < (i2 = raiseBufferMax)) {\n targetBuffer = i + raiseBufferStep;\n targetBuffer = Math.min(targetBuffer, i2);\n Trace.traceBegin(8, \"increaseBuffer:\" + targetBuffer);\n int i3 = targetBuffer;\n setBuffer(i3, i3 - lowBufferStep, highBufferStep + i3, swapReserve);\n Trace.traceEnd(8);\n }\n Message msg = handler.obtainMessage();\n msg.what = 11;\n handler.sendMessageDelayed(msg, (long) (raiseBufferTimeWidth * 1000));\n }", "public void honourMaxCount() {\n // Get free and total counts\n int freeCount = getFreeLaunchers().size();\n int totalCount = getTotalLaunchers().size();\n\n // Scale down if max is exceeded, irrespective of free buffer count\n if (totalCount > maxCount) {\n log.info(\"Scaling down until [freeBufferCount] \" + freeBufferCount + \" is met since [Max Count] \"\n + maxCount + \" has been exceeded.\");\n\n while (freeCount <= freeBufferCount){\n log.info(\"Scaling DOWN: REASON -> [Total Count] \" + totalCount + \" > [Max Count] \" + maxCount);\n scaleDown();\n freeCount = getFreeLaunchers().size();\n }\n\n totalCount = getTotalLaunchers().size();\n freeCount = getFreeLaunchers().size();\n\n log.info(\"Stats after scale down operation: [Total Count] \" + totalCount + \", [Free Count] \" + freeCount);\n\n return;\n }\n\n // Don't scale down if there are not enough free launchers\n if (freeCount <= freeBufferCount) {\n log.info(\"Not scaling down since [Free Count] \" + freeCount + \" <= [Free Buffer Size] \" +\n freeBufferCount + \"...\");\n return;\n }\n\n // Don't scale down if the desired count is not exceeded\n if (totalCount <= desiredCount) {\n log.info(\"Not scaling down since [Total Count] \" + totalCount + \" <= [Desired Count] \" +\n desiredCount + \"...\");\n return;\n }\n\n // Scale down if desired count is exceeded, but with more free launchers than buffer count by stepDown count\n // TODO: to test scale down\n if ((freeCount - stepDown) >= freeBufferCount) {\n log.info(\"Scaling DOWN: REASON -> [Total Count] \" + totalCount + \" > [Desired Count] \" + desiredCount +\n \" AND [Free Count] - [Step Down] \" + freeCount + \" - \" + stepDown +\n \" >= [Free Buffer Count] \" + freeBufferCount);\n\n scaleDown();\n return;\n }\n\n // If after scaling down there wouldn't be enough free launchers, don't scale down\n log.info(\"Not scaling down since [Free Count] + [Step Down] \" + freeCount + \" + \" + stepDown +\n \" < [Free Buffer Count] \" + freeBufferCount);\n }", "private void setupAutomotiveMode() {\n // reset the margin value for arrow view\n if (mArrowView != null) {\n mArrowView.setImageResource(R.drawable.automotive_common_arrow_down);\n MarginLayoutParams mlp = (MarginLayoutParams) mArrowView.getLayoutParams();\n if (null != mlp) {\n if (ActionBarUtil.IS_SUPPORT_RTL) {\n mlp.setMarginStart(mMeasureSpecM2);\n } else {\n mlp.leftMargin = mMeasureSpecM2;\n }\n mArrowView.setLayoutParams(mlp);\n }\n }\n }", "@Override public int convertToAbsoluteDirection(int flags, int layoutDirection) {\n if (swipeBack) {\n swipeBack = buttonState != ButtonState.GONE;\n return 0;\n }\n return super.convertToAbsoluteDirection(flags, layoutDirection);\n }", "private void controlLift()\n {\n if (gamepad1.dpad_up) {\n liftMotor.setPower(-0.5);\n } else if (gamepad1.dpad_down) {\n liftMotor.setPower(0.5);\n } else {++backInc;\n liftMotor.setPower(0);\n }\n }", "@Override\n @SuppressWarnings(\"deprecation\")\n public void onInitializeAccessibilityNodeInfo(@NonNull AccessibilityNodeInfo info) {\n super.onInitializeAccessibilityNodeInfo(info);\n if (Build.VERSION.SDK_INT >= 21) {\n info.addAction(AccessibilityNodeInfo.AccessibilityAction.ACTION_SCROLL_BACKWARD);\n info.addAction(AccessibilityNodeInfo.AccessibilityAction.ACTION_SCROLL_FORWARD);\n } else {\n info.addAction(AccessibilityNodeInfo.ACTION_SCROLL_FORWARD);\n info.addAction(AccessibilityNodeInfo.ACTION_SCROLL_BACKWARD);\n }\n }", "private void accelerate()\n {\n if(accelX < maxAccelRate)\n {\n accelX += accelerationRate;\n }\n }", "public void updateIntention() {\n\n // First, rotate the front line\n double distanceToGoal = MathUtils.quickRoot1((float)((anchorX - goalX) * (anchorX - goalX) + (anchorY - goalY) * (anchorY - goalY)));\n double moveAngle, moveSpeed;\n double moveSpeedX, moveSpeedY;\n double speedModifier;\n double[] deltaVel;\n switch (state) {\n case FIGHTING:\n // TODO(sonpham): Come up with a way to change FIGHTING to IN_POSITION when comebat with a unit is over.\n if (unitFoughtAgainst.getNumAlives() == 0) {\n state = UnitState.STANDING;\n anchorAngle = goalAngle;\n unitFoughtAgainst = null;\n break;\n }\n goalAngle = MathUtils.atan2(unitFoughtAgainst.getAverageY() - averageY,\n unitFoughtAgainst.getAverageX() - averageX);\n goalX = unitFoughtAgainst.getAverageX();\n goalY = unitFoughtAgainst.getAverageY();\n\n // If army still rotating, half the speed\n moveAngle = MathUtils.atan2(goalY - anchorY, goalX - anchorX); // TODO: This is currently repeated too much\n moveSpeed = speed / 2;\n\n // Apply speed modifier by terrain\n moveSpeedX = Math.cos(moveAngle) * moveSpeed;\n moveSpeedY = Math.sin(moveAngle) * moveSpeed;\n deltaVel = terrain.getDeltaVelFromPos(anchorX, anchorY);\n speedModifier = MathUtils.ratioProjection(deltaVel[0], deltaVel[1], moveSpeedX, moveSpeedY);\n speedModifier = MathUtils.capMinMax(speedModifier,\n UniversalConstants.MINIMUM_TERRAIN_EFFECT,\n UniversalConstants.MAXIMUM_TERRAIN_EFFECT);\n moveSpeed *= (1 + speedModifier);\n if (distanceToGoal > moveSpeed) {\n double moveUnitX = Math.cos(moveAngle);\n double moveUnitY = Math.sin(moveAngle);\n anchorX += moveUnitX * moveSpeed;\n anchorY += moveUnitY * moveSpeed;\n } else {\n anchorX = goalX;\n anchorY = goalY;\n }\n\n // Update flanker status. If the flank has not engaged with the enemy for a long time, they will join\n // the flanker, which will have a different goal position.\n if (gameSettings.isEnableFlankingMechanics()) {\n for (int i = 0; i < width; i++) {\n if (flankersCount[i] < troops.size() / width && aliveTroopsFormation[flankersCount[i]][i] != null) {\n if (aliveTroopsFormation[0][i].getCombatDelay() < 0) {\n frontLinePatientCounters[i] += 1;\n } else {\n frontLinePatientCounters[i] = 0;\n }\n }\n if (frontLinePatientCounters[i] == GameplayConstants.FLANKER_PATIENT) {\n // If the front-liner has waited for too long, they will join the flanker.\n flankersCount[i] += 1;\n\n // Pick an offset for the flankers\n Triplet<Integer, Integer, Integer> pos;\n Iterator<Triplet<Integer, Integer, Integer>> it;\n // TODO: If the flanker troop is right in the middle, then it should select either\n // iterator half the time.\n if (i < width / 2) {\n it = leftFlankerIndices.iterator();\n } else {\n it = rightFlankerIndices.iterator();\n }\n pos = it.next();\n\n // Generate a new goal offset position for that flanker\n double flankingSpacing = GameplayConstants.FLANKING_SPACING_RATIO * unitStats.spacing;\n double[] offset = MathUtils.generateOffsetBasedOnHexTripletIndices(\n pos.x, pos.y, pos.z, flankingSpacing);\n double positionalJiggling = GameplayConstants.FLANKING_POSITION_JIGGLING_RATIO * flankingSpacing;\n offset[0] += MathUtils.randDouble(-1.0, 1.0) * positionalJiggling;\n offset[1] += MathUtils.randDouble(-1.0, 1.0) * positionalJiggling;\n\n // Assign that position to flanker positions\n flankerOffsets[i].add(offset);\n\n // Change the set of candidates\n leftFlankerIndices.remove(pos);\n rightFlankerIndices.remove(pos);\n if (leftFlankerIndices.size() == 0) {\n leftRingIndex += 1;\n leftFlankerIndices = MathUtils.getHexagonalIndicesRingAtOffset(leftRingIndex);\n Set<Triplet<Integer, Integer, Integer>> removalSet = new HashSet<>();\n for (Triplet<Integer, Integer, Integer> triplet : leftFlankerIndices) {\n if (triplet.z > 0) {\n removalSet.add(triplet);\n } else if (triplet.y < triplet.x) {\n removalSet.add(triplet);\n }\n }\n for (Triplet<Integer, Integer, Integer> triplet : removalSet) {\n leftFlankerIndices.remove(triplet);\n }\n }\n if (rightFlankerIndices.size() == 0) {\n rightRightIndex += 1;\n rightFlankerIndices = MathUtils.getHexagonalIndicesRingAtOffset(rightRightIndex);\n Set<Triplet<Integer, Integer, Integer>> removalSet = new HashSet<>();\n for (Triplet<Integer, Integer, Integer> triplet : rightFlankerIndices) {\n if (triplet.z > 0) {\n removalSet.add(triplet);\n } else if (triplet.y > triplet.x) {\n removalSet.add(triplet);\n }\n }\n for (Triplet<Integer, Integer, Integer> triplet : removalSet) {\n rightFlankerIndices.remove(triplet);\n }\n }\n\n // Reset patient counters.\n frontLinePatientCounters[i] = 0;\n }\n }\n }\n break;\n case ROUTING:\n // Update the direction that the unit ought to run away from, it should be the opposite vector of\n // the sum of difference in unit location difference.\n double dx = 0;\n double dy = 0;\n int numVisibleEnemies = 0;\n for (BaseUnit unit : visibleUnits) {\n if (unit.getPoliticalFaction() != politicalFaction) {\n numVisibleEnemies += 1;\n dx += unit.getAliveTroopsSet().size() * (averageX - unit.averageX);\n dy += unit.getAliveTroopsSet().size() * (averageY - unit.averageY);\n }\n }\n // Invert dx and dy. We need to run in the opposite direction.\n // Also, only change goalAngle if there are more than 1 visible enemy units. Otherwise, atan2 function\n // will return PI / 2 and change the unit direction, which is undesirable. It doesn't make sense for\n // unit to change their direction once they no longer see their enemy.\n if (numVisibleEnemies > 0) {\n goalAngle = MathUtils.atan2(dy, dx);\n }\n break;\n case MOVING:\n // If army is moving, the the army shall move at normal speed.\n moveAngle = MathUtils.atan2(goalY - anchorY, goalX - anchorX); // TODO: This is currently repeated too much\n moveSpeed = speed * turningSpeedRatio;\n\n // Apply speed modifier by terrain\n moveSpeedX = Math.cos(moveAngle) * moveSpeed;\n moveSpeedY = Math.sin(moveAngle) * moveSpeed;\n deltaVel = terrain.getDeltaVelFromPos(anchorX, anchorY);\n speedModifier = MathUtils.ratioProjection(deltaVel[0], deltaVel[1], moveSpeedX, moveSpeedY);\n speedModifier = MathUtils.capMinMax(speedModifier,\n UniversalConstants.MINIMUM_TERRAIN_EFFECT,\n UniversalConstants.MAXIMUM_TERRAIN_EFFECT);\n moveSpeed *= (1 + speedModifier);\n\n if (MathUtils.doubleEqual(moveAngle, anchorAngle)) {\n isTurning = false;\n turningSpeedRatio = 1.0;\n } else {\n isTurning = true;\n turningSpeedRatio = 1.0;\n turningSpeedRatio = Math.max(\n 0.0, turningSpeedRatio - GameplayConstants.TURNING_UNIT_SPEED_DECELERATION_RATIO);\n }\n\n // Rotate towards the goal\n anchorAngle = MovementUtils.rotate(anchorAngle, moveAngle, unitStats.rotationSpeed);\n\n if (distanceToGoal > moveSpeed) {\n double moveUnitX = Math.cos(anchorAngle);\n double moveUnitY = Math.sin(anchorAngle);\n anchorX += moveUnitX * moveSpeed;\n anchorY += moveUnitY * moveSpeed;\n } else {\n anchorX = goalX;\n anchorY = goalY;\n if (path != null && node == path.getNodes().getLast()) {\n path = null;\n node = null;\n state = UnitState.STANDING;\n } else if (path != null) {\n path.getNodes().pollFirst();\n node = path.getNodes().get(0);\n goalX = node.getX();\n goalY = node.getY();\n } else {\n path = null;\n node = null;\n state = UnitState.STANDING;\n }\n }\n break;\n case STANDING:\n anchorAngle = MovementUtils.rotate(anchorAngle, goalAngle, unitStats.rotationSpeed);\n isTurning = false;\n break;\n }\n\n // Update goal positions\n updateGoalPositions();\n\n // Update troop intentions\n for (BaseSingle single : aliveTroopsMap.keySet()) {\n single.updateIntention();\n }\n }", "private void updateAccessibility() {\n Set<ComponentName> enabledServices = getEnabledServicesFromSettings(context);\n if(null == enabledServices) {\n return;\n }\n // Determine enabled services and accessibility state.\n ComponentName toggledService = ComponentName.unflattenFromString(SERVICE_NAME);\n final boolean accessibilityEnabled;\n // Enabling at least one service enables accessibility.\n accessibilityEnabled = true;\n enabledServices.add(toggledService);\n // Update the enabled services setting.\n StringBuilder enabledServicesBuilder = new StringBuilder();\n // Keep the enabled services even if they are not installed since we\n // have no way to know whether the application restore process has\n // completed. In general the system should be responsible for the\n // clean up not settings.\n for (ComponentName enabledService : enabledServices) {\n enabledServicesBuilder.append(enabledService.flattenToString());\n enabledServicesBuilder.append(ENABLED_ACCESSIBILITY_SERVICES_SEPARATOR);\n }\n final int enabledServicesBuilderLength = enabledServicesBuilder.length();\n if (enabledServicesBuilderLength > 0) {\n enabledServicesBuilder.deleteCharAt(enabledServicesBuilderLength - 1);\n }\n Settings.Secure.putString(context.getContentResolver(),\n Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES,\n enabledServicesBuilder.toString());\n Log.d(TAG,\"enabledServicesBuilder = \" + enabledServicesBuilder.toString());\n\n // Update accessibility enabled.\n Settings.Secure.putInt(context.getContentResolver(),\n Settings.Secure.ACCESSIBILITY_ENABLED, accessibilityEnabled ? 1 : 0);\n }", "private void paginate() {\n List<ItemModel> old = adapter.getItems();\n List<ItemModel> New = new ArrayList<>(addList());\n CardStackCallback callback = new CardStackCallback(old, New);\n DiffUtil.DiffResult result = DiffUtil.calculateDiff(callback);\n adapter.setItems(New);\n result.dispatchUpdatesTo(adapter);\n }", "@Override\n\tpublic boolean takeControl() {\n\t\treturn (Math.abs(Motor.A.getTachoCount() - Settings.motorAAngle) > 5 || (Motor.A.getTachoCount() == 0 && Settings.motorAAngle == -90));\n\t}", "@Override\n\tpublic int getScrollableUnitIncrement(Rectangle visibleRect,\n\t\t\tint orientation, int direction) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int getCount() {\n\t\treturn mDeviceRepairInfos.size();\n\t}", "@SuppressWarnings(\"unused\")\n\tpublic void shift() {\n\t\tint totalItems = 0;\n\t\tint highestSlot = 0;\n\t\tfor (int i = 0; i < summonedFamiliar.storeCapacity; i++) {\n\t\t\tif (burdenedItems[i] != 0) {\n\t\t\t\ttotalItems++;\n\t\t\t\tif (highestSlot <= i) {\n\t\t\t\t\thighestSlot = i;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i <= highestSlot; i++) {\n\t\t\tif (burdenedItems[i] == 0) {\n\t\t\t\tboolean stop = false;\n\t\t\t\tfor (int k = i; k <= highestSlot; k++) {\n\t\t\t\t\tif (burdenedItems[k] != 0 && !stop) {\n\t\t\t\t\t\tint spots = k - i;\n\t\t\t\t\t\tfor (int j = k; j <= highestSlot; j++) {\n\t\t\t\t\t\t\tburdenedItems[j - spots] = burdenedItems[j];\n\t\t\t\t\t\t\tstop = true;\n\t\t\t\t\t\t\tburdenedItems[j] = 0;\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}", "@Override\n public int getItemCount() {\n\n if (null == dirItems) return 0;\n\n //Log.d(TAG, \"Besar\" + dirItems.size());\n return dirItems.size();\n }", "public void adjustItem(int i, View view, boolean z) {\n int i2;\n ViewGroup.LayoutParams layoutParams = view.getLayoutParams();\n if (i == this.mSrcPos || i == this.mFirstExpPos || i == this.mSecondExpPos) {\n i2 = calcItemHeight(i, view, z);\n } else {\n i2 = -2;\n }\n if (i2 != layoutParams.height) {\n layoutParams.height = i2;\n view.setLayoutParams(layoutParams);\n }\n if (i == this.mFirstExpPos || i == this.mSecondExpPos) {\n if (i < this.mSrcPos) {\n ((DragSortItemView) view).setGravity(80);\n } else if (i > this.mSrcPos) {\n ((DragSortItemView) view).setGravity(48);\n }\n }\n int visibility = view.getVisibility();\n int i3 = 0;\n if (i == this.mSrcPos && this.mFloatView != null) {\n i3 = 4;\n }\n if (i3 != visibility) {\n view.setVisibility(i3);\n }\n }", "private void updatePreferences() {\n\n /* Update preferences of the agent */\n patientAgent.updatePreferredAllocations();\n List<AllocationState> newPreferredAllocations = patientAgent.getAllocationStates();\n preferredAllocationsIterator = patientAgent.getAllocationStates().iterator();\n currentSize = patientAgent.getAllocationStates().size();\n\n if (newPreferredAllocations.isEmpty() || iterationsWithNoImprovementCount >= maxIterationsNum) {\n /* We shut down the behaviour if there are no better appointments\n or we exceeded the possible number of non-improving algorithm iterations\n */\n isHappyWithAppointment = true;\n\n } else if (newPreferredAllocations.size() >= currentSize) {\n\n /* No improvement has been made in our algorithm */\n iterationsWithNoImprovementCount++;\n } else {\n\n /* Improved the appointment, resetting the counter */\n iterationsWithNoImprovementCount = 0;\n }\n\n\n }", "@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 int numSpaceLeft()\n {\n \n return itemLimit - itemsHeld;\n }", "private void onUp()\n\t{\n\t\tsynchronized (HorizontalListView.this)\n\t\t{\n\t\t\tif (!mFlinging)\n\t\t\t{\n\t\t\t\treadjustScrollToMiddleItem();\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void onScrolled(RecyclerView recyclerView, int dx, int dy) {\n super.onScrolled(recyclerView, dx, dy);\n\n // 마지막 데이타에 도달했다면 아에 아무런 작업도 하지 않는다.\n if (isLastDataReached()) return;\n\n int totalIndex = mManager.getItemCount() - 1;\n int lastItem = mManager.findLastVisibleItemPosition();\n boolean isDownScroll = dy > 0;\n\n Log.d(TAG, \"onScrolled:totalIndex:\" + totalIndex + \"/lastItem:\" + lastItem + \"/isDownScroll:\" + isDownScroll);\n\n // TODO: 일반적으로 10개의 아이템이 있다면 totalCount는 10, firstItem은 0, lastItem은 9가 된다. (모든 아이템이 보인다는 가정 하에)\n // 만약 lastItem이 totalIndex 보다 컸을 때라고 조건을 둔다면 lastItem이 보이기 시작하는 순간부터 콜백이 발생된다.\n\n // 스크롤을 아래로 내렸을 때\n if (lastItem >= totalIndex & isDownScroll) {\n Log.d(TAG, \"onScrolled:reached:isLoading:\" + isLoading());\n if (!isLoading()) {\n Log.d(TAG, \"onScrolled:reached:SUCCESS\");\n\n if (onLoadMoreListener != null) {\n setLoading(true);\n onLoadMoreListener.onLoadMore();\n }\n }\n }\n }", "@Override\n public boolean onMove(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder, RecyclerView.ViewHolder target) {\n int fromPosition = viewHolder.getAdapterPosition();\n int toPosition = target.getAdapterPosition();\n Collections.swap(mAdapter.mItems, fromPosition, toPosition);\n mAdapter.notifyItemMoved(fromPosition, toPosition);\n\n // Move in underlying list used by loader\n SelectedBuses.moveBusInList(\n getContext(),\n ((BusViewHolder) viewHolder).mBusIdInApi,\n ((BusViewHolder) target).mBusIdInApi\n );\n\n // Dismiss Snackbar\n if (mSnackbar != null) {\n mSnackbar.dismiss();\n }\n return true;\n }", "protected void initialize() {\r\n if (dumper.isLimitSwitchPressed()){ \r\n dumper.stop();\r\n state = STATE_SUCCESS;\r\n }\r\n else {\r\n startPosition = dumper.getPosition();\r\n desiredPosition = startPosition + increment;\r\n dumper.backward();\r\n state = STATE_SEEK_LEFT;\r\n }\r\n }", "@Override\r\n protected boolean checkApiLogic(Player ai, SpellAbility sa) {\n if (sa.isEntwine()) {\r\n return true;\r\n } \r\n\r\n final int num = Integer.parseInt(sa.hasParam(\"CharmNum\") ? sa.getParam(\"CharmNum\") : \"1\");\r\n final int min = sa.hasParam(\"MinCharmNum\") ? Integer.parseInt(sa.getParam(\"MinCharmNum\")) : num;\r\n boolean timingRight = sa.isTrigger(); //is there a reason to play the charm now?\r\n\r\n // Reset the chosen list otherwise it will be locked in forever by earlier calls\r\n sa.setChosenList(null);\r\n List<AbilitySub> choices = CharmEffect.makePossibleOptions(sa);\r\n List<AbilitySub> chosenList;\r\n \r\n if (!ai.equals(sa.getActivatingPlayer())) {\r\n // This branch is for \"An Opponent chooses\" Charm spells from Alliances\r\n // Current just choose the first available spell, which seem generally less disastrous for the AI.\r\n //return choices.subList(0, 1);\r\n chosenList = choices.subList(1, choices.size());\r\n } else if (\"Triskaidekaphobia\".equals(ComputerUtilAbility.getAbilitySourceName(sa))) {\r\n chosenList = chooseTriskaidekaphobia(choices, ai);\r\n } else {\r\n /*\r\n * The generic chooseOptionsAi uses canPlayAi() to determine good choices\r\n * which means most \"bonus\" effects like life-gain and random pumps will\r\n * usually not be chosen. This is designed to force the AI to only select\r\n * the best choice(s) since it does not actually know if it can pay for\r\n * \"bonus\" choices (eg. Entwine/Escalate).\r\n * chooseMultipleOptionsAi() uses \"AILogic$Good\" tags to manually identify\r\n * bonus choice(s) for the AI otherwise it might be too hard to ever fulfil\r\n * minimum choice requirements with canPlayAi() alone.\r\n */\r\n chosenList = min > 1 ? chooseMultipleOptionsAi(choices, ai, min)\r\n : chooseOptionsAi(choices, ai, timingRight, num, min, sa.hasParam(\"CanRepeatModes\"));\r\n }\r\n\r\n if (chosenList.isEmpty()) {\r\n if (timingRight) {\r\n // Set minimum choices for triggers where chooseMultipleOptionsAi() returns null\r\n chosenList = chooseOptionsAi(choices, ai, true, num, min, sa.hasParam(\"CanRepeatModes\"));\r\n } else {\r\n return false;\r\n }\r\n }\r\n sa.setChosenList(chosenList);\r\n\r\n // prevent run-away activations - first time will always return true\r\n return MyRandom.getRandom().nextFloat() <= Math.pow(.6667, sa.getActivationsThisTurn());\r\n }", "public boolean advance(int startWrap, int endWrap) {\n if (pos == BreakIterator.DONE || pos > endWrap) {\n return false;\n }\n pos = next != UNINITIALIZED ? next : iterator.following(startWrap);\n if (pos == BreakIterator.DONE || pos > endWrap) {\n return false;\n }\n // Try adding more items up to endWrap\n while (true) {\n next = iterator.next();\n if (next == BreakIterator.DONE || next > endWrap) {\n break;\n }\n pos = next;\n }\n return true;\n }", "private void setMeteredInterface(java.lang.String r10, boolean r11) {\n /*\n r9 = this;\n if (r10 != 0) goto L_0x0003;\n L_0x0002:\n return;\n L_0x0003:\n r0 = \"network_management\";\n r0 = android.os.ServiceManager.getService(r0);\n if (r0 != 0) goto L_0x0014;\n L_0x000b:\n r1 = \"network-policy\";\n r2 = \"setIfWhitelist networkManager is null\";\n android.util.Log.e(r1, r2);\n return;\n L_0x0014:\n r1 = android.os.Parcel.obtain();\n r2 = android.os.Parcel.obtain();\n r3 = \"bandwidth\";\n r4 = 2;\n r4 = new java.lang.String[r4];\n if (r11 != 0) goto L_0x0026;\n L_0x0023:\n r5 = \"enable_ifwhitelist\";\n goto L_0x0028;\n L_0x0026:\n r5 = \"disable_ifwhitelist\";\n L_0x0028:\n r6 = 0;\n r4[r6] = r5;\n r5 = 1;\n r4[r5] = r10;\n r1.writeString(r3);\t Catch:{ Exception -> 0x005e }\n r1.writeArray(r4);\t Catch:{ Exception -> 0x005e }\n r7 = 201; // 0xc9 float:2.82E-43 double:9.93E-322;\t Catch:{ Exception -> 0x005e }\n r0.transact(r7, r1, r2, r6);\t Catch:{ Exception -> 0x005e }\n r6 = r9.sIncreaseCmdCount;\t Catch:{ Exception -> 0x005e }\n r6 = r6 + r5;\t Catch:{ Exception -> 0x005e }\n r9.sIncreaseCmdCount = r6;\t Catch:{ Exception -> 0x005e }\n r5 = \"network-policy\";\t Catch:{ Exception -> 0x005e }\n r6 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x005e }\n r6.<init>();\t Catch:{ Exception -> 0x005e }\n r7 = \"\";\t Catch:{ Exception -> 0x005e }\n r6.append(r7);\t Catch:{ Exception -> 0x005e }\n r6.append(r2);\t Catch:{ Exception -> 0x005e }\n r6 = r6.toString();\t Catch:{ Exception -> 0x005e }\n android.util.Log.e(r5, r6);\t Catch:{ Exception -> 0x005e }\n if (r1 == 0) goto L_0x0059;\n L_0x0056:\n r1.recycle();\n L_0x0059:\n if (r2 == 0) goto L_0x0080;\n L_0x005b:\n goto L_0x007d;\n L_0x005c:\n r5 = move-exception;\n goto L_0x0081;\n L_0x005e:\n r5 = move-exception;\n r6 = \"HwNetworkPolicy\";\t Catch:{ all -> 0x005c }\n r7 = new java.lang.StringBuilder;\t Catch:{ all -> 0x005c }\n r7.<init>();\t Catch:{ all -> 0x005c }\n r8 = \"setIfWhitelist-->\";\t Catch:{ all -> 0x005c }\n r7.append(r8);\t Catch:{ all -> 0x005c }\n r7.append(r5);\t Catch:{ all -> 0x005c }\n r7 = r7.toString();\t Catch:{ all -> 0x005c }\n android.util.Slog.e(r6, r7);\t Catch:{ all -> 0x005c }\n if (r1 == 0) goto L_0x007b;\n L_0x0078:\n r1.recycle();\n L_0x007b:\n if (r2 == 0) goto L_0x0080;\n L_0x007d:\n r2.recycle();\n L_0x0080:\n return;\n L_0x0081:\n if (r1 == 0) goto L_0x0086;\n L_0x0083:\n r1.recycle();\n L_0x0086:\n if (r2 == 0) goto L_0x008b;\n L_0x0088:\n r2.recycle();\n L_0x008b:\n throw r5;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.server.net.HwNetworkPolicyManagerService.setMeteredInterface(java.lang.String, boolean):void\");\n }", "private void doWiperAvailabiltiyCheck()\n {\n // Hardcode for now to make sure WPS is not triggered\n bWiperAvailable = true;\n\n mWifi = (WifiManager)getSystemService(mContext.WIFI_SERVICE);\n\n if ((mWifi == null) || ( (locationManager == null)|| ((locationProvider = locationManager.getProvider(LocationManager.NETWORK_PROVIDER )) == null)))\n {\n Log.e(TAG,\" Disable wiper : No object for WPS / Wifi Scans \");\n bWiperAvailable = false;\n }\n\n\n // call native function to trigger RPC from A11-> A9\n // informing about WPS capability\n //\n native_notify_wiper_available(bWiperAvailable);\n\n if (Config.LOGV)\n {\n Log.v(TAG, \"Wiper: Availability Check \"+ bWiperAvailable);\n }\n }", "private void adjustSubviewPositions()\n\t{\n\t\tif (mAdapter == null)\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\tif (mDataChanged)\n\t\t{\n\t\t\tint oldCurrentX = mCurrentX;\n\t\t\tinitView();\n\t\t\tremoveAllViewsInLayout();\n\t\t\tmNextX = oldCurrentX;\n\t\t\tmDataChanged = false;\n\t\t}\n\n\t\tif (mScroller.computeScrollOffset())\n\t\t{\n\t\t\tint scrollx = mScroller.getCurrX();\n\t\t\tmNextX = scrollx;\n\t\t}\n\n\t\tif (mNextX <=mMinX && !mCircleScrolling)\n\t\t{\n\t\t\tmNextX = mMinX;\n\t\t\tmScroller.forceFinished(true);\n\t\t\tif (mAdjustAnimation!=null)\n\t\t\t{\n\t\t\t\tmAdjustAnimation.stop();\n\t\t\t}\n\t\t}\n\t\tif (mNextX >= mMaxX && !mCircleScrolling)\n\t\t{\n\t\t\tmNextX = mMaxX;\n\t\t\tmScroller.forceFinished(true);\n\t\t\tif (mAdjustAnimation!=null)\n\t\t\t{\n\t\t\t\tmAdjustAnimation.stop();\n\t\t\t}\n\t\t}\n\n\t\tint dx = mCurrentX - mNextX;\n\n\t\t\n\t\tremoveNonVisibleItems(dx);\n\t\tfillList(dx);\n\t\tpositionItems(dx);\n\t\t\n\t\tmCurrentX = mNextX;\n\n\t\tif (!mScroller.isFinished())\n\t\t{\n\t\t\tpost(new Runnable()\n\t\t\t{\n\t\t\t\t@Override\n\t\t\t\tpublic void run()\n\t\t\t\t{\n\t\t\t\t\tadjustSubviewPositions();\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (mFlinging)\n\t\t\t{\n\t\t\t\tscrollerFinished();\n\t\t\t}\n\t\t\tmFlinging = false;\n\t\t}\n\t\tinvalidate();\n\t}", "@Override\n public void onScrolled(RecyclerView recyclerView, int dx, int dy) {\n super.onScrolled(recyclerView, dx, dy);\n\n // 마지막 데이타에 도달했다면 아에 아무런 작업도 하지 않는다.\n if (isLastDataReached()) return;\n\n int totalIndex = mManager.getItemCount() - 1;\n int lastItem = mManager.findLastVisibleItemPosition();\n boolean isDownScroll = dy > 0;\n\n Log.d(TAG, \"onScrolled:totalIndex:\" + totalIndex + \"|lastItem:\" + lastItem + \"|dy:\" + dy);\n\n // TODO: 일반적으로 10개의 아이템이 있다면 totalCount는 10, firstItem은 0, lastItem은 9가 된다. (모든 아이템이 보인다는 가정 하에)\n // 만약 lastItem이 totalIndex 보다 컸을 때라고 조건을 둔다면 lastItem이 보이기 시작하는 순간부터 콜백이 발생된다.\n\n // 스크롤을 아래로 내렸을 때\n if (lastItem >= totalIndex & isDownScroll) {\n Log.d(TAG, \"onScrolled:reached:isLoading:\" + isLoading());\n if (!isLoading()) {\n Log.d(TAG, \"onScrolled:reached:SUCCESS\");\n\n if (onLoadMoreListener != null) {\n setLoading(true);\n onLoadMoreListener.onLoadMore();\n }\n }\n }\n }", "@Override\n \tprotected ScanObject isScannableToBeMoved(Scannable scannable) {\n \t\tif (scannable == qscanAxis)\n \t\t\treturn null;\n \t\treturn super.isScannableToBeMoved(scannable);\n \t}", "@Override\n\tpublic int getScrollableBlockIncrement(Rectangle visibleRect,\n\t\t\tint orientation, int direction) {\n\t\treturn 0;\n\t}", "@Override\n protected void accelerate() {\n System.out.println(\"Bike Specific Acceleration\");\n }", "public void updateACUI() {\n CanDataInfo.CAN_ACInfo mAcInfo = Can.mACInfo;\n Can.mACInfo.Update = 0;\n this.mLeftTemp.setText(mAcInfo.szLtTemp);\n setWindValue(mAcInfo.nWindValue);\n int footWind = mAcInfo.fgDownWind;\n int headWind = mAcInfo.fgParallelWind;\n int winWind = mAcInfo.fgForeWindMode;\n if (i2b(footWind) && i2b(headWind)) {\n setAcMode(1);\n } else if (i2b(headWind)) {\n setAcMode(0);\n } else if (i2b(footWind) && i2b(winWind)) {\n setAcMode(3);\n } else if (i2b(footWind)) {\n setAcMode(2);\n } else if (i2b(winWind)) {\n setAcMode(4);\n } else {\n setAcMode(-1);\n }\n this.mStatusWindow.SetSel(mAcInfo.fgDFBL);\n this.mStatusWindowRear.SetSel(mAcInfo.fgRearLight);\n this.mStatusAc.SetSel(mAcInfo.fgAC);\n this.mStatusAuto.SetSel(mAcInfo.nAutoLight);\n this.mStatusClosed.SetSel(mAcInfo.PWR);\n if (mAcInfo.fgInnerLoop != 0) {\n this.mStatusOutLoop.setStateDrawable(R.drawable.can_rh7_nxh_up, R.drawable.can_rh7_nxh_dn, R.drawable.can_rh7_nxh_dn);\n } else {\n this.mStatusOutLoop.setStateDrawable(R.drawable.can_rh7_wxh_up, R.drawable.can_rh7_wxh_dn, R.drawable.can_rh7_wxh_dn);\n }\n this.mStatusOutLoop.setSelected(true);\n }", "@Test\n public void testIsEnabled() throws Exception {\n AccessibilityManager manager = createManager(WITH_A11Y_ENABLED);\n assertTrue(\"Must be enabled since the mock service is enabled\", manager.isEnabled());\n\n // Disable accessibility\n manager.getClient().setState(0);\n mHandler.sendAllMessages();\n assertFalse(\"Must be disabled since the mock service is disabled\", manager.isEnabled());\n }", "void accelerate() {\n isAccelerating = true;\n Bukkit.getScheduler().scheduleSyncRepeatingTask(Cars.getInstance(), new BukkitRunnable() {\n @Override\n public void run() {\n if (!isAccelerating) {\n cancel();\n return;\n } else if (CAR.getAcceleration(DIRECTION.getOpposite()).isAccelerating) {\n // Just stop the car if both cars are accelerating because it means the driver is holding down 's'\n // and 'w' at the same time.\n CAR.stopCompletely();\n return;\n }\n\n Minecart minecart = CAR.getMinecart();\n Vector velocity = minecart.getVelocity();\n velocity.add(/* TODO ACCELERATION direction*/new Vector());\n if (velocity.length() >= minecart.getMaxSpeed()) isAccelerating = false;\n minecart.setDerailedVelocityMod(velocity);\n }\n }, 1, 1);\n }", "@Override\n public void onResume(){\n super.onResume();\n CVAdapter.setItemCount(getDefaultItemCount());\n }", "private void HandleLoadingAds(){\n\n\n recyclerView.addOnScrollListener(new RecyclerView.OnScrollListener() {\n @Override\n public void onScrollStateChanged(RecyclerView recyclerView, int newState) {\n super.onScrollStateChanged(recyclerView, newState);\n\n if(newState== AbsListView.OnScrollListener.SCROLL_STATE_TOUCH_SCROLL){\n isScrolling=true;\n }\n }\n\n @Override\n public void onScrolled(RecyclerView recyclerView, int dx, int dy) {\n super.onScrolled(recyclerView, dx, dy);\n\n totalItems=layoutManager.getItemCount();\n currentItems=layoutManager.getChildCount();\n scrolledOutItems=layoutManager.findFirstVisibleItemPosition();\n\n if(isScrolling==true&&totalItems==(currentItems+scrolledOutItems)){\n\n isScrolling=false;\n\n loadMoreData();\n }\n }\n });\n }", "public void setDirectionPriority(int directionPriority) {\n/* 202 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n\tpublic int getMovementFlags(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder) {\n\t\tif (viewHolder instanceof UndoViewHolder) {\n\t\t\treturn 0;\n\t\t} else {\n\t\t\tint swipeFlags = ItemTouchHelper.START | ItemTouchHelper.END;\n\t\t\treturn makeMovementFlags(0, swipeFlags);\n\t\t}\n\t}", "protected boolean onAdvise(String topic, String item, int uFmt, long hconv)\n {\n return isItemSupported(topic, item, uFmt);\n }", "@Override\n public void calculateMove() {\n int xa = 0, ya = 0;\n if (steps <= 0) {\n direction = ep.calculateDirection();\n steps = MAX_STEPS;\n }\n if (direction == 0) {\n ya--;\n }\n if (direction == 2) {\n ya++;\n }\n if (direction == 3) {\n xa--;\n }\n if (direction == 1) {\n xa++;\n }\n if (canMove(xa, ya)) {\n steps -= 1 + rest;\n move(xa * speed, ya * speed);\n moving = true;\n } else {\n steps = 0;\n moving = false;\n }\n }", "public void adjust()\n {\n }", "@Override\r\n public boolean supportsPredictiveItemAnimations() {\r\n return true;\r\n }", "public void initializeCounters() {\n resetCounters();\n lastAd = tozAdCampaign.size() - 1;\n if (baseAd > lastAd) baseAd = lastAd;\n if (baseViewIndex > lastAd) baseViewIndex = lastAd;\n if (baseViewIndex < 0) baseViewIndex = 0;\n alignRefreshInterval();\n reInitializeCampaign = false;\n }", "public boolean checkCapacity(Item item) {\n\t\treturn this.currentCapacity() + item.getCapacity() <= this.maxCapacity;\n\t}", "private int moveForward(int i, int s) {\n if (i + s >= items.length) {\n return ((i + s) - items.length);\n }\n return i + s;\n }", "public void processDelay() {\n if (errorCounter > 0) {\n if (delayCounter >= AppyAdService.getInstance().maxDelay()) {\n setAdProcessing(true);\n errorCounter = AppyAdService.getInstance().maxErrors() - 1;\n delayCounter = 0;\n }\n else delayCounter++;\n }\n }", "void base_case() {\n down_angle=Math.abs(down_angle);\n up_angle=Math.abs(up_angle);\n distance_from_object = human_length / Math.tan(Math.toRadians(down_angle));\n length_of_object = human_length + Math.tan(Math.toRadians(up_angle)) * distance_from_object;\n if(length_of_object/100>0) {\n ORI.setText(\"length_of_object :\\n\" + String.valueOf(String.format(\"%.2f\", (length_of_object / 100)) + \" M\" +\n \"\\n\" + \"distance_from_object :\\n\" + String.valueOf(String.format(\"%.2f\", (distance_from_object / 100))) + \" M\"));\n ORI.setVisibility(View.VISIBLE);\n }\n else {\n Toast.makeText(Online.this, \"Move Forward\", Toast.LENGTH_LONG).show();\n down_angle = 0;\n up_angle = 0;\n touch_ground_switch.setVisibility(View.VISIBLE);\n }\n\n\n }", "private void updateExpectedTotalOffices() {\n mExpectedTotalOffices++;\n }", "private int getPlayerCounter_CheckForOrderValidity() {\r\n\t\tif ( playerList.size() <= playerCounter)\r\n\t\t\tplayerCounter = 0;\r\n\t\treturn playerCounter;\r\n\t}", "@Override\n protected boolean isItemsOrderReversed() {\n return Utils.isCornerBottom(mCurrentCorner);\n }", "@Override\n public int getItemCount() {\n // 12. Returning 0 here will tell our Adapter not to make any Items. Let's fix that.\n return listOfData.size();\n }", "@Override\n public boolean applyThis() {\n Unit source = (Unit) ref.getSourceObj();\n Ref REF = ref.getCopy();\n Condition conditions = new OrConditions(\n DC_ConditionMaster\n .getSelectiveTargetingTemplateConditions(SELECTIVE_TARGETING_TEMPLATES.MY_ITEM),\n DC_ConditionMaster\n .getSelectiveTargetingTemplateConditions(SELECTIVE_TARGETING_TEMPLATES.MY_WEAPON));\n if (!new SelectiveTargeting(conditions).select(REF)) {\n ref.getActive().setCancelled(true);\n return false;\n }\n HeroItem item = (HeroItem) REF.getTargetObj();\n conditions = new Conditions(\n // ++ Max distance?\n new DistanceCondition(ref.getActive().getIntParam(PARAMS.RANGE, false) + \"\"),\n // new NumericCondition(\"{match_c_n_of_actions}\", \"1\"),\n new CanActCondition(KEYS.MATCH),\n new NotCondition(ConditionMaster.getSelfFilterCondition()),\n DC_ConditionMaster\n .getSelectiveTargetingTemplateConditions(SELECTIVE_TARGETING_TEMPLATES.ANY_ALLY));\n // non-immobile, ++facing?\n if (!new SelectiveTargeting(conditions).select(REF)) {\n ref.getActive().setCancelled(true);\n return false;\n }\n\n Unit unit = (Unit) REF.getTargetObj();\n\n boolean result = roll(source, unit, item);\n if (item instanceof QuickItem) {\n QuickItem quickItem = (QuickItem) item;\n source.removeQuickItem(quickItem);\n if (result) {\n unit.addQuickItem(quickItem);\n } else {\n dropped(item, unit);\n }\n\n } else {\n source.unequip(item, null);\n if (result) {\n unit.addItemToInventory(item); // TODO equip in hand if\n }\n// possible? spend AP?\n else {\n dropped(item, unit);\n }\n\n }\n // ref.getObj(KEYS.ITEM);\n return true;\n }", "public boolean canAttackWithItem() {\n/* 253 */ return false;\n/* */ }", "public static void advanceDealer() {\r\n\t\t//Advances when current dealer is player1.\r\n\t\tif (Main.curDealer.equals(Main.player1)) {\r\n\t\t\tMain.curDealer = Main.player2;\r\n\t\t\tMain.dealerIsPlayer1 = false;\r\n\t\t\tMain.dealerIsPlayer2 = true;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t//Advances when current dealer is player2.\r\n\t\tif (Main.curDealer.equals(Main.player2)) {\r\n\t\t\tMain.curDealer = Main.player3;\r\n\t\t\tMain.dealerIsPlayer2 = false;\r\n\t\t\tMain.dealerIsPlayer3 = true;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t//Advances when current dealer is player3.\r\n\t\tif (Main.curDealer.equals(Main.player3)) {\r\n\t\t\tMain.curDealer = Main.player1;\r\n\t\t\tMain.dealerIsPlayer3 = false;\r\n\t\t\tMain.dealerIsPlayer1 = true;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t//For advancing the dealer when playing a four handed game.\r\n\t\tif (!Main.isThreeHanded) {\r\n\t\t\t//Advances when current dealer is player3.\r\n \t\t\tif (Main.curDealer.equals(Main.player3)) {\r\n\t\t\t\tMain.curDealer = Main.player4;\r\n\t\t\t\tMain.dealerIsPlayer3 = false;\r\n\t\t\t\tMain.dealerIsPlayer4 = true;\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n \t\t\t//Advances when current dealer is player4.\r\n\t\t\tif (Main.curDealer.equals(Main.player4)) {\r\n\t\t\t\tMain.curDealer = Main.player1;\r\n\t\t\t\tMain.dealerIsPlayer4 = false;\r\n\t\t\t\tMain.dealerIsPlayer1 = true;\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private boolean needToTurn() {\n\t\tdouble curDir = sens.getDirection();\n\t\tdouble desDirPlusAmount = desiredDirection + TURNSPEED;\n\t\tdouble desDirMinusAmount = desiredDirection - TURNSPEED;\n\n\t\t// if desired direction is <||> +_ x degrees\n\t\tif (curDir < desDirMinusAmount || curDir > desDirPlusAmount) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "@Override\n\t\t\tprotected void updateEnabled() {\n\t\t\t}", "@Override\n public void onRewordEnable(boolean arg0, boolean arg1) {\n\n }", "public boolean canAttackWithItem() {\n/* 215 */ return false;\n/* */ }", "@Override\n public int getMaxItemUseDuration(ItemStack par1ItemStack) {\n return 10;\n }", "@Override\npublic void applyFunctionality(AdvancedAdapter<T, ?> adapter, RecyclerView recyclerView) {\n\tandroidx.recyclerview.widget.ItemTouchHelper itemTouchHelper;\n\tif (canSwipeBetweenPages(recyclerView)) {\n\t\titemTouchHelper = new ItemTouchHelper(new ItemRemoveCallback());\n\t} else {\n\t\titemTouchHelper = new androidx.recyclerview.widget.ItemTouchHelper(new ItemRemoveCallback());\n\t}\n\titemTouchHelper.attachToRecyclerView(recyclerView);\n\t\n\t// Red background when erasing\n\tBackgroundDecoration backgroundDecoration = new BackgroundDecoration();\n\trecyclerView.addItemDecoration(backgroundDecoration);\n\t\n}", "@Override\n public void onScrolled(RecyclerView view, int dx, int dy) {\n int lastVisibleItemPosition = 0;\n int totalItemCount = mLayoutManager.getItemCount();\n Log.d(\"LOADING TOTAL COUNT\", String.valueOf(totalItemCount));\n if (mLayoutManager instanceof StaggeredGridLayoutManager) {\n int[] lastVisibleItemPositions = ((StaggeredGridLayoutManager) mLayoutManager).findLastVisibleItemPositions(null);\n // get maximum element within the list\n lastVisibleItemPosition = getLastVisibleItem(lastVisibleItemPositions);\n } else if (mLayoutManager instanceof LinearLayoutManager) {\n lastVisibleItemPosition = ((LinearLayoutManager) mLayoutManager).findLastVisibleItemPosition();\n } else if (mLayoutManager instanceof GridLayoutManager) {\n lastVisibleItemPosition = ((GridLayoutManager) mLayoutManager).findLastVisibleItemPosition();\n }\n\n // If the total item count is zero and the previous isn't, assume the\n // list is invalidated and should be reset back to initial state\n if (totalItemCount < previousTotalItemCount) {\n this.currentPage = this.startingPageIndex;\n this.previousTotalItemCount = totalItemCount;\n if (totalItemCount == 0) {\n\n this.loading = true;\n }else{\n this.loading = false; // if crate a new adapter start again\n }\n }\n // If it’s still loading, we check to see if the dataset count has\n // changed, if so we conclude it has finished loading and update the current page\n // number and total item count.\n if (loading && (totalItemCount > previousTotalItemCount)) {\n loading = false;\n previousTotalItemCount = totalItemCount;\n }\n\n // If it isn’t currently loading, we check to see if we have breached\n // the visibleThreshold and need to reload more data.\n // If we do need to reload some more data, we execute onLoadMore to fetch the data.\n // threshold should reflect how many total columns there are too\n Log.d(\"LOADING VALUE\", String.valueOf(loading));\n if (!loading && (lastVisibleItemPosition + visibleThreshold) > totalItemCount) {\n currentPage++;\n onLoadMore(currentPage, totalItemCount);\n loading = true;\n }\n }", "@Override\n public int getItemCount() {\n return ((LEADERBOARD_SIZE + 1) * NUMBER_OF_LEADERBOARDS);\n }", "private void setUpPageItem() {\n displaylimit = xmlhandler.getItemDisplayLimit();\n itemrow = inventory.getItemRow();\n Back.setEnabled(false);\n Begin.setEnabled(false);\n if(getPageEnd()==1) {\n Forward.setEnabled(false);\n End.setEnabled(false);\n }\n }", "public int getNumberOfItems() {\r\n return decorItems.size();\r\n }", "public void bumpItemQuantity(int index, boolean increase) {\n if (index >= 0 && index < mQuantityOrdered.length) {\n if (increase) {\n mQuantityOrdered[index]++;\n mTotalOrdered++;\n mTotalItemsChangedListener.onTotalItemsChanged(mTotalOrdered);\n } else if(mQuantityOrdered[index] > 0) {\n mQuantityOrdered[index]--;\n mTotalOrdered--;\n mTotalItemsChangedListener.onTotalItemsChanged(mTotalOrdered);\n }\n }\n notifyDataSetChanged();\n }", "@Override\n public int getCount() {\n return mLeDevices.size();\n }", "@Override\n void setupState(TYPE firstItem) {\n currentItem = 0;\n }", "public void adjustInitialPosition() {\n\n //TelemetryWrapper.setLine(1,\"landFromLatch...\");\n runtime.reset();\n double maxLRMovingDist = 200.0; //millimeters\n double increamentalDist = 50.0;\n while ( runtime.milliseconds() < 5000 ) {\n int loops0 = 0;\n while ((loops0 < 10) && ( mR.getNumM() == 0 )) {\n mR.update();\n loops0 ++;\n }\n if (mR.getNumM() <= 1) {\n int loops = 0;\n while ( mR.getNumM() <= 1 )\n driveTrainEnc.moveLeftRightEnc(increamentalDist, 2000);\n continue;\n } else if ( mR.getHAlignSlope() > 2.0 ) {\n driveTrainEnc.spinEnc(AUTO_DRIVE_SPEED,Math.atan(mR.getHAlignSlope()),2000);\n continue;\n } else if (! mR.isGoldFound()) {\n\n driveTrainEnc.moveLeftRightEnc(increamentalDist,2000);\n continue;\n } else if ( mR.getFirstGoldAngle() > 1.5 ) {\n driveTrainEnc.spinEnc(AUTO_DRIVE_SPEED, mR.getFirstGoldAngle(),2000);\n continue;\n }\n }\n driveTrainEnc.stop();\n }", "private void checkItemsAvailability() {\n if (noItemsText != null && itemList != null && itemRecyclerView != null) {\n if (itemList.size() < 1) {\n itemRecyclerView.setVisibility(View.GONE);\n noItemsText.setVisibility(View.VISIBLE);\n } else {\n noItemsText.setVisibility(View.GONE);\n itemRecyclerView.setVisibility(View.VISIBLE);\n }\n }\n }" ]
[ "0.49733475", "0.4926202", "0.47653764", "0.47624868", "0.47582462", "0.4741134", "0.4713712", "0.47061312", "0.46910745", "0.4658593", "0.46484277", "0.45945227", "0.45795566", "0.45137867", "0.44765267", "0.44700736", "0.44663426", "0.44179475", "0.44144285", "0.44122085", "0.43954986", "0.43892252", "0.43830508", "0.438006", "0.43770072", "0.4355412", "0.43509623", "0.43493065", "0.43489367", "0.43452072", "0.43441656", "0.4328774", "0.43264145", "0.43234977", "0.43169075", "0.4314344", "0.43100896", "0.43089223", "0.42945033", "0.42891347", "0.42875877", "0.42821732", "0.42739314", "0.4270822", "0.42657587", "0.426206", "0.42544395", "0.42543814", "0.42522493", "0.4247723", "0.4245009", "0.42420325", "0.4236969", "0.4235412", "0.4234123", "0.42289707", "0.42280394", "0.42104498", "0.42096132", "0.42071304", "0.42052847", "0.4202534", "0.42025122", "0.4202359", "0.4196363", "0.4193462", "0.41926974", "0.41911322", "0.41825646", "0.41813728", "0.4169598", "0.41664472", "0.4165831", "0.4163269", "0.41627038", "0.41591626", "0.4159111", "0.41584405", "0.41550043", "0.41514596", "0.41474548", "0.41474104", "0.41458043", "0.41446722", "0.41354313", "0.41347742", "0.41347408", "0.41300383", "0.41298786", "0.41244644", "0.41180938", "0.41168696", "0.4116426", "0.41143423", "0.41132617", "0.4113011", "0.41095278", "0.4107509", "0.4106945", "0.41038826" ]
0.5893055
0
Final part of MoveBackward method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result: Device is enabled, CapMoveBackward is true, Specified speed is between 1 and CapSpeedStepsBackward.
public void moveBackward(int speed) throws JposException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void moveBackward(boolean endWithBrake){\r\n \r\n Motor.B.rotate(-1*DEGREES_PER_TILE, true);//Accesses Motor thread\r\n Motor.C.rotate(-1*DEGREES_PER_TILE, true);\r\n while(Motor.B.isMoving() || Motor.C.isMoving())\r\n ;//wait for motors to be done\r\n return;\r\n }", "public void driveStraightBackwards(double speed) {\r\n \tspeed = Math.abs(speed);\r\n \tint angle = getGyroAngle();\r\n \tdrivetrain.drive(-1 * speed, angle * kP);\r\n \tTimer.delay(0.004); //4 millisecond delay to allow for gyro to calibrate\r\n }", "public void moveDown() {\n speedY -= (speedY > 0) ? acceleration * 2 : acceleration;\n if (speedY < -maxSpeed) {\n speedY = -maxSpeed;\n }\n direction = Direction.DOWN;\n }", "public void backward()\n\t{\n\t\tupdateState( MotorPort.BACKWARD);\n\t}", "public void moveDown(double speed){\n speed *= ARM_SPEED_MULT;\n arm.setPower(-speed);\n if (arm.getCurrentPosition() <= ARM_LOWER_BOUND) {\n arm.setPower(0);\n }\n }", "public void stepBackward() {\n\t\tposition = backwardPosition();\n\t}", "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}", "public void down() {\n\t\tmotor1.set( -Constants.CLAW_MOTOR_SPEED );\n\t\t}", "public void decSpeed()\n\t{\n\t\tmoveVec.setLocation(moveVec.getX() * .9, moveVec.getY() * .9);\n\t\t//this.speed *= 0.9;\n\t}", "@Override\n public void move() {\n int speed = this.getSpeed();\n this.setSpeed(speed - 1);\n\n if (this.getSpeed() == 0) {\n super.move();\n this.setSpeed(1);\n }\n }", "public void reviseMotorSpeed() {\n\t\tmHandler.removeMessages(EVAL_MOTOR_SPEED);\n\t\tlong starttime = System.currentTimeMillis();\n\n\t\t//Retrieve current orientation.\t\t\n\t\t\n\t\tmAzimuth = mStatus.getReadingField(AZIMUTH);\t\t\n\t\tmPitchDeg = mStatus.getReadingField(PITCH);\n\t\tmRollDeg = -mStatus.getReadingField(ROLL);\n\t\t\n\t\tdouble[] errors = new double[4];\n\t\tsynchronized (mAngleTarget) {\n\t\t\t//logArray(\"mAngleTarget\", mAngleTarget);\n\t\t\terrors[0] = mAngleTarget[0] - mRollDeg;\n\t\t\terrors[1] = mAngleTarget[1] - mPitchDeg;\n\t\t\terrors[2] = mAngleTarget[2] - mStatus.getGpsField(dALT);\n\t\t\terrors[3] = mAngleTarget[3] - mAzimuth;\n\t\t\t//logArray(\"errors\", errors);\n\t\t}\n\t\t\n\t\t@SuppressWarnings(\"unused\")\n\t\tString errs = \"errors: \";\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\terrs += errors[i] + \": \";\n\t\t}\n\t\t//Log.v(TAG, errs);\n\t\t//For azimuth, multiple possibilities exist for error, each equally valid; but only the error nearest zero makes practical sense.\n\t\tif (errors[3] > 180.0)\n\t\t\terrors[3] -= 360.0;\n\t\tif (errors[3] < -180.0)\n\t\t\terrors[3] += 360.0;\n\t\t\n\t\t\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\t//Calculate proportional errors\n\t\t\tdouble err = errors[i];//mTarget[i] - mCurrent[i];\n\t\t\t\n\n\t\t\t//Calculate derivative errors.\n\t\t\tlong timeInterval = starttime - mLastUpdate;\n\t\t\tif (timeInterval != 0) {\n\t\t\t\tmErrors[i][2] = (err - mErrors[i][0]) * 1000.0 / timeInterval;\n\t\t\t} else {\n\t\t\t\tmErrors[i][2] = 0.0;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//Mark proportional error\n\t\t\tmErrors[i][0] = err;\n\t\t\t/*if (i == 2)\n\t\t\t\tLog.v(TAG, \"guid, dalt err is \" + err);*/\n\t\t\t//Update integral errors\n\t\t\tmErrors[i][1] -= mIntegralErrors[i][mIntegralIndex];\n\t\t\tmIntegralErrors[i][mIntegralIndex] = err;\n\t\t\tmErrors[i][1] += err;\n\t\t\tmIntegralIndex = ++mIntegralIndex % PIDREPS;\n\t\t\t\n\t\t\t//Calculate changes in output\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tmControlVars[i] += mErrors[i][j] * mGain[i][j];\n\t\t\t}\n\t\t}\n\t\tif (mGuidanceMode.get() == MANUAL) {\n\t\t\tsynchronized (mAngleTarget) {\n\t\t\t\tmControlVars[2] = mAngleTarget[2];\n\t\t\t}\n\t\t}\n\t\tmLastUpdate = starttime;\n\t\t\n\t\t// Constrain control vars:\n\t\tmControlVars[0] = constrainValue(mControlVars[0], -1, 1);\n\t\tmControlVars[1] = constrainValue(mControlVars[1], -1, 1);\n\t\tmControlVars[2] = constrainValue(mControlVars[2], 0, 1);\n\t\tmControlVars[3] = constrainValue(mControlVars[3], -2, 2);\n\t\t\n\t\t/*String vars = \"Control vars: \";\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tvars += mControlVars[i] + \": \";\n\t\t}\n\t\tLog.v(TAG, vars);*/\n\t\t\n\t\tcontrolVarsToMotorSpeeds();\n\t\t\n\t\t//Send motor values to motors here:\n\t\tupdateMotors();\n\t\tupdateAngleTarget();\n\t\t//Log.v(TAG, \"motors: \" + mMotorSpeed[0] + \", \" + mMotorSpeed[1] + \", \" + mMotorSpeed[2] + \", \" + mMotorSpeed[3]);\n\t\t//Sleep a while\n\t\tlong timetonext = (1000 / PIDREPS) - (System.currentTimeMillis() - starttime);\n\t\t//Log.v(TAG, \"time to next: \" + timetonext);\n\t\tint currentMode = mGuidanceMode.get();\n\t\tif ((currentMode == MANUAL) || (currentMode == AUTOPILOT)) {\n\t\t\tif (timetonext > 0)\n\t\t\t\tmHandler.sendEmptyMessageDelayed(EVAL_MOTOR_SPEED, timetonext);\n\t\t\telse {\n\t\t\t\tLog.e(TAG, \"Guidance too slow\");\n\t\t\t\tmHandler.sendEmptyMessage(EVAL_MOTOR_SPEED);\n\t\t\t}\n\t\t}\n\t}", "private void moveClawDown() {\n\t\tMotor.A.setSpeed(45);\n\t\tMotor.A.rotate(-90);\n\t}", "boolean isBackwardPredicted()\n {\n return (mbType & BACKWARD)!=0;\n }", "@Override\n void slowDown() {\n if (this.speed>0){\n this.speed=this.speed-1;\n }\n }", "@Override\r\n\tpublic boolean canSeekBackward() {\n\t\treturn true;\r\n\t}", "public void backward(int step) {\r\n\t\tString s;\r\n\t\tthis.x = checkValidX(this.x + Constant.SENSORDIRECTION[(this.getDirection()+2)%4][0]); // Move back without turning\r\n\t\tthis.y = checkValidX(this.y + Constant.SENSORDIRECTION[(this.getDirection()+2)%4][1]);\r\n\t\tswitch (this.getDirection()) {\r\n\t\t\tcase Constant.NORTH:\r\n\t\t\t\ts = \"Up\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase Constant.EAST:\r\n\t\t\t\ts = \"Right\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase Constant.SOUTH:\r\n\t\t\t\ts = \"Down\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase Constant.WEST:\r\n\t\t\t\ts = \"Left\";\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\ts = \"Error\";\r\n\t\t}\r\n\t\ttoggleValid();\r\n\t\tfor (int i = 0; i < step * Constant.GRIDWIDTH; i++) {\r\n\t\t\tt.schedule(new MoveImageTask(robotImage, s, 1), delay * (i + 1));\r\n\t\t}\r\n\t}", "public abstract void moveDown(int speed);", "void moveDown(double speed, double destination)\n {\n this.destination = shaftHeight-(destination*floorHeight);\n if(speed == 1.75) speed = 1.25;\n else if(speed == 0.875) speed = 0.6;\n\n elevatorOffset = 1*speed;\n motorTimeline.play();\n }", "public void move() {\n track += speed;\n speed += acceleration;\n if (speed <= 0) {\n speed =0;\n }\n if (speed >= MAX_SPEED) {\n speed = MAX_SPEED;\n }\n y -= dy;\n if (y <=MAX_TOP) {\n y = MAX_TOP;\n }\n if (y >=MAX_BOTTOM){\n y = MAX_BOTTOM;\n }\n if (layer2 - speed <= 0) {\n layer1 = 0;\n layer2 = 2400;\n } else {\n\n layer1 -= speed;\n layer2 -= speed;\n }\n }", "private void driveRight() {\n setSpeed(MAX_SPEED, MIN_SPEED);\n }", "public void moveDown(int speed)\n {\n if(getRotation()==0)\n {\n turn(90);\n move(speed);\n }\n else if(getRotation()==90)\n {\n move(speed);\n }\n else if(getRotation()==180)\n {\n turn(-90);\n move(speed);\n }\n else if(getRotation()==270)\n {\n turn(180);\n move(speed);\n }\n }", "void atras(){\n\t\tMotorA.stop();\n\t\tMotorB.setSpeed(700);\n\t\tMotorC.setSpeed(700);\n\t\t\n\t\tMotorB.backward();\n\t\tMotorC.backward();\n\t}", "public void gyroDrive ( double speed,\n double distance,\n double angle) {\n\n\n // Ensure that the opmode is still activ\n\n // Determine new target position, and pass to motor controller\n moveCounts = (int)(distance * COUNTS_PER_INCH);\n newLeftTarget = leftmotor.getCurrentPosition() + moveCounts;\n newRightTarget = rightmotor.getCurrentPosition() + moveCounts;\n\n // Set Target and Turn On RUN_TO_POSITION\n leftmotor.setTargetPosition(newLeftTarget);\n rightmotor.setTargetPosition(newRightTarget);\n\n leftmotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n rightmotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n\n // start motion.\n speed = Range.clip(Math.abs(speed), 0.0, 1.0);\n\n maxSpeed = speed;\n speed = INCREMENT;\n rampUp = true;\n\n leftmotor.setPower(speed);\n rightmotor.setPower(speed);\n\n // keep looping while we are still active, and BOTH motors are running.\n while ((leftmotor.isBusy() && rightmotor.isBusy())) {\n if (rampUp){\n speed += INCREMENT ;\n if (speed >= maxSpeed ) {\n speed = maxSpeed;\n }\n }\n\n // adjust relative speed based on heading error.\n error = getError(angle);\n steer = getSteer(error, P_DRIVE_COEFF);\n\n // if driving in reverse, the motor correction also needs to be reversed\n if (distance < 0)\n steer *= -1.0;\n\n leftSpeed = speed - steer;\n rightSpeed = speed + steer;\n\n // Normalize speeds if either one exceeds +/- 1.0;\n max = Math.max(Math.abs(leftSpeed), Math.abs(rightSpeed));\n if (max > 1.0)\n {\n leftSpeed /= max;\n rightSpeed /= max;\n }\n\n leftmotor.setPower(leftSpeed);\n rightmotor.setPower(rightSpeed);\n }\n\n // Stop all motion;\n leftmotor.setPower(0);\n rightmotor.setPower(0);\n\n // Turn off RUN_TO_POSITION\n leftmotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n rightmotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n\n gyroHold(TURN_SPEED,angle,0.166);\n\n }", "@Override\n\tpublic void moveBackward(int inches) throws ObstacleHitException {\n\t\t\n\t}", "public boolean isBackward()\n {\n return (state == AnimationState.BACKWARD);\n }", "public void moveDown(){\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.DOWN;\n\t\tif(animation!=ANIMATION.MOVEDOWN) {\n\t\t\tanimation=ANIMATION.MOVEDOWN;\n\t\t\tif(run!=null) sequence.startSequence(run);\n\t\t}\n\t\tdirection=\"down\";\n\t\tsetNextXY();\n\t\tsetDestination(nextX,nextY);\n\t\tvelY=spd/2;\n\t\tvelX=0;\n\t}", "public void goReverse(int motor, int speed, boolean abrupt) {\n move(motor, speed, (byte)DIR_REVERSE, abrupt);\n }", "public void decreaseSpeed() {\n\t\tif(this.getSpeed() > 0) {\n\t\t\tthis.setSpeed(this.getSpeed() - 5);\n\t\t\tSystem.out.println(\"decrease speed by 5\\n\");\n\t\t}else {\n\t\t\tSystem.out.println(\"You already reach at the mimimum speed 0\\n\");\n\t\t}\n\t}", "void driveStop() {\n flMotor.setPower(0);\n frMotor.setPower(0);\n blMotor.setPower(0);\n brMotor.setPower(0);\n }", "public void applyBrake(int decrement)\r\n {\r\n speed -= decrement;\r\n }", "public void arm_down() {\n arm_analog(-RobotMap.Arm.arm_speed);\n }", "boolean stopWithAccLimits(PoseStamped global_pose, final PoseStamped robot_vel, Twist cmd_vel){\n double vx = sign(robot_vel.getPose().getPosition().getX()) * Math.max(0.0, (Math.abs(robot_vel.getPose().getPosition().getX()) - me.acc_lim_x_ * me.simPeriod));\n double vy = sign(robot_vel.getPose().getPosition().getY()) * Math.max(0.0, (Math.abs(robot_vel.getPose().getPosition().getY()) - me.acc_lim_y_ * me.simPeriod));\n\n double vel_yaw = LPutils.getYaw(robot_vel.getPose().getOrientation());\n double vth = sign(vel_yaw) * Math.max(0.0, (Math.abs(vel_yaw) - me.acc_lim_th_ * me.simPeriod));\n\n //we do want to check whether or not the command is valid?????????????\n boolean valid_cmd = true; //collision_planner_.checkTrajectory(vx, vy, vth, true);\n\n //if we have a valid command, we'll pass it on, otherwise we'll command all zeros\n if(valid_cmd){\n //ROS_DEBUG(\"Slowing down... using vx, vy, vth: %.2f, %.2f, %.2f\", vx, vy, vth);\n linear.setX(vx);\n linear.setY(vy);\n cmd_vel.setLinear(linear);\n angular.setZ(vth);\n cmd_vel.setAngular(angular);\n return true;\n }\n\n linear.setX(0.0);\n linear.setY(0.0);\n linear.setZ(0.0);\n cmd_vel.setLinear(linear);\n return false;\n }", "public void moveDown()\n {\n if (yPos == yBound)\n {\n movementY = 0;\n movementX = 0;\n }\n\n // Set the movement factor - positive Y because we are moving DOWN!\n movementY = 0.5;\n movementX = 0;\n }", "@Test\n public void testDecrementSpeedExceedingBounds() {\n saab.currentSpeed = 0;\n saab.decrementSpeed(5);\n Assertions.assertEquals(0, saab.getCurrentSpeed());\n }", "static void changeDirectionBackwards() {\n\n if(--direction == -1)\n direction = 3;\n }", "@Override\n protected void end() {\n mDrive.setSpeed(0.0, 0.0);\n }", "public static void moveArm(double speed) {\n\t\tSmartDashboard.putNumber(\"Arm Max value\",maxPos);\n\t\tSmartDashboard.putNumber(\"Arm Min value\",minPos);\n\t\tActuators.getArmAngleMotor().changeControlMode(TalonControlMode.PercentVbus);\t//CHECK THIS SCOTT\n\t\tSmartDashboard.putNumber(\"Percent of Arm Angle\", unMapPosition(Actuators.getArmAngleMotor().getPosition()));\t//CHECK THIS SCOTT\n\t\tSmartDashboard.putNumber(\"Arm Position\", Actuators.getArmAngleMotor().getPosition());\n\t\tSmartDashboard.putNumber(\"THeoreticalPID position\", mapPosition(unMapPosition(Actuators.getArmAngleMotor().getPosition())));\n\t\tif (Gamepad.secondary.getBack()) {\n\t\t\tActuators.getArmAngleMotor().set(speed);\n\t\t} else {\n\t\t\tif ((Actuators.getArmAngleMotor().getPosition() < MAX_ARM_POSITION && Sensors.getArmMinLimitSwitch().get())\n\t\t\t\t\t&& speed > 0) {\n\t\t\t\tActuators.getArmAngleMotor().set(speed / 2);\n\t\t\t} else if ((Actuators.getArmAngleMotor().getPosition() > MIN_ARM_POSITION\n\t\t\t\t\t&& Sensors.getArmMaxLimitSwitch().get()) && speed < 0) {\n\t\t\t\tActuators.getArmAngleMotor().set(speed);\n\t\t\t} else if (!Sensors.getArmMaxLimitSwitch().get()){\n\t\t\t\tActuators.getArmAngleMotor().set(Actuators.STOP_MOTOR);\t\t\t\t//CHECK THIS SCOTT\n\t\t\t\tmaxPos = Actuators.getArmAngleMotor().getPosition();\t\t//CHECK THIS SCOTT\n\t\t\t} else if (!Sensors.getArmMinLimitSwitch().get()){\t\t\t\t\t\t//CHECK THIS SCOTT\n\t\t\t\tActuators.getArmAngleMotor().set(Actuators.STOP_MOTOR);\t\t\t\t//CHECK THIS SCOTT\n\t\t\t\tminPos = Actuators.getArmAngleMotor().getPosition();\t\t//CHECK THIS SCOTT\n\t\t\t}\n\t\t\telse {\n\t\t\t\tActuators.getArmAngleMotor().set(Actuators.STOP_MOTOR);\n\t\t\t}\n\n\t\t\t// speed = -speed;\n\t\t\tSmartDashboard.putNumber(\"Arm Position\", Actuators.getArmAngleMotor().getPosition());\n\t\t\tif (Gamepad.secondary.getBack()) {\n\t\t\t\tActuators.getArmAngleMotor().set(speed);\n\t\t\t} else {\n\t\t\t\tif ((Sensors.getArmMaxLimitSwitch().get()) && speed < 0) {\n\t\t\t\t\tActuators.getArmAngleMotor().set(speed);\n\t\t\t\t} else if ((Sensors.getArmMinLimitSwitch().get()) && speed > 0) {\n\t\t\t\t\tActuators.getArmAngleMotor().set(speed);\n\t\t\t\t} else if (!Sensors.getArmMaxLimitSwitch().get()){\n\t\t\t\t\tActuators.getArmAngleMotor().set(Actuators.STOP_MOTOR);\t\t\t\t//CHECK THIS SCOTT\n\t\t\t\t\tmaxPos = Actuators.getArmAngleMotor().getPosition();\t\t//CHECK THIS SCOTT\n\t\t\t\t} else if (!Sensors.getArmMinLimitSwitch().get()){\t\t\t\t\t\t//CHECK THIS SCOTT\n\t\t\t\t\tActuators.getArmAngleMotor().set(Actuators.STOP_MOTOR);\t\t\t\t//CHECK THIS SCOTT\n\t\t\t\t\tminPos = Actuators.getArmAngleMotor().getPosition();\t\t//CHECK THIS SCOTT\n\t\t\t\t} else {\n\t\t\t\t\tActuators.getArmAngleMotor().set(Actuators.STOP_MOTOR);\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t\t// if (!(/*\n\t\t\t\t// * Actuators.getArmAngleMotor().getPosition() >\n\t\t\t\t// * MAX_ARM_POSITION &&\n\t\t\t\t// */\n\t\t\t\t// Sensors.getArmMaxLimitSwitch().get()) && speed > 0) {\n\t\t\t\t// Actuators.getArmAngleMotor().set(speed);\n\t\t\t\t// } else if (!(/*\n\t\t\t\t// * Actuators.getArmAngleMotor().getPosition() <\n\t\t\t\t// * MIN_ARM_POSITION &&\n\t\t\t\t// */\n\t\t\t\t// Sensors.getArmMinLimitSwitch().get()) && speed < 0) {\n\t\t\t\t// Actuators.getArmAngleMotor().set(speed);\n\t\t\t\t// } else {\n\t\t\t\t// Actuators.getArmAngleMotor().set(Actuators.STOP_MOTOR);\n\t\t\t\t//\n\t\t\t\t// }\n\t\t\t}\n\t\t}\n\t}", "public void autoStopBackwardDelayTime(int delay) throws JposException;", "private void reverseCompSpeed() {\n this.compSpeed = -this.compSpeed;\n }", "@Test\n public void testDecrementSpeed() {\n saab.currentSpeed = .5;\n saab.decrementSpeed(.3);\n Assertions.assertTrue(saab.getCurrentSpeed() <= .2);\n }", "public void grip(){\n\t\tthis.motor.backward();\n\t}", "public void goDown() {\n\t\tacceleration = 1;\n\t}", "void adelante(int speed){\n\t\tMotorA.setSpeed(speed);\n\t\tMotorB.setSpeed(speed);\n\t\tMotorC.setSpeed(speed);\n\t\t\n\t\tMotorA.backward();\n\t\tMotorB.forward();\n\t\tMotorC.forward();\n\t}", "@Override\n public void backward() {\n }", "public void liftDown() {\n set(m_defaultLiftSpeedDown);\n }", "public void gyroDrive ( double speed,\n double distance,\n double angle) {\n\n int newLeftTarget;\n int newRightTarget;\n int moveCounts;\n double max;\n double error;\n double steer;\n double leftSpeed;\n double rightSpeed;\n\n // Ensure that the opmode is still active\n if (opModeIsActive()) {\n\n // Determine new target position, and pass to motor controller\n moveCounts = (int)(distance * COUNTS_PER_INCH);\n newLeftTarget = leftMotor.getCurrentPosition() + moveCounts;\n newRightTarget = rightMotor.getCurrentPosition() + moveCounts;\n\n // Set Target and Turn On RUN_TO_POSITION\n leftMotor.setTargetPosition(newLeftTarget);\n rightMotor.setTargetPosition(newRightTarget);\n\n leftMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n rightMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n\n // start motion.\n speed = Range.clip(Math.abs(speed), 0.0, 1.0);\n leftMotor.setPower(speed);\n rightMotor.setPower(speed);\n\n // keep looping while we are still active, and BOTH motors are running.\n while (opModeIsActive() &&\n (leftMotor.isBusy() && rightMotor.isBusy())) {\n\n // adjust relative speed based on heading error.\n error = getError(angle);\n steer = getSteer(error, P_DRIVE_COEFF);\n\n // if driving in reverse, the motor correction also needs to be reversed\n if (distance < 0)\n steer *= -1.0;\n\n leftSpeed = speed - steer;\n rightSpeed = speed + steer;\n\n // Normalize speeds if any one exceeds +/- 1.0;\n max = Math.max(Math.abs(leftSpeed), Math.abs(rightSpeed));\n if (max > 1.0)\n {\n leftSpeed /= max;\n rightSpeed /= max;\n }\n\n leftMotor.setPower(leftSpeed);\n rightMotor.setPower(rightSpeed);\n\n // Display drive status for the driver.\n telemetry.addData(\"Err/St\", \"%5.1f/%5.1f\", error, steer);\n telemetry.addData(\"Target\", \"%7d:%7d\", newLeftTarget, newRightTarget);\n telemetry.addData(\"Actual\", \"%7d:%7d\", leftMotor.getCurrentPosition(),\n rightMotor.getCurrentPosition());\n telemetry.addData(\"Speed\", \"%5.2f:%5.2f\", leftSpeed, rightSpeed);\n telemetry.update();\n }\n\n // Stop all motion;\n\n rightMotor.setPower(0);\n leftMotor.setPower(0);\n\n // Turn off RUN_TO_POSITION\n leftMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n rightMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n }\n }", "public boolean canMoveBackward()\n {\n boolean ans = true;\n\n Iterator<WallMulti> walls = this.walls.iterator();\n\n while(walls.hasNext ())\n {\n WallMulti wall = walls.next();\n\n if(wall.getType ().equals (\"H\"))\n {\n if(locX>=wall.getX()-15 && locX<=wall.getX()+wall.getLength()+15)\n {\n //tank upper than wall\n if(wall.getY()-locY<=60 && wall.getY()-locY>=0 && degree>=270 && degree<=360)\n {\n ans=false;\n }\n //tank lower than wall\n if(locY-wall.getY()<=8 && locY-wall.getY()>=0 && degree>=0 && degree<=180)\n {\n ans=false;\n }\n }\n }\n\n if(wall.getType ().equals (\"V\"))\n {\n if(locY>=wall.getY()-15 &&locY<=wall.getY()+wall.getLength()+15)\n {\n //tank at the left side of the wall\n if(wall.getX()-locX<=60 && wall.getX()-locX>=0 &&\n (degree>=90 && degree<=270) )\n {\n ans=false;\n }\n //tank at the right side of the wall\n if(locX-wall.getX()<=8 && locX-wall.getX()>=0 &&\n ((degree>=0 && degree<=90)||(degree>=270 && degree<=360)) )\n {\n ans=false;\n }\n }\n }\n }\n return ans;\n }", "public void moveForward(boolean endWithBrake){\r\n \r\n Motor.B.rotate(DEGREES_PER_TILE, true);//Accesses Motor thread\r\n Motor.C.rotate(DEGREES_PER_TILE, true);\r\n while(Motor.B.isMoving() || Motor.C.isMoving())\r\n ;//wait for motors to be done\r\n return;\r\n }", "public abstract void decelerateMotorSpeeds(double[] motorSpeeds, double distanceToTarget, double lastDistanceToTarget, long timeSinceLastCallNano, double configuredMovementSpeed, double configuredTurnSpeed);", "public void backwards(double x, double y){\r\n\r\n\t\t\tdouble xDistance = x - odometer.getX();//the distance the robot has to travel in x to get to its destination from current position.\r\n\t\t\tdouble yDistance = y - odometer.getY();//the distance the robot has to travel in y to get to its destination from current position.\r\n\t\t\tdouble distance = Math.sqrt(xDistance*xDistance + yDistance*yDistance);//the overall distance the robot has to travel from current position.\r\n\t\t\t\t\r\n\t\t\tleftMotor.setSpeed(FORWARD_SPEED);\r\n\t\t\trightMotor.setSpeed(FORWARD_SPEED);\r\n\r\n\t\t\tleftMotor.rotate(-convertDistance(wheelRadius, distance), true);\r\n\t\t\trightMotor.rotate(-convertDistance(wheelRadius, distance), false);\r\n\t\t}", "private void moveBack(){\r\n\t\tturnAround();\r\n\t\tmove();\r\n\t}", "public void moveUp() {\n speedY += (speedY < 0) ? acceleration * 2 : acceleration;\n if (speedY > maxSpeed) {\n speedY = maxSpeed;\n }\n direction = Direction.UP;\n }", "@Override\n public void calculateMove() {\n int xa = 0, ya = 0;\n if (steps <= 0) {\n direction = ep.calculateDirection();\n steps = MAX_STEPS;\n }\n if (direction == 0) {\n ya--;\n }\n if (direction == 2) {\n ya++;\n }\n if (direction == 3) {\n xa--;\n }\n if (direction == 1) {\n xa++;\n }\n if (canMove(xa, ya)) {\n steps -= 1 + rest;\n move(xa * speed, ya * speed);\n moving = true;\n } else {\n steps = 0;\n moving = false;\n }\n }", "private void getNextPosition() {\n \n if (turnLeft) {\n angleSpeed += angleMoveSpeed;\n if (angleSpeed > maxAngleSpeed) {\n angleSpeed = maxAngleSpeed;\n }\n angle += angleSpeed;\n \n if (angle > 360) {\n angle = angle - 360 + angleSpeed;\n }\n \n if (forward)\n {\n speed += moveSpeed;\n if (speed > maxSpeed)\n {\n speed = maxSpeed;\n }\n } else if (backwards)\n {\n speed -= moveSpeed;\n if (speed < -maxSpeed)\n {\n speed = -maxSpeed;\n }\n }\n }\n //moving in negative x direction\n if (turnRight) {\n angleSpeed -= angleMoveSpeed;\n if (angleSpeed < -maxAngleSpeed) {\n angleSpeed = -maxAngleSpeed;\n }\n angle += angleSpeed;\n \n if (angle < -360) {\n angle = angle + 360 - angleSpeed;\n }\n \n if (backwards)\n {\n speed -= moveSpeed;\n if (speed < -maxSpeed)\n {\n speed = -maxSpeed;\n }\n } else if (forward)\n {\n speed += moveSpeed;\n if (speed > maxSpeed)\n {\n speed = maxSpeed;\n }\n }\n }\n \n //moving in positive y direction\n if (backwards) {\n speed += moveSpeed;\n if (speed > maxSpeed) {\n speed = maxSpeed;\n }\n }\n //moving in negative y direction\n if (forward) {\n speed -= moveSpeed;\n if (speed < -maxSpeed) {\n speed = -maxSpeed;\n }\n }\n \n //not moving forward or backwards direction\n if (isNotMoving()) {\n //stop moving in the x direction\n if (speed > 0) {\n speed -= stopSpeed;\n if (speed < 0) {\n speed = 0;\n }\n }\n else if (speed < 0) {\n speed += stopSpeed;\n if (speed > 0) {\n speed = 0;\n }\n }\n \n if (isNotTurning()) {\n //stop moving in the y direction\n if (angleSpeed > 0) {\n angleSpeed -= stopSpeed;\n if (angleSpeed < 0) {\n angleSpeed = 0;\n }\n }\n else if (angleSpeed < 0) {\n angleSpeed += stopSpeed;\n if (angleSpeed > 0) {\n angleSpeed = 0;\n }\n }\n } \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 }", "private void decrementSpeed(double amount){\n currentSpeed = Math.max(getCurrentSpeed() - speedFactor() * amount, 0);\n }", "public void decSpeed()\n\t{\n\t\t//only decrease if a PlayerShip is currently spawned\n\t\tif(gameObj[1].size() > 0)\n\t\t{\n\t\t\t((PlayerShip)gameObj[1].get(0)).decSpeed();\n\t\t\tSystem.out.println(\"Speed -10\");\n\t\t}else\n\t\t\tSystem.out.println(\"A player ship is not currently spawned\");\n\t}", "@Override\n public boolean move() {\n return this.decrementX();\n }", "private void moveForwards() {\n\t\tposition = MoveAlgorithmExecutor.getAlgorithmFromCondition(orientation).execute(position);\n\t\t\n\t\t// Extracted the condition to check if tractor is in Ditch\n\t\tif(isTractorInDitch()){\n\t\t\tthrow new TractorInDitchException();\n\t\t}\n\t}", "public void down() {\n\t\tswitch (facing){\n\t\tcase \"RIGHT\" :\n\t\t\tvely = 0;\n\t\t\tvelx = -1.5;\n\t\t\tbreak;\n\t\tcase \"LEFT\" :\n\t\t\tvely = 0;\n\t\t\tvelx = 1.5;\n\t\t\tbreak;\n\t\tcase \"UP\" :\n\t\t\tvely = 1.5;\n\t\t\tvelx = 0;\n\t\t\tbreak;\n\t\tcase \"DOWN\" :\n\t\t\tvely = -1.5;\n\t\t\tvelx = 0;\n\t\t\tbreak;\n\t\t}\n\t}", "public void reverseSpeeds() {\n\t\txSpeed = -xSpeed;\n\t\tySpeed = -ySpeed;\n\t}", "public void movePointerBackward() throws EndTaskException {\n\t\tpickBeeper();\n\t\tturnAround();\n\t\tmove();\n\t\tputBeeper();\n\t}", "public void autoStopBackward(boolean flag) throws JposException;", "@Override\n public void stop() {\n if (FLM != null) FLM.setPower(0);\n if (FRM != null) FRM.setPower(0);\n if (BLM != null) BLM.setPower(0);\n if (BRM != null) BRM.setPower(0);\n if (BigSuck != null) BigSuck.setPower(0);\n if (SmallSuck != null) SmallSuck.setPower(0);\n if (UpLift != null) UpLift.setPower(0);\n if (DragArm != null) DragArm.setPosition(DragArmRestPosition);\n if (LiftGrab != null) LiftGrab.setPosition(LiftGrabRestPosition);\n if (LiftSwivel != null) LiftSwivel.setPosition(LiftSwivelRestPosition);\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 void moveDown() {\n \t if(!move.moveDown()) {\n \t\t if(physinteractor(this.getX(),this.getY()+1)) {\n \t\t\t move.moveDown();\n \t\t\t nonphysinteractor(getX(),getY());\n \t\t\t updatemove();\n \t\t }\n }else {\n \tupdatemove();\n \tnonphysinteractor(getX(),getY());\n }\n }", "public void decelerate() {\n\t\tif (this.hasOnlyOneCar())\n\t\t{\n\t\t\tif (this.getHead().getSpeed()==Speed.FAST)\n\t\t\t\tthis.getHead().setSpeed(Speed.NORMAL);\n\t\t\telse\n\t\t\t\tthis.getHead().setSpeed(Speed.SLOW);\n\t\t}\n\t}", "@Override\n public void stop() {\n\n leftDrive.setPower(0);\n rightDrive.setPower(0);\n armMotor.setPower(0);\n // extendingArm.setPower(0);\n\n telemetry.addData(\"Status\", \"Terminated Interative TeleOp Mode\");\n telemetry.update();\n\n\n }", "public void moveDown() {\n this.accelerateYD();\n this.moveY(this.getySpeed());\n this.setPicX(0);\n this.setPicY(0);\n this.setLoopCells(true);\n }", "public void moveDown() {\n if (ycoor <= Game.heightOfGameBoard - movingSpeed) {\n ycoor = ycoor + movingSpeed;\n }\n\n }", "public void brake(){\n if (speed <= 0){\n speed = 0;\n }\n else{\n speed -= 5;\n }\n }", "public boolean moveStep() {\n\t\t// TODO: take orientation into account\n\t\t\n\t\t// Work out the distance to the destination\n\t\tDouble2D delta = destination.subtract(getPosition());\n//\t\tSystem.out.println(this.toString() + \"has \" + delta.length() + \" to go.\"); // Debug\n\t \n\t // If this is below a small value, we have arrived, return true\n\t if (delta.length() < 4) return true;\n\t \n\t // FIXME: a better model allow different speed for different vehicle class\n\t // update the speed of vehicle\n\t velocity.setTo(delta.x * 0.004, delta.y * 0.004);;\n\t \n\t // FIXME: avoidance?\n\t \n\t // FIXME: orientation?\n//\t\torientation += angularRate;\n\t // update the vehicle location\n\t\tDouble2D location = _siteState.getArea().getObjectLocation(this);\n\t\t_siteState.getArea().setObjectLocation(this, location.add(new Double2D(velocity)));\n\t \n\t\treturn false;\n\t}", "private void decelerate()\n {\n accelX -= accelerationRate;\n if(accelX < 0)\n {\n resetAccelX();\n }\n }", "public static Direction shouldBackOff () {\n RobotInfo[] nearby = rc.senseNearbyRobots();\n boolean nearbyEc = false;\n for (RobotInfo ri: nearby) {\n if (ri.team != mTeam && ri.type == RobotType.ENLIGHTENMENT_CENTER) {\n nearbyEc = true;\n break;\n }\n }\n if (!nearbyEc) {\n return null;\n }\n MapLocation sum = rc.getLocation(), curr = sum;\n for (RobotInfo ri: nearby) {\n if (ri.type == RobotType.POLITICIAN && ri.getConviction() > rc.getConviction()) {\n sum = sum.translate(ri.getLocation().x - curr.x, ri.getLocation().y - curr.y);\n }\n }\n if (sum.equals(curr)) {\n return null;\n }\n return sum.directionTo(curr);\n }", "private void decrementSpeed(double amount) {\n currentSpeed = Math.max(getCurrentSpeed() - speedFactor() * amount,0);\n }", "public void turnAbsolute(int target)\n {\n int heading = 360 - mrGyro.getHeading(); //Set variables to gyro readings\n double turnSpeed = 0.15;\n\n while (Math.abs(heading - target) > 45)\n { //Continue while the robot direction is further than three degrees from the target\n if (heading > target) //if gyro is positive, we will turn right\n {\n movePower(\"left\", 0.5, 0.01);\n }\n\n if (heading < target)\n {\n movePower(\"right\", 0.5, 0.01);\n }\n heading = 360 - mrGyro.getHeading(); //Set variables to gyro readings\n telemetry.addData(\"heading\", String.format(\"%03d\", heading));\n telemetry.update();\n }\n while (Math.abs(heading - target) > 10)\n { //Continue while the robot direction is further than three degrees from the target\n if (heading > target) //if gyro is positive, we will turn right\n {\n movePower(\"left\", 0.1, 0.01);\n }\n\n if (heading < target)\n {\n movePower(\"right\", 0.1, 0.01);\n }\n heading = 360 - mrGyro.getHeading(); //Set variables to gyro readings\n telemetry.addData(\"heading\", String.format(\"%03d\", heading));\n telemetry.update();\n }\n while (Math.abs(heading - target) > 5)\n { //Continue while the robot direction is further than three degrees from the target\n if (heading > target) //if gyro is positive, we will turn right\n {\n movePower(\"left\", 0.01, 0.01);\n }\n\n if (heading < target)\n {\n movePower(\"right\", 0.01, 0.01);\n }\n heading = 360 - mrGyro.getHeading(); //Set variables to gyro readings\n telemetry.addData(\"heading\", String.format(\"%03d\", heading));\n telemetry.update();\n }\n stop();\n }", "@Override\r\n\tpublic void backward(MediaPlayer mediaPlayer)\r\n\t{\n\r\n\t}", "protected void down() {\n move(positionX, positionY + 1);\n orientation = BattleGrid.RIGHT_ANGLE;\n }", "public void down(){\n\t\tmoveX=0;\n\t\tmoveY=1;\n\t}", "public void gyroDrive ( double speed,\n double distance,\n double angle) {\n\n int newLeftTarget;\n int newRightTarget;\n int moveCounts;\n double max;\n double error;\n double steer;\n double leftSpeed;\n double rightSpeed;\n\n // Ensure that the opmode is still active\n if (opModeIsActive()) {\n\n // Determine new target position, and pass to motor controller\n moveCounts = (int)(distance * COUNTS_PER_INCH);\n newLeftTarget = robot.leftDrive.getCurrentPosition() + moveCounts;\n newRightTarget = robot.rightDrive.getCurrentPosition() + moveCounts;\n\n // Set Target and Turn On RUN_TO_POSITION\n robot.leftDrive.setTargetPosition(newLeftTarget);\n robot.rightDrive.setTargetPosition(newRightTarget);\n\n robot.leftDrive.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n robot.rightDrive.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n\n // start motion.\n speed = Range.clip(Math.abs(speed), 0.0, 1.0);\n robot.leftDrive.setPower(speed);\n robot.rightDrive.setPower(speed);\n\n // keep looping while we are still active, and BOTH motors are running.\n while (opModeIsActive() &&\n (robot.leftDrive.isBusy() && robot.rightDrive.isBusy())) {\n\n // adjust relative speed based on heading error.\n error = getError(angle);\n steer = getSteer(error, P_DRIVE_COEFF);\n\n // if driving in reverse, the motor correction also needs to be reversed\n if (distance < 0)\n steer *= -1.0;\n\n leftSpeed = speed - steer;\n rightSpeed = speed + steer;\n\n // Normalize speeds if either one exceeds +/- 1.0;\n max = Math.max(Math.abs(leftSpeed), Math.abs(rightSpeed));\n if (max > 1.0)\n {\n leftSpeed /= max;\n rightSpeed /= max;\n }\n\n robot.leftDrive.setPower(leftSpeed);\n robot.rightDrive.setPower(rightSpeed);\n\n // Display drive status for the driver.\n telemetry.addData(\"Err/St\", \"%5.1f/%5.1f\", error, steer);\n telemetry.addData(\"Target\", \"%7d:%7d\", newLeftTarget, newRightTarget);\n telemetry.addData(\"Actual\", \"%7d:%7d\", robot.leftDrive.getCurrentPosition(),\n robot.rightDrive.getCurrentPosition());\n telemetry.addData(\"Speed\", \"%5.2f:%5.2f\", leftSpeed, rightSpeed);\n telemetry.update();\n }\n\n // Stop all motion;\n robot.leftDrive.setPower(0);\n robot.rightDrive.setPower(0);\n\n // Turn off RUN_TO_POSITION\n robot.leftDrive.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n robot.rightDrive.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n }\n }", "public void operatorDrive() {\n\n changeMode();\n checkForGearShift();\n\n if (Robot.rightJoystick.getRawButton(1)) {\n currentMode = DriveMode.AUTO;\n\n } else if (Robot.rightJoystick.getRawButton(2)) {\n currentMode = DriveMode.CLIMB;\n } else {\n currentMode = DEFAULT_MODE;\n }\n\n isDeploying = false;\n\n if (currentMode == DriveMode.AUTO) {\n currentMode_s = \"Auto\";\n } else if (currentMode == DriveMode.ARCADE) {\n currentMode_s = \"Arcade\";\n } else {\n currentMode_s = \"Tank\";\n }\n\n double leftY = 0;\n double rightY = 0;\n\n switch (currentMode) {\n\n case AUTO:\n rotateCam(4, Robot.visionTargetInfo.visionPixelX);\n\n // driveFwd(4, .25);\n\n break;\n\n case CLIMB:\n\n climb();\n\n break;\n\n case ARCADE:\n resetAuto();\n double linear = 0;\n double turn = 0;\n\n if (Math.abs(Robot.rightJoystick.getY()) > deadband) {\n linear = -Robot.rightJoystick.getY();\n }\n if (Math.abs(Robot.leftJoystick.getX()) > deadband) {\n turn = Math.pow(Robot.leftJoystick.getX(), 3);\n }\n\n leftY = -linear - turn;\n rightY = linear - turn;\n if (!isShifting) {\n assignMotorPower(rightY, leftY);\n } else {\n\n assignMotorPower(0, 0);\n }\n\n break;\n\n case TANK:\n\n resetAuto();\n if (Math.abs(Robot.rightJoystick.getY()) > deadband) {\n rightY = -Math.pow(Robot.rightJoystick.getY(), 3 / 2);\n }\n if (Math.abs(Robot.leftJoystick.getY()) > deadband) {\n leftY = Math.pow(Robot.leftJoystick.getY(), 3 / 2);\n }\n if (!isShifting) {\n assignMotorPower(rightY, leftY);\n } else {\n\n assignMotorPower(0, 0);\n }\n break;\n\n default:\n break;\n }\n\n updateTelemetry();\n }", "public void liftArm(){armLifty.set(-drivePad.getThrottle());}", "public boolean canSeekBackwards() {\n/* 131 */ return true;\n/* */ }", "@Override\n public void execute() {\n if(reversed) {\n driveSubsystem.setSpeed(-max_speed, -max_speed);\n }\n driveSubsystem.setSpeed(max_speed, max_speed);\n }", "public boolean goAllDown() {\n\t\tif ( botLimitSwitch.get() ) {\n\t\t\tstop();\n\t\t}\n\t\telse{\n\t\t\tdown();\n\t\t}\n\t\t\n\t\treturn botLimitSwitch.get();\n\t}", "@Override\n protected void end() {\n Robot.myLifter.setLeftSpeed(0);\n Robot.myLifter.setRightSpeed(0);\n }", "public boolean canMove()\n\t{\n\t\tif(delayMove>compareSpeed())\n\t\t{\n\t\t\tdelayMove=0;\n\t\t\treturn true;\n\t\t\t\n\t\t}else\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "@Override\n\tpublic boolean moveDown() {\n\t\tboolean rs = super.moveDown();\n\t\tif(rs == true){\n\t\t}\n\t\treturn rs;\n\t}", "public void driveTo(double targetX, double targetY, float heading, double speedLimit) throws InterruptedException {\n float error = heading - zRotation; //The number of degrees between the true heading and desired heading\n double correction; //Modifies power to account for error\n double max;\n double Y_P_COEFF = 0.17825353626292278; //0.002\n double Y_I_COEFF = 0.2852056580206765; //0.0035\n double Y_D_COEFF = 0.0003; //0.00042\n double X_P_COEFF = 0.17825353626292278; //0.002\n double X_I_COEFF = 0.2852056580206765; //0.0035\n double X_D_COEFF = 0.0003; //0.00042\n double T_P_COEFF = 0.0084;\n double T_I_COEFF = 0.0168;\n double T_D_COEFF = 0.0028;\n double driveY, driveX;\n double distanceY;\n double distanceX;\n long loops = 0;\n heading = (int) normalize360(heading);\n\n double frontLeft;\n double frontRight;\n double backLeft;\n double backRight;\n\n setEncoderBase();\n int lastEncoderY = 0;\n int lastEncoderX = 0;\n float lastHeading = zRotation;\n\n speedLimit = Range.clip(speedLimit, 0.0, 1.0);\n\n if (speedLimit==0){\n return;\n }\n\n double power;\n double deltaT;\n double derivativeY = 0;\n double derivativeX = 0;\n double derivativeT = 0;\n double integralY = 0;\n double integralX = 0;\n double integralT = 0;\n int deltaDY;\n int deltaDX;\n float deltaDT;\n\n double theta;\n double theta2;\n double gamma;\n double h;\n double local_globalX;\n double local_globalY;\n\n double lastTime = callingOpMode.getRuntime();\n\n while ((((((Math.abs(targetY)-1) > Math.abs(globalY)) || ((Math.abs(targetY)+1) < Math.abs(globalY))) ||\n (((Math.abs(targetX)-1) > Math.abs(globalX)) || ((Math.abs(targetX)+1) < Math.abs(globalX)))) ||\n (Math.abs(error)>=5.0f)) && ((LinearOpMode) callingOpMode).opModeIsActive()) {\n\n error = heading - zRotation;\n\n while (error > 180) error = (error - 360);\n while (error <= -180) error = (error + 360);\n\n local_globalX = globalX;\n local_globalY = globalY;\n\n theta = zRotation * Math.PI / 180.0;\n\n // these represent the current x and y translations still to do, in global coordinates ... in inches\n driveY = targetY - local_globalY;\n driveX = targetX - local_globalX;\n\n theta2 = Math.atan2(driveY, driveX);\n gamma = theta+theta2;\n h = Math.sqrt((driveX*driveX)+(driveY*driveY));\n\n // in robot coordinates,\n distanceY = Math.sin(gamma)*h;\n distanceX = Math.cos(gamma)*h;\n\n deltaT = callingOpMode.getRuntime()-lastTime;\n lastTime = callingOpMode.getRuntime();\n deltaDY = getEncoderWheelYPosition()-lastEncoderY;\n lastEncoderY = getEncoderWheelYPosition();\n deltaDX = getEncoderWheelXPosition()-lastEncoderX;\n lastEncoderX = getEncoderWheelXPosition();\n deltaDT = zRotation-lastHeading;\n lastHeading = zRotation;\n\n derivativeY = ((double) deltaDY)/deltaT;\n derivativeX = ((double) deltaDX)/deltaT;\n derivativeT = ((double) deltaDT/deltaT);\n\n if(Math.abs(distanceY*Y_P_COEFF)<1 && Math.abs(distanceY)>1){\n integralY += distanceY*deltaT;\n } else {\n integralY = 0;\n }\n if(Math.abs(distanceX*X_P_COEFF)<1 && Math.abs(distanceX)>1){\n integralX += distanceX*deltaT;\n } else {\n integralX = 0;\n }\n if(Math.abs(error*T_P_COEFF)<1 && Math.abs(error)>5){\n integralT += error*deltaT;\n } else {\n integralT = 0;\n }\n\n power = (distanceY*Y_P_COEFF) + (integralY*Y_I_COEFF) - (derivativeY*Y_D_COEFF);\n\n frontLeft = power;\n frontRight = power;\n backLeft = power;\n backRight = power;\n\n power = (distanceX*X_P_COEFF) + (integralX*X_I_COEFF) - (derivativeX*X_D_COEFF);\n\n frontLeft += power;\n frontRight -= power;\n backLeft -= power;\n backRight += power;\n\n max = Math.max(Math.max(Math.abs(frontLeft), Math.abs(frontRight)), Math.max(Math.abs(backLeft), Math.abs(backRight)));\n if (max > Math.abs(speedLimit)) {\n frontLeft /= max;\n frontRight /= max;\n backLeft /= max;\n backRight /= max;\n frontLeft *= Math.abs(speedLimit);\n frontRight *= Math.abs(speedLimit);\n backLeft *= Math.abs(speedLimit);\n backRight *= Math.abs(speedLimit);\n }\n\n correction = (error*T_P_COEFF) + (integralT*T_I_COEFF) - (derivativeT*T_D_COEFF);\n\n frontLeft -= correction;\n frontRight += correction;\n backLeft -= correction;\n backRight += correction;\n\n max = Math.max(Math.max(Math.abs(frontLeft), Math.abs(frontRight)), Math.max(Math.abs(backLeft), Math.abs(backRight)));\n if (max > 1.0) {\n frontLeft /= max;\n frontRight /= max;\n backLeft /= max;\n backRight /= max;\n }\n\n updateDriveMotors(frontLeft, frontRight, backLeft, backRight);\n\n if (((loops+10) % 10) == 0) {\n callingOpMode.telemetry.addData(\"zRotation\" , zRotation);\n callingOpMode.telemetry.addData(\"globalY\" , local_globalY);\n callingOpMode.telemetry.addData(\"globalX\" , local_globalX);\n callingOpMode.telemetry.addData(\"distanceY\", distanceY);\n callingOpMode.telemetry.addData(\"distanceX\", distanceX);\n callingOpMode.telemetry.addData(\"theta\", theta);\n callingOpMode.telemetry.addData(\"theta2\",theta2);\n callingOpMode.telemetry.addData(\"gamma\",gamma);\n callingOpMode.telemetry.addData(\"driveY\",driveY);\n callingOpMode.telemetry.addData(\"driveX\",driveX);\n callingOpMode.telemetry.addData(\"error\", error);\n callingOpMode.telemetry.addData(\"loops\", loops);\n callingOpMode.telemetry.update();\n }\n\n loops++;\n\n updateGlobalPosition();\n\n ((LinearOpMode) callingOpMode).sleep(10);\n }\n }", "@Override\n protected void end() {\n //return control to joystick\n drivetrain.setStopArcadeDrive(false);\n drivetrain.tankDrive(0,0);\n System.out.println(\"STOPPED LINE FOLLOWER\");\n // led.setLEDB(false);\n // led.setLEDR(false);\n }", "public void frameBackward()\n{\n stop();\n setTime(getTime() - getInterval());\n}", "@Override\n public boolean canMove() {\n return storage.isRampClosed();\n }", "@Override\n\tpublic void step() {\n\t\tthis.y-= speed;\t\n\t}", "public void pull() {\r\n\t\tif(!SpeedCord.getCurrentSpeed().equals(\"Off\")) {\r\n\t\t/* Update the current speed of fan after pulling cord to fit in range of [Off, speed1, speed2] */\r\n\t\tcurrentDirection = direction.get((((List<String>) direction).indexOf(currentDirection)+1)%2);\r\n\t\tSystem.out.println(\"Direction of fan changed to: \" + currentDirection);\r\n\t\t}\r\n\t\t\r\n\t\t/* Direction of fan cannot be changed if fan is Off*/\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"Fan is Off, so direction can't be changed!\");\r\n\t\t}\r\n\t}", "@Override\n protected void execute() {\n\n float roll = Robot.driveBase.getRoll();\n\n // if robot is balance, continue climb\n if (roll < 0.2 && roll > -0.2) {\n Robot.climber.frontDown();\n Robot.climber.rearDown();\n } else {\n if (roll > 0.2) {\n // front is too fast -- slow front down\n Robot.climber.frontStop();\n Robot.climber.rearDown();\n }\n if (roll < -0.2) {\n Robot.climber.rearStop();\n Robot.climber.frontDown();\n // rear is too fast -- slow rear down\n }\n\n }\n }", "public void arcadeDrive(double forwardSpeed, double turnSpeed) {\n forwardSpeed = clipRange(forwardSpeed);\n turnSpeed = clipRange(turnSpeed);\n\n double[] wheelSpeeds = new double[2];\n wheelSpeeds[MotorType.kLeft.value] = forwardSpeed + turnSpeed;\n wheelSpeeds[MotorType.kRight.value] = forwardSpeed - turnSpeed;\n\n normalize(wheelSpeeds);\n\n motors[MotorType.kLeft.value].set(maxOutput * wheelSpeeds[0]);\n motors[MotorType.kRight.value].set(rightSideMultiplier * maxOutput * wheelSpeeds[1]);\n }", "public void stopMovement() {\r\n this.canMove = false;\r\n }", "@Override\n public void move(){\n setDirectionSpeed(180, 7);\n this.moveTowardsAPoint(target.getCenterX(), target.getCenterY());\n }", "public void slowDownY() {\n double temp;\n temp = this.getySpeed();\n if (temp > 0.1 || temp < -0.1) {\n temp /= 1.1;\n } else {\n temp = 0;\n }\n this.setySpeed(temp);\n }", "public void climb(double speedOne, double speedTwo) {\n\t\tif(Math.abs(speedOne) > Math.abs(speedTwo))\n\t\t\tclimbMotor.set(speedOne);\n\t\telse\n\t\t\tclimbMotor.set(speedTwo);\n\t}" ]
[ "0.6379476", "0.61516815", "0.6143169", "0.5971632", "0.5971443", "0.5868396", "0.580206", "0.5708593", "0.57072586", "0.5699796", "0.56750154", "0.567497", "0.55947095", "0.5582382", "0.55643404", "0.55281967", "0.55209893", "0.54700834", "0.5437179", "0.5416251", "0.5412132", "0.5410242", "0.54007447", "0.5384099", "0.5370645", "0.5365367", "0.53631157", "0.5349338", "0.533884", "0.53215766", "0.53164375", "0.53077847", "0.52996796", "0.5295354", "0.5284549", "0.52713037", "0.5268066", "0.5261715", "0.52310693", "0.5225634", "0.52155876", "0.51853466", "0.51773864", "0.5164605", "0.51645917", "0.5161788", "0.51597124", "0.5146217", "0.5141666", "0.51265275", "0.51250035", "0.5122006", "0.51214224", "0.5113905", "0.50995386", "0.5089869", "0.50881934", "0.5080481", "0.5078623", "0.50759864", "0.50717", "0.5069115", "0.50665826", "0.50612086", "0.5060464", "0.5059353", "0.5057148", "0.5053095", "0.5027255", "0.50228995", "0.501691", "0.5007516", "0.50033855", "0.5003095", "0.49997222", "0.4999078", "0.49982268", "0.49875212", "0.49698398", "0.49665114", "0.49611253", "0.49610645", "0.49564132", "0.49549088", "0.4945456", "0.49397364", "0.49238107", "0.49232396", "0.49162823", "0.4908232", "0.49059322", "0.4904149", "0.49011275", "0.48988554", "0.48917335", "0.48885787", "0.4887272", "0.48860523", "0.48826912", "0.4879922" ]
0.67322975
0
Final part of MoveForward method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result: Device is enabled, Specified speed is between 1 and CapSpeedStepsForward.
public void moveForward(int speed) throws JposException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void forward() {\n forward(DEFAULT_SPEED);\n }", "public boolean moveStep() {\n\t\t// TODO: take orientation into account\n\t\t\n\t\t// Work out the distance to the destination\n\t\tDouble2D delta = destination.subtract(getPosition());\n//\t\tSystem.out.println(this.toString() + \"has \" + delta.length() + \" to go.\"); // Debug\n\t \n\t // If this is below a small value, we have arrived, return true\n\t if (delta.length() < 4) return true;\n\t \n\t // FIXME: a better model allow different speed for different vehicle class\n\t // update the speed of vehicle\n\t velocity.setTo(delta.x * 0.004, delta.y * 0.004);;\n\t \n\t // FIXME: avoidance?\n\t \n\t // FIXME: orientation?\n//\t\torientation += angularRate;\n\t // update the vehicle location\n\t\tDouble2D location = _siteState.getArea().getObjectLocation(this);\n\t\t_siteState.getArea().setObjectLocation(this, location.add(new Double2D(velocity)));\n\t \n\t\treturn false;\n\t}", "public static boolean move() {\n S.rc.setIndicatorString(2, \"move\");\n if (target == null) {\n System.err.println(\"ERROR: tried to move without target\");\n return false;\n }\n\n // Check if we are close enough.\n int distanceSqToTarget = S.rc.getLocation().distanceSquaredTo(target);\n if (distanceSqToTarget <= thresholdDistanceSq) {\n // Stop bugging.\n start = null;\n S.rc.setIndicatorString(2, \"close enough\");\n return moveCloserToTarget();\n }\n\n if (start == null) {\n // Not currently bugging.\n forward = S.rc.getLocation().directionTo(target);\n S.rc.setIndicatorString(2, \"not buggin\");\n if (moveForwardish()) return true;\n // Start bugging.\n start = S.rc.getLocation();\n forward = forward.rotateRight().rotateRight();\n return move();\n } else {\n // Already bugging.\n // Stop bugging if we got closer to the target than when we started bugging.\n if (distanceSqToTarget < start.distanceSquaredTo(target)) {\n start = null;\n return move();\n }\n\n // Stop bugging if back-left is clear.\n // This means that we must have bugged around something that has since moved.\n if (canMove(forward.rotateLeft().rotateLeft().rotateLeft())) {\n start = null;\n forward = S.rc.getLocation().directionTo(target);\n S.rc.setIndicatorString(2, \"back left clear, forward \" + forward);\n return moveForwardish();\n }\n\n S.rc.setIndicatorString(2, \"scan circle\");\n forward = forward.rotateLeft().rotateLeft();\n // Try moving left, and try every direction in a circle from there.\n for (int i = 0; i < 8; i++) {\n if (moveForwardStrict()) return true;\n forward = forward.rotateRight();\n }\n return false;\n }\n }", "private static boolean moveForwardish() {\n if (moveForwardStrict()) return true;\n Direction f = forward;\n forward = f.rotateLeft();\n if (moveForwardStrict()) return true;\n forward = f.rotateRight();\n if (moveForwardStrict()) return true;\n forward = f;\n return false;\n }", "public void move(float forwardSpeed, float strafeSpeed);", "@Override\n public void move() {\n int speed = this.getSpeed();\n this.setSpeed(speed - 1);\n\n if (this.getSpeed() == 0) {\n super.move();\n this.setSpeed(1);\n }\n }", "private boolean onHeading(double speed, double angle, double PCoeff) {\n double error;\n double steer;\n boolean onTarget = false;\n double leftSpeed;\n double rightSpeed;\n\n // determine turn power based on +/- error\n error = getError(angle);\n\n if (Math.abs(error) <= HEADING_THRESHOLD) {\n steer = 0.0;\n leftSpeed = 0.0;\n rightSpeed = 0.0;\n onTarget = true;\n } else {\n steer = getSteer(error, PCoeff);\n rightSpeed = speed * steer;\n leftSpeed = -rightSpeed;\n }\n\n // Send desired speeds to motors.\n robot.DriveLeft1.setPower(leftSpeed);\n robot.DriveRight1.setPower(rightSpeed);\n robot.DriveLeft2.setPower(leftSpeed);\n robot.DriveRight2.setPower(rightSpeed);\n /*\n // Display it for the driver.\n telemetry.addData(\"Target\", \"%5.2f\", angle);\n telemetry.addData(\"Err/St\", \"%5.2f/%5.2f\", error, steer);\n telemetry.addData(\"Speed.\", \"%5.2f:%5.2f\", leftSpeed, rightSpeed);\n\n\n */\n return onTarget;\n }", "public void forward(int speed) {\n rightMotor.resetTachoCount();\n rightMotor.setSpeed(speed);\n leftMotor.setSpeed(speed);\n rightMotor.forward();\n leftMotor.forward();\n }", "public float MoveForward(){\n motorLeft1Power = normalSpeed;\n motorLeft2Power = normalSpeed;\n motorRight1Power = normalSpeed;\n motorRight2Power = normalSpeed;\n\n startOrientation = imu.getAngularOrientation().toAxesReference(AxesReference.INTRINSIC).toAxesOrder(AxesOrder.ZYX).firstAngle;\n motorPID = new PIDController(startOrientation);\n return startOrientation;\n }", "public boolean canMove()\n\t{\n\t\tif(delayMove>compareSpeed())\n\t\t{\n\t\t\tdelayMove=0;\n\t\t\treturn true;\n\t\t\t\n\t\t}else\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "@Override\n public void move(){\n setDirectionSpeed(180, 7);\n this.moveTowardsAPoint(target.getCenterX(), target.getCenterY());\n }", "public void arcadeDrive(double forwardSpeed, double turnSpeed) {\n forwardSpeed = clipRange(forwardSpeed);\n turnSpeed = clipRange(turnSpeed);\n\n double[] wheelSpeeds = new double[2];\n wheelSpeeds[MotorType.kLeft.value] = forwardSpeed + turnSpeed;\n wheelSpeeds[MotorType.kRight.value] = forwardSpeed - turnSpeed;\n\n normalize(wheelSpeeds);\n\n motors[MotorType.kLeft.value].set(maxOutput * wheelSpeeds[0]);\n motors[MotorType.kRight.value].set(rightSideMultiplier * maxOutput * wheelSpeeds[1]);\n }", "public void moveForward(){\n\t\tSystem.out.println(\"Vehicle moved forward\");\n\t}", "public void moveForward()\r\n\t{\r\n\t\tif(loc[1] > 1)\r\n\t\t{\r\n\t\t\tthis.loc[0] -= Math.sin(Math.toRadians(heading-90))*distance; \r\n\t\t\tthis.loc[2] -= Math.cos(Math.toRadians(heading-90))*distance;\r\n\t\t}\r\n\t}", "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}", "boolean onHeading(double speed, double angle, double PCoeff) {\n double error ;\n double steer ;\n boolean onTarget = false ;\n double leftSpeed;\n double rightSpeed;\n\n // determine turn power based on +/- error\n error = getError(angle);\n\n if (Math.abs(error) <= HEADING_THRESHOLD) {\n steer = 0.0;\n leftSpeed = 0.0;\n rightSpeed = 0.0;\n onTarget = true;\n }\n else {\n steer = getSteer(error, PCoeff);\n rightSpeed = speed * steer;\n leftSpeed = -rightSpeed;\n }\n\n // Send desired speeds to motors.\n leftMotor.setPower(leftSpeed);\n rightMotor.setPower(rightSpeed);\n\n // Display it for the driver.\n telemetry.addData(\"Target\", \"%5.2f\", angle);\n telemetry.addData(\"Err/St\", \"%5.2f/%5.2f\", error, steer);\n telemetry.addData(\"Speed.\", \"%5.2f:%5.2f\", leftSpeed, rightSpeed);\n\n return onTarget;\n }", "@Override\n public void calculateMove() {\n int xa = 0, ya = 0;\n if (steps <= 0) {\n direction = ep.calculateDirection();\n steps = MAX_STEPS;\n }\n if (direction == 0) {\n ya--;\n }\n if (direction == 2) {\n ya++;\n }\n if (direction == 3) {\n xa--;\n }\n if (direction == 1) {\n xa++;\n }\n if (canMove(xa, ya)) {\n steps -= 1 + rest;\n move(xa * speed, ya * speed);\n moving = true;\n } else {\n steps = 0;\n moving = false;\n }\n }", "boolean onHeading(double speed, double angle, double PCoeff) {\n double error ;\n double steer ;\n boolean onTarget = false ;\n double leftSpeed;\n double rightSpeed;\n\n // determine turn power based on +/- error\n error = getError(angle);\n\n if (Math.abs(error) <= HEADING_THRESHOLD) {\n steer = 0.0;\n leftSpeed = 0.0;\n rightSpeed = 0.0;\n onTarget = true;\n }\n else {\n steer = getSteer(error, PCoeff);\n rightSpeed = speed * steer;\n leftSpeed = -rightSpeed;\n }\n\n // Send desired speeds to motors.\n robot.leftDrive.setPower(leftSpeed);\n robot.rightDrive.setPower(rightSpeed);\n\n // Display it for the driver.\n telemetry.addData(\"Target\", \"%5.2f\", angle);\n telemetry.addData(\"Err/St\", \"%5.2f/%5.2f\", error, steer);\n telemetry.addData(\"Speed.\", \"%5.2f:%5.2f\", leftSpeed, rightSpeed);\n\n return onTarget;\n }", "private void driveLeft() {\n setSpeed(MIN_SPEED, MAX_SPEED);\n }", "private void driveRight() {\n setSpeed(MAX_SPEED, MIN_SPEED);\n }", "abstract public void moveForward();", "boolean onHeading(double speed, double angle, double PCoeff) {\n double error ;\n double steer ;\n boolean onTarget = false ;\n double leftSpeed;\n double rightSpeed;\n\n // determine turn power based on +/- error\n error = getError(angle);\n\n if (Math.abs(error) <= HEADING_THRESHOLD) {\n steer = 0.0;\n leftSpeed = 0.0;\n rightSpeed = 0.0;\n onTarget = true;\n }\n else {\n steer = getSteer(error, PCoeff);\n rightSpeed = speed * steer;\n leftSpeed = -rightSpeed;\n }\n\n // Send desired speeds to motors.\n leftmotor.setPower(leftSpeed);\n rightmotor.setPower(rightSpeed);\n\n return onTarget;\n }", "public void moveForward(double movementSpeed, boolean makeStep) {\r\n\t\tVec3d view = getLookVec();\r\n\r\n\t\tfloat effectiveSpeed = (float) (movementSpeed\r\n\t\t\t\t* getEntityAttribute(SharedMonsterAttributes.MOVEMENT_SPEED).getAttributeValue());\r\n\t\tVec3d forwardVector = new Vec3d(view.xCoord * effectiveSpeed, motionY, view.zCoord * effectiveSpeed);\r\n\t\tboolean jump = false;\r\n\t\tif (makeStep) {\r\n\t\t\t// copy the bounding box\r\n\t\t\tAxisAlignedBB bounds = getEntityBoundingBox();\r\n\r\n\t\t\tbounds = bounds.offset(forwardVector.xCoord, 0, forwardVector.zCoord);\r\n\t\t\tList<?> normalPathCollision = AIUtils.gatherOverlappingBounds(bounds, this);\r\n\r\n\t\t\tbounds = bounds.offset(0, stepHeight, 0);\r\n\t\t\tList<?> jumpPathCollision = AIUtils.gatherOverlappingBounds(bounds, this);\r\n\r\n\t\t\tif (!normalPathCollision.isEmpty() && jumpPathCollision.isEmpty()) {\r\n\t\t\t\tjump = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (jump) {\r\n\t\t\tthis.move(MoverType.SELF, 0, stepHeight + 0.5, 0);\r\n\t\t\tthis.motionY = 0;\r\n\t\t\tthis.isAirBorne = true;\r\n\t\t}\r\n\t\taddVelocity(forwardVector.xCoord, forwardVector.yCoord, forwardVector.zCoord);\r\n\t\tsetPositionAndUpdate(posX, posY, posZ);\r\n\t}", "public void move() {\n track += speed;\n speed += acceleration;\n if (speed <= 0) {\n speed =0;\n }\n if (speed >= MAX_SPEED) {\n speed = MAX_SPEED;\n }\n y -= dy;\n if (y <=MAX_TOP) {\n y = MAX_TOP;\n }\n if (y >=MAX_BOTTOM){\n y = MAX_BOTTOM;\n }\n if (layer2 - speed <= 0) {\n layer1 = 0;\n layer2 = 2400;\n } else {\n\n layer1 -= speed;\n layer2 -= speed;\n }\n }", "private void moveForwards() {\n\t\tposition = MoveAlgorithmExecutor.getAlgorithmFromCondition(orientation).execute(position);\n\t\t\n\t\t// Extracted the condition to check if tractor is in Ditch\n\t\tif(isTractorInDitch()){\n\t\t\tthrow new TractorInDitchException();\n\t\t}\n\t}", "private void accelerate() {\r\n\t\tif(physics.angleTo(closestShipPhysics) < 0){\r\n\t\t\tphysics.move(true, RIGHT);\r\n\t\t}\r\n\t\tif(physics.angleTo(closestShipPhysics) > 0){\r\n\t\t\tphysics.move(true, LEFT);\r\n\t\t}\r\n\t\telse{\r\n\t\tphysics.move(true, STRIGHT);\r\n\t\t}\r\n\t}", "public void forward()\n\t{ \n\t\tupdateState( MotorPort.FORWARD);\n\t}", "public void forward(int speed, int distance) {\n rightMotor.setSpeed(speed);\n leftMotor.setSpeed(speed);\n rightMotor.rotate((int) Math.round(DISTANCE_RATIO * distance), true);\n leftMotor.rotate((int) Math.round(DISTANCE_RATIO * distance), true);\n }", "@Override\n protected void execute() {\n if(!Robot.SCISSOR.getFloorSensor() && speed < 0) {\n Robot.SCISSOR.liftRobotPnumatic(false);\n }\n }", "public void goForward(int motor, int speed, boolean abrupt) {\n move(motor, speed, (byte)DIR_FORWARD, abrupt);\n }", "void moveForward();", "public TimedDriveForward(long duration, double speed) {\n\t\tsuper(duration);\n\t\tthis.drive = DriveSystem.getInstance();\n\t\tthis.requires(this.drive);\n\t\tDEFAULT_DRIVE_SPEED = speed;\n\t}", "public void stepForward() {\n\t\tposition = forwardPosition();\n\t}", "void move(double Speed) {\n\t\tif (FWorld[height - 1][width - 1].getXCenter() <= 1100) {\n\t\t\tSpeed = 0;\n\t\t\treachEnd = true;\n\t\t} else\n\t\t\tfor (int h = 0; h < height; h++) {\n\t\t\t\tfor (int w = 0; w < width; w++) {\n\t\t\t\t\tif (FWorld[h][w] != null) {\n\t\t\t\t\t\tFWorld[h][w].translateBy(Speed, 0);\n\t\t\t\t\t\tint x = FWorld[h][w].getXCenter();\n\t\t\t\t\t\tif (x < -20) {\n\t\t\t\t\t\t\tEZ.removeEZElement(FWorld[h][w]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t}", "@Override\r\n\tpublic void forward(int step) {\r\n\t\tString s;\r\n\t\tthis.x = checkValidX(this.x + Constant.SENSORDIRECTION[this.getDirection()][0]);\r\n\t\tthis.y = checkValidX(this.y + Constant.SENSORDIRECTION[this.getDirection()][1]);\r\n\t\tswitch (this.getDirection()) {\r\n\t\t\tcase Constant.NORTH:\r\n\t\t\t\ts = \"Up\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase Constant.EAST:\r\n\t\t\t\ts = \"Right\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase Constant.SOUTH:\r\n\t\t\t\ts = \"Down\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase Constant.WEST:\r\n\t\t\t\ts = \"Left\";\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\ts = \"Error\";\r\n\t\t}\r\n\t\ttoggleValid();\r\n\t\tfor (int i = 0; i < step * Constant.GRIDWIDTH; i++) {\r\n\t\t\tt.schedule(new MoveImageTask(robotImage, s, 1), delay * (i + 1));\r\n\t\t}\r\n\t}", "public void move ()\n\t{\n\t\t//Let's try this...\n\t\tchangeFallSpeed (turnInt);\n\t\t\n\t\t\n\t\tsetX_Pos (getX_Pos () + getHSpeed ());\t//hSpeed is added onto x_pos\n\t\t//The xDimensions are updated by having hSpeed added onto them.\n\t\txDimension1 += getHSpeed ();\n\t\txDimension2 += getHSpeed ();\n\t\txDimension3 += getHSpeed ();\n\t\t\n\t\t//The if statement below ensures that the PaperAirplane does not move\n\t\t//after reaching the 300 y point. The walls around the PaperAirplane,\n\t\t//however, start to move up, creating the illusion that the\n\t\t//PaperAirplane is still falling.\n\t\tif (getY_Pos () < 300)\n\t\t{\n\t\t\tsetY_Pos (getY_Pos () + getVSpeed ());//vSpeed is added onto y_pos\n\t\t\t//The yDimensions are updated by having vSpeed added onto them.\n\t\t\tyDimension1 += getVSpeed ();\n\t\t\tyDimension2 += getVSpeed ();\n\t\t\tyDimension3 += getVSpeed ();\n\t\t}\n\t}", "public void goForward(double distance) {// boolean\r\n\t\t\ttravelForward(odometer.getX()+Math.sin(Math.toRadians(odometer.getAng())) * distance,odometer.getY()+ Math.cos(Math.toRadians(odometer.getAng())) * distance);\r\n\t\t\t//return true;\r\n\t\t}", "private boolean needToTurn() {\n\t\tdouble curDir = sens.getDirection();\n\t\tdouble desDirPlusAmount = desiredDirection + TURNSPEED;\n\t\tdouble desDirMinusAmount = desiredDirection - TURNSPEED;\n\n\t\t// if desired direction is <||> +_ x degrees\n\t\tif (curDir < desDirMinusAmount || curDir > desDirPlusAmount) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public void forward(double targetDistance, double power) {\n setDriveMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n setDriveMode(DcMotor.RunMode.RUN_USING_ENCODER);\n double targetDistanceTicks = Math.abs(targetDistance * ticksPerCm);\n double currentDistanceTicks = 0;\n while ((Math.abs(currentDistanceTicks) < targetDistanceTicks) && opModeIsActive()) {\n telemetry.addData(\"Target pos ticks: \", targetDistanceTicks);\n telemetry.addData(\"Target Distance:\", targetDistance + \"cm\");\n currentDistanceTicks = (frontRight.getCurrentPosition() +\n frontLeft.getCurrentPosition() +\n backRight.getCurrentPosition() +\n backLeft.getCurrentPosition()) / 4.0;\n telemetry.addData(\"Current pos ticks Avg: \", currentDistanceTicks);\n telemetry.addData(\"Current Distance cm\", currentDistanceTicks / ticksPerCm);\n telemetry.update();\n\n frontLeft.setPower(-power);\n frontRight.setPower(-power);\n backLeft.setPower(-power);\n backRight.setPower(-power);\n }\n stopMotors();\n }", "public void setSpeed() {\n if (this.equals(null)) {\n this.speedValue=-5;\n }\n }", "public static void moveArm(double speed) {\n\t\tSmartDashboard.putNumber(\"Arm Max value\",maxPos);\n\t\tSmartDashboard.putNumber(\"Arm Min value\",minPos);\n\t\tActuators.getArmAngleMotor().changeControlMode(TalonControlMode.PercentVbus);\t//CHECK THIS SCOTT\n\t\tSmartDashboard.putNumber(\"Percent of Arm Angle\", unMapPosition(Actuators.getArmAngleMotor().getPosition()));\t//CHECK THIS SCOTT\n\t\tSmartDashboard.putNumber(\"Arm Position\", Actuators.getArmAngleMotor().getPosition());\n\t\tSmartDashboard.putNumber(\"THeoreticalPID position\", mapPosition(unMapPosition(Actuators.getArmAngleMotor().getPosition())));\n\t\tif (Gamepad.secondary.getBack()) {\n\t\t\tActuators.getArmAngleMotor().set(speed);\n\t\t} else {\n\t\t\tif ((Actuators.getArmAngleMotor().getPosition() < MAX_ARM_POSITION && Sensors.getArmMinLimitSwitch().get())\n\t\t\t\t\t&& speed > 0) {\n\t\t\t\tActuators.getArmAngleMotor().set(speed / 2);\n\t\t\t} else if ((Actuators.getArmAngleMotor().getPosition() > MIN_ARM_POSITION\n\t\t\t\t\t&& Sensors.getArmMaxLimitSwitch().get()) && speed < 0) {\n\t\t\t\tActuators.getArmAngleMotor().set(speed);\n\t\t\t} else if (!Sensors.getArmMaxLimitSwitch().get()){\n\t\t\t\tActuators.getArmAngleMotor().set(Actuators.STOP_MOTOR);\t\t\t\t//CHECK THIS SCOTT\n\t\t\t\tmaxPos = Actuators.getArmAngleMotor().getPosition();\t\t//CHECK THIS SCOTT\n\t\t\t} else if (!Sensors.getArmMinLimitSwitch().get()){\t\t\t\t\t\t//CHECK THIS SCOTT\n\t\t\t\tActuators.getArmAngleMotor().set(Actuators.STOP_MOTOR);\t\t\t\t//CHECK THIS SCOTT\n\t\t\t\tminPos = Actuators.getArmAngleMotor().getPosition();\t\t//CHECK THIS SCOTT\n\t\t\t}\n\t\t\telse {\n\t\t\t\tActuators.getArmAngleMotor().set(Actuators.STOP_MOTOR);\n\t\t\t}\n\n\t\t\t// speed = -speed;\n\t\t\tSmartDashboard.putNumber(\"Arm Position\", Actuators.getArmAngleMotor().getPosition());\n\t\t\tif (Gamepad.secondary.getBack()) {\n\t\t\t\tActuators.getArmAngleMotor().set(speed);\n\t\t\t} else {\n\t\t\t\tif ((Sensors.getArmMaxLimitSwitch().get()) && speed < 0) {\n\t\t\t\t\tActuators.getArmAngleMotor().set(speed);\n\t\t\t\t} else if ((Sensors.getArmMinLimitSwitch().get()) && speed > 0) {\n\t\t\t\t\tActuators.getArmAngleMotor().set(speed);\n\t\t\t\t} else if (!Sensors.getArmMaxLimitSwitch().get()){\n\t\t\t\t\tActuators.getArmAngleMotor().set(Actuators.STOP_MOTOR);\t\t\t\t//CHECK THIS SCOTT\n\t\t\t\t\tmaxPos = Actuators.getArmAngleMotor().getPosition();\t\t//CHECK THIS SCOTT\n\t\t\t\t} else if (!Sensors.getArmMinLimitSwitch().get()){\t\t\t\t\t\t//CHECK THIS SCOTT\n\t\t\t\t\tActuators.getArmAngleMotor().set(Actuators.STOP_MOTOR);\t\t\t\t//CHECK THIS SCOTT\n\t\t\t\t\tminPos = Actuators.getArmAngleMotor().getPosition();\t\t//CHECK THIS SCOTT\n\t\t\t\t} else {\n\t\t\t\t\tActuators.getArmAngleMotor().set(Actuators.STOP_MOTOR);\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t\t// if (!(/*\n\t\t\t\t// * Actuators.getArmAngleMotor().getPosition() >\n\t\t\t\t// * MAX_ARM_POSITION &&\n\t\t\t\t// */\n\t\t\t\t// Sensors.getArmMaxLimitSwitch().get()) && speed > 0) {\n\t\t\t\t// Actuators.getArmAngleMotor().set(speed);\n\t\t\t\t// } else if (!(/*\n\t\t\t\t// * Actuators.getArmAngleMotor().getPosition() <\n\t\t\t\t// * MIN_ARM_POSITION &&\n\t\t\t\t// */\n\t\t\t\t// Sensors.getArmMinLimitSwitch().get()) && speed < 0) {\n\t\t\t\t// Actuators.getArmAngleMotor().set(speed);\n\t\t\t\t// } else {\n\t\t\t\t// Actuators.getArmAngleMotor().set(Actuators.STOP_MOTOR);\n\t\t\t\t//\n\t\t\t\t// }\n\t\t\t}\n\t\t}\n\t}", "public void accelerate() {\n\t\tif (this.hasOnlyOneCar())\n\t\t{\n\t\t\tif (this.getHead().getSpeed()==Speed.SLOW)\n\t\t\t\tthis.getHead().setSpeed(Speed.NORMAL);\n\t\t\telse\n\t\t\t\tthis.getHead().setSpeed(Speed.FAST);\n\t\t}\n\t}", "private boolean zMoveStep() {\n\t\tSystem.out.println(\"moving \" + currentPosition + \" \" + targetPosition);\n\t\tif (currentPosition >= targetPosition)\n\t\t\treturn true;\n\t\tcurrentPosition += strideSize;\n\t\tstage.swipe(direction, strideSize);\n\t\treturn false;\n\t}", "@Override\n public double speed() {\n \tif(Robot.drive.getDistance() > 120) {\n \t\treturn 0.2;\n \t}\n \treturn speed;\n }", "public void forward(double power, double distance) {\n\n int ticks = (int) (((distance / (4 * Math.PI) * 1120)) * 4 / 3 + 0.5);\n\n //Reset Encoders358\n// fL.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n// bL.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n// fR.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n// bR.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n\n //Set to RUN_TO_POSITION mode\n fL.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n bL.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n fR.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n bR.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n\n //Set Target Position\n fL.setTargetPosition(fL.getCurrentPosition() + ticks);\n bL.setTargetPosition(bL.getCurrentPosition() + ticks);\n fR.setTargetPosition(fR.getCurrentPosition() + ticks);\n bR.setTargetPosition(bR.getCurrentPosition() + ticks);\n\n //Set Drive Power\n fL.setPower(power);\n bL.setPower(power);\n fR.setPower(power);\n bR.setPower(power);\n\n while (fL.isBusy() && fR.isBusy() && bL.isBusy() && bR.isBusy()) {\n //Wait Until Target Position is Reached\n }\n\n //Stop and Change Mode back to Normal\n fL.setPower(0);\n bL.setPower(0);\n fR.setPower(0);\n bR.setPower(0);\n }", "public boolean canMoveForward()\n {\n boolean ans = true;\n\n Iterator<WallMulti> walls = this.walls.iterator();\n\n while(walls.hasNext ())\n {\n WallMulti wall = walls.next();\n\n if(wall.getType ().equals (\"H\"))\n {\n if(locX>=wall.getX()-15 && locX<=wall.getX()+wall.getLength()+15)\n {\n if(wall.getY()-locY<=50 && wall.getY()-locY>=0 && degree>=0 && degree<=150)\n {\n ans=false;\n }\n if(locY-wall.getY()<=8 && locY-wall.getY()>=0 && degree>=180 && degree<=360)\n {\n ans=false;\n }\n }\n }\n\n if(wall.getType ().equals (\"V\"))\n {\n if(locY>=wall.getY()-15 &&locY<=wall.getY()+wall.getLength()+15)\n {\n if(wall.getX()-locX<=50 && wall.getX()-locX>=0 &&\n ((degree>=0 && degree<=90)||(degree>=270 && degree<=360)) )\n {\n ans=false;\n }\n if(locX-wall.getX()<=8 && locX-wall.getX()>=0 &&\n degree>=90 && degree<=270 )\n {\n ans=false;\n }\n }\n }\n }\n return ans;\n }", "@Override\n public void execute() {\n if(reversed) {\n driveSubsystem.setSpeed(-max_speed, -max_speed);\n }\n driveSubsystem.setSpeed(max_speed, max_speed);\n }", "public void move()\n {\n move(WALKING_SPEED);\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 goForward(int motor, int speed) {\n move(motor, speed, (byte)DIR_FORWARD, false);\n }", "public void refreshMovementSpeed(){\n\t\tif(orientation==ORIENTATION.RIGHT) moveRight();\n\t\telse if(orientation==ORIENTATION.LEFT) moveLeft();\n\t\telse if(orientation==ORIENTATION.UP) moveUp();\n\t\telse if(orientation==ORIENTATION.DOWN) moveDown();\n\t}", "public boolean move() {\n\t\tint nextDirection;\n\t\tint pacmanX = parent.getPacManX();\n\t\tint pacmanY = parent.getPacManY();\n\t\t\n\t\tint[] directionPriority = new int[4];\n\t\t/** The direction is added to the priority in order to achieve it once the move is chosen */\n\t\tdirectionPriority[0]=(pacmanX-pixelLocationX)*(10)*state+GameCharacter.RIGHT;\n\t\tdirectionPriority[1]=((pacmanX-pixelLocationX)*(-10)*state+GameCharacter.LEFT);\n\t\tdirectionPriority[2]=(pacmanY-pixelLocationY)*(10)*state+GameCharacter.DOWN;\n\t\tdirectionPriority[3]=((pacmanY-pixelLocationY)*(-10)*state+GameCharacter.UP);\n\t\tArrays.sort(directionPriority);\n\t\t\n\t\tint i=3;\n\t\t\n\t\tdo {\n\t\t\tnextDirection = directionPriority[i]%10;\n\t\t\tif (nextDirection < 0) {\n\t\t\t\tnextDirection += 10;\n\t\t\t}\n\t\t\tif(isLegalMove(nextDirection) && (Math.abs(nextDirection-currentDirection) != 2) || i==0) {\n\t\t\t\tsetDirection(nextDirection);\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ti--;\n\t\t}\n\t\twhile (i>=0);\n\t\treturn super.move();\n\t}", "@java.lang.Override\n public boolean hasForward() {\n return stepInfoCase_ == 13;\n }", "private void getNextPosition() {\n \n if (turnLeft) {\n angleSpeed += angleMoveSpeed;\n if (angleSpeed > maxAngleSpeed) {\n angleSpeed = maxAngleSpeed;\n }\n angle += angleSpeed;\n \n if (angle > 360) {\n angle = angle - 360 + angleSpeed;\n }\n \n if (forward)\n {\n speed += moveSpeed;\n if (speed > maxSpeed)\n {\n speed = maxSpeed;\n }\n } else if (backwards)\n {\n speed -= moveSpeed;\n if (speed < -maxSpeed)\n {\n speed = -maxSpeed;\n }\n }\n }\n //moving in negative x direction\n if (turnRight) {\n angleSpeed -= angleMoveSpeed;\n if (angleSpeed < -maxAngleSpeed) {\n angleSpeed = -maxAngleSpeed;\n }\n angle += angleSpeed;\n \n if (angle < -360) {\n angle = angle + 360 - angleSpeed;\n }\n \n if (backwards)\n {\n speed -= moveSpeed;\n if (speed < -maxSpeed)\n {\n speed = -maxSpeed;\n }\n } else if (forward)\n {\n speed += moveSpeed;\n if (speed > maxSpeed)\n {\n speed = maxSpeed;\n }\n }\n }\n \n //moving in positive y direction\n if (backwards) {\n speed += moveSpeed;\n if (speed > maxSpeed) {\n speed = maxSpeed;\n }\n }\n //moving in negative y direction\n if (forward) {\n speed -= moveSpeed;\n if (speed < -maxSpeed) {\n speed = -maxSpeed;\n }\n }\n \n //not moving forward or backwards direction\n if (isNotMoving()) {\n //stop moving in the x direction\n if (speed > 0) {\n speed -= stopSpeed;\n if (speed < 0) {\n speed = 0;\n }\n }\n else if (speed < 0) {\n speed += stopSpeed;\n if (speed > 0) {\n speed = 0;\n }\n }\n \n if (isNotTurning()) {\n //stop moving in the y direction\n if (angleSpeed > 0) {\n angleSpeed -= stopSpeed;\n if (angleSpeed < 0) {\n angleSpeed = 0;\n }\n }\n else if (angleSpeed < 0) {\n angleSpeed += stopSpeed;\n if (angleSpeed > 0) {\n angleSpeed = 0;\n }\n }\n } \n }\n }", "@java.lang.Override\n public boolean hasForward() {\n return stepInfoCase_ == 13;\n }", "public static void move()\n\t{\n\t\tswitch(step)\n\t\t{\n\t\t\tcase 0:\n\t\t\t\ttimer.start();\n\t\t\t\tstep = 1;\n\t\t\tbreak;\n\t\t\t// 1. Right wheels forward\n\t\t\tcase 1:\n\t\t\t\tif(timer.get() < time)\n\t\t\t\t{\n\t\t\t\t\tsetSpeed(0, .5);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttimer.reset();\n\t\t\t\t\tstep = 2;\n\t\t\t\t}\n\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\ttimer.start();\n\t\t\t\tstep = 3;\n\t\t\tbreak;\n\t\t\t// 2. Right wheels back\n\t\t\tcase 3:\n\t\t\t\tif(timer.get() < time)\n\t\t\t\t{\n\t\t\t\t\tsetSpeed(0, -.5);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttimer.reset();\n\t\t\t\t\tstep = 4;\n\t\t\t\t}\n\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\ttimer.start();\n\t\t\t\tstep = 5;\n\t\t\tbreak;\n\t\t\t// 3. Left wheels forward\n\t\t\tcase 5:\n\t\t\t\tif(timer.get() < time)\n\t\t\t\t{\n\t\t\t\t\tsetSpeed(.5, 0);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttimer.reset();\n\t\t\t\t\tstep = 6;\n\t\t\t\t}\n\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\ttimer.start();\n\t\t\t\tstep = 7;\n\t\t\tbreak;\n\t\t\t// 4. Left wheels back\n\t\t\tcase 7:\n\t\t\t\tif(timer.get() < time)\n\t\t\t\t{\n\t\t\t\t\tsetSpeed(-.5, 0);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttimer.reset();\n\t\t\t\t\tstep = 8;\n\t\t\t\t}\n\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\ttimer.start();\n\t\t\t\tstep = 9;\n\t\t\tbreak;\n\t\t\t// 5. Intake pick up\n\t\t\tcase 9:\n\t\t\t\tif(timer.get() < time)\n\t\t\t\t{\n\t\t\t\t\tsetSpeed(0, 0);\n\t\t\t\t\tshoot(.5);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttimer.reset();\n\t\t\t\t\tstep = 10;\n\t\t\t\t}\n\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\ttimer.start();\n\t\t\t\tstep = 11;\n\t\t\tbreak;\n\t\t\t// 6. Intake shoot\n\t\t\tcase 11:\n\t\t\t\tif(timer.get() < time)\n\t\t\t\t{\n\t\t\t\t\tsetSpeed(0, 0);\n\t\t\t\t\tpickUp(.5);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttimer.reset();\n\t\t\t\t\tstep = 12;\n\t\t\t\t}\n\t\t\tbreak;\n\t\t\t// Stop and reset everything\n\t\t\tcase 12:\n\t\t\t\tsetSpeed(0, 0);\n\t\t\t\tpickUp(0);\n\t\t\t\tshoot(0);\n\t\t\t\ttimer.reset();\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\n public boolean canMove() {\n return storage.isRampClosed();\n }", "public void strafe(double speed, boolean angle, double inches, double timeout){\n int newLeftTarget;\n int newRightTarget;\n int newLeftBottomTarget;\n int newRightBottomTarget;\n if (opModeIsActive()) {\n if (angle) {\n //strafe right\n // Determine new target position, and pass to motor controller\n newLeftTarget = robot.leftFrontMotor.getCurrentPosition() + (int)(Math.abs(inches) * COUNTS_PER_INCH);\n newLeftBottomTarget = robot.leftBackMotor.getCurrentPosition() + (int)(-Math.abs(inches) * COUNTS_PER_INCH);\n newRightTarget = robot.rightFrontMotor.getCurrentPosition() + (int)(-Math.abs(inches) * COUNTS_PER_INCH);\n newRightBottomTarget = robot.rightBackMotor.getCurrentPosition() + (int)(Math.abs(inches) * COUNTS_PER_INCH);\n robot.leftFrontMotor.setTargetPosition(newLeftTarget);\n robot.leftBackMotor.setTargetPosition(newLeftBottomTarget);\n robot.rightFrontMotor.setTargetPosition(newRightTarget);\n robot.rightBackMotor.setTargetPosition(newRightBottomTarget);\n\n // Turn On RUN_TO_POSITION\n robot.leftFrontMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n robot.leftBackMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n robot.rightFrontMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n robot.rightBackMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n\n // reset the timeout time and start motion.\n runtime.reset();\n robot.leftFrontMotor.setPower(Math.abs(speed));\n robot.rightFrontMotor.setPower(Math.abs(speed));\n robot.leftBackMotor.setPower(Math.abs(speed));\n robot.rightBackMotor.setPower(Math.abs(speed));\n\n // keep looping while we are still active, and there is time left, and both motors are running.\n // Note: We use (isBusy() && isBusy()) in the loop test, which means that when EITHER motor hits\n // its target position, the motion will stop. This is \"safer\" in the event that the robot will\n // always end the motion as soon as possible.\n // However, if you require that BOTH motors have finished their moves before the robot continues\n // onto the next step, use (isBusy() || isBusy()) in the loop test.\n\n while (opModeIsActive() &&\n (runtime.seconds() < timeout) &&\n (robot.leftFrontMotor.isBusy() && robot.rightFrontMotor.isBusy())) {\n\n // Display it for the driver.\n telemetry.addData(\"Path1\", \"Running to %7d :%7d\", newLeftTarget, newRightTarget);\n telemetry.addData(\"Path2\", \"Running at %7d :%7d\",\n robot.leftFrontMotor.getCurrentPosition(),\n robot.rightFrontMotor.getCurrentPosition(), robot.leftBackMotor.getCurrentPosition(), robot.rightBackMotor.getCurrentPosition());\n telemetry.update();\n }\n // Stop all motion;\n robot.rightFrontMotor.setPower(0);\n robot.rightBackMotor.setPower(0);\n robot.leftFrontMotor.setPower(0);\n robot.leftBackMotor.setPower(0);\n\n // Turn off RUN_TO_POSITION\n robot.rightFrontMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n robot.rightBackMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n robot.leftFrontMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n robot.leftBackMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n\n } else if (!angle) {\n //strafe left\n // Determine new target position, and pass to motor controller\n newLeftTarget = robot.leftFrontMotor.getCurrentPosition() + (int)(-Math.abs(inches) * COUNTS_PER_INCH);\n newLeftBottomTarget = robot.leftBackMotor.getCurrentPosition() + (int)(Math.abs(inches) * COUNTS_PER_INCH);\n newRightTarget = robot.rightFrontMotor.getCurrentPosition() + (int)(Math.abs(inches) * COUNTS_PER_INCH);\n newRightBottomTarget = robot.rightBackMotor.getCurrentPosition() + (int)(-Math.abs(inches) * COUNTS_PER_INCH);\n robot.leftFrontMotor.setTargetPosition(newLeftTarget);\n robot.leftBackMotor.setTargetPosition(newLeftBottomTarget);\n robot.rightFrontMotor.setTargetPosition(newRightTarget);\n robot.rightBackMotor.setTargetPosition(newRightBottomTarget);\n\n // Turn On RUN_TO_POSITION\n robot.leftFrontMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n robot.leftBackMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n robot.rightFrontMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n robot.rightBackMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n\n // reset the timeout time and start motion.\n runtime.reset();\n robot.leftFrontMotor.setPower(Math.abs(speed));\n robot.rightFrontMotor.setPower(Math.abs(speed));\n robot.leftBackMotor.setPower(Math.abs(speed));\n robot.rightBackMotor.setPower(Math.abs(speed));\n\n // keep looping while we are still active, and there is time left, and both motors are running.\n // Note: We use (isBusy() && isBusy()) in the loop test, which means that when EITHER motor hits\n // its target position, the motion will stop. This is \"safer\" in the event that the robot will\n // always end the motion as soon as possible.\n // However, if you require that BOTH motors have finished their moves before the robot continues\n // onto the next step, use (isBusy() || isBusy()) in the loop test.\n\n while (opModeIsActive() &&\n (runtime.seconds() < timeout) &&\n (robot.leftFrontMotor.isBusy() && robot.rightFrontMotor.isBusy())) {\n\n // Display it for the driver.\n telemetry.addData(\"Path1\", \"Running to %7d :%7d\", newLeftTarget, newRightTarget);\n telemetry.addData(\"Path2\", \"Running at %7d :%7d\",\n robot.leftFrontMotor.getCurrentPosition(),\n robot.rightFrontMotor.getCurrentPosition(), robot.leftBackMotor.getCurrentPosition(), robot.rightBackMotor.getCurrentPosition());\n telemetry.update();\n }\n // Stop all motion;\n robot.rightFrontMotor.setPower(0);\n robot.rightBackMotor.setPower(0);\n robot.leftFrontMotor.setPower(0);\n robot.leftBackMotor.setPower(0);\n\n // Turn off RUN_TO_POSITION\n robot.rightFrontMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n robot.rightBackMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n robot.leftFrontMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n robot.leftBackMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n }\n }\n }", "public void driveStraightBackwards(double speed) {\r\n \tspeed = Math.abs(speed);\r\n \tint angle = getGyroAngle();\r\n \tdrivetrain.drive(-1 * speed, angle * kP);\r\n \tTimer.delay(0.004); //4 millisecond delay to allow for gyro to calibrate\r\n }", "@Override\n\tpublic void travel(float strafe, float vertical, float forward) {\n\t\tif (!isFlying()) {\n\t\t\tsuper.travel(strafe, vertical, forward);\n\t\t}\n\t}", "@Override\npublic int accelerate(int speed) {\n\tint carSpeed=getSpeed();\n\treturn carSpeed;\n}", "public boolean takeControl() {\n\t\treturn Project2a.curState == Project2a.RobotState.Forward && Project2a.getCurTime() - 500 > MoveForward.startTime;\n\t}", "@Override\r\n\tpublic void prePointersMove(float arg0, float arg1, float arg2, float arg3,\r\n\t\t\tdouble arg4) {\n\r\n\t}", "@java.lang.Override\n public boolean hasForwardingRule() {\n return stepInfoCase_ == 9;\n }", "public void drive(double direction, double speed) {\n if (mode != SwerveMode.Disabled) {\n for (SwerveModule mod: modules) {\n mod.setSetpoint(direction);\n }\n \t\tmodules.get(0).setSpeed(speed * -1);\n \t\tmodules.get(1).setSpeed(speed);\n \t\tmodules.get(2).setSpeed(speed * -1);\n \t\tmodules.get(3).setSpeed(speed);\n\n\n }\n\n}", "public boolean isSetSpeed() {\n return this.speed != null;\n }", "public abstract void drive(double leftSpeed, double rightSpeed);", "public static void setForwardAcceleration(int acc) {\n LEFT_MOTOR.setAcceleration(acc);\n RIGHT_MOTOR.setAcceleration(acc);\n }", "@Override\n\tpublic void goForward() {\n\t\t// check side and move the according room and side\n\t\tif (side.equals(\"hRight\")) {\n\t\t\tthis.side = \"bFront\";\n\t\t\tthis.room = properties.getRoomFromProperties().get(3);\n\n\t\t} else if (side.equals(\"hFront\")) {\n\t\t\tthis.side = \"mFront\";\n\t\t\tthis.room = properties.getRoomFromProperties().get(2);\n\n\t\t} else if (side.equals(\"bLeft\")) {\n\t\t\tthis.side = \"rLeft\";\n\t\t\tthis.room = properties.getRoomFromProperties().get(4);\n\n\t\t} else if (side.equals(\"rBack\")) {\n\t\t\tthis.side = \"bBack\";\n\t\t\tthis.room = properties.getRoomFromProperties().get(3);\n\n\t\t} else if (side.equals(\"bBack\")) {\n\t\t\tthis.side = \"hLeft\";\n\t\t\tthis.room = properties.getRoomFromProperties().get(1);\n\n\t\t} else if (side.equals(\"kBack\")) {\n\t\t\tthis.side = \"lFront\";\n\t\t\tthis.room = properties.getRoomFromProperties().get(5);\n\n\t\t} else if (side.equals(\"lLeft\")) {\n\t\t\tthis.side = \"kRight\";\n\t\t\tthis.room = properties.getRoomFromProperties().get(6);\n\n\t\t} else if (side.equals(\"lBack\")) {\n\t\t\tthis.side = \"mBack\";\n\t\t\tthis.room = properties.getRoomFromProperties().get(2);\n\n\t\t} else if (side.equals(\"mFront\")) {\n\t\t\tthis.side = \"lFront\";\n\t\t\tthis.room = properties.getRoomFromProperties().get(5);\n\n\t\t} else if (side.equals(\"mBack\")) {\n\t\t\tthis.side = \"hBack\";\n\t\t\tthis.room = properties.getRoomFromProperties().get(1);\n\n\t\t} else {\n\t\t\trandomRoom();\n\t\t\tSystem.out.println(\"Entered Wormhole!\");\n\t\t\tSystem.out.println(\"Location was chosen at random\");\n\t\t\tSystem.out.println(\"New location is: \" + room + \" room and \" + side.substring(1) + \" side\");\n\n\t\t}\n\t}", "public abstract void move(int direction, double speed);", "public boolean checkAndMove() {\r\n\r\n\t\tif(position == 0)\r\n\t\t\tdirection = true;\r\n\r\n\t\tguardMove();\r\n\r\n\t\tif((position == (guardRoute.length - 1)) && direction) {\r\n\t\t\tposition = 0;\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\tif(direction)\r\n\t\t\tposition++;\r\n\t\telse\r\n\t\t\tposition--;\r\n\r\n\t\treturn false;\r\n\t}", "@java.lang.Override\n public boolean hasForwardingRule() {\n return stepInfoCase_ == 9;\n }", "public void reviseMotorSpeed() {\n\t\tmHandler.removeMessages(EVAL_MOTOR_SPEED);\n\t\tlong starttime = System.currentTimeMillis();\n\n\t\t//Retrieve current orientation.\t\t\n\t\t\n\t\tmAzimuth = mStatus.getReadingField(AZIMUTH);\t\t\n\t\tmPitchDeg = mStatus.getReadingField(PITCH);\n\t\tmRollDeg = -mStatus.getReadingField(ROLL);\n\t\t\n\t\tdouble[] errors = new double[4];\n\t\tsynchronized (mAngleTarget) {\n\t\t\t//logArray(\"mAngleTarget\", mAngleTarget);\n\t\t\terrors[0] = mAngleTarget[0] - mRollDeg;\n\t\t\terrors[1] = mAngleTarget[1] - mPitchDeg;\n\t\t\terrors[2] = mAngleTarget[2] - mStatus.getGpsField(dALT);\n\t\t\terrors[3] = mAngleTarget[3] - mAzimuth;\n\t\t\t//logArray(\"errors\", errors);\n\t\t}\n\t\t\n\t\t@SuppressWarnings(\"unused\")\n\t\tString errs = \"errors: \";\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\terrs += errors[i] + \": \";\n\t\t}\n\t\t//Log.v(TAG, errs);\n\t\t//For azimuth, multiple possibilities exist for error, each equally valid; but only the error nearest zero makes practical sense.\n\t\tif (errors[3] > 180.0)\n\t\t\terrors[3] -= 360.0;\n\t\tif (errors[3] < -180.0)\n\t\t\terrors[3] += 360.0;\n\t\t\n\t\t\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\t//Calculate proportional errors\n\t\t\tdouble err = errors[i];//mTarget[i] - mCurrent[i];\n\t\t\t\n\n\t\t\t//Calculate derivative errors.\n\t\t\tlong timeInterval = starttime - mLastUpdate;\n\t\t\tif (timeInterval != 0) {\n\t\t\t\tmErrors[i][2] = (err - mErrors[i][0]) * 1000.0 / timeInterval;\n\t\t\t} else {\n\t\t\t\tmErrors[i][2] = 0.0;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//Mark proportional error\n\t\t\tmErrors[i][0] = err;\n\t\t\t/*if (i == 2)\n\t\t\t\tLog.v(TAG, \"guid, dalt err is \" + err);*/\n\t\t\t//Update integral errors\n\t\t\tmErrors[i][1] -= mIntegralErrors[i][mIntegralIndex];\n\t\t\tmIntegralErrors[i][mIntegralIndex] = err;\n\t\t\tmErrors[i][1] += err;\n\t\t\tmIntegralIndex = ++mIntegralIndex % PIDREPS;\n\t\t\t\n\t\t\t//Calculate changes in output\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tmControlVars[i] += mErrors[i][j] * mGain[i][j];\n\t\t\t}\n\t\t}\n\t\tif (mGuidanceMode.get() == MANUAL) {\n\t\t\tsynchronized (mAngleTarget) {\n\t\t\t\tmControlVars[2] = mAngleTarget[2];\n\t\t\t}\n\t\t}\n\t\tmLastUpdate = starttime;\n\t\t\n\t\t// Constrain control vars:\n\t\tmControlVars[0] = constrainValue(mControlVars[0], -1, 1);\n\t\tmControlVars[1] = constrainValue(mControlVars[1], -1, 1);\n\t\tmControlVars[2] = constrainValue(mControlVars[2], 0, 1);\n\t\tmControlVars[3] = constrainValue(mControlVars[3], -2, 2);\n\t\t\n\t\t/*String vars = \"Control vars: \";\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tvars += mControlVars[i] + \": \";\n\t\t}\n\t\tLog.v(TAG, vars);*/\n\t\t\n\t\tcontrolVarsToMotorSpeeds();\n\t\t\n\t\t//Send motor values to motors here:\n\t\tupdateMotors();\n\t\tupdateAngleTarget();\n\t\t//Log.v(TAG, \"motors: \" + mMotorSpeed[0] + \", \" + mMotorSpeed[1] + \", \" + mMotorSpeed[2] + \", \" + mMotorSpeed[3]);\n\t\t//Sleep a while\n\t\tlong timetonext = (1000 / PIDREPS) - (System.currentTimeMillis() - starttime);\n\t\t//Log.v(TAG, \"time to next: \" + timetonext);\n\t\tint currentMode = mGuidanceMode.get();\n\t\tif ((currentMode == MANUAL) || (currentMode == AUTOPILOT)) {\n\t\t\tif (timetonext > 0)\n\t\t\t\tmHandler.sendEmptyMessageDelayed(EVAL_MOTOR_SPEED, timetonext);\n\t\t\telse {\n\t\t\t\tLog.e(TAG, \"Guidance too slow\");\n\t\t\t\tmHandler.sendEmptyMessage(EVAL_MOTOR_SPEED);\n\t\t\t}\n\t\t}\n\t}", "public void drive(double xSpeed, double ySpeed, double rot, boolean fieldRelative, boolean rateLimit) {\n \n double xSpeedCommanded;\n double ySpeedCommanded;\n\n if (rateLimit) {\n // Convert XY to polar for rate limiting\n double inputTranslationDir = Math.atan2(ySpeed, xSpeed);\n double inputTranslationMag = Math.sqrt(Math.pow(xSpeed, 2) + Math.pow(ySpeed, 2));\n\n // Calculate the direction slew rate based on an estimate of the lateral acceleration\n double directionSlewRate;\n if (m_currentTranslationMag != 0.0) {\n directionSlewRate = Math.abs(DriveConstants.kDirectionSlewRate / m_currentTranslationMag);\n } else {\n directionSlewRate = 500.0; //some high number that means the slew rate is effectively instantaneous\n }\n \n\n double currentTime = WPIUtilJNI.now() * 1e-6;\n double elapsedTime = currentTime - m_prevTime;\n double angleDif = SwerveUtils.AngleDifference(inputTranslationDir, m_currentTranslationDir);\n if (angleDif < 0.45*Math.PI) {\n m_currentTranslationDir = SwerveUtils.StepTowardsCircular(m_currentTranslationDir, inputTranslationDir, directionSlewRate * elapsedTime);\n m_currentTranslationMag = m_magLimiter.calculate(inputTranslationMag);\n }\n else if (angleDif > 0.85*Math.PI) {\n if (m_currentTranslationMag > 1e-4) { //some small number to avoid floating-point errors with equality checking\n // keep currentTranslationDir unchanged\n m_currentTranslationMag = m_magLimiter.calculate(0.0);\n }\n else {\n m_currentTranslationDir = SwerveUtils.WrapAngle(m_currentTranslationDir + Math.PI);\n m_currentTranslationMag = m_magLimiter.calculate(inputTranslationMag);\n }\n }\n else {\n m_currentTranslationDir = SwerveUtils.StepTowardsCircular(m_currentTranslationDir, inputTranslationDir, directionSlewRate * elapsedTime);\n m_currentTranslationMag = m_magLimiter.calculate(0.0);\n }\n m_prevTime = currentTime;\n \n xSpeedCommanded = m_currentTranslationMag * Math.cos(m_currentTranslationDir);\n ySpeedCommanded = m_currentTranslationMag * Math.sin(m_currentTranslationDir);\n m_currentRotation = m_rotLimiter.calculate(rot);\n\n\n } else {\n xSpeedCommanded = xSpeed;\n ySpeedCommanded = ySpeed;\n m_currentRotation = rot;\n }\n\n // Convert the commanded speeds into the correct units for the drivetrain\n double xSpeedDelivered = xSpeedCommanded * DriveConstants.kMaxSpeedMetersPerSecond;\n double ySpeedDelivered = ySpeedCommanded * DriveConstants.kMaxSpeedMetersPerSecond;\n double rotDelivered = m_currentRotation * DriveConstants.kMaxAngularSpeed;\n\n var swerveModuleStates = DriveConstants.kDriveKinematics.toSwerveModuleStates(\n fieldRelative\n ? ChassisSpeeds.fromFieldRelativeSpeeds(xSpeedDelivered, ySpeedDelivered, rotDelivered, Rotation2d.fromDegrees(m_gyro.getAngle()))\n : new ChassisSpeeds(xSpeedDelivered, ySpeedDelivered, rotDelivered));\n SwerveDriveKinematics.desaturateWheelSpeeds(\n swerveModuleStates, DriveConstants.kMaxSpeedMetersPerSecond);\n m_frontLeft.setDesiredState(swerveModuleStates[0]);\n m_frontRight.setDesiredState(swerveModuleStates[1]);\n m_rearLeft.setDesiredState(swerveModuleStates[2]);\n m_rearRight.setDesiredState(swerveModuleStates[3]);\n }", "private void move() {\n acceleration.accelerate(velocity, position);\r\n }", "public void goForward(double distance) {\n \t\tthis.travelTo(Math.cos(Math.toRadians(this.myOdometer.getAng())) * distance, Math.cos(Math.toRadians(this.myOdometer.getAng())) * distance);\n \t}", "public void up() {\n double speed = RobotContainer.m_BlackBox.getPotValueScaled(Constants.OIConstants.kControlBoxPotY, 0.0, 1.0);\n m_hook.set(speed);\n SmartDashboard.putNumber(\"forward speed\", speed);\n }", "public void DriveForwardSimple() {\n \ttheRobot.drive(-0.5, 0.0);\n }", "public final flipsParser.speed_return speed() throws RecognitionException {\n flipsParser.speed_return retval = new flipsParser.speed_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n flipsParser.fixedSpeed_return fixedSpeed282 = null;\n\n flipsParser.relativeSpeed_return relativeSpeed283 = null;\n\n\n\n try {\n // flips.g:430:2: ( fixedSpeed | relativeSpeed )\n int alt118=2;\n alt118 = dfa118.predict(input);\n switch (alt118) {\n case 1 :\n // flips.g:430:4: fixedSpeed\n {\n root_0 = (CommonTree)adaptor.nil();\n\n pushFollow(FOLLOW_fixedSpeed_in_speed2337);\n fixedSpeed282=fixedSpeed();\n\n state._fsp--;\n\n adaptor.addChild(root_0, fixedSpeed282.getTree());\n\n }\n break;\n case 2 :\n // flips.g:431:4: relativeSpeed\n {\n root_0 = (CommonTree)adaptor.nil();\n\n pushFollow(FOLLOW_relativeSpeed_in_speed2342);\n relativeSpeed283=relativeSpeed();\n\n state._fsp--;\n\n adaptor.addChild(root_0, relativeSpeed283.getTree());\n\n }\n break;\n\n }\n retval.stop = input.LT(-1);\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n }\n return retval;\n }", "public synchronized void set (double speed){\n m_liftSpeed = speed;\n if (m_liftSpeed < 0 && isLowerLimit() == false) {\n m_liftMotor.set(m_liftSpeed);\n } else if (m_liftSpeed > 0 && isUpperLimit() == false){\n m_liftMotor.set(m_liftSpeed);\n } else {\n m_liftSpeed = 0;\n m_liftMotor.set(0); \n }\n }", "public void moveForward(boolean endWithBrake){\r\n \r\n Motor.B.rotate(DEGREES_PER_TILE, true);//Accesses Motor thread\r\n Motor.C.rotate(DEGREES_PER_TILE, true);\r\n while(Motor.B.isMoving() || Motor.C.isMoving())\r\n ;//wait for motors to be done\r\n return;\r\n }", "public void move() {\n\n if (_currentFloor == Floor.FIRST) {\n _directionOfTravel = DirectionOfTravel.UP;\n }\n if (_currentFloor == Floor.SEVENTH) {\n _directionOfTravel = DirectionOfTravel.DOWN;\n }\n\n\n if (_directionOfTravel == DirectionOfTravel.UP) {\n _currentFloor = _currentFloor.nextFloorUp();\n } else if (_directionOfTravel == DirectionOfTravel.DOWN) {\n _currentFloor = _currentFloor.nextFloorDown();\n }\n\n if(_currentFloor.hasDestinationRequests()){\n stop();\n } \n\n }", "public void drive(double speed){\n \t\tsetRight(speed);\n \t\tsetLeft(speed);\n \t}", "public void gyroDrive ( double speed,\n double distance,\n double angle) {\n\n\n // Ensure that the opmode is still activ\n\n // Determine new target position, and pass to motor controller\n moveCounts = (int)(distance * COUNTS_PER_INCH);\n newLeftTarget = leftmotor.getCurrentPosition() + moveCounts;\n newRightTarget = rightmotor.getCurrentPosition() + moveCounts;\n\n // Set Target and Turn On RUN_TO_POSITION\n leftmotor.setTargetPosition(newLeftTarget);\n rightmotor.setTargetPosition(newRightTarget);\n\n leftmotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n rightmotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n\n // start motion.\n speed = Range.clip(Math.abs(speed), 0.0, 1.0);\n\n maxSpeed = speed;\n speed = INCREMENT;\n rampUp = true;\n\n leftmotor.setPower(speed);\n rightmotor.setPower(speed);\n\n // keep looping while we are still active, and BOTH motors are running.\n while ((leftmotor.isBusy() && rightmotor.isBusy())) {\n if (rampUp){\n speed += INCREMENT ;\n if (speed >= maxSpeed ) {\n speed = maxSpeed;\n }\n }\n\n // adjust relative speed based on heading error.\n error = getError(angle);\n steer = getSteer(error, P_DRIVE_COEFF);\n\n // if driving in reverse, the motor correction also needs to be reversed\n if (distance < 0)\n steer *= -1.0;\n\n leftSpeed = speed - steer;\n rightSpeed = speed + steer;\n\n // Normalize speeds if either one exceeds +/- 1.0;\n max = Math.max(Math.abs(leftSpeed), Math.abs(rightSpeed));\n if (max > 1.0)\n {\n leftSpeed /= max;\n rightSpeed /= max;\n }\n\n leftmotor.setPower(leftSpeed);\n rightmotor.setPower(rightSpeed);\n }\n\n // Stop all motion;\n leftmotor.setPower(0);\n rightmotor.setPower(0);\n\n // Turn off RUN_TO_POSITION\n leftmotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n rightmotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n\n gyroHold(TURN_SPEED,angle,0.166);\n\n }", "protected void accelerate(int direction){\n if (boatStats.getSpeed() < boatStats.getMaxSpeed()) {\n boatStats.setSpeed(boatStats.getSpeed() + boatStats.getAcceleration() * direction);\n }\n }", "private void run() {\n\n //if no time has elapsed, do not do anything\n if (Harness.getTime().equals(lastRunTime)) {\n return;\n }\n\n //double deltaV, deltaX;\n double newSpeed;\n double newPosition;\n double targetSpeed = 0;\n double currentSpeed = 0;\n double acceleration = 0;\n\n switch (driveOrderedState.speed()) {\n case STOP:\n targetSpeed = 0.0;\n break;\n case LEVEL:\n targetSpeed = LevelingSpeed;\n break;\n case SLOW:\n targetSpeed = SlowSpeed;\n break;\n case FAST:\n targetSpeed = FastSpeed;\n break;\n default:\n throw new RuntimeException(\"Unknown speed\");\n }\n /*\n * JDR Bug fix to make the speed stop in the case where the command is\n * Direction=STOP but speed is something other than STOP.\n */\n if (driveOrderedState.direction() == Direction.STOP) {\n targetSpeed = 0.0;\n }\n if (driveOrderedState.direction() == Direction.DOWN) {\n targetSpeed *= -1;\n }\n\n currentSpeed = driveSpeedState.speed();\n if (driveSpeedState.direction() == Direction.DOWN) {\n currentSpeed *= -1;\n }\n\n if (Math.abs(targetSpeed) > Math.abs(currentSpeed)) {\n //need to accelerate\n acceleration = Acceleration;\n } else if (Math.abs(targetSpeed) < Math.abs(currentSpeed)) {\n //need to decelerate\n acceleration = -1 * Deceleration;\n } else {\n acceleration = 0;\n }\n if (currentSpeed < 0) {\n //reverse everything for negative motion (going down)\n acceleration *= -1;\n }\n\n //get the time offset in seconds since the last update\n double timeOffset = SimTime.subtract(Harness.getTime(), lastRunTime).getFracSeconds();\n //remember this time as the last update\n lastRunTime = Harness.getTime();\n\n //now update speed\n //deltav = at\n newSpeed = currentSpeed + (acceleration * timeOffset);\n\n //deltax= vt+ 1/2 at^2\n newPosition = carPositionState.position() +\n (currentSpeed * timeOffset) + \n (0.5 * acceleration * timeOffset * timeOffset);\n if ((currentSpeed < targetSpeed &&\n newSpeed > targetSpeed) ||\n (currentSpeed > targetSpeed &&\n newSpeed < targetSpeed)) {\n //if deltaV causes us to exceed the target speed, set the speed to the target speed\n driveSpeedState.setSpeed(Math.abs(targetSpeed));\n } else {\n driveSpeedState.setSpeed(Math.abs(newSpeed));\n }\n //determine the direction\n if (driveSpeedState.speed() == 0) {\n driveSpeedState.setDirection(Direction.STOP);\n } else if (targetSpeed > 0) {\n driveSpeedState.setDirection(Direction.UP);\n } else if (targetSpeed < 0) {\n driveSpeedState.setDirection(Direction.DOWN);\n }\n carPositionState.set(newPosition);\n\n physicalConnection.sendOnce(carPositionState);\n physicalConnection.sendOnce(driveSpeedState);\n\n log(\" Ordered State=\", driveOrderedState,\n \" Speed State=\", driveSpeedState,\n \" Car Position=\", carPositionState.position(), \" meters\");\n }", "public void drive (double leftSpeed, double rightSpeed) {\n //Square the inputs but keep the signs.\n leftSpeed *= (leftSpeed > 0) ? leftSpeed : -leftSpeed;\n rightSpeed *= (rightSpeed > 0) ? rightSpeed : -rightSpeed;\n\n leftTargetSpeed = leftSpeed;\n rightTargetSpeed = rightSpeed;\n }", "private void moveOrTurn() {\n\t\t// TEMP: look at center of canvas if out of bounds\n\t\tif (!isInCanvas()) {\n\t\t\tlookAt(sens.getXMax() / 2, sens.getYMax() / 2);\n\t\t}\n\n\t\t// if we're not looking at our desired direction, turn towards. Else, move forward\n\t\tif (needToTurn()) {\n\t\t\tturnToDesiredDirection();\n\t\t} else {\n\t\t\tmoveForward(2.0);\n\t\t}\n\n\t\t// move in a random direction every 50 roaming ticks\n\t\tif (tickCount % 100 == 0) {\n\t\t\tgoRandomDirection();\n\t\t}\n\t\ttickCount++;\n\t}", "boolean hasSpeed();", "boolean hasSpeed();", "boolean hasSpeed();", "boolean hasSpeed();", "boolean hasSpeed();", "boolean hasSpeed();", "public void travelForward (double x, double y){\r\n\r\n\t\t\tdouble xDistance = x - odometer.getX();//the distance the robot has to travel in x to get to its destination from current position.\r\n\t\t\tdouble yDistance = y - odometer.getY();//the distance the robot has to travel in y to get to its destination from current position.\r\n\t\t\tdouble distance = Math.sqrt(xDistance*xDistance + yDistance*yDistance);//the overall distance the robot has to travel from current position.\r\n\t\t\r\n\t\t\tdouble xStart = odometer.getX();\r\n\t\t\tdouble yStart = odometer.getY();\r\n\t\t\t\r\n\t\t\tboolean isTravelling = true;\r\n\t\t\t\r\n\t\t\twhile(isTravelling){\r\n\t\t\t\t\r\n\t\t\t\tleftMotor.setSpeed(FORWARD_SPEED);\r\n\t\t\t\trightMotor.setSpeed(FORWARD_SPEED);\r\n\r\n\t\t\t\tleftMotor.rotate(convertDistance(wheelRadius, distance - distanceTravelled), true);\r\n\t\t\t\trightMotor.rotate(convertDistance(wheelRadius, distance - distanceTravelled), true);\r\n\t\t\t\t\r\n\t\t\t\txTravelled =(odometer.getX() - xStart); //update xTravelled\r\n\t\t\t\tyTravelled =(odometer.getY() - yStart);\t//update yTravelled\r\n\t\t\t\t\r\n\t\t\t\tdistanceTravelled = Math.sqrt(xTravelled*xTravelled +yTravelled*yTravelled); //update the distance travelled\r\n\t\t\t\tif (distanceTravelled >= distance){\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tif(getFilteredData() < 15 ){ // if the robot sees an object on the path\r\n\t\t\t\t\tisTravelling = false; //set to false so we exit the loop \r\n\t\t\t\t}\r\n\t\t\t\tLCD.drawString(\"x \", 0, 5);\r\n\t\t\t\tLCD.drawString(\"x \"+odometer.getX(), 0, 5);\r\n\t\t\t\tLCD.drawString(\"y \", 0, 6);\r\n\t\t\t\tLCD.drawString(\"y \"+odometer.getY(), 0, 6);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tleftMotor.setSpeed(0);\r\n\t\t\trightMotor.setSpeed(0);\r\n\t\t\t\t\r\n\t\t\t}", "protected void execute() {\n \t\n \tcurrentAngle = Robot.gyroSubsystem.gyroPosition();\n\t\tpercentComplete = Math.abs((targetAngle-currentAngle)/goal)*speedFactor;\n\t\t\n\t\tif (percentComplete < minSpeed) \n\t\t{\n\t\t\tpercentComplete = minSpeed;\n\t\t}\n\n\t\t\n\t\tif (targetAngle - error > currentAngle)\n\t\t{\n\t\t\tRobot.driveSubsystem.arcadeDrive(0, percentComplete);\n\t\t}\n\t\telse if (targetAngle + error < currentAngle)\n\t\t{\n\t\t\tRobot.driveSubsystem.arcadeDrive(0, -percentComplete);\n\t\t}\n\t\telse \n\t\t{\n\t\t\tRobot.driveSubsystem.arcadeDrive(0, 0);\n\t\t}\n }", "private void moveForward(double length) {\n\t\tsens.setXPos(sens.getXPos() + (Math.cos(Math.toRadians(sens.getDirection())) * length));\n\t\tsens.setYPos(sens.getYPos() + (Math.sin(Math.toRadians(sens.getDirection())) * length));\n\t}", "public void setDirectionMove(double direction);", "public boolean isForward() {\n return true;\n }", "public void accelerationSet(double speed){\n\t\tdouble currentDelta = Math.abs(currentSpeed - speed);\r\n\t\tif(currentDelta > maxDelta){\r\n\t\t\tif(speed > currentSpeed){\r\n\t\t\t\tspeed = currentSpeed + maxDelta;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tspeed = currentSpeed - maxDelta;\r\n\t\t\t}\r\n\t\t}\r\n\t//\tSystem.out.println(\"Speed:\" + speed);\r\n\t\tcurrentSpeed = speed;\r\n\t\tsuper.set(speed * motorDirection);\r\n\t}" ]
[ "0.6735582", "0.63137656", "0.62751275", "0.62744343", "0.62006557", "0.61884916", "0.6175533", "0.6161837", "0.612948", "0.61081094", "0.61003464", "0.60940987", "0.60930085", "0.6089787", "0.6044636", "0.5969587", "0.594128", "0.594059", "0.59390384", "0.59367615", "0.59291434", "0.5927243", "0.59103686", "0.5898663", "0.5893282", "0.58840674", "0.5875356", "0.58513486", "0.58485764", "0.5847969", "0.584581", "0.58352995", "0.5833645", "0.5814817", "0.58035266", "0.5800857", "0.57963663", "0.57916015", "0.5788295", "0.576154", "0.5749347", "0.5706545", "0.5706525", "0.56681675", "0.5667176", "0.5656726", "0.5652166", "0.56335807", "0.5628831", "0.5626307", "0.5623443", "0.5621071", "0.56203544", "0.5610353", "0.5602474", "0.55990654", "0.5595391", "0.5588899", "0.55779535", "0.5577248", "0.55629295", "0.55629224", "0.5560633", "0.55598575", "0.55574316", "0.5557017", "0.5550855", "0.55448204", "0.5543359", "0.5540205", "0.553414", "0.5531781", "0.55249786", "0.5515554", "0.5514413", "0.55074406", "0.5500379", "0.54620016", "0.5451104", "0.5436932", "0.54320097", "0.5429146", "0.5426288", "0.5425762", "0.54140407", "0.5412787", "0.5411751", "0.5409275", "0.54069006", "0.54069006", "0.54069006", "0.54069006", "0.54069006", "0.54069006", "0.5392691", "0.538627", "0.5381591", "0.5379647", "0.5365685", "0.53577924" ]
0.6220005
4
Final part of ResetBelt method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result: Device is enabled.
public void resetBelt() throws JposException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void checkHardware() {\n\t\tsuper.checkHardware();\n\t}", "@Override\n public void resetDeviceConfigurationForOpMode() {\n\n }", "public void damageDevice() {\n\t\t\r\n\t}", "public void initDevice() {\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void resetState() {\r\n\t\t// what to do for a tape device??\r\n\t}", "public void disabledInit() {\n oi.getXBoxJoystick().setRumble(RumbleType.kLeftRumble, 0);\n oi.getXBoxJoystick().setRumble(RumbleType.kRightRumble, 0);\n oi.getXBoxJoystick2().setRumble(RumbleType.kLeftRumble, 0);\n oi.getXBoxJoystick2().setRumble(RumbleType.kRightRumble, 0);\n }", "@Test\n\tpublic void testReadyNoDevices() {\n\t\tModel contact = addContactSensor(true, false);\n\t\tstageDisarmed(addressesOf(contact));\n\t\tremoveModel(contact);\n\t\t\n\t\talarm.bind(context);\n\t\tassertInactive();\n\t}", "private void initDevice() {\n device = new Device();\n device.setManufacture(new Manufacture());\n device.setInput(new Input());\n device.setPrice(new Price());\n device.getPrice().setCurrency(\"usd\");\n device.setCritical(DeviceCritical.FALSE);\n }", "public boolean clearDeviceTypeAndNameBuffer();", "@Override\n public int targetDevice() {\n return 0;\n }", "void resetSelectedDevice() {\n selectedDevice = null;\n userSelectedDevice = null;\n }", "public Device() {\n isFaceUp = null;\n isFaceDown = null;\n isCloseProximity = null;\n isDark = null;\n }", "public void setActiveDevice(IDevice device) {\r\n\t\tif (device != null) {\r\n\t\t\tif (this.activeDevice == null || !this.activeDevice.getName().equals(device.getName())) this.activeDevice = device;\r\n\t\t\t// do always update, the port might be changed\r\n\t\t\tthis.settings.setActiveDevice(device.getName() + GDE.STRING_SEMICOLON + device.getManufacturer() + GDE.STRING_SEMICOLON + device.getPort());\r\n\t\t\tthis.updateTitleBar(this.getObjectKey(), device.getName(), device.getPort());\r\n\t\t\tif (this.deviceSelectionDialog.getNumberOfActiveDevices() > 1)\r\n\t\t\t\tthis.enableDeviceSwitchButtons(true);\r\n\t\t\telse\r\n\t\t\t\tthis.enableDeviceSwitchButtons(false);\r\n\t\t}\r\n\t\telse { // no device\r\n\t\t\tthis.settings.setActiveDevice(Settings.EMPTY_SIGNATURE);\r\n\t\t\tthis.updateTitleBar(this.getObjectKey(), Messages.getString(MessageIds.GDE_MSGI0023), GDE.STRING_EMPTY);\r\n\t\t\tthis.activeDevice = null;\r\n\t\t\tthis.channels.cleanup();\r\n\t\t\tthis.enableDeviceSwitchButtons(false);\r\n\t\t\t// remove Histo tabs at this place because setupDevice is not called if all devices are removed\r\n\t\t\tthis.setHistoGraphicsTabItemVisible(false);\r\n\t\t\tthis.setHistoTableTabItemVisible(false);\r\n\t\t}\r\n\r\n\t\t//cleanup device specific utility graphics tab item\r\n\t\tif (this.utilGraphicsTabItem != null) {\r\n\t\t\tthis.utilGraphicsTabItem.dispose();\r\n\t\t\tthis.utilGraphicsTabItem = null;\r\n\t\t}\r\n\t\t//cleanup device specific custom tab item\r\n\t\tfor (CTabItem tab : this.customTabItems) {\r\n\t\t\ttab.dispose();\r\n\t\t}\r\n\t\tthis.customTabItems.clear();\r\n\r\n\t}", "@Override\n public void disabledInit()\n {\n driver.setRumble(RumbleType.kLeftRumble, 0);\n driver.setRumble(RumbleType.kRightRumble, 0);\n driveTrain.zeroSensors();\n pigeonInitializing = false;\n }", "public void setStorageDeviceProtected() { throw new RuntimeException(\"Stub!\"); }", "public void planted(){\r\n\t\tenable = false; \r\n\t\tcount = 0; \r\n\t}", "private void resetBluetooth() {\n if (mBtAdapter != null) {\n mBtAdapter.disable();\n mHandler.postDelayed(new Runnable() {\n\n @Override\n public void run() {\n checkEnableBt();\n }\n }, 200);\n\n }\n }", "public void resetFuelWarning();", "@Override\n public boolean workaroundBySurfaceProcessing() {\n return isHuaweiMate20() || isHuaweiMate20Pro() || isHuaweiP40Lite();\n }", "public BizFallDevice() {\n super();\n }", "public void clear() throws DeviceException;", "private void setupPhisicalDevice() {\n try (MemoryStack memstack = MemoryStack.stackPush();) {\n IntBuffer buffer = buffer = memstack.mallocInt(1);\n\n\n long result = vkEnumeratePhysicalDevices(instance, buffer, null);\n int count = buffer.get();\n if (count == 0) {\n throw new RuntimeException(\"No physical support for vulcan available!\");\n }\n\n System.out.println(count);\n buffer = memstack.mallocInt(1);\n buffer.put(buffer.position(), 1);\n PointerBuffer deviceBuffer = memstack.mallocPointer(1);\n vkEnumeratePhysicalDevices(instance, buffer, deviceBuffer);\n //TODO: select the best one\n physicalDevice = new VkPhysicalDevice(deviceBuffer.get(), instance);\n }\n }", "public static void restoreDevices() {\n/* 95 */ D3DRenderQueue d3DRenderQueue = getInstance();\n/* 96 */ d3DRenderQueue.lock();\n/* */ try {\n/* 98 */ d3DRenderQueue.ensureCapacity(4);\n/* 99 */ d3DRenderQueue.getBuffer().putInt(77);\n/* 100 */ d3DRenderQueue.flushNow();\n/* */ } finally {\n/* 102 */ d3DRenderQueue.unlock();\n/* */ } \n/* */ }", "protected void afterRecipeCheckFailed() {\n cleanOrExplode();\n\n for (GT_MetaTileEntity_Hatch_OutputData data : eOutputData) {\n data.q = null;\n }\n\n mOutputItems = null;\n mOutputFluids = null;\n mEfficiency = 0;\n mEfficiencyIncrease = 0;\n mProgresstime = 0;\n mMaxProgresstime = 0;\n eAvailableData = 0;\n //getBaseMetaTileEntity().disableWorking(); //can add in override\n //hatchesStatusUpdate_EM(); //called always after recipe checks\n }", "@Override\n protected void initialize() {\n Robot.powerCellManipulator.stopIntake();\n }", "@Override\n public void updateWithoutObservations(SensingDevice sensingDevice) {\n\n }", "private void deviceUpdated() {\n if (!mIsCreate) {\n mSyncthingService.getApi().editDevice(mDevice, getActivity(), this);\n }\n }", "public void clear() {\n mLeDevices.clear();\n }", "public void resetDevice() throws FTD2XXException {\n ensureFTStatus(ftd2xx.FT_ResetDevice(ftHandle));\n }", "protected void reset() {\r\n super.reset();\r\n this.ring = null;\r\n }", "public void setSafeSetPageDevice(boolean value) {\n this.safeSetPageDevice = value;\n }", "public void disabledInit()\n {\n //cam.stopCapture();\n m_USBVCommand.start();\n }", "public boolean isSetDeviceName() {\n return this.deviceName != null;\n }", "@Override\n\tpublic boolean isHardware(){\n\t\treturn false;\n\t}", "public void reset(){\n this.context.msr.setReadyForInput(false);\n emptyAllInputBuffers();\n emptyAllOutputBuffers();\n emptyEngineersConsoleBuffer();\n }", "protected void init() {\n try {\n updateDevice();\n } catch (Exception e) {\n RemoteHomeManager.log.error(42,e);\n }\n }", "@Override\n\tpublic boolean isBusy() throws DeviceException {\n\t\treturn false;\n\t}", "@Override\n public boolean isNullSigActive() {\n if (!isShutDown()) {\n for (Mounted m : getMisc()) {\n EquipmentType type = m.getType();\n if (type.hasFlag(MiscType.F_NULLSIG) && m.curMode().equals(\"On\") && m.isReady()) {\n return true;\n }\n }\n }\n return false;\n }", "protected void onHardReset() {\n\t\tonReset();\n\t}", "public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> setDevice(\n org.thethingsnetwork.management.proto.HandlerOuterClass.Device request);", "protected boolean processBSetupMode(boolean entered){return false;}", "@Override\n public void toggleFill() {\n // empty bc mock\n }", "private void initHardware(){\n }", "private void fullRepaired() { //full life\n this.active = true;\n this.damageState = DamageState.FULL;\n }", "public boolean isSetDeviceType() {\n return this.DeviceType != null;\n }", "public void normalMode() {\n this.brokenPumpNo = -1;\n if (howManyBrokenUnits()) {\n this.mode = State.EMERGENCY_STOP;\n this.outgoing.send(new Message(MessageKind.MODE_m, Mailbox.Mode.EMERGENCY_STOP));\n emergencyStopMode();\n return;\n }\n if (steamFailure()) { // if steam failure go to degraded mode\n this.mode = State.DEGRADED;\n this.outgoing.send(new Message(MessageKind.MODE_m, Mailbox.Mode.DEGRADED));\n this.outgoing.send(new Message(MessageKind.STEAM_FAILURE_DETECTION));\n this.waterLevel = this.levelMessage.getDoubleParameter();\n degradedMode();\n return;\n }\n\n // check for water-level detection failure\n if (waterLevelFailure() || this.levelMessage.getDoubleParameter() == 0) {\n // failure, goes to rescue mode\n this.outgoing.send(new Message(MessageKind.LEVEL_FAILURE_DETECTION));\n this.outgoing.send(new Message(MessageKind.MODE_m, Mailbox.Mode.RESCUE));\n this.mode = State.RESCUE;\n this.prevRescueMode = State.NORMAL;\n this.steamLevel = this.steamMessage.getDoubleParameter();\n rescueMode();\n return;\n }\n if (nearMaxMin() || overMax()) { // checks if water is near or over the max\n this.outgoing.send(new Message(MessageKind.MODE_m, Mailbox.Mode.EMERGENCY_STOP));\n this.mode = State.EMERGENCY_STOP;\n emergencyStopMode();\n return;\n }\n int no = pumpFailure();\n if (no != -1) { // check for any pump failure\n this.brokenPumpNo = no;\n this.mode = State.DEGRADED;\n this.prevDegradedMode = State.NORMAL;\n this.outgoing.send(new Message(MessageKind.MODE_m, Mailbox.Mode.DEGRADED));\n this.outgoing.send(new Message(MessageKind.PUMP_FAILURE_DETECTION_n, no));\n degradedMode();\n return;\n }\n no = pumpControllerFailure();\n if (no != -1) { // check for any controller failure\n this.mode = State.DEGRADED;\n this.prevDegradedMode = State.NORMAL;\n this.outgoing.send(new Message(MessageKind.MODE_m, Mailbox.Mode.DEGRADED));\n this.outgoing.send(new Message(MessageKind.PUMP_CONTROL_FAILURE_DETECTION_n, no));\n degradedMode();\n return;\n }\n\n // all error messages checked. Can run normal mode as per usual.\n this.outgoing.send(new Message(MessageKind.MODE_m, Mailbox.Mode.NORMAL));\n this.waterLevel = this.levelMessage.getDoubleParameter();\n this.steamLevel = this.steamMessage.getDoubleParameter();\n int noOfPumps = estimatePumps(this.steamMessage.getDoubleParameter(),\n this.levelMessage.getDoubleParameter());\n turnOnPumps(noOfPumps); // pump water in\n\n if (this.levelMessage.getDoubleParameter() < this.configuration.getMinimalNormalLevel()) {\n\n noOfPumps = estimatePumps(this.steamMessage.getDoubleParameter(),\n this.levelMessage.getDoubleParameter());\n turnOnPumps(noOfPumps);\n }\n if (this.levelMessage.getDoubleParameter() > this.configuration.getMaximalNormalLevel()) {\n // if it goes above max normal level\n noOfPumps = estimatePumps(this.steamMessage.getDoubleParameter(),\n this.levelMessage.getDoubleParameter());\n turnOnPumps(noOfPumps);\n }\n\n }", "@Override\n public boolean isProgrammable() {\n return false;\n }", "protected void initialize()\n\t{\n\t\tenable = SmartDashboard.getBoolean(RobotMap.EnableRespoolWinch);\n\t}", "private void validateBleSupport() {\n if (!getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE)) {\n Snackbar.make(txtStatus, \"No LE Support.\", Snackbar.LENGTH_LONG).show();\n } else {\n\n /*\n * We need to enforce that Bluetooth is first enabled, and take the\n * user to settings to enable it if they have not done so.\n */\n BluetoothAdapter mBluetoothAdapter = BluetoothAdapter\n .getDefaultAdapter();\n\n if (mBluetoothAdapter == null || !mBluetoothAdapter.isEnabled()) {\n Log.d(TAG, \"onResume: Bluetooth is disabled\");\n //Bluetooth is disabled, request enabling it\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivity(enableBtIntent);\n }\n }\n\n }", "@java.lang.Override\n public boolean hasDeviceSettings() {\n return deviceSettings_ != null;\n }", "public void forceUpdate() {\n if (mLocalManager == null) {\n Log.e(TAG, \"forceUpdate() Bluetooth is not supported on this device\");\n return;\n }\n if (BluetoothAdapter.getDefaultAdapter().isEnabled()) {\n final Collection<CachedBluetoothDevice> cachedDevices =\n mLocalManager.getCachedDeviceManager().getCachedDevicesCopy();\n for (CachedBluetoothDevice cachedBluetoothDevice : cachedDevices) {\n update(cachedBluetoothDevice);\n }\n } else {\n removeAllDevicesFromPreference();\n }\n }", "boolean hasDevice();", "public void stopDevice(){\n //Stop the device.\n super.stopDevice();\n }", "private boolean checkBatteryLevelOK() {\n return true;\n }", "public void genRepCheck(){\r\n if (tx_cb.getValue() == null || paModules.getValue() == null || mainExciterSW.getValue() == null\r\n || filter.getValue() == null || switchPatch.getValue() == null || testLoad.getValue() == null\r\n || mainAntFeed.getValue() == null)\r\n genRep.setDisable(true);\r\n else\r\n genRep.setDisable(false);\r\n }", "public boolean reset()\n {\n\n \t// Resetting the videocard will also reset all submodules\n videocard.reset();\n\n // Set all tiles to not need updating\n for (int y = 0; y < (initialScreenHeight / VideoCard.Y_TILESIZE); y++)\n for (int x = 0; x < (initialScreenWidth / VideoCard.X_TILESIZE); x++)\n videocard.setTileUpdate(x, y, false);\n\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" Module has been reset\");\n\n return true;\n }", "@Override\n protected void end() {\n drive.setEnabled(false);\n drive.setLeftPower(0);\n drive.setRightPower(0);\n }", "private void resetSense() {\r\n\t\tArrays.fill(this.senseBytes, (byte)0x00);\r\n\t\tthis.updateUnitStatus();\r\n\t}", "public void hold() throws DeviceException {\n \t\ttry {\n \t\t\tcontroller.caput(holdChannel, 1, 2.0);\n \t\t} catch (Throwable e) {\n \t\t\tthrow new DeviceException(\"failed to stop or hole the JOB\", e);\n \t\t}\n \t}", "public void initDevice() {\n myBluetoothAdapter = android.bluetooth.BluetoothAdapter.getDefaultAdapter();\n pairedDevices = myBluetoothAdapter.getBondedDevices();\n }", "@Override\n protected void validateRegisteredDevice(MultifactorDevice device) throws Exception {\n assertThat(device.getBackup(), is(Boolean.TRUE));\n }", "private void ensureBluetoothIsEnabled(){\r\n\t\t//if Bluetooth is not enabled, enable it now\r\n\t\tif (!mBtAdapter.isEnabled()) { \t\t\r\n \t enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\r\n \t startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);\r\n \t}\r\n\t}", "public void reset() {\n actionFlag = true;\n messageFlag = false;\n self.getInputBuffer().clear();\n self.getOutputBuffer().clear();\n self.setCurrentProduct(null);\n self.resetCounters();\n self.getServiceManager().init(getRandom(), template);\n syncUpdate();\n }", "@Test\n public void dualModeDeviceAnyNotConverted() throws Exception {\n mResources.setBoolean(R.bool.config_wifi_convert_apband_5ghz_to_any, true);\n\n /* Initialize WifiApConfigStore with default configuration. */\n WifiApConfigStore store = new WifiApConfigStore(\n mContext, mLooper.getLooper(), mBackupManagerProxy, mFrameworkFacade,\n mApConfigFile.getPath());\n verifyDefaultApConfig(store.getApConfiguration(), TEST_DEFAULT_AP_SSID);\n\n /* Update with a valid configuration. */\n WifiConfiguration expectedConfig = setupApConfig(\n \"ConfiguredAP\", /* SSID */\n \"randomKey\", /* preshared key */\n KeyMgmt.WPA_EAP, /* key management */\n WifiConfiguration.AP_BAND_ANY, /* AP band */\n 40, /* AP channel */\n false /* Hidden SSID */);\n store.setApConfiguration(expectedConfig);\n verify(mBackupManagerProxy).notifyDataChanged();\n verifyApConfig(expectedConfig, store.getApConfiguration());\n }", "void onRestoreDevices() {\n synchronized (mConnectedDevices) {\n for (int i = 0; i < mConnectedDevices.size(); i++) {\n DeviceInfo di = mConnectedDevices.valueAt(i);\n AudioSystem.setDeviceConnectionState(\n di.mDeviceType,\n AudioSystem.DEVICE_STATE_AVAILABLE,\n di.mDeviceAddress,\n di.mDeviceName,\n di.mDeviceCodecFormat);\n }\n }\n }", "public void onPrepareDevice(ConnectDevice device);", "private boolean validDevice(AcceleratorNode nodeDev) {\n// for (Class<?> typeValidDev : this.arrValidDevTypes) {\n// if (nodeDev.getClass() == typeValidDev)\n// return true;\n// }\n// \n// return false;\n \n return true;\n }", "@Override\n\tpublic boolean gcClrLTNotify(BluetoothDevice device) {\n\t\treturn false;\n\t}", "@Override\n public boolean isSetupToBeDrawn() {\n return !(designParameters == null || slabStrip == null || graphicsContext == null || colour == null || slabImageScale == 0);\n }", "protected void reInitialize() {\r\n currentPos.reInitialize();\r\n motorState.reInitialize();\r\n armState = KSGripperStates.ARM_UP;\r\n gripperState = KSGripperStates.GRIP_OPEN;\r\n objPresent = false;\r\n objHeld = false;\r\n resistivity = 0;\r\n }", "@Override\n protected void initialize() {\n ramper.reset();\n Robot.toteLifterSubsystem.setGateState(GateState.OPEN);\n }", "public device() {\n\t\tsuper();\n\t}", "protected DynamicDeviceGroup() {\n\t}", "@Override\n public void enableDisableDiscrete() {\n // empty bc mock\n }", "@Override\n public void askPermission() {\n if (!getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE)) {\n final AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Uff\");\n builder.setMessage(\"This device does not support Bluetooth LE. Buy another phone.\");\n builder.setPositiveButton(android.R.string.ok, null);\n finish();\n }\n\n //Checking if the Bluetooth is on/off\n BluetoothAdapter mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n if (mBluetoothAdapter == null) {\n // Device does not support Bluetooth\n final AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Uff\");\n builder.setMessage(\"This device does not support Bluetooth.\");\n builder.setPositiveButton(android.R.string.ok, null);\n } else {\n if (!mBluetoothAdapter.isEnabled()) {\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, 2);\n }\n }\n\n }", "@Override\r\n\tpublic void wipeWindShield() {\n\t\t\r\n\t}", "private void checkLocationAndBluetoothPermissions() {\n if (!getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE)) {\n Toast.makeText(this, \"This phone does not support Bluetooth 4.0. Bubble Hub Application requires Bluetooth 4.0 in order to operate.\", Toast.LENGTH_SHORT).show();\n finish();\n }\n\n if(!BluetoothAdapter.getDefaultAdapter().isEnabled()) { //if BT is present but is turned off\n CustomLogger.log(\"MainActivity: onCreate: Ask user to turn on BT.\");\n\n //Ask to the user turn the bluetooth on\n Intent turnBTon = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(turnBTon, 1);\n }\n\n if (Build.VERSION.SDK_INT >= 23) {\n if (!haveLocationPermissions()) {\n mDeviceList.setVisibility(View.GONE);\n mTopTextLinearLayout.setVisibility(View.GONE);\n mLocationPermissionWarningLinearLayout.setVisibility(View.VISIBLE);\n CustomLogger.log(\"MainActivity: onCreate: missing location permissions\");\n requestLocationPermission(this, LOCATION_PERMISSION_REQUEST_CODE);\n } else {\n CustomLogger.log(\"MainActivity: onCreate: got location permissions\");\n mLocationPermissionWarningLinearLayout.setVisibility(View.GONE);\n mDeviceList.setVisibility(View.VISIBLE);\n mTopTextLinearLayout.setVisibility(View.VISIBLE);\n }\n }\n }", "@Override\n public void setUp() {\n mAreHifiSensorsSupported = getContext().getPackageManager().hasSystemFeature(\n PackageManager.FEATURE_HIFI_SENSORS);\n if (mAreHifiSensorsSupported) {\n mSensorManager =\n (SensorManager) getContext().getSystemService(Context.SENSOR_SERVICE);\n }\n }", "@Override\n\tpublic void reset() {\n\t\tthis.prepare();\n\t\tsuper.reset();\n\t}", "@Override\n public void init() {\n telemetry.addData(\"Status\", \"Initializing\"); //display on the drivers phone that its working\n\n FLM = hardwareMap.get(DcMotor.class, \"FLM\"); //Go into the config and get the device named \"FLM\" and assign it to FLM\n FRM = hardwareMap.get(DcMotor.class, \"FRM\"); //device name doesn't have to be the same as the variable name\n BLM = hardwareMap.get(DcMotor.class, \"BLM\"); //DcMotor.class because that is what the object is\n BRM = hardwareMap.get(DcMotor.class, \"BRM\");\n\n BigSuck = hardwareMap.get(DcMotor.class, \"BigSUCK\");\n SmallSuck = hardwareMap.get(DcMotor.class, \"SmallSUCK\");\n SmallSuck.setDirection(DcMotor.Direction.REVERSE);\n \n UpLift = hardwareMap.get(DcMotor.class, \"LIFT\");\n UpLift.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n UpLift.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n\n //Make it so we don't have to add flip the sign of the power we are setting to half the motors\n //FRM.setDirection(DcMotor.Direction.REVERSE); //Run the right side of the robot backwards\n FLM.setDirection(DcMotor.Direction.REVERSE);\n BRM.setDirection(DcMotor.Direction.REVERSE); //the right motors are facing differently than the left handed ones\n\n FLM.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n FRM.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n BLM.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n BRM.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n\n DragArm = hardwareMap.servo.get(\"drag_arm\");\n DragArm.setDirection(Servo.Direction.REVERSE);\n DragArm.setPosition(DragArmRestPosition);\n\n LiftGrab = hardwareMap.servo.get(\"GRAB\");\n LiftGrab.setPosition(LiftGrabRestPosition);\n\n LiftSwivel = hardwareMap.servo.get(\"SWIVEL\");\n LiftSwivel.setPosition(LiftSwivelRestPosition);\n\n Push = hardwareMap.get(Servo.class, \"PUSH\");\n Push.setDirection(Servo.Direction.FORWARD);\n Push.setPosition(PushRestPosition);\n\n telemetry.addData(\"Status\", \"Initialized\");\n telemetry.update();\n }", "private void setDeviceVendor() {\n addToMobileContext(Parameters.DEVICE_MANUFACTURER, android.os.Build.MANUFACTURER);\n }", "private HardwareDeviceRental(){\r\n\r\n this.initializeComponent();\r\n hardwares= new ArrayList<HardwareDevice>();\r\n\r\n }", "public static void checkAndDisableFramework (Context context) {\n PackageManager pm = context.getPackageManager();\n ComponentName [] frameworkComponents = {new ComponentName(context, BrightnessActivity.class),\n new ComponentName(context, CellularDataActivity.class),\n new ComponentName(context, BackgroundDataActivity.class)};\n ComponentName processorSpeedComponent = new ComponentName(context, ProcessorSpeedActivity.class);\n\n try {\n pm.getPackageInfo(SMART_ACTIONS_FRAMEWORK, PackageManager.GET_ACTIVITIES);\n updateComponentStates(pm, frameworkComponents, PackageManager.COMPONENT_ENABLED_STATE_ENABLED);\n\n if (isFrameworkOld(context)) {\n //FW apk is old. Disable processor speed.\n pm.setComponentEnabledSetting(processorSpeedComponent,\n PackageManager.COMPONENT_ENABLED_STATE_DISABLED, PackageManager.DONT_KILL_APP);\n } else {\n pm.setComponentEnabledSetting(processorSpeedComponent,\n PackageManager.COMPONENT_ENABLED_STATE_ENABLED, PackageManager.DONT_KILL_APP);\n }\n\n } catch (NameNotFoundException e) {\n Log.w(TAG, \"Smart Actions framework not present on the device\");\n updateComponentStates(pm, frameworkComponents, PackageManager.COMPONENT_ENABLED_STATE_DISABLED);\n pm.setComponentEnabledSetting(processorSpeedComponent,\n PackageManager.COMPONENT_ENABLED_STATE_DISABLED, PackageManager.DONT_KILL_APP);\n }\n }", "public void degradedMode() {\n\n // if failure of water-level measuring unit got to rescueMode()\n if (waterLevelFailure()) {\n this.outgoing.send(new Message(MessageKind.LEVEL_FAILURE_DETECTION));\n this.outgoing.send(new Message(MessageKind.MODE_m, Mailbox.Mode.RESCUE));\n this.mode = State.RESCUE;\n this.prevRescueMode = State.DEGRADED;\n rescueMode();\n return;\n }\n // if water level risks reaching M1 or M2 go to emergencyStopMode()\n if (nearMaxMin()) {\n this.outgoing.send(new Message(MessageKind.MODE_m, Mailbox.Mode.EMERGENCY_STOP));\n this.mode = State.EMERGENCY_STOP;\n emergencyStopMode();\n return;\n }\n\n for (int i = 0; i < this.incoming.size(); i++) { // check for fixed messages\n Message msg = this.incoming.read(i);\n if (msg.getKind().equals(MessageKind.PUMP_REPAIRED_n)) {\n int pumpNo = msg.getIntegerParameter();\n this.outgoing.send(new Message(MessageKind.PUMP_REPAIRED_ACKNOWLEDGEMENT_n, pumpNo));\n this.mode = this.prevDegradedMode;\n }\n if (msg.getKind().equals(MessageKind.PUMP_CONTROL_REPAIRED_n)) {\n int pumpNo = msg.getIntegerParameter();\n this.outgoing\n .send(new Message(MessageKind.PUMP_CONTROL_REPAIRED_ACKNOWLEDGEMENT_n, pumpNo));\n this.mode = this.prevDegradedMode;\n\n }\n if (msg.getKind().equals(MessageKind.STEAM_REPAIRED)) {\n this.outgoing.send(new Message(MessageKind.STEAM_REPAIRED_ACKNOWLEDGEMENT));\n this.mode = this.prevDegradedMode;\n }\n }\n\n if (this.mode.equals(State.NORMAL)) {\n this.brokenPumpNo = -1;\n this.outgoing.send(new Message(MessageKind.MODE_m, Mailbox.Mode.NORMAL));\n return;\n } else if (this.mode.equals(State.READY)) {\n this.brokenPumpNo = -1;\n this.outgoing.send(new Message(MessageKind.MODE_m, Mailbox.Mode.INITIALISATION));\n return;\n } else { // pump water in\n this.waterLevel = this.levelMessage.getDoubleParameter();\n this.outgoing.send(new Message(MessageKind.MODE_m, Mailbox.Mode.DEGRADED));\n this.mode = State.DEGRADED;\n int noOfPumps = estimatePumps(this.steamLevel, this.waterLevel);\n turnOnPumps(noOfPumps);\n }\n\n // if transmissionFailure go to emergencyStopMode()\n }", "protected void initialize() {\n\t\tsquaredInputs = false;\n\t\t// SmartDashboard.putString(\"DB/LED 0\", \"TeleOpDrive is init\");\n\t}", "public void beginMSRSwipe() throws DeviceException;", "public void resetEye() {\n\t\tdetectionModel.getPrimaryDataModel().getExpressiveDataModel().setBlink(false);\n\t\tdetectionModel.getPrimaryDataModel().getExpressiveDataModel().setWinkLeft(false);\n\t\tdetectionModel.getPrimaryDataModel().getExpressiveDataModel().setWinkRight(false);\n\t\tdetectionModel.getPrimaryDataModel().getExpressiveDataModel().setLookLeft(false);\n\t\tdetectionModel.getPrimaryDataModel().getExpressiveDataModel().setLookRight(false);\n\t}", "private void checkBleSupportAndInitialize() {\n Log.d(TAG, \"checkBleSupportAndInitialize: \");\n // Use this check to determine whether BLE is supported on the device.\n if (!getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE)) {\n Log.d(TAG,\"device_ble_not_supported \");\n Toast.makeText(this, R.string.device_ble_not_supported,Toast.LENGTH_SHORT).show();\n return;\n }\n // Initializes a Blue tooth adapter.\n final BluetoothManager bluetoothManager = (BluetoothManager) context.getSystemService(Context.BLUETOOTH_SERVICE);\n mBluetoothAdapter = bluetoothManager.getAdapter();\n\n if (mBluetoothAdapter == null) {\n // Device does not support Blue tooth\n Log.d(TAG, \"device_ble_not_supported \");\n Toast.makeText(this,R.string.device_ble_not_supported, Toast.LENGTH_SHORT).show();\n return;\n }\n\n //打开蓝牙\n if (!mBluetoothAdapter.isEnabled()) {\n Log.d(TAG, \"open bluetooth \");\n bluetoothUtils.openBluetooth();\n }\n }", "public void resetLowerface() {\n\t\tdetectionModel.getPrimaryDataModel().getExpressiveDataModel().setSmile(0);\n\t\tdetectionModel.getPrimaryDataModel().getExpressiveDataModel().setClench(0);\n\t\tdetectionModel.getPrimaryDataModel().getExpressiveDataModel().setSmirkLeft(0);\n\t\tdetectionModel.getPrimaryDataModel().getExpressiveDataModel().setSmirkRight(0);\n\t\tdetectionModel.getPrimaryDataModel().getExpressiveDataModel().setLaugh(0);\n\t}", "public void updateDeviceToView()\n {\n boolean isTLMEnable, isUIDEnable, isUrlEnable;\n KBCfgCommon commonCfg = (KBCfgCommon) mBeacon.getConfigruationByType(KBCfgType.KBConfigTypeCommon);\n if (commonCfg != null) {\n\n //print basic capibility\n Log.v(LOG_TAG, \"support iBeacon:\" + commonCfg.isSupportIBeacon());\n Log.v(LOG_TAG, \"support eddy url:\" + commonCfg.isSupportEddyURL());\n Log.v(LOG_TAG, \"support eddy tlm:\" + commonCfg.isSupportEddyTLM());\n Log.v(LOG_TAG, \"support eddy uid:\" + commonCfg.isSupportEddyUID());\n Log.v(LOG_TAG, \"support ksensor:\" + commonCfg.isSupportKBSensor());\n Log.v(LOG_TAG, \"beacon has button:\" + commonCfg.isSupportButton());\n Log.v(LOG_TAG, \"beacon can beep:\" + commonCfg.isSupportBeep());\n Log.v(LOG_TAG, \"support accleration sensor:\" + commonCfg.isSupportAccSensor());\n Log.v(LOG_TAG, \"support humidify sensor:\" + commonCfg.isSupportHumiditySensor());\n Log.v(LOG_TAG, \"support max tx power:\" + commonCfg.getMaxTxPower());\n Log.v(LOG_TAG, \"support min tx power:\" + commonCfg.getMinTxPower());\n\n //get support trigger\n Log.v(LOG_TAG, \"support trigger\" + commonCfg.getTrigCapability());\n\n //device model\n mBeaconModel.setText(commonCfg.getModel());\n\n //device version\n mBeaconVersion.setText(commonCfg.getVersion());\n\n //current advertisment type\n mEditBeaconName.setText(commonCfg.getAdvTypeString());\n\n //advertisment period\n mEditBeaconAdvPeriod.setText(String.valueOf(commonCfg.getAdvPeriod()));\n\n //beacon tx power\n mEditBeaconTxPower.setText(String.valueOf(commonCfg.getTxPower()));\n\n //beacon name\n mEditBeaconName.setText(String.valueOf(commonCfg.getName()));\n\n //check if Eddy TLM advertisement enable\n isTLMEnable = ((commonCfg.getAdvType() & KBAdvType.KBAdvTypeEddyTLM) > 0);\n mCheckboxTLM.setChecked(isTLMEnable);\n\n //check if Eddy UID advertisement enable\n isUIDEnable= ((commonCfg.getAdvType() & KBAdvType.KBAdvTypeEddyUID) > 0);\n mCheckboxUID.setChecked(isUIDEnable);\n mUidLayout.setVisibility(isUIDEnable? View.VISIBLE: View.GONE);\n\n //check if Eddy URL advertisement enable\n isUrlEnable= ((commonCfg.getAdvType() & KBAdvType.KBAdvTypeEddyURL) > 0);\n mCheckBoxURL.setChecked(isUrlEnable);\n mUrlLayout.setVisibility(isUrlEnable? View.VISIBLE: View.GONE);\n\n //check if iBeacon advertisment enable\n Log.v(LOG_TAG, \"iBeacon advertisment enable:\" + ((commonCfg.getAdvType() & KBAdvType.KBAdvTypeIBeacon) > 0));\n\n //check if KSensor advertisment enable\n Log.v(LOG_TAG, \"iBeacon advertisment enable:\" + ((commonCfg.getAdvType() & KBAdvType.KBAdvTypeSensor) > 0));\n\n //check TLM adv interval\n Log.v(LOG_TAG, \"TLM adv interval:\" + commonCfg.getTLMAdvInterval());\n }\n\n //get eddystone URL paramaters\n KBCfgEddyURL beaconUrlCfg = (KBCfgEddyURL) mBeacon.getConfigruationByType(KBCfgType.KBConfigTypeEddyURL);\n if (beaconUrlCfg != null) {\n mEditEddyURL.setText(beaconUrlCfg.getUrl());\n }\n\n //get eddystone UID information\n KBCfgEddyUID beaconUIDCfg = (KBCfgEddyUID) mBeacon.getConfigruationByType(KBCfgType.KBConfigTypeEddyUID);\n if (beaconUIDCfg != null) {\n mEditEddyNID.setText(beaconUIDCfg.getNid());\n mEditEddySID.setText(beaconUIDCfg.getSid());\n }\n\n clearChangeTag();\n }", "private void checkUSBConnectionOnStartUp(){\n //Notification and icon\n NotificationCompat.Builder builder = new NotificationCompat.Builder(this, \"765\");\n Intent chargingStatus = registerReceiver(powerConnectionReceiver, filter);\n int plugged = chargingStatus.getIntExtra(BatteryManager.EXTRA_PLUGGED, -1);\n isPowerConnected = plugged == BatteryManager.BATTERY_PLUGGED_AC || plugged == BatteryManager.BATTERY_PLUGGED_USB;\n if(SensorService.isPowerConnected){\n builder.setContentTitle(\"Earthquake Detection Enabled\")\n .setSmallIcon(R.drawable.ic_earthquake)\n .setAutoCancel(true);\n // Main Activity icon change: StateBroadcast\n sendBroadcast(new Intent().setAction(EARTHQUAKE_STATE));\n }\n else{\n builder.setContentTitle(\"Fall Detection Enabled\")\n .setSmallIcon(R.drawable.ic_falling_man)\n .setAutoCancel(true);\n // Main Activity icon change: StateBroadcast\n sendBroadcast(new Intent().setAction(STANDING_STATE));\n }\n notificationManager = (NotificationManager)getSystemService(Context.NOTIFICATION_SERVICE);\n notificationManager.notify(1, builder.build());\n }", "protected abstract boolean reset();", "private void ensureBluetoothEnabled() {\n if (!mBluetoothAdapter.isEnabled()) {\n Intent enableBtIntent = new Intent(\n BluetoothAdapter.ACTION_REQUEST_ENABLE);\n main.startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);\n } else {\n connectToBluetoothDevice(\"00:06:66:64:42:97\"); // Hard coded MAC of the BT-device.\n Log.i(tag, \"Connected to device!\");\n }\n }", "@Override\n\t\tprotected void reset()\n\t\t{\n\t\t}", "public Boolean isMSROnline() throws DeviceException;", "private void updatePowerState() {\n final boolean mustNotify;\n boolean mustInitialize = false;\n synchronized (mLock) {\n mPendingUpdatePowerStateLocked = false;\n if (mPendingRequestLocked == null) {\n return; // wait until first actual power request\n }\n\n if (mPowerRequest == null) {\n mPowerRequest = new DisplayPowerRequest(mPendingRequestLocked);\n mWaitingForNegativeProximity = mPendingWaitForNegativeProximityLocked;\n mPendingRequestChangedLocked = false;\n mustInitialize = true;\n } else if (mPendingRequestChangedLocked) {\n mPowerRequest.copyFrom(mPendingRequestLocked);\n mWaitingForNegativeProximity |= mPendingWaitForNegativeProximityLocked;\n mPendingRequestChangedLocked = false;\n mDisplayReadyLocked = false;\n }\n\n mustNotify = !mDisplayReadyLocked;\n }\n\n // Initialize things the first time the power state is changed.\n if (mustInitialize) {\n initialize();\n }\n\n // Clear a request to wait for negative proximity if needed.\n if (mPowerRequest.screenState == DisplayPowerRequest.SCREEN_STATE_OFF\n || mProximity == PROXIMITY_NEGATIVE\n || mProximitySensor == null) {\n mWaitingForNegativeProximity = false;\n }\n\n // Turn on the proximity sensor if needed.\n if (mProximitySensor != null) {\n setProximitySensorEnabled(mPowerRequest.useProximitySensor\n || mWaitingForNegativeProximity);\n if (mProximitySensorEnabled && mProximity == PROXIMITY_POSITIVE) {\n mScreenOffBecauseOfProximity = true;\n setScreenOn(false);\n } else if (mScreenOffBecauseOfProximity) {\n mScreenOffBecauseOfProximity = false;\n sendOnProximityNegative();\n }\n }\n\n // Turn on the light sensor if needed.\n if (mLightSensor != null) {\n setLightSensorEnabled(mPowerRequest.useAutoBrightness\n && wantScreenOn(mPowerRequest.screenState));\n }\n\n // Set the screen brightness.\n if (mPowerRequest.screenState == DisplayPowerRequest.SCREEN_STATE_DIM) {\n // Screen is dimmed. Overrides everything else.\n animateScreenBrightness(mScreenBrightnessDimConfig, BRIGHTNESS_RAMP_RATE_FAST);\n mUsingScreenAutoBrightness = false;\n } else if (mPowerRequest.screenState == DisplayPowerRequest.SCREEN_STATE_BRIGHT) {\n if (mScreenAutoBrightness >= 0 && mLightSensorEnabled) {\n // Use current auto-brightness value.\n animateScreenBrightness(\n Math.max(mScreenAutoBrightness, mScreenBrightnessDimConfig),\n mUsingScreenAutoBrightness ? BRIGHTNESS_RAMP_RATE_SLOW :\n BRIGHTNESS_RAMP_RATE_FAST);\n mUsingScreenAutoBrightness = true;\n } else {\n // Light sensor is disabled or not ready yet.\n // Use the current brightness setting from the request, which is expected\n // provide a nominal default value for the case where auto-brightness\n // is not ready yet.\n animateScreenBrightness(\n Math.max(mPowerRequest.screenBrightness, mScreenBrightnessDimConfig),\n BRIGHTNESS_RAMP_RATE_FAST);\n mUsingScreenAutoBrightness = false;\n }\n } else {\n // Screen is off. Don't bother changing the brightness.\n mUsingScreenAutoBrightness = false;\n }\n\n // Animate the screen on or off.\n if (!mScreenOffBecauseOfProximity) {\n if (wantScreenOn(mPowerRequest.screenState)) {\n // Want screen on.\n // Wait for previous off animation to complete beforehand.\n // It is relatively short but if we cancel it and switch to the\n // on animation immediately then the results are pretty ugly.\n if (!mElectronBeamOffAnimator.isStarted()) {\n setScreenOn(true);\n if (!mElectronBeamOnAnimator.isStarted()) {\n if (mPowerState.getElectronBeamLevel() == 1.0f) {\n mPowerState.dismissElectronBeam();\n } else if (mPowerState.prepareElectronBeam(true)) {\n mElectronBeamOnAnimator.start();\n } else {\n mElectronBeamOnAnimator.end();\n }\n }\n }\n } else {\n // Want screen off.\n // Wait for previous on animation to complete beforehand.\n if (!mElectronBeamOnAnimator.isStarted()) {\n if (!mElectronBeamOffAnimator.isStarted()) {\n if (mPowerState.getElectronBeamLevel() == 0.0f) {\n setScreenOn(false);\n } else if (mPowerState.prepareElectronBeam(false)\n && mPowerState.isScreenOn()) {\n mElectronBeamOffAnimator.start();\n } else {\n mElectronBeamOffAnimator.end();\n }\n }\n }\n }\n }\n\n // Report whether the display is ready for use.\n // We mostly care about the screen state here, ignoring brightness changes\n // which will be handled asynchronously.\n if (mustNotify\n && !mElectronBeamOnAnimator.isStarted()\n && !mElectronBeamOffAnimator.isStarted()\n && mPowerState.waitUntilClean(mCleanListener)) {\n synchronized (mLock) {\n if (!mPendingRequestChangedLocked) {\n mDisplayReadyLocked = true;\n }\n }\n sendOnStateChanged();\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n mCheckBt = false;\n if (requestCode == REQUEST_ENABLE_BT && resultCode != RESULT_OK) {\n// mScanButton.setEnabled(false);\n Toast.makeText(this, getString(R.string.bluetooth_not_enabled), Toast.LENGTH_LONG).show();\n }\n }", "public void initializationMode() {\n int noOfPumpsOn;\n if (this.steamMessage.getDoubleParameter() != 0) { // steam measuring device is defective\n this.mode = State.EMERGENCY_STOP;\n this.outgoing.send(new Message(MessageKind.MODE_m, Mailbox.Mode.EMERGENCY_STOP));\n return;\n }\n\n // check for water level detection failure\n if (waterLevelFailure()) {\n this.outgoing.send(new Message(MessageKind.LEVEL_FAILURE_DETECTION));\n this.outgoing.send(new Message(MessageKind.MODE_m, Mailbox.Mode.EMERGENCY_STOP));\n this.mode = State.EMERGENCY_STOP;\n return;\n }\n\n this.waterLevel = this.levelMessage.getDoubleParameter();\n this.steamLevel = this.steamMessage.getDoubleParameter();\n\n // checks if water level is ready to go to normal\n if (this.levelMessage.getDoubleParameter() > this.configuration.getMinimalNormalLevel()\n && this.levelMessage.getDoubleParameter() < this.configuration.getMaximalNormalLevel()) {\n\n turnOnPumps(-1);\n this.outgoing.send(new Message(MessageKind.PROGRAM_READY));\n return;\n }\n if (this.levelMessage.getDoubleParameter() > this.configuration.getMaximalNormalLevel()) {\n // empty\n this.outgoing.send(new Message(MessageKind.VALVE));\n this.openValve = true;\n } else if (this.levelMessage.getDoubleParameter() < this.configuration\n .getMinimalNormalLevel()) { // fill\n\n if (this.openValve) { // if valve is open, shuts valve\n this.outgoing.send(new Message(MessageKind.VALVE));\n this.openValve = false;\n }\n noOfPumpsOn = estimatePumps(this.steamMessage.getDoubleParameter(),\n this.levelMessage.getDoubleParameter());\n turnOnPumps(noOfPumpsOn);\n }\n\n }", "public void gripReset() {\n LtUtil.log_d(\"GripSensorTestTouchIc\", \"gripReset\", \"gripReset\");\n this.RESET_FLUG = false;\n Kernel.write(Kernel.GRIP_TOUCH_SENSOR_RESET, EgisFingerprint.MAJOR_VERSION);\n }", "public void testGetSimOperator_unavailableDevice() {\n mMockIDevice = EasyMock.createMock(IDevice.class);\n EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.UNAUTHORIZED);\n EasyMock.expect(mMockIDevice.getSerialNumber()).andReturn(\"serial\");\n EasyMock.replay(mMockIDevice, mMockStateMonitor, mMockDvcMonitor);\n assertNull(mTestDevice.getSimOperator());\n EasyMock.verify(mMockIDevice, mMockStateMonitor, mMockDvcMonitor);\n }", "protected void InitValuables() {\n\t\tsuper.InitValuables();\n\t\tbScreenOnFlag = false;\n\t}" ]
[ "0.63480014", "0.62842155", "0.60755575", "0.6021842", "0.59096867", "0.5862699", "0.58338207", "0.5747195", "0.57426697", "0.568763", "0.56243587", "0.5621429", "0.5596975", "0.5551722", "0.5543164", "0.5542218", "0.5513334", "0.54900485", "0.54782015", "0.5466333", "0.5453686", "0.54471356", "0.54455745", "0.5440614", "0.54303694", "0.5428026", "0.5420977", "0.5408269", "0.5406531", "0.5405991", "0.53950626", "0.5393796", "0.53892255", "0.53763974", "0.5372556", "0.53581464", "0.53504753", "0.5349874", "0.53360736", "0.5332171", "0.531422", "0.5313009", "0.53095204", "0.53085583", "0.5305402", "0.5300434", "0.53002065", "0.5293891", "0.5290237", "0.5277594", "0.5271596", "0.52705735", "0.526583", "0.5263259", "0.5262205", "0.52593654", "0.52553785", "0.5253656", "0.52527654", "0.525148", "0.5246005", "0.5237112", "0.52347356", "0.52318424", "0.5231129", "0.5220715", "0.5218352", "0.5216246", "0.5211569", "0.52055687", "0.5203841", "0.5182399", "0.5179375", "0.5175457", "0.51745874", "0.51735044", "0.51732254", "0.5171388", "0.516916", "0.5168823", "0.51624745", "0.51565784", "0.514615", "0.5144833", "0.51427674", "0.5140626", "0.51360786", "0.5132887", "0.51318717", "0.51295114", "0.512785", "0.5126707", "0.5125324", "0.51176566", "0.51162994", "0.51136273", "0.51048267", "0.5103439", "0.5099696", "0.50955254", "0.509508" ]
0.0
-1
Final part of ResetItemCount method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result: Device is enabled, Specified direction is RIC_BACKWARD or RIC_FORWARD, If direction is RIC_FORWARD, CapAutoStopForwardItemCount is true, If direction is RIC_BACKWARD, CapAutoStopBackwardItemCount is true.
public void resetItemCount(int direction) throws JposException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void adjustItemCount(int direction, int count) throws JposException;", "public void reset() {\n setPrimaryDirection(-1);\n setSecondaryDirection(-1);\n flags.reset();\n setResetMovementQueue(false);\n setNeedsPlacement(false);\n }", "@Override\n public void onRewordEnable(boolean arg0, boolean arg1) {\n\n }", "@Override\r\n\tpublic int getRewardsLength() {\n\t\treturn 0;\r\n\t}", "public void resetCounts() {\n // For each item in the RecyclerView\n for(int pos = 0; pos < numItems; pos++) {\n // Reset the count variable of the item\n DataStorage.listInUse.getList().get(pos).reset();\n notifyItemChanged(pos);\n }\n }", "private void advance() {\n assert currentItemState == ItemProcessingState.COMPLETED || currentIndex == -1\n : \"moving to next but current item wasn't completed (state: \" + currentItemState + \")\";\n currentItemState = ItemProcessingState.INITIAL;\n currentIndex = findNextNonAborted(currentIndex + 1);\n retryCounter = 0;\n requestToExecute = null;\n executionResult = null;\n assert assertInvariants(ItemProcessingState.INITIAL);\n }", "protected void initialize() {\r\n if (dumper.isLimitSwitchPressed()){ \r\n dumper.stop();\r\n state = STATE_SUCCESS;\r\n }\r\n else {\r\n startPosition = dumper.getPosition();\r\n desiredPosition = startPosition + increment;\r\n dumper.backward();\r\n state = STATE_SEEK_LEFT;\r\n }\r\n }", "public void reset() {\n\t\tsuper.reset(); // reset the Reportable, too.\n\n\t\tif (_interArrivalTimeActivated && _interArrivalTally != null)\n\t\t\t_interArrivalTally.reset();\n\t\t\n\t\t// really reset the counter value?\n\t\tif (!this.isResetResistant) {\n\t\t\tthis._value = 0;\n \t this._min = this._max = 0;\n\t\t}\n\t}", "@Override\n\tpublic boolean isAdvanceable() {\n\t\treturn false;\n\t}", "public void restartCards() {\n productCards = productRepository.getCardProducts();\n ((MutableLiveData<Integer>) pairsFound).setValue(0);\n ((MutableLiveData<Integer>) pairsLeft).setValue(10);\n }", "public void reset()\n {\n setLastItem(NOTHING_HANDLED);\n for (int i = 0; i < counters.length; i++)\n {\n counters[i] = 0;\n }\n for (int j = 0; j < expected.length; j++)\n {\n expected[j] = ITEM_DONT_CARE;\n }\n }", "@Override\n public void onCardSwiped(Direction direction) {\n Log.d(TAG, \"onCardSwiped: p=\" + manager.getTopPosition() + \" d=\" + direction);\n if (direction == Direction.Right){\n //add into like list\n swipeLike();\n }\n if (direction == Direction.Top){\n //add into like list\n swipeLike();\n }\n if (direction == Direction.Left){\n\n }\n if (direction == Direction.Bottom){\n\n }\n // Paginating if top position exceed max item count\n if (manager.getTopPosition() == adapter.getItemCount() - 5){\n paginate();\n }\n\n }", "@Override\n public void reset() {\n mMoveButtonActive = true;\n mMoveButtonPressed = false;\n mFireButtonPressed = false;\n droidHitPoints = 0;\n totalKillCollectPoints = 0;\n totalCollectNum = 0;\n// mCoinCount = 0;\n// mRubyCount = 0;\n mTotalKillCollectPointsDigits[0] = 0;\n mTotalKillCollectPointsDigits[1] = -1;\n mTotalCollectNumDigits[0] = 0;\n mTotalCollectNumDigits[1] = -1;\n totalKillCollectPointsDigitsChanged = true;\n totalCollectNumDigitsChanged = true;\n// mCoinDigits[0] = 0;\n// mCoinDigits[1] = -1;\n// mRubyDigits[0] = 0;\n// mRubyDigits[1] = -1;\n// mCoinDigitsChanged = true;\n// mRubyDigitsChanged = true;\n \n levelIntro = false;\n// mLevelIntro = false;\n \n mFPS = 0;\n mFPSDigits[0] = 0;\n mFPSDigits[1] = -1;\n mFPSDigitsChanged = true;\n mShowFPS = false;\n for (int x = 0; x < mDigitDrawables.length; x++) {\n mDigitDrawables[x] = null;\n }\n// mXDrawable = null;\n mFadePendingEventType = GameFlowEvent.EVENT_INVALID;\n mFadePendingEventIndex = 0;\n }", "@Override\n void setupState(TYPE firstItem) {\n currentItem = 0;\n }", "public void setMoveRemainingStartsForward(boolean moveRemainingStartsForward)\r\n {\r\n m_moveRemainingStartsForward = moveRemainingStartsForward;\r\n }", "private void resetTriesRemaining() {\n triesLeft[0] = tryLimit;\n }", "@Override\n\tpublic void computeScroll() {\n\t if (mAdapter == null) {\n\t return;\n\t }\n\t if(mAdapter.getCount() == 0){\n\t \treturn;\n\t }\n\t \n\t\tif (mScroller.computeScrollOffset()) {\n\t\t\tif(mScroller.getFinalX() == mScroller.getCurrX()){\n\t\t\t\tmScroller.abortAnimation();\n\t\t\t\tmTouchState = TOUCH_STATE_RESTING;\n\t\t\t\tif(!checkScrollPosition())\n\t\t\t\t\tclearChildrenCache();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t int x = mScroller.getCurrX();\n\t\t scrollTo(x, 0);\n\t\t \n postInvalidate();\n }\n\t\telse if(mTouchState == TOUCH_STATE_FLING || mTouchState == TOUCH_STATE_DISTANCE_SCROLL){\n\t\t\tmTouchState = TOUCH_STATE_RESTING;\n\t\t\tif(!checkScrollPosition())\n\t\t\t\tclearChildrenCache();\n\t\t}\n\t\t\n\t\tif(mDataChanged){\n\t\t\tremoveAllViewsInLayout();\n\t\t\trefillOnChange(mFirstItemPosition);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\trelayout();\n\t\tremoveNonVisibleViews();\n\t\trefillRight();\n\t\trefillLeft();\n\n\t}", "@Override\n protected void end() {\n drive.setEnabled(false);\n drive.setLeftPower(0);\n drive.setRightPower(0);\n }", "public void resetMovementAttempts() {\r\n\t\tmovementAttempts = 0;\r\n\t}", "private void manageSwipe() {\n\n mAudioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);\n\n mSwipe = new Swipe();\n\n mSubscription = mSwipe.observe()\n .subscribeOn(Schedulers.computation())\n .observeOn(AndroidSchedulers.mainThread())\n .subscribe(new Action1<SwipeEvent>() {\n @Override\n public void call(final SwipeEvent swipeEvent) {\n\n switch (swipeEvent) {\n case SWIPING_DOWN:\n case SWIPING_UP:\n case SWIPING_LEFT:\n case SWIPING_RIGHT:\n break;\n case SWIPED_DOWN:\n mAudioManager.adjustStreamVolume(AudioManager.STREAM_MUSIC, AudioManager.ADJUST_LOWER, AudioManager.FLAG_SHOW_UI);\n break;\n case SWIPED_UP:\n mAudioManager.adjustStreamVolume(AudioManager.STREAM_MUSIC, AudioManager.ADJUST_RAISE, AudioManager.FLAG_SHOW_UI);\n break;\n case SWIPED_LEFT:\n mBangingTunes.previous();\n break;\n case SWIPED_RIGHT:\n mBangingTunes.next();\n break;\n default:\n break;\n }\n }\n });\n }", "@Override\n protected void interrupted() {\n Robot.myLifter.setLeftSpeed(0);\n Robot.myLifter.setRightSpeed(0);\n }", "public void adjustInitialPosition() {\n\n //TelemetryWrapper.setLine(1,\"landFromLatch...\");\n runtime.reset();\n double maxLRMovingDist = 200.0; //millimeters\n double increamentalDist = 50.0;\n while ( runtime.milliseconds() < 5000 ) {\n int loops0 = 0;\n while ((loops0 < 10) && ( mR.getNumM() == 0 )) {\n mR.update();\n loops0 ++;\n }\n if (mR.getNumM() <= 1) {\n int loops = 0;\n while ( mR.getNumM() <= 1 )\n driveTrainEnc.moveLeftRightEnc(increamentalDist, 2000);\n continue;\n } else if ( mR.getHAlignSlope() > 2.0 ) {\n driveTrainEnc.spinEnc(AUTO_DRIVE_SPEED,Math.atan(mR.getHAlignSlope()),2000);\n continue;\n } else if (! mR.isGoldFound()) {\n\n driveTrainEnc.moveLeftRightEnc(increamentalDist,2000);\n continue;\n } else if ( mR.getFirstGoldAngle() > 1.5 ) {\n driveTrainEnc.spinEnc(AUTO_DRIVE_SPEED, mR.getFirstGoldAngle(),2000);\n continue;\n }\n }\n driveTrainEnc.stop();\n }", "public void resetMissedCallsCount();", "public void resetAllOperations() {\n\t\t/*\n\t\t * Check to see if we are in any countdown modes\n\t\t */\n\t\tif(inCountdown1Mode) {\n\t\t\twarmUpWindow1.dismiss();\n\t\t}\t\t\n\t\tif(inBaselineMode) {\n\t\t\tbaselineWindow.dismiss();\n\t\t}\n\t\t\n\t\t/**\n\t\t * Turn off any red leds\n\t\t */\n\t\tledOn1.setVisibility(View.INVISIBLE);\n\t\tledOn2.setVisibility(View.INVISIBLE);\n\t\tledOn3.setVisibility(View.INVISIBLE);\n\t\tledOn4.setVisibility(View.INVISIBLE);\n\t\tledOn5.setVisibility(View.INVISIBLE);\n\t\tledOn6.setVisibility(View.INVISIBLE);\n\t\tledOn7.setVisibility(View.INVISIBLE);\n\t\tledOn8.setVisibility(View.INVISIBLE);\n\t\tledOn9.setVisibility(View.INVISIBLE);\n\t\t\n\t\t/*\n\t\t * Reset any program flow variables\n\t\t */\n\t\tinCountdown1Mode = false;\n\t\tinBaselineMode = false;\n\t\ton = false;\n\t\tmodeChange = false;\n\t\twarmedUp = false;\n\t\t\n\t\t/*\n\t\t * Reset counts\n\t\t */\n\t\tcountdown1 = WARMUP_COUNT;\n\t\tcountdown2 = BASELINE_COUNT;\n\t\ttvUpdate(tvSensorValue, \"--\");\n\t\t\n\t\tcountdown1Handler.removeCallbacksAndMessages(null);\n\t\tcountdown2Handler.removeCallbacksAndMessages(null);\n\t\tmodeHandler.removeCallbacksAndMessages(null);\n\t\ttickHandler.removeCallbacksAndMessages(null);\n\t\tsetLEDsHandler.removeCallbacksAndMessages(null);\n\t\t\n\t\t// Stop taking measurements\n\t\tstreamer.disable();\n\t\t// Disable the sensor\n\t\tdroneApp.myDrone.quickDisable(qsSensor);\n\t}", "private void resetFlags(){\n\t\tint count = 0;\n\t\tif (partOfAPairedAlignment) count += Math.pow(2, 0);\n\t\tif (aProperPairedAlignment) count += Math.pow(2, 1);\n\t\tif (unmapped) count += Math.pow(2, 2);\n\t\tif (mateUnMapped) count += Math.pow(2, 3);\n\t\tif (reverseStrand) count += Math.pow(2, 4);\n\t\tif (mateReverseStrand) count += Math.pow(2, 5);\n\t\tif (firstPair) count += Math.pow(2, 6);\n\t\tif (secondPair) count += Math.pow(2, 7);\n\t\tif (notAPrimaryAlignment) count += Math.pow(2, 8);\n\t\tif (failedQC) count += Math.pow(2, 9);\n\t\tif (aDuplicate) count += Math.pow(2, 10);\n\t\tflags = (short) count;\n\t\tflagResetNeeded = false;\n\t\t\n\t}", "@Override\n protected void end() {\n Robot.myLifter.setLeftSpeed(0);\n Robot.myLifter.setRightSpeed(0);\n }", "@Test(expected=UnavailableItemException.class)\n\tpublic void testUnavailableItems() throws Exception {\n\t\td.dispense(50, 5);\n\t\td.dispense(50, 18);\n\t\td.dispense(50, 20);\n\t}", "@Override\n\tpublic int getMovementFlags(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder) {\n\t\tif (viewHolder instanceof UndoViewHolder) {\n\t\t\treturn 0;\n\t\t} else {\n\t\t\tint swipeFlags = ItemTouchHelper.START | ItemTouchHelper.END;\n\t\t\treturn makeMovementFlags(0, swipeFlags);\n\t\t}\n\t}", "@Override\n public void onResume(){\n super.onResume();\n CVAdapter.setItemCount(getDefaultItemCount());\n }", "@SuppressWarnings(\"unused\")\n\tpublic void shift() {\n\t\tint totalItems = 0;\n\t\tint highestSlot = 0;\n\t\tfor (int i = 0; i < summonedFamiliar.storeCapacity; i++) {\n\t\t\tif (burdenedItems[i] != 0) {\n\t\t\t\ttotalItems++;\n\t\t\t\tif (highestSlot <= i) {\n\t\t\t\t\thighestSlot = i;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i <= highestSlot; i++) {\n\t\t\tif (burdenedItems[i] == 0) {\n\t\t\t\tboolean stop = false;\n\t\t\t\tfor (int k = i; k <= highestSlot; k++) {\n\t\t\t\t\tif (burdenedItems[k] != 0 && !stop) {\n\t\t\t\t\t\tint spots = k - i;\n\t\t\t\t\t\tfor (int j = k; j <= highestSlot; j++) {\n\t\t\t\t\t\t\tburdenedItems[j - spots] = burdenedItems[j];\n\t\t\t\t\t\t\tstop = true;\n\t\t\t\t\t\t\tburdenedItems[j] = 0;\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}", "@Override\n \tprotected ScanObject isScannableToBeMoved(Scannable scannable) {\n \t\tif (scannable == qscanAxis)\n \t\t\treturn null;\n \t\treturn super.isScannableToBeMoved(scannable);\n \t}", "@Override\n public boolean canMove() {\n return storage.isRampClosed();\n }", "@Override\n boolean shouldFlush(TYPE item) {\n // increment the current item count, and get the modulus of size\n currentItem = ++currentItem % size;\n // if the modulus is 0, we've hit our max, and we flush the list\n return currentItem == 0;\n }", "public void degradedMode() {\n\n // if failure of water-level measuring unit got to rescueMode()\n if (waterLevelFailure()) {\n this.outgoing.send(new Message(MessageKind.LEVEL_FAILURE_DETECTION));\n this.outgoing.send(new Message(MessageKind.MODE_m, Mailbox.Mode.RESCUE));\n this.mode = State.RESCUE;\n this.prevRescueMode = State.DEGRADED;\n rescueMode();\n return;\n }\n // if water level risks reaching M1 or M2 go to emergencyStopMode()\n if (nearMaxMin()) {\n this.outgoing.send(new Message(MessageKind.MODE_m, Mailbox.Mode.EMERGENCY_STOP));\n this.mode = State.EMERGENCY_STOP;\n emergencyStopMode();\n return;\n }\n\n for (int i = 0; i < this.incoming.size(); i++) { // check for fixed messages\n Message msg = this.incoming.read(i);\n if (msg.getKind().equals(MessageKind.PUMP_REPAIRED_n)) {\n int pumpNo = msg.getIntegerParameter();\n this.outgoing.send(new Message(MessageKind.PUMP_REPAIRED_ACKNOWLEDGEMENT_n, pumpNo));\n this.mode = this.prevDegradedMode;\n }\n if (msg.getKind().equals(MessageKind.PUMP_CONTROL_REPAIRED_n)) {\n int pumpNo = msg.getIntegerParameter();\n this.outgoing\n .send(new Message(MessageKind.PUMP_CONTROL_REPAIRED_ACKNOWLEDGEMENT_n, pumpNo));\n this.mode = this.prevDegradedMode;\n\n }\n if (msg.getKind().equals(MessageKind.STEAM_REPAIRED)) {\n this.outgoing.send(new Message(MessageKind.STEAM_REPAIRED_ACKNOWLEDGEMENT));\n this.mode = this.prevDegradedMode;\n }\n }\n\n if (this.mode.equals(State.NORMAL)) {\n this.brokenPumpNo = -1;\n this.outgoing.send(new Message(MessageKind.MODE_m, Mailbox.Mode.NORMAL));\n return;\n } else if (this.mode.equals(State.READY)) {\n this.brokenPumpNo = -1;\n this.outgoing.send(new Message(MessageKind.MODE_m, Mailbox.Mode.INITIALISATION));\n return;\n } else { // pump water in\n this.waterLevel = this.levelMessage.getDoubleParameter();\n this.outgoing.send(new Message(MessageKind.MODE_m, Mailbox.Mode.DEGRADED));\n this.mode = State.DEGRADED;\n int noOfPumps = estimatePumps(this.steamLevel, this.waterLevel);\n turnOnPumps(noOfPumps);\n }\n\n // if transmissionFailure go to emergencyStopMode()\n }", "public void resetMoveCount() {\r\n\t\tmoveCount = 0;\r\n\t}", "@Override\n\tpublic boolean shouldDismiss(int position, int direction) {\n\t\treturn direction == SwipeDirections.DIRECTION_NORMAL_LEFT;\n\t}", "@Override\r\n public void onItemsRemoved(RecyclerView recyclerView, int positionStart, int itemCount) {\r\n if(isBeforePreLayout){\r\n if(firstChangedPosition > positionStart || firstChangedPosition == -1)\r\n firstChangedPosition = positionStart;\r\n if(firstChangedPosition < firstAttachedItemPosition)\r\n removedTopAndBoundPositionCount += itemCount;\r\n }\r\n }", "public void resetMoveCtr() {\n\t\t\n\t\t moveCtr=0;\n\t}", "private void setMeteredInterface(java.lang.String r10, boolean r11) {\n /*\n r9 = this;\n if (r10 != 0) goto L_0x0003;\n L_0x0002:\n return;\n L_0x0003:\n r0 = \"network_management\";\n r0 = android.os.ServiceManager.getService(r0);\n if (r0 != 0) goto L_0x0014;\n L_0x000b:\n r1 = \"network-policy\";\n r2 = \"setIfWhitelist networkManager is null\";\n android.util.Log.e(r1, r2);\n return;\n L_0x0014:\n r1 = android.os.Parcel.obtain();\n r2 = android.os.Parcel.obtain();\n r3 = \"bandwidth\";\n r4 = 2;\n r4 = new java.lang.String[r4];\n if (r11 != 0) goto L_0x0026;\n L_0x0023:\n r5 = \"enable_ifwhitelist\";\n goto L_0x0028;\n L_0x0026:\n r5 = \"disable_ifwhitelist\";\n L_0x0028:\n r6 = 0;\n r4[r6] = r5;\n r5 = 1;\n r4[r5] = r10;\n r1.writeString(r3);\t Catch:{ Exception -> 0x005e }\n r1.writeArray(r4);\t Catch:{ Exception -> 0x005e }\n r7 = 201; // 0xc9 float:2.82E-43 double:9.93E-322;\t Catch:{ Exception -> 0x005e }\n r0.transact(r7, r1, r2, r6);\t Catch:{ Exception -> 0x005e }\n r6 = r9.sIncreaseCmdCount;\t Catch:{ Exception -> 0x005e }\n r6 = r6 + r5;\t Catch:{ Exception -> 0x005e }\n r9.sIncreaseCmdCount = r6;\t Catch:{ Exception -> 0x005e }\n r5 = \"network-policy\";\t Catch:{ Exception -> 0x005e }\n r6 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x005e }\n r6.<init>();\t Catch:{ Exception -> 0x005e }\n r7 = \"\";\t Catch:{ Exception -> 0x005e }\n r6.append(r7);\t Catch:{ Exception -> 0x005e }\n r6.append(r2);\t Catch:{ Exception -> 0x005e }\n r6 = r6.toString();\t Catch:{ Exception -> 0x005e }\n android.util.Log.e(r5, r6);\t Catch:{ Exception -> 0x005e }\n if (r1 == 0) goto L_0x0059;\n L_0x0056:\n r1.recycle();\n L_0x0059:\n if (r2 == 0) goto L_0x0080;\n L_0x005b:\n goto L_0x007d;\n L_0x005c:\n r5 = move-exception;\n goto L_0x0081;\n L_0x005e:\n r5 = move-exception;\n r6 = \"HwNetworkPolicy\";\t Catch:{ all -> 0x005c }\n r7 = new java.lang.StringBuilder;\t Catch:{ all -> 0x005c }\n r7.<init>();\t Catch:{ all -> 0x005c }\n r8 = \"setIfWhitelist-->\";\t Catch:{ all -> 0x005c }\n r7.append(r8);\t Catch:{ all -> 0x005c }\n r7.append(r5);\t Catch:{ all -> 0x005c }\n r7 = r7.toString();\t Catch:{ all -> 0x005c }\n android.util.Slog.e(r6, r7);\t Catch:{ all -> 0x005c }\n if (r1 == 0) goto L_0x007b;\n L_0x0078:\n r1.recycle();\n L_0x007b:\n if (r2 == 0) goto L_0x0080;\n L_0x007d:\n r2.recycle();\n L_0x0080:\n return;\n L_0x0081:\n if (r1 == 0) goto L_0x0086;\n L_0x0083:\n r1.recycle();\n L_0x0086:\n if (r2 == 0) goto L_0x008b;\n L_0x0088:\n r2.recycle();\n L_0x008b:\n throw r5;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.server.net.HwNetworkPolicyManagerService.setMeteredInterface(java.lang.String, boolean):void\");\n }", "@Override\n\tpublic void reset(){\n\t\tstate.reset();\n\t\toldState.reset();\n\t\treturnAction = new boolean[Environment.numberOfButtons]; \n\t\trewardSoFar = 0;\n\t\tcurrentReward = 0;\n\t}", "@Override\n\tpublic void processUSData(int distance) { rudimentary filter - toss out invalid samples corresponding to null\n\t\t// signal.\n\t\t// (n.b. this was not included in the Bang-bang controller, but easily\n\t\t// could have).\n\t\t//\n\t\tif (distance >= 100 && filterControl < FILTER_OUT) {\n\t\t\t// bad value, do not set the distance var, however do increment the\n\t\t\t// filter value\n\t\t\tfilterControl++;\n\t\t} else if (distance >= 100) {\n\t\t\t// We have repeated large values, so there must actually be nothing\n\t\t\t// there: leave the distance alone\n\t\t\tthis.distance = distance;\n\t\t} else {\n\t\t\t// distance went below 100: reset filter and leave\n\t\t\t// distance alone.\n\t\t\tfilterControl = 0;\n\t\t\tthis.distance = distance;\n\t\t}\n\t\t\n\t\tint distError = this.distance - bandCenter;\n\t\t\n\n\t\t// TODO: process a movement based on the us distance passed in (P style)\n\n\t\t/* If we're too far from the wall, we want to decrease the left motor speed to\n\t\t make it turn left. Since it's very far, we will also want it to turn at a\n\t\tmore slow pace. */\n\t\tif (distError >= longDistance) {\n\n\t\t\tsteadySpeedCorrection = calcSpeed(maxSpeed, steadyProportion, distError);\n\n\t\t\tleftMotor.setSpeed(MOTOR_SPEED - steadySpeedCorrection);\n\t\t\trightMotor.setSpeed(MOTOR_SPEED + steadySpeedCorrection);\n\n\t\t\tleftMotor.forward();\n\t\t\trightMotor.forward();\n\n\t\t}\n\n\t\t/* here, we apply the same logic as previously but we want it to turn at a faster rate to avoid collision */\n\t\telse if (distError > 0 && distError < longDistance ) {\n\n\t\t\trapidSpeedCorrection = calcSpeed(maxSpeed, rapidProportion, distError);\n\n\t\t\tleftMotor.setSpeed(MOTOR_SPEED - rapidSpeedCorrection);\n\t\t\trightMotor.setSpeed(MOTOR_SPEED + rapidSpeedCorrection );\n\n\t\t\tleftMotor.forward();\n\t\t\trightMotor.forward();\n\n\t\t}\n\n\t\t/* in this case, we are close to the wall, however, not too close,so we apply a steady correction */\n\t\telse if (distError < 0 && distError > -10) {\n\n\t\t\tsteadySpeedCorrection = calcSpeed(maxSpeed, steadyProportion, distError);\n\n\t\t\tleftMotor.setSpeed(MOTOR_SPEED + steadySpeedCorrection);\n\t\t\trightMotor.setSpeed(MOTOR_SPEED - steadySpeedCorrection);\n\n\t\t\tleftMotor.forward();\n\t\t\trightMotor.forward();\n\n\t\t}\n\n\t\t/* in this case, we are too close to the wall so we apply a rapid correction. We also move the right motor backwards\n\t\t so it can turn in its place */\n\t\telse if (distError <= -10) {\n\n\t\t\trapidSpeedCorrection = calcSpeed(maxSpeed, rapidProportion, distError);\n\n\t\t\tleftMotor.setSpeed((MOTOR_SPEED + rapidSpeedCorrection));\n\t\t\trightMotor.setSpeed((MOTOR_SPEED - rapidSpeedCorrection));\n\n\t\t\tleftMotor.forward();\n\t\t\trightMotor.backward();\n\n\t\t}\n\t\t\n\t\t/*\n\t\t appropriate distance so we let it continue forward at the designated MOTOR_SPEED\n\t\t */\n\t\telse {\n\n\t\t\tleftMotor.setSpeed(MOTOR_SPEED);\n\t\t\trightMotor.setSpeed(MOTOR_SPEED);\n\n\t\t\tleftMotor.forward();\n\t\t\trightMotor.forward();\n\t\t}\n\n\t}", "@Override\n public void stop() {\n if (FLM != null) FLM.setPower(0);\n if (FRM != null) FRM.setPower(0);\n if (BLM != null) BLM.setPower(0);\n if (BRM != null) BRM.setPower(0);\n if (BigSuck != null) BigSuck.setPower(0);\n if (SmallSuck != null) SmallSuck.setPower(0);\n if (UpLift != null) UpLift.setPower(0);\n if (DragArm != null) DragArm.setPosition(DragArmRestPosition);\n if (LiftGrab != null) LiftGrab.setPosition(LiftGrabRestPosition);\n if (LiftSwivel != null) LiftSwivel.setPosition(LiftSwivelRestPosition);\n }", "@Override public int convertToAbsoluteDirection(int flags, int layoutDirection) {\n if (swipeBack) {\n swipeBack = buttonState != ButtonState.GONE;\n return 0;\n }\n return super.convertToAbsoluteDirection(flags, layoutDirection);\n }", "@Test public void resetCountTest() {\n DirectMC g = new DirectMC(\"AdMailing\", 10000.00, 3.00, 2000);\n g.resetCount();\n Assert.assertEquals(0, g.getCount(), 1);\n }", "@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 updatePageAccessibilityActions() {\n int itemCount;\n ViewPager2 viewPager2 = ViewPager2.this;\n int i = 16908360;\n ViewCompat.removeAccessibilityAction(viewPager2, 16908360);\n ViewCompat.removeAccessibilityAction(viewPager2, 16908361);\n ViewCompat.removeAccessibilityAction(viewPager2, 16908358);\n ViewCompat.removeAccessibilityAction(viewPager2, 16908359);\n if (ViewPager2.this.getAdapter() != null && (itemCount = ViewPager2.this.getAdapter().getItemCount()) != 0 && ViewPager2.this.isUserInputEnabled()) {\n if (ViewPager2.this.getOrientation() == 0) {\n boolean isRtl = ViewPager2.this.isRtl();\n int i2 = isRtl ? 16908360 : 16908361;\n if (isRtl) {\n i = 16908361;\n }\n if (ViewPager2.this.mCurrentItem < itemCount - 1) {\n ViewCompat.replaceAccessibilityAction(viewPager2, new AccessibilityNodeInfoCompat.AccessibilityActionCompat(i2, (CharSequence) null), (CharSequence) null, this.mActionPageForward);\n }\n if (ViewPager2.this.mCurrentItem > 0) {\n ViewCompat.replaceAccessibilityAction(viewPager2, new AccessibilityNodeInfoCompat.AccessibilityActionCompat(i, (CharSequence) null), (CharSequence) null, this.mActionPageBackward);\n return;\n }\n return;\n }\n if (ViewPager2.this.mCurrentItem < itemCount - 1) {\n ViewCompat.replaceAccessibilityAction(viewPager2, new AccessibilityNodeInfoCompat.AccessibilityActionCompat(16908359, (CharSequence) null), (CharSequence) null, this.mActionPageForward);\n }\n if (ViewPager2.this.mCurrentItem > 0) {\n ViewCompat.replaceAccessibilityAction(viewPager2, new AccessibilityNodeInfoCompat.AccessibilityActionCompat(16908358, (CharSequence) null), (CharSequence) null, this.mActionPageBackward);\n }\n }\n }", "@Override\n public void stop() {\n setDebrisPusher(DebrisPusherDirection.Down);\n }", "public void adjustVolume(int direction) {\n Message msg = mHandler.obtainMessage(MESSAGE_ADJUST_VOLUME, direction, 0);\n mHandler.sendMessage(msg);\n }", "private void initialState() {\n forEach(item -> item.setInKnapsack(false));\n\n for (final Item item : this) {\n if (wouldOverpack(item)) {\n break;\n }\n item.switchIsKnapsack();\n }\n }", "@Override\n public boolean onMove(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder, RecyclerView.ViewHolder target) {\n int fromPosition = viewHolder.getAdapterPosition();\n int toPosition = target.getAdapterPosition();\n Collections.swap(mAdapter.mItems, fromPosition, toPosition);\n mAdapter.notifyItemMoved(fromPosition, toPosition);\n\n // Move in underlying list used by loader\n SelectedBuses.moveBusInList(\n getContext(),\n ((BusViewHolder) viewHolder).mBusIdInApi,\n ((BusViewHolder) target).mBusIdInApi\n );\n\n // Dismiss Snackbar\n if (mSnackbar != null) {\n mSnackbar.dismiss();\n }\n return true;\n }", "private void controlLift()\n {\n if (gamepad1.dpad_up) {\n liftMotor.setPower(-0.5);\n } else if (gamepad1.dpad_down) {\n liftMotor.setPower(0.5);\n } else {++backInc;\n liftMotor.setPower(0);\n }\n }", "@Override\n public void onCardCanceled() {\n Log.d(TAG, \"onCardRewound: \" + manager.getTopPosition());\n }", "public void onAccuracyReset() {\n onAccuracyChanged(ACCURACY_TYPE_NOT_SET);\n }", "private void driveRight() {\n setSpeed(MAX_SPEED, MIN_SPEED);\n }", "@Override\n public void onSwiped(RecyclerView.ViewHolder viewHolder, int direction) {\n Company toBeRestoredCompany = comparisonCompaniesAdapter\n .getItem(viewHolder.getAdapterPosition());\n Company a = null;\n for (Company c : selectedCompanies) {\n if (toBeRestoredCompany.getIdentifiers().getTicker().equalsIgnoreCase(c.getIdentifiers().getTicker())) {\n horizontalCompanyListAdapter.addItem(toBeRestoredCompany);\n a = c;\n }\n }\n if (a != null) {\n selectedCompanies.remove(a);\n }\n comparisonCompaniesAdapter.removeItem(viewHolder.getAdapterPosition());\n }", "@Override\n\tpublic void reset() {\n\t\tfor(int i=0; i<mRemainedCounters; i++){\n\t\t\tfinal ICounter counter = this.mCounters.getFirst();\n\t\t\tcounter.reset();\n\t\t\tthis.mCounters.removeFirst();\n\t\t\tthis.mCounters.addLast(counter);\n\t\t}\n\t\tthis.mRemainedCounters = this.mCounters.size();\n\t}", "public void setDirectionPriority(int directionPriority) {\n/* 202 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "protected void reInitialize() {\r\n currentPos.reInitialize();\r\n motorState.reInitialize();\r\n armState = KSGripperStates.ARM_UP;\r\n gripperState = KSGripperStates.GRIP_OPEN;\r\n objPresent = false;\r\n objHeld = false;\r\n resistivity = 0;\r\n }", "public void beginMSRSwipe() throws DeviceException;", "@Override\n protected boolean isItemsOrderReversed() {\n return Utils.isCornerBottom(mCurrentCorner);\n }", "public void ResetCounter()\r\n {\r\n counter.setCurrentValue(this.startValue);\r\n }", "public void setCurrentItemInternal(int i, boolean z) {\n RecyclerView.Adapter adapter = getAdapter();\n if (adapter == null) {\n if (this.mPendingCurrentItem != -1) {\n this.mPendingCurrentItem = Math.max(i, 0);\n }\n } else if (adapter.getItemCount() > 0) {\n int min = Math.min(Math.max(i, 0), adapter.getItemCount() - 1);\n if (min == this.mCurrentItem && this.mScrollEventAdapter.isIdle()) {\n return;\n }\n if (min != this.mCurrentItem || !z) {\n double d = (double) this.mCurrentItem;\n this.mCurrentItem = min;\n this.mAccessibilityProvider.onSetNewCurrentItem();\n if (!this.mScrollEventAdapter.isIdle()) {\n d = this.mScrollEventAdapter.getRelativeScrollPosition();\n }\n this.mScrollEventAdapter.notifyProgrammaticScroll(min, z);\n if (!z) {\n this.mRecyclerView.scrollToPosition(min);\n return;\n }\n double d2 = (double) min;\n if (Math.abs(d2 - d) > 3.0d) {\n this.mRecyclerView.scrollToPosition(d2 > d ? min - 3 : min + 3);\n RecyclerView recyclerView = this.mRecyclerView;\n recyclerView.post(new SmoothScrollToPosition(min, recyclerView));\n return;\n }\n this.mRecyclerView.smoothScrollToPosition(min);\n }\n }\n }", "public void dataSetChanged() {\n int count = this.mAdapter.getCount();\n this.mExpectedAdapterCount = count;\n boolean z = this.mItems.size() < (this.mOffscreenPageLimit * 2) + 1 && this.mItems.size() < count;\n int i = this.mCurItem;\n this.mChangeData = true;\n boolean z2 = z;\n int i2 = i;\n int i3 = 0;\n boolean z3 = false;\n while (i3 < this.mItems.size()) {\n ItemInfo itemInfo = this.mItems.get(i3);\n int itemPosition = this.mAdapter.getItemPosition(itemInfo.object);\n if (itemPosition != -1) {\n if (itemPosition == -2) {\n this.mItems.remove(i3);\n i3--;\n if (!z3) {\n this.mAdapter.startUpdate((ViewGroup) this);\n z3 = true;\n }\n this.mAdapter.destroyItem((ViewGroup) this, itemInfo.position, itemInfo.object);\n if (this.mCurItem == itemInfo.position) {\n i2 = Math.max(0, Math.min(this.mCurItem, count - 1));\n }\n } else if (itemInfo.position != itemPosition) {\n if (itemInfo.position == this.mCurItem) {\n i2 = itemPosition;\n }\n itemInfo.position = itemPosition;\n }\n z2 = true;\n }\n i3++;\n }\n if (z3) {\n this.mAdapter.finishUpdate((ViewGroup) this);\n }\n if (z2) {\n int childCount = getChildCount();\n for (int i4 = 0; i4 < childCount; i4++) {\n LayoutParams layoutParams = (LayoutParams) getChildAt(i4).getLayoutParams();\n if (!layoutParams.isDecor) {\n layoutParams.widthFactor = 0.0f;\n }\n }\n setCurrentItemInternal(i2, false, true);\n requestLayout();\n }\n }", "@Override\n public void moveTowards(int destination) throws FragileItemBrokenException {\n if(delaying){\n delaying = false;\n } else {\n super.moveTowards(destination);\n delaying = true;\n }\n }", "@Override\n public int convertToAbsoluteDirection(int flags, int layoutDirection) {\n\n if (mSwipeBack) {\n\n mSwipeBack = mButtonShowedState != ButtonsState.GONE;\n\n return 0;\n }\n\n return super.convertToAbsoluteDirection(flags, layoutDirection);\n }", "public void liftArm(){armLifty.set(-drivePad.getThrottle());}", "public void updateIndication() {\n int i;\n if (TextUtils.isEmpty(this.mTransientIndication)) {\n this.mWakeLock.setAcquired(false);\n }\n Log.i(\"KeyguardIndication\", \"updateIndication: mVisible \" + this.mVisible + \" mDozing \" + this.mDozing + \" mTransientIndication \" + this.mTransientIndication + \" mPowerPluggedIn \" + this.mPowerPluggedIn + \" mShouldUpdateBatteryIndication \" + this.mShouldUpdateBatteryIndication + \" mUpArrowIndication \" + this.mUpArrowIndication);\n if (this.mVisible) {\n if (this.mDozing) {\n if (!TextUtils.isEmpty(this.mTransientIndication)) {\n this.mTextView.switchIndication((CharSequence) this.mTransientIndication);\n this.mTextView.setTextColor(this.mTransientTextColor);\n } else {\n this.mTextView.switchIndication((CharSequence) null);\n }\n } else if (!TextUtils.isEmpty(this.mTransientIndication)) {\n this.mTextView.switchIndication((CharSequence) this.mTransientIndication);\n this.mTextView.setTextColor(this.mTransientTextColor);\n } else if (this.mPowerPluggedIn) {\n if (this.mShouldUpdateBatteryIndication) {\n this.mHandler.removeMessages(6);\n this.mHandler.sendEmptyMessageDelayed(6, 500);\n }\n } else if (Build.IS_CM_CUSTOMIZATION_TEST && this.mSignalAvailable && !this.mIsCMSingleClicking) {\n this.mTextView.switchIndication((int) R.string.emergency_call_string);\n this.mTextView.setTextColor(getTextColor());\n } else if (this.mUpdateMonitor.isFaceUnlock() && this.mUpdateMonitor.isStayScreenFaceUnlockSuccess() && shouldShowFaceTransientIndication()) {\n this.mTextView.switchIndication((int) R.string.face_unlock_success);\n this.mTextView.setTextColor(getTextColor());\n } else if (!TextUtils.isEmpty(this.mUpArrowIndication)) {\n this.mTextView.switchIndication((CharSequence) this.mUpArrowIndication);\n this.mTextView.setTextColor(getTextColor());\n ImageView imageView = this.mUpArrow;\n if (this.mDarkMode) {\n i = R.drawable.miui_default_lock_screen_up_arrow_dark;\n } else {\n i = R.drawable.miui_default_lock_screen_up_arrow;\n }\n imageView.setImageResource(i);\n } else {\n this.mTextView.switchIndication((CharSequence) this.mRestingIndication);\n this.mTextView.setTextColor(getTextColor());\n }\n }\n }", "@Override\n public boolean onMove(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder, RecyclerView.ViewHolder target) {\n return false;\n }", "@Override\n public boolean onMove(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder, RecyclerView.ViewHolder target) {\n return false;\n }", "@Override\n public boolean onMove(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder, RecyclerView.ViewHolder target) {\n return false;\n }", "@Override\n public boolean onMove(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder, RecyclerView.ViewHolder target) {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return Robot.arm.getArmLimitSwitch();\n }", "@Override\n public boolean onMove(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder,\n RecyclerView.ViewHolder target) {\n return false;\n }", "public void endMSRSwipe() throws DeviceException;", "public void directionRestriction(){\n \t\n }", "private void ensureDiscoverable() {\n if (mBluetoothAdapter.getScanMode() !=\n BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE) {\n Intent discoverableIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE);\n discoverableIntent.putExtra(BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION, 300);\n startActivity(discoverableIntent);\n }\n }", "private void ensureDiscoverable() {\n if (mBluetoothAdapter.getScanMode() !=\n BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE) {\n Intent discoverableIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE);\n discoverableIntent.putExtra(BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION, 300);\n startActivity(discoverableIntent);\n }\n }", "@Override\n public boolean onMove(RecyclerView recyclerView,\n RecyclerView.ViewHolder viewHolder,\n RecyclerView.ViewHolder target) {\n //do nothing\n return true;\n }", "public void stop(){\n started = false;\n for (DcMotor motor :this.motors) {\n motor.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n motor.setPower(0);\n }\n this.reset();\n }", "@Override\n\tpublic void reset() {\n\t\tsuper.reset();\n\t\tmSpeed = 0.0;\n\t\tmGoalAngle = 0.0;\n\t\tmCurrentAngle = mNavigation.getHeadingInDegrees();\n\t}", "@Override\n\tpublic int getScrollableUnitIncrement(Rectangle visibleRect,\n\t\t\tint orientation, int direction) {\n\t\treturn 0;\n\t}", "public void liftDown() {\n set(m_defaultLiftSpeedDown);\n }", "public void setMoveRemainingStartsBack(boolean moveRemainingStartsBack)\r\n {\r\n m_moveRemainingStartsBack = moveRemainingStartsBack;\r\n }", "private void enableSwipe() {\n ItemTouchHelper.SimpleCallback simpleItemTouchCallback = new ItemTouchHelper.SimpleCallback(0, ItemTouchHelper.LEFT) {\n\n @Override\n public boolean onMove(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder, RecyclerView.ViewHolder target) {\n return false;\n }\n\n @Override\n public void onSwiped(RecyclerView.ViewHolder viewHolder, int direction) {\n int position = viewHolder.getAdapterPosition();\n\n if (direction == ItemTouchHelper.LEFT) {\n final CartProduct deletedModel = cartProducts.get(position);\n final int deletedPosition = position;\n adapter.removeItem(position);\n // showing snack bar with Undo option\n Snackbar snackbar = Snackbar.make(getWindow().getDecorView().getRootView(), \" removed from Recyclerview!\", Snackbar.LENGTH_LONG);\n snackbar.setAction(\"UNDO\", new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n // undo is selected, restore the deleted item\n adapter.restoreItem(deletedModel, deletedPosition);\n }\n });\n snackbar.setActionTextColor(Color.YELLOW);\n snackbar.show();\n }\n\n// else {\n// final CartProduct deletedModel = cartProducts.get(position);\n// final int deletedPosition = position;\n// adapter.removeItem(position);\n// // showing snack bar with Undo option\n// Snackbar snackbar = Snackbar.make(getWindow().getDecorView().getRootView(), \" removed from Cart!\", Snackbar.LENGTH_LONG);\n// snackbar.setAction(\"UNDO\", new View.OnClickListener() {\n// @Override\n// public void onClick(View view) {\n//\n// // undo is selected, restore the deleted item\n// adapter.restoreItem(deletedModel, deletedPosition);\n// }\n// });\n// snackbar.setActionTextColor(Color.YELLOW);\n// snackbar.show();\n// }\n }\n\n @Override\n public void onChildDraw(Canvas c, RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder, float dX, float dY, int actionState, boolean isCurrentlyActive) {\n\n Bitmap icon;\n if (actionState == ItemTouchHelper.ACTION_STATE_SWIPE) {\n\n View itemView = viewHolder.itemView;\n float height = (float) itemView.getBottom() - (float) itemView.getTop();\n float width = height / 3;\n\n if (dX > 0) {\n// try {\n// p.setColor(Color.parseColor(\"#388E3C\"));\n// RectF background = new RectF((float) itemView.getLeft(), (float) itemView.getTop(), dX, (float) itemView.getBottom());\n// c.drawRect(background, p);\n//\n// icon = BitmapFactory.decodeResource(getResources(), R.drawable.ic_delete_forever);\n// RectF icon_dest = new RectF((float) itemView.getLeft() + width, (float) itemView.getTop() + width, (float) itemView.getLeft() + 2 * width, (float) itemView.getBottom() - width);\n// c.drawBitmap(icon, null, icon_dest, p);\n// } catch (Exception e) {\n// Log.e(\"xxxxxxxxxxxxxxxxxxxx\", e.toString());\n// }\n } else {\n p.setColor(Color.parseColor(\"#D32F2F\"));\n\n RectF background = new RectF((float) itemView.getRight() + dX, (float) itemView.getTop(), (float) itemView.getRight(), (float) itemView.getBottom());\n c.drawRect(background, p);\n icon = BitmapFactory.decodeResource(getResources(), R.drawable.ic_delete_forever);\n RectF icon_dest = new RectF((float) itemView.getRight() - 2 * width, (float) itemView.getTop() + width, (float) itemView.getRight() - width, (float) itemView.getBottom() - width);\n c.drawBitmap(icon, null, icon_dest, p);\n }\n }\n super.onChildDraw(c, recyclerView, viewHolder, dX, dY, actionState, isCurrentlyActive);\n }\n };\n ItemTouchHelper itemTouchHelper = new ItemTouchHelper(simpleItemTouchCallback);\n itemTouchHelper.attachToRecyclerView(recyclerView);\n }", "private void ensureDiscoverable() {\n\t\tif (D)\n\t\t\tLog.d(TAG, \"ensure discoverable\");\n\t\tif (mBluetoothAdapter.getScanMode() != BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE) {\n\t\t\tIntent discoverableIntent = new Intent(\n\t\t\t\t\tBluetoothAdapter.ACTION_REQUEST_DISCOVERABLE);\n\t\t\tdiscoverableIntent.putExtra(\n\t\t\t\t\tBluetoothAdapter.EXTRA_DISCOVERABLE_DURATION, 300);\n\t\t\tstartActivity(discoverableIntent);\n\t\t}\n\t}", "protected abstract boolean reset();", "public boolean flagActionItems() {\n /*\n r20 = this;\n r0 = r20;\n r1 = r0.mMenu;\n r2 = 0;\n if (r1 == 0) goto L_0x0012;\n L_0x0007:\n r1 = r0.mMenu;\n r1 = r1.m9494h();\n r3 = r1.size();\n goto L_0x0014;\n L_0x0012:\n r1 = 0;\n r3 = r2;\n L_0x0014:\n r4 = r0.mMaxItems;\n r5 = r0.mActionItemWidthLimit;\n r6 = android.view.View.MeasureSpec.makeMeasureSpec(r2, r2);\n r7 = r0.mMenuView;\n r7 = (android.view.ViewGroup) r7;\n r8 = r2;\n r9 = r8;\n r10 = r9;\n r11 = r4;\n r4 = r10;\n L_0x0025:\n if (r4 >= r3) goto L_0x004e;\n L_0x0027:\n r13 = r1.get(r4);\n r13 = (android.support.v7.view.menu.C4893j) r13;\n r14 = r13.m9518h();\n if (r14 == 0) goto L_0x0036;\n L_0x0033:\n r8 = r8 + 1;\n goto L_0x0040;\n L_0x0036:\n r14 = r13.m9517g();\n if (r14 == 0) goto L_0x003f;\n L_0x003c:\n r10 = r10 + 1;\n goto L_0x0040;\n L_0x003f:\n r9 = 1;\n L_0x0040:\n r12 = r0.mExpandedActionViewsExclusive;\n if (r12 == 0) goto L_0x004b;\n L_0x0044:\n r12 = r13.isActionViewExpanded();\n if (r12 == 0) goto L_0x004b;\n L_0x004a:\n r11 = r2;\n L_0x004b:\n r4 = r4 + 1;\n goto L_0x0025;\n L_0x004e:\n r4 = r0.mReserveOverflow;\n if (r4 == 0) goto L_0x0059;\n L_0x0052:\n if (r9 != 0) goto L_0x0057;\n L_0x0054:\n r10 = r10 + r8;\n if (r10 <= r11) goto L_0x0059;\n L_0x0057:\n r11 = r11 + -1;\n L_0x0059:\n r11 = r11 - r8;\n r4 = r0.mActionButtonGroups;\n r4.clear();\n r8 = r0.mStrictWidthLimit;\n if (r8 == 0) goto L_0x0070;\n L_0x0063:\n r8 = r0.mMinCellSize;\n r8 = r5 / r8;\n r9 = r0.mMinCellSize;\n r9 = r5 % r9;\n r10 = r0.mMinCellSize;\n r9 = r9 / r8;\n r9 = r9 + r10;\n goto L_0x0072;\n L_0x0070:\n r8 = r2;\n r9 = r8;\n L_0x0072:\n r13 = r2;\n r10 = r5;\n r5 = r13;\n L_0x0075:\n if (r5 >= r3) goto L_0x015e;\n L_0x0077:\n r14 = r1.get(r5);\n r14 = (android.support.v7.view.menu.C4893j) r14;\n r15 = r14.m9518h();\n if (r15 == 0) goto L_0x00b8;\n L_0x0083:\n r15 = r0.mScrapActionButtonView;\n r15 = r0.getItemView(r14, r15, r7);\n r12 = r0.mScrapActionButtonView;\n if (r12 != 0) goto L_0x008f;\n L_0x008d:\n r0.mScrapActionButtonView = r15;\n L_0x008f:\n r12 = r0.mStrictWidthLimit;\n if (r12 == 0) goto L_0x0099;\n L_0x0093:\n r12 = android.support.v7.widget.ActionMenuView.measureChildForCells(r15, r9, r8, r6, r2);\n r8 = r8 - r12;\n goto L_0x009c;\n L_0x0099:\n r15.measure(r6, r6);\n L_0x009c:\n r12 = r15.getMeasuredWidth();\n r10 = r10 - r12;\n if (r13 != 0) goto L_0x00a4;\n L_0x00a3:\n r13 = r12;\n L_0x00a4:\n r12 = r14.getGroupId();\n if (r12 == 0) goto L_0x00af;\n L_0x00aa:\n r15 = 1;\n r4.put(r12, r15);\n goto L_0x00b0;\n L_0x00af:\n r15 = 1;\n L_0x00b0:\n r14.m9512c(r15);\n r0 = r2;\n r17 = r3;\n goto L_0x0155;\n L_0x00b8:\n r12 = r14.m9517g();\n if (r12 == 0) goto L_0x014f;\n L_0x00be:\n r12 = r14.getGroupId();\n r15 = r4.get(r12);\n if (r11 > 0) goto L_0x00ca;\n L_0x00c8:\n if (r15 == 0) goto L_0x00d4;\n L_0x00ca:\n if (r10 <= 0) goto L_0x00d4;\n L_0x00cc:\n r2 = r0.mStrictWidthLimit;\n if (r2 == 0) goto L_0x00d2;\n L_0x00d0:\n if (r8 <= 0) goto L_0x00d4;\n L_0x00d2:\n r2 = 1;\n goto L_0x00d5;\n L_0x00d4:\n r2 = 0;\n L_0x00d5:\n if (r2 == 0) goto L_0x0113;\n L_0x00d7:\n r16 = r2;\n r2 = r0.mScrapActionButtonView;\n r2 = r0.getItemView(r14, r2, r7);\n r17 = r3;\n r3 = r0.mScrapActionButtonView;\n if (r3 != 0) goto L_0x00e7;\n L_0x00e5:\n r0.mScrapActionButtonView = r2;\n L_0x00e7:\n r3 = r0.mStrictWidthLimit;\n if (r3 == 0) goto L_0x00f7;\n L_0x00eb:\n r3 = 0;\n r18 = android.support.v7.widget.ActionMenuView.measureChildForCells(r2, r9, r8, r6, r3);\n r8 = r8 - r18;\n if (r18 != 0) goto L_0x00fa;\n L_0x00f4:\n r16 = 0;\n goto L_0x00fa;\n L_0x00f7:\n r2.measure(r6, r6);\n L_0x00fa:\n r2 = r2.getMeasuredWidth();\n r10 = r10 - r2;\n if (r13 != 0) goto L_0x0102;\n L_0x0101:\n r13 = r2;\n L_0x0102:\n r2 = r0.mStrictWidthLimit;\n if (r2 == 0) goto L_0x010e;\n L_0x0106:\n if (r10 < 0) goto L_0x010a;\n L_0x0108:\n r2 = 1;\n goto L_0x010b;\n L_0x010a:\n r2 = 0;\n L_0x010b:\n r2 = r16 & r2;\n goto L_0x0117;\n L_0x010e:\n r2 = r10 + r13;\n if (r2 <= 0) goto L_0x010a;\n L_0x0112:\n goto L_0x0108;\n L_0x0113:\n r16 = r2;\n r17 = r3;\n L_0x0117:\n if (r2 == 0) goto L_0x0120;\n L_0x0119:\n if (r12 == 0) goto L_0x0120;\n L_0x011b:\n r3 = 1;\n r4.put(r12, r3);\n goto L_0x0146;\n L_0x0120:\n if (r15 == 0) goto L_0x0146;\n L_0x0122:\n r3 = 0;\n r4.put(r12, r3);\n r3 = 0;\n L_0x0127:\n if (r3 >= r5) goto L_0x0146;\n L_0x0129:\n r15 = r1.get(r3);\n r15 = (android.support.v7.view.menu.C4893j) r15;\n r0 = r15.getGroupId();\n if (r0 != r12) goto L_0x0141;\n L_0x0135:\n r0 = r15.m9516f();\n if (r0 == 0) goto L_0x013d;\n L_0x013b:\n r11 = r11 + 1;\n L_0x013d:\n r0 = 0;\n r15.m9512c(r0);\n L_0x0141:\n r3 = r3 + 1;\n r0 = r20;\n goto L_0x0127;\n L_0x0146:\n if (r2 == 0) goto L_0x014a;\n L_0x0148:\n r11 = r11 + -1;\n L_0x014a:\n r14.m9512c(r2);\n r0 = 0;\n goto L_0x0155;\n L_0x014f:\n r0 = r2;\n r17 = r3;\n r14.m9512c(r0);\n L_0x0155:\n r5 = r5 + 1;\n r2 = r0;\n r3 = r17;\n r0 = r20;\n goto L_0x0075;\n L_0x015e:\n r2 = 1;\n return r2;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.support.v7.widget.ActionMenuPresenter.flagActionItems():boolean\");\n }", "@SuppressWarnings({\"unused\", \"RedundantSuppression\"})\n public void resetArray() {\n Utils.postToMainLoop(new Runnable() {\n @Override\n public void run() {\n mBaseCacheAdapter.resetArray();\n mBaseRecyclerViewAdapter.notifyDataSetChanged();\n }\n\n @NonNull\n @Override\n public String toString() {\n return \"BaseCacheAdapterWrapper.resetArray()\";\n }\n });\n }", "@Override\n public void enableDisableDiscrete() {\n // empty bc mock\n }", "public void setDirection(int direction) {\n/* 172 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n\t\tprotected void doCurrentState() {\n\t\t\tswitch(currentState) {\n\t\t\t\n\t\t\t// follow operator commands, but respect limit switches\n\t\t\tcase manual:\n\t\t\t\tcd.gearLeftOpen.set(rd.gearManualLeftOpen && !rd.leftOpenSwitch, rd.gearManualLeftClose && !rd.leftCloseSwitch );\n\t\t\t\tcd.gearRightOpen.set(rd.gearManualRightOpen && !rd.rightOpenSwitch, rd.gearManualRightClose && !rd.rightCloseSwitch);\n\t\t\t\tbreak;\n\t\t\t\n\t\t\t// close each motor until fully closed, if one motor is closed stop that motor\n\t\t\tcase autoClose:\n\t\t\t\tcd.gearLeftOpen.set(false, !rd.leftCloseSwitch );\n\t\t\t\tcd.gearRightOpen.set(false, !rd.rightCloseSwitch);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t// open each motor until fully open, if one motor is open stop that motor\t\n\t\t\tcase autoOpen:\n\t\t\t\tcd.gearLeftOpen.set(!rd.leftOpenSwitch, false);\n\t\t\t\tcd.gearRightOpen.set(!rd.rightOpenSwitch, false);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "public void resetCompletionThreshold();", "protected int getRecyleCount()\r\n {\r\n return this.recycleCnt;\r\n }", "protected void refillRight(){\n\t\tif(!shouldRepeat && isSrollingDisabled) return; //prevent next layout calls to override override first init to scrolling disabled by falling to this branch\n\t\tif(getChildCount() == 0) return;\n\t\t\n\t\tfinal int leftScreenEdge = getScrollX();\n\t\tfinal int rightScreenEdge = leftScreenEdge + getWidth();\n\t\t\n\t\tView child = getChildAt(getChildCount() - 1);\n\t\tint right = child.getRight();\n\t\tint currLayoutLeft = right + ((LoopLayoutParams)child.getLayoutParams()).rightMargin;\n\t\twhile(right < rightScreenEdge){\n\t\t\tmLastItemPosition++;\n\t\t\tif(mLastItemPosition >= mAdapter.getCount()) mLastItemPosition = 0;\n\t\t\t\n\t\t\tchild = mAdapter.getView(mLastItemPosition, getCachedView(), this);\n Validate.notNull(child,\"Your adapter has returned null from getView.\");\n\t\t\tchild = addAndMeasureChildHorizontal(child, LAYOUT_MODE_AFTER);\n\t\t\tcurrLayoutLeft = layoutChildHorizontal(child, currLayoutLeft, (LoopLayoutParams) child.getLayoutParams());\n\t\t\tright = child.getRight();\n\t\t\t\n\t\t\t//if selected view is going to screen, set selected state on him\n\t\t\tif(mLastItemPosition == mSelectedPosition){\n\t\t\t\tchild.setSelected(true);\n\t\t\t}\n\t\t}\n\t}", "@Override\n public boolean onMove(@NonNull RecyclerView recyclerView, @NonNull RecyclerView.ViewHolder viewHolder, @NonNull RecyclerView.ViewHolder target) {\n return false;\n }", "public void reset() {\n itemCount = 0;\n stock = new VendItem[maxItems];\n totalMoney = 0;\n userMoney = 0;\n vmStatus = null;\n }", "public void setNetListRefreshMode() {\n this.mNetNaviDataListView.setHeaderText(getString(R.string.oper_pull_to_refresh), getString(R.string.oper_loosen_to_refresh), getString(R.string.oper_refreshing));\n if (this.mTotalItem > this.mCurPage * 10) {\n this.mNetNaviDataListView.setFooterText(getString(R.string.oper_pull_more), getString(R.string.oper_loosen_more), getString(R.string.oper_loading));\n this.mNetNaviDataListView.setMode(Mode.BOTH);\n this.mNetNaviDataListView.changeFooter().setVisibility(0);\n this.mNetNaviDataListView.showImageFoot();\n } else if (this.mTotalItem == 0) {\n if (isLogin()) {\n this.mNetNaviDataListView.setMode(Mode.PULL_FROM_START);\n } else {\n this.mNetNaviDataListView.setMode(Mode.DISABLED);\n }\n this.mNetNaviDataListView.changeFooter().setVisibility(8);\n } else {\n this.mNetNaviDataListView.setMode(Mode.PULL_FROM_START);\n this.mNetNaviDataListView.setFooterText(getString(R.string.oper_no_more), getString(R.string.oper_no_more), getString(R.string.oper_no_more));\n this.mNetNaviDataListView.changeFooter().setVisibility(0);\n this.mNetNaviDataListView.hideImageFoot();\n }\n }", "@Override\n\tpublic int getScrollableBlockIncrement(Rectangle visibleRect,\n\t\t\tint orientation, int direction) {\n\t\treturn 0;\n\t}", "@Override\n public boolean tryAdvance(Consumer<? super SampleDescriptor> action) {\n boolean retVal;\n if (pos < samples.size()) {\n // Here we have another sample to process.\n retVal = true;\n action.accept(samples.get(pos));\n pos++;\n } else {\n // Denote we are at the end.\n retVal = false;\n }\n return retVal;\n }", "public void reset() {\n\t\tmCycleFlip = false;\n\t\tmRepeated = 0;\n\t\tmMore = true;\n //mOneMoreTime = true;\n \n\t\t// 추가\n\t\tmStarted = mEnded = false;\n\t\tmCanceled = false;\n }" ]
[ "0.5411047", "0.50918126", "0.5005823", "0.50055116", "0.49516103", "0.48616847", "0.48503166", "0.48466754", "0.4843598", "0.4837984", "0.48337197", "0.48265928", "0.47046328", "0.4683142", "0.46669585", "0.4616831", "0.4602014", "0.45976624", "0.45944878", "0.45875964", "0.45775387", "0.45626655", "0.45528838", "0.45478246", "0.45465094", "0.45452535", "0.45447323", "0.45435023", "0.45380318", "0.4521468", "0.4520901", "0.45201218", "0.45072004", "0.45033887", "0.4492313", "0.44901156", "0.4485031", "0.44837084", "0.44812712", "0.44755396", "0.4466189", "0.4460107", "0.4455788", "0.44550237", "0.44537818", "0.44512588", "0.44512454", "0.4447614", "0.4444922", "0.4444237", "0.44404358", "0.44399267", "0.44329038", "0.44324285", "0.44276607", "0.44241625", "0.442015", "0.4418284", "0.44169015", "0.44164968", "0.44100162", "0.44065168", "0.43992484", "0.4397204", "0.43957466", "0.43944404", "0.43929532", "0.43862343", "0.43862343", "0.43862343", "0.43862343", "0.43823376", "0.43800756", "0.43773106", "0.4374353", "0.43698978", "0.43698978", "0.43659547", "0.43634492", "0.4363251", "0.43629435", "0.43557152", "0.43549272", "0.4354538", "0.43520686", "0.43498105", "0.4346306", "0.434361", "0.43377107", "0.43325308", "0.43211517", "0.43205425", "0.43205354", "0.43167195", "0.43159142", "0.431457", "0.43135425", "0.4311272", "0.43101618", "0.4306603" ]
0.60498875
0
Final part of StopBelt method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result: Device is enabled.
public void stopBelt() throws JposException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void stopDevice(){\n //Stop the device.\n super.stopDevice();\n }", "@Test\n public void stopDeviceCheck() {\n System.out.println(\"* Device JUnit4Test: stopDeviceCheck()\");\n\n // authenticate the device and then stop it\n authenticateSimulatedDevice();\n mMainServer.removeDevice(mDeviceInstance);\n TestsConfig.delay(150);\n \n // check if the device is corretly removed from the server\n assertFalse(mDeviceInstance.isDeviceActive());\n assertNull(mMainServer.getDevice(mDeviceInstance.getUniqueIdentifier()));\n }", "synchronized public void stopDevice() {\n mStopThread = true;\n }", "@Override\n public void stop() {\n\n leftDrive.setPower(0);\n rightDrive.setPower(0);\n armMotor.setPower(0);\n // extendingArm.setPower(0);\n\n telemetry.addData(\"Status\", \"Terminated Interative TeleOp Mode\");\n telemetry.update();\n\n\n }", "@Override\n public void stopMachine() {\n cleanOrExplode();\n\n for (GT_MetaTileEntity_Hatch_OutputData data : eOutputData) {\n data.q = null;\n }\n\n mOutputItems = null;\n mOutputFluids = null;\n mEfficiency = 0;\n mEfficiencyIncrease = 0;\n mProgresstime = 0;\n mMaxProgresstime = 0;\n eAvailableData = 0;\n hatchesStatusUpdate_EM();\n getBaseMetaTileEntity().disableWorking();\n }", "public void hold() throws DeviceException {\n \t\ttry {\n \t\t\tcontroller.caput(holdChannel, 1, 2.0);\n \t\t} catch (Throwable e) {\n \t\t\tthrow new DeviceException(\"failed to stop or hole the JOB\", e);\n \t\t}\n \t}", "void driveStop() {\n flMotor.setPower(0);\n frMotor.setPower(0);\n blMotor.setPower(0);\n brMotor.setPower(0);\n }", "@Override\n public void stop() {\n leftFrontDrive.setPower(0.0);\n rightFrontDrive.setPower(0.0);\n leftRearDrive.setPower(0.0);\n rightRearDrive.setPower(0.0);\n\n // Disable Tracking when we are done;\n targetsUltimateGoal.deactivate();\n\n //closes object detection to save system resouces\n if (tfod != null) {\n tfod.shutdown();\n }\n }", "@Override\n protected void end() {\n drive.setEnabled(false);\n drive.setLeftPower(0);\n drive.setRightPower(0);\n }", "public void stop()\n {\n robot.FL_drive.setPower(0);\n robot.FR_drive.setPower(0);\n robot.BL_drive.setPower(0);\n robot.BR_drive.setPower(0);\n }", "@Test\n\tpublic void testReadyNoDevices() {\n\t\tModel contact = addContactSensor(true, false);\n\t\tstageDisarmed(addressesOf(contact));\n\t\tremoveModel(contact);\n\t\t\n\t\talarm.bind(context);\n\t\tassertInactive();\n\t}", "@Override\n public void stop() {\n smDrive.stop();\n smArm.stop();\n }", "@Override\n public void stop() {\n if(detector != null) detector.disable(); //Make sure to run this on stop!\n }", "public void hide() throws DeviceException;", "@Override\n public void stop() {\n if (FLM != null) FLM.setPower(0);\n if (FRM != null) FRM.setPower(0);\n if (BLM != null) BLM.setPower(0);\n if (BRM != null) BRM.setPower(0);\n if (BigSuck != null) BigSuck.setPower(0);\n if (SmallSuck != null) SmallSuck.setPower(0);\n if (UpLift != null) UpLift.setPower(0);\n if (DragArm != null) DragArm.setPosition(DragArmRestPosition);\n if (LiftGrab != null) LiftGrab.setPosition(LiftGrabRestPosition);\n if (LiftSwivel != null) LiftSwivel.setPosition(LiftSwivelRestPosition);\n }", "@Invalidate\n\tpublic synchronized void stop() {\n\t\tSystem.out.println(\"Component is stopping...\");\n\t\tfor (PresenceSensor sensor : presenceSensors) {\n\t\t\tsensor.removeListener(this);\n\t\t}\n\t\tfor (BinaryLight binaryLight : binaryLights) {\n\t\t\tbinaryLight.removeListener(this);\n\t\t}\n\t}", "@Override\n public void stop() {\n detector.disable();\n }", "public void damageDevice() {\n\t\t\r\n\t}", "public void stop () {\n driveRaw (0);\n }", "public void stop() {\n m_enabled = false;\n }", "public void endMSRSwipe() throws DeviceException;", "public void stopSoft() {\n stopped.set(true);\n }", "public void pleaseStop()\n {\n\t this.doorgaan_thread = false;\n\t this.doorgaan_wheel = true;\n draad = null; // waarom? \n }", "@Override\n public void stop()\n {\n final String funcName = \"stop\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API);\n }\n\n if (playing)\n {\n analogOut.setAnalogOutputMode((byte) 0);\n analogOut.setAnalogOutputFrequency(0);\n analogOut.setAnalogOutputVoltage(0);\n playing = false;\n expiredTime = 0.0;\n setTaskEnabled(false);\n }\n }", "public void stop() {\n enable = false;\n }", "@Override\n public void stop() {\n setDebrisPusher(DebrisPusherDirection.Down);\n }", "protected void end() {\n\t\tnotifier.stop();\n\n\t\tleftTalon.clearMotionProfileTrajectories();\n\t\trightTalon.clearMotionProfileTrajectories();\n\n\t\tleftTalon.set(ControlMode.MotionProfile, SetValueMotionProfile.Disable.value);\n\t\trightTalon.set(ControlMode.MotionProfile, SetValueMotionProfile.Disable.value);\n\n\t}", "boolean stop()\n {\n boolean success = true; // Tells whether attempt to stop lift is successful or not\n\n try\n {\n _motor.setPower(0);\n }\n catch(Exception e)\n {\n Log.e(\"Error\" , \"Cannot stop lift, check your mapping\");\n success = false;\n }\n\n return success;\n }", "public void stop() {\n\t\tdrive.tankDrive(0, 0);\n\t}", "public void stop(){\n started = false;\n for (DcMotor motor :this.motors) {\n motor.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n motor.setPower(0);\n }\n this.reset();\n }", "public boolean clearDeviceTypeAndNameBuffer();", "public final void stopHardwareDriver(){\n if(peripheralDriver!=null){\n peripheralDriver.stopHardwareDriver();\n }\n }", "@Override\n protected void end() {\n Robot.hatchIntake.hatchOFF();\n }", "@SimpleFunction(description = \"Stop the drive motors of the robot.\")\n public void Stop() {\n String functionName = \"Stop\";\n if (!checkBluetooth(functionName)) {\n return;\n }\n\n for (NxtMotorPort port : driveMotorPorts) {\n setOutputState(functionName, port, 0,\n NxtMotorMode.Brake, NxtRegulationMode.Disabled, 0, NxtRunState.Disabled, 0);\n }\n }", "@Override\n\tpublic void stop() {\n\t\tsetAccelerate(false);\n\t}", "public void turnStrobeOff(){\n Intent stop_strobe_intent = new Intent(FlareConstants.STOP_STROBE);\n stop_strobe_intent.putExtra(FlareConstants.STOP_STROBE, FlareConstants.STOP_STROBE);\n LocalBroadcastManager.getInstance(this).sendBroadcast(stop_strobe_intent);\n Log.d(TAG, \"Sent stop strobe intent broadcast\");\n }", "@Override\n protected void end() {\n Robot.toteLifterSubsystem.setEjectorState(EjectorState.STOPPED, 0.0);\n }", "public void abortOptimizedBurstShot() {\n this.mCameraDevice.abortBurstShot();\n if (1 != this.mAppController.getSupportedHardwarelevel(this.mCameraId)) {\n lightlyRestartPreview();\n }\n }", "@Override\n protected void end() {\n //return control to joystick\n drivetrain.setStopArcadeDrive(false);\n drivetrain.tankDrive(0,0);\n System.out.println(\"STOPPED LINE FOLLOWER\");\n // led.setLEDB(false);\n // led.setLEDR(false);\n }", "public void arm_kill() {\n arm_analog(0);\n }", "@Override\n protected void end() {\n Robot.m_drive.SetPower(0);\n }", "public boolean emergencyStop()\n {\n return finchController.emergencyStop();\n }", "@Override\n\tpublic void postStop() {\n\t\tlog.info(\"DeviceGroup {} stopped\", groupId);\n\t}", "@Override\n public boolean workaroundBySurfaceProcessing() {\n return isHuaweiMate20() || isHuaweiMate20Pro() || isHuaweiP40Lite();\n }", "public void stopTracking()\n {\n pixyThread.interrupt();\n leds.setMode(LEDController.Mode.OFF);\n }", "public void stopping() {\n super.stopping();\n }", "public void stop() {\n if (haveSensor && haveSensor2){ // acc & mag sensors used\n mSensorManager.unregisterListener(this, mAccelerometer);\n mSensorManager.unregisterListener(this, mMagnetometer);\n } else if (haveSensor){ // only rotation used\n mSensorManager.unregisterListener(this, mRotationV);\n }\n }", "public void setSensorOff() {\n\n }", "public void off() {\n\t\tSystem.out.println(\"Tuner is off\");\n\t}", "public void stop() {\n\t\tthis.stopper = true;\n\t}", "boolean initializeStop() {\n if (state != PlatformState.STARTED) {\n return false;\n }\n state = PlatformState.STOPPING;\n return true;\n }", "public abstract void stopRecordSensorData();", "@SuppressWarnings(\"EmptyMethod\")\n public void stop() {\n }", "public void stopRinging();", "private void m4807c() {\n LogUtil.d(f3850h, \"ReceiverAndConverterThreadInternal stopThreadInner\");\n this.f3835a = false;\n f3853k.m4891v();\n f3853k.m4836C();\n }", "@Override\n public void doStop() {\n loc = null;\n sensors().set(SERVICE_STATE, Lifecycle.STOPPING);\n sensors().set(SERVICE_UP, false);\n sensors().set(SERVICE_STATE, Lifecycle.STOPPED);\n }", "private void stop() {\r\n\t\t\tstopped = true;\r\n\t\t}", "public void disabledInit()\n {\n //cam.stopCapture();\n m_USBVCommand.start();\n }", "@Override\n protected void end() {\n Robot.drive.setCoastMode();\n Robot.tapeAlignSys.disable();\n Robot.lidarAlignSys.disable();\n }", "void close(){\r\n // check precondition: device must be opened\r\n if (!checkOpen()){\r\n return;\r\n }\r\n // turn off antenna and LED\r\n cardReader.power(handle, (byte)0);\r\n cardReader.close(handle);\r\n handle = -1;\r\n message = \"Device closed\";\r\n }", "public static void checkAndDisableFramework (Context context) {\n PackageManager pm = context.getPackageManager();\n ComponentName [] frameworkComponents = {new ComponentName(context, BrightnessActivity.class),\n new ComponentName(context, CellularDataActivity.class),\n new ComponentName(context, BackgroundDataActivity.class)};\n ComponentName processorSpeedComponent = new ComponentName(context, ProcessorSpeedActivity.class);\n\n try {\n pm.getPackageInfo(SMART_ACTIONS_FRAMEWORK, PackageManager.GET_ACTIVITIES);\n updateComponentStates(pm, frameworkComponents, PackageManager.COMPONENT_ENABLED_STATE_ENABLED);\n\n if (isFrameworkOld(context)) {\n //FW apk is old. Disable processor speed.\n pm.setComponentEnabledSetting(processorSpeedComponent,\n PackageManager.COMPONENT_ENABLED_STATE_DISABLED, PackageManager.DONT_KILL_APP);\n } else {\n pm.setComponentEnabledSetting(processorSpeedComponent,\n PackageManager.COMPONENT_ENABLED_STATE_ENABLED, PackageManager.DONT_KILL_APP);\n }\n\n } catch (NameNotFoundException e) {\n Log.w(TAG, \"Smart Actions framework not present on the device\");\n updateComponentStates(pm, frameworkComponents, PackageManager.COMPONENT_ENABLED_STATE_DISABLED);\n pm.setComponentEnabledSetting(processorSpeedComponent,\n PackageManager.COMPONENT_ENABLED_STATE_DISABLED, PackageManager.DONT_KILL_APP);\n }\n }", "@Override\r\n\tpublic void wipeWindShield() {\n\t\t\r\n\t}", "public void completeStop(){\n motorFrontLeft.setPower(0);\n motorFrontRight.setPower(0);\n motorBackLeft.setPower(0);\n motorBackRight.setPower(0);\n }", "public void turnOff(){\n vendingMachine = null;\n Logger.getGlobal().log(Level.INFO,\" Turning Off...\");\n }", "void turnOffPads() throws ToyPadException;", "@Override\n\t\tpublic void stop() {\n\t\t\t// Nothing to do for now\n\t\t}", "@Override public void stop() {\n\t\t_active = false;\n\t}", "@Override\n public void stop() {\n }", "void stopAccelerating() {\n isAccelerating = false;\n }", "public void run()\n\t{\n\t\t// set the runningflag at true\n\t\tthis.running = true;\n\t\t\n\t\t// WARNING this cycle is almost useless, it must implemented only to let\n\t\t// the weird PWAL implementation of Device Managers to work.\n\t\twhile (!t.isInterrupted())\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// create the UEI devices corresponding to the descriptors\n\t\t\t\tfor (UeiDescriptor desc : this.validUeis.values())\n\t\t\t\t{\n\t\t\t\t\tif (!this.devicesDiscovered.containsKey(desc.getId()))\n\t\t\t\t\t{\n\t\t\t\t\t\tswitch (desc.getGarbageType())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcase DryRubbish:\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t// create the device array list\n\t\t\t\t\t\t\t\tArrayList<Device> ueiDevices = new ArrayList<Device>();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// add the right UEI\n\t\t\t\t\t\t\t\tNotRecyclableWasteUei uei = new NotRecyclableWasteUei(desc);\n\t\t\t\t\t\t\t\tueiDevices.add(uei);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// store in the set of discovered devices\n\t\t\t\t\t\t\t\tthis.devicesDiscovered.put(desc.getId(), ueiDevices);\n\t\t\t\t\t\t\t\tthis.notifyDeviceListeners(uei);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcase GlassOrAluminumRubbish:\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t// create the device array list\n\t\t\t\t\t\t\t\tArrayList<Device> ueiDevices = new ArrayList<Device>();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// add the right UEI\n\t\t\t\t\t\t\t\tGlassCanWasteUei uei = new GlassCanWasteUei(desc);\n\t\t\t\t\t\t\t\tueiDevices.add(uei);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// store in the set of discovered devices\n\t\t\t\t\t\t\t\tthis.devicesDiscovered.put(desc.getId(), ueiDevices);\n\t\t\t\t\t\t\t\tthis.notifyDeviceListeners(uei);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcase PlasticRubbish:\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t// create the device array list\n\t\t\t\t\t\t\t\tArrayList<Device> ueiDevices = new ArrayList<Device>();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// add the right UEI\n\t\t\t\t\t\t\t\tPlasticWasteUei uei = new PlasticWasteUei(desc);\n\t\t\t\t\t\t\t\tueiDevices.add(uei);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// store in the set of discovered devices\n\t\t\t\t\t\t\t\tthis.devicesDiscovered.put(desc.getId(), ueiDevices);\n\t\t\t\t\t\t\t\tthis.notifyDeviceListeners(uei);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcase OrganicRubbish:\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t// create the device array list\n\t\t\t\t\t\t\t\tArrayList<Device> ueiDevices = new ArrayList<Device>();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// add the right UEI\n\t\t\t\t\t\t\t\tOrganicWasteUei uei = new OrganicWasteUei(desc);\n\t\t\t\t\t\t\t\tueiDevices.add(uei);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// store in the set of discovered devices\n\t\t\t\t\t\t\t\tthis.devicesDiscovered.put(desc.getId(), ueiDevices);\n\t\t\t\t\t\t\t\tthis.notifyDeviceListeners(uei);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// TODO: check from the catalogue if there are any new UEI to\n\t\t\t\t// handle\n\t\t\t\t\n\t\t\t\tThread.sleep(1000);\n\t\t\t}\n\t\t\tcatch (InterruptedException e)\n\t\t\t{\n\t\t\t\tlog.error(\"Exception: \", e);\n\t\t\t\tt.interrupt();\n\t\t\t}\n\t\t}\n\t\t\n\t\t// set the running flag at false\n\t\tthis.running = false;\n\t}", "public void stopShooting() {\n\t\tgetWeapon().releaseMain();\n\t\tsetShooting(false);\n\t}", "@Override\n public void onEmulatorDisconnected() {\n // Stop sensor event callbacks.\n stopSensors();\n }", "public void stopTrainingMode() {\n\t\t\r\n\t}", "@Test\n\tpublic void testBindInactiveWithDevices() {\n\t\tstageInactive();\n\t\tModel contact = addContactSensor(true, false);\n\t\t\n\t\talarm.bind(context);\n\t\tassertDisarmed(addressesOf(contact));\n\t}", "public void stop() {\n\t\tsetPower(Motor.STOP);\r\n\t}", "@Override\n protected void initialize() {\n Robot.powerCellManipulator.stopIntake();\n }", "@Override\n\tpublic boolean gcClrLTNotify(BluetoothDevice device) {\n\t\treturn false;\n\t}", "@Override\r\n public void stop() {\r\n }", "@Override\r\n public void stop() {\r\n }", "@Override\n\tpublic boolean isBusy() throws DeviceException {\n\t\treturn false;\n\t}", "public void release() throws DeviceException {\n \t\ttry {\n \t\t\tcontroller.caput(holdChannel, 0, 2.0);\n \t\t} catch (Throwable e) {\n \t\t\tthrow new DeviceException(\"failed to release hole on robot\", e);\n \t\t}\n \t}", "@Override\n public void onStationary() {\n showToast(\"设备停止移动\");\n LogUtil.e(\"stop_move\");\n }", "@Override\n public void run() {\n scanLeDevice(false);\n }", "@Override\r\n public void stop() {\r\n\r\n }", "@Override\n public void resetDeviceConfigurationForOpMode() {\n\n }", "private void removeDevice(DeviceDescription description) {\r\n\t\tSystemID systemID = description.getSystemID();\r\n\t\tDeviceFigure applicationDevice = (DeviceFigure)applicationElements.get(systemID);\r\n\t\tif (applicationDevice != null) {\r\n\t\t\tapplicationDevice.setResolved(false);\r\n\t\t\tapplicationDevice.setAvailable(false);\r\n\t\t}\r\n\t}", "private void safeStop() {\n getRobotDrive().stop();\n //pneumatics.stop();\n }", "void stop() {\n this.currentDirection = 0;\n this.currentVelocity = 0;\n }", "private void handleSensorDeactivated() {\n if (securityRepository.getAlarmStatus() == AlarmStatus.PENDING_ALARM) {\n setAlarmStatus(AlarmStatus.NO_ALARM);\n }\n// switch (securityRepository.getAlarmStatus()) {\n// case PENDING_ALARM -> setAlarmStatus(AlarmStatus.NO_ALARM);\n// case ALARM -> setAlarmStatus(AlarmStatus.PENDING_ALARM);\n// }\n }", "public void emergencyStop(){\r\n\t\tif (grblPort.isConnected()){\r\n\t\t\tgrblPort.sendDataLine(\"\\u0018\");\r\n\t\t}\r\n\t}", "@Override\n\tpublic void onStop() {\n\t\tsuper.onStop();\n\n\t\tif (D)\n\t\t\tLog.e(TAG, \"-- ON STOP --\");\n\n\t\t// don't do anything bluetooth if debugging the user interface\n\t\tif (BTconnect)\n\t\t\tmyBT.cancel();\n\n\t\t// kill bt pitter and bump timer\n\t\tkillHandlers();\n\n\t\t// unregister the sensor listener\n\t\tmSensorManager.unregisterListener(mSensorListener);\n\n\t\t// shutoff bluetooth\n\t\tif (turnOffBluetoothShutdown) {\n\t\t\tmBluetoothAdapter.disable();\n\t\t}\n\t\t\n\t\t// save the checkbox states for the next run\n\t\t// We need an Editor object to make preference changes.\n\t\t// All objects are from android.context.Context\n\t\tSharedPreferences settings = getSharedPreferences(PREFS_NAME, 0);\n\t\tSharedPreferences.Editor editor = settings.edit();\n\t\teditor.putBoolean(\"ScreenOnOffEnable\", ScreenOnOffCheckBox.isChecked());\n\t\teditor.putBoolean(\"RetryConnEnable\", RetryConnBox.isChecked());\n\t\teditor.putString(\"MacAddress\", MAC_ADDRESS);\n\t\t// Commit the edits!\n\t\teditor.commit();\n\n\t}", "public void stop() {\n intake(0.0);\n }", "public final synchronized void cIY() {\n int i = 0;\n synchronized (this) {\n AppMethodBeat.m2504i(4443);\n C4990ab.m7417i(\"MicroMsg.Voip.VoipDeviceHandler\", \"stopDev, recorder: %s\", this.kzb);\n int i2;\n if (this.kzf == kze) {\n C46317a.Loge(\"MicroMsg.Voip.VoipDeviceHandler\", \"devcie stoped already.\");\n i2 = this.kzi;\n synchronized (i2) {\n if (this.kzb != null) {\n C4990ab.m7412e(\"MicroMsg.Voip.VoipDeviceHandler\", \"status DEV_STOP, but recorder still not null!!\");\n this.kzb.mo4590EB();\n }\n }\n } else {\n C46317a.Logi(\"MicroMsg.Voip.VoipDeviceHandler\", \"stop device..\");\n this.kzf = kze;\n if (this.sQa != null) {\n C46317a.Logd(\"MicroMsg.Voip.VoipDeviceHandler\", \"stop videodecode thread..\");\n this.sQa.sQd = true;\n C7305d.xDG.remove(this.sQa);\n this.sQa = null;\n }\n this.kzh = 1;\n this.sPR = 0;\n this.kzk = 1;\n this.sPW = 1;\n this.kzl = 0;\n this.sPX = 0;\n this.kzg = 92;\n this.sPM = 0;\n this.sPN = 0;\n this.sPO = 1;\n this.sPP = 0;\n this.kzj = 0;\n this.sNl.sPp.sUo = cIX();\n this.sNl.sPp.sUp = cIs();\n v2protocal v2protocal = this.sNl.sPp;\n if (this.kzb == null || this.sNl.sPp.sVH.sQo != (byte) 1) {\n i2 = -2;\n } else {\n i2 = this.kzb.mo4594EO();\n }\n v2protocal.sUs = i2;\n v2protocal v2protocal2 = this.sNl.sPp;\n if (this.sPL != null && this.sNl.sPp.sVH.sQo == (byte) 1) {\n i = this.sPL.cIt();\n }\n v2protocal2.sUz = (int) ((((float) C1407g.m2946KK().getStreamVolume(i)) / ((float) C1407g.m2946KK().getStreamMaxVolume(i))) * 100.0f);\n Object obj = this.kzi;\n synchronized (obj) {\n if (!(this.sPL == null || this.kzb == null)) {\n C7305d.m12298f(new C35354a(this.sPL, this.kzb), \"VoipDeviceHandler_stopDev\");\n C4990ab.m7416i(\"MicroMsg.Voip.VoipDeviceHandler\", \"do stop record\");\n }\n AppMethodBeat.m2505o(4443);\n }\n }\n AppMethodBeat.m2505o(4443);\n }\n }", "private void halt() {\n robot.leftFront.setPower(0);\n robot.leftBack.setPower(0);\n robot.rightFront.setPower(0);\n robot.rightBack.setPower(0);\n }", "public void stopFaceDetection() {\n /*\n r3 = this;\n r0 = r3.mFaceDetectionStarted;\n if (r0 == 0) goto L_0x002e;\n L_0x0004:\n r0 = r3.mCameraDevice;\n if (r0 != 0) goto L_0x0009;\n L_0x0008:\n goto L_0x002e;\n L_0x0009:\n r0 = r3.mCameraCapabilities;\n r0 = r0.getMaxNumOfFacesSupported();\n if (r0 <= 0) goto L_0x002d;\n L_0x0011:\n r0 = 0;\n r3.mFaceDetectionStarted = r0;\n r1 = r3.mCameraDevice;\n r2 = 0;\n r1.setFaceDetectionCallback(r2, r2);\n r1 = TAG;\n r2 = \"stopFaceDetection\";\n com.hmdglobal.app.camera.debug.Log.w(r1, r2);\n r1 = r3.mCameraDevice;\n r1.stopFaceDetection();\n r1 = com.hmdglobal.app.camera.util.SessionStatsCollector.instance();\n r1.faceScanActive(r0);\n L_0x002d:\n return;\n L_0x002e:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.hmdglobal.app.camera.VideoModule.stopFaceDetection():void\");\n }", "@Override\n public int targetDevice() {\n return 0;\n }", "private synchronized void stop()\n\t{\n\t\ttry\n\t\t{\n\t\t\tunregisterReceiver( mConnectivityReceiver );\n\t\t}\n\t\tcatch ( IllegalArgumentException e )\n\t\t{\n\t\t\te.printStackTrace();\n\n\t\t} // try/catch\n\n\t}", "protected void end() {\n \t//Robot.motor.disable();\n \tRobot.motor.disable();\n }", "@Override\n public boolean disconnectFromSensor() {\n return false;\n }", "@Override\r\n\tpublic void stop() {\n\t\t\r\n\t}" ]
[ "0.6853224", "0.64138854", "0.63149655", "0.63149387", "0.6155425", "0.59891075", "0.5893654", "0.5886364", "0.58244944", "0.5819748", "0.5801616", "0.57895803", "0.57771313", "0.57699585", "0.5769905", "0.5751069", "0.5747406", "0.5744902", "0.5730278", "0.5719845", "0.5684571", "0.5683461", "0.5663608", "0.5652276", "0.56479555", "0.56393695", "0.5634108", "0.56322217", "0.5626539", "0.56162494", "0.55519855", "0.5537964", "0.5528013", "0.55213696", "0.55201596", "0.5518512", "0.5517923", "0.55154514", "0.5513547", "0.549641", "0.54880005", "0.5485659", "0.5484731", "0.5480911", "0.54758495", "0.54437536", "0.54350454", "0.5423454", "0.54223377", "0.5415026", "0.5406567", "0.5399737", "0.53984076", "0.5397953", "0.5387541", "0.5386884", "0.53827256", "0.5381015", "0.53798276", "0.537727", "0.5368952", "0.53670794", "0.53661716", "0.5361107", "0.5358577", "0.5353966", "0.53487766", "0.534579", "0.53251374", "0.53138685", "0.53117967", "0.53098255", "0.530051", "0.5296832", "0.5293616", "0.52892345", "0.52800566", "0.5277941", "0.5277941", "0.52763516", "0.5270584", "0.52637184", "0.5261504", "0.5258518", "0.52575094", "0.5252554", "0.52478623", "0.52461857", "0.5245161", "0.5244401", "0.5233432", "0.5230765", "0.522644", "0.52251756", "0.52213436", "0.52168435", "0.52153933", "0.5214659", "0.52124333", "0.5212344" ]
0.5413765
50
Constructor for object class ProgrammerManaged
public ProgrammerManaged(String inFileString, String ouString, int bufferSize, ArrayList<String> keywords) { super(inFileString, ouString, bufferSize, keywords); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MonHoc() {\n }", "Constructor() {\r\n\t\t \r\n\t }", "public ProgramWilmaa()\n\t{\n\t}", "public StudentChoresAMImpl() {\n }", "public Constructor(){\n\t\t\n\t}", "public PnuematicSubsystem() {\n\n }", "public EnsembleLettre() {\n\t\t\n\t}", "public Professor()\n\t{\n\t\t//stuff\n\t}", "public Pitonyak_09_02() {\r\n }", "public Administrator() {\n // no-agrs constructor (ham dung khong tham so)\n }", "public SysSkillConferpo()\n {\n }", "public OOP_207(){\n\n }", "public ExamMB() {\n }", "public Excellon ()\n {}", "public Aanbieder() {\r\n\t\t}", "public Phl() {\n }", "public CyanSus() {\n\n }", "public Code() {\n\t}", "protected ModelAgent ()\n {\n this (\"ModelAgent\");\n\n }", "public Vaccine() {\n\t}", "public p7p2() {\n }", "public Produto() {}", "private JadTool() { }", "public Main() {\r\n\t}", "public Pencil() {\n\n }", "public ScahaManager (Profile _pro) {\r\n\t\t\r\n\t\t//\r\n\t\t// Here we are starting with basically an empty shell of an object..\r\n\t\t// all id's are zero\r\n\t\t//\r\n\t\tsuper(-1, _pro);\r\n\t\tID = -1;\r\n\t}", "public ConceptCodeManager()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tthis.initCoder();\r\n\t\t}\r\n\t\tcatch (final Exception ex)\r\n\t\t{\r\n\t\t\tConceptCodeManager.logger.error(\"Initialization of concept coding\" +\r\n\t\t\t\t\t\"process failed or error in main thread\" +\r\n\t\t\t\t\tex.getMessage(),ex);\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t}", "public Main() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\r\n\t}", "public ExpertiseEntity() {\n }", "public MParameterSystem() {\n\t\tsuper();\n\t}", "public Main() {\n\t\tsuper();\n\t}", "public TutorIndustrial() {}", "public Software() {\n }", "public Codegen() {\n assembler = new LinkedList<LlvmInstruction>();\n symTab = new SymTab();\n }", "public CommandMAN() {\n super();\n }", "public TVendor() {\r\n\t\t// Default constructor\r\n\t}", "public Program3 (String empName) {\r\n\t\tname = empName;\r\n\t}", "public Individual()\r\n\t{\r\n\t}", "public DomainKnowledge() {\r\n\t\tthis.construct(3);\r\n\t}", "public ProgramManager() {\n display = new DisplayManager();\n fileName = \"resources/aLargeFile\";\n try {\n fileReader = new BufferedReader(new FileReader(fileName));\n } catch (FileNotFoundException e) {\n logger.error(e.getMessage());\n }\n wordStorage = new WordStorage();\n }", "public CMN() {\n\t}", "public LSystemBuilderImpl() {\n\t\tthis.commands = new Dictionary();\n\t\tthis.productions = new Dictionary();\n\t\tunitLength = 0.1;\n\t\tunitLengthDegreeScaler = 1;\n\t\torigin = new Vector2D(0, 0);\n\t\tangle = 0;\n\t\taxiom = \"\";\n\t}", "public CEventProgram()\r\n {\r\n }", "public VMProcess() \n\t{\n\t\tsuper();\n\t}", "public static void __init() {\r\n\t\t__name__ = new str(\"code\");\r\n\r\n\t\t/**\r\n\t\t copyright Sean McCarthy, license GPL v2 or later\r\n\t\t*/\r\n\t\tdefault_0 = null;\r\n\t\tcl_Code = new class_(\"Code\");\r\n\t}", "public Persona() {\n\t}", "public Achterbahn() {\n }", "public CircleCADTool() {\r\n }", "public Main() {\n // Required empty public constructor\n }", "public Programa(ProgramaTokenManager tm) {\n if (jj_initialized_once) {\n System.out.println(\"ERROR: Second call to constructor of static parser. \");\n System.out.println(\" You must either use ReInit() or set the JavaCC option STATIC to false\");\n System.out.println(\" during parser generation.\");\n throw new Error();\n }\n jj_initialized_once = true;\n token_source = tm;\n token = new Token();\n jj_ntk = -1;\n jj_gen = 0;\n for (int i = 0; i < 2; i++) jj_la1[i] = -1;\n }", "public ProductCode() {\n }", "private HYCOM() {\n }", "public BuiltBy() {\n }", "public Main() {\r\n }", "public Main() {\r\n }", "public Clade() {}", "public Merchant() {\n\n\t}", "private Main() {\n\n super();\n }", "private TMCourse() {\n\t}", "public Developer(String developerKey,int pId,String firstName, String lastName) {\r\n\tsuper(pId,firstName,lastName);\r\n\tthis.developerKey=developerKey;\r\n\t\r\n}", "public Coche() {\n super();\n }", "public _355() {\n\n }", "@Ignore\n public Proba() {\n }", "public Hacker() {\r\n \r\n }", "public ConsommersResource() {\r\n }", "Program createProgram();", "Program createProgram();", "Program createProgram();", "public Employee(){\n\t\t\n\t}", "public Employee(){\n\t\t\n\t}", "public Main() {\n \n \n }", "public Product() {\n\t}", "public NarrativeStructInterpreter()\n {\n\n }", "public Alojamiento() {\r\n\t}", "private AlgorithmRegistryCLI() {\n super();\n }", "public MMCAgent() {\n\n\t}", "public Manusia() {}", "public Implementor(){}", "public OTFModelGeneration(Program program) {\n\t\tsuper();\n\t\tthis.program = program;\n\t}", "public MEKeyTool() {\n keystore = new PublicKeyStoreBuilderBase();\n }", "public Laboratorio() {}", "public ClassBundle() {\n }", "public ObjectFactory() {\n super(grammarInfo);\n }", "public Odontologo() {\n }", "public Manager() {\n\t\tthis(\"Nom par defaut\", \"Prenom par defaut\", 0);\n\t}", "public ManagedHsmProperties() {\n }", "public OVChipkaart() {\n\n }", "private CommandLine() {\n\t}", "public ApplicationCreator() {\n }", "public Allocation() {\n initComponents();\n }", "public Orbiter() {\n }", "public Ov_Chipkaart() {\n\t\t\n\t}", "public LanguageSkill() {\n\t}", "public Hazmat() {\n }", "public Livro() {\n\n\t}", "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}", "public AdministratorImpl() {\n\n\t}", "private Instantiation(){}", "public LaundryCard() {\n\t}", "public Calculator()\n {\n \n }", "private SingleObject()\r\n {\r\n }" ]
[ "0.6625184", "0.6550024", "0.6548299", "0.6537601", "0.64704967", "0.6437347", "0.63909817", "0.639062", "0.6361363", "0.6350232", "0.63209134", "0.63179713", "0.6312906", "0.62934536", "0.62744176", "0.62637186", "0.6254828", "0.62520456", "0.6233898", "0.62180036", "0.62161016", "0.6215716", "0.6210574", "0.6210554", "0.6201581", "0.6189897", "0.6173698", "0.6169977", "0.6166078", "0.61632615", "0.61555296", "0.61472183", "0.61425394", "0.6136243", "0.6129349", "0.6123491", "0.61072093", "0.6106406", "0.6104075", "0.60997486", "0.60991937", "0.6095558", "0.6089661", "0.60819536", "0.6079191", "0.6074243", "0.6070953", "0.60526454", "0.6051851", "0.6049075", "0.6046435", "0.6040389", "0.6039481", "0.60332984", "0.60332984", "0.6024643", "0.60246295", "0.6022096", "0.60162157", "0.6004661", "0.59998816", "0.5998546", "0.5994658", "0.59927833", "0.59902793", "0.59876895", "0.59876895", "0.59876895", "0.59871686", "0.59871686", "0.5986742", "0.59852517", "0.59849495", "0.59838897", "0.5980974", "0.5977045", "0.5974854", "0.596655", "0.59664005", "0.59631807", "0.5963152", "0.59595996", "0.59586257", "0.59521234", "0.5945708", "0.59424", "0.5941496", "0.5941211", "0.5939533", "0.5938121", "0.5936192", "0.59262764", "0.5925998", "0.592141", "0.59175575", "0.5916644", "0.5915686", "0.5912054", "0.59104425", "0.5909383", "0.59092605" ]
0.0
-1
Read TextFile using Programmermanaged ByteArray NIO method and save as chank in a ArrayList
@Override public void ReadTextFile() { // Using a programmer-managed byte-array try (FileInputStream in = new FileInputStream(inFileStr)) { startTime = System.nanoTime(); byte[] byteArray = new byte[bufferSize]; int bytesCount; while ((bytesCount = in.read(byteArray)) != -1) { snippets.add(new String(byteArray)); } in.close(); } catch (IOException ex) { ex.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List readFile(String pathToFile);", "@Override\n\tpublic void ReadTextFile() {\n\t\t// Using Buffered Stream I/O\n\t\ttry (BufferedInputStream in = new BufferedInputStream(new FileInputStream(inFileStr))) {\n\t\t\tbyte[] contents = new byte[bufferSize];\n\t\t\tstartTime = System.nanoTime();\n\t\t\tint bytesCount;\n\t\t\twhile ((bytesCount = in.read(contents)) != -1) {\n\t\t\t\tsnippets.add(new String(contents));\n\t\t\t}\n\t\t\tin.close();\n\t\t} catch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}", "@SuppressWarnings(\"unchecked\")\n public ArrBag( String infileName ) throws Exception\n {\n count = 0; // i.e. logical size, actual number of elems in the array\n BufferedReader infile = new BufferedReader( new FileReader( infileName ) );\n while ( infile.ready() )\n this.add( (T) infile.readLine() );\n infile.close();\n }", "public List<String> readFileContents(String filePath) throws APIException;", "public List<String> readFileIntoList(String filepath) throws IOException;", "protected void readCharacters() {\n try {\r\n File f = new File(filePath);\r\n FileInputStream fis = new FileInputStream(f);\r\n ObjectInputStream in = new ObjectInputStream(fis);\r\n characters = (List<character>) in.readObject();\r\n in.close();\r\n }\r\n catch(Exception e){}\r\n adapter.addAll(characters);\r\n }", "protected abstract Object readFile(BufferedReader buf) throws IOException, FileParseException;", "public static void readFromFile(ArrayList<String> sArrayList, Context context){\n\n int i=0;\n try{\n InputStream inputStream = context.openFileInput(TxtName);\n\n if(inputStream!=null) {\n InputStreamReader inputStreamReader = new InputStreamReader(inputStream);\n BufferedReader bufferedReader = new BufferedReader(inputStreamReader);\n String receivedString = \"\";\n\n while((receivedString = bufferedReader.readLine())!=null){\n sArrayList.set(i,receivedString);\n Log.d(\"fileContent\", \"readFromFile: \"+sArrayList.get(i)+\"\\n\");\n i++;\n }\n inputStream.close();\n }\n\n } catch (FileNotFoundException e) {\n Log.e(\"login activity\", \"File not found: \" + e.toString());\n } catch (IOException e) {\n Log.e(\"login activity\", \"Can not read file: \" + e.toString());\n }\n\n }", "static List<String> fileReader(String fileName){\n \n \n //Read a file and store the content in a string array.\n File f = new File(fileName);\n BufferedReader reader = null;\n String tempString = null;\n List<String> fileContent = new ArrayList<String>();\n //String[] fileContent = null;\n //int i = 0;\n \n try {\n reader = new BufferedReader(new FileReader(f));\n while ((tempString = reader.readLine()) != null){\n //while ((fileContent[i] = reader.readLine()) != null){\n fileContent.add(tempString);\n //i++;\n }\n reader.close();\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n finally{\n if (reader != null){\n try{\n reader.close();\n }\n catch(IOException e){\n e.printStackTrace();\n }\n }\n }\n \n return fileContent;\n \n }", "private ArrayList loadfile(String file_path) throws Exception{\n\t\tFileInputStream fis = null;\n\t\tBufferedReader br = null;\n\t\tArrayList filedata = new ArrayList();\n\t\ttry {\n\t\t\tFile file = new File(file_path);\n\t\t\tfis = new FileInputStream(file);\n\t\t\tbr = new BufferedReader(new InputStreamReader(fis, charset));\n\t\t\tint i = 0;\n\t\t\twhile (br.ready()) {\n\t\t\t\tString line_data = br.readLine();\n\t\t\t\tif (line_data == null) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tnode_line_data nd = new node_line_data(line_data, i++);\n\t\t\t\tfiledata.add(nd);\n\t\t\t}\n\t\t\treturn filedata;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow new Exception(e.getMessage());\n\t\t}\n\t\tfinally {\n\t\t\ttry {\n\t\t\t\tif (br != null)\n\t\t\t\t\tbr.close();\n\t\t\t\tif (fis != null)\n\t\t\t\t\tfis.close();\n\t\t\t}\n\t\t\tcatch (IOException ex) {\n\t\t\t}\n\t\t}\n\t}", "public ArrayList<String> readFile() {\n data = new ArrayList<>();\n String line = \"\";\n boolean EOF = false;\n\n try {\n do {\n line = input.readLine();\n if(line == null) {\n EOF = true;\n } else {\n data.add(line);\n }\n } while(!EOF);\n } catch(IOException io) {\n System.out.println(\"Error encountered.\");\n }\n return data;\n }", "private Object[] fetchTextFile(String filePathString){\n try (Stream<String> stream = Files.lines(Paths.get(filePathString))) {\n return stream.toArray();\n }\n catch (IOException ioe){\n System.out.println(\"Could not find file at \" + filePathString);\n return null;\n }\n\n }", "byte[] readBytes();", "List<T> read();", "public static List<List<String>> readFile() {\r\n List<List<String>> out = new ArrayList<>();\r\n File dir = new File(\"./tmp/data\");\r\n dir.mkdirs();\r\n File f = new File(dir, \"storage.txt\");\r\n try {\r\n f.createNewFile();\r\n Scanner s = new Scanner(f);\r\n while (s.hasNext()) {\r\n String[] tokens = s.nextLine().split(\"%%%\");\r\n List<String> tokenss = new ArrayList<>(Arrays.asList(tokens));\r\n out.add(tokenss);\r\n }\r\n return out;\r\n } catch (IOException e) {\r\n throw new Error(\"Something went wrong: \" + e.getMessage());\r\n }\r\n }", "private List<String> readFile(String path) throws IOException {\n return Files.readAllLines (Paths.get (path), StandardCharsets.UTF_8);\n }", "public void readFile();", "@SuppressWarnings(\"unchecked\")\n public ArrayList readVector() throws IOException {\n int length = readVectorHeader();\n ArrayList result = new ArrayList(length);\n for (int i = 0; i < length; i++) {\n result.add(read());\n }\n return result;\n }", "String readText(FsPath path);", "private static String[] readLines(InputStream f) throws IOException {\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(f, \"US-ASCII\"));\n\t\tArrayList<String> lines = new ArrayList<String>();\n\t\tString line;\n\t\twhile ((line = r.readLine()) != null)\n\t\t\tlines.add(line);\n\t\treturn lines.toArray(new String[0]);\n\t}", "public CompletionStage<String> readFile() {\n\n CompletableFuture<String> future = new CompletableFuture<>();\n StringBuffer sb = new StringBuffer();\n\n vertx.fileSystem().rxReadFile(path)\n .flatMapObservable(buffer -> Observable.fromArray(buffer.toString().split(\"\\n\")))\n .skip(1)\n .map(s -> s.split(\",\"))\n .map(data-> new Customer(Integer.parseInt(data[0]),data[1],data[2]))\n .subscribe(\n data -> sb.append(data.toString()),\n error -> System.err.println(error),\n () -> future.complete(sb.toString()));\n\n\n return future;\n\n }", "public byte[] readRawList() throws IOException {\n Buffer buffer = new Buffer(new byte[] { (byte) Type.LIST.code });\n byte[] bytes = readRaw();\n while (bytes != null) {\n buffer.append(bytes);\n bytes = readRaw();\n }\n buffer.append(new byte[] { (byte) Type.MARKER.code });\n return buffer.get();\n }", "static void read()\n\t\t{\n\n\n\t\t\tString content=new String();\n\t\t\ttry {\n\t\t\t\tFile file=new File(\"Dic.txt\");\n\t\t\t\tScanner scan=new Scanner(file);\n\t\t\t\twhile(scan.hasNextLine()) {\n\t\t\t\t\tcontent=scan.nextLine();\n\t\t\t\t//\tSystem.out.println(content);\n\n\t\t\t\t//\tString [] array=content.split(\" \");\n\t\t\t\t\tlist.add(content.trim());\n\n\t\t\t\t}\n\t\t\t\tscan.close(); \n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.out.println(e);\n\t\t\t}\n\n\n\t\t}", "public abstract List<T> readObj(String path);", "String[] readFile(String path) {\n ArrayList<String> list = new ArrayList<>();\n String[] output = null;\n Scanner reader;\n File file;\n\n try {\n file = new File(path);\n reader = new Scanner(file);\n while (reader.hasNextLine()) {\n list.add(reader.nextLine());\n }\n output = new String[list.size()];\n for (int i = 0; i < list.size(); i++) output[i] = list.get(i);\n reader.close();\n } catch (FileNotFoundException e) {\n System.out.println(\"File not found exception\");\n }\n return output;\n }", "private String[] readFile(BufferedReader reader) throws IOException {\r\n // Read each line in the file, add it to the ArrayList lines\r\n ArrayList<String> lines = new ArrayList<String>();\r\n String line;\r\n while ((line = reader.readLine()) != null) {\r\n lines.add(line);\r\n }\r\n reader.close();\r\n // Convert the list to an array of type String and return\r\n String[] ret = new String[1];\r\n return (lines.toArray(ret));\r\n }", "@SuppressWarnings(\"unchecked\")\n public List readList() throws IOException {\n List list = new ArrayList();\n Object obj = read();\n while (obj != null) {\n list.add(obj);\n obj = read();\n }\n return list;\n }", "TraceList read(File file) throws IOException;", "public static void read6() {\n List<String> list = new ArrayList<>();\n\n try (BufferedReader br = Files.newBufferedReader(Paths.get(filePath))) {\n\n //br returns as stream and convert it into a List\n list = br.lines().collect(Collectors.toList());\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n list.forEach(System.out::println);\n }", "private static ArrayList<String> readFile() throws ApplicationException {\r\n\r\n ArrayList<String> bookList = new ArrayList<>();\r\n\r\n File sourceFile = new File(FILE_TO_READ);\r\n try (BufferedReader input = new BufferedReader(new FileReader(sourceFile))) {\r\n\r\n if (sourceFile.exists()) {\r\n LOG.debug(\"Reading book data\");\r\n String oneLine = input.readLine();\r\n\r\n while ((oneLine = input.readLine()) != null) {\r\n\r\n bookList.add(oneLine);\r\n\r\n }\r\n input.close();\r\n } else {\r\n throw new ApplicationException(\"File \" + FILE_TO_READ + \" does not exsit\");\r\n }\r\n } catch (IOException e) {\r\n LOG.error(e.getStackTrace());\r\n }\r\n\r\n return bookList;\r\n\r\n }", "protected List<String> readFile()\n {\n // Base size 620 for Google KML icons. This might be slow for larger\n // sets.\n List<String> lines = New.list(620);\n try (BufferedReader reader = new BufferedReader(\n new InputStreamReader(getClass().getResourceAsStream(myImageList), StringUtilities.DEFAULT_CHARSET)))\n {\n for (String line = reader.readLine(); line != null; line = reader.readLine())\n {\n lines.add(line);\n }\n }\n catch (IOException e)\n {\n LOGGER.warn(e.getMessage());\n }\n return lines;\n }", "public static ArrayList<String> textToStr(String path) throws IOException {\n ArrayList<String> lines = new ArrayList<>();\n try{\n File file = new File(path);\n FileReader fr = new FileReader(file);\n BufferedReader bufr = new BufferedReader(fr);\n String line = \"\";\n while((line = bufr.readLine()) != null){\n if(line.trim() != null && line.trim().length() > 0){\n lines.add(line.trim());\n }\n }\n return lines;\n }\n catch (Exception e){\n System.out.println(\"The path is wrong or the input file does not exist. Try again.\\n\");\n return null;\n }\n }", "public static ArrayList<MonitoredData> readFileData(){\n ArrayList<MonitoredData> data = new ArrayList<>();\n List<String> lines = new ArrayList<>();\n try (Stream<String> stream = Files.lines(Paths.get(\"Activities.txt\"))) {\n lines = stream\n .flatMap((line->Stream.of(line.split(\"\\t\\t\"))))\n .collect(Collectors.toList());\n for(int i=0; i<lines.size()-2; i+=3){\n MonitoredData md = new MonitoredData(lines.get(i), lines.get(i+1), lines.get(i+2));\n data.add(md);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n //data.forEach(System.out::println);\n return data;\n }", "public ArrayList<String> readItem();", "List<byte[]> asByteArrayList();", "public List<Stock> readFile() throws IOException\n {\n \t //System.out.println(\"hhh\");\n \t //List<Stock> listStock = mapper.readValue(file, new TypeReference<List<Stock>>() {});\n \t \n \t List<Stock> listStock = mapper.readValue(file, new TypeReference<List<Stock>>(){});\n \t\n\t\treturn listStock;\n }", "static public ArrayList<ChineseCharacter> readFromFile()\r\n\t {\n \t \r\n\t\t InputStream stream = LoadCharactersFromFile.class.getClassLoader().getResourceAsStream(\"files/charactersSet1.txt\");\r\n\t\t\t\t \r\n\t\t\t\r\n\t System.out.println(\"==========> \"+stream != null);\r\n\t // stream = LoadCharactersFromFile.class.getClassLoader().getResourceAsStream(\"SomeTextFile.txt\");\r\n\t // System.out.println(stream != null);\r\n\t \t// getResourceAsStream(\"file.txt\")\r\n\t \t \r\n\t // Resource resource = new ClassPathResource(\"com/example/Foo.class\");\r\n\t \r\n\t String filePath = stream.toString();\r\n\t\t \r\n\t System.out.println(\"filePath: \"+filePath);\r\n\t BufferedReader br = new BufferedReader(new InputStreamReader(stream));\r\n\t String line = \"\";\r\n\t String cvsSplitBy = \",\";\r\n\r\n\t \r\n\t \r\n\t ArrayList<ChineseCharacter> chineseCharacterArraylist = new ArrayList<ChineseCharacter>() ;\r\n\t int charactercount =0;\r\n\t try {\r\n\r\n\t // br = new BufferedReader(new FileReader(filePath));\r\n\t int count = 1;\r\n\t int listLength = 0;\r\n\t \r\n\t // ChineseCharacter character;\r\n\t String listtitle = \"\";\r\n\t ArrayList<String> pinyinlistArray = new ArrayList<String>();\r\n\t \r\n\t ArrayList<Character> hanzilistArray = new ArrayList<Character>() ;\r\n\t int linecount = 0;\r\n\t \r\n\t while ((line = br.readLine()) != null) \r\n\t {\r\n\t \t linecount++;\r\n\t\t\t \r\n\t \t \r\n\t\t\t //listtitle: characters: pinyin: \r\n\t\t\t // use comma as separator\r\n\t\t\t \r\n\t\t\t if(count ==1)\r\n\t\t\t {\r\n\t\t\t \t \r\n\t\t\t \t String[] listtitleLine = line.split(cvsSplitBy);\r\n\t\t\t\t if(listtitleLine[0].equals(\"listtitle:\"))\r\n\t\t\t\t {\t\r\n\t\t\t\t \t \r\n\t\t\t\t \t listtitle = listtitleLine[1];\r\n\t\t\t\t \t \r\n\t\t\t\t \r\n\t\t\t\t \r\n\t\t\t\t \r\n\t\t\t\t }\r\n\t\t\t\t \r\n\t\t\t\t if(linecount==1)\r\n\t\t\t\t {\r\n\t\t\t\t \t listtitle = listtitleLine[1];\r\n\t\t\t\t \t \r\n\t\t\t\t\t System.out.println(\"linecount==1, Linetype: \" + listtitleLine[0] + \" value: \" + listtitle);\r\n\t\t\t\t\t \r\n\t\t\t\t }\r\n\t\t\t\t \r\n\t\t\t\t \r\n\t\t\t }//if(count ==1)\r\n\t\t\t \r\n\t\t\t if(count ==2)\r\n\t\t\t {\r\n\t\t\t \t String[] charactersLine = line.split(cvsSplitBy);\r\n\t\t\t\t if(charactersLine[0].equals(\"characters:\"))\r\n\t\t\t\t {\t\r\n\t\t\t\t \t listLength = charactersLine.length;\r\n\t\t\t\t \r\n\t\t\t\t \t for(int i =0; i<listLength-1; i++)\r\n\t\t\t \t\t\t {\r\n\t\t\t\t \t\t charactersLine[i+1] = charactersLine[i+1].replace(\" \", \"\");\r\n\t\t\t\t \t\t// charactersLine[i+1] = charactersLine[i+1].replace(\",\", \"\");//remove all comma\r\n\t\t\t\t \t\t \r\n\t\t\t\t \t\t hanzilistArray.add(charactersLine[i+1].charAt(0));\r\n\t\t\t \t\t\t\t \r\n\t\t\t \t\t\t\t \r\n\t\t\t \t\t\t }\r\n\t\t\t\t \t System.out.print(\"\\n\"); \r\n\t\t\t\t \r\n\t\t\t\t \r\n\t\t\t\t }\r\n\t\t\t\t \r\n\t\t\t }//if(count ==2)\r\n\t\t\t \r\n\t\t\t if(count ==3)\r\n\t\t\t {\r\n\t\t\t \t String[] pinyinLine = line.split(cvsSplitBy);\r\n\t\t\t\t if(pinyinLine[0].equals(\"pinyin:\"))\r\n\t\t\t\t {\t\r\n\t\t\t\t \t //check pinyin and characters have same no. of elements\r\n\t\t\t\t \t if (listLength == pinyinLine.length)\r\n\t\t\t\t \t {\r\n\t\t\t\t \t\t \r\n\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t for(int i =0; i<listLength-1; i++)\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 \t pinyinlistArray.add(pinyinLine[i+1]);\r\n\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\t ChineseCharacter character = new ChineseCharacter(listtitle,hanzilistArray.get(i),pinyinlistArray.get(i)); \r\n\t\t\t\t\t \t\t\t\t \r\n\t\t\t\t\t \t\t\t\t chineseCharacterArraylist.add(charactercount, character);;\r\n\t\t\t\t\t \t\t\t\t// chineseCharacters[charactercount] = character;\r\n\t\t\t\t\t \t\t\t\t \r\n\t\t\t\t\t \t\t\t\t charactercount++; \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\t \r\n\t\t\t\t\t\t\t \r\n\t\t\t\t \t } \r\n\t\t\t\t \t else \r\n\t\t\t\t \t {\r\n\t\t\t\t \t\t System.out.println(\"listLength != pinyinLine.length!!..unable to add list: \"+ listtitle);\r\n\t\t\t\t \t }\r\n\t\t\t\t \r\n\t\t\t\t }\r\n\t\t\t\t \r\n\t\t\t\t hanzilistArray.clear();\r\n\t \t\t\t\t pinyinlistArray.clear(); \r\n\t\t\t }//if(count ==3)\r\n\t\t\t \r\n\t\t\t \r\n\t\t\t if(count == 3) { count = 1;}\r\n\t\t\t else{ count++;}\r\n\t\t\t \r\n\t\t\t \r\n\t }//while\r\n\r\n\t \r\n\t \r\n\t \r\n\t \r\n\t }\r\n\t catch (FileNotFoundException e) \r\n\t {\r\n\t e.printStackTrace();\r\n\t } \r\n\t catch (IOException e) \r\n\t {\r\n\t e.printStackTrace();\r\n\t } finally \r\n\t {\r\n\t if (br != null) \r\n\t {\r\n\t try \r\n\t {\r\n\t br.close();\r\n\t } catch (IOException e) \r\n\t {\r\n\t e.printStackTrace();\r\n\t }\r\n\t }\r\n\t }\r\n\t\t \r\n\t \r\n\t return chineseCharacterArraylist;\r\n\t }", "byte[] readBytes(File f) throws Exception {\n\n byte[] b_total = new byte[actualSize];\n int step = actualSize / N;\n\n byte[] b = new byte[step];\n ByteBuffer bb = ByteBuffer.allocate(step);\n\n for (int i = 0; i < N; ++i) {\n \n // READ NEXT PORTION OF BYTES VIA FIS:\n\n fis.read(b);\n System.arraycopy(b, 0, b_total, i * step, b.length);\n\n ++i;\n \n if (i < N) {\n\n bb.clear(); // needed to prepare ByteBuffer for channel read / put operations \n\n // READ NEXT PORTION OF BYTES VIA CHANNEL:\n\n inChannel.read(bb);\n byte[] arr = bb.array();\n System.arraycopy(arr, 0, b_total, i * step, arr.length);\n }\n }\n\n return b_total;\n }", "private ByteList fread(RubyThread thread, int length) throws IOException, BadDescriptorException {\n Stream stream = openFile.getMainStreamSafe();\n int rest = length;\n waitReadable(stream);\n ByteList buf = blockingFRead(stream, thread, length);\n if (buf != null) {\n rest -= buf.length();\n }\n while (rest > 0) {\n waitReadable(stream);\n openFile.checkClosed(getRuntime());\n stream.clearerr();\n ByteList newBuffer = blockingFRead(stream, thread, rest);\n if (newBuffer == null) {\n // means EOF\n break;\n }\n int len = newBuffer.length();\n if (len == 0) {\n // TODO: warn?\n // rb_warning(\"nonblocking IO#read is obsolete; use IO#readpartial or IO#sysread\")\n continue;\n }\n if (buf == null) {\n buf = newBuffer;\n } else {\n buf.append(newBuffer);\n }\n rest -= len;\n }\n if (buf == null) {\n return ByteList.EMPTY_BYTELIST.dup();\n } else {\n return buf;\n }\n }", "protected abstract void readFile();", "public List<Cuenta> leerArchivoToList(InputStream archivo);", "private static ByteBuffer internalReadFileAsByteArray(String path) throws IOException {\n ByteBuffer byteBuffer = null;\n Path filePath = FileSystems.getDefault().getPath(path);\n try (\n FileChannel fileChannel = FileChannel.open(filePath, StandardOpenOption.READ);) {\n Long size = fileChannel.size();\n if (size > Integer.MAX_VALUE) {\n throw new IOException(MessageFormat.format(\n \"File {0} is too large. Its size is {1,number,integer} bytes which is larger \" +\n \"then this method could handle ( {2,number,integer})\", path, size, Integer.MAX_VALUE));\n }\n byteBuffer = ByteBuffer.allocate(size.intValue());\n int readBytes = 0;\n int totalReadBytes = 0;\n int failureCounter = 0;\n while ((readBytes = fileChannel.read(byteBuffer)) >= 0 && totalReadBytes < size.intValue()) {\n if (readBytes > 0) {\n totalReadBytes += readBytes;\n if (failureCounter > 0) {\n failureCounter = 0;\n }\n } else {\n if (++failureCounter >= MAX_READ_FAILURES) {\n throw new IOException(MessageFormat.format(\"File {0} could not be read for unknown reason\", path));\n }\n }\n }\n }\n return (ByteBuffer) byteBuffer.flip();\n }", "private String[] readFile(InputStream stream) throws StorageException {\r\n try {\r\n return readFile(new BufferedReader(new InputStreamReader(stream)));\r\n } catch (Exception exception) {\r\n throw new StorageException(\"Cannot read file \");\r\n }\r\n }", "public Vector<String> read(String path) throws FileNotFoundException, IOException {\n file = new File(path);\n fread = new FileReader(file);\n buf = new BufferedReader(fread);\n\n String temp;\n Vector<String> working = new Vector<String>();\n\n while (true) {\n temp = buf.readLine();\n\n if (temp == null) {\n break;\n } else {\n working.add(temp);\n }\n }\n\n return working;\n }", "private void getDataLists(String path)\n\t{\n\t\ttry\n\t\t{\n\t\t\tFile file = new File(path);\n\t\t\tfile.createNewFile();\n\t\t\tBufferedReader fileReader = new BufferedReader(new FileReader(file));\n\t\t\t\n\t\t\tString str = null;\n\t\t\twhile((str = fileReader.readLine()) != null)\n\t\t\t{\n\t\t\t\tthis.dataList.push(str);\n\t\t\t}\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\tSystem.out.println(\"Failed : data list read\");\n\t\t}\n\t}", "public String[] openFile() throws IOException\n\t{\n\t\t//Creates a FileReader and BufferedReader to read from the file that you pass it\n\t\tFileReader fr = new FileReader(path);\n\t\tBufferedReader textReader = new BufferedReader(fr);\n\t\t\n\t\t//Set the variable to the number of lines in the text file through the function in this class that is defined below\n\t\tnumberOfLines = readLines();\n\t\t//Creates an array of strings with size of how many lines of data there are in the file\n\t\tString[] textData = new String[numberOfLines];\n\t\t\n\t\t//Loop to read the lines from the text file for the song data\n\t\tfor (int i = 0; i < numberOfLines; i++)\n\t\t{\n\t\t\t//Read data from song file and into the string list\n\t\t\ttextData[i] = textReader.readLine();\n\t\t}\n\t\t\n\t\t//Close the BufferedReader that was opened\n\t\ttextReader.close();\n\t\t\n\t\t//Return the read data from the text file in the form of a string array\n\t\treturn textData;\n\t}", "static List<String> fileToList(){\n List<String> contacts = null;\n try {\n Path contactsListPath = Paths.get(\"contacts\",\"contacts.txt\");\n contacts = Files.readAllLines(contactsListPath);\n } catch (IOException ioe){\n ioe.printStackTrace();\n }\n return contacts;\n }", "byte[] readPiece(int index){\n return Arrays.copyOfRange(file_pieces,index*piece_size,piece_size*(index+1)-1);\n }", "private List<String> init(Path path) throws Exception {\n List<String> lines = Files.readAllLines(path);\n if (lines.size() != 0) {\n int numberOfFields = Integer.parseInt(lines.get(0));\n fillFieldsList(lines, numberOfFields);\n fillPlayersList(lines, numberOfFields);\n } else {\n throw new FileEmptyException();\n }\n return lines;\n }", "private String getFileContents ()\n {\n final String s = m_buffers.values ()//\n .stream ()//\n .flatMap (List::stream)//\n .collect (Collectors.joining ());\n\n return s;\n }", "List<String[]> readAll();", "private void takeInFile() {\n System.out.println(\"Taking in file...\");\n //Reads the file\n String fileName = \"messages.txt\";\n String line = null;\n try {\n FileReader fileReader = new FileReader(fileName);\n \n BufferedReader bufferedReader = new BufferedReader(fileReader);\n\n //Adds each line to the ArrayList\n int i = 0;\n while ((line = bufferedReader.readLine()) != null) {\n lines.add(line);\n //System.out.println(line);\n i++;\n }\n \n bufferedReader.close();\n } catch (FileNotFoundException ex) {\n System.out.println(\"Unable to open file '\" + fileName + \"'\");\n } catch (IOException ex) {\n System.out.println(\"Error reading file '\" + fileName + \"'\");\n }\n System.out.println(\"Done taking in file...\");\n }", "public static ArrayList<String> readToString(String filePath) {\n\t\tFile file = new File(filePath);\n\t\tArrayList<String> res = new ArrayList<String>();\n\t\tif (!file.exists()) {\n\t\t\treturn res;\n\t\t}\n\t\ttry {\n\t\t\tFileReader fr = new FileReader(file);\n\t\t\tBufferedReader br = new BufferedReader(fr);\n\t\t\tString str = null;\n\t\t\twhile ((str = br.readLine()) != null) {\n\t\t\t\tres.add(str);\n\t\t\t}\n\t\t\tfr.close();\n\t\t\tbr.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\treturn res;\n\t}", "public static ArrayList<String> readInputTxtFile(ArrayList<String> inputList, FilePath pathStr) throws IOException {\n\t\tinputList = new ArrayList<String>();\n\t\tFile file = new File(pathStr.getPathStr() + \"input.txt\");\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(file), \"euc-kr\"));\n\n\t\tString resultStr = null;\n\t\twhile ((resultStr = br.readLine()) != null) {\n\t\t\tinputList.add(resultStr); // 너를 사랑해!\n\t\t\t// System.out.println(resultStr);\n\t\t}\n\t\treturn inputList;\n\t}", "public String[] ReadAllFileLines(String sFilePath) throws Exception {\n File f = null;\n FileInputStream fstream = null;\n DataInputStream in = null;\n BufferedReader br = null;\n String strLine = \"\";\n String[] stemp = null;\n StringBuffer strbuff = new StringBuffer();\n try {\n //getting file oject\n f = new File(sFilePath);\n if (f.exists()) {\n //get object for fileinputstream\n fstream = new FileInputStream(f);\n // Get the object of DataInputStream\n in = new DataInputStream(fstream);\n //get object for bufferreader\n br = new BufferedReader(new InputStreamReader(in, \"UTF-8\"));\n //Read File Line By Line\n while ((strLine = br.readLine()) != null) {\n strbuff.append(strLine + \"##NL##\");\n }\n\n stemp = strbuff.toString().split(\"##NL##\");\n } else {\n throw new Exception(\"File Not Found!!\");\n }\n\n return stemp;\n } catch (Exception e) {\n throw new Exception(\"ReadAllFileLines : \" + e.toString());\n } finally {\n //Close the input stream\n try {\n br.close();\n } catch (Exception e) {\n }\n try {\n fstream.close();\n } catch (Exception e) {\n }\n try {\n in.close();\n } catch (Exception e) {\n }\n }\n }", "public static List<Integer> readBinaryFile(String filename) throws IOException\n {\n List<Integer> binary = new ArrayList<>();\n\n FileInputStream inputStream = new FileInputStream(filename);\n BufferedInputStream bufferedInputStream = new BufferedInputStream(inputStream);\n\n byte[] byteInput = bufferedInputStream.readAllBytes();\n\n String stringInput = new String(byteInput);\n\n for(char c : stringInput.toCharArray())\n {\n binary.add((int) (c - '0'));\n }\n\n return binary;\n }", "String[] readLines(Object packet);", "private void ReadInputFile(String filePath){\n String line;\n\n try{\n BufferedReader br = new BufferedReader(new FileReader(filePath));\n while((line = br.readLine()) != null){\n //add a return at each index\n inputFile.add(line + \"\\r\");\n }\n\n\n }catch(IOException ex){\n System.out.print(ex);\n }\n\n }", "private void readFromInternalStorage() {\n ArrayList<GeofenceObjects> returnlist = new ArrayList<>();\n if (!isExternalStorageReadable()) {\n System.out.println(\"not readable\");\n } else {\n returnlist = new ArrayList<>();\n try {\n FileInputStream fis = openFileInput(\"GeoFences\");\n ObjectInputStream ois = new ObjectInputStream(fis);\n returnlist = (ArrayList<GeofenceObjects>) ois.readObject();\n ois.close();\n System.out.println(returnlist);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n currentList = returnlist;\n }", "private byte[] readBuffer( DataInputStream in ) throws IOException{\n String factory = in.readUTF();\n int count = in.readInt();\n \n ByteArrayOutputStream out = new ByteArrayOutputStream( factory.length()*4 + 4 + count );\n DataOutputStream dout = new DataOutputStream( out );\n \n dout.writeUTF( factory );\n dout.writeInt( count );\n \n for( int i = 0; i < count; i++ ){\n int read = in.read();\n if( read == -1 )\n throw new EOFException( \"unexpectetly reached end of file\" );\n dout.write( read );\n }\n \n dout.close();\n return out.toByteArray();\n }", "public ArrayList<ArrayList<Character> > reader(java.io.InputStream in) throws IOException{\n String s = \"\";\n int data = in.read();\n while(data!=-1){\n s += String.valueOf((char)data);\n data = in.read();\n }\t\t\t\t\t\t\t\t// s now has the input file stored as a string\n ArrayList<ArrayList<Character> > arr = new ArrayList<>();\n for(int i = 0;i<s.length();){\n ArrayList<Character> a = new ArrayList<>();\n while(s.charAt(i)!='\\n'){\n if((s.charAt(i)-'a'>=0&&s.charAt(i)-'a'<=25)||(s.charAt(i)-'0'>=0&&s.charAt(i)-'0'<=9)){ //taking only alphanumerics\n a.add(s.charAt(i));\n }\n i++;\n }\n arr.add(a);\n i++;\n }\n return arr;\n }", "ArrayList<WordListItem> addDataFromFile(){\n BufferedReader br;\n InputStream inputStream = context.getResources().openRawResource(R.raw.animal_list);\n br = new BufferedReader(\n new InputStreamReader(inputStream, Charset.forName(\"UTF-8\"))\n );\n String currentLine;\n ArrayList<WordListItem> wordListItems = new ArrayList<WordListItem>();\n try {\n while ((currentLine = br.readLine()) != null) {\n String[] tokens = currentLine.split(\";\");\n\n String word = tokens[0];\n String pronunciation = tokens[1];\n String description = tokens[2];\n\n WordListItem wordItem = new WordListItem(word, pronunciation, description);\n wordItem.setImgResNbr(setImgResFromWord(wordItem.getWord().toLowerCase()));\n wordListItems.add(wordItem);\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n if (br != null) br.close();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }\n\n return wordListItems;\n }", "public static void read8() {\n List<String> list = new ArrayList<>();\n\n try (Stream<String> stream = Files.lines(Paths.get(filePath))) {\n\n //1. filter line 3\n //2. convert all content to upper case\n //3. convert it into a List\n list = stream\n .filter(line -> !line.startsWith(\"line3\"))\n .map(String::toUpperCase)\n .collect(Collectors.toList());\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n list.forEach(System.out::println);\n }", "public ArrayList<BigInteger> read(String fileName) {\n String line = null; // current line from text file\n String[] numbers = null;\n try {\n BufferedReader lineReader = new BufferedReader\n ( (fileName == null || fileName.length() <= 0 || fileName.equals(\"-\"))\n ? new InputStreamReader(System.in)\n : new FileReader(fileName)\n );\n while ((line = lineReader.readLine()) != null) { // read and process lines\n if (! line.matches(\"\\\\s*#.*\") && ! line.matches(\"\\\\s*\")) { // no comment line, no empty line\n numbers = line.trim().split(\"\\\\s+\");\n int last = numbers.length - 1;\n /*\n try {\n int index = Integer.parseInt(numbers[0]);\n } catch (Exception exc) {\n }\n */\n sequence.add(new BigInteger(numbers[last]));\n } else {\n // ignore comment line\n }\n } // while ! eof\n lineReader.close();\n } catch (Exception exc) {\n log.error(exc.getMessage(), exc);\n } // try\n return sequence;\n }", "private void getArquivo()\n {\n /*** Obtem o conteudo do pacote através do diretorio ***/\n File file = new File(caminho_origem);\n if (file.isFile())\n {\n try\n {\n /*** Lê o pacote e põe em um array de bytes ***/\n DataInputStream diStream = new DataInputStream(new FileInputStream(file));\n long len = (int) file.length();\n if (len > Utils.tamanho_maximo_arquivo)\n {\n System.out.println(Utils.prefixo_cliente + Utils.arquivo_muito_grande);\n System.exit(0);\n }\n Float numero_pacotes_ = ((float)len / Utils.tamanho_util_pacote);\n int numero_pacotes = numero_pacotes_.intValue();\n int ultimo_pacote = (int) len - (Utils.tamanho_util_pacote * numero_pacotes);\n int read = 0;\n /***\n 1500\n fileBytes[1500]\n p[512]\n p[512]\n p[476]len - (512 * numero_pacotes.intValue())\n ***/\n byte[] fileBytes = new byte[(int)len];\n while (read < fileBytes.length)\n {\n fileBytes[read] = diStream.readByte();\n read++;\n }\n int i = 0;\n int pacotes_feitos = 0;\n while ( pacotes_feitos < numero_pacotes)\n {\n byte[] mini_pacote = new byte[Utils.tamanho_util_pacote];\n for (int k = 0; k < Utils.tamanho_util_pacote; k++)\n {\n mini_pacote[k] = fileBytes[i];\n i++;\n }\n Pacote pacote_ = new Pacote();\n pacote_.setConteudo(mini_pacote);\n this.pacotes.add(pacote_);\n pacotes_feitos++;\n }\n byte[] ultimo_mini_pacote = new byte[ultimo_pacote];\n int ultimo_indice = ultimo_mini_pacote.length;\n for (int j = 0; j < ultimo_mini_pacote.length; j++)\n {\n ultimo_mini_pacote[j] = fileBytes[i];\n i++;\n }\n byte[] ultimo_mini_pacote2 = new byte[512];\n System.arraycopy(ultimo_mini_pacote, 0, ultimo_mini_pacote2, 0, ultimo_mini_pacote.length);\n for(int h = ultimo_indice; h < 512; h++ ) ultimo_mini_pacote2[h] = \" \".getBytes()[0];\n Pacote pacote_ = new Pacote();\n pacote_.setConteudo(ultimo_mini_pacote2);\n this.pacotes.add(pacote_);\n this.janela = new HashMap<>();\n for (int iterator = 0; iterator < this.pacotes.size(); iterator++) janela.put(iterator, new Estado());\n } catch (Exception e)\n {\n System.out.println(Utils.prefixo_cliente + Utils.erro_na_leitura);\n System.exit(0);\n }\n } else\n {\n System.out.println(Utils.prefixo_cliente + Utils.arquivo_inexistente);\n System.exit(0);\n }\n }", "private ArrayList<String> saveText(){\n FileReader loadDetails = null;\n String record;\n record = null;\n\n //Create an ArrayList to store the lines from text file\n ArrayList<String> lineKeeper = new ArrayList<String>();\n\n try{\n loadDetails=new FileReader(\"employees.txt\");\n BufferedReader bin=new BufferedReader (loadDetails);\n record=new String();\n while (((record=bin.readLine()) != null)){//Read the file and store it into the ArrayList line by line*\n lineKeeper.add(record);\n }//end while\n bin.close();\n bin=null;\n }//end try\n catch (IOException ioe) {}//end catc\n\n return lineKeeper;\n\n }", "List<String> obtenerlineas(String archivo) throws FileException;", "public void example(){\n\t\tPath path=Paths.get(\"C:\\\\Users\\\\Sharath\\\\Downloads\",\"sharath.txt\");\r\n\t\t//get an instance of seekable byte channel using newByteChannel\r\n\t\ttry(SeekableByteChannel sekbchnl=Files.newByteChannel(path, EnumSet.of(StandardOpenOption.READ))){\r\n\t\t\t//new bytechanneel need a path and how to open in using std enumset.of\r\n\t\t\tByteBuffer buf = ByteBuffer.allocate(12);\r\n\t\t\t//buffer of 12 bytes\r\n\t\t\tString encoding=System.getProperty(\"file.encoding\");\r\n\t\t\t//get the system file encoding\r\n\t\t\tbuf.clear();\r\n\t\t\t//get ready for new sequence\r\n\t\t\twhile(sekbchnl.read(buf)>0){\r\n\t\t\t\t//read from channel to the buffer\r\n\t\t\t\tbuf.flip();\r\n\t\t\t\t//get ready for new seq chan read or get op\r\n\t\t\t\tSystem.out.print(Charset.forName(encoding).decode(buf));\r\n\t\t\t\t//decodes buf to uni char\r\n\t\t\t\tbuf.clear();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\tcatch(IOException e){\r\n\t\t\tSystem.err.println(e);\r\n\t\t}\r\n\t\t//truncate\r\n\t\t//write uses write option\r\n\t\ttry(SeekableByteChannel seekableByteChannel = Files.newByteChannel(path, EnumSet.of(StandardOpenOption.WRITE,StandardOpenOption.TRUNCATE_EXISTING))){\r\n\t\t\tByteBuffer bug=ByteBuffer.wrap(\"sharath hello\".getBytes());\r\n\t\t\tint write=seekableByteChannel.write(bug);\r\n\t\t\tSystem.out.println(\"Number of written bytes:\"+write);\r\n\t\t\tbug.clear();\r\n\t\t}\r\n\t\tcatch(IOException e){\r\n\t\t\t\r\n\t\t}\r\n\t}", "public interface ReaderFromFile {\n\t\n\tpublic List<Data> readDataFromFile (String filename);\n}", "public ByteBuffer filedata(int pos) throws IOException\n {\n ByteBuffer buf = ByteBuffer.allocate(1024);\n \t buf.order(ByteOrder.LITTLE_ENDIAN);\n \t byte[] bytes = new byte[1024];\n f.seek(1024*pos);\n \t f.read(bytes);\n \t buf.put(bytes);\n \t return buf;\n }", "public static List<String> readIn(String filename) throws Exception {\r\n Path filePath = new File(filename).toPath();\r\n Charset charset = Charset.defaultCharset(); \r\n List<String> stringList = Files.readAllLines(filePath, charset);\r\n\r\n return stringList;\r\n }", "private static void readNIO(File file) throws IOException {\n FileChannel channel = new RandomAccessFile(file, \"rw\").getChannel();\n //channel.position(2*N);\n ByteBuffer buf = ByteBuffer.allocateDirect(CHUNK);\n long t = System.nanoTime();\n for (int i = 0; i < N/CHUNK; i++) {\n channel.position(i * CHUNK);\n channel.read(buf);\n }\n System.out.println((System.nanoTime() - t) / 1_000_000 + \" ms \" + channel.position() + \" bytes\");\n\n channel.close();\n }", "public static List read(String fileName) throws IOException {\n\tList data = new ArrayList() ;\n Scanner scanner = new Scanner(new FileInputStream(fileName));\n try {\n while (scanner.hasNextLine()){\n data.add(scanner.nextLine());\n }\n }\n finally{\n scanner.close();\n }\n return data;\n }", "List<T> readList();", "public static List<String> readFileAsList(String filePath) {\n\n\t\tBufferedReader readFile = null;\n\t\tString line = null;\n\t\tList<String> fileContents = new ArrayList<String>();\n\t\ttry {\n\t\t\treadFile = new BufferedReader((new FileReader(filePath)));\n\t\t\twhile ((line = readFile.readLine()) != null)\n\t\t\t\tfileContents.add(line);\n\t\t\treadFile.close();\n\t\t\treturn fileContents;\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Unable to find file: \" + filePath);\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Unable to read file: \" + filePath);\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn fileContents;\n\t}", "public ArrayList<String> loadToRead() {\n\n\t\tSAVE_FILE = TO_READ_FILE;\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\tlist = loadIds();\n\t\treturn list;\n\t}", "public List<List<String>> read () {\n List<List<String>> information = new ArrayList<>();\n try (BufferedReader br = new BufferedReader(new FileReader(path))) {\n int aux = 0;\n while ((line = br.readLine()) != null) {\n String[] data = line.split(split_on);\n List<String> helper = new ArrayList<>();\n helper.add(data[0]);\n helper.add(data[1]);\n information.add(helper);\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (br != null) {\n try {\n br.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n return information;\n }", "public ReversedLinesFileReader(File file, int blockSize, Charset encoding) throws IOException {\n/* 96 */ this.blockSize = blockSize;\n/* 97 */ this.encoding = encoding;\n/* */ \n/* */ \n/* 100 */ Charset charset = Charsets.toCharset(encoding);\n/* 101 */ CharsetEncoder charsetEncoder = charset.newEncoder();\n/* 102 */ float maxBytesPerChar = charsetEncoder.maxBytesPerChar();\n/* 103 */ if (maxBytesPerChar == 1.0F)\n/* */ \n/* 105 */ { this.byteDecrement = 1; }\n/* 106 */ else if (charset == Charsets.UTF_8)\n/* */ \n/* */ { \n/* 109 */ this.byteDecrement = 1; }\n/* 110 */ else if (charset == Charset.forName(\"Shift_JIS\") || charset == Charset.forName(\"windows-31j\") || charset == Charset.forName(\"x-windows-949\") || charset == Charset.forName(\"gbk\") || charset == Charset.forName(\"x-windows-950\"))\n/* */ \n/* */ { \n/* */ \n/* */ \n/* */ \n/* 116 */ this.byteDecrement = 1; }\n/* 117 */ else if (charset == Charsets.UTF_16BE || charset == Charsets.UTF_16LE)\n/* */ \n/* */ { \n/* 120 */ this.byteDecrement = 2; }\n/* 121 */ else { if (charset == Charsets.UTF_16) {\n/* 122 */ throw new UnsupportedEncodingException(\"For UTF-16, you need to specify the byte order (use UTF-16BE or UTF-16LE)\");\n/* */ }\n/* */ \n/* 125 */ throw new UnsupportedEncodingException(\"Encoding \" + encoding + \" is not supported yet (feel free to \" + \"submit a patch)\"); }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 130 */ this.newLineSequences = new byte[][] { \"\\r\\n\".getBytes(encoding), \"\\n\".getBytes(encoding), \"\\r\".getBytes(encoding) };\n/* */ \n/* 132 */ this.avoidNewlineSplitBufferSize = (this.newLineSequences[0]).length;\n/* */ \n/* */ \n/* 135 */ this.randomAccessFile = new RandomAccessFile(file, \"r\");\n/* 136 */ this.totalByteLength = this.randomAccessFile.length();\n/* 137 */ int lastBlockLength = (int)(this.totalByteLength % blockSize);\n/* 138 */ if (lastBlockLength > 0) {\n/* 139 */ this.totalBlockCount = this.totalByteLength / blockSize + 1L;\n/* */ } else {\n/* 141 */ this.totalBlockCount = this.totalByteLength / blockSize;\n/* 142 */ if (this.totalByteLength > 0L) {\n/* 143 */ lastBlockLength = blockSize;\n/* */ }\n/* */ } \n/* 146 */ this.currentFilePart = new FilePart(this.totalBlockCount, lastBlockLength, null);\n/* */ }", "private List<String> readFile(String fileName)\n {\n try\n {\n String file = new String(Files.readAllBytes(Paths.get(fileName)), Charset.forName(\"ISO-8859-1\"));\n file = file\n .toLowerCase()\n .replaceAll(\"[^\\\\w]+\", \" \")\n .replaceAll(\"[0-9]\", \"\");\n Tokenizer tokenizer = SimpleTokenizer.INSTANCE;\n String[] tokens = tokenizer.tokenize(file);\n return Arrays.asList(tokens);\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n return new ArrayList<>();\n }", "public static String[] DataCollection(String a) throws FileNotFoundException {\n\tFile file = new File(a); \n \tScanner sc = new Scanner(file); \n \n // Counter variable to count the number of entries in text file\n\tint counter = 0;\n\n\t\n \n\tString[] data = new String[2976];\n // While loop to take in data from text file \n\twhile(sc.hasNextLine())\n\t{\n\t\n\tsc.useDelimiter(\"\\\\Z\"); \n\t\n\t// Inserting data in each line to array\n\tdata[counter] = sc.nextLine();\n\tcounter = counter + 1;\n\t\n\t}\n\treturn data;\n \t}", "public String[] read()\n {\n ArrayList<String> input = new ArrayList<String>();\n try\n {\n dir = new File(contextRef.getFilesDir(), filename);\n if (dir.exists())\n {\n Scanner contacts = new Scanner(dir);\n while (contacts.hasNextLine())\n {\n input.add(contacts.nextLine());\n }\n contacts.close();\n }\n }catch (Exception ex)\n {\n //debug(\"read file contents failure\");\n debug = \"test read failure\";\n }\n return input.toArray(new String[1]);\n }", "public ArrayList<Cliente> convertirAClases(String ficheroEnTexto){\n Cliente[] clientess;\n ArrayList<Cliente> listcliente;\n clientess= new Gson().fromJson(ficheroEnTexto,Cliente[].class);\n listcliente = new ArrayList<>(Arrays.asList(clientess));\n\n return listcliente;\n\n }", "public ArrayList<String> fileRead(String fileName) {\n String line = null;\n ArrayList<String> list = new ArrayList<>();\n try {\n // FileReader reads text files in the default encoding.\n FileReader fileReader = new FileReader(fileName);\n\n // Always wrap FileReader in BufferedReader.\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n\n while ((line = bufferedReader.readLine()) != null) {\n list.add(line);\n }\n\n // Always close files.\n bufferedReader.close();\n } catch (FileNotFoundException ex) {\n System.out.println(\"Unable to open file '\" + fileName + \"'\");\n\n } catch (IOException ex) {\n System.out.println(\"Error reading file '\" + fileName + \"'\");\n }\n return list;\n }", "public List<String> readFileIntoList(String sourceFilepath) throws IOException {\n List<String> lines = new ArrayList<>();\n URL url = new URL(sourceFilepath);\n BufferedReader reader = new BufferedReader(new InputStreamReader(url.openStream()));\n String line = null;\n while ((line = reader.readLine()) != null) {\n lines.add(line);\n }\n reader.close();\n return lines;\n }", "public byte[] getContents() throws VlException\n {\n long len = getLength();\n // 2 GB files cannot be read into memory !\n\n // zero size optimization ! \n\n if (len==0) \n {\n return new byte[0]; // empty buffer ! \n }\n\n if (len > ((long) VRS.MAX_CONTENTS_READ_SIZE))\n throw (new ResourceToBigException(\n \"Cannot read complete contents of a file greater then:\"\n + VRS.MAX_CONTENTS_READ_SIZE));\n\n int intLen = (int) len;\n return getContents(intLen);\n\n }", "public static ArrayList<Object> deserialize() throws IOException, ClassNotFoundException {\n FileInputStream fileIn = new FileInputStream(\"tmp/data.ser\");\n ObjectInputStream in = new ObjectInputStream(fileIn);\n ArrayList<Object> items = new ArrayList<>();\n try {\n while (true){\n items.add(in.readObject());\n }\n }\n catch (OptionalDataException e){\n if(!e.eof){\n throw e;\n }\n }\n catch (EOFException e){\n in.close();\n fileIn.close();\n }\n System.out.println(\"okunan dosya: \" + items);\n return items;\n }", "public void readEntries() throws FileAccessException;", "List<String[]> readCsv(String inputFilePath)throws IOException;", "public void readAndTxt(File f) { \r\n //read android txt\r\n String str = new String();\r\n try {\r\n BufferedReader br = new BufferedReader(new FileReader(f.getAbsolutePath()));\r\n while((str = br.readLine()) != null){\r\n String info[] = str.split(\" \");\r\n AndroidRec ar = new AndroidRec(info[0], info[1], info[2], info[3], info[4], info[5], info[6], info[7]);\r\n andrec.add(ar);\r\n }\r\n br.close(); \r\n } catch (Exception ex) {\r\n JOptionPane.showMessageDialog(null, \"read Android text file failed.\", \"System Message\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n }", "private void readFile() {\n try (BufferedReader br = new BufferedReader(new FileReader(\"../CS2820/src/production/StartingInventory.txt\"))) {\n String line = br.readLine();\n while (line != null) {\n line = br.readLine();\n this.items.add(line);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static ArrayList<Player> readPlayersFromFile() \r\n {\r\n //Inisialize Arraylist \r\n ArrayList<Player> players = new ArrayList<Player>();\r\n //Inisialize FileInputStream\r\n FileInputStream fileIn = null;\r\n\r\n try \r\n {\r\n //Establish connection to file \r\n fileIn = new FileInputStream(\"players.txt\");\r\n while (true) \r\n {\r\n //Create an ObjectOutputStream \r\n ObjectInputStream objectIn = new ObjectInputStream(fileIn);\r\n //Read a Player object from the file and add it to the ArrayList\r\n players.add((Player)objectIn.readObject());\r\n }//end while\r\n\r\n }\r\n catch (Exception e)\r\n {\r\n //System.out.println(e);\r\n }\r\n finally \r\n {\r\n usernamesTaken.clear();\r\n\r\n for(int i = 0; i < players.size(); i++)\r\n {\r\n usernamesTaken.add(players.get(i).getUsername());\r\n }//end for\r\n\r\n //Try to close the file and return the ArrayList\r\n try\r\n {\r\n //Check if the end of the file is reached\r\n if (fileIn != null)\r\n { \r\n //Close the file \r\n fileIn.close();\r\n //Return the ArrayList of players\r\n return players;\r\n }\r\n }\r\n catch (Exception e)\r\n {\r\n //System.out.println(e)\r\n }//end try \r\n\r\n //Return null if there is an excetion \r\n return null;\r\n }//end try \r\n }", "public String readFile(){\r\n StringBuffer str = new StringBuffer(); //StringBuffer is a mutable string\r\n Charset charset = Charset.forName(\"UTF-8\"); //UTF-8 character encoding\r\n Path file = Paths.get(filename + \".txt\");\r\n try (BufferedReader reader = Files.newBufferedReader(file, charset)) { // Buffer: a memory area that buffered streams read\r\n String line = null;\r\n while ((line = reader.readLine()) != null) { //Readers and writers are on top of streams and converts bytes to characters and back, using a character encoding\r\n str.append(line + \"\\n\");\r\n }\r\n }\r\n catch (IOException x) {\r\n System.err.format(\"IOException: %s%n\", x);\r\n }\r\n return str.toString();\r\n }", "static List<String> readDataFile(String filePath) throws Exception {\n\t\t// System.out.println(filePath);\n\t\tList<String> sortList = new ArrayList<String>();\n\n\t\tFileReader file = new FileReader(new File(filePath));\n\n\t\tBufferedReader bufRead = new BufferedReader(file);\n\n\t\tfor (long line = 0; line < linesPerFile; line++) {\n\n\t\t\tsortList.add((bufRead.readLine().toString()));\n\t\t}\n\n\t\tbufRead.close();\n\t\treturn sortList;\n\t}", "private static ArrayList<CIty> duxushuji(File file) throws IOException {\n\t\tArrayList<CIty>city=new ArrayList<>();\r\n\t\tInputStreamReader isr = new InputStreamReader(new FileInputStream(file), \"GBK\");\r\n\t\tBufferedReader br=new BufferedReader(isr);\r\n\tString str;\r\n\t\twhile((str=br.readLine())!=null){\r\n\t\tString[] strings=str.split(\"[|]\");\r\n\t\tcity.add(new CIty(Integer.parseInt(strings[0]), strings[1],strings[2]));\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tisr.close();\r\n\t\treturn city;\r\n\t}", "public static byte[] ReadFileSync(String filePath)\n {\n byte[] bytes = new byte[0];\n try\n {\n //Instantiate the file object\n File file = new File(filePath);\n //Instantiate the input stread\n InputStream insputStream = new FileInputStream(file);\n long length = file.length();\n bytes = new byte[(int) length];\n \n insputStream.read(bytes);\n insputStream.close();\n\n }\n catch(Exception e)\n {\n Log.e(\"IO\", \"Failed to load file async: \"+filePath+e.toString());\n }\n return bytes;\n }", "public ArrayList<String> parseFile(String fileName) throws IOException {\n\t\tthis.parrsedArray = new ArrayList<String>();\n\t\tFileInputStream inFile = null;\n\n\t\tinFile = new FileInputStream(mngr.getPath() + fileName);\n\t\tDataInputStream in = new DataInputStream(inFile);\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(in));\n\n\t\tString strLine;\n\n\t\twhile ((strLine = reader.readLine()) != null && strLine.length() > 0) {\n\t\t\t// Print the content on the console\n\t\t\tparrsedArray.add(strLine);\n\t\t}\n\n\t\tinFile.close();\n\n\t\treturn parrsedArray;\n\n\t}", "private static void readFile(ArrayList<Process> processList, int availableRes[]){\n String processInfo;\n Scanner inputFile = openFile();\n if(inputFile == null){System.exit(-1);}\n\n initializeResArray(availableRes, inputFile);\n\n int processID = 0;\n while(inputFile.hasNextLine()){\n processInfo = inputFile.nextLine();\n Process toAdd = createProcessFromInput(processInfo);\n toAdd.setPID(processID);\n processList.add(toAdd);\n processID++;\n }\n inputFile.close();\n }", "private String[] readFile(String path) throws StorageException {\r\n try {\r\n return readFile(new BufferedReader(new FileReader(new File(path))));\r\n } catch (Exception exception) {\r\n throw new StorageException(\"Cannot read file \" + path + \":\" + exception.getMessage());\r\n }\r\n }", "public void processMemory()\n {\n try{\n String memory = oReader.readLine();\n int index = 0;\n //adding mememory to and array\n for(int i = 0; i<memory.length()-2; i+=2)\n {\n String hexbyte = memory.substring(i, i+2); //get the byt ein hex\n mem.addEntry(\"0x\"+hexbyte, index, 1);\n index++;\n }\n } catch(IOException e)\n {\n e.printStackTrace();\n }\n }", "public abstract byte[] getBytes(String path) throws IOException, ClassNotFoundException;" ]
[ "0.64460856", "0.6022112", "0.59517425", "0.5946892", "0.5861238", "0.58503395", "0.58141047", "0.57776433", "0.5768242", "0.5757547", "0.57402223", "0.5716108", "0.57031286", "0.5670287", "0.564536", "0.5628151", "0.5625256", "0.55910724", "0.55595165", "0.5518197", "0.549896", "0.5498688", "0.5448934", "0.5446578", "0.54437745", "0.5441089", "0.5440716", "0.54249257", "0.5422214", "0.54209834", "0.5420778", "0.541437", "0.53944534", "0.53887814", "0.53863305", "0.5375364", "0.53700525", "0.5359766", "0.5349304", "0.53479594", "0.5341318", "0.5338532", "0.5337844", "0.5337458", "0.53252923", "0.5324665", "0.5323585", "0.52965987", "0.52937484", "0.5264563", "0.5260384", "0.5249988", "0.52478045", "0.524769", "0.52293336", "0.5226704", "0.5223295", "0.5218853", "0.52153325", "0.5214357", "0.52088225", "0.5205337", "0.51946086", "0.5192107", "0.518134", "0.5181315", "0.51690304", "0.51675594", "0.5166772", "0.5161786", "0.5156536", "0.51546866", "0.51484925", "0.5138669", "0.51318365", "0.5124069", "0.5117436", "0.51164067", "0.5113253", "0.5111636", "0.5110653", "0.5091815", "0.50897866", "0.5082829", "0.50819033", "0.5081437", "0.5070232", "0.5066069", "0.5052186", "0.50494605", "0.50451434", "0.5041271", "0.50407815", "0.5036259", "0.5032805", "0.5031163", "0.50296444", "0.50291204", "0.5028481", "0.50259346" ]
0.62839526
1